/* Hallmark · app scope (owner screens: new invitation, answers list) · fast · built 2026-11-30 */
/* critique: the owner's screens are cards raised from the Sogno soft surface, with the room of spheres behind them, as on the contact form */

/* the owner's screens wear the mint surface: the soft grey of the contact form tinted toward the brand teal */
:root {
  --surface: #E2EDEB; --shade: #BFD3CF; --light: #FFFFFF; --muted: #4c6662; --hint: #4c6662;
  --orb-2: #ecf5f3; --orb-3: #d3e3e0; --orb-4: #bccfcb; --orb-shade: rgba(110, 150, 144, .3);
  --orb-far-2: rgba(210, 228, 224, .9); --orb-far-3: rgba(190, 212, 208, 0);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; background: var(--surface); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink); background: var(--surface); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.01em; line-height: 1.1; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.top, .wrap, .locked { position: relative; z-index: 1; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 28px 24px 8px; }
.top__brand img { height: 44px; width: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 16px 24px 96px; }
.title { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); margin-bottom: 28px; }

/* ---------- a raised card ---------- */
.panel { background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--raised); }

/* ---------- new invitation ---------- */
.make { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) { .make { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; gap: 40px; } .side { position: sticky; top: 24px; } }
.drop {
  position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--pressed); cursor: pointer; overflow: hidden; border: 2px solid transparent; transition: box-shadow .25s var(--ease), border-color .2s var(--ease);
}
@media (max-width: 899px) { .drop { aspect-ratio: auto; min-height: 200px; } .drop.has-img { aspect-ratio: 3 / 4; max-height: 70vh; } }
.drop:hover, .drop.is-over { box-shadow: var(--pressed-deep); }
.drop:focus-within { border-color: var(--night); }
.drop.is-bad { border-color: var(--error); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__empty { display: grid; justify-items: center; gap: 16px; padding: 24px; text-align: center; color: var(--hint); pointer-events: none; }
.drop__icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 24px; background: var(--surface); color: var(--teal-ink); box-shadow: var(--raised-sm); }
.drop__icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.drop img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; border-radius: 20px; pointer-events: none; }
.drop__swap { justify-self: end; }
.drop__swap svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.fields { display: grid; gap: 20px; }
.fields h2 { font-size: 2rem; text-align: center; margin-bottom: 8px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 620px) { .row--3 { grid-template-columns: 1.3fr 1fr 1fr; } .row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the Hebrew date: three small lists inside one field, beside the Gregorian date they follow */
.hdate__tag { flex: none; color: var(--hint); }
.hdate select { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 2px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: center; text-align-last: center; cursor: pointer; appearance: none; -webkit-appearance: none; }
.hdate select:focus-visible { outline: none; }
.hdate select:invalid, .hdate select.is-empty { color: var(--hint); }
/* what the invitation shows of its date: a small choice of three, sunk into the field like the lists beside it */
.dshow { gap: 4px; padding-inline: 16px 5px; }
.dshow:focus-within:not(:has(:focus-visible)) { outline: none; box-shadow: var(--pressed); }
/* the two dates side by side where there is room, one above the other on a phone */
.fields .row--date { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 520px) { .fields .row--date { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dshow__opt { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 4px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: 500 .95rem/1 var(--body); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s var(--ease), box-shadow .25s var(--ease); }
.dshow__opt[aria-checked="true"] { color: var(--teal-ink); background: var(--surface); box-shadow: var(--raised-sm); }
.dshow__opt:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .dshow__opt { transition: none; } }

/* the link address: the site's own address stands before what is typed */
.addr { display: flex; align-items: stretch; direction: ltr; border: 2px solid transparent; border-radius: var(--radius-input); background: var(--surface); box-shadow: var(--pressed); transition: border-color .2s var(--ease), box-shadow .25s var(--ease); }
.addr:focus-within { outline: 2px solid var(--night); outline-offset: -2px; box-shadow: var(--pressed-deep); }
.addr.is-bad { border-color: var(--error); }
.addr__host { display: grid; place-items: center; padding: 0 4px 0 16px; color: var(--hint); white-space: nowrap; }
/* the Hebrew hint sits on the right like the other fields; what is typed runs left to right */
.sf .addr input[type="text"]:placeholder-shown { direction: rtl; }
.sf .addr input[type="text"]:focus-visible { outline: none; }
.sf .addr input[type="text"] { border: 0; min-height: 50px; padding-inline: 16px; box-shadow: none; background: transparent; flex: 1; }

/* a switch that sinks in and lights up in teal */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding-inline: 4px; cursor: pointer; }
.toggle input { appearance: none; position: relative; flex: none; width: 60px; height: 34px; margin: 0; border-radius: 999px; background: var(--surface); box-shadow: var(--pressed); cursor: pointer; transition: box-shadow .2s var(--ease); }
.toggle input::after { content: ""; position: absolute; top: 5px; inset-inline-start: 5px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: 3px 3px 7px var(--shade), -3px -3px 7px var(--light); transition: transform .28s var(--ease), background-color .2s var(--ease); }
.toggle input:checked::after { transform: translateX(-26px); background: var(--teal); }
.toggle input:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.actions--center { justify-content: center; }

/* ---------- ready ---------- */
.ready { display: grid; justify-items: center; gap: 20px; max-width: 560px; margin: 24px auto 0; text-align: center; outline: none; }
.ready h2 { font-size: 2rem; }
.link { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 8px 8px 8px 16px; direction: ltr; border-radius: var(--radius-input); background: var(--surface); box-shadow: var(--pressed); }
.link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.ready > * { min-width: 0; max-width: 100%; }

/* ---------- my invitations ---------- */
.list { display: grid; gap: 20px; margin-top: 56px; }
.list__title { font-size: 1.75rem; }
#items { display: grid; gap: 20px; }
.inv { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--raised-sm); }
@media (min-width: 760px) { .inv { grid-template-columns: 60px minmax(0, 1fr) auto; padding: 16px 20px; } }
.inv img { width: 60px; height: 80px; object-fit: cover; border-radius: 12px; }
.inv__name { font-family: var(--display); font-size: 1.25rem; line-height: 1.2; }
.inv__meta { color: var(--muted); }
.inv .actions { grid-column: 1 / -1; gap: 12px; }
@media (min-width: 760px) { .inv .actions { grid-column: auto; } }

/* ---------- answers ---------- */
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.head .title { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.tile { padding: 20px; border-radius: 24px; background: var(--surface); box-shadow: var(--raised-sm); text-align: center; }
.tile__n { display: block; font-family: var(--display); font-size: 2.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile__k { color: var(--muted); }
.tile--main { box-shadow: var(--pressed); }
.tile--main .tile__n { color: var(--teal); }

.table { width: 100%; border-collapse: separate; border-spacing: 0 12px; }
.table th { padding: 0 20px; text-align: start; font-weight: 400; color: var(--muted); }
.table td { padding: 16px 20px; text-align: start; background: var(--surface); }
.table tbody tr { box-shadow: var(--raised-sm); border-radius: 16px; }
.table td:first-child { border-start-start-radius: 16px; border-end-start-radius: 16px; }
.table td:last-child { border-start-end-radius: 16px; border-end-end-radius: 16px; }
.table td.num, .table th.num { text-align: center; font-variant-numeric: tabular-nums; }
.table td.when { color: var(--muted); }
.no { color: var(--muted); }
@media (max-width: 640px) {
  .table thead { display: none; }
  .table, .table tbody, .table td { display: block; }
  .table tbody { display: grid; gap: 16px; }
  .table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 16px; padding: 16px 20px; }
  .table td { padding: 0; background: none; }
  .table td.who { grid-column: 1 / -1; font-weight: 500; }
  .table td.when { grid-column: 1; }
  .table td.num::before { content: attr(data-k) " "; color: var(--muted); }
}
.empty { padding: 56px 24px; text-align: center; color: var(--muted); border-radius: 24px; box-shadow: var(--pressed); }
.loading { display: grid; place-items: center; padding: 48px 0; }
.loading .sogno-loader { width: 44px; height: 44px; }

.locked { display: grid; justify-items: center; gap: 20px; max-width: 440px; margin: 14vh auto 0; padding: 40px 28px; text-align: center; border-radius: var(--radius); background: var(--surface); box-shadow: var(--raised); }
.locked h1 { font-size: 1.75rem; }
.locked svg { width: 72px; height: 72px; padding: 16px; border-radius: 24px; box-shadow: var(--pressed); fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.toast { position: fixed; inset-block-end: calc(24px + env(safe-area-inset-bottom)); inset-inline: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 32px); padding: 12px 24px; border-radius: var(--radius-input); background: var(--surface); color: var(--teal-ink); box-shadow: var(--raised-sm); opacity: 0; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none; z-index: 10; }
.toast.is-on { opacity: 1; transform: none; }

@media (max-width: 40rem) {
  .top { padding: 20px 16px 4px; }
  .top__brand img { height: 36px; }
  .wrap { padding: 12px 16px 80px; }
  .panel { padding: 28px 20px; border-radius: 26px; box-shadow: 8px 8px 18px var(--shade), -8px -8px 18px var(--light); }
  .fields .sb { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .toggle input, .toggle input::after, .drop, .addr, .toast { transition: none; }
}

/* choosing the scene: small photographs, the chosen one sinks in and gets a teal ring */
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px; }
.scene-pick { min-height: 0; padding: 8px; border-radius: 20px; }
.scene-pick img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.scene-pick[aria-checked="true"] { outline: 2px solid var(--teal); outline-offset: 2px; text-decoration: none; }
@media (min-width: 760px) { .tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) { .table tr { grid-template-columns: minmax(0, 1fr) auto auto auto; } }

/* the live preview: the uploaded invitation inside the chosen scene, as the guests will see it */
.drop.has-img { padding: 0; }
.stage { position: absolute; inset: 0; display: block; pointer-events: none; }
.drop .stage__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.stage__card { position: absolute; overflow: hidden; }
.drop .stage__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 0; mix-blend-mode: multiply; }
.drop .stage__card.is-cover img { object-fit: cover; }
.stage__card.is-loose { box-shadow: 0 1px 3px var(--orb-shade), 0 10px 20px var(--orb-shade); border-radius: 2px; }
.drop .stage__card.is-loose img { mix-blend-mode: normal; }
@media (max-width: 899px) { .drop.has-img { max-height: none; } }
/* the preview and the scenes to choose from stand together, so every choice is seen at once */
.side { display: grid; gap: 20px; min-width: 0; }
.scene-pick:active { box-shadow: var(--pressed); }
/* the tune for the opening: a choice per row, and beside each tune a small button to hear it */
/* the tunes: "no tune" first, then a heading per group over a grid of even rows (name button + listen button) */
.tunes { display: grid; gap: 14px; align-content: start; }
.tunes__list { display: grid; gap: 12px; }
.tune { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tune__pick { gap: 8px; flex: 1; min-width: 0; justify-content: flex-start; }
.tune__pick span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tune__ear { flex: none; }
.tune__pick svg, .tune__ear svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tune__ear svg path, .tune__ear svg rect { fill: currentColor; stroke: none; }
.tune__pick[aria-checked="true"] { outline: 2px solid var(--teal); outline-offset: 2px; }
.tune__pick[aria-checked="true"] { text-decoration: none; }
.drop .stage__parts { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.drop .stage__parts--over { z-index: 2; }
.drop .stage__parts img { position: absolute; inset: auto; display: block; max-width: none; border-radius: 0; object-fit: fill; }
/* a phone shows the scenes as one row that slides sideways, so the form below stays close */
@media (max-width: 640px) {
  .scenes { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; gap: 12px; padding: 6px 4px 10px; margin-inline: -4px; scrollbar-width: none; }
  .scenes::-webkit-scrollbar { display: none; }
  .scene-pick { flex: 0 0 31%; scroll-snap-align: start; }
}
.drop .stage__fg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; border-radius: 0; object-fit: cover; }
.stage__card { z-index: 1; }

/* the details of a switch unfold beneath it: the space opens, then each field rises into it */
.more { margin-block-start: -20px; }
.more:not(.is-open) { height: 0; }
.more:not(.is-open) > .more__in { display: none; }
.more__in { display: grid; gap: 20px; padding-block-start: 20px; }
.more.is-moving { overflow: clip; }
.more.is-coming .more__in > * { animation: more-in .5s var(--ease) both; }
.more.is-coming .more__in > :nth-child(2) { animation-delay: .08s; }
.more.is-going .more__in > * { animation: more-out .25s ease-in both; }
@keyframes more-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes more-out { to { opacity: 0; transform: translateY(-10px) scale(.98); } }
/* on a phone the two actions stand on the same two columns as the numbers under them */
@media (max-width: 759px) { .head .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; } .head .actions .sb { padding: 0 12px; } }
/* on a phone each answer is a small card: the name and when it came in on one line, and under them the
   counts, each a number set in a soft well with its name beneath it */
@media (max-width: 640px) {
  .table tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; padding: 18px 18px 16px; border-radius: 22px; }
  .table td.who { flex: 1 1 55%; grid-column: auto; font-size: 1.125rem; }
  .table td.when { order: 1; flex: 1 1 30%; text-align: end; font-size: .875rem; }
  .table td.num { order: 2; flex: 1 1 0; min-width: 22%; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 16px; box-shadow: var(--pressed); font: 400 1.5rem/1.1 var(--display); color: var(--teal-ink); }
  .table td.num::before { content: attr(data-k); font: 400 .8125rem/1.2 var(--body); color: var(--muted); }
  .table tr.no td.num { display: none; }
  .table tr.no td.who { color: var(--muted); }
}

/* under the preview: open it over the whole screen, or swap the picture */
.side__acts { display: flex; justify-content: flex-end; gap: 12px; }
.sb--icon { width: 46px; padding: 0; }
.full { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; display: none; place-items: center; }
.full[open] { display: grid; }
.full::backdrop { background: rgba(12, 27, 42, .82); backdrop-filter: blur(6px); }
.full__frame { position: relative; overflow: hidden; border-radius: 28px; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.full__frame.is-phone { border-radius: 0; box-shadow: none; }
.full__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
/* trimming the invitation's edges: the picture whole, a frame dragged by its sides, corners or middle, the rest dimmed */
.crop { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); border: 0; background: transparent; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.crop[open] { display: flex; }
.crop::backdrop { background: rgba(12, 27, 42, .86); backdrop-filter: blur(6px); }
.crop__title { margin: 0; color: #fff; font: 500 1.15rem/1.3 Heebo, sans-serif; }
.crop__box { position: relative; flex: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.crop__clip { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; }
.crop__clip img { display: block; width: 100%; height: 100%; pointer-events: none; }
.crop__shade { position: absolute; box-shadow: 0 0 0 200vmax rgba(8, 18, 28, .62); pointer-events: none; }
.crop__frame { position: absolute; cursor: move; outline: 1.5px solid rgba(255, 255, 255, .95); }
.crop__frame::before, .crop__frame::after { content: ""; position: absolute; inset: 33.333% 0; border-block: 1px solid rgba(255, 255, 255, .35); pointer-events: none; }
.crop__frame::after { inset: 0 33.333%; border-block: 0; border-inline: 1px solid rgba(255, 255, 255, .35); }
.crop__h { position: absolute; z-index: 1; padding: 0; border: 0; background: transparent; touch-action: none; }
.crop__h::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: 3px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.crop__h--t, .crop__h--b { left: 18%; right: 18%; height: 44px; cursor: ns-resize; }
.crop__h--t { top: -22px; } .crop__h--b { bottom: -22px; }
.crop__h--t::after, .crop__h--b::after { width: 36px; height: 5px; }
.crop__h--l, .crop__h--r { top: 18%; bottom: 18%; width: 44px; cursor: ew-resize; }
.crop__h--l { left: -22px; } .crop__h--r { right: -22px; }
.crop__h--l::after, .crop__h--r::after { width: 5px; height: 36px; }
.crop__h:focus-visible::after { background: var(--accent, #0f8a80); outline: 2px solid #fff; }
.crop__c { position: absolute; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; touch-action: none; }
.crop__c:focus-visible::after { border-color: var(--accent, #0f8a80); }
.crop__c::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.crop__c--tl { top: -22px; left: -22px; cursor: nwse-resize; } .crop__c--tl::after { top: 20px; left: 20px; border-top-width: 4px; border-left-width: 4px; }
.crop__c--tr { top: -22px; right: -22px; cursor: nesw-resize; } .crop__c--tr::after { top: 20px; right: 20px; border-top-width: 4px; border-right-width: 4px; }
.crop__c--bl { bottom: -22px; left: -22px; cursor: nesw-resize; } .crop__c--bl::after { bottom: 20px; left: 20px; border-bottom-width: 4px; border-left-width: 4px; }
.crop__c--br { bottom: -22px; right: -22px; cursor: nwse-resize; } .crop__c--br::after { bottom: 20px; right: 20px; border-bottom-width: 4px; border-right-width: 4px; }
.crop__acts { display: flex; gap: 12px; }
.crop__acts .sb { min-width: 130px; }
/* the create screen does not zoom with two fingers (the owner's choice); scrolling is untouched */
.no-zoom, .no-zoom body { touch-action: pan-x pan-y; }
.is-locked, .is-locked body { overflow: hidden; }
.drop.has-img { cursor: zoom-in; }
.drop.has-img input { pointer-events: none; }
.full__x { position: fixed; z-index: 2; top: max(16px, env(safe-area-inset-top)); inset-inline-end: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.full__x:active { box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }

/* the counts on a phone: all of them in one row, smaller */
@media (max-width: 759px) {
  .tiles, .tiles--5 { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; }
  .tiles--5 { --n: 5; }
  .tile { padding: 14px 2px 12px; border-radius: 18px; }
  .tile__n { font-size: 1.75rem; }
  .tile__k { display: block; font-size: .8125rem; line-height: 1.25; }
}
/* search by name, above the answers */
.find { position: relative; margin-bottom: 8px; }
.find input[type="text"] { padding-inline-start: 48px; }
.find__icon { position: absolute; inset-inline-start: 16px; top: 17px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.sb { white-space: nowrap; }

/* suggestions under the address field: a raised card of places, the one in hand sunk into it */
.suggest { position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 5; margin: 0; padding: 8px; list-style: none; border-radius: var(--radius-input); background: var(--surface); box-shadow: var(--raised); }
.suggest li { display: grid; gap: 2px; min-height: 44px; padding: 10px 14px; border-radius: 12px; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected="true"] { box-shadow: var(--pressed); }
.suggest__main { color: var(--ink); }
.suggest__more { color: var(--muted); font-size: .875rem; }

/* ---------- hosts' accounts: sign-in page and the sign-out button ---------- */
.top__out { position: relative; }
.top__out[aria-busy="true"] > svg:not(.sogno-loader) { opacity: 0; }
.inv__host { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; text-align: end; }

.gate { position: relative; z-index: 1; display: grid; justify-items: center; max-width: 440px; margin: max(8vh, 32px) auto 32px; padding: 0 16px; }
.gate__logo { height: 44px; width: auto; margin-bottom: 28px; }
.gate__step { display: grid; justify-items: center; gap: 18px; width: 100%; padding: 36px 28px 32px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--raised); text-align: center; }
.gate__step[hidden] { display: none; }
.gate__step h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--ink); }
.gate__icon svg { width: 72px; height: 72px; padding: 16px; border-radius: 24px; box-shadow: var(--pressed); fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gate__field { width: 100%; }
.gate__field input { width: 100%; text-align: center; }
.gate__code { font-size: 1.5rem; letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.gate__code::placeholder { font-size: 1rem; letter-spacing: 0; }
/* the code's copy button: a clear button of its own under the field, once there is a whole code to copy */
.cc { gap: 8px; color: var(--teal-ink); }
.cc[hidden] { display: none; }
.cc svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cc .cc__back { opacity: .55; }
.cc .cc__done { stroke-dasharray: 9; stroke-dashoffset: 9; transition: stroke-dashoffset .3s var(--ease); }
.cc.is-done .cc__done { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .cc .cc__done { transition: none; } }
.gate__to { margin: -6px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.gate__to.is-who { color: var(--ink); font-weight: 500; font-size: 1.125rem; }
.gate__go { width: 100%; }
.gate__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.gate .err { text-align: center; }
.gate__legal { display: flex; gap: 22px; margin-top: 22px; }
.gate__legal a { color: var(--muted); text-decoration: none; padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; }
.gate__legal a:hover, .gate__legal a:focus-visible { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 4px; }
.suggest--mail li { display: flex; align-items: center; gap: 0; direction: ltr; }
@media (max-width: 480px) {
  .gate { margin-top: 24px; }
  .gate__step { padding: 28px 18px 24px; }
}

/* ---------- payment: waiting for Cardcom's answer ---------- */
.pay__wait .sogno-loader { width: 56px; height: 56px; color: var(--teal); fill: currentColor; opacity: 1; }
.pay__wait[hidden] { display: none; }
.pay__note { margin: -8px 0 0; color: var(--muted); }
.inv__due { color: var(--teal-ink); font-weight: 500; }
/* at most five suggestions in view, the rest scroll inside the card (a phone keyboard leaves little room) */
.suggest--mail { max-height: calc(5 * 44px + 16px); overflow-y: auto; overscroll-behavior: contain; }

/* ---------- sending an invitation by mail ---------- */
.mail { max-width: 720px; }
.mail__list { display: grid; gap: 18px; }
.mail__label { font-family: var(--display); font-size: 1.25rem; color: var(--ink); }
.mail textarea { width: 100%; min-height: 240px; padding: 16px; border: 2px solid transparent; border-radius: var(--radius-input); background: var(--surface); color: var(--ink); font: inherit; line-height: 1.7; box-shadow: var(--pressed); resize: vertical; }
.mail textarea::placeholder { color: var(--hint); }
.mail textarea:focus-visible { outline: 2px solid var(--night); outline-offset: -2px; box-shadow: var(--pressed-deep); }
.mail__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
@media (min-width: 760px) { .mail__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mail__sends { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.mail__send { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 16px 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--raised-sm); }
.mail__when { color: var(--muted); }
/* header: the brand on its side, the page's buttons together on the other (not spread across the middle) */
.top { justify-content: flex-start; gap: 12px; }
.top__brand { margin-inline-end: auto; }

/* ---------- the steps of a new invitation: four round numbers on one line, the one in hand raised in teal ---------- */
.steps { display: flex; gap: 10px; margin: -8px 0 28px; padding: 0; list-style: none; counter-reset: none; }
.steps li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; }
/* a thin line joins each number to the next; it fills in teal once that step is behind */
.steps li + li::before { content: ""; flex: 1 1 auto; min-width: 12px; height: 2px; border-radius: 2px; background: var(--shade); order: -1; transition: background .3s var(--ease); }
.steps li:has(.is-done) + li::before { background: color-mix(in srgb, var(--teal) 55%, var(--shade)); }
.steps li:has(.is-now) + li::before { background: var(--shade); }
.steps__go { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font: 500 1rem/1.2 var(--body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.steps__go:disabled { cursor: default; }
.steps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: var(--pressed); font: 400 1.125rem/1 var(--display); transition: box-shadow .25s var(--ease), color .25s var(--ease); }
.steps__go.is-now { color: var(--ink); }
.steps__go.is-now .steps__n { color: var(--teal-ink); box-shadow: var(--raised-sm); outline: 2px solid var(--teal); outline-offset: 3px; }
.steps__go.is-done .steps__n { color: var(--teal-ink); box-shadow: var(--raised-sm); }
.steps__go:not(:disabled):hover { color: var(--teal-ink); }
.steps__go:focus-visible { outline: none; }
.steps__go:focus-visible .steps__n { outline: 2px solid var(--night); outline-offset: 3px; }
.steps__t { white-space: nowrap; }

/* each step's card: what is chosen in it, and the way on (and back) at its foot */
.step { display: grid; gap: 24px; align-content: start; }
.step:focus { outline: none; }
.step__nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.step__nav [data-back] { margin-inline-end: auto; }

.side .err { text-align: center; }

/* on a phone only the step in hand keeps its name, so the four fit on one line */
@media (max-width: 640px) {
  .steps { gap: 6px; margin: -12px 0 22px; }
  .steps li { gap: 6px; }
  .steps__go:not(.is-now) .steps__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .steps__n { width: 36px; height: 36px; }
  .steps li:has(.is-now) { flex: 2 1 auto; }
  .step__nav { display: grid; grid-template-columns: minmax(0, 1fr); }
  .step__nav:has([data-back]) { grid-template-columns: auto minmax(0, 1fr); }
  .fields .step__nav [data-back] { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .steps li + li::before, .steps__n { transition: none; } }
/* a very narrow phone: closer together, without the joining lines */
@media (max-width: 359px) { .steps, .steps li { gap: 4px; } .steps li + li::before { display: none; } .steps li { flex: none; } .steps { justify-content: space-between; } }

/* ---------- the making screen fits the screen whole: no page scrolling (the owner's rule) ----------
   While an invitation is made, the page is exactly the screen's height: the bar, the steps, and under them the stage (the invitation
   in its scene, or the envelope while it is chosen) beside the step in hand on a computer, above it on a phone. Every rule here
   starts with the same condition: the making screen is in view (not the list, the ready link or the payment). */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .top { flex: none; width: 100%; max-width: 1200px; padding: 14px 24px 0; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .top__brand img { height: 38px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .wrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 1200px; padding: 6px 24px 24px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .steps { flex: none; margin: 0 0 18px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) #makeView { flex: 1 1 auto; min-height: 0; display: flex; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .make { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .make { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 600px); grid-template-rows: minmax(0, 1fr); gap: 32px; align-items: stretch; }
}
/* the stage: the picture keeps its own proportions and is as large as the room allows */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side { position: static; min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__stage { flex: 1 1 auto; min-height: 0; container-type: size; display: grid; place-items: center; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .drop { width: min(100cqw, calc(100cqh * var(--ar, .75))); height: auto; min-height: 0; max-height: none; aspect-ratio: var(--ar, 3 / 4); }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__acts { flex: none; justify-content: center; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side .err { flex: none; }
/* while the envelope is chosen, the envelope stands on the stage instead of the invitation */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__env { display: none; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .make[data-at="2"] .drop { display: none; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .make:is([data-at="2"], [data-at="3"], [data-at="4"], [data-at="5"]) .side__env { display: grid; width: 100%; height: 100%; min-height: 0; }
/* the tune step: the invitation in its scene and the envelope side by side (the owner) */
@media (max-width: 899px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .make[data-at="3"] .side__stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .make[data-at="3"] .drop { width: min(100%, calc(100cqh * var(--ar, .75))); }
}
/* the envelope in a frame of the scene's shape, on the scene's soft blurred picture, as guests first see it (the owner) */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__env { place-items: center; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__env .ep__view { container-type: size; display: grid; place-items: center; width: min(100%, calc(100cqh * var(--ar, .5625))); height: auto; aspect-ratio: var(--ar, .5625); min-height: 0; padding: 22px; border-radius: var(--radius); background: var(--env-bg, none) center / cover, var(--surface); box-shadow: var(--pressed); overflow: hidden; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__env .ep__view .pe { width: min(100cqw, calc(100cqh / var(--pe-shape, .64)) * .94); }
/* the step in hand: its choices, and the way on at its foot */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step { min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 26px 28px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step > .step__nav { margin-top: auto; padding-top: 4px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step__nav .sb--main { min-height: 52px; }
/* step 1, the scene: small photographs, six to a row (four in a narrower window) */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .scenes { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-content: start; }
@media (max-width: 1180px) { body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .scenes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .scene-pick { padding: 6px; border-radius: 18px; }
/* step 2, the envelope: its choices in rows, the seven waxes on one */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) #envelopePick { gap: 18px; align-content: center; flex: 1 1 auto; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) :is(.ep__row--paper, .ep__row--wax) { display: grid; grid-template-columns: repeat(6, auto); justify-content: center; max-width: none; }   /* twelve each: two rows of six */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__row { gap: 9px; }
/* step 3, the tune: the groups are tabs over one short list */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tunes { display: grid; gap: 14px; margin: 0; align-content: start; }
.tunes__kinds { display: flex; gap: 6px; padding: 6px; border-radius: 18px; box-shadow: var(--pressed); }
.tunes__kind { position: relative; flex: 1 1 0; min-width: 0; min-height: 42px; padding: 0 8px; border: 0; border-radius: 13px; background: none; color: var(--muted);
  font: 500 .975rem/1.1 var(--body); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s var(--ease), box-shadow .25s var(--ease); }
.tunes__kind[aria-selected="true"] { color: var(--teal-ink); background: var(--surface); box-shadow: var(--raised-sm); }
.tunes__kind:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
/* the group that holds the chosen tune: a small teal note at the end of its name */
.tunes__kind.is-chosen::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 6px; border-radius: 50%; background: var(--teal); vertical-align: middle; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tunes__list { display: grid; gap: 10px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tune__pick, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tune__ear { min-height: 48px; }
@media (prefers-reduced-motion: reduce) { .tunes__kind { transition: none; } }
/* step 4, the details: closer rows, and the switches two by two */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields { gap: 14px; container-type: inline-size; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf input[type="text"] { min-height: 50px; padding-block: 10px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag { min-height: 50px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag input[type="date"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag input[type="time"] { min-height: 44px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .row { gap: 14px; }
.row--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; align-items: center; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .toggle { min-height: 50px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more { margin-block-start: -14px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in { padding-block-start: 14px; gap: 14px; }
/* the RSVP date and the children's switch share a row: the switch takes what it needs, the date the rest */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in.row--pair { grid-template-columns: minmax(0, 1fr) auto; }

@container (max-width: 620px) {
  .fields .row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields .row--3 > :first-child { grid-column: 1 / -1; }
}

/* the list of invitations, opened from the bar: the making screen steps aside */
#app[data-view="list"] #makeView, #app[data-view="list"] #steps { display: none; }
#app:not([data-view="list"]) > #makeView:not([hidden]) ~ #list { display: none; }
#app[data-view="list"] .list { margin-top: 8px; }
.list__title:focus { outline: none; }
.top__mine { gap: 8px; }
.top__mine[data-on="list"] { text-decoration: none; }
.top__mine svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.top__mine .top__mine-new, .top__mine[data-on="list"] .top__mine-list { display: none; }
.top__mine[data-on="list"] .top__mine-new { display: block; }
/* the button belongs to the making screen and the list only (the ready link and the payment show the list under them) */
body:has(#makeView[hidden]) .top__mine { display: none; }

/* ---------- a phone (and a narrow window): the stage above, the step in hand under it ---------- */
@media (max-width: 899px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .top { padding: 10px 16px 0; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .top__brand img { height: 32px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .wrap { padding: 4px 16px calc(14px + env(safe-area-inset-bottom)); }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .steps { margin: 0 0 12px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .make { gap: 12px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side { flex: 1 1 auto; gap: 8px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__stage { min-height: 120px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__acts .sb--small { min-height: 40px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step { flex: none; gap: 14px; padding: 16px; border-radius: 24px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step__nav { margin-top: 0; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step__nav .sb--main { min-height: 50px; }
  /* the scenes in one row that slides sideways */
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .scenes { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; gap: 10px; padding: 4px 4px 6px; margin-inline: -4px; scrollbar-width: none; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .scenes::-webkit-scrollbar { display: none; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .scene-pick { flex: 0 0 76px; scroll-snap-align: start; padding: 5px; border-radius: 16px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .scene-pick img { border-radius: 11px; }
  /* the envelope's choices: the letters beside the grains */
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) #envelopePick { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 8px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__row { gap: 7px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__row--paper, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__row--wax { flex: 1 1 100%; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__seal { order: 3; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__row--wax { order: 2; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__pick, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__letter { width: 42px; height: 42px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__pick { border-radius: 13px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__env .ep__view { padding: 14px; border-radius: 22px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tunes__kind { min-height: 40px; font-size: .9375rem; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tune__pick, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tune__ear { min-height: 46px; }
  /* the details are typed without the stage (it comes back with the steps before) */
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .make:is([data-at="4"], [data-at="5"]) .side { display: none; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .make:is([data-at="4"], [data-at="5"]) .step { flex: 0 1 auto; min-height: 0; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields { gap: 16px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .row { gap: 14px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .step__nav { margin-top: 8px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf input[type="text"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag { min-height: 46px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag input[type="date"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag input[type="time"] { min-height: 40px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .toggle { min-height: 46px; }
  .row--pair { gap: 16px 14px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more { margin-block-start: -10px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in { padding-block-start: 10px; gap: 10px; }
}
@media (max-width: 420px) {
  .top__mine { width: 46px; padding: 0; }
  .top__mine span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* the joining strokes keep clear of the round numbers and of the ring around the step in hand */
.steps li + li::before { margin-inline: 6px; }
/* five steps on a phone: the numbers keep their round size, spread along the line without the joining strokes */
@media (max-width: 600px) {
  .steps { justify-content: space-between; gap: 4px; }
  .steps li { flex: none; gap: 6px; }
  .steps li:has(.is-now) { flex: none; }
  .steps li + li::before { display: none; }
}
/* six steps on a narrow phone: smaller rounds and a smaller name for the step in hand, so the last number stays inside */
@media (max-width: 440px) {
  .steps { gap: 2px; }
  .steps li { gap: 5px; }
  .steps__n { width: 32px; height: 32px; font-size: 1rem; }
  .steps__go { gap: 6px; font-size: .875rem; }
}
@media (max-width: 440px) {
  /* the details on a narrow phone: the date on a row of its own, the times and the place two by two, the RSVP date on its own row */
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag { padding-inline: 12px 2px; gap: 4px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag input[type="date"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag input[type="time"] { padding: 0 6px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in.row--pair { grid-template-columns: minmax(0, 1fr); }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .toggle { gap: 10px; white-space: nowrap; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .toggle input { width: 52px; height: 30px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .toggle input::after { top: 4px; inset-inline-start: 4px; width: 22px; height: 22px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .toggle input:checked::after { transform: translateX(-22px); }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .row, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in { gap: 16px 8px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more { margin-block-start: -8px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in { padding-block-start: 8px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf input[type="text"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .toggle { min-height: 44px; }
}
/* a short phone screen (a small iPhone with the browser's bars): the details take the whole screen, the bar and the steps step aside
   while they are typed (the way back is at their foot) */
@media (max-width: 899px) and (max-height: 640px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])):has(#make:is([data-at="4"], [data-at="5"])) .top, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])):has(#make:is([data-at="4"], [data-at="5"])) .steps { display: none; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])):has(#make:is([data-at="4"], [data-at="5"])) .wrap { padding-top: 12px; }
}
/* when the details come back with messages, the rows draw closer so the messages fit without scrolling */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) { gap: 8px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .row, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .more__in { gap: 8px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .sf input[type="text"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .sf--tag, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .toggle { min-height: 42px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .sf--tag input[type="date"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .sf--tag input[type="time"] { min-height: 36px; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .err { margin-top: -4px; font-size: .875rem; line-height: 1.3; }
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf { gap: 6px; }
@media (max-width: 899px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])):has(.fields .err:not([hidden])) .steps { margin-bottom: 6px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) { padding: 12px 14px; gap: 6px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .row, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .more__in { gap: 6px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .sf input[type="text"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .sf--tag, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .toggle { min-height: 40px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .step__nav .sb { min-height: 46px; }
}
/* a computer with a short window (a laptop with the browser's bars and the taskbar): everything draws closer */
@media (min-width: 900px) and (max-height: 720px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .top { padding-top: 8px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .top__brand img { height: 30px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .wrap { padding-top: 2px; padding-bottom: 14px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .steps { margin-bottom: 10px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .steps__go { min-height: 38px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .steps__n { width: 34px; height: 34px; font-size: 1rem; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step { padding: 18px 22px; gap: 12px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step__nav .sb { min-height: 46px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .row, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in { gap: 10px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more { margin-block-start: -10px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in { padding-block-start: 10px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf input[type="text"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .toggle { min-height: 44px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag input[type="date"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag input[type="time"] { min-height: 38px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tune__pick, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tune__ear { min-height: 44px; }
}
@media (min-width: 900px) and (max-height: 720px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .scenes { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) { padding-block: 12px; gap: 6px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .row, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .more__in { gap: 6px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .sf input[type="text"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .sf--tag, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .toggle { min-height: 40px; }
}
/* a phone turned sideways: the stage and the step side by side again, without the bar, everything closer;
   the details spread over the whole width, two and three to a row */
@media (max-width: 899px) and (max-height: 500px) and (orientation: landscape) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .top { display: none; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .wrap { padding: 6px 16px 8px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .steps { margin-bottom: 6px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .steps__go { min-height: 36px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .steps__n { width: 32px; height: 32px; font-size: 1rem; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .make { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: minmax(0, 1fr); gap: 16px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side { gap: 6px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__stage { min-height: 0; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step { padding: 12px 16px; gap: 10px; min-height: 0; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step > .step__nav { margin-top: auto; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step__nav .sb, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step__nav .sb--main { min-height: 42px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__pick, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__letter { width: 38px; height: 38px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) #envelopePick { gap: 8px 6px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tunes { gap: 8px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tunes__kind { min-height: 36px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tunes__list { gap: 6px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tune__pick, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tune__ear { min-height: 40px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .make:is([data-at="4"], [data-at="5"]) .step { grid-column: 1 / -1; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; align-content: start; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields > * { grid-column: 1 / -1; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields > .sf { grid-column: auto; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .toggle { white-space: nowrap; gap: 10px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .row, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in { gap: 8px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .more { margin: 0; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .more__in { padding: 0; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in.row--pair { grid-template-columns: minmax(0, 1fr) auto; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .row--3 { grid-template-columns: 1.4fr 1fr 1fr; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .row--3 > :first-child { grid-column: auto; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) { gap: 6px 12px; padding-block: 10px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .row, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .row { gap: 6px 12px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf input[type="text"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .toggle, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .sf input[type="text"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .sf--tag, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields:has(.err:not([hidden])) .toggle { min-height: 36px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf input[type="text"] { padding-block: 4px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag input[type="date"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag input[type="time"] { min-height: 30px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .step__nav .sb { min-height: 40px; }
}
/* a short phone window (a browser with its bars, a small window): the picture keeps room for itself and its two buttons,
   and a long list in the step scrolls inside itself instead of pushing the step up over the picture */
@media (max-width: 899px) and (min-height: 501px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side { min-height: 168px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step { flex: 0 1 auto; min-height: 0; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step > .tunes, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step > #envelopePick { flex: 0 1 auto; min-height: 0; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tunes { grid-template-rows: auto minmax(0, 1fr); }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tunes__panel:not([hidden]) { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 14px 20px; margin: -14px -20px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .tunes__panel::-webkit-scrollbar, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) #envelopePick::-webkit-scrollbar { display: none; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) #envelopePick { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 14px 20px; margin: -14px -20px; }
}
/* the RSVP date gets a row of its own when the details are too narrow to show the whole date beside the children's switch */
@container (max-width: 450px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in.row--pair { grid-template-columns: minmax(0, 1fr); }
}
/* a narrow, short window: the details draw a little closer, so the RSVP date on its own row still fits without scrolling */
@media (max-width: 560px) and (max-height: 700px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .row, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in { gap: 8px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more { margin-block-start: -8px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in { padding-block-start: 8px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf input[type="text"], body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .sf--tag, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .toggle { min-height: 42px; }
}
/* ---- polish (the owner chose "only polish"): what read as unfinished, nothing moved ---- */
/* a switch that is off shows its knob: a soft grey round in the pressed track, where it used to melt into the surface */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .toggle input:not(:checked)::after { background: color-mix(in srgb, var(--muted) 38%, var(--surface)); }
/* an empty date or time shows nothing until it is filled or opened (the label beside it says what it is), and the calendar and
   clock marks stay, so the field still reads as a date */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .sf--tag input.is-empty:not(:focus)::-webkit-datetime-edit { color: transparent; }
/* on a computer the envelope's choices are a size larger and spread a little, so they fill their card instead of a small cluster in it */
@media (min-width: 900px) and (min-height: 721px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) #envelopePick { gap: 24px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__row { gap: 12px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__pick, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__letter { width: 56px; height: 56px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__pick { border-radius: 18px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__pick--paper svg { width: 42px; height: 30px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__pick--grain::before { width: 40px; height: 40px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__pick--wax i { width: 36px; height: 36px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .ep__letter { font-size: 1.375rem; }
}

/* the details breathe on a computer: the step's card is as tall as what it holds, so the fields can stand further apart */
@media (min-width: 900px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .row, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in { gap: 22px 20px; }
}
@media (min-width: 900px) and (max-height: 720px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .row, body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .more__in { gap: 16px 16px; }
}

/* on a phone the design and the envelope stand together in one frame, a pressed tray like the step's card (the owner) */
@media (max-width: 899px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__stage { padding: 10px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--pressed); }
  /* the current step's name stands clear of its ringed number */
  .steps__go.is-now { gap: 12px; }
}

/* ---------- the host's mailing list ---------- */
.list__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.ppl { max-width: 760px; }
/* the icon above, the words under it on one line (the owner) */
.soon { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; white-space: nowrap; font-size: clamp(.8125rem, 3.9vw, 1rem); margin: -8px 0 24px; padding: 14px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--pressed); color: var(--teal-ink, var(--teal)); font-weight: 500; }
.soon svg { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.soon .soon__dot { fill: var(--teal); stroke: var(--surface); stroke-width: 1.6; animation: soonPulse 2.4s var(--ease) infinite; transform-origin: 19px 6px; }
@keyframes soonPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.72); } }
@media (prefers-reduced-motion: reduce) { .soon .soon__dot { animation: none; } }
.ppl__add { display: grid; gap: 20px; padding: 24px; }
.ppl__import { display: flex; flex-wrap: wrap; gap: 12px; }
.ppl__import .sb { flex: 1 1 200px; justify-content: center; }
.ppl__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 680px) { .ppl__form { grid-template-columns: 1.2fr 1fr 1.3fr auto; align-items: center; } }
.ppl__plus { justify-content: center; }
.ppl__form .sf input { text-align: center; }
.ppl__form .sf input::placeholder { text-align: center; }
.ppl__row--edit { display: grid; padding: 14px; }
.ppl__form--edit { width: 100%; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .ppl__form--edit { grid-template-columns: 1.2fr 1fr 1.3fr; } .ppl__editacts { grid-column: 1 / -1; } }
.ppl__editacts { display: flex; justify-content: center; gap: 12px; }
.ppl__row--edit .err { text-align: center; margin-top: 8px; }
.ppl__list { margin-top: 32px; }
.ppl__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.ppl__n { display: inline-block; min-width: 1.8em; margin-inline-start: 6px; padding: 2px 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--pressed); color: var(--teal); font: 500 1rem/1.6 var(--body); text-align: center; vertical-align: middle; font-variant-numeric: tabular-nums; }
.ppl__find { flex: 0 1 260px; }
.ppl__empty { color: var(--muted); text-align: center; padding: 28px 0; }
.ppl__rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ppl__row { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; padding-inline: 18px 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--raised-sm); }
.ppl__who { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.ppl__name { flex: 1 0 100%; font-weight: 500; overflow-wrap: anywhere; }
.ppl__meta { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; unicode-bidi: isolate; }
@media (min-width: 680px) { .ppl__name { flex: 0 1 34%; } }
.ppl__del { flex: none; }
.ppl__del svg { width: 18px; height: 18px; }

/* back and next sit at the top of each step (the owner), above what the step asks */
body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .step > .step__nav { order: -1; margin-top: 0; margin-bottom: 6px; padding-top: 0; }
/* on the narrowest phones the start and end times each take a full line, so the hour is never cut */
@media (max-width: 380px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .fields .row--3 { grid-template-columns: minmax(0, 1fr); }
}

/* beside the one design there is now: more are on the way (the owner's words), after the designs in the row */
.scenes__soon { order: 1; grid-column: span 5; flex: 1 1 0; min-width: 150px; align-self: center; margin: 0; padding-inline: 4px; color: var(--muted); font-size: 1rem; line-height: 1.5; text-align: center; text-wrap: balance; }

/* the ready screen: one share button that opens the ways to share, then opening it and making another side by side */
.ready__acts { display: grid; gap: 12px; width: min(100%, 340px); margin-inline: auto; }
.ready__acts .sb { width: 100%; justify-content: center; }
.ready__share { min-height: 52px; }
.ready__chev { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.ready__share[aria-expanded="true"] .ready__chev { transform: rotate(180deg); }
.share-menu { display: grid; gap: 8px; padding: 8px; border-radius: 20px; background: var(--surface); box-shadow: var(--pressed); animation: share-in .28s var(--ease); }
.share-menu[hidden] { display: none; }
.share-menu .sb { min-height: 46px; }
.ready__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@keyframes share-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .share-menu { animation: none; } .ready__chev { transition: none; } }
/* on a computer each step's card is as tall as what it holds, not the whole height beside the picture (the owner) */
@media (min-width: 900px) {
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .make > .step { align-self: start; max-height: 100%; overflow-y: auto; }
  /* the design and the envelope are always the same size, standing together on the right side, the whole height (the owner);
     the picture's buttons stay under them in every step (the owner) */
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__stage { grid-template-columns: repeat(2, max-content); justify-content: start; gap: 12px; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .drop { width: min(calc(50cqw - 6px), calc(100cqh * var(--ar, .75))); }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .make:is([data-at="2"], [data-at="3"], [data-at="4"], [data-at="5"]) .side__env { width: auto; }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__env .ep__view { width: min(calc(50cqw - 6px), calc(100cqh * var(--ar, .5625))); }
  body:has(#app:not([hidden]):not([data-view="list"]) > #makeView:not([hidden])) .side__acts { justify-content: flex-start; }
}
.err.err--note { color: var(--muted, #5b6b68); }
