:root {
  font-family: Inter, ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: #1f293b;
  background: #f6f3ed;
  font-synthesis: none;
  --brand: #5b9ce8;
  --brand-dark: #397dca;
  --ink: #14233b;
  --muted: #687280;
  --warm: #fbf9f5;
  --surface: #fffefd;
  --border: #e5e0da;
  --skip: #2a9d74;
  --skip-bg: #e0f4e9;
  --wait: #c67d12;
  --wait-bg: #fff1cd;
  --buy: #ea5356;
  --buy-bg: #ffe4e0;
  --saved: #169264;
  --radius: 18px;
  --shadow: 0 14px 42px rgba(32, 48, 68, .08);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #f6f3ed; }
body { margin: 0; min-height: 100svh; background: radial-gradient(circle at 50% -10%, #fff 0, var(--warm) 52%, #f3efe8 100%); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.app-shell { width: min(100%, 520px); min-height: 100svh; margin: 0 auto; background: rgba(255,254,253,.9); }
.site-header { height: 72px; padding: 18px 20px 10px; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; position: sticky; top: 0; z-index: 20; background: rgba(255,254,253,.9); backdrop-filter: blur(14px); }
.wordmark { grid-column: 2; justify-self: center; color: var(--ink); font-size: 24px; font-weight: 780; letter-spacing: -.045em; }
.wordmark span { color: var(--brand); }
.icon-button { border: 0; background: transparent; color: var(--ink); padding: 7px 0; font-weight: 800; font-size: 20px; line-height: 1; }
.back-button { grid-column: 1; font-size: 34px; font-weight: 400; text-align: left; }
.menu-button { grid-column: 3; letter-spacing: 2px; font-size: 15px; }
main { padding: 8px 18px 40px; }
.loading-card, .empty-state { margin: 22vh auto 0; text-align: center; color: var(--muted); }

h1, h2, h3, p { margin-top: 0; }
h1 { color: var(--ink); font-size: clamp(29px, 8vw, 38px); line-height: 1.03; letter-spacing: -.045em; margin-bottom: 8px; }
h2 { color: var(--ink); font-size: 21px; line-height: 1.15; letter-spacing: -.025em; }
h3 { color: var(--ink); font-size: 14px; }
.lede { color: #52647c; line-height: 1.45; margin-bottom: 24px; }
.eyebrow { margin-bottom: 7px; color: #405675; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.45; }
.section { margin-top: 26px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.section-title h2 { margin: 0; }
.optional { font-size: 12px; color: var(--muted); font-weight: 500; }

.form-grid { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 720; }
.field-help { font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.4; }
input, textarea, select { width: 100%; color: var(--ink); background: rgba(255,255,255,.76); border: 1px solid var(--border); border-radius: 13px; padding: 13px 14px; outline: none; transition: border .18s, box-shadow .18s; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,156,232,.14); }
textarea { min-height: 92px; resize: vertical; line-height: 1.45; }
.price-row { display: grid; grid-template-columns: 1fr 116px; gap: 10px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; }
.input-prefix input { padding-left: 32px; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-slot { aspect-ratio: 1 / 1.13; position: relative; overflow: hidden; border-radius: 14px; background: #f0ede8; border: 1px dashed #cfc9c2; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.photo-add { width: 100%; height: 100%; display: grid; place-content: center; gap: 6px; border: 0; color: #607089; background: transparent; text-align: center; font-size: 11px; }
.photo-add strong { font-size: 25px; color: var(--brand-dark); }
.photo-actions { position: absolute; inset: 5px 5px auto; display: flex; justify-content: space-between; gap: 4px; }
.photo-action { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(0,0,0,.1); font-size: 13px; }
.photo-order { position: absolute; inset: auto 5px 5px; display: flex; justify-content: center; gap: 4px; }
.photo-order .photo-action { width: 27px; height: 25px; border-radius: 8px; }
.cover-tag { position: absolute; left: 7px; bottom: 7px; border-radius: 7px; padding: 4px 6px; background: rgba(20,35,59,.82); color: white; font-size: 9px; font-weight: 800; }

.duration-options { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.duration-options input { position: absolute; opacity: 0; pointer-events: none; }
.duration-options label { border: 1px solid var(--border); border-radius: 12px; padding: 12px 2px; text-align: center; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.75); }
.duration-options label:has(input:checked) { background: #e4f0fd; border-color: var(--brand); color: #2d6fb9; }

.primary-button, .secondary-button, .tertiary-button { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 13px; font-weight: 750; border: 1px solid transparent; display: flex; align-items: center; justify-content: center; gap: 9px; }
.primary-button { color: white; background: linear-gradient(135deg, #4e8edb, #65a8ef); box-shadow: 0 9px 20px rgba(64,139,217,.2); }
.primary-button:hover { background: linear-gradient(135deg, #427fc1, #579be1); }
.secondary-button { color: var(--ink); background: rgba(255,255,255,.72); border-color: #d8d5d0; }
.tertiary-button { color: #3f5d7d; background: #edf4fb; }
.primary-button:disabled, .secondary-button:disabled { opacity: .5; cursor: wait; }
.button-stack { display: grid; gap: 9px; margin-top: 18px; }
.form-submit { margin-top: 6px; }

.case-card, .reason-card, .suggestion-card, .owner-update, .verdict-panel, .share-preview, .outcome-card { border: 1px solid rgba(229,224,218,.86); border-radius: var(--radius); background: rgba(255,255,255,.7); }
.case-card { overflow: hidden; }
.carousel { position: relative; aspect-ratio: 1.45 / 1; overflow: hidden; background: #eeebe7; touch-action: pan-y; }
.carousel-track { height: 100%; display: flex; transition: transform .28s ease; }
.carousel-slide { flex: 0 0 100%; height: 100%; overflow: hidden; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px 8px; border-radius: 20px; background: rgba(20,35,59,.32); }
.carousel-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); }
.carousel-dot.active { background: white; transform: scale(1.25); }
.time-pill { position: absolute; top: 11px; right: 11px; padding: 7px 10px; color: var(--ink); background: rgba(255,255,255,.92); border-radius: 10px; font-size: 12px; font-weight: 800; }
.case-body { padding: 16px; }
.case-body h1 { margin-bottom: 4px; }
.item-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; }
.item-price strong { color: #367fcf; font-size: 25px; }
.item-price span { color: #405675; font-size: 14px; }
.reason-grid { display: grid; gap: 10px; margin-top: 17px; }
.reason-card { padding: 14px; background: #edf5fc; }
.reason-card.want { background: #f2f7fb; }
.reason-card h3 { margin: 0 0 6px; font-size: 11px; letter-spacing: .06em; }
.reason-card p { margin: 0; color: #33465e; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.plea { margin: 13px 0 0; padding-left: 11px; border-left: 3px solid #9dc5ee; color: #4e6078; font-size: 13px; line-height: 1.45; }

.vote-options { display: grid; gap: 9px; }
.vote-option { min-height: 70px; border: 1px solid transparent; border-radius: 14px; padding: 13px 15px; display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; text-align: left; color: var(--ink); }
.vote-option .vote-icon { font-size: 25px; }
.vote-option strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.vote-option small { font-size: 12px; color: #465366; }
.vote-option .arrow { font-size: 24px; }
.vote-option.skip { background: var(--skip-bg); color: var(--skip); }
.vote-option.wait { background: var(--wait-bg); color: var(--wait); }
.vote-option.buy { background: var(--buy-bg); color: var(--buy); }
.vote-option[disabled] { opacity: .62; cursor: default; }
.case-meta { display: flex; justify-content: space-between; gap: 12px; margin: 11px 2px 0; color: #52647c; font-size: 12px; }

.results { padding: 16px; border-radius: var(--radius); background: #edf4fb; }
.results h2 { margin-bottom: 14px; }
.result-row { display: grid; grid-template-columns: 45px 1fr 42px; align-items: center; gap: 10px; margin: 10px 0; font-size: 12px; font-weight: 800; }
.bar { height: 10px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.9); }
.bar span { display: block; height: 100%; border-radius: inherit; transition: width .45s ease; }
.result-row.skip .bar span { background: var(--skip); }
.result-row.wait .bar span { background: #e7a326; }
.result-row.buy .bar span { background: var(--buy); }
.you-voted { margin: 14px 0 0; color: #42617f; font-size: 12px; font-weight: 700; }

.suggest-form { display: grid; grid-template-columns: 1fr 44px; gap: 8px; }
.suggest-form input { min-width: 0; }
.send-button { border: 0; border-radius: 13px; color: white; background: var(--brand); font-size: 22px; }
.suggestion-list { display: grid; gap: 9px; margin-top: 13px; }
.suggestion-card { padding: 12px 12px 10px; display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: start; }
.suggestion-card p { margin: 0; color: #35465d; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.top-idea { display: inline-block; margin-bottom: 5px; padding: 3px 6px; border-radius: 6px; color: white; background: var(--skip); font-size: 8px; font-weight: 850; letter-spacing: .04em; }
.like-button { width: auto; min-width: 44px; padding: 3px; border: 0; color: #4e8fd9; background: transparent; font-size: 12px; }
.like-button.liked { color: #e65062; }
.owner-update { padding: 14px; border-color: #c9dff5; background: #f0f7fe; }
.owner-update .eyebrow { color: #357cc8; }
.owner-update p { margin: 0; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }

.share-hero { padding-top: 28px; text-align: center; }
.share-icon { width: 75px; height: 75px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 21px; background: #edf5fd; color: var(--brand); font-size: 38px; transform: rotate(-7deg); }
.share-preview { margin-top: 25px; overflow: hidden; text-align: left; box-shadow: var(--shadow); }
.share-preview .carousel { aspect-ratio: 1.55 / 1; }
.share-copy { padding: 14px; }
.share-copy h2 { margin-bottom: 3px; }
.suggested-copy { margin-top: 23px; text-align: left; }
.copy-box { position: relative; padding: 13px 44px 13px 13px; min-height: 64px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.72); color: #3f5168; font-size: 13px; line-height: 1.45; }

.verdict-hero { padding: 48px 0 24px; text-align: center; }
.verdict-chip { display: inline-block; padding: 7px 14px; border-radius: 30px; background: #e5f1fc; color: #33577e; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.verdict-word { margin: 11px 0 4px; color: var(--skip); font-size: 52px; font-weight: 860; letter-spacing: -.055em; }
.verdict-word.wait { color: var(--wait); }
.verdict-word.buy { color: var(--buy); }
.verdict-panel { padding: 17px; }
.verdict-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.verdict-stats strong { display: block; font-size: 21px; }
.verdict-stats span { font-size: 10px; font-weight: 800; }
.decision-options { display: grid; gap: 9px; padding: 12px; border-radius: var(--radius); background: #edf4fb; }
.decision-options button { min-height: 54px; border: 0; border-radius: 13px; color: var(--ink); background: white; font-weight: 700; }
.decision-options button:first-child { color: white; background: #66b68f; }
.decision-options button:nth-child(2) { background: #ffe7e3; }
.decision-options button:nth-child(3) { background: #e2eef9; }

.outcome { padding-top: 34px; text-align: center; }
.confetti { color: var(--saved); font-size: 24px; letter-spacing: 12px; }
.outcome-kicker { margin: 25px 0 0; color: var(--saved); font-size: 20px; font-weight: 860; }
.saved-amount { margin: 0; color: var(--saved); font-size: 58px; font-weight: 880; letter-spacing: -.055em; }
.outcome h1 { margin-top: 20px; }
.outcome-card { margin: 25px 0; padding: 9px; display: grid; grid-template-columns: 84px 1fr; gap: 12px; text-align: left; }
.outcome-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.outcome-card div { align-self: center; }
.outcome-card p { margin: 2px 0; }
.outcome-note { padding: 16px; border-radius: var(--radius); color: #315a50; background: #e2f1ea; font-size: 13px; line-height: 1.45; }
.bought .outcome-note { color: #8a4040; background: #fde8e5; }

.error-banner { margin: 8px 0 18px; padding: 12px 14px; border-radius: 12px; color: #8b3d3f; background: #ffe9e7; font-size: 13px; line-height: 1.4; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 100; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 36px); padding: 11px 15px; border-radius: 12px; color: white; background: rgba(20,35,59,.92); box-shadow: var(--shadow); font-size: 13px; }

.crop-dialog { width: min(100% - 24px, 480px); max-height: 92svh; padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: var(--surface); }
.crop-dialog::backdrop { background: rgba(20,27,38,.55); }
.crop-sheet { padding: 10px 16px 20px; }
.sheet-handle { width: 45px; height: 5px; margin: 0 auto 11px; border-radius: 5px; background: #d6d1ca; }
.dialog-heading { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 14px; }
.dialog-heading .text-button:last-child { justify-self: end; }
.text-button { width: auto; padding: 6px; border: 0; color: #556579; background: transparent; }
.brand-text { color: var(--brand-dark); font-weight: 800; }
.crop-stage { height: min(52svh, 470px); overflow: hidden; border-radius: 14px; background: #242a31; }
.crop-stage img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.crop-sheet label { display: grid; grid-template-columns: 132px 1fr; align-items: center; margin-top: 12px; font-size: 12px; font-weight: 700; }
.crop-sheet input[type=range] { padding: 0; border: 0; box-shadow: none; }

@media (min-width: 560px) {
  body { padding: 30px 0; }
  .app-shell { min-height: calc(100svh - 60px); border: 1px solid rgba(229,224,218,.8); border-radius: 30px; overflow: hidden; box-shadow: 0 22px 65px rgba(50,58,67,.1); }
  .site-header { top: 30px; }
  main { padding-inline: 28px; }
}

@media (max-width: 360px) {
  .duration-options { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Sprint 1 acceptance revision */
input, textarea, select { font-size: 16px; }
.playful-page { position: relative; }
.playful-page::before, .playful-page::after { content: ""; position: absolute; z-index: -1; width: 84px; height: 84px; border-radius: 44% 56% 62% 38%; opacity: .55; filter: blur(.2px); }
.playful-page::before { top: -24px; left: -58px; background: #fff0bd; transform: rotate(18deg); }
.playful-page::after { top: 34px; right: -58px; background: #dff0ff; transform: rotate(-22deg); }
.create-page { padding-top: 10px; }
.create-doodle { position: absolute; right: 2px; top: 6px; font-size: 54px; transform: rotate(8deg); filter: drop-shadow(0 7px 9px rgba(42,74,112,.12)); }
.create-page > h1 { max-width: 76%; }
.required-chip { display: inline-flex; margin-left: 5px; padding: 3px 7px; border-radius: 8px; color: #176c56; background: #dcf3e9; font-size: 11px; font-weight: 850; vertical-align: 1px; }
.create-page .field { padding: 13px; border-radius: 16px; background: rgba(255,255,255,.68); border: 1px solid rgba(229,224,218,.75); }
.create-page .field:nth-of-type(4) { background: linear-gradient(135deg, #fff0ee, #fff8f5); }
.create-page .field:nth-of-type(5) { background: linear-gradient(135deg, #eff8ff, #f7fbff); }
.create-page fieldset.field { background: linear-gradient(135deg, #e4f8f1, #f4fbf8); }
.create-page input, .create-page textarea, .create-page select { background: rgba(255,255,255,.88); }
.create-page textarea { min-height: 74px; }
.photo-slot { border-color: #b9d3ed; background: linear-gradient(145deg, #f2f8ff, #fffaf2); }
.photo-add { color: #516d8f; }

.carousel-dots { left: auto; right: 10px; bottom: auto; top: 10px; transform: none; }
.carousel-dots button { display: none; }
.carousel-dots span { color: white; font-size: 11px; font-weight: 800; }
.case-body { padding: 15px; }
.case-body > h1 { margin: 0 0 5px; font-size: clamp(25px, 7vw, 33px); }
.item-name { margin: 0; color: #344d6d; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.item-price { margin-top: 2px; }
.item-price strong { font-size: 22px; }
.reason-grid { margin-top: 13px; }
.reason-card { border: 0; background: linear-gradient(135deg, #eef7ff, #f8fbff); }
.reason-card.want { background: linear-gradient(135deg, #fff0ed, #fff8f7); }
.reason-card h3 { text-transform: none; letter-spacing: 0; font-size: 13px; }

.timing-strip { margin: 13px 0 4px; padding: 10px 11px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 10px; border: 1px solid #c9e1f8; border-radius: 13px; color: #3e5e83; background: linear-gradient(135deg, #f4f9ff, #edf6ff); font-size: 12px; }
.timing-strip .timing-main { color: #145fac; }
.timing-strip .vote-total { grid-column: 1 / -1; color: #2378cb; font-weight: 750; }
.timing-strip.ended { border-color: #ffd1ce; color: #a24c4c; background: #fff0ef; }
.timing-strip.ended .timing-main { color: #d63e43; }
.owner-view-banner { margin: 12px 0; padding: 12px; display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: center; border-radius: 14px; color: #273f74; background: linear-gradient(135deg, #ebefff, #f5f1ff); }
.owner-view-banner > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: #5a6cd7; }
.owner-view-banner strong, .owner-view-banner small { display: block; }
.owner-view-banner small { margin-top: 2px; color: #5b6790; line-height: 1.3; }

.vote-options { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vote-option { min-height: 106px; padding: 12px 7px; grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 5px; text-align: center; border-width: 2px; }
.vote-option strong { font-size: 15px; }
.vote-option small { min-height: 30px; font-size: 10px; line-height: 1.35; }
.vote-option.selected { border-color: currentColor; box-shadow: 0 0 0 3px rgba(80,145,216,.12), 0 8px 20px rgba(38,67,97,.1); transform: translateY(-2px); }
.vote-submit-form { max-height: 0; margin-top: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .2s ease, margin .2s ease; }
.vote-submit-form.is-open { max-height: 330px; margin-top: 16px; opacity: 1; }
.vote-submit-form textarea { min-height: 110px; background: white; }
.character-count { margin: -24px 12px 16px 0; position: relative; text-align: right; color: var(--muted); font-size: 11px; pointer-events: none; }
.results { border: 1px solid #e4e8ef; background: white; }
.result-row { grid-template-columns: 45px 1fr 40px 52px; }
.result-row small { color: #60718a; font-weight: 600; text-align: right; }
.advice-section { padding-top: 4px; border-top: 1px solid #edf0f3; }
.suggestion-card { min-height: 70px; align-items: center; }
.like-button { min-width: 58px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 12px; background: #f4f8fd; font-size: 20px; }
.like-button span { font-size: 13px; font-weight: 800; }
.like-button.liked { background: #fff0f1; }

.share-hero { padding-top: 5px; }
.celebration-doodle { min-height: 90px; display: flex; justify-content: center; align-items: center; gap: 16px; color: #f3ad23; font-size: 28px; }
.celebration-doodle span:nth-child(2) { width: 76px; height: 76px; display: grid; place-items: center; border: 3px solid #17345d; border-radius: 46% 54% 48% 52%; color: #17345d; background: #eef7ff; font-size: 36px; transform: rotate(-5deg); }
.share-preview { margin-top: 18px; }
.share-case-card { padding: 10px; display: grid; grid-template-columns: 112px 1fr; gap: 12px; border-radius: var(--radius); background: rgba(255,255,255,.82); text-align: left; }
.share-case-card > img { width: 112px; height: 112px; object-fit: cover; border-radius: 13px; overflow: hidden; }
.share-case-card h2 { margin: 5px 0 3px; font-size: 18px; }
.share-case-card .preview-item { margin: 0 0 2px; color: #596a7f; font-size: 13px; }
.share-case-card strong { font-size: 19px; }
.preview-reasons { display: grid; gap: 3px; margin-top: 8px; color: #617188; font-size: 10px; }
.preview-reasons span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.live-votes-button { width: 100%; min-height: 58px; margin-top: 13px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 15px; color: #213454; background: linear-gradient(135deg, #ffda65, #ffd04a); box-shadow: 0 10px 24px rgba(222,164,31,.2); font-size: 17px; font-weight: 850; }
.live-votes-button b { font-size: 27px; }
.button-help { margin: 7px 0 17px; color: #8a6b20; font-size: 11px; }
.owner-access-card, .public-share-card { margin-top: 14px; padding: 16px; border-radius: 18px; text-align: left; }
.owner-access-card { border: 1px solid #c8dff5; background: linear-gradient(145deg, #edf6ff, #f7fbff); }
.public-share-card { border: 1px solid #eadfd1; background: linear-gradient(145deg, #fffaf0, #fffefd); }
.owner-access-card h2, .public-share-card h2 { margin-bottom: 7px; }
.owner-access-card p { margin-bottom: 8px; color: #4b6380; font-size: 13px; line-height: 1.45; }
.owner-access-card > strong { display: block; margin-bottom: 12px; color: #9b5a41; font-size: 12px; }
.owner-save-button { background: white; }
.section-kicker { margin-bottom: 7px; color: #52749a; font-size: 10px; font-weight: 850; letter-spacing: .09em; }
.reminder-dialog { width: min(100% - 32px, 430px); padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: white; }
.reminder-dialog::backdrop { background: rgba(20,35,59,.5); }
.reminder-card { padding: 22px; text-align: center; }
.reminder-card p { color: #53657b; line-height: 1.5; }

.case-actions { position: fixed; z-index: 80; top: 61px; left: 50%; width: min(270px, calc(100vw - 36px)); transform: translateX(calc(-50% + min(223px, 43vw))); padding: 7px; border: 1px solid #e1e6ec; border-radius: 15px; background: rgba(255,255,255,.98); box-shadow: 0 16px 45px rgba(24,42,67,.18); }
.case-actions button { width: 100%; min-height: 44px; padding: 9px 12px; display: grid; grid-template-columns: 28px 1fr; align-items: center; border: 0; border-radius: 10px; color: var(--ink); background: transparent; text-align: left; font-size: 14px; }
.case-actions button:hover { background: #f1f6fb; }
.case-actions button span { font-weight: 700; }
.verdict-doodle { margin-bottom: 13px; color: #f0ae27; font-size: 28px; letter-spacing: 7px; }
.owner-update-section { padding: 14px; border-radius: var(--radius); background: #f4f7ff; }

@media (max-width: 560px) {
  .site-header { height: 64px; padding-top: 12px; }
  main { padding-top: 4px; }
  .case-actions { right: 12px; left: auto; transform: none; }
}

/* Mobile UI fidelity pass — final mockup */
html, body { width: 100%; max-width: 100%; overflow-x: clip; }
body { min-width: 0; }
.app-shell { width: 100%; max-width: 430px; }
main, #app, .playful-page { width: 100%; min-width: 0; max-width: 100%; }
.line-icon { width: 21px; height: 21px; flex: 0 0 auto; }
.brand-doodle { width: 100%; height: 100%; overflow: visible; stroke: #0d2b5a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-doodle .doodle-fill { stroke: none; }
.brand-doodle .coral { fill: #ffd1c5; }
.brand-doodle .blue { fill: #eaf5ff; }
.brand-doodle .accent { stroke-width: 4; }
.brand-doodle .accent.coral { stroke: #ff9b83; }
.brand-doodle .accent.yellow { stroke: #f7bd3b; }
.brand-doodle .accent.blue { stroke: #74b8eb; }
.brand-doodle .accent.mint { stroke: #69bfa0; }

.site-header { height: 60px; padding: max(10px, env(safe-area-inset-top)) 18px 7px; background: rgba(255,255,253,.94); }
.wordmark { font-size: 20px; }
main { padding: 5px 18px calc(34px + env(safe-area-inset-bottom)); }
h1 { font-size: 29px; }
.lede { font-size: 14px; }

.create-page { padding-top: 13px; }
.create-page::before { top: -9px; left: -53px; width: 86px; height: 86px; }
.create-page::after { top: 20px; right: -51px; width: 76px; height: 76px; }
.create-page > h1 { max-width: 69%; margin-bottom: 5px; font-size: 29px; line-height: 1.02; }
.create-page > .lede { margin-bottom: 17px; color: #314d72; font-size: 13px; line-height: 1.35; }
.create-doodle { right: 3px; top: 0; width: 105px; height: 102px; transform: rotate(2deg); filter: none; }
.form-grid { gap: 12px; }
.create-page .field { padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 12px; }
.create-page .field-title { display: flex; align-items: center; gap: 7px; }
.create-page .field-title .line-icon { width: 18px; height: 18px; }
.required-chip { color: #204977; background: #e8f3ff; }
.photo-grid { gap: 7px; }
.photo-slot { aspect-ratio: 1 / .96; border: 1.5px dashed #9fc6eb; border-radius: 11px; background: #f6fbff; }
.photo-slot.empty-slot { box-shadow: inset 0 0 0 1px rgba(255,255,255,.65); }
.photo-add { gap: 2px; color: #45658b; font-size: 10px; }
.photo-add strong { color: #288be3; font-size: 30px; font-weight: 450; line-height: .95; }
.photo-field.has-error .photo-slot { border-color: #e98983; background: #fff5f4; }
.photo-error { color: #bf4f4c; font-size: 12px; font-weight: 700; line-height: 1.35; }
.photo-error[hidden] { display: none; }
.create-page input, .create-page textarea, .create-page select { border-radius: 10px; padding: 11px 12px; background: rgba(255,255,255,.76); }
.create-page textarea { min-height: 62px; padding-right: 62px; border: 0; background: transparent; box-shadow: none; resize: none; }
.create-page .story-field { position: relative; min-height: 89px; padding: 11px 12px 7px; overflow: hidden; border-radius: 13px; }
.create-page .want-field { background: linear-gradient(135deg, #fff0ed, #fff8f6); }
.create-page .shouldnt-field { background: linear-gradient(135deg, #edf7ff, #f8fbff); }
.story-field .mini-doodle { position: absolute; right: 2px; bottom: -3px; width: 61px; height: 58px; }
.story-field textarea { min-height: 45px; padding: 7px 53px 2px 0; line-height: 1.35; }
.want-field .field-title { color: #b74445; }
.shouldnt-field .field-title { color: #176b51; }
.plea-field { padding: 4px 0 0 !important; }
.duration-field { padding: 11px !important; border-radius: 13px !important; background: linear-gradient(135deg, #e1f6ee, #f2fbf7) !important; }
.duration-options { gap: 5px; }
.duration-options label { padding: 9px 1px; border-radius: 8px; background: rgba(255,255,255,.82); }
.duration-options label:has(input:checked) { color: white; border-color: #318fdd; background: linear-gradient(135deg, #4e9ee7, #2f8cdf); box-shadow: 0 4px 10px rgba(47,140,223,.24); }
.create-page .field-help { font-size: 10px; }
.form-submit { margin-top: -1px; }

.case-card { overflow: visible; border: 0; border-radius: 0; background: transparent; }
.carousel { aspect-ratio: 1.72 / 1; border-radius: 13px; }
.case-body { padding: 13px 0 0; }
.case-body > h1 { display: inline; font-size: 23px; }
.item-name { display: inline; margin-left: 4px; font-size: 15px; }
.item-name::after { content: " · "; }
.item-price { display: inline; }
.item-price strong { color: #21466f; font-size: 15px; }
.reason-grid { gap: 9px; margin-top: 12px; }
.reason-card, .reason-card.want { padding: 12px 13px; border: 0; border-radius: 13px; box-shadow: none; }
.reason-card.want { background: linear-gradient(100deg, #fff0ed, #fff8f7); }
.reason-card:not(.want) { background: linear-gradient(100deg, #edf7ff, #f8fbff); }
.reason-card h3 { margin-bottom: 3px; font-size: 13px; }
.reason-card p { padding-left: 25px; font-size: 13px; }

.timing-strip { grid-template-columns: auto 1fr auto; gap: 6px 10px; padding: 9px 10px; border: 1.5px solid #72afe8; background: #f3f9ff; }
.timing-strip .timing-main, .timing-strip .vote-total { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.timing-strip .timing-main .line-icon, .timing-strip .vote-total .line-icon { width: 18px; height: 18px; }
.timing-strip .vote-total { grid-column: auto; justify-self: end; }
.owner-view-banner { border: 1px solid #e0ddff; background: linear-gradient(100deg, #edeeff, #f7f3ff); }
.owner-view-banner > span { background: #5267c9; }
.owner-view-banner .line-icon { width: 18px; height: 18px; }

#vote-section { margin-top: 22px; }
#vote-section .section-title { margin-bottom: 4px; }
.vote-helper { margin: 0 0 11px; color: #6f7d90; font-size: 12px; line-height: 1.4; }
.vote-options { gap: 8px; }
.vote-option { position: relative; min-height: 119px; padding: 13px 5px 10px; border: 2px solid; border-bottom-width: 4px; box-shadow: 0 7px 14px rgba(26,47,77,.09); transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.vote-option.skip { border-color: #79caaa; background: #ecfaf3; }
.vote-option.wait { border-color: #f0bf50; background: #fff8df; }
.vote-option.buy { border-color: #f29b93; background: #fff0ee; }
.vote-option .vote-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.75); }
.vote-option .vote-icon .line-icon { width: 27px; height: 27px; }
.vote-option strong { font-size: 15px; }
.vote-option small { display: block; min-height: 29px; margin-top: 2px; color: #617087; }
.vote-option .selected-check { display: none; position: absolute; top: 6px; right: 7px; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: white; font-size: 12px; }
.vote-option.skip .selected-check { background: #1e966d; }
.vote-option.wait .selected-check { background: #c27a08; }
.vote-option.buy .selected-check { background: #dd4c50; }
.vote-option.selected { border-width: 3px; border-bottom-width: 5px; transform: translateY(2px) scale(.98); box-shadow: 0 2px 7px rgba(26,47,77,.12); }
.vote-option.selected .selected-check { display: grid; }
.vote-option.selected.skip { background: #d9f3e7; }
.vote-option.selected.wait { background: #ffedb6; }
.vote-option.selected.buy { background: #ffdcd7; }
.vote-option:active { transform: translateY(3px) scale(.97); box-shadow: 0 1px 4px rgba(26,47,77,.12); }

.share-hero { padding-top: 0; }
.share-hero::before { top: 18px; }
.celebration-doodle { min-height: 94px; height: 94px; }
.celebration-doodle .party-doodle { width: 145px; height: 100px; }
.share-hero > h1 { margin-bottom: 2px; font-size: 29px; }
.share-hero > .lede { margin-bottom: 11px; color: #1e385e; font-weight: 700; }
.share-preview { margin-top: 10px; box-shadow: 0 8px 22px rgba(30,52,81,.08); }
.share-case-card { grid-template-columns: 96px 1fr; gap: 10px; padding: 9px; }
.share-case-card > img { width: 96px; height: 96px; }
.share-case-card h2 { margin-top: 3px; font-size: 16px; }
.preview-reasons { display: none; }
.share-hero .timing-strip { margin-top: 10px; }
.live-votes-button { min-height: 54px; }
.live-votes-button span { display: inline-flex; align-items: center; gap: 9px; }
.owner-access-card, .public-share-card { padding: 13px; border-radius: 15px; }
.owner-access-card h2, .public-share-card h2 { display: flex; align-items: center; gap: 7px; font-size: 17px; }
.owner-access-card h2 .line-icon { width: 20px; height: 20px; }
.owner-access-card p { font-size: 12px; }
.share-icon .line-icon { width: 40px; height: 40px; }

.verdict-doodle { height: 94px; margin: -25px auto 3px; }
.verdict-doodle .party-doodle { width: 155px; }

@media (hover: hover) {
  .vote-option:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(26,47,77,.14); }
}

@media (max-width: 380px) {
  main { padding-inline: 16px; }
  .create-doodle { width: 92px; }
  .create-page > h1 { font-size: 27px; }
  .duration-options { grid-template-columns: repeat(6, 1fr); }
  .vote-option { min-height: 112px; }
  .vote-option small { font-size: 9px; }
  .timing-strip { gap: 5px; font-size: 11px; }
}
