/* matri.ly's own screens and the builder's controls, following the matri.ly
   design guidelines: petal paper, aubergine ink, one berry accent and a
   marigold seal for celebrations. Tokens are prefixed --m- because the
   invitation styles already use names like --ink. */
:root {
  --m-petal: #FFF6F7; --m-card: #FFFFFF; --m-mist: #FBEAEE; --m-line: #F1DCE3; --m-edge: #A3889A;
  --m-ink: #2B1B33; --m-ink-soft: #6E5A72; --m-berry: #B0255F; --m-berry-deep: #8C1A4A; --m-on-berry: #FFFFFF; --m-blush: #FCE4EE;
  --m-marigold: #F2B135; --m-honey: #8A5A00; --m-honey-soft: #FFF1D1; --m-sage: #376F4E; --m-sage-soft: #E3F1E7;
  --m-lilac: #5E3E8C; --m-lilac-soft: #EFE7F9; --m-red: #B42318; --m-red-soft: #FDE8E6; --m-toast-action: #F2B135;
  --m-shadow-raised: 0 1px 2px rgba(90, 20, 60, .06), 0 6px 18px rgba(90, 20, 60, .07);
  --m-shadow-float: 0 18px 44px -18px rgba(90, 20, 60, .35);
  --m-r-s: 16px; --m-r-m: 24px; --m-r-l: 32px;
  --m-quick: 150ms; --m-standard: 250ms; --m-enter: cubic-bezier(.2, .8, .2, 1); --m-draw: cubic-bezier(.45, .05, .3, 1); --m-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --m-display: "Bricolage Grotesque", system-ui, sans-serif; --m-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --m-hand: "Caveat", cursive;
  --m-gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --m-petal: #1B1320; --m-card: #261B2D; --m-mist: #33253B; --m-line: #45344F; --m-edge: #8E7896;
    --m-ink: #F8EEF5; --m-ink-soft: #C3B0C6; --m-berry: #F27AAE; --m-berry-deep: #F7A3C7; --m-on-berry: #1B1320; --m-blush: #45213A;
    --m-marigold: #F6C55E; --m-honey: #F6C55E; --m-honey-soft: #3B2F1A; --m-sage: #8FCB9E; --m-sage-soft: #1F3327;
    --m-lilac: #C7AEF0; --m-lilac-soft: #2F2546; --m-red: #FF8A80; --m-red-soft: #3D1E22; --m-toast-action: #8C1A4A;
    --m-shadow-raised: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    --m-shadow-float: 0 18px 44px -18px rgba(0, 0, 0, .65);
  }
}
@media (min-width: 900px) { :root { --m-gutter: 32px; } }

.ui { font-family: var(--m-sans); font-size: 16px; font-weight: 400; line-height: 1.55; color: var(--m-ink); letter-spacing: normal; -webkit-font-smoothing: antialiased; }
:where(.ui) :is(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.ui) :is(h1, h2, h3, p) { margin: 0; }
:where(.ui) a { color: var(--m-berry); }
:where(.ui) :is(p, li, small) a { text-decoration: underline; text-underline-offset: 2px; }
.ui [hidden] { display: none !important; }
body.ui { margin: 0; background: var(--m-petal); min-height: 100vh; -webkit-tap-highlight-color: transparent; }
body.ui * { box-sizing: border-box; }
.muted { color: var(--m-ink-soft); }
.grow { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hand { font-family: var(--m-hand); font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--m-berry); }
:focus-visible { outline: 2px solid var(--m-berry); outline-offset: 2px; }
.ico { display: inline-grid; place-items: center; flex: none; line-height: 0; }
.ico svg { width: 24px; height: 24px; }

/* Buttons: one berry primary per screen; everything else steps back */
.b {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--m-edge);
  border-radius: 999px; background: var(--m-card); color: var(--m-ink); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--m-quick) ease-out, border-color var(--m-quick) ease-out, color var(--m-quick) ease-out, transform var(--m-quick) ease-out; -webkit-appearance: none; user-select: none;
}
a.b { color: var(--m-ink); }
.b:active { transform: scale(.97); }
.b:disabled { opacity: .45; cursor: default; transform: none; }
.b.primary, a.b.primary { background: var(--m-berry); border-color: var(--m-berry); color: var(--m-on-berry); }
.b.ghost, a.b.ghost { background: transparent; border-color: transparent; color: var(--m-ink); }
.b.danger, a.b.danger { color: var(--m-red); }
.b.small { min-height: 44px; padding: 0 14px; font-size: 14px; }
.b.big { min-height: 52px; padding: 0 24px; font-size: 16px; }
.b.wide { width: 100%; }
.b.icon { width: 44px; min-height: 44px; padding: 0; }
.b.on { background: var(--m-blush); border-color: var(--m-berry); color: var(--m-berry-deep); }
.b .ico svg { width: 20px; height: 20px; }
.b.imsg::before { content: ""; width: 15px; height: 13px; background: #34c759; border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%; flex: none; }
@media (hover: hover) {
  .b:hover:not(:disabled) { background: var(--m-mist); }
  .b.primary:hover:not(:disabled) { background: var(--m-berry-deep); border-color: var(--m-berry-deep); }
  .b.primary:active { background: var(--m-berry-deep); }
}

/* Fields */
.in { display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--m-edge); border-radius: var(--m-r-s); background: var(--m-card); color: var(--m-ink); font-size: 16px; line-height: 1.4; -webkit-appearance: none; transition: border-color var(--m-quick) ease-out; }
.in::placeholder { color: var(--m-ink-soft); opacity: .8; }
@media (hover: hover) { .in:hover:not(:focus) { border-color: var(--m-ink-soft); } }
.in:focus { outline: 2px solid var(--m-berry); outline-offset: 2px; }
.in[aria-invalid="true"] { border: 2px solid var(--m-red); }
.in:disabled { opacity: .45; background: var(--m-mist); }
textarea.in { resize: vertical; }
select.in { background-image: linear-gradient(45deg, transparent 50%, var(--m-ink-soft) 50%), linear-gradient(135deg, var(--m-ink-soft) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.lbl { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--m-ink-soft); }
.lbl > span { display: flex; justify-content: space-between; gap: 8px; }
.err { color: var(--m-red); font-size: 15px; min-height: 1.2em; }
.err:empty { display: none; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* Tags always carry a word; declining is never shown as an error */
.tag { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 10px; border: 1px solid var(--m-edge); border-radius: 999px; font-size: 13px; font-weight: 600; background: transparent; color: var(--m-ink-soft); white-space: nowrap; }
.tag.invited { background: var(--m-lilac-soft); border-color: transparent; color: var(--m-lilac); }
.tag.coming, .tag.live { background: var(--m-sage-soft); border-color: transparent; color: var(--m-sage); }
.tag.declined { background: var(--m-mist); border-color: transparent; color: var(--m-ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--m-edge); border-radius: 999px; background: var(--m-card); font-size: 14px; font-weight: 500; cursor: pointer; color: var(--m-ink); transition: background var(--m-quick) ease-out; }
@media (hover: hover) { .chip:hover { background: var(--m-mist); } }
.card { background: var(--m-card); border: 1px solid var(--m-line); border-radius: var(--m-r-m); padding: 24px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 24px); z-index: 90; display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px); width: max-content; padding: 12px 18px; border-radius: var(--m-r-m); background: var(--m-ink); color: var(--m-petal); font: 500 15px/1.4 var(--m-sans);
  box-shadow: var(--m-shadow-float); opacity: 0; pointer-events: none; transition: opacity var(--m-quick) ease-out, transform var(--m-quick) ease-out;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; transition-duration: var(--m-standard); transition-timing-function: var(--m-enter); }
.toast button { flex: none; min-height: 32px; border: 0; background: none; color: var(--m-toast-action); font: 600 15px var(--m-sans); cursor: pointer; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; }

/* Line drawings draw themselves in, once */
.drawn path, .drawn use { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 1.8s var(--m-draw) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.logo { display: inline-flex; align-items: center; gap: 8px; font: 800 24px/1 var(--m-display); color: var(--m-ink) !important; text-decoration: none; letter-spacing: -.03em; }
.logo em { font-style: normal; color: var(--m-marigold); }
.logo svg { width: 36px; height: 27px; fill: none; stroke-width: 3.4px; stroke-linecap: round; }
.logo .r1 { stroke: var(--m-berry); } .logo .r2 { stroke: var(--m-marigold); }

/* ── Home page ── */
.site-top { display: flex; align-items: center; gap: 12px; max-width: 1080px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) var(--m-gutter) 14px; }
.landing { max-width: 1080px; margin: 0 auto; padding: 8px var(--m-gutter) 64px; }
.hero-l { display: grid; gap: 32px; align-items: center; padding: 24px 0 48px; }
.hero-l h1 { font: 800 clamp(40px, 6.4vw, 64px)/1 var(--m-display); letter-spacing: -.035em; }
.hero-l h1 em { font-style: normal; color: var(--m-berry); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--m-marigold) 55%, transparent) 62% 92%, transparent 92%); padding: 0 .06em; }
.hero-l .sub { font-size: 17px; color: var(--m-ink-soft); margin-top: 16px; max-width: 34em; }
.prompt-card { display: grid; gap: 12px; padding: 20px; box-shadow: var(--m-shadow-raised); }
.prompt-card textarea { min-height: 116px; font-size: 17px; border: 0; padding: 4px; resize: none; background: transparent; outline-offset: 4px; }
.prompt-card .chips { margin: -2px 0 2px; }
.ai-note { font-size: 13px; font-weight: 500; color: var(--m-ink-soft); display: flex; align-items: center; gap: 8px; }
.ai-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--m-sage); flex: none; }
.ai-note.off i { background: var(--m-edge); }
.sect-title { font: 700 28px/1.15 var(--m-display); letter-spacing: -.02em; margin: 48px 0 8px; }
.sect-sub { color: var(--m-ink-soft); margin-bottom: 24px; max-width: 65ch; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { background: var(--m-card); border: 1px solid var(--m-line); border-radius: var(--m-r-m); padding: 24px; }
.steps .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--m-blush); color: var(--m-berry-deep); }
.steps li:nth-child(even) .ico { background: var(--m-honey-soft); color: var(--m-honey); }
.steps b { display: block; font-size: 17px; font-weight: 600; margin: 12px 0 4px; }
.steps p { color: var(--m-ink-soft); font-size: 15px; }
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.foot-l { text-align: center; color: var(--m-ink-soft); font-size: 13px; padding: 32px var(--m-gutter) 48px; }
@media (min-width: 900px) { .hero-l { grid-template-columns: 1.05fr 1fr; padding: 64px 0 48px; } .sect-title { margin-top: 64px; } }

/* A style sample, coloured by its own theme (home page, your pages, the style picker) */
.look {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 12px 10px; min-height: 120px; cursor: pointer; text-align: left;
  background: var(--bg); color: var(--ink); overflow: hidden; isolation: isolate; border: var(--bw) solid var(--ink); border-radius: var(--radius); font-family: var(--body);
}
.look[data-style="minimal"] { border-radius: 16px; }
.look::before { content: ""; position: absolute; inset: 0; background: var(--texture); z-index: -1; }
.look .nm { font: var(--names-weight) calc(1.7rem * var(--names-scale))/1.05 var(--names); }
.look .nm em { color: var(--accent); font-style: normal; }
.look b { font: var(--head-weight) calc(1rem * var(--head-scale)) var(--head); margin-top: auto; }
.look small { font-family: var(--body); font-weight: var(--body-weight); color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.look .tick { position: absolute; top: 8px; right: 10px; color: var(--accent); font-size: 1.2rem; opacity: 0; }
.look[aria-checked="true"] { outline: 3px solid var(--m-berry); outline-offset: 2px; }
.look[aria-checked="true"] .tick { opacity: 1; }
.look .mini { position: absolute; right: 6px; bottom: 4px; width: 62px; height: 46px; z-index: -1; opacity: .9; }
.look .mini use { stroke: var(--ink); stroke-width: 3px; }

/* ── Sign in ── */
.center-page { display: grid; place-items: center; padding: 24px var(--m-gutter); }
.narrow { width: 100%; max-width: 440px; }
.auth h1 { font: 700 30px/1.1 var(--m-display); letter-spacing: -.02em; margin: 24px 0 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--m-mist); border-radius: 999px; margin: 16px 0; }
.seg button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; color: var(--m-ink-soft); cursor: pointer; transition: background var(--m-quick) ease-out; }
.seg button[aria-selected="true"] { background: var(--m-card); color: var(--m-ink); box-shadow: var(--m-shadow-raised); }

/* Sign in with Apple, styled the way Apple asks: black, or white on dark backgrounds */
/* Sign in with Apple and Google follow each company's button rules: their
   logo, their colours, "Continue with …" */
.brand { display: inline-grid; place-items: center; flex: none; line-height: 0; }
.brand svg { width: 18px; height: 18px; }
.b.apple, a.b.apple, .b.apple:hover:not(:disabled) { background: #000; border-color: #000; color: #fff; }
.b.apple .brand svg { margin-top: -2px; }
.b.google, a.b.google { background: #fff; border-color: #747775; color: #1f1f1f; font-family: Roboto, var(--m-sans); }
@media (hover: hover) { .b.google:hover:not(:disabled) { background: #f8fafd; border-color: #747775; } }
@media (prefers-color-scheme: dark) {
  .b.apple, a.b.apple, .b.apple:hover:not(:disabled) { background: #fff; border-color: #fff; color: #000; }
  .b.google, a.b.google, .b.google:hover:not(:disabled) { background: #131314; border-color: #8e918f; color: #e3e3e3; }
}
.providers { display: grid; gap: 12px; margin-top: 24px; }
.providers.off { display: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 4px 0 0 !important; color: var(--m-ink-soft); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--m-line); }
.textlink { min-height: 44px; padding: 0; border: 0; background: none; color: var(--m-berry); font: 600 14px var(--m-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lbl .textlink { min-height: 0; margin: -12px 0; padding: 12px 0; }
.alt { display: flex; justify-content: center; margin-top: 12px; }
.gap-top { margin-top: 24px; }
.row.center { justify-content: center; }
.sent { display: grid; justify-items: center; gap: 8px; text-align: center; padding-top: 8px; outline: none; }
.sent .art { width: 168px; height: 120px; overflow: visible; margin-top: 16px; }
.sent h1 { margin-top: 8px !important; }
.sent .hint { margin: 4px 0 12px; }
/* A soft, honey-coloured nudge (not an error) */
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 18px; border-radius: var(--m-r-m); background: var(--m-honey-soft); color: var(--m-ink); font-size: 15px; }
.banner > .ico { color: var(--m-honey); }
.tag.warn { background: var(--m-honey-soft); border-color: transparent; color: var(--m-honey); }
@media (max-width: 520px) { .banner { flex-wrap: wrap; } .banner .b { margin-left: 36px; } }

/* Your account */
.acct-page { max-width: 680px; margin: 0 auto; padding: 8px var(--m-gutter) 64px; display: grid; gap: 32px; }
.acct-page h1 { font: 800 34px/1.1 var(--m-display); letter-spacing: -.025em; margin-top: 8px; }
.acct-page h2 { font: 700 20px/1.2 var(--m-display); letter-spacing: -.01em; margin-bottom: 12px; }
.account { display: grid; gap: 0; padding: 4px 24px; }
.acct-row { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.acct-row + .acct-row, .reveal + .acct-row { border-top: 1px solid var(--m-line); }
.acct-row b { display: block; font-size: 17px; font-weight: 600; }
.acct-row small { display: block; overflow-wrap: anywhere; font-size: 14px; }
.acct-row > .grow { min-width: 0; }
form.acct-row { align-items: flex-end; }
.m-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--m-mist); color: var(--m-ink); flex: none; }
.m-ico .ico svg { width: 20px; height: 20px; }
.reveal { padding: 0 0 20px; }
.b.danger.solid { background: var(--m-red); border-color: var(--m-red); color: #fff; }
@media (hover: hover) { .b.danger.solid:hover:not(:disabled) { background: color-mix(in srgb, var(--m-red) 85%, #000); } }
@media (prefers-color-scheme: dark) { .b.danger.solid { color: #1b1320; } }
.danger-card { border-color: color-mix(in srgb, var(--m-red) 28%, var(--m-line)); }
.acct-row b .tag { margin-left: 6px; vertical-align: 2px; }
.acct-row .r { display: flex; gap: 8px; flex: none; }
@media (max-width: 520px) {
  .account { padding: 4px 18px; }
  .acct-row:not(form) { flex-wrap: wrap; row-gap: 10px; }
  .acct-row:not(form) > .grow { flex-basis: calc(100% - 52px); }
  .acct-row .r { flex-basis: 100%; }
  .acct-row .m-ico ~ .r { padding-left: 52px; }
}

/* ── Your pages ── */
.app-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--m-petal) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.app-top .site-top { padding-bottom: 12px; }
.site-top .logo { flex: none; }
/* On a phone the header keeps the logo, Examples and Log in (or, signed in, Your pages); the form just below is the way to start */
@media (max-width: 480px) { .site-top { gap: 2px; } .site-top a.b, .site-top button.b { padding: 0 12px; } .site-top #start-link:not(.mine) { display: none; } }
.who { min-width: 0; max-width: 60vw; padding: 0 14px 0 6px; font-size: 14px; }
.who-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--m-blush); color: var(--m-berry-deep); font: 700 15px/1 var(--m-display); flex: none; }
.dash > .banner { margin-bottom: -16px; }
.dash { max-width: 1080px; margin: 0 auto; padding: 8px var(--m-gutter) 64px; display: grid; gap: 48px; }
.dash h2 { font: 700 24px/1.2 var(--m-display); letter-spacing: -.015em; margin-bottom: 16px; }
.pages { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pcard { background: var(--m-card); border: 1px solid var(--m-line); border-radius: var(--m-r-m); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--m-quick) ease-out; }
@media (hover: hover) { .pcard:hover { box-shadow: var(--m-shadow-raised); } }
.pcard .look { border: 0; border-radius: 0; min-height: 136px; text-decoration: none; justify-content: center; align-items: center; text-align: center; }
.pcard .look .nm { font-size: calc(1.9rem * var(--names-scale)); }
.pcard-body { padding: 16px 20px 20px; display: grid; gap: 12px; }
.pcard-body b { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 32px 24px; color: var(--m-ink-soft); background: var(--m-card); border: 1.5px dashed var(--m-line); border-radius: var(--m-r-m); }
.empty p { max-width: 36ch; }
.empty .art { width: 168px; height: 120px; overflow: visible; }
.art .env { fill: var(--m-card); stroke: var(--m-edge); stroke-width: 2; stroke-linejoin: round; }
.art .flap { fill: var(--m-blush); stroke: var(--m-edge); stroke-width: 2; stroke-linejoin: round; }
.art .wax { fill: var(--m-berry); } .art .wax-heart { fill: var(--m-marigold); }
.art .c1 { fill: var(--m-marigold); } .art .c2 { fill: var(--m-berry); } .art .c3 { fill: var(--m-lilac); } .art .c4 { fill: var(--m-sage); }
.art .sq { fill: none; stroke: var(--m-lilac); stroke-width: 2.5; stroke-linecap: round; }

/* ── Builder ── */
body.builder { --bar: calc(60px + env(safe-area-inset-top)); --tabs: 52px; --top: calc(var(--bar) + var(--tabs)); padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
body.builder.sheet-open { padding-bottom: 62vh; }
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--bar); display: flex; align-items: center; gap: 4px;
  padding: env(safe-area-inset-top) 8px 0; background: color-mix(in srgb, var(--m-card) 94%, transparent); border-bottom: 1px solid var(--m-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.bar-title { flex: 1; min-width: 0; display: grid; line-height: 1.25; padding-left: 2px; }
.bar-title b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-title span { font-size: 13px; color: var(--m-ink-soft); }
.bar-title span.bad { color: var(--m-red); }
.tabs { position: fixed; top: var(--bar); left: 0; right: 0; z-index: 39; height: var(--tabs); display: flex; justify-content: center; gap: 4px; padding: 4px 8px; background: color-mix(in srgb, var(--m-card) 94%, transparent); border-bottom: 1px solid var(--m-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tabs button { flex: 1; max-width: 168px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--m-ink-soft); font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background var(--m-quick) ease-out; }
.tabs button[aria-selected="true"] { background: var(--m-mist); color: var(--m-ink); }
.tabs .count { font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--m-berry); color: var(--m-on-berry); display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.builder main.inv { padding-top: calc(var(--top) + 8px); }
.builder.away main.inv, .builder.away .tools { visibility: hidden; }

/* Blocks while editing */
.editing { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.editing .blk { cursor: pointer; border-radius: var(--m-r-s); }
.editing .blk::after { content: ""; position: absolute; inset: 2px 6px; border-radius: var(--m-r-s); pointer-events: none; transition: box-shadow var(--m-quick) ease-out; }
@media (hover: hover) { .editing .blk:hover::after { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--m-berry) 45%, transparent); } }
.editing .blk.sel::after { box-shadow: 0 0 0 2px var(--m-berry); }
.editing .blk :is(input, textarea, button, select, a, iframe, summary, label) { pointer-events: none; }
.editing .blk .blk-tools, .editing .blk .blk-tools * { pointer-events: auto; }
.editing .blk.dragging { opacity: .25; }
.blk-tools { position: absolute; z-index: 5; top: -18px; right: 12px; display: flex; gap: 2px; padding: 3px; background: var(--m-card); border: 1px solid var(--m-line); border-radius: 999px; box-shadow: var(--m-shadow-float); margin: 0 !important; font-family: var(--m-sans); }
.blk-tools button { width: 44px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--m-ink); cursor: pointer; display: grid; place-items: center; transition: background var(--m-quick) ease-out; }
.blk-tools button svg { width: 20px; height: 20px; }
@media (hover: hover) { .blk-tools button:hover { background: var(--m-mist); } }
.blk-tools .grip { cursor: grab; touch-action: none; color: var(--m-berry); }
.blk-tools .del { color: var(--m-red); }
.blk-label { position: absolute; z-index: 5; top: -12px; left: 14px; margin: 0 !important; padding: 3px 10px; border-radius: 999px; background: var(--m-berry); color: var(--m-on-berry); font: 600 12px/1.4 var(--m-sans); pointer-events: none; }
.grip-side { position: absolute; z-index: 4; left: -4px; top: 50%; transform: translateY(-50%); width: 30px; height: 44px; margin: 0 !important; border: 0; border-radius: 10px; background: var(--m-card); color: var(--m-ink-soft); box-shadow: var(--m-shadow-raised); cursor: grab; touch-action: none; display: grid; place-items: center; opacity: 0; transition: opacity var(--m-quick) ease-out; pointer-events: auto !important; }
.grip-side svg { width: 18px; height: 18px; }
@media (hover: hover) { .editing .blk:hover .grip-side { opacity: 1; } }
@media (hover: none) { .grip-side { display: none; } }
.blk:first-child > .blk-tools { top: 8px; }
.blk:first-child > .blk-label { top: 14px; }
.bar, .tabs, .tools, .blk-tools, .grip-g, .grip-side { -webkit-user-select: none; user-select: none; }
.is-dragging, .is-dragging * { -webkit-user-select: none !important; user-select: none !important; cursor: grabbing !important; }
.drag-ghost { position: fixed; z-index: 95; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: var(--m-card); color: var(--m-ink); border: 2px solid var(--m-berry); box-shadow: var(--m-shadow-float); font: 600 15px var(--m-sans); transform: translate(-50%, -130%) rotate(-2deg); white-space: nowrap; }
.drop-line { position: fixed; z-index: 94; height: 4px; border-radius: 4px; background: var(--m-berry); pointer-events: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-berry) 25%, transparent); }
.drop-line::before, .drop-line::after { content: ""; position: absolute; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--m-berry); }
.drop-line::before { left: -6px; } .drop-line::after { right: -6px; }
.add-end { display: flex; justify-content: center; padding: 24px 0 8px; position: relative; z-index: 1; }

/* Bottom toolbar: hand-drawn icons with a word under each */
.tools {
  position: fixed; z-index: 38; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 2px; padding: 6px;
  background: var(--m-card); border: 1px solid var(--m-line); border-radius: 30px; box-shadow: var(--m-shadow-raised); max-width: calc(100vw - 16px);
}
.tools button { display: grid; justify-items: center; gap: 2px; min-width: 64px; min-height: 56px; padding: 6px 6px 5px; border: 0; border-radius: 24px; background: transparent; color: var(--m-ink); font-size: 12px; font-weight: 600; cursor: pointer; transition: background var(--m-quick) ease-out, transform var(--m-quick) ease-out; }
.tools button:active { transform: scale(.97); }
.tools button.main { background: var(--m-berry); color: var(--m-on-berry); }
@media (hover: hover) { .tools button:hover:not(.main) { background: var(--m-mist); } .tools button.main:hover { background: var(--m-berry-deep); } }
.sheet-open .tools { display: none; }

/* Sheets (bottom on phones, side panel on wide screens) */
.sheet {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; max-height: 60vh; overflow: hidden auto; overscroll-behavior: contain;
  background: var(--m-card); border-top: 1px solid var(--m-line); border-radius: var(--m-r-l) var(--m-r-l) 0 0; box-shadow: var(--m-shadow-float);
  padding: 0 20px calc(20px + env(safe-area-inset-bottom)); animation: rise var(--m-standard) var(--m-enter);
}
.sheet.tall { max-height: 86vh; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 18px 0 12px; background: var(--m-card); }
.sheet-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--m-line); }
.sheet-head h3 { font: 700 22px/1.2 var(--m-display); letter-spacing: -.015em; flex: 1; }
.sheet-sec { font-size: 15px; font-weight: 600; color: var(--m-ink-soft); margin: 24px 0 8px; }
.scrim { position: fixed; inset: 0; z-index: 44; background: rgba(43, 36, 32, .3); }

.lib { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 80px; padding: 8px 4px; border: 1px solid var(--m-line); border-radius: var(--m-r-s); background: var(--m-card); color: var(--m-ink); font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: background var(--m-quick) ease-out, border-color var(--m-quick) ease-out; }
.tile .ico { color: var(--m-berry); }
@media (hover: hover) { .tile:hover { background: var(--m-mist); border-color: var(--m-edge); } }
.hint { font-size: 14px; color: var(--m-ink-soft); margin-top: 12px; }

.fields { display: grid; gap: 16px; }
.items { display: grid; gap: 12px; }
.item { display: grid; gap: 12px; padding: 12px; border-radius: var(--m-r-s); background: var(--m-mist); }
.item-head { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--m-ink-soft); }
.item-head .b { width: 44px; padding: 0; }
.item-head .b svg { width: 18px; height: 18px; }
.stylebar { display: grid; gap: 12px; }
.stylebar .row > .lbl { flex: 1; }
.swatches { display: flex; gap: 8px; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--m-card); box-shadow: 0 0 0 1px var(--m-edge); cursor: pointer; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--m-ink-soft); background: var(--m-mist); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--m-berry); }
.segs { display: inline-flex; border: 1px solid var(--m-edge); border-radius: 999px; overflow: hidden; }
.segs button { min-width: 44px; min-height: 44px; border: 0; background: var(--m-card); cursor: pointer; font-size: 15px; color: var(--m-ink); }
.segs button + button { border-left: 1px solid var(--m-line); }
.segs button[aria-pressed="true"] { background: var(--m-blush); color: var(--m-berry-deep); font-weight: 700; }
.size-out { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; }
.acts .b { flex-direction: column; gap: 4px; min-height: 64px; font-size: 13px; padding: 6px 4px; }
.looks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-box textarea { min-height: 104px; }
.ai-reply { padding: 14px 16px; border-radius: var(--m-r-s); background: var(--m-blush); color: var(--m-ink); font-size: 15px; }
.ai-reply:empty { display: none; }
.linkbox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border: 1px solid var(--m-line); border-radius: 999px; background: var(--m-mist); }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.slug-row { display: flex; align-items: center; border: 1px solid var(--m-edge); border-radius: var(--m-r-s); background: var(--m-card); overflow: hidden; }
.slug-row:focus-within { outline: 2px solid var(--m-berry); outline-offset: 2px; }
.slug-row span { padding: 0 0 0 14px; color: var(--m-ink-soft); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48%; }
.slug-row input { border: 0; min-width: 0; flex: 1; padding-left: 2px; outline: none !important; }
.switch { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--m-line); border-radius: var(--m-r-m); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--m-edge); position: relative; flex: none; cursor: pointer; transition: background var(--m-quick) ease-out; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--m-card); box-shadow: 0 1px 3px rgba(60, 35, 20, .3); transition: transform var(--m-quick) ease-out; }
.switch input:checked { background: var(--m-sage); }
.switch input:checked::after { transform: translateX(20px); }
.switch b { display: block; font-size: 17px; font-weight: 600; }
.switch small { color: var(--m-ink-soft); font-size: 14px; }
.seal { display: block; width: 48px; height: 48px; flex: none; }
.seal .wax { fill: var(--m-marigold); } .seal .wax-heart { fill: var(--m-berry-deep); }
.seal.stamp { animation: stamp 450ms var(--m-bounce) both; }
@keyframes stamp { from { transform: scale(1.7) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 1; } }
.confetti { position: fixed; z-index: 96; width: 9px; height: 9px; pointer-events: none; border-radius: 2px; }
.preview-card { width: 100%; max-width: 300px; border: 1px solid var(--m-line); border-radius: var(--m-r-m); overflow: hidden; background: var(--m-mist); }
.preview-card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--m-line); }
.preview-card div { padding: 10px 14px 12px; display: grid; gap: 2px; }
.preview-card b { font-size: 15px; font-weight: 600; }
.preview-card small { color: var(--m-ink-soft); font-size: 13px; }
.bubble-wrap { display: flex; justify-content: flex-end; }
.coach { position: fixed; z-index: 41; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 24px); padding: 12px 18px; border-radius: var(--m-r-m); background: var(--m-ink); color: var(--m-petal); font-size: 15px; box-shadow: var(--m-shadow-float); display: flex; gap: 14px; align-items: center; animation: rise var(--m-standard) var(--m-enter); }
.coach button { white-space: nowrap; min-height: 32px; border: 0; background: none; color: var(--m-toast-action); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Guests & replies */
.screen { position: fixed; z-index: 30; top: var(--top); left: 0; right: 0; bottom: 0; overflow: auto; overscroll-behavior: contain; background: var(--m-petal); padding: 16px var(--m-gutter) calc(48px + env(safe-area-inset-bottom)); }
.screen-in { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: var(--m-card); border: 1px solid var(--m-line); border-radius: 16px; padding: 12px 14px; }
.stat b { display: block; font: 700 28px/1.1 var(--m-display); font-variant-numeric: lining-nums tabular-nums; }
.stat span { display: block; font-size: 13px; font-weight: 500; color: var(--m-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.coming b { color: var(--m-sage); } .stat.invited b { color: var(--m-lilac); } .stat.declined b { color: var(--m-ink-soft); }
.dropzone { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 24px 20px; border: 1.5px dashed var(--m-edge); border-radius: var(--m-r-m); background: var(--m-card); transition: border-color var(--m-quick) ease-out, background var(--m-quick) ease-out; }
.dropzone.over, .screen.over .dropzone { border-color: var(--m-berry); background: var(--m-blush); }
.dropzone .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--m-blush); color: var(--m-berry-deep); }
.dropzone .ico svg { width: 30px; height: 30px; }
.dropzone b { font: 700 22px/1.2 var(--m-display); letter-spacing: -.015em; }
.dropzone p { color: var(--m-ink-soft); font-size: 15px; max-width: 34em; }
.dropzone .row { margin-top: 8px; justify-content: center; }
.typein { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--m-line); border-radius: var(--m-r-m); background: var(--m-card); }
.group { background: var(--m-card); border: 1px solid var(--m-line); border-radius: var(--m-r-m); padding: 8px 8px 10px; transition: border-color var(--m-quick) ease-out, background var(--m-quick) ease-out; }
.group.over { border-color: var(--m-berry); background: var(--m-blush); }
.group-head { display: flex; align-items: center; gap: 6px; padding: 4px 4px 6px 10px; }
.group-head b { font-size: 17px; font-weight: 600; }
.group-head .n { color: var(--m-ink-soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.group-head input { max-width: 220px; }
.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-height: 44px; }
.gempty { display: grid; place-items: center; min-height: 48px; border: 1.5px dashed var(--m-line); border-radius: var(--m-r-s); color: var(--m-ink-soft); font-size: 14px; margin: 0 4px; }
.glist:has(.ph) + .gempty { display: none; }
.gcard { background: var(--m-card); border: 1px solid var(--m-line); border-radius: 14px; transition: background var(--m-quick) ease-out; }
.gcard.dragging { opacity: .3; }
.gcard.ph { height: 60px; border: 2px dashed var(--m-berry); background: var(--m-blush); }
.grow-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 2px; min-height: 60px; }
.grip-g { width: 32px; height: 44px; border: 0; background: none; color: var(--m-ink-soft); cursor: grab; touch-action: none; flex: none; border-radius: 10px; display: grid; place-items: center; }
.grip-g svg { width: 18px; height: 18px; }
@media (hover: hover) { .grip-g:hover { background: var(--m-mist); } }
.gname { flex: 1; min-width: 0; min-height: 44px; display: grid; align-content: center; text-align: left; border: 0; background: none; padding: 2px 0; cursor: pointer; color: var(--m-ink); }
.gname b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gname small { color: var(--m-ink-soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmore { display: grid; gap: 12px; padding: 16px 14px 14px; border-top: 1px solid var(--m-line); margin-top: 2px; }
.gmore .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ghost-card { position: fixed; z-index: 95; pointer-events: none; box-shadow: var(--m-shadow-float); transform: rotate(-1.5deg); opacity: .95; }
.reply { background: var(--m-card); border: 1px solid var(--m-line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; }
.reply .row b { flex: 1; font-size: 17px; font-weight: 600; }
.reply p { color: var(--m-ink-soft); font-size: 15px; }
.reply.old { opacity: .7; }
.who-list { list-style: none; margin: 2px 0; padding: 0; display: grid; gap: 2px; color: var(--m-ink-soft); font-size: 15px; }
.who-list b { color: var(--m-ink); font-weight: 600; }
.tally { background: var(--m-card); border: 1px solid var(--m-line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 12px; }
.tally-row { display: grid; gap: 6px; }
.tally-row b { font-size: 15px; font-weight: 600; }
.tally .tag { min-height: 30px; font-size: 14px; }

/* Households, plus-ones and addresses in a guest's details */
.member { display: grid; grid-template-columns: 1fr 104px 44px; gap: 6px; align-items: center; font-weight: 400; }
.icon-gap { width: 44px; }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.checks legend { padding: 0; margin-bottom: 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--m-ink); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--m-berry); margin: 0; }
.gnote { white-space: pre-line; margin: 0; }
.hh-box { background: var(--m-card); border: 1.5px solid var(--m-berry); border-radius: var(--m-r-m); padding: 14px 16px; display: grid; gap: 10px; }
.hh-box .hint { margin: 0; }
.hh { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--m-line); }
.hh > input { width: 22px; height: 22px; margin: 13px 0 0; accent-color: var(--m-berry); flex: none; }
.hh .stack { gap: 6px; }
.hh small { color: var(--m-ink-soft); font-size: 14px; }
.hh.off .in, .hh.off small { opacity: .5; }

/* The Events tab */
.screen-in section h2 { margin: 8px 0 0; font: 700 24px/1.2 var(--m-display); letter-spacing: -.015em; }
.screen-in > section > .hint { margin-top: -8px; }
.ecard { background: var(--m-card); border: 1px solid var(--m-line); border-radius: var(--m-r-m); padding: 12px 14px 16px; display: grid; gap: 12px; }
.ecard > .row b { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecard .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.note-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--m-r-m); background: var(--m-honey-soft); color: var(--m-ink); font-size: 15px; }
.ideas { display: grid; gap: 8px; }
.ideas .sheet-sec { margin: 4px 0 0; }
.idea { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--m-edge); border-radius: var(--m-r-s); background: var(--m-card); }
.idea b { display: block; font-size: 16px; font-weight: 600; }
.idea small { color: var(--m-ink-soft); font-size: 13px; }

@media (max-width: 380px) {
  .tools button { min-width: 56px; font-size: 11px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .lib { grid-template-columns: repeat(3, 1fr); }
}

/* Wide screens: the library stays open on the left, sheets dock on the right */
@media (min-width: 1100px) {
  body.builder, body.builder.sheet-open { padding-bottom: 64px; }
  .builder main.inv { margin-left: max(300px, calc(50vw - 280px)); margin-right: max(380px, calc(50vw - 280px)); max-width: 560px; }
  .sheet { top: calc(var(--top) + 12px); bottom: 12px; left: auto; right: 12px; width: 360px; max-height: none; border: 1px solid var(--m-line); border-radius: var(--m-r-m); animation: none; }
  .sheet.tall { max-height: none; }
  .sheet-head::before { display: none; }
  .sheet#library { right: auto; left: 12px; width: 276px; bottom: 96px; display: block !important; }
  .sheet#library .close { display: none; }
  .lib { grid-template-columns: repeat(3, 1fr); }
  .scrim { display: none !important; }
  .sheet-open .tools { display: flex; }
  .tools { left: 12px; right: auto; transform: none; bottom: 12px; width: 276px; justify-content: space-between; }
  .tools button { min-width: 0; flex: 1; }
  .tools [data-open="library"] { display: none; }
  .toast { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .coach { animation: none; }
  .toast, .toast.show { transition: opacity var(--m-quick) ease-out; transform: translate(-50%, 0); }
  .b:active, .tools button:active { transform: none; }
  .drawn path, .drawn use { animation: none; stroke-dashoffset: 0; }
  .seal.stamp { animation: none; transform: rotate(-8deg); }
}

/* Photos in the builder */
.lib-photos { margin-bottom: 12px; }
.ph-add { position: relative; cursor: pointer; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-tile { position: relative; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--m-mist); cursor: pointer; }
.ph-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-tile.on { border-color: var(--m-berry); }
.ph-tile.was { opacity: .45; }
.ph-check { position: absolute; top: 6px; right: 6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--m-berry); color: var(--m-on-berry); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.focus-frame { position: relative; margin: 12px 0 4px; border-radius: 16px; overflow: hidden; cursor: crosshair; line-height: 0; }
.focus-frame img { width: 100%; height: auto; display: block; }
.focus-dot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--m-berry), 0 2px 8px rgba(0, 0, 0, .4); pointer-events: none; }
.pick-one { padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; cursor: pointer; flex: none; }
.pick-thumb { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.pick-missing { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: var(--m-mist); font-size: 11px; text-align: center; color: var(--m-ink-soft); }
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pick-cell { position: relative; }
.pick-acts { position: absolute; inset: auto 2px 2px 2px; display: flex; justify-content: space-between; }
.pick-acts button { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(43, 27, 51, .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pick-acts button svg { width: 14px; height: 14px; }
.pick-acts button:disabled { opacity: 0; }
.accent-in { width: 52px; height: 44px; padding: 2px; border: 1px solid var(--m-edge); border-radius: 12px; background: var(--m-card); cursor: pointer; }
.prompt-tools { gap: 4px; margin: -4px 0 0 -6px; }
.prompt-tools .b { cursor: pointer; }
.photo-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; }
.ps-cell { position: relative; flex: none; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--m-mist); }
.ps-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-cell.bad img { opacity: .35; }
.ps-cell.card { outline: 2px solid var(--m-marigold); outline-offset: -2px; }
.ps-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(43, 27, 51, .75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ps-x svg { width: 14px; height: 14px; }
.ps-spin { position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -9px; color: #fff; }
.ps-tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 8px; background: var(--m-marigold); color: #2b1b33; font-size: 11px; font-weight: 700; }
.lbl > .textlink { justify-self: start; }

/* Emailing guests */
.chip.on, .chip[aria-checked="true"] { background: var(--m-ink); border-color: var(--m-ink); color: var(--m-petal); }
.mail-preview { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--m-line); border-radius: var(--m-r-m); background: #fff; color: #2B1B33; font: 16px/1.55 Georgia, "Times New Roman", serif; }
.mail-preview small { font: 13px var(--m-sans); color: #6E5A72; }
.mail-preview b { font: 600 16px var(--m-sans); }
.mail-preview p { margin: 0; white-space: pre-line; }
.mail-btn { justify-self: center; margin-top: 6px; padding: 10px 20px; border-radius: 999px; background: var(--m-berry); color: #fff; font: 600 15px var(--m-sans); }
.sent-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--m-line); }
.sent-row b { display: block; font-size: 15px; font-weight: 600; }
.sent-row small { color: var(--m-ink-soft); font-size: 13px; }
.b.big { min-height: 52px; font-size: 16px; }

/* QR codes */
.qr { display: block; width: 100%; height: auto; border-radius: 8px; }
.qr-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qr-row > div { width: 132px; }
.qr-box { width: min(92vw, 380px); border: 0; border-radius: var(--m-r-l); padding: 22px; background: var(--m-card); color: var(--m-ink); box-shadow: var(--m-shadow-float); }
.qr-box::backdrop { background: rgba(43, 27, 51, .45); }
.qr-box h3 { margin: 0 0 12px; font: 700 20px/1.2 var(--m-display); }
.qr-box #qr-code { width: 220px; margin: 0 auto; }
.qr-box .row { justify-content: flex-end; margin-top: 8px; }

/* Approving guests' photos */
.helper { padding: 12px; border-radius: var(--m-r-m); background: var(--m-mist); }
.helper .sheet-sec { margin: 0; }
.ph-tile.mod { aspect-ratio: auto; display: grid; gap: 4px; padding: 0 0 6px; cursor: default; border-color: var(--m-honey-soft); background: var(--m-card); }
.ph-tile.mod.ok { border-color: var(--m-sage-soft); }
.ph-tile.mod img { aspect-ratio: 1; height: auto; }
.ph-tile.mod small { padding: 0 6px; font-size: 12px; color: var(--m-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-tile.mod .row { padding: 0 4px; gap: 4px; }
.ph-tile.mod .b.small { min-height: 36px; padding: 0 10px; flex: 1; }
.ph-tile.mod .b.icon { width: 36px; flex: none; }
.qlist .reply .tag { align-self: start; }

/* Settings: translations and domains */
.tr-row small { font-weight: 400; white-space: pre-line; }
.tr-words summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.tr-words[open] { display: grid; gap: 14px; }
.dns { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 12px 14px; border-radius: var(--m-r-s); background: var(--m-mist); font-size: 14px; }
.dns span { color: var(--m-ink-soft); }
.dns b { font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }

/* The examples gallery */
.examples .ex-title { margin: 8px 0 4px; font: 800 clamp(30px, 7vw, 44px)/1.05 var(--m-display); letter-spacing: -.02em; }
.ex-lead { max-width: 40em; color: var(--m-ink-soft); font-size: 17px; margin: 0 0 16px; }
.ex-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 4px; }
.ex-filters .lbl { min-width: 150px; }
.ex-filters .grow { flex: 1 1 220px; }
.ex-card .pcard-body { gap: 6px; }
.ex-typed summary { min-height: 40px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--m-berry); cursor: pointer; }
.ex-typed p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--m-ink-soft); white-space: pre-line; }
