@import './order-progress.css';
/* POPOMO Plan F (Clean Girl Soft-Luxe Lavender) — Base Storefront Primitives
   Bg #F8F7FD | Surface #FFFFFF | Soft #FAF8FD | Orchid #602B87/#7D4AA3 | Plum #5C2662 | Ink #18071A */

:root {
  font-family: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', Arial, Helvetica, sans-serif;
  color: #18071A;
  background: #F8F7FD;
  font-synthesis: none;
  /* Canonical Plan F Soft-Luxe Lavender Tokens */
  --popomo-bg: #F8F7FD;
  --popomo-canvas: #F8F7FD;
  --popomo-cream: #F8F7F2;
  --popomo-cream-deep: #F5EDE2;
  --popomo-surface: #FFFFFF;
  --popomo-surface-soft: #FAF8FD;
  --popomo-teal: #7D4AA3;
  --popomo-teal-bright: #9562BC;
  --popomo-teal-deep: #602B87;
  --popomo-teal-dark: #522059;
  --popomo-teal-soft: #E8DAF1;
  --popomo-pink: #5C2662;
  --popomo-pink-hover: #4A1C50;
  --popomo-pink-soft: #F9E5E7;
  --popomo-ai-purple: #602B87;
  --popomo-ai-purple-soft: #F3EDF9;
  --popomo-ai-purple-border: rgba(96, 43, 135, 0.16);
  --popomo-yellow: #FFE066;
  --popomo-ink: #18071A;
  --popomo-ink-soft: #3A2A42;
  --popomo-ink-muted: #5E4D6B;
  --popomo-muted: #5E4D6B;
  --popomo-white: #FFFFFF;
  --popomo-border: rgba(96, 43, 135, 0.12);
  --popomo-border-strong: rgba(24, 7, 26, 0.16);
  --popomo-shadow-sm: 0 4px 14px rgba(24, 7, 26, 0.045);
  --popomo-shadow-md: 0 12px 30px rgba(96, 43, 135, 0.08);
  --popomo-shadow-lg: 0 22px 54px rgba(24, 7, 26, 0.13);
  --popomo-shadow-pink: 0 8px 20px rgba(92, 38, 98, 0.24);
  --popomo-radius-card: 22px;
  --popomo-radius-sm: 14px;
  --popomo-radius-pill: 999px;
  --popomo-max-width: 1320px;
  --popomo-font-serif: Georgia, 'Times New Roman', serif;

  /* Base semantic aliases */
  --bg: var(--popomo-bg);
  --paper: var(--popomo-bg);
  --surface: var(--popomo-surface);
  --surface-2: var(--popomo-surface-soft);
  --ink: var(--popomo-ink);
  --body: var(--popomo-ink-soft);
  --muted: var(--popomo-ink-muted);
  --line: var(--popomo-border);
  --pink: var(--popomo-pink);
  --pink-hover: var(--popomo-pink-hover);
  --teal: var(--popomo-teal);
  --teal-bright: var(--popomo-teal-bright);
  --teal-deep: var(--popomo-teal-deep);
  --accent: var(--popomo-teal);
  --accent-soft: var(--popomo-teal-soft);
  --primary: var(--popomo-pink);
  --danger: #BE123C;
  --warning: #D97706;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { opacity: .45; cursor: not-allowed; }
svg { vertical-align: middle; flex-shrink: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #602B87;
  outline-offset: 3px;
}
#main:focus { outline: none; }
img { max-width: 100%; }

.wrap { width: min(var(--popomo-max-width), calc(100% - 96px)); margin-inline: auto; }
.header { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.wordmark { display: flex; align-items: center; }
.brand-badge { display: inline-flex; background: var(--accent-soft); border-radius: 10px; padding: 4px 8px; border: 1px solid var(--popomo-border); overflow: hidden; }
.brand-wordmark { width: 138px; height: 27px; display: block; }
.header nav { display: flex; gap: 36px; font-size: 13px; }
.header nav a, .saved-link { padding-block: 12px; }
.header a:hover { color: var(--teal-deep); }
.saved-link { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.saved-link i { width: 6px; height: 6px; background: var(--pink); border-radius: 50%; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; line-height: 1.6; color: var(--teal-deep); text-transform: uppercase; }

/* Global Plan F Soft-Luxe Pill Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--popomo-border-strong);
  border-radius: var(--popomo-radius-pill);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--popomo-shadow-sm);
  transition: background-color .16s ease, transform .14s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease;
}
.button:hover:not(:disabled) {
  border-color: var(--teal-deep);
  background: #FAF5FE;
  color: var(--popomo-teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--popomo-shadow-md);
}
.button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--popomo-shadow-sm);
}
.primary, .button.primary {
  background: linear-gradient(180deg, #652A6E 0%, #522059 100%);
  color: #FFFFFF;
  border: 0;
  box-shadow: 0 8px 20px rgba(92, 38, 98, 0.24);
  border-radius: var(--popomo-radius-pill);
}
.primary:hover:not(:disabled), .button.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #5C2662 0%, #4A1C50 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(92, 38, 98, 0.30);
}
.primary:active:not(:disabled), .button.primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(92, 38, 98, 0.20);
}
.secondary, .button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--popomo-border-strong);
  box-shadow: var(--popomo-shadow-sm);
  border-radius: var(--popomo-radius-pill);
}
.secondary:hover:not(:disabled), .button.secondary:hover:not(:disabled) {
  border-color: var(--teal-deep);
  background: #FAF5FE;
  color: var(--popomo-teal-dark);
}

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-block: 58px 72px; align-items: center; }
.hero-copy { padding-block: 15px; }
.hero h1 { font-size: clamp(64px, 6.8vw, 98px); line-height: .98; letter-spacing: -4px; font-weight: 800; margin: 27px 0 28px; color: var(--ink); }
.hero h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--teal-deep); font-size: 1.12em; }
.intro { font-size: 17px; color: var(--body); line-height: 1.65; }
.hero .button { margin-top: 30px; }
.hero-note { font-size: 12px; color: var(--muted); margin-top: 19px; }
.hero-scene { height: 535px; position: relative; background: linear-gradient(160deg, #EBE1F9 0%, #F8E9EE 100%); border: 1px solid var(--popomo-border); border-radius: var(--popomo-radius-card); box-shadow: var(--popomo-shadow-md); overflow: hidden; }
.hero-scene:before { content: ''; position: absolute; width: 350px; height: 350px; border-radius: 50%; background: rgba(255, 255, 255, 0.42); left: 10%; top: 22%; }
.scene-top, .scene-bottom, .scene-number { position: absolute; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; z-index: 4; color: var(--teal-deep); }
.scene-top { top: 29px; left: 29px; }
.scene-bottom { left: 29px; bottom: 26px; }
.scene-number { bottom: 26px; right: 26px; }
.hero-case { position: absolute; width: 174px; }
.front-case { left: 17%; top: 115px; transform: rotate(-14deg); z-index: 2; }
.back-case { right: 12%; top: 77px; transform: rotate(16deg); }
.scene-star { position: absolute; right: 30px; bottom: 85px; font-size: 74px; color: var(--pink); line-height: 1; z-index: 3; }

.collection { padding-top: 35px; padding-bottom: 88px; scroll-margin-top: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; }
.section-heading h2 { font-size: 37px; letter-spacing: -1.2px; font-weight: 800; margin-top: 13px; color: var(--ink); }
.section-heading > p { font-size: 13px; color: var(--muted); padding-bottom: 5px; }
.design-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 37px 23px; }
.design-card { min-width: 0; }
.design-image { position: relative; background: var(--card, #F3EDF9); height: 350px; display: grid; place-items: center; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--popomo-shadow-sm); overflow: hidden; }
.card-case { width: 131px; transform: rotate(-8deg); transition: transform .3s; }
.design-card:nth-child(even) .card-case { transform: rotate(8deg); }
.design-card:hover .card-case { transform: rotate(0) translateY(-6px); }
.card-index { position: absolute; top: 16px; left: 16px; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.card-arrow { position: absolute; bottom: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: #FFFFFF; border: 1.5px solid var(--ink); color: var(--ink); display: grid; place-items: center; }
.card-caption { padding-top: 15px; }
.card-caption h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.card-caption p { font-size: 12px; color: var(--muted); margin-top: 6px; }

.how-section { background: var(--surface-2); padding-block: 70px; scroll-margin-top: 20px; border-block: 1.5px solid var(--line); }
.how-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.how-layout h2 { font-size: 56px; line-height: 1.06; font-weight: 800; letter-spacing: -2px; margin-top: 20px; color: var(--ink); }
.how-list { list-style: none; margin: 0; padding: 0; }
.how-list li { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1.5px solid var(--line); }
.how-list li:first-child { padding-top: 0; }
.how-list li > span { font-size: 12px; font-weight: 800; padding-top: 4px; color: var(--teal-deep); }
.how-list h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.how-list p { font-size: 14px; line-height: 1.7; color: var(--body); margin-top: 8px; max-width: 360px; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 25px; min-height: 112px; font-size: 12px; color: var(--muted); }
.footer-wordmark { font-size: 18px; letter-spacing: -.6px; font-weight: 800; color: var(--pink); }
.footer-wordmark span { font-size: 11px; font-weight: 400; letter-spacing: 0; display: block; margin-top: 6px; color: var(--muted); }
.footer > a:last-child { display: flex; gap: 9px; align-items: center; }

.flow { padding-block: 34px 64px; min-height: calc(100vh - 212px); }
.steps { list-style: none; display: flex; gap: 34px; justify-content: center; padding: 0; margin: 0 0 40px; color: var(--muted); font-size: 12px; font-weight: 600; }
.steps li { display: flex; align-items: center; gap: 9px; }
.steps li > span { border: 1.5px solid var(--line); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface); }
.steps .active { color: var(--ink); font-weight: 800; }
.steps .active > span { background: var(--teal); border-color: var(--ink); color: #FFFFFF; }
.steps .complete > span { background: var(--accent-soft); border-color: var(--teal); color: var(--teal-deep); }

.choose-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
.large-preview { height: 620px; background: var(--card, #F3EDF9); border-radius: 20px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; align-items: center; position: sticky; top: 24px; overflow: hidden; }
.preview-label { position: absolute; top: 24px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--teal-deep); }
.large-case { width: 218px; transform: rotate(-7deg); }
.preview-caption { position: absolute; bottom: 22px; font-size: 11px; color: var(--muted); text-align: center; padding-inline: 16px; }
.choose-details { max-width: 430px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--teal-deep); }
.back-link:hover { color: var(--ink); }
.choose-details > .eyebrow { margin-top: 32px; }
.choose-details h1 { font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -1.5px; margin: 14px 0; color: var(--ink); }
.choose-details .intro { font-size: 15px; }
.design-choices { border: 0; padding: 0; margin: 28px 0 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.design-choices legend, label { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.design-choices legend { padding: 0; margin-bottom: 14px; }
.design-dot { border: 1.5px solid var(--line); background: var(--swatch); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; }
.design-dot.selected { outline: 2px solid #602B87; outline-offset: 3px; border-color: var(--ink); }
.design-dot:focus-visible { outline: 3px solid #602B87; outline-offset: 4px; }

label { display: block; }
input, select, textarea {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: var(--surface);
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #602B87;
  box-shadow: 0 0 0 3px rgba(96, 43, 135, 0.16);
  outline: none;
}
input::placeholder, textarea::placeholder { color: #847492; opacity: 1; }
.field-note { font-size: 12px; color: var(--muted); margin: 12px 0 22px; line-height: 1.6; }
.full { width: 100%; }
.next-note { display: flex; gap: 14px; border-top: 1.5px solid var(--line); margin-top: 27px; padding-top: 25px; align-items: center; }
.next-note p { font-size: 12px; line-height: 1.7; color: var(--body); }
.next-note span { color: var(--muted); }

/* Pickup Pass & Station Views */
.pass-heading { text-align: center; margin: 40px 0 32px; }
.pass-heading h1, .station-flow h1, .empty h1 { font-size: clamp(32px, 4.2vw, 44px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.15; margin: 14px 0; color: var(--ink); }
.pass-heading > p:last-child { color: var(--body); font-size: 15px; line-height: 1.7; }
.pass-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 820px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: var(--popomo-radius-card);
  box-shadow: var(--popomo-shadow-md);
  overflow: hidden;
  background: var(--surface);
}
.pass-product {
  background: linear-gradient(180deg, #F3EDF9 0%, #FAF8FD 100%);
  border-right: 1px solid var(--line);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pass-case { width: 150px; transform: rotate(-6deg); margin-bottom: 28px; }
.pass-product h2 { font-size: 22px; font-weight: 800; color: var(--ink); }
.pass-product p { font-size: 13px; margin-top: 8px; color: var(--muted); }
.pass-code { display: flex; flex-direction: column; align-items: center; padding: 32px; background: var(--surface); }
.qr { width: 208px; height: 208px; margin: 12px 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--popomo-radius-sm); background: #FFFFFF; box-shadow: var(--popomo-shadow-sm); image-rendering: pixelated; }
.human-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 3px;
  font-size: 20px;
  font-weight: 800;
  color: var(--popomo-teal-dark);
  background: var(--accent-soft);
  border: 1.5px solid var(--teal-deep);
  border-radius: 12px;
  padding: 8px 16px;
}
.pass-code > p { font-size: 12px; line-height: 1.7; text-align: center; color: var(--muted); margin: 16px 0 20px; }
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button:hover { color: var(--ink); }
.pass-code > .text-button { margin-top: 6px; }
.saved-note { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; margin: 20px auto; }
.pass-actions { display: flex; max-width: 820px; margin: 18px auto 0; align-items: center; justify-content: space-between; gap: 16px; }
.demo-note { text-align: center; font-size: 11px; line-height: 1.7; color: var(--muted); margin: 22px auto 0; max-width: 640px; }

.empty { text-align: center; padding-block: 80px; min-height: calc(100vh - 212px); }
.empty-icon { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--accent-soft); border: 1.5px solid var(--teal-deep); color: var(--teal-deep); margin-bottom: 24px; }
.empty > p:not(.eyebrow) { font-size: 15px; color: var(--body); margin: 18px 0 24px; }

.station-flow { text-align: center; max-width: 900px; }
.station-top { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; margin: 40px 0 20px; color: var(--ink); }
.station-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-deep); }
.demo-badge { font-size: 10px; font-weight: 700; border: 1.5px solid var(--line); padding: 4px 8px; border-radius: 999px; color: var(--muted); background: var(--surface); letter-spacing: 0.06em; }
.station-flow > .intro { font-size: 14px; }
.station-card { border: 1px solid var(--line); border-radius: var(--popomo-radius-card); background: var(--surface); box-shadow: var(--popomo-shadow-md); max-width: 560px; margin: 30px auto 0; padding: 30px; text-align: left; }
.scanner-icon { text-align: center; color: var(--teal-deep); margin: 5px 0 28px; }
.scan-input { display: flex; gap: 10px; }
.scan-input input { flex: 1; width: 0; }
.scan-input .button { gap: 8px; padding: 12px 18px; white-space: nowrap; }
.station-label { margin-top: 24px; }
.error { font-size: 13px; font-weight: 600; color: #9F1239; background: #FFF1F4; border: 1.5px solid rgba(190, 18, 60, 0.35); border-radius: 10px; padding: 10px 14px; margin: 12px 0; line-height: 1.6; }
.station-review { display: flex; gap: 28px; align-items: center; border-bottom: 1.5px solid var(--line); padding-bottom: 24px; }
.station-case { width: 97px; flex-shrink: 0; }
.station-review h2 { font-size: 24px; letter-spacing: -.5px; font-weight: 800; margin: 10px 0; color: var(--ink); }
.station-review p:not(.eyebrow) { font-size: 13px; color: var(--body); }
.station-review .human-code { font-size: 13px; display: inline-block; margin-top: 14px; padding: 5px 10px; }
.availability { display: flex; align-items: flex-start; gap: 8px; line-height: 1.6; font-size: 13px; font-weight: 600; margin: 16px 0 22px; }
.availability svg { margin-top: 2px; }
.available { color: var(--teal-deep); }
.unavailable { color: #BE123C; }
.station-card > .text-button { display: flex; margin-inline: auto; }
.completion-icon { width: 68px; height: 68px; display: grid; place-items: center; background: var(--accent-soft); border: 1.5px solid var(--teal-deep); border-radius: 50%; color: var(--teal-deep); margin: 28px auto 20px; }
.working { background: var(--popomo-pink-soft); border-color: var(--pink); color: var(--pink); }
.print-summary { max-width: 520px; margin: 28px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--popomo-radius-card); box-shadow: var(--popomo-shadow-md); padding: 32px; }
.print-summary .station-case { margin: 0 auto 24px; }
.print-summary h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.print-summary > p { font-size: 13px; color: var(--muted); }
.print-progress { display: flex; justify-content: space-between; gap: 14px; list-style: none; margin: 28px 0; padding: 0; font-size: 11px; font-weight: 600; color: var(--muted); }
.print-progress li { display: flex; align-items: center; flex-direction: column; gap: 8px; line-height: 1.5; }
.print-progress span { background: var(--bg); border: 1.5px solid var(--line); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; }
.print-progress .done { color: var(--teal-deep); font-weight: 700; }
.print-progress .done span { background: var(--teal-deep); border-color: var(--ink); color: #FFFFFF; }

/* Global Toast Notice */
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: #FFFFFF;
  border: 1.5px solid var(--teal-bright);
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(24, 7, 26, 0.26);
  max-width: calc(100% - 32px);
  width: max-content;
  z-index: 60;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  transition: opacity .2s ease, transform .2s ease;
}
#notice.visible { opacity: 1; transform: translateX(-50%); }
.skip-link { position: fixed; top: -80px; left: 15px; z-index: 50; background: #FFFFFF; color: var(--ink); border: 1px solid var(--popomo-border-strong); border-radius: 999px; box-shadow: var(--popomo-shadow-md); padding: 12px 18px; font-weight: 700; }
.skip-link:focus { top: 10px; }

/* Shared artwork renderer, isolated from editor and storefront layout. */
.phone-case { width: 100%; aspect-ratio: 300/570; position: relative; border-radius: 17% / 9%; background: #d8d5ce; box-shadow: inset 0 0 0 3px #d8d1c7, 10px 17px 22px rgba(24, 7, 26, 0.14), 2px 2px 2px #fff; overflow: hidden; border: 4px solid #c6beb5; container-type: inline-size; }
.case-art { position: absolute; inset: 0; transform-origin: center; overflow: hidden; }
.case-art > svg, .case-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-edge { position: absolute; inset: 0; border: 2px solid #ffffff8f; border-radius: 15% / 8%; box-shadow: inset 0 0 10px rgba(24, 7, 26, 0.16); pointer-events: none; }
.camera { position: absolute; top: 4%; left: 7%; width: 45%; height: 24%; border-radius: 23%; background: linear-gradient(130deg, #b8b6b0, #e2e0da 65%, #939590); border: 1px solid #7d807d; box-shadow: 2px 3px 4px rgba(24, 7, 26, 0.24); z-index: 6; }
.camera i { position: absolute; width: 37%; height: 36%; border-radius: 50%; border: 3px solid #434748; background: radial-gradient(circle at 40% 35%, #486376 0, #0e141e 23%, #182533 44%, #05090d 48%, #373d40 58%, #1c201f 60%); box-shadow: 0 1px 3px #111; }
.camera i:nth-child(1) { left: 8%; top: 8%; }
.camera i:nth-child(2) { right: 6%; top: 32%; }
.camera i:nth-child(3) { left: 8%; bottom: 8%; }
.camera b { position: absolute; width: 15%; height: 15%; right: 15%; top: 10%; background: #faf2da; border-radius: 50%; }
.samsung .camera { width: 22%; height: 30%; background: none; border: 0; box-shadow: none; left: 6%; }
.samsung .camera i { left: 0; right: auto; width: 80%; height: 29%; }
.samsung .camera i:nth-child(2) { top: 35%; }
.samsung .camera i:nth-child(3) { bottom: 0; }
.samsung .camera b { display: none; }
.design-layers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.design-layer { position: absolute; line-height: 1; transform-origin: center; user-select: none; }
.design-layer img { display: block; width: 100%; height: auto; pointer-events: none; }
.layer-text { display: block; white-space: pre-wrap; overflow-wrap: anywhere; text-align: center; font-weight: 700; line-height: 1.15; }

@media (min-width: 1450px) { .hero-case { width: 191px; } .front-case { left: 19%; top: 105px; } .back-case { right: 13%; top: 65px; } }
@media (max-width: 1050px) { .wrap { width: calc(100% - 64px); } .hero { gap: 30px; } .hero h1 { font-size: 75px; letter-spacing: -4px; } .hero-scene { height: 480px; } .hero-case { width: 145px; } .front-case { left: 12%; top: 140px; } .back-case { right: 10%; top: 95px; } .scene-star { font-size: 60px; right: 20px; bottom: 63px; } .design-image { height: 300px; } .card-case { width: 112px; } .choose-layout { gap: 40px; } .large-preview { height: 580px; } .large-case { width: 190px; } .choose-details h1 { font-size: 40px; } .how-layout { gap: 50px; } .section-heading h2 { font-size: 31px; } }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .header { height: 80px; gap: 10px; }
  .brand-wordmark { width: 104px; height: 21px; }
  .header nav { gap: 0; font-size: 11px; }
  .header nav a:last-child { display: none; }
  .saved-link { font-size: 11px; gap: 6px; }
  .saved-link svg { width: 16px; }
  .hero { grid-template-columns: 1fr; padding-block: 40px 42px; gap: 32px; }
  .hero h1 { font-size: 60px; letter-spacing: -3px; margin: 22px 0; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
  .hero-copy { padding: 0 4px; }
  .intro { font-size: 15px; }
  .hero .button { margin-top: 24px; }
  .hero-note { font-size: 11px; margin-top: 16px; }
  .hero-scene { height: 400px; }
  .hero-case { width: 143px; }
  .front-case { top: 95px; left: 18%; }
  .back-case { top: 60px; right: 14%; }
  .hero-scene:before { width: 280px; height: 280px; top: 16%; }
  .scene-top { top: 22px; left: 22px; font-size: 8px; }
  .scene-bottom, .scene-number { font-size: 8px; bottom: 21px; }
  .scene-bottom { left: 22px; }
  .scene-star { font-size: 55px; right: 20px; bottom: 56px; }
  .collection { padding-top: 20px; padding-bottom: 48px; }
  .section-heading { display: block; margin-bottom: 23px; }
  .section-heading .eyebrow { font-size: 10px; }
  .section-heading h2 { font-size: 30px; letter-spacing: -1.1px; margin-top: 11px; }
  .section-heading > p { font-size: 12px; margin-top: 10px; }
  .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 12px; }
  .design-image { height: 233px; }
  .card-case { width: 89px; }
  .card-index { font-size: 9px; top: 12px; left: 12px; }
  .card-arrow { height: 28px; width: 28px; right: 10px; bottom: 10px; }
  .card-caption { padding-top: 13px; }
  .card-caption h3 { font-size: 14px; }
  .card-caption p { font-size: 11px; line-height: 1.5; margin-top: 5px; }
  .how-section { padding-block: 42px; }
  .how-layout { grid-template-columns: 1fr; gap: 35px; }
  .how-layout h2 { font-size: 42px; letter-spacing: -1.5px; }
  .how-list li { gap: 18px; padding-block: 20px; }
  .how-list h3 { font-size: 17px; }
  .how-list p { font-size: 13px; }
  .footer { padding-block: 27px; min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 20px 12px; }
  .footer-wordmark { font-size: 17px; }
  .footer p { grid-row: 2; grid-column: 1/-1; font-size: 10px; }
  .footer > a:last-child { font-size: 11px; }
  .flow { padding-block: 24px 40px; }
  .steps { gap: 12px; justify-content: space-between; font-size: 10px; margin-bottom: 24px; }
  .steps li { gap: 5px; }
  .steps li > span { width: 22px; height: 22px; flex-shrink: 0; font-size: 10px; }
  .choose-layout { grid-template-columns: 1fr; gap: 24px; }
  .large-preview { height: 360px; position: relative; top: 0; }
  .large-case { width: 145px; }
  .preview-label { font-size: 9px; top: 18px; }
  .preview-caption { font-size: 10px; bottom: 16px; }
  .choose-details { max-width: none; }
  .choose-details > .eyebrow { margin-top: 22px; }
  .choose-details h1 { font-size: 36px; margin: 12px 0; }
  .choose-details .intro { font-size: 14px; }
  .design-choices { margin: 22px 0; }
  .choose-details .button { min-height: 52px; }
  .next-note { padding-top: 18px; margin-top: 20px; }
  .pass-heading { margin: 28px 0 22px; }
  .pass-heading h1, .station-flow h1, .empty h1 { font-size: 30px; letter-spacing: -1px; }
  .pass-heading .eyebrow { font-size: 10px; letter-spacing: 1.2px; }
  .pass-heading > p:last-child { font-size: 13px; }
  .pass-card { grid-template-columns: 1fr; box-shadow: var(--popomo-shadow-sm); }
  .pass-product { display: grid; grid-template-columns: 70px 1fr; gap: 8px 20px; padding: 22px; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); }
  .pass-case { width: 65px; grid-row: 1/3; margin: 0; }
  .pass-product h2 { font-size: 20px; align-self: end; }
  .pass-product p { margin: 0; align-self: start; }
  .pass-code { padding: 24px 18px; }
  .qr { width: 196px; height: 196px; }
  .pass-actions { flex-direction: column; gap: 10px; margin-top: 20px; }
  .saved-note { font-size: 11px; }
  .demo-note { font-size: 10px; margin-top: 20px; }
  .empty { padding-block: 56px; }
  .empty > p:not(.eyebrow) { line-height: 1.6; }
  .station-top { margin-top: 24px; }
  .station-flow > .intro { font-size: 13px; }
  .station-card { margin-top: 22px; padding: 22px 18px; }
  .scan-input { flex-direction: column; }
  .scan-input input { width: 100%; flex: auto; }
  .station-review { gap: 18px; }
  .station-case { width: 80px; }
  .station-review h2 { font-size: 21px; }
  .station-review .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .station-review p:not(.eyebrow) { font-size: 12px; }
  .print-summary { padding: 24px 18px; }
  .print-progress { font-size: 10px; gap: 7px; }
}
@media (max-width: 380px) { .header nav { display: none; } .hero h1 { font-size: 52px; } .hero-case { width: 132px; } .front-case { left: 12%; top: 105px; } .back-case { right: 10%; top: 67px; } .design-image { height: 215px; } .card-case { width: 80px; } .steps { gap: 7px; font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Photo & AI Controls */
.upload-home-link { display: flex; align-items: center; gap: 8px; width: max-content; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; margin-top: 18px; color: var(--teal-deep); font-weight: 600; }
.source-switch { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; margin: 22px 0 20px; }
.source-switch button { flex: 1; border: 0; background: none; border-radius: 8px; padding: 10px 8px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.source-switch button[aria-pressed=true] { background: var(--teal-deep); color: #FFFFFF; box-shadow: 0 2px 8px rgba(96, 43, 135, 0.24); }
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; overflow: hidden; min-height: 0; }
.file-input:focus-visible { position: static; opacity: 1; width: 100%; height: auto; min-height: 45px; }
.photo-placeholder { text-align: center; padding: 30px; max-width: 340px; }
.photo-placeholder > svg { color: var(--teal-deep); margin-bottom: 18px; }
.photo-placeholder h2 { font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.8px; color: var(--ink); }
.photo-placeholder p { font-size: 13px; line-height: 1.7; color: var(--body); margin: 16px 0; }
.photo-placeholder .button { cursor: pointer; }
.photo-upload { border: 2px dashed var(--teal); border-radius: 14px; padding: 18px; display: flex; align-items: center; gap: 15px; margin: 22px 0 18px; background: var(--surface); }
.upload-button { background: var(--accent-soft); color: var(--popomo-teal-dark); border: 1.5px solid var(--teal-deep); cursor: pointer; font-size: 12px; font-weight: 700; gap: 8px; min-height: 43px; padding: 10px 14px; border-radius: 999px; margin: 0; white-space: nowrap; }
.photo-upload p { font-size: 11px; line-height: 1.7; color: var(--muted); }
.crop-panel, .effect-panel { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 17px; margin-bottom: 20px; background: var(--surface); }
.crop-panel summary, .effect-panel summary { cursor: pointer; font-size: 13px; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; color: var(--ink); }
.crop-panel summary::-webkit-details-marker, .effect-panel summary::-webkit-details-marker { display: none; }
.crop-panel summary:after, .effect-panel summary:after { content: '+'; font-size: 18px; color: var(--teal-deep); }
.crop-panel[open] summary:after, .effect-panel[open] summary:after { content: '−'; }
.effect-panel summary > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.effect-panel summary > span:first-child > svg { color: var(--pink); }
.premium-label { font-size: 10px; font-weight: 700; color: #FFFFFF; background: var(--pink); padding: 4px 8px; border-radius: 999px; margin-left: auto; }
.effect-description { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 16px 0; }
.effect-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }
.effect-grid button { padding: 0 0 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; }
.effect-grid button[aria-pressed=true] { border: 1.5px solid #602B87; background: #FAF5FE; }
.effect-swatch { height: 66px; display: grid; place-items: center; background: var(--effect-color); color: var(--muted); overflow: hidden; }
.effect-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.effect-grid strong { display: block; font-size: 10px; font-weight: 600; padding: 8px 3px 0; line-height: 1.3; color: var(--ink); }
.effect-grid small { display: none; }
.effect-panel label, .crop-panel label { font-size: 12px; display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 8px; }
.effect-panel output, .crop-panel output { color: var(--muted); font-weight: 500; }
.effect-panel input[type=range], .crop-panel input[type=range] { padding: 0; height: 25px; min-height: 25px; accent-color: #602B87; display: block; border: 0; box-shadow: none; background: transparent; }
.effect-disclaimer { font-size: 11px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 10px; }
.effect-selection { font-size: 12px; display: flex; align-items: center; gap: 6px; color: var(--teal-deep); margin: -4px 0 20px; flex-wrap: wrap; }
.effect-caption { font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--teal-deep); margin-top: 10px; line-height: 1.5; }
.pass-code .human-code { max-width: 100%; font-size: 17px; letter-spacing: 1.5px; overflow-wrap: anywhere; text-align: center; }
.station-review .human-code { overflow-wrap: anywhere; font-size: 12px; letter-spacing: 1px; }
.station-review > div:last-child { min-width: 0; }
.station-review .effect-caption { justify-content: flex-start; }
.effect-panel summary:focus-visible, .crop-panel summary:focus-visible { outline: 3px solid #602B87; outline-offset: 4px; }
.photo-upload:focus-within { outline: 2px solid #602B87; outline-offset: 3px; }
.pass-product .effect-caption { max-width: 100%; text-align: center; }
@media (max-width: 700px) { .source-switch { margin-top: 20px; } .photo-placeholder { padding: 22px; max-width: 300px; } .photo-placeholder h2 { font-size: 28px; } .photo-placeholder > svg { width: 35px; height: 35px; margin-bottom: 14px; } .photo-placeholder p { margin: 14px 0; font-size: 12px; } .photo-placeholder .button { min-height: 43px; padding: 11px 18px; } .photo-upload { gap: 11px; padding: 13px; } .photo-upload p { font-size: 10px; } .upload-button { font-size: 11px; padding: 9px 12px; } .crop-panel, .effect-panel { padding: 15px 13px; } .effect-grid { gap: 6px; } .effect-swatch { height: 64px; } .effect-grid strong { font-size: 9px; } .pass-product .effect-caption { grid-column: 2; text-align: left; justify-content: flex-start; font-size: 10px; margin-top: 0; } .pass-product .pass-case { grid-row: 1/4; } .upload-home-link { font-size: 11px; } }

/* Paid AI Styles & Order Receipts */
.ai-style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ai-style-grid button { background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 0 10px; overflow: hidden; text-align: left; }
.ai-style-grid button[aria-pressed=true] { border-color: var(--teal-deep); outline: 2px solid var(--teal-deep); outline-offset: 1px; }
.ai-style-grid img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.ai-style-grid span { display: block; font-size: 11px; line-height: 1.3; padding: 10px 8px 3px; font-weight: 700; color: var(--ink); }
.ai-style-grid small { display: block; font-size: 10px; padding: 0 8px; color: var(--muted); }
.sample-caption { display: flex; align-items: center; gap: 12px; margin-top: 17px; }
.sample-caption > img { width: 42px; height: 54px; object-fit: cover; border-radius: 6px; }
.sample-caption p { font-size: 11px; line-height: 1.5; color: var(--muted); }
.sample-caption .text-button { padding: 5px 0; font-size: 11px; color: var(--teal-deep); }
.ai-panel .full { font-size: 13px; padding-inline: 14px; }
.ai-heading { text-align: center; margin: 36px auto 32px; }
.ai-heading h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -1.2px; font-weight: 800; margin: 14px 0; color: var(--ink); }
.ai-heading > p:last-child { font-size: 14px; color: var(--body); line-height: 1.7; }
.ai-heading .demo-badge { margin-left: 8px; }
.ai-order-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
.ai-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 20px; }
.ai-comparison figure { margin: 0; min-width: 0; }
.ai-comparison img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; border-radius: 8px; }
.ai-comparison figcaption { font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .8px; margin-top: 10px; color: var(--muted); }
.ai-order-card { background: var(--surface); border: 1px solid var(--line); padding: 26px; border-radius: var(--popomo-radius-card); box-shadow: var(--popomo-shadow-md); min-width: 0; }
.ai-receipt-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.ai-receipt-heading h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin-top: 6px; color: var(--ink); }
.ai-receipt-heading > strong { font-size: 26px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; color: var(--ink); }
.ai-receipt-heading small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; margin-top: 4px; }
.ai-demo-note { background: var(--bg); border: 1.5px solid var(--line); padding: 13px 15px; font-size: 12px; color: var(--body); line-height: 1.7; border-radius: 10px; margin: 20px 0; }
.price-row { display: flex; justify-content: space-between; gap: 15px; font-size: 13px; line-height: 1.6; padding-block: 10px; border-bottom: 1px solid var(--line); color: var(--body); }
.ai-consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; font-size: 12px; font-weight: 500; margin: 18px 0; color: var(--body); }
.ai-consent input { width: 18px; height: 18px; min-height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: #602B87; padding: 0; }
.ai-demo-controls { font-size: 11px; color: var(--muted); margin: 14px 0; }
.ai-demo-controls summary { cursor: pointer; padding-block: 8px; }
.ai-order-id { font-size: 11px; color: var(--muted); line-height: 1.6; border-top: 1.5px solid var(--line); padding-top: 15px; margin-top: 15px; overflow-wrap: anywhere; }
.ai-progress { padding: 0; list-style: none; font-size: 13px; line-height: 1.7; margin: 24px 0; }
.ai-progress li { padding: 10px 14px; margin-top: 6px; color: var(--muted); border-radius: 8px; }
.ai-progress .done { color: var(--teal-deep); font-weight: 700; }
.ai-progress .current { background: var(--popomo-pink-soft); color: var(--pink); font-weight: 700; border: 1px solid rgba(92, 38, 98, 0.22); }
.ai-countdown { font-size: 13px; line-height: 1.6; margin: 18px 0; color: var(--teal-deep); font-weight: 600; }
.ai-ready { color: var(--teal-deep); font-size: 14px; font-weight: 700; margin: 20px 0; }
.ai-upload-receipt { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.ai-upload-receipt img { width: 44px; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.ai-upload-receipt p { font-size: 11px; line-height: 1.7; color: var(--muted); }
.ai-upload-receipt strong { font-weight: 700; color: var(--pink); }
.ai-flow .back-link { margin-top: 10px; }
@media (max-width: 1050px) { .ai-order-layout { gap: 22px; grid-template-columns: 1fr 1fr; } .ai-order-card { padding: 22px; } .ai-comparison { padding: 16px; gap: 8px; } .ai-receipt-heading h2 { font-size: 21px; } }
@media (max-width: 700px) { .ai-order-layout { grid-template-columns: 1fr; gap: 20px; } .ai-heading { margin: 24px auto; } .ai-heading h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.8px; } .ai-heading > p:last-child { font-size: 13px; } .ai-order-card { padding: 20px 18px; } .ai-style-grid span { font-size: 10px; padding-inline: 6px; } .ai-style-grid small { font-size: 9px; padding-inline: 6px; } .ai-comparison img { max-height: 320px; } .ai-comparison figcaption { font-size: 9px; } .ai-order-layout .ai-comparison { padding: 14px; } .ai-consent { font-size: 12px; } }
.ai-resume { padding-block: 12px; font-size: 12px; font-weight: 600; color: var(--teal-deep); }
.ai-resume a { display: flex; justify-content: space-between; gap: 20px; }
.ai-resume span { text-decoration: underline; text-underline-offset: 3px; }

/* AI Studio Card */
.ai-studio-card { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(155deg, #FAF5FE 0%, #F9E5E7 100%); border: 1px solid var(--popomo-ai-purple-border); border-radius: 18px; padding: 22px; margin: 0 0 24px; box-shadow: var(--popomo-shadow-sm); }
.ai-studio-card:before { content: ''; position: absolute; width: 180px; height: 180px; right: -65px; top: 65px; border: 1.5px solid rgba(96, 43, 135, 0.18); border-radius: 50%; z-index: -1; box-shadow: 0 0 0 20px rgba(96, 43, 135, 0.06), 0 0 0 40px rgba(96, 43, 135, 0.035); }
.ai-studio-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.ai-studio-label { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: var(--pink); }
.ai-studio-label > span { display: grid; place-items: center; font-size: 20px; background: var(--pink); color: #FFFFFF; width: 34px; height: 34px; border-radius: 10px; border: 0; letter-spacing: 0; }
.ai-studio-price { font-size: 20px; line-height: 1.1; font-weight: 800; letter-spacing: -.5px; text-align: right; color: var(--ink); }
.ai-studio-price small { display: block; font-size: 10px; letter-spacing: 0; font-weight: 500; margin-top: 4px; color: var(--muted); }
.ai-studio-card h2 { font-size: 28px; line-height: 1.12; letter-spacing: -.8px; font-weight: 800; color: var(--ink); }
.ai-studio-card h2 em { font-family: Georgia, serif; font-weight: 400; color: var(--teal-deep); }
.ai-studio-intro { font-size: 13px; line-height: 1.6; color: var(--body); margin: 12px 0 18px; }
.ai-studio-card .ai-style-grid { gap: 10px; }
.ai-studio-card .ai-style-grid button { border-color: var(--line); border-radius: 10px; padding-bottom: 10px; transition: transform .15s ease, box-shadow .15s ease; }
.ai-studio-card .ai-style-grid button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(24, 7, 26, 0.1); }
.ai-studio-card .ai-style-grid button[aria-pressed=true] { border-color: var(--teal-deep); outline: 2px solid var(--teal-deep); outline-offset: 1px; }
.ai-style-image { position: relative; }
.ai-studio-card .ai-style-grid img { aspect-ratio: 3/4; object-position: center 25%; }
.ai-studio-card .ai-style-grid .ai-style-check { display: none; position: absolute; right: 7px; top: 7px; width: 22px; height: 22px; background: var(--teal-deep); color: #FFFFFF; border: 2px solid #FFFFFF; border-radius: 50%; padding: 0; place-items: center; font-size: 11px; }
.ai-studio-card [aria-pressed=true] .ai-style-check { display: grid; }
.ai-studio-example { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.ai-studio-example img { width: 32px; height: 40px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.ai-studio-example p { font-size: 12px; line-height: 1.5; color: var(--ink); }
.ai-studio-example small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.ai-studio-cta { background: linear-gradient(180deg, #652A6E 0%, #522059 100%); color: #FFFFFF; cursor: pointer; justify-content: space-between; font-size: 14px; border: 0; border-radius: 999px; box-shadow: 0 8px 20px rgba(92, 38, 98, 0.24); margin: 0; }
.ai-studio-cta:hover { background: linear-gradient(180deg, #5C2662 0%, #4A1C50 100%); }
.ai-studio-cta > span { font-size: 20px; font-weight: 400; }
.ai-studio-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ai-studio-links .text-button { font-size: 12px; color: var(--teal-deep); }
.ai-studio-wait { font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 4px; }
.ai-studio-card .effect-disclaimer { border-color: var(--popomo-ai-purple-border); color: var(--muted); font-size: 10px; margin-top: 12px; padding-top: 12px; }
@media (max-width: 700px) { .ai-studio-card { padding: 18px 16px; border-radius: 14px; } .ai-studio-card h2 { font-size: 26px; } .ai-studio-card .ai-style-grid { gap: 8px; } .ai-studio-card .ai-style-grid span { font-size: 10px; } .ai-studio-price { font-size: 18px; } .ai-studio-card .ai-studio-cta { min-height: 50px; } .ai-studio-label { font-size: 10px; letter-spacing: 1.3px; } }

/* Before/After Comparison */
.ai-before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ai-before-after figure { margin: 0; min-width: 0; background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.ai-before-after figcaption { padding: 10px 11px; font-size: 11px; font-weight: 700; line-height: 1.4; min-height: 52px; color: var(--ink); }
.ai-before-after figcaption span { display: block; font-size: 9px; letter-spacing: 1.3px; color: var(--muted); margin-bottom: 3px; }
.ai-before-after img { display: block; width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; object-position: center; }
.ai-before-after .ai-after { border-color: var(--teal-deep); box-shadow: 0 0 0 1px rgba(96, 43, 135, 0.22); }
.ai-before-after .ai-after figcaption { background: var(--accent-soft); color: var(--ink); }
.ai-before-after .ai-after figcaption span { color: var(--popomo-teal-dark); }
.ai-comparison-note { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 10px 0 14px; text-align: center; }
.ai-style-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 18px; }
.ai-style-tabs button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 8px 6px; border: 1.5px solid var(--line); background: #FFFFFF; border-radius: 10px; font-size: 11px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.ai-style-tabs button[aria-pressed=true] { background: var(--teal-deep); color: #FFFFFF; border-color: var(--teal-deep); }
.ai-style-tabs button:hover { border-color: var(--teal-deep); }
.ai-style-tabs button:focus-visible { outline: 3px solid #602B87; outline-offset: 2px; }
.ai-style-tabs button span { font-size: 12px; flex-shrink: 0; }
@media (max-width: 700px) { .ai-before-after { gap: 8px; } .ai-before-after figcaption { font-size: 10px; padding: 9px; min-height: 50px; } .ai-style-tabs { gap: 6px; } .ai-style-tabs button { font-size: 10px; gap: 3px; padding-inline: 4px; } .ai-comparison-note { font-size: 10px; } }

.ai-studio-card > .ai-studio-top { list-style: none; cursor: pointer; margin: 0; min-height: 38px; gap: 12px; }
.ai-studio-card > .ai-studio-top::-webkit-details-marker { display: none; }
.ai-studio-card > .ai-studio-top:focus-visible { outline: 3px solid #602B87; outline-offset: 4px; border-radius: 6px; }
.ai-studio-top .ai-studio-price { margin-left: auto; }
.ai-studio-chevron { font-size: 22px; color: var(--pink); transition: transform .15s ease; }
.ai-studio-card[open] .ai-studio-chevron { transform: rotate(180deg); }
.ai-studio-body { padding-top: 20px; }
.ai-studio-card:not([open]):before { display: none; }
.ai-studio-card:not([open]) { padding-block: 16px; }

.ai-example-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; overflow-x: auto; }
.ai-example-picker button { min-width: 0; padding: 5px 5px 8px; background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 10px; color: var(--body); }
.ai-example-picker button[aria-pressed=true] { border-color: var(--teal-deep); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--teal-deep); color: var(--popomo-teal-dark); }
.ai-example-picker img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; object-position: center 35%; margin-bottom: 6px; }
.ai-example-picker span { font-size: 10px; font-weight: 700; }
.ai-example-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.ai-example-heading strong { font-size: 12px; font-weight: 700; color: var(--ink); }
.ai-example-heading > span { font-size: 11px; color: var(--muted); }
.ai-style-tabs.single-style { grid-template-columns: 1fr; }
.ai-style-tabs.single-style button { min-height: 38px; }
.ai-example-picker button:focus-visible { outline: 3px solid #602B87; outline-offset: 2px; }
@media (max-width: 700px) { .ai-example-picker { gap: 6px; } .ai-example-picker span { font-size: 9px; } .ai-example-picker button { padding: 4px 4px 7px; } .ai-example-heading strong { font-size: 11px; } }

/* Print Pricing & Membership */
.print-price-card { border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.print-price-card > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.print-price-card span { font-size: 13px; font-weight: 700; color: var(--ink); }
.print-price-card strong { font-size: 28px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; color: var(--ink); }
.print-price-card small { font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.print-price-card p { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 7px; }
.print-price-card .print-price-extra { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.print-price-extra b { color: var(--ink); font-weight: 700; }
.pass-code > .pass-print-price { margin: 14px 0 8px; font-size: 12px; }
.pass-print-price strong { font-size: 20px; color: var(--ink); }
.station-print-price { margin-top: 10px; }
.station-print-price + .field-note { margin-bottom: 20px; }

.membership-summary { padding: 15px 17px; background: var(--accent-soft); border: 1.5px solid var(--teal-deep); border-radius: 14px; margin: 0 0 20px; }
.membership-summary strong { font-size: 13px; color: var(--popomo-teal-dark); }
.membership-summary p { font-size: 12px; line-height: 1.6; color: var(--body); margin-top: 6px; }
.membership-summary .text-button { font-size: 12px; padding-bottom: 0; }
.ai-order-card .membership-summary { margin-top: 22px; }
.membership-plan { max-width: 540px; margin: 0 auto; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--popomo-radius-card); box-shadow: var(--popomo-shadow-md); padding: 32px; }
.membership-plan h2 { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; margin-top: 18px; color: var(--ink); }
.membership-plan h2 small { font-size: 14px; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.plan-count { font-size: 16px; font-weight: 700; color: var(--teal-deep); margin: 12px 0 22px; }
.membership-plan ul { font-size: 13px; line-height: 1.8; padding-left: 18px; margin: 20px 0; color: var(--body); }
.membership-plan li { margin-bottom: 8px; }
.plan-status { font-size: 13px; line-height: 1.7; margin: 20px 0; color: var(--body); }
.checkout-preview { background: var(--surface-2); border-radius: 16px; text-align: center; padding: 36px 24px; }
.checkout-case { width: 180px; margin: 0 auto 24px; }
.checkout-preview h2 { font-size: 22px; font-weight: 800; color: var(--ink); }
.checkout-preview p { font-size: 13px; margin-top: 8px; color: var(--muted); }
@media (max-width: 700px) { .membership-plan { padding: 24px 20px; } .checkout-case { width: 140px; } .ai-studio-price small { font-size: 9px; } }

/* Prominent Photo Upload & Direct Manipulation */
.photo-upload-prominent { padding: 22px; border: 1.5px solid var(--teal); border-radius: 18px; background: var(--accent-soft); margin: 22px 0; box-shadow: var(--popomo-shadow-sm); }
.upload-heading { display: flex; gap: 14px; align-items: center; }
.upload-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; color: var(--teal-deep); }
.choose-details .photo-upload-prominent h2 { font-size: 21px; letter-spacing: -.5px; font-weight: 800; margin: 0; line-height: 1.25; color: var(--ink); }
.upload-heading p { font-size: 12px; line-height: 1.6; color: var(--body); margin-top: 6px; }
.photo-upload-prominent .upload-primary { background: linear-gradient(180deg, #652A6E 0%, #522059 100%); color: #FFFFFF; border: 0; box-shadow: 0 8px 20px rgba(92, 38, 98, 0.24); margin-top: 18px; border-radius: 999px; min-height: 50px; font-size: 14px; font-weight: 700; gap: 10px; }
.upload-primary > span { margin-left: auto; font-size: 20px; }
.upload-primary:hover { background: linear-gradient(180deg, #5C2662 0%, #4A1C50 100%); }
.upload-primary:focus-visible { outline: 3px solid #602B87; outline-offset: 4px; }
.upload-formats { font-size: 11px; line-height: 1.7; color: var(--muted); text-align: center; margin-top: 12px; }
.photo-upload-prominent:focus-within { border-color: var(--teal-deep); }
@media (max-width: 700px) { .photo-upload-prominent { padding: 18px 16px; } .choose-details .photo-upload-prominent h2 { font-size: 19px; } .upload-heading { gap: 12px; } .upload-icon { width: 42px; height: 42px; } }

.artwork-panel-hint { font-size: 11px; color: var(--muted); margin-left: auto; margin-right: 10px; }
.artwork-help { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 14px 0 6px; }
.artwork-nudge { display: grid; grid-template-columns: 1fr 1fr 1.4fr 1fr 1fr; gap: 6px; margin-top: 14px; }
.artwork-nudge button { border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface-2); min-height: 40px; font-size: 16px; color: var(--ink); }
.artwork-nudge [data-action=center-artwork] { font-size: 12px; font-weight: 700; }
.artwork-nudge button:hover { background: var(--accent-soft); border-color: var(--teal-deep); }
.artwork-panel input[type=range] { accent-color: #602B87; }

.large-case.artwork-canvas { transform: none; touch-action: auto; cursor: default; user-select: none; position: relative; overflow: visible; }
.artwork-canvas .design-layer { pointer-events: auto; cursor: grab; touch-action: none; }
.artwork-canvas .design-layer > span, .artwork-canvas .design-layer > img { pointer-events: none; }
.artwork-canvas .camera { cursor: not-allowed; }
.artwork-canvas .artwork-selected { outline: 2px dashed #602B87; outline-offset: 5px; border-radius: 4px; }
.artwork-canvas.whole-design-selected .phone-case { outline: 2px dashed #602B87; outline-offset: 7px; }
.artwork-canvas.is-dragging, .artwork-canvas.is-dragging .design-layer { cursor: grabbing; }
.visual-design-choices { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; padding: 0; min-width: 0; }
.visual-design-choices legend { margin-bottom: 12px; }
.design-thumbnail { position: relative; display: grid; place-items: center; min-width: 0; height: 103px; padding: 10px 6px; background: var(--swatch); border: 2px solid transparent; border-radius: 10px; overflow: hidden; }
.design-thumbnail.selected { border-color: var(--teal-deep); box-shadow: 0 0 0 2px rgba(96, 43, 135, 0.22); }
.design-thumbnail-case { width: 34px; display: block; pointer-events: none; }
.design-thumbnail .phone-case { border-width: 1px; box-shadow: 2px 4px 7px rgba(24, 7, 26, 0.14); }
.design-thumbnail-check { position: absolute; bottom: 3px; right: 3px; color: var(--teal-deep); font-size: 11px; font-weight: 800; }
.design-thumbnail .camera { border-width: .5px; }
.design-thumbnail .camera i { border-width: .5px; }
.visual-editor { border: 1.5px solid var(--line); border-radius: 14px; background: #FFFFFF; padding: 20px; margin: 0 0 24px; }
.visual-editor-heading { display: flex; justify-content: space-between; align-items: center; }
.choose-details .visual-editor-heading h2 { font-size: 19px; letter-spacing: -.4px; font-weight: 700; margin: 0; }
.visual-editor-heading > span { font-size: 24px; color: var(--teal-deep); }
.visual-editor .artwork-help { margin: 7px 0 16px; font-size: 12px; }
.artwork-pieces { display: flex; gap: 9px; margin-bottom: 18px; }
.artwork-pieces button { min-width: 0; flex: 1; height: 82px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 8px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.artwork-pieces button[aria-pressed=true] { border: 1.5px solid #602B87; background: #FAF5FE; }
.artwork-pieces img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.artwork-text-thumb { font-size: 14px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; max-height: 100%; overflow: hidden; }
.all-artwork-thumb { display: block; width: 25px; pointer-events: none; margin-right: 8px; }
.all-artwork-thumb .phone-case { border-width: 1px; box-shadow: none; }
.all-artwork-thumb .camera i { border-width: .5px; }
.artwork-pieces small { font-size: 11px; color: var(--muted); }
.visual-editor-slider { display: grid; grid-template-columns: 45px 16px 1fr 16px; gap: 7px; align-items: center; margin: 14px 0; }
.visual-editor-slider label { font-size: 12px; margin: 0; }
.visual-editor-slider > span { text-align: center; color: var(--teal-deep); }
.visual-editor-slider input[type=range] { width: 100%; min-height: 30px; height: 30px; padding: 0; accent-color: #602B87; margin: 0; border: 0; box-shadow: none; background: transparent; }
.artwork-tools { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.artwork-tools button { flex: 1; border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 8px; min-height: 40px; font-size: 12px; font-weight: 600; color: var(--ink); }
.artwork-tools button:hover { border-color: var(--teal-deep); background: var(--accent-soft); }
.artwork-keyboard { font-size: 10px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.artwork-pieces button:focus-visible, .design-thumbnail:focus-visible { outline: 3px solid #602B87; outline-offset: 2px; }
@media (max-width: 700px) { .visual-editor { padding: 18px 16px; } .visual-design-choices { gap: 5px; } .design-thumbnail { height: 84px; padding: 8px 3px; } .design-thumbnail-case { width: 28px; } .artwork-pieces { gap: 7px; } .artwork-pieces button { height: 72px; padding: 6px; } .artwork-text-thumb { font-size: 12px; } .large-case.artwork-canvas { width: 155px; } }

/* Transform Gizmo Handles */
.artwork-gizmo { position: absolute; border: 1.5px dashed #602B87; z-index: 8; pointer-events: none; transform-origin: center; }
.artwork-handle { position: absolute; display: grid; place-items: center; pointer-events: auto; width: 26px; height: 26px; min-height: 0; padding: 0; border: 2px solid #FFFFFF; border-radius: 50%; background: #602B87; color: #FFFFFF; box-shadow: 0 2px 6px rgba(24, 7, 26, 0.25); touch-action: none; font-size: 18px; line-height: 1; cursor: nwse-resize; }
.artwork-handle:before { content: ''; position: absolute; inset: -7px; border-radius: 50%; }
.resize-nw { left: 0; top: 0; transform: translate(-50%, -50%); }
.resize-ne { right: 0; top: 0; transform: translate(50%, -50%); cursor: nesw-resize; }
.resize-sw { left: 0; bottom: 0; transform: translate(-50%, 50%); cursor: nesw-resize; }
.resize-se { right: 0; bottom: 0; transform: translate(50%, 50%); }
.rotate-handle { left: 50%; top: -38px; transform: translateX(-50%); cursor: grab; width: 30px; height: 30px; }
.rotation-stem { position: absolute; width: 1.5px; height: 24px; left: 50%; top: -24px; background: #602B87; }
.artwork-reset { position: absolute; left: 50%; bottom: -38px; transform: translateX(-50%); width: 28px; height: 28px; min-height: 0; padding: 0; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: #FFFFFF; color: var(--teal-deep); font-size: 18px; pointer-events: auto; cursor: pointer; }
.artwork-handle:focus-visible, .artwork-reset:focus-visible { outline: 3px solid #602B87; outline-offset: 2px; }
.artwork-canvas .design-layer:focus-visible { outline: 2px dashed #602B87; outline-offset: 3px; }
@media (max-width: 700px) { .artwork-handle { width: 28px; height: 28px; } .rotate-handle { width: 32px; height: 32px; } .artwork-canvas { margin-block: 25px; } .large-preview .preview-caption { max-width: 90%; line-height: 1.5; text-align: center; } .large-preview:has(.artwork-canvas) { height: 440px; } .large-preview:has(.artwork-canvas) .preview-caption { bottom: 15px; } }

/* Personalization Library & Inline Text */
.graphic-library, .text-editor { padding: 20px; border: 1.5px solid var(--line); border-radius: 14px; background: #FFFFFF; margin: 0 0 22px; }
.library-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.graphic-library h2, .text-editor h2 { font-size: 19px; letter-spacing: -.4px; font-weight: 700; margin: 0; color: var(--ink); }
.library-title > span { font-size: 11px; color: var(--muted); }
.graphic-library > p { font-size: 12px; color: var(--muted); margin: 8px 0 16px; line-height: 1.5; }
.graphic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.graphic-grid button { min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 9px 5px; display: flex; flex-direction: column; align-items: center; gap: 7px; transition: background-color .15s ease, border-color .15s ease; }
.graphic-grid button:hover { background: var(--accent-soft); border-color: var(--teal-deep); }
.graphic-grid img { width: 40px; height: 40px; object-fit: contain; pointer-events: none; }
.graphic-grid span { font-size: 10px; line-height: 1.2; text-align: center; color: var(--ink); }
.library-more { margin-top: 14px; color: var(--teal-deep); font-size: 12px; }
.graphic-library .library-credit { font-size: 10px; margin: 12px 0 0; color: var(--muted); }
.text-editor > label { font-size: 12px; font-weight: 600; margin: 10px 0; color: var(--body); }
.text-editor textarea { font: inherit; resize: vertical; width: 100%; min-height: 80px; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; color: var(--ink); background: var(--surface-2); }
.text-style-row { display: grid; grid-template-columns: 1fr 64px; gap: 14px; margin: 14px 0; }
.text-style-row label { font-size: 12px; margin: 0; }
.text-style-row select, .text-style-row input { margin: 8px 0 0; width: 100%; height: 42px; min-height: 42px; padding: 6px; border: 1.5px solid var(--line); border-radius: 8px; }
.text-actions { display: flex; align-items: center; gap: 15px; }
.text-add { background: linear-gradient(180deg, #7D4AA3 0%, #602B87 100%); color: #FFFFFF; border: 0; box-shadow: 0 4px 12px rgba(96, 43, 135, 0.28); min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.text-actions [hidden] { display: none; }
.artwork-delete { position: absolute; bottom: -38px; right: -14px; width: 28px; height: 28px; min-height: 0; padding: 0; border: 1.5px solid #BE123C; border-radius: 50%; background: #FFFFFF; color: #BE123C; font-size: 20px; pointer-events: auto; }
.case-art > .placed-photo { position: absolute; transform-origin: center; max-width: none; }
.artwork-canvas .placed-photo { cursor: grab; touch-action: none; user-select: none; }
.artwork-canvas .design-layer:has(.layer-text) { min-height: 1em; }
.artwork-canvas.is-dragging .placed-photo { cursor: grabbing; }
@media (max-width: 700px) { .graphic-library, .text-editor { padding: 18px 16px; } .graphic-grid img { width: 38px; height: 38px; } .graphic-grid { gap: 7px; } }

.artwork-canvas .design-layer > [data-inline-text] { pointer-events: auto; user-select: text; -webkit-user-select: text; touch-action: auto; cursor: text; outline: 0; min-height: 1.15em; caret-color: #602B87; background: rgba(255, 255, 255, 0.2); border-radius: 4px; }
.artwork-canvas .design-layer:has([data-inline-text]) { user-select: text; touch-action: auto; cursor: text; }
.artwork-edit-text { position: absolute; left: -14px; bottom: -38px; width: 28px; height: 28px; min-height: 0; display: grid; place-items: center; padding: 0; background: #FFFFFF; color: var(--teal-deep); border: 1.5px solid var(--ink); border-radius: 50%; pointer-events: auto; font-size: 17px; }
.text-quick-tools { position: absolute; left: calc(100% + 10px); width: 132px; padding: 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--popomo-radius-sm); box-shadow: var(--popomo-shadow-md); z-index: 10; cursor: default; user-select: none; }
.quick-label { display: block; font-size: 10px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.quick-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 12px; }
.quick-fonts button { height: 34px; min-height: 0; padding: 3px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 6px; font-size: 18px; }
.quick-fonts button[aria-pressed=true] { border-color: var(--teal-deep); background: var(--accent-soft); color: var(--popomo-teal-dark); }
.quick-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.quick-colors button { height: 23px; width: 23px; min-height: 0; padding: 0; justify-self: center; border: 1.5px solid var(--line); border-radius: 50%; background: var(--color); }
.quick-colors button[aria-pressed=true] { outline: 2px solid #602B87; outline-offset: 2px; }
.quick-custom { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 10px; font-weight: 500; margin: 0; color: var(--muted); }
.quick-custom input[type=color] { width: 28px; height: 25px; min-height: 25px; padding: 1px; border: 1.5px solid var(--line); border-radius: 4px; margin: 0; background: #FFFFFF; }
.text-editor > p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 10px 0 16px; }
.text-editor .text-add { width: 100%; }
.text-quick-tools button:focus-visible, .artwork-edit-text:focus-visible { outline: 2px solid #602B87; outline-offset: 3px; }
@media (max-width: 700px) { .text-quick-tools { width: 82px; padding: 8px; left: calc(100% + 7px); border-radius: 10px; } .quick-fonts { gap: 4px; margin-bottom: 10px; } .quick-fonts button { height: 29px; font-size: 17px; } .quick-label { font-size: 9px; margin-bottom: 7px; } .quick-colors { gap: 7px 4px; margin-bottom: 9px; } .quick-colors button { width: 16px; height: 16px; } .quick-custom { flex-direction: column; align-items: stretch; font-size: 8px; } .quick-custom input[type=color] { width: 100%; height: 23px; min-height: 23px; } }
@media (max-width: 380px) { .large-case.artwork-canvas:has(.text-quick-tools) { left: -30px; } }

/* Phone Model Selector */
.model-first { margin-bottom: 24px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.model-first summary { display: flex; align-items: center; gap: 12px; padding: 16px 22px; cursor: pointer; list-style: none; font-size: 14px; min-height: 56px; }
.model-first summary::-webkit-details-marker { display: none; }
.model-summary-label { color: var(--muted); }
.model-summary-value { font-weight: 700; color: var(--ink); }
.model-summary-action { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.model-summary-chevron { color: var(--teal-deep); font-size: 17px; transition: transform .15s ease; }
.model-first[open] .model-summary-chevron { transform: rotate(180deg); }
.model-first summary:focus-visible { outline: 2px solid #602B87; outline-offset: -4px; border-radius: 12px; }
.model-first-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 20px 22px 24px; border-top: 1.5px solid var(--line); }
.model-first h2 { font-size: 20px; letter-spacing: -.4px; font-weight: 700; color: var(--ink); }
.model-first p { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 8px; }
.model-first-field { width: 320px; flex-shrink: 0; }
.model-first label { display: block; font-size: 12px; font-weight: 700; margin: 0 0 8px; }
.model-first-field p { font-size: 11px; margin-top: 7px; }
.model-brand-section { flex: 0 0 190px; min-width: 0; }
.model-first .model-brand-section h2, .model-device-section > label { font-size: 13px; font-weight: 700; letter-spacing: 0; margin: 0 0 12px; display: block; }
.model-brands { display: flex; flex-wrap: wrap; gap: 8px; }
.model-brands button { flex: 1; min-width: 80px; min-height: 44px; border: 1.5px solid var(--line); background: #FFFFFF; border-radius: 999px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.model-brands button[aria-pressed=true] { background: var(--teal-deep); color: #FFFFFF; border-color: var(--teal-deep); }
.model-device-section { flex: 1; min-width: 0; width: 100%; }
.model-device-section input { min-height: 44px; font-size: 14px; background: #FFFFFF; }
.model-first .model-result-count { font-size: 11px; margin: 10px 0; color: var(--muted); }
.model-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 228px; overflow-y: auto; padding: 3px; scrollbar-gutter: stable; }
.model-options button { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; border: 1.5px solid var(--line); border-radius: 10px; background: #FFFFFF; padding: 12px; font-size: 13px; font-weight: 600; text-align: left; color: var(--ink); }
.model-options button[aria-pressed=true] { border-color: #602B87; background: #FAF5FE; color: #522059; }
.model-options button > span:last-child { color: var(--teal-deep); flex-shrink: 0; }
.model-options button:focus-visible { outline-offset: 0; }
.model-first .model-empty { padding: 18px 12px; border: 1.5px dashed var(--line); border-radius: 10px; font-size: 12px; color: var(--muted); }
.model-first #model-first-note { font-size: 11px; margin-top: 12px; line-height: 1.6; }
.model-options:empty { display: none; }
@media (max-width: 700px) { .model-first { margin-bottom: 18px; } .model-first summary { padding: 14px 16px; gap: 8px; font-size: 13px; } .model-first-body { align-items: stretch; flex-direction: column; gap: 18px; padding: 18px 16px; } .model-first h2 { font-size: 19px; } .model-first-field { width: 100%; } .model-first p { font-size: 12px; } .model-brand-section { flex: auto; width: 100%; } .model-brands button { flex: 0 1 auto; min-width: 90px; } .model-options { max-height: 212px; } .model-options button { padding: 11px 9px; font-size: 12px; } }
@media (max-width: 360px) { .model-options { grid-template-columns: 1fr; } }

.artwork-selection-actions { position: absolute; top: 48px; right: 16px; z-index: 12; }
.artwork-selection-actions button { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 9px 14px; border: 1.5px solid #BE123C; border-radius: 999px; background: #FFF1F4; color: #9F1239; font-size: 12px; font-weight: 700; box-shadow: 0 3px 10px rgba(190, 18, 60, 0.12); }
.artwork-selection-actions button:hover { background: #FFE4E9; }
.artwork-selection-actions button:focus-visible { outline: 3px solid #BE123C; outline-offset: 2px; }
@media (max-width: 700px) { .artwork-selection-actions { top: 45px; right: 12px; } .artwork-selection-actions button { min-height: 40px; padding: 9px 11px; font-size: 11px; } }

.ai-effect-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ai-effect-previews button { display: flex; flex-direction: column; gap: 7px; padding: 7px; min-width: 0; white-space: normal; }
.ai-effect-previews button img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; }
.ai-effect-previews button span { font-size: 11px; line-height: 1.35; }
.catalog-warning { padding: 14px 24px; background: #FFFBEB; border-bottom: 1.5px solid #D97706; color: #92400E; font-size: 13px; font-weight: 600; text-align: center; }

/* Order Email, Rows & History Primitives */
.order-email { display: grid; gap: 9px; margin: 20px 0; font-size: 14px; }
.order-email-signed strong { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); border: 1.5px solid var(--teal-deep); color: var(--popomo-teal-dark); overflow-wrap: anywhere; }
.order-email input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #FFFFFF; font: inherit; }
.order-email small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.order-reference { text-align: center; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; margin: 22px 0; color: var(--body); }
.order-reference a { color: var(--teal-deep); font-weight: 700; }
.cancel-order { display: block; margin: 20px auto; color: #BE123C; }
.order-list { display: grid; gap: 18px; margin: 24px 0; }
.order-row { display: flex; justify-content: space-between; gap: 24px; padding: 26px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--popomo-radius-card); box-shadow: var(--popomo-shadow-sm); }
.order-row h2 { font-size: 20px; font-weight: 800; margin: 10px 0; color: var(--ink); }
.order-row p { font-size: 13px; overflow-wrap: anywhere; color: var(--body); }
.order-row small { color: var(--muted); }
.order-row > div:last-child:not(.order-card-content) { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 16px; }
.order-row .button { white-space: nowrap; }
.order-row .eyebrow { font-size: 10px; }
@media (max-width: 700px) { .order-row { padding: 18px; flex-direction: column; gap: 15px; } .order-row > div:last-child:not(.order-card-content) { flex-direction: row; align-items: center; justify-content: space-between; } .order-row .button { padding: 11px 16px; } .header nav { display: flex; } .header nav a:first-child { display: none; } .header { gap: 12px; } .header nav a { font-size: 12px; } }

/* AI Case Gallery */
.ai-case-gallery { display: grid; gap: 16px; max-height: 620px; overflow-y: auto; overscroll-behavior: contain; padding: 3px 5px 3px 3px; margin: 0 -5px 18px -3px; scrollbar-width: thin; scrollbar-color: #7D4AA3 transparent; }
.ai-case-group { min-width: 0; background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; }
.ai-case-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.ai-case-heading h3 { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.ai-case-heading > span { font-size: 11px; white-space: nowrap; color: var(--teal-deep); font-weight: 600; }
.ai-case-subject { font-size: 11px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.ai-case-images { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 12px; align-items: start; }
.ai-case-original { margin: 0; min-width: 0; padding-right: 10px; border-right: 1.5px solid var(--line); }
.ai-case-original img, .ai-look-image img { display: block; width: 100%; height: auto; aspect-ratio: 2/3; object-fit: contain; border-radius: 8px; background: var(--surface-2); }
.ai-case-original figcaption { font-size: 10px; line-height: 1.4; color: var(--muted); margin-top: 8px; text-align: center; }
.ai-case-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 7px; align-items: start; }
.ai-look { display: block; min-width: 0; padding: 4px; border: 1.5px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); text-align: center; }
.ai-look-image { display: block; position: relative; }
.ai-look-name { display: block; font-size: 11px; font-weight: 600; line-height: 1.4; padding: 7px 2px 3px; overflow-wrap: anywhere; }
.ai-look-check { display: none; position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-deep); color: #FFFFFF; border: 2px solid #FFFFFF; font-size: 10px; place-items: center; }
.ai-look[aria-pressed=true] { border-color: #602B87; box-shadow: 0 0 0 1px rgba(96, 43, 135, 0.22); background: #FAF5FE; color: #522059; }
.ai-look[aria-pressed=true] .ai-look-check { display: grid; }
.ai-look:hover { border-color: var(--teal-deep); }
.ai-look:focus-visible { outline: 3px solid #602B87; outline-offset: 2px; }
.ai-chosen-look { display: flex; flex-direction: column; gap: 4px; padding: 12px 0 16px; font-size: 12px; line-height: 1.5; color: var(--teal-deep); }
.ai-chosen-look > span { font-size: 10px; color: var(--muted); }
.ai-chosen-look strong { font-weight: 700; color: var(--ink); }
@media (max-width: 700px) { .ai-case-gallery { max-height: 600px; } .ai-case-group { padding: 11px; } .ai-case-images { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 9px; } .ai-case-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 6px; } .ai-case-original { padding-right: 7px; } .ai-case-heading h3 { font-size: 13px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.simple-language select { min-height: 36px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; max-width: 112px; cursor: pointer; }
.simple-language select:focus-visible { outline: 2px solid #602B87; outline-offset: 3px; }
.header .simple-language { margin: 0 0 0 14px; flex-shrink: 0; }
.header .saved-link { white-space: nowrap; }
@media (max-width: 700px) { .header { gap: 12px; } .header .simple-language { margin-left: 0; } .simple-language select { font-size: 11px; max-width: 86px; padding: 6px 10px; } .header .saved-link { margin-left: auto; } .header .saved-link span { font-size: 11px; } .header .wordmark { min-width: 0; } }

/* Vendor artwork & lens overlay geometry */
.phone-case.vendor-template { border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; isolation: isolate; filter: drop-shadow(5px 9px 10px rgba(24, 7, 26, 0.14)); }
.vendor-template .print-surface { position: absolute; inset: 0; overflow: hidden; mask-image: var(--print-mask); -webkit-mask-image: var(--print-mask); mask-size: 100% 100%; -webkit-mask-size: 100% 100%; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; mask-mode: alpha; }
.vendor-template .template-overlay { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; user-select: none; }
.template-tools { width: 100%; text-align: center; margin-top: 12px; position: relative; z-index: 1; }
.template-tools .template-note { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 0 0 10px; }
.template-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.template-downloads button { background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 12px; font-weight: 600; min-height: 36px; color: var(--ink); }
.template-tools .template-export-note { display: block; font-size: 10px; line-height: 1.5; color: var(--muted); margin-top: 7px; }
.large-preview:has(.template-tools) { height: auto; min-height: 580px; padding: 65px 24px 65px; }
.large-preview:has(.template-tools) .large-case { flex-shrink: 0; }
@media (max-width: 700px) { .large-preview:has(.template-tools) { min-height: 520px; padding: 55px 16px 55px; } }

.model-template-options button { gap: 12px; padding: 14px; min-height: 120px; }
.model-template-preview { display: block; width: 44px; flex: 0 0 44px; pointer-events: none; }
.model-template-preview .phone-case { filter: none; }
.model-template-name { flex: 1; min-width: 0; }
@media (max-width: 700px) { .model-template-options button { gap: 8px; padding: 10px; min-height: 114px; } .model-template-preview { width: 38px; flex-basis: 38px; } }

.ai-result-placeholder { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 14px; text-align: center; }
.ai-result-placeholder > div { margin: auto; padding: 24px 12px; color: var(--teal-deep); }
.ai-result-placeholder > div > span { font-size: 40px; }
.ai-result-placeholder p { font-size: 13px; line-height: 1.6; color: var(--body); }
.ai-error { padding: 14px; background: #FFF1F4; border: 1.5px solid rgba(190, 18, 60, 0.35); color: #9F1239; border-radius: 12px; font-size: 14px; line-height: 1.6; }

/* Base Account Primitives (POPOMO Plan F Soft-Luxe Lavender) */
.account-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: inherit; text-decoration: none; white-space: nowrap; }
.account-flow { max-width: 540px; margin: 30px auto 60px; }
.account-card { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--popomo-radius-card); background: #FFFFFF; padding: 30px; box-shadow: var(--popomo-shadow-md); }
.account-symbol { width: 54px; height: 54px; display: grid; place-items: center; background: var(--accent-soft); border: 1.5px solid var(--teal-deep); border-radius: 16px; color: var(--teal-deep); margin-bottom: 20px; }
.account-card h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; letter-spacing: -.8px; line-height: 1.15; margin: 10px 0 14px; color: var(--ink); }
.account-card p { font-size: 14px; line-height: 1.65; color: var(--body); }
.account-gift { border-radius: 16px; background: var(--accent-soft); border: 1.5px solid var(--teal-deep); padding: 18px; margin: 20px 0; display: grid; gap: 6px; }
.account-gift > span, .account-gift small { font-size: 12px; color: var(--muted); }
.account-gift strong { font-size: 24px; font-weight: 800; color: var(--ink); }
.account-gift strong span { font-size: 16px; }
.account-card form { display: grid; gap: 12px; }
.account-card input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #FFFFFF; font: inherit; font-size: 16px; color: var(--ink); }
.account-card input:focus { border-color: #602B87; box-shadow: 0 0 0 3px rgba(96, 43, 135, 0.16); outline: none; }
.account-card label { font-size: 13px; font-weight: 700; color: var(--ink); }
.account-card small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.account-card form .button { margin-top: 8px; }
.account-card #customer-code { font-size: 24px; letter-spacing: .32em; font-weight: 700; text-align: center; }
.account-secondary { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.account-card .account-error { background: #FFF1F4; border: 1.5px solid rgba(190, 18, 60, 0.35); color: #9F1239; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.account-card .account-sent { background: #FAF5FE; border: 1.5px solid rgba(96, 43, 135, 0.3); color: var(--popomo-teal-dark); padding: 11px 14px; border-radius: 12px; font-weight: 600; }
.account-card .account-email { overflow-wrap: anywhere; }
.account-balance { display: grid; gap: 8px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 16px; padding: 20px; margin: 20px 0; }
.account-balance strong { font-size: 40px; font-weight: 800; color: var(--ink); }
.account-balance span { font-size: 13px; color: var(--teal-deep); font-weight: 600; }
.account-card .account-note { font-size: 12px; margin-top: 20px; color: var(--muted); }
.account-card button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 600px) { .account-card { padding: 22px 18px; } .account-flow { margin-top: 16px; } .header .account-link span { display: none; } .header .account-link { min-width: 32px; min-height: 40px; justify-content: center; } }

.account-verified { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--popomo-teal-dark); padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(96, 43, 135, 0.24); }
.account-balances { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 12px; }
.account-balances .account-balance { margin: 0; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.account-balances .account-balance strong { font-size: 34px; }
.account-balances .account-balance span { font-size: 12px; line-height: 1.5; }
.account-card .account-credit-note { font-size: 12px; line-height: 1.7; color: var(--muted); }
.account-profile { text-align: left; border-top: 1.5px solid var(--line); padding-top: 20px; margin-top: 20px; }
.account-profile .text-button { font-size: 12px; padding: 12px 0; }
.account-card .account-joined { font-size: 12px; text-align: left; color: var(--muted); }
.account-shortcuts { display: flex; justify-content: center; gap: 20px; margin: 18px 0 8px; font-size: 13px; }

.account-ledger { margin-top: 20px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 16px; text-align: left; background: var(--surface-2); }
.account-ledger-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; border: 0; background: none; padding: 16px 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.account-card .account-ledger-note { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 0 0 14px; }
.credit-entries { list-style: none; margin: 0; padding: 0; max-height: 350px; overflow-y: auto; }
.credit-entries li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.credit-entries strong { font-size: 13px; line-height: 1.5; display: block; color: var(--ink); }
.credit-entries small { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.credit-ref { overflow-wrap: anywhere; max-width: 180px; }
.credit-entry-amount { text-align: right; white-space: nowrap; flex-shrink: 0; }
.credit-entry-amount b { font-size: 17px; }
.credit-plus { color: #15803D; }
.credit-minus { color: var(--pink); }
.account-ledger > .text-button { font-size: 12px; margin: 8px 0 14px; }

/* Photo Home Helpers */
.photo-home { grid-template-columns: minmax(0, 1fr) 250px; gap: 60px; padding-block: 42px 56px; }
.photo-home-scene { height: 540px; }
.photo-home-art { display: contents; }
.photo-home-scene:before { width: 400px; height: 400px; left: 18%; top: 14%; }
.album-snapshot { position: absolute; left: 10%; top: 85px; width: 40%; max-width: 280px; margin: 0; padding: 12px 12px 18px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--popomo-shadow-md); transform: rotate(-10deg); }
.album-snapshot img { display: block; width: 100%; height: 280px; object-fit: cover; border-radius: 6px; }
.album-snapshot figcaption { text-align: center; font-size: 11px; font-weight: 700; line-height: 1.5; margin-top: 12px; color: var(--ink); }
.photo-home-scene .photo-result { right: 13%; top: 104px; width: 195px; transform: rotate(12deg); z-index: 2; }
.photo-scene-arrow { position: absolute; left: 52%; top: 70px; color: var(--teal-deep); transform: rotate(28deg); }
.photo-scene-arrow svg { width: 42px; height: 42px; }
.photo-home-scene .scene-star { right: auto; left: 15%; bottom: 75px; font-size: 54px; }
.photo-upload-target { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; width: 100%; border: 0; border-radius: inherit; background: transparent; padding: 0 12px 48px; color: var(--ink); cursor: pointer; }
.photo-tap-hint { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); font-size: 12px; font-weight: 700; box-shadow: var(--popomo-shadow-sm); }
.photo-upload-target:hover { background: rgba(255, 255, 255, 0.08); }
.photo-upload-target:focus-visible { outline: 3px solid #602B87; outline-offset: -5px; }
.photo-home-action { text-align: center; min-width: 0; }
.photo-up-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; aspect-ratio: 1; border: 0; border-radius: 24px; background: linear-gradient(180deg, #652A6E 0%, #522059 100%); color: #FFFFFF; box-shadow: 0 8px 20px rgba(92, 38, 98, 0.24); cursor: pointer; transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.photo-up-button > svg { width: 112px; height: 112px; }
.photo-up-button:hover { background: linear-gradient(180deg, #5C2662 0%, #4A1C50 100%); transform: translateY(-2px); }
.photo-up-button:focus-visible { outline: 3px solid #602B87; outline-offset: 4px; }
.photo-home-action h1 { font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: 0; margin: 20px 0 6px; }
.photo-home-action p { font-size: 12px; line-height: 1.7; color: var(--muted); }
.collection-home-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; max-width: 100%; min-height: 44px; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--teal-deep); text-decoration: underline; text-underline-offset: 4px; }
.collection-home-link:hover { color: var(--ink); }
.home-how { padding-block: 34px; }
.home-how .how-layout { gap: 60px; grid-template-columns: 220px minmax(0, 1fr); }
.home-how .how-layout h2 { font-size: 24px; letter-spacing: -.5px; line-height: 1.35; margin-top: 12px; }
.home-how .how-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-how .how-list li { display: block; padding: 0; border: 0; }
.home-how .how-list li > span { display: block; margin-bottom: 12px; font-size: 11px; }
.home-how .how-list h3 { font-size: 14px; line-height: 1.5; }
.home-how .how-list p { font-size: 12px; line-height: 1.7; }
.home-gallery { padding-top: 48px; }
@media (min-width: 701px) and (max-width: 1000px) { .photo-home { grid-template-columns: minmax(0, 1fr) 180px; gap: 28px; } .photo-home-scene { height: 440px; } .photo-home-scene:before { width: 300px; height: 300px; left: 10%; } .album-snapshot { left: 7%; top: 90px; width: 47%; padding: 9px 9px 14px; } .album-snapshot img { height: 200px; } .photo-home-scene .photo-result { width: 140px; right: 8%; top: 116px; } .photo-scene-arrow { top: 66px; left: 55%; } .photo-home-scene .scene-number { display: none; } .photo-up-button > svg { width: 88px; height: 88px; } .home-how .how-layout { grid-template-columns: 1fr; gap: 24px; } .home-how .how-layout h2 br { display: none; } }
@media (max-width: 700px) {
  .photo-home.wrap { width: calc(100% - 16px); grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 8px 16px; align-items: stretch; }
  .photo-home-scene { grid-area: 1/1; height: clamp(440px, calc(100svh - 104px), 780px); border-radius: 16px; }
  .photo-home-scene:before { width: 90%; height: auto; aspect-ratio: 1; left: 5%; top: 18%; }
  .photo-home-art { display: block; position: absolute; inset: 52px 12px 132px; container-type: size; }
  .album-snapshot { top: 5%; left: 4%; width: 55%; max-width: 300px; padding: 9px 9px 13px; }
  .album-snapshot img { height: auto; aspect-ratio: 2/3; object-fit: cover; }
  .album-snapshot figcaption { font-size: 10px; margin-top: 9px; }
  .photo-home-scene .photo-result { width: min(55cqw, 42cqh); right: 6%; top: auto; bottom: 0; transform: rotate(10deg); }
  .photo-scene-arrow { top: 0; left: 67%; }
  .photo-scene-arrow svg { width: 32px; height: 32px; }
  .photo-home-scene .scene-star { font-size: 42px; bottom: 1%; left: 10%; }
  .photo-home-scene .scene-top { top: 22px; left: 22px; font-size: 8px; letter-spacing: 1px; }
  .photo-home-scene .scene-bottom, .photo-home-scene .scene-number, .photo-tap-hint { display: none; }
  .photo-upload-target { padding: 0; }
  .photo-home-action { grid-area: 1/1; align-self: end; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr) 68px; column-gap: 14px; align-items: center; text-align: left; padding: 38px 22px 16px; border-radius: 0 0 16px 16px; background: linear-gradient(transparent, rgba(248, 247, 253, 0.96) 28%); pointer-events: none; }
  .photo-up-button { grid-column: 2; grid-row: 1/4; width: 68px; min-height: 68px; border-radius: 20px; pointer-events: auto; }
  .photo-up-button > svg { width: 36px; height: 36px; }
  .photo-home-action h1 { grid-column: 1; font-size: 15px; line-height: 1.5; margin: 0 0 3px; }
  .photo-home-action p { grid-column: 1; font-size: 11px; line-height: 1.6; }
  .collection-home-link { grid-column: 1; justify-self: start; justify-content: start; font-size: 11px; gap: 5px; margin-top: 3px; pointer-events: auto; }
  .collection-home-link svg { width: 13px; }
  .home-how { padding-block: 26px; }
  .home-how .how-layout { grid-template-columns: 1fr; gap: 22px; }
  .home-how .how-layout h2 { font-size: 18px; }
  .home-how .how-layout h2 br { display: none; }
  .home-how .how-list { gap: 16px; }
  .home-how .how-list h3 { font-size: 12px; }
  .home-how .how-list p { font-size: 11px; }
  .home-gallery { padding-top: 34px; }
}
@media (max-width: 370px) { .photo-home-action { padding-inline: 16px; column-gap: 10px; } .photo-home-action h1 { font-size: 13px; } .album-snapshot figcaption { font-size: 9px; } .home-how .how-list { gap: 10px; } }

/* Payment, Fulfillment, Station & Delivery Primitives */
.payment-environment { padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); font-size: 13px; line-height: 1.65; color: var(--body); }
.device-fulfillment { margin-top: 24px; padding: 20px; border: 1.5px solid var(--teal-deep); border-radius: 16px; background: #FAF5FE; }
.device-fulfillment h3 { margin: 0 0 12px; color: var(--ink); font-weight: 800; }
.device-fulfillment p { line-height: 1.65; color: var(--body); }
.device-fulfillment form { display: grid; gap: 12px; }
.device-fulfillment label { display: grid; gap: 8px; font-size: 14px; }
.device-fulfillment input { width: 100%; min-width: 0; box-sizing: border-box; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #FFFFFF; font: inherit; }
.device-fulfillment .checkout-case { max-width: 180px; margin: 16px auto; }
.device-scan-notice { padding: 14px 18px; border-radius: 12px; background: var(--accent-soft); border: 1.5px solid rgba(96, 43, 135, 0.28); color: var(--popomo-teal-dark); font-weight: 600; }
.station-identity { padding: 10px 0; overflow-wrap: anywhere; }
.station-identity-name { display: block; font-size: 18px; font-weight: 800; line-height: 1.4; color: var(--ink); }
.station-identity .station-identity-location { margin: 6px 0; font-size: 14px; line-height: 1.6; color: var(--body); }
.station-identity small { display: block; font-size: 12px; color: var(--muted); }
.station-navigation { margin-top: 12px; font-size: 14px; }
.station-navigation summary { cursor: pointer; min-height: 36px; padding: 6px 0; font-weight: 700; color: var(--teal-deep); }
.station-map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.station-map-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 14px; border: 1.5px solid var(--teal-deep); border-radius: 999px; background: #FFFFFF; color: var(--popomo-teal-dark); font-weight: 700; font-size: 13px; text-decoration: none; }
.station-map-links a:hover { background: var(--accent-soft); }
.station-map-links a:focus-visible { outline: 3px solid #602B87; outline-offset: 2px; }

.payment-fulfilled .ai-order-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
.payment-fulfilled .device-fulfillment { margin-top: 0; }
.payment-receipt { margin-top: 20px; border-top: 1.5px solid var(--line); font-size: 13px; color: var(--muted); }
.payment-receipt summary { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); }
.payment-receipt summary::-webkit-details-marker { display: none; }
.payment-receipt summary > span:nth-child(2) { margin-left: auto; font-size: 13px; color: var(--teal-deep); }
.payment-receipt summary::after { content: '+'; font-size: 18px; font-weight: 700; color: var(--teal-deep); }
.payment-receipt[open] summary::after { content: '−'; }
.payment-receipt summary:focus-visible { outline: 3px solid #602B87; outline-offset: 3px; }
.payment-receipt-body { padding: 6px 0 16px; }
.payment-receipt dl { margin: 0 0 16px; display: grid; gap: 10px; }
.payment-receipt dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; line-height: 1.6; }
.payment-receipt dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-weight: 600; }
.payment-receipt .field-note { margin-top: 14px; font-size: 12px; }
.payment-refresh { margin-top: 16px; }
.payment-next-design { margin-top: 20px; }
.payment-footer { padding-block: 32px; }

.delivery-options { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.delivery-options legend { font-size: 17px; font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.delivery-options label { display: flex; align-items: flex-start; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 8px; cursor: pointer; line-height: 1.5; background: #FFFFFF; transition: border-color .16s ease, background-color .16s ease; }
.delivery-options label:has(input:checked) { border: 1.5px solid #602B87; background: #FAF5FE; }
.delivery-options input { width: 18px; height: 18px; min-height: 18px; padding: 0; flex-shrink: 0; accent-color: #602B87; margin: 3px 0 0; }
.delivery-options span { font-size: 14px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.delivery-options small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.delivery-options label:focus-within { outline: 2px solid #602B87; outline-offset: 2px; }
.delivery-notice { padding: 16px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.7; color: var(--body); }

.station-context { margin: 0 0 22px; padding: 16px 20px; background: #FAF5FE; border: 1.5px solid rgba(96, 43, 135, 0.28); border-radius: 14px; overflow-wrap: anywhere; }
.station-context .device-scan-notice { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }

/* Native Station Scanner Modal */
.station-scanner { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; overflow: auto; border: 1px solid var(--line); border-radius: var(--popomo-radius-card); padding: 24px; color: var(--ink); background: #FFFFFF; box-shadow: var(--popomo-shadow-lg); }
.station-scanner::backdrop { background: rgba(24, 7, 26, 0.48); backdrop-filter: blur(5px); }
.scanner-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.scanner-heading h2 { font-size: 21px; font-weight: 800; margin: 0; color: var(--ink); }
.station-scanner video { display: block; width: 100%; max-height: 40dvh; aspect-ratio: 1; object-fit: cover; background: #18071A; border: 1px solid var(--line); border-radius: var(--popomo-radius-sm); }
.station-scanner p { font-size: 14px; line-height: 1.6; color: var(--body); margin: 12px 0; }
.station-scanner details { margin-top: 16px; }
.station-scanner summary { cursor: pointer; font-weight: 700; color: var(--teal-deep); }
.station-scanner form { display: grid; gap: 12px; margin-top: 12px; }
.station-scanner input { display: block; width: 100%; box-sizing: border-box; min-height: 46px; margin-top: 6px; }
.station-scanner .scanner-close { min-height: 42px; white-space: nowrap; }
.station-scanner [hidden] { display: none !important; }

.pickup-stations { margin: 20px 0; padding: 20px; border: 1.5px solid rgba(96, 43, 135, 0.28); border-radius: 16px; background: #FAF5FE; }
.pickup-stations h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--ink); }
.pickup-station-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pickup-stock { color: var(--teal-deep); font-weight: 700; }
.pickup-distance { font-weight: 600; color: var(--muted); }
.pickup-stations .field-note { font-size: 12px; line-height: 1.55; }
.delivery-options > .pickup-option-details > .pickup-stations { margin: 8px 0 14px; }
.pickup-option-details { min-width: 0; }
.pickup-station-list { list-style: none; margin: 12px 0; padding: 0; }
.pickup-station-row { padding: 14px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.pickup-row-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pickup-row-heading strong { font-size: 15px; color: var(--ink); }
.pickup-row-heading .pickup-distance { font-size: 12px; font-weight: 500; color: var(--muted); }
.pickup-stations .pickup-row-address { margin: 5px 0; font-size: 13px; line-height: 1.5; color: var(--body); }
.pickup-row-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pickup-row-actions .pickup-stock { font-size: 13px; }
.pickup-row-actions .station-navigation { margin: 0; }
.pickup-row-actions .station-navigation summary { font-size: 13px; }
.pickup-station-row > small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }

.case-style-picker { border: 0; margin: 0 0 20px; padding: 0; }
.case-style-picker legend { font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.case-style-options { display: flex; gap: 10px; flex-wrap: wrap; }
.case-style-options button { flex: 1; min-width: 130px; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: #FFFFFF; text-align: left; color: var(--ink); font-weight: 600; }
.case-style-options button[aria-pressed=true] { border: 1.5px solid #602B87; background: #FAF5FE; color: #522059; }
.case-style-options button:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; opacity: .65; }
.case-style-options small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; }

/* Shared photo-fit backdrop */
.phone-case .case-art { container-type: inline-size; }
.phone-case .case-art > .photo-blur-background { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; object-position: center; filter: blur(4cqw); pointer-events: none; user-select: none; }

/* Account Sign-In Card (Plan F Soft-Luxe Lavender) */
.account-signin .account-card { background: #FFFFFF; border: 1px solid var(--line); box-shadow: var(--popomo-shadow-md); overflow: hidden; }
.account-signin .account-symbol { display: none; }
.account-signin .eyebrow { color: var(--teal-deep); }
.account-signin .account-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -30px -30px 28px;
  padding: 20px 30px;
  background: linear-gradient(135deg, #7D4AA3 0%, #602B87 58%, #522059 100%);
  border-bottom: 1px solid rgba(96, 43, 135, 0.16);
  color: #FFFFFF;
}
.account-welcome > span { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: #FFFFFF; }
.account-welcome svg { flex-shrink: 0; color: #FFFFFF; }
.account-welcome strong { font-size: 16px; font-weight: 800; white-space: nowrap; color: #FFFFFF; }
.account-signin .account-card input { border: 1px solid var(--line); background: #FFFFFF; }
.account-signin .account-card .primary { background: linear-gradient(180deg, #652A6E 0%, #522059 100%); color: #FFFFFF; border: 0; box-shadow: 0 8px 20px rgba(92, 38, 98, 0.24); }
.account-signin .account-note { text-align: center; color: var(--muted); }
.social-login-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.social-login-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--popomo-border-strong); border-radius: 12px; background: #FFFFFF; color: var(--ink); box-shadow: var(--popomo-shadow-sm); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.35; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .12s ease; }
.social-login-button:hover:not(:disabled) { background: var(--surface-2); border-color: var(--teal-deep); transform: translateY(-1px); }
.social-login-button svg { flex-shrink: 0; }
.social-login-button:only-child { grid-column: 1/-1; }
.social-login-button:focus-visible { outline: 3px solid #602B87; outline-offset: 3px; }
.account-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.account-divider:before, .account-divider:after { content: ''; height: 1px; background: var(--line); flex: 1; }
.account-signin .account-card form { margin-top: 20px; }
.account-signin .account-card h1 { font-size: clamp(26px, 5vw, 34px); }
@media (max-width: 600px) { .account-signin .account-welcome { margin: -22px -18px 24px; padding: 18px; } .account-welcome > span { font-size: 12px; } .account-welcome strong { font-size: 14px; } .social-login-button { padding: 10px 8px; gap: 8px; font-size: 12px; } }

/* Compact Station Context Bar */
.station-context.station-context-compact { position: relative; flex: none; min-width: 0; padding: 0; margin: 0 0 10px; border-radius: 12px; background: #FAF5FE; border: 1.5px solid rgba(96, 43, 135, 0.35); }
.station-context-compact > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; list-style: none; cursor: pointer; color: var(--teal-deep); line-height: 1.4; }
.station-context-compact > summary::-webkit-details-marker { display: none; }
.station-context-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--teal-deep); }
.station-context-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--ink); }
.station-context-action { flex: none; font-size: 12px; font-weight: 700; color: var(--teal-deep); }
.station-context-chevron { flex: none; font-size: 16px; line-height: 1; transition: transform .15s ease; }
.station-context-compact[open] > summary .station-context-chevron { transform: rotate(180deg); }
.station-context-compact > summary:focus-visible { outline: 2px solid #602B87; outline-offset: 2px; border-radius: 10px; }
.station-context-body { padding: 10px 14px 14px; border-top: 1px solid rgba(96, 43, 135, 0.24); }
.station-context-body .station-identity { padding: 0; }
.station-context-body .station-identity-name { font-size: 15px; }
.station-context-body .station-identity .station-identity-location { font-size: 13px; margin: 4px 0; }
.station-context-body .device-scan-notice { padding: 0; margin: 8px 0 0; font-size: 12px; background: none; border: 0; }
.v35-design-editor > .station-context-compact { margin: 6px 12px 4px; z-index: 7; }
.v35-design-editor > .station-context-compact > .station-context-body { position: absolute; top: 100%; left: -1px; right: -1px; max-height: 45vh; max-height: 45dvh; overflow-y: auto; overscroll-behavior: contain; background: #FAF5FE; border: 1.5px solid rgba(96, 43, 135, 0.35); border-radius: 0 0 12px 12px; box-shadow: 0 10px 24px rgba(24, 7, 26, 0.14); }
