:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #211932;
  background: #f4f0f7;
  font-synthesis: none;
  line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
.screen { width: min(100%, 32rem); margin: auto; min-height: 100svh; }
.panel { padding: clamp(1.2rem, 5vw, 2rem); }
.lilac { background: radial-gradient(ellipse at 5% 95%, #cef1f6, transparent 48%), #e3cdfb; }
.sky { background: #bfeaf4; }
.coral { background: radial-gradient(ellipse at 100% 5%, #ffe4e6, transparent 60%), #fac6cf; }
h1 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: clamp(2.35rem, 9vw, 3.8rem); font-weight: 850; line-height: 1.02; letter-spacing: -.065em; margin: .4em 0 .65em; }
h1:focus { outline: none; }
.stack, .choices, .actions { display: grid; gap: .75rem; }
.stack label { display: grid; gap: .25rem; }
.choice, .pill {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 3.4rem;
  color: inherit;
  background: #fffbfa;
  border: 1px solid transparent;
  border-radius: 2rem;
  padding: .7rem 1rem;
  font-weight: 800;
  text-decoration: none;
}
.choice { position: relative; min-height: 6.25rem; border-radius: 1.6rem; cursor: pointer; font-size: 1.2rem; }
.choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
input:not([type=file]) { width: 100%; padding: .7rem; color: inherit; background: #fffaf9; border: 1px solid #685a74; border-radius: .6rem; }
.quiet { color: inherit; background: transparent; border: 0; text-align: center; min-height: 2.75rem; display: grid; place-items: center; text-decoration: underline; text-underline-offset: .2em; padding: .35rem .5rem; }
.signout { margin-left: auto; }
.seller-menu { display: flex; align-items: center; gap: .2rem; padding: .3rem; border: 1px solid #ffffff78; border-radius: 2rem; background: #ffffff4f; font-size: .78rem; }
.seller-menu a, .seller-menu button { color: inherit; background: transparent; border: 0; border-radius: 2rem; padding: .5rem .65rem; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; }
.seller-menu a[aria-current=page] { background: #fffbfa; box-shadow: 0 .2rem .7rem #48296514; }
.seller-menu form { margin-left: auto; }
.seller-list { display: flex; flex-direction: column; gap: 1.4rem; }
.seller-list-heading h1 { margin: 0; }
.dedication-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.dedication-card { background: #fffbfa; border-radius: 1.4rem; padding: 1.1rem; display: grid; gap: .55rem; box-shadow: 0 .55rem 1.4rem #4829650d; }
.dedication-card p { margin: 0; }
.dedication-date { color: #574d62; font-size: .9rem; }
.dedication-name { font-size: 1.05rem; }
.status-label { font-size: 1.05rem; }
.list-actions, .pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: .35rem; }
.pill-compact { min-height: 2.8rem; padding: .5rem .75rem; font-size: .85rem; }
.list-actions .pill:not(.pill-secondary) { color: #fff; background: #211932; }
.text-button.delete-trigger { justify-self: start; color: #842c3c; }
.delete-dialog { width: min(calc(100% - 2rem), 28rem); max-height: calc(100% - 2rem); border: 0; border-radius: 1.4rem; padding: 1.5rem; color: #211932; background: #fffbfa; box-shadow: 0 1rem 3rem #21193255; }
.delete-dialog::backdrop { background: #211932aa; }
.delete-dialog form { display: grid; gap: .85rem; }
.delete-dialog h2, .delete-dialog p { margin: 0; }
.delete-dialog h2 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 1.8rem; line-height: 1.1; }
.delete-dialog label { display: block; }
.delete-dialog label strong { user-select: all; }
.delete-dialog .delete-error { color: #842c3c; }
.delete-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.pill-danger { color: #fff; background: #842c3c; }
.pagination { margin-top: auto; }
.media { position: relative; height: clamp(20rem, 68svh, 39rem); background: #241b31; clip-path: shape(from 0 0, line to 100% 0, line to 100% 95%, curve to 0 97% with 70% 92% / 35% 104%, close); }
@supports not (clip-path: shape(from 0 0, close)) { .media { border-radius: 0 0 45% 12% / 0 0 6% 3%; } }
.media video { position: absolute; inset: 0; height: 95%; width: 100%; object-fit: contain; }
#camera-preview { transform: scaleX(-1); }
#recording-time { text-align: center; font-variant-numeric: tabular-nums; font-weight: 800; }
.media h1 { position: absolute; inset: 0 0 auto; margin: 0; font-size: clamp(2rem, 7vw, 3rem); padding: 1.7rem 1.25rem 3rem; pointer-events: none; color: #fff; background: linear-gradient(#191222de, transparent); }
.thumbnail { display: block; width: 100%; max-height: 37svh; background: #241b31; border-radius: 1rem; margin-bottom: .75rem; }
#link { margin-bottom: .75rem; }
.toast:not(:empty) { padding: .75rem 1rem; border-radius: .75rem; background: #241b31; color: white; }
[role=status]:empty { display: none; }
:focus-visible, .choice:focus-within { outline: .18rem solid #492579; outline-offset: .2rem; }

/* Seller journey */
.seller { display: flex; flex-direction: column; gap: 1.5rem; }
.seller-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.seller-brand { font-weight: 850; letter-spacing: -.035em; }
.text-button { min-height: 2.75rem; display: inline-grid; place-items: center; padding: .35rem .2rem; color: inherit; background: transparent; border: 0; font-weight: 750; text-decoration: underline; text-underline-offset: .25em; }
.text-button.centered { justify-self: center; }
.seller-intro { margin-top: clamp(3rem, 15svh, 7rem); }
.eyebrow { margin: 0 0 .55rem; font-size: .8rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.seller-intro h1, .ready-heading h1 { margin: 0 0 .7rem; }
.seller-lead, .ready-heading > p:last-child { margin: 0; max-width: 28rem; font-size: 1.05rem; }
.seller-choices { margin: .6rem 0 auto; }
.seller-choice { justify-items: start; align-content: center; min-height: 8.25rem; padding: 1.2rem 1.35rem; text-align: left; border: 2px solid transparent; box-shadow: 0 .55rem 1.4rem #4829650d; }
.seller-choice:hover { border-color: #a161c8; transform: translateY(-1px); }
.seller-choice strong { font-size: 1.25rem; letter-spacing: -.025em; }
.choice-kicker { color: #75438f; font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.choice-help { font-size: .9rem; font-weight: 500; opacity: .7; }
.form-status { min-height: 1.5rem; margin: 0; text-align: center; }
.seller-review { display: flex; flex-direction: column; overflow: hidden; }
.seller-media { flex: 1 0 auto; }
.media-shade { position: absolute; inset: 0 0 40% 0; pointer-events: none; background: linear-gradient(#191222b8, transparent); }
.seller-review-actions { flex: 1; z-index: 1; align-content: end; min-height: 32svh; margin-top: -1.6rem; padding: 3rem clamp(1.2rem, 5vw, 2rem) max(1.3rem, env(safe-area-inset-bottom)); border-radius: 48% 48% 0 0 / 8% 8% 0 0; background: #bfeaf4; }
.pill-secondary { color: #211932; background: #ffffff78; border-color: #6f4b7d; }
.pill-secondary:hover { background: #fff; }
.ready-screen { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.3rem, 5vw, 2rem); }
.ready-heading { padding-top: max(.5rem, env(safe-area-inset-top)); }
.ready-video { max-height: 35svh; margin: 0; border-radius: 1.4rem; box-shadow: 0 .8rem 2rem #5a273b22; }
.ready-panel { display: grid; gap: 1rem; margin-top: auto; padding: 1.15rem; background: #ffffff4f; border: 1px solid #ffffff78; border-radius: 1.6rem; }
.link-field { display: grid; gap: .4rem; font-size: .8rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.link-field input { min-height: 3rem; font-size: .9rem; letter-spacing: 0; text-transform: none; border-color: #8f6575; border-radius: .9rem; }
.ready-actions .pill { width: 100%; }
.ready-actions .toast { margin: 0; }
@media (min-width: 34rem) { .seller, .seller-review, .ready-screen { box-shadow: 0 0 2rem #21193224; } }

/* Recipient journey */
.recipient { position: relative; overflow: hidden; display: flex; flex-direction: column; background: #e8cafa; }
.recipient h1 { color: #fff; font-size: clamp(2.8rem, 10.5vw, 4.4rem); line-height: .94; margin: 0; text-shadow: 0 .13rem .5rem #24122335; }
.recipient-hero { position: relative; flex: 1 0 auto; height: 68svh; min-height: 27rem; background: #281a31; overflow: hidden; }
.recipient-hero video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #140b19b8, transparent 35%, transparent 64%, #140b1955); }
.recipient-hero h1 { position: absolute; top: max(2rem, env(safe-area-inset-top)); left: clamp(1.4rem, 7vw, 2.3rem); right: 1rem; pointer-events: none; }
.play-button { position: absolute; left: 50%; top: 72%; transform: translate(-50%, -50%); width: 6.2rem; height: 6.2rem; display: grid; place-items: center; padding: 0; border: .27rem solid white; border-radius: 50%; color: white; background: #21192ed9; box-shadow: 0 .45rem 1.5rem #21192e55; font-size: 2.4rem; }
.play-button span { margin-left: .3rem; }
.play-button.is-playing { opacity: 0; pointer-events: none; }
.video-duration { position: absolute; right: 1.3rem; bottom: 2rem; color: #fff; padding: .25rem .55rem; border-radius: .5rem; background: #18101c9e; font-size: 1.1rem; }
.video-error { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: .8rem; color: white; background: #22152bd9; border-radius: .6rem; }
.recipient-footer { z-index: 1; position: relative; display: grid; align-content: end; gap: .8rem; padding: 2.2rem clamp(1.3rem, 5vw, 2rem) max(1.4rem, env(safe-area-inset-bottom)); min-height: 32svh; margin-top: -1.5rem; border-radius: 50% 50% 0 0 / 7% 7% 0 0; text-align: center; }
.recipient-footer h2 { margin: 0 0 .4rem; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: clamp(1.5rem, 5.6vw, 2rem); line-height: 1.12; letter-spacing: -.04em; }
.recipient .pill { width: 100%; font-size: clamp(1.1rem, 4.7vw, 1.4rem); text-decoration: none; }
.recipient-divider { height: 1px; margin: .45rem 1rem 0; background: #a761d2; }
.recipient-text-link { display: flex; justify-content: center; gap: .7rem; align-items: center; min-height: 2.7rem; color: inherit; text-decoration: none; font-size: 1rem; }
.recipient-text-link[aria-disabled=true] { opacity: .55; pointer-events: none; }
.recipient-text-link span { font-size: 1.6rem; }
.reply-heading, .share-heading { position: absolute; z-index: 1; top: max(1.2rem, env(safe-area-inset-top)); left: clamp(1.3rem, 5vw, 2rem); right: 1rem; }
.back-button { display: inline-block; margin: 0 0 .75rem; border: 0; padding: .2rem .3rem; background: transparent; color: white; font-size: 1.3rem; text-shadow: 0 1px 5px #1c143b8c; }
.reply-preview-wrap { position: relative; min-height: 59svh; height: 59svh; background: #463f5c; overflow: hidden; }
.reply-preview-wrap video, .reply-placeholder { width: 100%; height: 100%; object-fit: cover; }
.reply-placeholder { display: grid; place-items: center; padding: 11rem 2rem 2rem; color: white; text-align: center; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 2.3rem; line-height: 1.05; background: linear-gradient(160deg, #2e2745, #ba8fae 55%, #f4c6b7); }
.reply-controls { z-index: 1; flex: 1; display: grid; gap: .85rem; padding: 2rem clamp(1.2rem, 5vw, 2rem) max(1rem, env(safe-area-inset-bottom)); min-height: 41svh; align-content: end; background: #9ce8f4; border-radius: 45% 45% 0 0 / 5% 5% 0 0; margin-top: -1rem; }
.reply-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.reply-choice { position: relative; display: grid; place-items: center; min-height: 8rem; padding: .7rem; background: #fffbfa; border: 2px solid transparent; border-radius: 1.5rem; text-align: center; font-size: 1.1rem; font-weight: 750; line-height: 1.15; cursor: pointer; }
.reply-choice.is-selected { border-color: #4a2673; }
.reply-choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.reply-recording-actions { display: grid; gap: .7rem; }
.reply-recording-actions p { margin: 0; text-align: center; font-variant-numeric: tabular-nums; font-weight: 800; }
.reply-status { min-height: 1.4rem; margin: 0; text-align: center; font-size: .9rem; }
.share-heading h1 { text-shadow: 0 .15rem .5rem #25122f44; }
.share-art { flex: 1 0 auto; height: 70svh; min-height: 28rem; background: #d5abdf url('/static/recipient-wine.jpg') center center / cover no-repeat; }
.share-art-word { position: absolute; top: 47%; right: 8%; color: #fff; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; text-shadow: 0 2px 10px #4b244766; }
.share-actions { z-index: 1; flex: 1; display: grid; gap: .7rem; padding: 1.6rem clamp(1.2rem, 5vw, 2rem) max(1.5rem, env(safe-area-inset-bottom)); min-height: 30svh; align-content: center; background: #fac0cb; border-radius: 45% 45% 0 0 / 7% 7% 0 0; margin-top: -1rem; }
.share-actions .quiet { text-decoration: underline; }
@media (min-width: 34rem) { .recipient { box-shadow: 0 0 2rem #21193224; } }
@media (max-height: 42rem) { .recipient-hero { min-height: 22rem; } .recipient-footer { min-height: 14rem; } .reply-preview-wrap { min-height: 22rem; } .reply-controls { min-height: 16rem; } }
