/* Direction "Quiet luxury invitation": editorial typography + minimal whitespace,
   with an Art Deco hairline in champagne gold and a liquid-glass reaction dock.
   Type: Noto Serif KR (light) for Korean display, Cormorant Garamond for Latin
   display and kickers, Pretendard for reading. Scale: augmented fourth (x1.414).
   Layout: a single 480px column; the hall sits in an arch frame, reactions live in a
   floating glass dock so they're always one tap away during the ceremony. */
/* Palette: "Media Editorial" from the design-isms colour catalogue. Warm black-and-white carries the
   page; rose is saved for kickers, ornaments and the actions guests take (send, react, copy); the
   violet accent only marks the live moment. Long text stays neutral. */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --fg: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --border: #78716c;
  --accent: #be123c;
  --accent-ink: #be123c;
  --accent-soft: #fdecef;
  --violet: #7c3aed;
  --gold: #be123c;
  --gold-soft: rgba(190, 18, 60, .28);
  --ok: #15803d;
  --danger: #b45309;
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 1px 2px rgba(28, 25, 23, .05), 0 12px 32px -12px rgba(28, 25, 23, .2);
  --on-accent: #ffffff;
  --display: "Cormorant Garamond", "Noto Serif KR", "AppleMyungjo", serif;
  --script: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1917; --surface: #292524; --surface-2: #23201e; --fg: #fafaf9; --muted: #d6d3d1; --line: #3a3532; --border: #a8a29e;
    --accent: #fb7185; --accent-ink: #fb7185; --accent-soft: #3a1f26; --violet: #c4b5fd; --gold: #fb7185; --gold-soft: rgba(251, 113, 133, .3);
    --ok: #4ade80; --danger: #fbbf24; --glass: rgba(41, 37, 36, .72);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6); --on-accent: #4c0519; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1917; --surface: #292524; --surface-2: #23201e; --fg: #fafaf9; --muted: #d6d3d1; --line: #3a3532; --border: #a8a29e;
  --accent: #fb7185; --accent-ink: #fb7185; --accent-soft: #3a1f26; --violet: #c4b5fd; --gold: #fb7185; --gold-soft: rgba(251, 113, 133, .3);
  --ok: #4ade80; --danger: #fbbf24; --glass: rgba(41, 37, 36, .72);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6); --on-accent: #4c0519; color-scheme: dark;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
img { max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.65;
  letter-spacing: -.005em; -webkit-font-smoothing: antialiased;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 28px 56px;
}
body.has-dock { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.wrap { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- type ---------- */
.kicker { font-family: var(--script); font-weight: 500; font-size: 12.5px; color: var(--gold); margin: 0; letter-spacing: .34em; text-transform: uppercase; line-height: 1.4; }
.orn { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 220px; margin: 0 auto; color: var(--gold); }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.orn::after { background: linear-gradient(270deg, transparent, var(--gold-soft)); }
.orn i { width: 5px; height: 5px; transform: rotate(45deg); border: 1px solid var(--gold); }
.eyebrow { font-size: 11px; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; }
h1 { font-family: var(--display); font-weight: 300; font-size: 30px; line-height: 1.25; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-family: var(--display); font-weight: 300; font-size: 21px; line-height: 1.3; margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; letter-spacing: -.01em; }
h2 small { font-family: var(--body); font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
h3 { font-family: var(--display); font-weight: 500; font-size: 16px; margin: 4px 0 0; }
.note { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.err { font-size: 13px; color: var(--danger); margin: 0; }
.sechead { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.sechead h2 { justify-content: center; }
.sechead .note { max-width: 32ch; }
section { display: flex; flex-direction: column; gap: 14px; }

/* ---------- hero ---------- */
header { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.hero { gap: 10px; padding-top: 8px; }
.names { font-family: var(--display); font-size: clamp(34px, 10.5vw, 42px); font-weight: 300; line-height: 1.15; letter-spacing: .02em; display: flex; align-items: baseline; justify-content: center; gap: .32em; flex-wrap: wrap; }
.names .amp, h1 .amp { font-family: var(--script); font-style: italic; font-weight: 300; font-size: .62em; color: var(--gold); padding: 0; }
.bigdate { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; width: 100%; max-width: 340px; font-family: var(--script); color: var(--fg); }
.bigdate span { font-size: 12px; letter-spacing: .22em; line-height: 1.7; text-transform: uppercase; color: var(--muted); white-space: pre-line; }
.bigdate span:first-child { text-align: right; } .bigdate span:last-child { text-align: left; }
.bigdate strong { font-weight: 300; font-size: clamp(48px, 15vw, 60px); line-height: 1; letter-spacing: .02em; font-variant-numeric: lining-nums; padding: 0 14px; border-left: 1px solid var(--gold-soft); border-right: 1px solid var(--gold-soft); }
.when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hero-meta { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.chip-dday { font-family: var(--script); letter-spacing: .08em; font-size: 13px; font-weight: 500; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.present { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); }
.present .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- the hall ---------- */
.frame { position: relative; filter: drop-shadow(0 18px 30px rgba(28, 25, 23, .2)); }
.scene { position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd;
  border-radius: 50% 50% 22px 22px / 34% 34% 22px 22px; isolation: isolate; }
.scene::after { content: ""; position: absolute; inset: 7px; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .6); pointer-events: none; z-index: 6; }
.scene::before { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 244, 236, .28), transparent 60%), radial-gradient(140% 90% at 50% 110%, rgba(28, 25, 23, .2), transparent 55%); }
.scene svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.screen { position: absolute; left: 31%; top: 12.5%; width: 38%; height: 27%; background: radial-gradient(120% 90% at 50% 0%, #2f2a28, #141110 70%);
  border: 1px solid rgba(255, 255, 255, .7); outline: 1px solid rgba(255, 255, 255, .22); outline-offset: 2px; border-radius: 3px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-align: center; padding: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.screen .tag { font-size: 8.5px; letter-spacing: .14em; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.screen .tag.live { background: linear-gradient(90deg, #be123c, #e11d48); color: #ffffff; font-weight: 600; }
.screen .count { font-family: var(--display); font-weight: 400; font-size: clamp(13px, 4vw, 19px); font-variant-numeric: tabular-nums; line-height: 1.2; }
.screen .sub { font-size: 8.5px; opacity: .7; }
.screen { z-index: 4; transition: opacity .6s ease, transform .6s ease; }
/* luxe: the front display is a small frosted panel high on the back wall, clear of the couple's name tags. During the
   ceremony it shows each new step for a few seconds and then fades (the step stays in the cue bar under the hall),
   so it doesn't sit over the chandelier, the stained glass or the folding screen */
:root:not([data-style="cute"]) .screen { top: 8%; left: 32%; width: 36%; height: 21%; border-radius: 12px; outline: 0;
  background: rgba(24, 18, 22, .44); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
:root:not([data-style="cute"]) .scene[data-phase="live"] .screen:not(.pop), .scene.close .screen:not(.pop) { opacity: 0; transform: translateY(-6px) scale(.96); }
/* the camera: everything drawn in the venue moves together, and moves in on the couple for the vows, the rings, the
   declaration and the bows (guest.js sets .close) */
.cam { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform 1.8s cubic-bezier(.3, .1, .3, 1); }
.scene.close .cam { transform: scale(1.65); }
@media (prefers-reduced-motion: reduce) { .cam, .screen { transition: none; } }
/* luxe: the avatars are lit evenly, so each venue tints them toward its own light (dusk, candles, a dim ballroom) */
:root:not([data-style="cute"]) .scene[data-venue="dark"] .fig { filter: brightness(.9) contrast(1.05) saturate(.95); }
:root:not([data-style="cute"]) .scene[data-venue="cathedral"] .fig { filter: sepia(.14) brightness(.95) saturate(1.05); }
:root:not([data-style="cute"]) .scene:is([data-venue="chapel"], [data-venue="church"]) .fig { filter: sepia(.09) brightness(.98); }
:root:not([data-style="cute"]) .scene:is([data-venue="house"], [data-venue="hanok"]) .fig { filter: sepia(.06); }
:root:not([data-style="cute"]) .scene[data-venue="rooftop"] .fig { filter: sepia(.16) brightness(.94) saturate(1.08); }
:root:not([data-style="cute"]) .scene[data-venue="beach"] .fig { filter: sepia(.2) brightness(.95) saturate(1.1) hue-rotate(-6deg); }
:root:not([data-style="cute"]) .scene:is([data-venue="garden-autumn"], [data-venue="forest-autumn"]) .fig { filter: sepia(.12) saturate(1.06); }
:root:not([data-style="cute"]) .scene[data-venue="forest"] .fig { filter: sepia(.05) brightness(.96); }
.wreaths { position: absolute; bottom: 4%; display: flex; gap: 2px; align-items: flex-end; z-index: 2; }
.wreaths.l { left: 5%; } .wreaths.r { right: 5%; flex-direction: row-reverse; }
.wreath { width: clamp(36px, 11vw, 54px); padding: 0; border: 0; background: none; cursor: pointer; animation: rise .5s ease-out; }
.wreath:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* a wreath with its two ribbons: the wish hangs on the right, the sender on the left */
.rcard { position: relative; container-type: inline-size; width: 100%; }
.rcard svg { width: 100%; height: auto; display: block; }
.rcard .rb { position: absolute; top: 72cqw; width: 15cqw; height: 44cqw; background: var(--rb, #c64d6e); color: #fffaf3; overflow: hidden;
  writing-mode: vertical-rl; text-orientation: upright; font-family: "Noto Serif KR", serif; font-weight: 500; font-size: 9cqw; line-height: 15cqw;
  letter-spacing: -.04em; text-align: start; padding-top: 2cqw; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 94%, 0 100%); }
.rcard .rb.r { right: 26cqw; } .rcard .rb.l { left: 26cqw; }
.rcard.big::after { content: ""; display: block; height: 60cqw; }   /* room for the long ribbons (cqw of the card itself) */
.rcard.big .rb { height: 118cqw; font-size: 6.6cqw; }
.ribbon-preview { display: flex; justify-content: center; padding: 6px 0 2px; }
.ribbon-preview .rcard { width: 130px; }
.wrcard { position: fixed; inset: 0; z-index: 60; background: rgba(16, 13, 12, .78); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
.wrcard .rcard { width: min(52vw, 210px); }
.wrcard p { margin: 0; color: #fff; font-size: 14px; }
.vmodal { position: fixed; inset: 0; z-index: 60; background: rgba(16, 13, 12, .92); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.vbox { width: min(100%, 760px); aspect-ratio: 16 / 9; background: #000; display: flex; align-items: center; justify-content: center; color: #fff; }
.vbox iframe, .vbox video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.film .snap { width: clamp(54px, 16vw, 84px); aspect-ratio: 1; object-fit: cover; border: 4px solid #fbf3e6; border-bottom-width: 12px; transform: rotate(-3deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45); filter: saturate(.85) contrast(1.05) sepia(.12); }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.fx i { position: absolute; font-style: normal; will-change: transform, opacity; filter: drop-shadow(0 1px 1px rgba(28, 25, 23, .18)); }
.fx i svg { display: block; width: 100%; height: 100%; }
.fig { position: absolute; transform: translate(-50%, -100%); pointer-events: none; z-index: 3; }
.fig svg { display: block; width: 100%; height: auto; transform-origin: 50% 100%; }
.fig.walking svg { animation: step .5s ease-in-out infinite; }
@keyframes step { 50% { transform: translateY(-3%) rotate(1.5deg); } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 7; }

/* cue floats on the bottom edge of the frame */
.cue { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); width: max-content; max-width: calc(100% - 24px); z-index: 8;
  background: var(--surface); color: var(--fg); border-radius: 999px; padding: 6px 6px 6px 16px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; box-shadow: var(--shadow); border: 1px solid var(--line); animation: cuein .45s cubic-bezier(.2, .8, .3, 1); }
@keyframes cuein { from { transform: translate(-50%, 90%); opacity: 0; } }
.cue strong { font-family: "Noto Serif KR", serif; font-weight: 500; white-space: nowrap; }
.cue span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cue button svg { width: 15px; height: 15px; }
.cue button { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 12.5px; font-weight: 500; border: 0; border-radius: 999px; padding: 6px 12px; background: var(--accent-ink); color: var(--on-accent); cursor: pointer; flex: 0 0 auto; }

/* ---------- film ---------- */
.film { position: absolute; inset: 0; z-index: 9; background: radial-gradient(100% 80% at 50% 40%, rgba(28, 25, 23, .62), rgba(12, 10, 9, .9));
  color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 14% 12% 8%; }
.film .slide { display: flex; flex-direction: column; gap: 10px; align-items: center; max-width: 100%; }
.film .big { font-family: var(--display); font-weight: 300; font-size: clamp(20px, 6vw, 30px); line-height: 1.35; text-wrap: balance; white-space: pre-line; }
.film .quote { font-family: var(--display); font-weight: 300; font-size: clamp(14px, 4.2vw, 18px); line-height: 1.6; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.film .by { font-family: var(--script); font-style: italic; font-size: 15px; opacity: .85; }
.film .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: #fb7185; transition: width .4s; }
.film .close { position: absolute; top: 14%; right: 12%; font: inherit; font-size: 11px; background: rgba(255, 255, 255, .16); color: #fff; border: 0; border-radius: 999px; padding: 3px 10px; cursor: pointer; }

/* ---------- reaction dock ---------- */
.dock { position: fixed; outline: 1px solid var(--gold-soft); outline-offset: -2px; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 15;
  display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow); }
.react { font: inherit; font-size: 10.5px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 0; width: 62px; padding: 6px 0 4px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer; transition: transform .12s, background .2s; }
.react b { display: grid; place-items: center; height: 28px; color: var(--accent-ink); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.react b svg { width: 25px; height: 25px; }
.react:hover b { transform: translateY(-2px); }
.react:active b { transform: scale(.86); }
.react { letter-spacing: .04em; }
.react:hover { background: var(--accent-soft); }
.react:active { transform: scale(.9); }

/* ---------- calendar ---------- */
.cal { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 18px; }
.cal .month { font-family: var(--display); font-size: 30px; font-weight: 300; letter-spacing: .04em; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); width: 100%; max-width: 320px; row-gap: 4px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.calgrid .dow { font-size: 11px; color: var(--muted); padding-bottom: 6px; }
.calgrid .sun { color: var(--danger); }
.calgrid span { display: grid; place-items: center; height: 34px; }
.calgrid .day { width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; background: var(--accent-ink); color: var(--on-accent); font-weight: 500; }
.cal .dleft { font-size: 13.5px; color: var(--muted); margin: 0; text-align: center; }
.cal .dleft b { color: var(--accent-ink); font-weight: 500; }

/* ---------- surfaces & controls ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(28, 25, 23, .03); }
label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
input, textarea, select { font: inherit; font-size: 15px; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 9px 2px; width: 100%; transition: border-color .2s; }
textarea { border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
.erow input, .erow select { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.primary { font: inherit; font-weight: 500; font-size: 14.5px; letter-spacing: .02em; background: var(--accent-ink); color: var(--on-accent); border: 0; border-radius: 2px; padding: 15px 18px; cursor: pointer; transition: transform .12s, opacity .2s; }
.primary:active { transform: scale(.98); }
.primary:disabled { opacity: .5; cursor: default; }
.ghost { font: inherit; font-size: 13.5px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 2px; padding: 8px 16px; cursor: pointer; flex: 0 0 auto; }
.ghost:hover { border-color: var(--gold); }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btns > * { padding: 11px 12px; }

/* ---------- program ---------- */
.prog { list-style: none; margin: 0; padding: 18px 18px 6px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.prog li { display: grid; grid-template-columns: 70px 14px 1fr; gap: 12px; align-items: start; color: var(--muted); font-size: 14.5px; }
.prog time { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 12.5px; text-align: right; padding-top: 2px; }
.prog .rail { position: relative; align-self: stretch; display: flex; justify-content: center; }
.prog .rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.prog li:first-child .rail::before { top: 9px; } .prog li:last-child .rail::before { bottom: auto; height: 9px; }
.prog .rail i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line); margin-top: 7px; }
.prog .txt { padding-bottom: 14px; min-width: 0; }
.prog .txt small { display: block; font-size: 12px; }
.prog li.done { color: var(--fg); } .prog li.done .rail i { background: var(--line); border-color: var(--line); }
.prog li.now { color: var(--fg); font-weight: 500; } .prog li.now .rail i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.prog li.now .txt small { color: var(--accent-ink); font-weight: 400; }

/* ---------- messages ---------- */
.msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; min-width: 0; }
.msg p { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: "Noto Serif KR", serif; font-weight: 300; font-size: 15.5px; line-height: 1.7; }
.msg .who { font-size: 12.5px; font-weight: 500; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--fg); }
.msg .who em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--accent-ink); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; }
.msg .who time { font-weight: 400; font-size: 11px; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.msg .del { margin-left: auto; font-size: 12px; padding: 3px 10px; }
.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 22px; border: 1px dashed var(--line); border-radius: 6px; }

/* ---------- wreaths form ---------- */
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.style { font: inherit; font-size: 12.5px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--fg); padding: 10px 4px 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: border-color .2s; }
.style svg { width: 44px; height: 44px; }
.style[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- accounts ---------- */
.acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.acc[open] summary::after { transform: rotate(-135deg); }
.acc[open] summary { margin-bottom: 4px; }
#accts { display: flex; flex-direction: column; gap: 10px; }
.acct { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.acct div { min-width: 0; }
.acct strong { display: block; font-size: 14px; font-weight: 500; }
.acct span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; user-select: all; overflow-wrap: anywhere; }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg);
  font-size: 13px; padding: 9px 18px; border-radius: 999px; z-index: 20; box-shadow: var(--shadow); }
.foot { text-align: center; }
.foot a { color: var(--muted); }
/* '나도 만들기' at the bottom of the hall and the invitation: a quiet credit line, only the link words underlined */
.made a { color: var(--muted); text-decoration: none; }
.made b { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.monogram { text-align: center; font-family: var(--script); font-style: italic; font-size: 20px; color: var(--accent); }
.notfound { max-width: 480px; margin: 20vh auto 0; text-align: center; }
.notfound h1 { font-size: 24px; }

/* ---------- admin ---------- */
.stack { display: flex; flex-direction: column; gap: 32px; }
#editSec { display: flex; flex-direction: column; gap: 32px; }
.link { color: var(--fg); overflow-wrap: anywhere; user-select: all; font-size: 14px; }
a.ghost.center { text-align: center; text-decoration: none; padding: 11px 12px; }
a.primary.center { text-align: center; text-decoration: none; }
.venuepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.vp { font: inherit; font-size: 13px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--surface); color: var(--fg); cursor: pointer;
  display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); }
.vp svg { width: 100%; aspect-ratio: 4 / 3; display: block; }
.vp span { padding: 8px; }
.vp[aria-pressed="true"] { border-color: var(--accent); }
.vp[aria-pressed="true"] span { background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.erows { display: flex; flex-direction: column; gap: 10px; }
.erow { display: grid; grid-template-columns: 100px 1fr 38px; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.erow input, .erow select { font-size: 14px; padding: 9px 10px; min-width: 0; }
.erow select, .erow .wide { grid-column: 1 / -1; }
.erow.acctrow { grid-template-columns: 1fr 1.4fr 38px; }
.erow .x { font: inherit; font-size: 18px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.looks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lookcol { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 14px 12px; border-radius: 6px; background: var(--surface-2); }
.lookcol strong { font-family: var(--display); font-weight: 500; }
.lookcol .prev { width: 64px; padding: 8px; border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px; background: var(--accent-soft); overflow: hidden; }
.lookcol .prev svg { width: 100%; height: auto; display: block; }
.lkgroup { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.lk { display: flex; flex-direction: column; gap: 5px; }
.lk > span { font-size: 11px; color: var(--muted); }
.lkopts { display: flex; flex-wrap: wrap; gap: 6px; }
.seasonpick { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.seasonpick strong { font-size: 13px; font-weight: 500; }
.seasonpick .hint { margin: 0; font-size: 12px; color: var(--muted); }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.chip { font: inherit; font-size: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent-ink); color: var(--on-accent); border-color: var(--accent-ink); }
.savebar { position: sticky; bottom: env(safe-area-inset-bottom, 0px); background: linear-gradient(transparent, var(--bg) 30%); padding-block: 18px 12px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
@media (max-width: 380px) { .looks { grid-template-columns: 1fr; } .react { width: 56px; } }
@media (prefers-reduced-motion: reduce) { .present .dot, .wreath, .cue, .fig.walking svg { animation: none; } }

footer.stack-sm { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.cal .kicker { margin-bottom: -6px; }

/* ---------- opening veil ---------- */
.intro { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); cursor: pointer; }
.intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 50% at 50% 45%, var(--accent-soft), transparent 70%); opacity: .8; }
.intro > * { position: relative; }
.intro .names { opacity: 0; transform: translateY(10px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .8, .3, 1); }
.intro .when { opacity: 0; transition: opacity 1s ease .5s; letter-spacing: .2em; font-family: var(--script); }
.intro.ready .names, .intro.ready .when { opacity: 1; transform: none; }
.intro .orn { max-width: 160px; }
.intro .orn::before, .intro .orn::after { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2, .8, .3, 1) .3s; }
.intro.ready .orn::before { transform: scaleX(1); transform-origin: right; } .intro.ready .orn::after { transform: scaleX(1); transform-origin: left; }
.intro .hint { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 11px; letter-spacing: .3em; color: var(--muted); font-family: var(--script); text-transform: uppercase; }
.intro.lift { transition: transform 1.1s cubic-bezier(.7, 0, .2, 1), opacity 1.1s ease; transform: translateY(-104%); opacity: .6; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ---------- cute version: pixel art (data-style="cute" on <html>) ----------
   A deliberate single light look after the pixel-art venues: Galmuri pixel type, chunky 2px ink borders with
   hard offset shadows, square corners, candy pink on cream. `:not(#_)` lifts the selector above the dark-mode
   token blocks so the cute palette holds in every theme. */
:root[data-style="cute"]:not(#_) {
  --bg: #fff6ee; --surface: #ffffff; --surface-2: #fff0f3; --fg: #2b2a4c; --muted: #5c5a7a; --line: #2b2a4c; --border: #2b2a4c;
  --accent: #ff5c8a; --accent-ink: #e0406f; --accent-soft: #ffe3ea; --gold: #ff5c8a; --gold-soft: rgba(255, 92, 138, .45);
  --glass: #ffffff; --shadow: 4px 4px 0 #2b2a4c; --on-accent: #ffffff;
  --display: "Galmuri11", "Galmuri9", monospace; --script: "Galmuri9", monospace; --body: "Galmuri11", "Pretendard Variable", sans-serif;
  color-scheme: light;
}
[data-style="cute"] body { font-size: 14px; letter-spacing: 0; -webkit-font-smoothing: none; }
[data-style="cute"] .kicker { letter-spacing: .12em; font-size: 11px; }
[data-style="cute"] h1, [data-style="cute"] h2, [data-style="cute"] .names, [data-style="cute"] .inames { font-weight: 400; letter-spacing: 0; }
[data-style="cute"] .names .amp, [data-style="cute"] .inames .amp, [data-style="cute"] h1 .amp { font-style: normal; color: var(--accent); }
[data-style="cute"] .bigdate strong { font-size: clamp(40px, 13vw, 52px); }
[data-style="cute"] .card, [data-style="cute"] .prog, [data-style="cute"] .msg, [data-style="cute"] .erow, [data-style="cute"] .vp,
[data-style="cute"] .mobile, [data-style="cute"] .ticket, [data-style="cute"] .style {
  border: 2px solid var(--line); border-radius: 0; box-shadow: var(--shadow); }
[data-style="cute"] .primary { border: 2px solid var(--line); border-radius: 0; box-shadow: 3px 3px 0 var(--line); }
[data-style="cute"] .primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
[data-style="cute"] .ghost, [data-style="cute"] .chip, [data-style="cute"] .chip-dday, [data-style="cute"] .present { border: 2px solid var(--line); border-radius: 0; }
[data-style="cute"] input, [data-style="cute"] select { border-bottom: 2px solid var(--line); }
[data-style="cute"] textarea { border: 2px solid var(--line); border-radius: 0; }
[data-style="cute"] .orn::before, [data-style="cute"] .orn::after { background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); height: 2px; }
[data-style="cute"] .orn i { border: 2px solid var(--accent); transform: none; }
[data-style="cute"] .frame { filter: none; }
[data-style="cute"] .scene { border-radius: 0; border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--line); image-rendering: pixelated; }
[data-style="cute"] .scene::after { inset: 4px; border-radius: 0; border: 2px dashed rgba(255, 255, 255, .7); }
[data-style="cute"] .screen { border-radius: 0; border: 2px solid #fff; outline: none; font-family: var(--display); }
[data-style="cute"] .screen .tag { border-radius: 0; }
[data-style="cute"] .cue { border-radius: 0; border: 2px solid var(--line); box-shadow: var(--shadow); }
[data-style="cute"] .cue button { border-radius: 0; }
/* the step's name in the pixel type like everything else (the luxe serif read as brush calligraphy here), in Galmuri's
   real bold cut */
[data-style="cute"] .cue strong { font-family: var(--display); font-weight: 700; }
[data-style="cute"] .dock { border-radius: 0; border: 2px solid var(--line); box-shadow: var(--shadow); outline: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-style="cute"] .react { border-radius: 0; }
[data-style="cute"] .calgrid .day { border-radius: 0; }
[data-style="cute"] .intro { background: var(--bg); }
[data-style="cute"] .film { font-family: var(--display); }
[data-style="cute"] .lookcol .prev { border-radius: 0; border: 2px solid var(--line); }
/* the invitation's cute cover: candy dots instead of washes, chunky polaroid, pixel couple instead of the cameo */
[data-style="cute"] body.invite { background: var(--bg) radial-gradient(#ffd3df 1.5px, transparent 1.6px) 0 0 / 18px 18px; }
[data-style="cute"] .cover { background: linear-gradient(#ffe3ea, #fff6ee); }
[data-style="cute"] .polaroid { border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--line); transform: rotate(-1deg); }
[data-style="cute"] .tape { background: #b9e3ff; clip-path: none; border: 2px solid var(--line); }
[data-style="cute"] .ticket { background: #fff; }
[data-style="cute"] .ticket > div { border-color: var(--line) !important; }
[data-style="cute"] .ticket span { font-size: 10px; }
[data-style="cute"] .greeting, [data-style="cute"] .ticket b, [data-style="cute"] .polaroid figcaption, [data-style="cute"] .isec h2 { font-family: var(--display); }
[data-style="cute"] .cameo { display: none; }
[data-style="cute"] .cute-couple { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 18px; background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow); width: 100%; }
[data-style="cute"] .cute-couple svg { width: 70px; height: auto; }
[data-style="cute"] .cute-couple .heart { font-size: 26px; color: var(--accent); align-self: center; }
[data-style="cute"] .mhall { border-radius: 0; border: 3px solid var(--line); }
[data-style="cute"] .mhall .live { border-radius: 0; font-family: var(--display); }

/* ---------- the celebration film as a VHS home video ---------- */
.film.vhs { background: #14100e; padding: 12% 10% 10%; overflow: hidden; }
.film.vhs::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, rgba(255, 190, 120, .16), transparent 60%), linear-gradient(rgba(255, 170, 90, .06), rgba(60, 20, 0, .18)); }
.film.vhs .slide-host { position: relative; z-index: 2; width: 100%; display: flex; justify-content: center; }
.film.vhs .slide { animation: vhs-jitter 4s steps(1) infinite; }
.film.vhs .big, .film.vhs .quote { color: #fbf3e6; text-shadow: -1.5px 0 rgba(255, 40, 60, .55), 1.5px 0 rgba(40, 220, 255, .45), 0 0 6px rgba(255, 220, 180, .35); }
.film.vhs .by { font-family: "VT323", monospace; font-style: normal; font-size: 17px; letter-spacing: .06em; color: #f3e6c8; text-shadow: -1px 0 rgba(255, 40, 60, .5), 1px 0 rgba(40, 220, 255, .4); }
.vhs-osd { position: absolute; z-index: 3; font-family: "VT323", monospace; font-size: clamp(14px, 4.2vw, 20px); line-height: 1.05; color: #fff;
  letter-spacing: .04em; text-shadow: 1px 1px 0 rgba(0, 0, 0, .6), -1px 0 rgba(255, 40, 60, .5), 1px 0 rgba(40, 220, 255, .4); }
.vhs-osd.tl { top: 14%; left: 9%; display: flex; align-items: center; gap: 5px; }
.vhs-osd.tr { top: 14%; right: 9%; }
.vhs-osd.bl { bottom: 9%; left: 9%; }
.vhs-osd.br { bottom: 9%; right: 9%; }
.vhs-osd .rec { width: 8px; height: 8px; border-radius: 50%; background: #ff2a3c; box-shadow: 0 0 6px #ff2a3c; animation: vhs-blink 1s steps(1) infinite; }
.vhs-lines { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.vhs-track { position: absolute; left: 0; right: 0; height: 14%; top: -20%; z-index: 4; pointer-events: none;
  background: linear-gradient(transparent, rgba(255, 255, 255, .1) 40%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, .08) 60%, transparent);
  filter: blur(1px); animation: vhs-track 5.5s linear infinite; }
.film.vhs .bar { z-index: 3; background: #ff2a3c; height: 2px; }
/* the close button sits at the top between REC and PLAY, clear of the messages and the date stamp */
.film.vhs .close { z-index: 5; top: 12.5%; bottom: auto; right: 50%; transform: translateX(50%); font-family: "VT323", monospace; font-size: 14px; border-radius: 0; padding: 1px 9px; }
@keyframes vhs-blink { 50% { opacity: 0; } }
@keyframes vhs-track { to { top: 110%; } }
@keyframes vhs-jitter { 0%, 100% { transform: none; } 37% { transform: translateX(1px); } 38% { transform: translateX(-2px) skewX(-1deg); } 39% { transform: none; } 81% { transform: translateY(1px); } 82% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .vhs-track, .film.vhs .slide, .vhs-osd .rec { animation: none; } }
.frame:has(.film:not([hidden])) .cue { display: none; }     /* the film has the stage to itself */
/* form grids never push the page wider than the phone: inputs may shrink, and on narrow screens the date
   takes its own line above the two times */
.row > *, .row3 > *, .row input, .row3 input, .row select { min-width: 0; }
@media (max-width: 420px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 > :first-child { grid-column: 1 / -1; } }

/* ---------- admin: wedding photos ---------- */
label.primary.upload { display: block; text-align: center; cursor: pointer; }
.photogrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photogrid .empty { grid-column: 1 / -1; }
.ph { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: var(--surface-2); border: 2px solid transparent; }
.ph.is-cover { border-color: var(--accent); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 2px; padding: 4px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.phbtn { font: inherit; font-size: 13px; line-height: 1; min-width: 26px; height: 26px; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .9); color: #1c1917; cursor: pointer; }
.phbtn.on { background: var(--accent); color: #fff; }
.phbtn.del.wide { min-width: 0; flex: 1; font-size: 11px; background: #b42318; color: #fff; }
[data-style="cute"] .ph { border-radius: 0; border: 2px solid var(--line); }
[data-style="cute"] .ph.is-cover { border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }
[data-style="cute"] .phbtn { border-radius: 0; }

/* ---------- handwritten messages ---------- */
.hand-pen { font-family: "Nanum Pen Script", cursive !important; }
.hand-brush { font-family: "Nanum Brush Script", cursive !important; }
.hand-round { font-family: "Gaegu", cursive !important; }
.hand-melody { font-family: "Hi Melody", cursive !important; }
.hand-gamja { font-family: "Gamja Flower", cursive !important; }
.hand-dokdo { font-family: "Dokdo", cursive !important; }
.hand-yeonsung { font-family: "Yeon Sung", cursive !important; }
/* the English scripts carry no Hangul: Korean words fall back to a pen hand that sits well beside them */
.hand-vibes { font-family: "Great Vibes", "Nanum Pen Script", cursive !important; }
.hand-dancing { font-family: "Dancing Script", "Nanum Pen Script", cursive !important; }
.hand-caveat { font-family: "Caveat", "Nanum Pen Script", cursive !important; }
.hand-parisienne { font-family: "Parisienne", "Nanum Pen Script", cursive !important; }
p.hand, textarea.hand, .film .quote.hand { font-weight: 400; letter-spacing: 0; line-height: 1.5; }
p.hand.hand-pen, textarea.hand.hand-pen, .film .quote.hand-pen, p.hand.hand-brush, textarea.hand.hand-brush, .film .quote.hand-brush,
p.hand.hand-dokdo, textarea.hand.hand-dokdo, p.hand.hand-vibes, textarea.hand.hand-vibes, .film .quote.hand-vibes,
p.hand.hand-parisienne, textarea.hand.hand-parisienne, .film .quote.hand-parisienne { font-size: 1.32em; line-height: 1.45; }
p.hand.hand-round, textarea.hand.hand-round, .film .quote.hand-round, p.hand.hand-melody, textarea.hand.hand-melody,
p.hand.hand-gamja, textarea.hand.hand-gamja, p.hand.hand-caveat, textarea.hand.hand-caveat, p.hand.hand-dancing, textarea.hand.hand-dancing { font-size: 1.14em; }
.hands { display: flex; flex-wrap: wrap; gap: 6px; }
.hand-chip { font: inherit; font-size: 14px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); cursor: pointer; }
.hand-chip.hand-pen, .hand-chip.hand-brush, .hand-chip.hand-dokdo, .hand-chip.hand-vibes, .hand-chip.hand-parisienne { font-size: 19px; padding: 1px 12px; }
.hand-chip.hand-round, .hand-chip.hand-melody, .hand-chip.hand-gamja, .hand-chip.hand-caveat, .hand-chip.hand-dancing { font-size: 16px; padding: 3px 12px; }
.hands { flex-direction: column; gap: 10px; }
.hand-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hand-group > span { flex-basis: 100%; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.gb-photo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.gb-photo .prev { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.gb-photo .clear { font-size: 12px; padding: 3px 10px; }
.msg .who img.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
[data-style="cute"] .msg .who img.avatar, [data-style="cute"] .gb-photo .prev { border-radius: 0; image-rendering: auto; }
.hand-chip[aria-checked="true"] { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
[data-style="cute"] .hand-chip { border: 2px solid var(--line); border-radius: 0; }

/* ---------- admin: toggles, story rows, snap roles, RSVP summary ---------- */
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggles .chip { font-size: 13px; padding: 6px 12px; }
.erow.story { grid-template-columns: 96px 1fr 38px; }
.phbtn.role { font-size: 10px; min-width: 0; padding: 0 4px; }
.rsvp-sum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.rsvp-sum b { display: block; font-family: var(--display); font-size: 20px; font-weight: 400; }
.rsvp-sum span { font-size: 11px; color: var(--muted); }
label.ghost.upload { cursor: pointer; }

/* close buttons on the photo, video and wreath sheets */
.lb { position: absolute; font: inherit; color: #fff; background: rgba(255, 255, 255, .12); border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; }
.lb.close { right: 12px; top: calc(10px + env(safe-area-inset-top, 0px)); font-size: 24px; }
[data-style="cute"] .lb { border-radius: 0; border: 2px solid #fff; }
/* a closed <details> laid out as a flex card still sizes its hidden body in Chromium: take it out */
details:not([open]) { gap: 0; }

/* ---------- cute version · arcade notebook ----------
   The cute pages read like a page of graph paper with a little arcade machine on it: a fine ink grid, bitmap
   type with a candy drop shadow, labels in boxed tags, highlighter marks on headings, pixel clouds and hearts,
   and the hall itself set in a slate cabinet with a rounded cream-lit screen and round arcade buttons for the
   cheers. Every shape here is drawn for this site (CSS and tiny inline SVGs). */
:root[data-style="cute"]:not(#_) {
  --bg: #f6f4ef; --surface-2: #fdf1f6; --fg: #232136; --muted: #575470; --line: #232136; --border: #232136;
  --accent: #e8609a; --accent-ink: #d14682; --accent-soft: #fbe0ec; --gold: #d14682; --gold-soft: rgba(209, 70, 130, .4);
  --shadow: 4px 4px 0 #232136; --slate: #2f3f4c; --cream: #f3ead2; --mint: #6cc070;
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23dcdae6' d='M0 6h16v2H0z'/%3E%3Cpath fill='%23fff' d='M5 1h3v1h1V1h2v1h1v1h1v1h1v1h1v2H0V5h1V4h1V3h2V2h1z'/%3E%3C/svg%3E");
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23e8609a' d='M1 0h2v1h1V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1z'/%3E%3Cpath fill='%23fff' d='M1 1h1v1H1z'/%3E%3C/svg%3E");
}
[data-style="cute"] body, [data-style="cute"] body.invite {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(35, 33, 54, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 33, 54, .07) 1px, transparent 1px);
  background-size: 22px 22px; }
/* boxed tags for the small labels, highlighter on headings */
[data-style="cute"] .kicker { display: inline-block; align-self: center; width: max-content; background: var(--surface); color: var(--fg); border: 2px solid var(--line);
  box-shadow: 2px 2px 0 var(--line); padding: 2px 10px; font-size: 11px; letter-spacing: .14em; }
[data-style="cute"] .sechead h2, [data-style="cute"] .isec h2 { font-family: var(--display); background: linear-gradient(transparent 58%, var(--accent-soft) 58%); padding: 0 6px; }
/* the couple's names: bitmap type with a candy drop shadow, "and" as a highlighted chip */
[data-style="cute"] .names, [data-style="cute"] .inames { font-weight: 700; text-shadow: 3px 3px 0 #f6b3cf; }
[data-style="cute"] .names .amp, [data-style="cute"] .inames .amp, [data-style="cute"] h1 .amp { font-size: .42em; font-weight: 400; text-shadow: none;
  background: var(--accent); color: #fff; padding: 2px 8px; align-self: center; border: 2px solid var(--line); }
[data-style="cute"] .bigdate strong { border-color: var(--line); }
[data-style="cute"] .chip-dday { background: var(--mint); color: #fff; border-color: var(--line); box-shadow: 2px 2px 0 var(--line); }
[data-style="cute"] .present { background: var(--surface); box-shadow: 2px 2px 0 var(--line); }
/* pixel clouds and a heart drifting behind the title */
[data-style="cute"] .hero, [data-style="cute"] .cover { position: relative; isolation: isolate; }
[data-style="cute"] .hero::before, [data-style="cute"] .cover::before { content: ""; position: absolute; z-index: -1; left: -6px; top: 6px; width: 96px; height: 48px;
  background: var(--cloud) 0 0 / 64px 32px no-repeat, var(--cloud) 38px 30px / 48px 24px no-repeat; image-rendering: pixelated; animation: cute-drift 9s ease-in-out infinite alternate; pointer-events: none; }
[data-style="cute"] .hero::after, [data-style="cute"] .cover::after { content: ""; position: absolute; z-index: -1; right: 4px; top: 54px; width: 28px; height: 24px;
  background: var(--heart) center / contain no-repeat; image-rendering: pixelated; animation: cute-bob 1.6s steps(2) infinite; pointer-events: none; }
@keyframes cute-drift { to { transform: translateX(18px); } }
@keyframes cute-bob { 50% { transform: translateY(-4px); } }
/* buttons: chunky, ink-edged, pressed on tap */
[data-style="cute"] .primary { background: var(--accent); color: #fff; border: 2px solid var(--line); border-radius: 0; box-shadow: 4px 4px 0 var(--line); transition: transform .08s, box-shadow .08s; }
[data-style="cute"] .primary:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
[data-style="cute"] .primary:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
[data-style="cute"] .ghost { box-shadow: 3px 3px 0 var(--line); transition: transform .08s, box-shadow .08s; }
[data-style="cute"] .ghost:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
[data-style="cute"] .card, [data-style="cute"] .prog, [data-style="cute"] .msg { box-shadow: 4px 4px 0 var(--line); }
/* the hall as an arcade cabinet: slate body, rounded cream-lit screen with scanlines, two buttons on the panel */
[data-style="cute"] .frame { background: var(--slate); padding: 12px 12px 40px; border: 3px solid var(--line); border-radius: 22px; box-shadow: 6px 6px 0 var(--line); filter: none; }
[data-style="cute"] .frame::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 11px; height: 18px; pointer-events: none;
  background: radial-gradient(circle at 9px 9px, #ff7aa8 0 6px, #232136 6.5px 8px, transparent 8.5px) left / 18px 18px no-repeat,
              radial-gradient(circle at 9px 9px, #8fd694 0 6px, #232136 6.5px 8px, transparent 8.5px) 24px 0 / 18px 18px no-repeat,
              radial-gradient(circle at 9px 9px, #ffd36b 0 6px, #232136 6.5px 8px, transparent 8.5px) right / 18px 18px no-repeat; }
[data-style="cute"] .scene { border: 3px solid #1b2530; border-radius: 16px; box-shadow: none; }
[data-style="cute"] .scene::after { inset: 0; border: 0; border-radius: inherit; z-index: 7;
  background: repeating-linear-gradient(rgba(20, 16, 30, .07) 0 1px, transparent 1px 3px), radial-gradient(130% 100% at 50% 50%, transparent 62%, rgba(20, 16, 30, .28)); }
[data-style="cute"] .cue { box-shadow: 3px 3px 0 var(--line); }
/* cheers as round arcade buttons on a slate control panel */
[data-style="cute"] .dock { background: var(--slate); border: 3px solid var(--line); border-radius: 16px; box-shadow: 4px 4px 0 var(--line); padding: 8px 8px 6px; gap: 2px; }
[data-style="cute"] .react { color: var(--cream); font-size: 10.5px; border-radius: 0; gap: 4px; }
[data-style="cute"] .react:hover { background: transparent; }
[data-style="cute"] .react b { width: 36px; height: 36px; border-radius: 50%; background: #ff7aa8; color: var(--line); border: 2px solid var(--line);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .45); transition: transform .06s, box-shadow .06s; }
[data-style="cute"] .react:nth-child(4n+2) b { background: #8fd694; }
[data-style="cute"] .react:nth-child(4n+3) b { background: #ffd36b; }
[data-style="cute"] .react:nth-child(4n+4) b { background: #8cc8ff; }
[data-style="cute"] .react b svg { width: 20px; height: 20px; }
[data-style="cute"] .react:hover b { transform: none; }
[data-style="cute"] .react:active { transform: none; }
[data-style="cute"] .react:active b { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .45); }
/* the intro as a start screen */
[data-style="cute"] .intro { background-color: var(--cream);
  background-image: repeating-linear-gradient(rgba(35, 33, 54, .05) 0 1px, transparent 1px 3px), linear-gradient(rgba(35, 33, 54, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 33, 54, .06) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px; }
[data-style="cute"] .intro::before { opacity: 1; inset: 12% 0 auto; height: 120px; image-rendering: pixelated; animation: cute-drift 10s ease-in-out infinite alternate;
  background: var(--cloud) 12% 0 / 80px 40px no-repeat, var(--cloud) 88% 50px / 64px 32px no-repeat, var(--cloud) 40% 90px / 48px 24px no-repeat; }
[data-style="cute"] .intro .names { font-size: clamp(34px, 11vw, 46px); }
[data-style="cute"] .intro .hint { font-family: var(--display); letter-spacing: .18em; color: var(--fg); background: var(--surface); border: 2px solid var(--line);
  box-shadow: 2px 2px 0 var(--line); padding: 4px 12px; animation: cute-blink 1.1s steps(1) infinite; }
[data-style="cute"] .intro .hint::before { content: "▶ "; color: var(--accent); }
@keyframes cute-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  [data-style="cute"] .hero::before, [data-style="cute"] .hero::after, [data-style="cute"] .cover::before, [data-style="cute"] .cover::after,
  [data-style="cute"] .intro::before, [data-style="cute"] .intro .hint { animation: none; }
}
[data-style="cute"] .screen .sub { font-size: 8px; letter-spacing: -.02em; white-space: nowrap; }
[data-style="cute"] .cover { background: radial-gradient(90% 60% at 50% 42%, rgba(251, 224, 236, .9), transparent 72%); }
[data-style="cute"] .cover::before { left: 8%; top: 12%; }
[data-style="cute"] .cover::after { right: 10%; top: 17%; }

/* ---------- luxe version · champagne foil ----------
   The luxe pages keep to ivory, serif type and hairlines; the couple's names catch a slow champagne-gold sheen
   (the cute version keeps its bitmap type and candy shadow instead). */
:root:not([data-style="cute"]) .names, :root:not([data-style="cute"]) .inames {
  background: linear-gradient(100deg, var(--fg) 0 38%, #c9a26a 47%, #f3e2bd 50%, #c9a26a 53%, var(--fg) 62% 100%);
  background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: luxe-foil 7s ease-in-out 1.2s infinite; }
@keyframes luxe-foil { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
:root:not([data-style="cute"]) .frame::after { content: ""; position: absolute; inset: -7px; pointer-events: none; z-index: -1;
  border: 1px solid var(--gold-soft); border-radius: 50% 50% 26px 26px / 34% 34% 26px 26px; }
@media (prefers-reduced-motion: reduce) { :root:not([data-style="cute"]) .names, :root:not([data-style="cute"]) .inames { animation: none; } }
/* admin: colour scheme swatches for the invitation */
.palettes { display: flex; flex-wrap: wrap; gap: 8px; }
.pal { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; cursor: pointer; }
.pal .sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.pal[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
[data-style="cute"] .pal, [data-style="cute"] .pal .sw { border-radius: 0; border: 2px solid var(--line); }
/* luxe hall: the couple as 3D metaverse avatars, with a floating name tag, a soft shadow and a glowing ring
   where they stand (the cute version keeps its flat pixel sprites) */
:root:not([data-style="cute"]) .fig svg { filter: drop-shadow(0 3px 3px rgba(20, 10, 20, .25)); }
:root:not([data-style="cute"]) .fig[data-name]::before { content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
  white-space: nowrap; font-family: var(--body); font-size: clamp(8px, 2.3vw, 10px); line-height: 1; letter-spacing: .02em; color: #fff;
  background: rgba(28, 22, 30, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .45);
  padding: 3px 7px; border-radius: 999px; }
:root:not([data-style="cute"]) .fig[data-name]::after { content: ""; position: absolute; left: 50%; bottom: -3%; width: 120%; height: 9%; transform: translateX(-50%); z-index: -1;
  border-radius: 50%; border: 1px solid rgba(255, 236, 200, .8); box-shadow: 0 0 10px rgba(255, 220, 170, .7), inset 0 0 6px rgba(255, 220, 170, .5); }
.linkish { font: inherit; font-size: 13px; background: none; border: 0; color: var(--accent-ink); text-decoration: underline; cursor: pointer; padding: 0; }
/* admin: the day-of console */
.day-now { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.day-now .tag { font-size: 11px; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.day-now .tag.live { background: #d23a3a; color: #fff; }
.day-now strong { font-family: var(--display); font-size: 20px; font-weight: 500; }
.day .btns { grid-template-columns: 1fr 1fr; }
/* admin: rendering the celebration film */
.filmprog { display: flex; flex-direction: column; gap: 8px; }
.filmprog canvas { width: 100%; height: auto; display: block; border-radius: 4px; background: #14100e; }
.filmprog .bar { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.filmprog .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.ghost.danger { color: #b42318; border-color: #f0b4ad; }
[data-style="cute"] .filmprog canvas, [data-style="cute"] .filmprog .bar { border-radius: 0; }
/* consent before a guest leaves personal details, with what is collected and why */
.consent { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--fg); cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--accent-ink); margin: 0; flex: 0 0 auto; }
.privacy { font-size: 12px; color: var(--muted); }
.privacy summary { cursor: pointer; text-decoration: underline; width: max-content; }
.privacy p { margin: 6px 0 0; line-height: 1.7; }
.privacy b { font-weight: 500; color: var(--fg); margin-right: 4px; }
/* the privacy policy and other plain documents */
.doc { max-width: 680px; gap: 28px; }
.doc header { align-items: flex-start; text-align: left; }
.doc h2 { font-size: 18px; font-weight: 500; }
.doc h3 { font-size: 15px; margin-top: 8px; }
.doc ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.doc p, .doc li { font-size: 14px; line-height: 1.75; }
.doc b { font-weight: 500; margin-right: 4px; }
.tablebox { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 13px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); font-weight: 500; }
.kakao-share { font: inherit; font-size: 14px; font-weight: 500; padding: 12px; border: 0; border-radius: 6px; background: #fee500; color: #191919; cursor: pointer; }
[data-style="cute"] .kakao-share { border-radius: 0; border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line); }

/* ---------- admin: one step at a time ---------- */
.stepnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  background: var(--bg); padding-block: 8px; margin-inline: -4px; }
.stepnav button { font: inherit; font-size: 11.5px; line-height: 1.25; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px; }
.stepnav b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.stepnav button[aria-current="step"] { color: var(--fg); font-weight: 500; }
.stepnav button { position: relative; }
.stepnav button + button::before { content: ""; position: absolute; top: 18px; right: calc(50% + 15px); width: calc(100% - 26px); height: 1px; background: var(--line); }
.stepnav button[aria-current="step"] b { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
.checks { list-style: none; margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.checks li span::before { content: "○"; display: inline-block; width: 1.4em; color: var(--muted); }
.checks li.done span { color: var(--muted); }
.checks li.done span::before { content: "✓"; color: var(--accent-ink); font-weight: 600; }
.opt-head { margin: 8px 0 -18px; font-size: 12.5px; color: var(--muted); text-align: center; letter-spacing: .02em; }
.stepbar { position: sticky; bottom: 0; z-index: 7; max-width: 480px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--glass); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px -18px rgba(28, 25, 23, .35);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.stepbar .savestate { margin: 0; font-size: 12px; color: var(--muted); text-align: center; min-height: 1.2em; }
.stepbar .savestate.ok { color: var(--ok); }
.stepbar-btns { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
.stepbar-btns > * { padding: 11px 14px; text-align: center; }
.stepbar-btns a.ghost { text-decoration: none; display: grid; place-items: center; }
[data-style="cute"] .stepnav button, [data-style="cute"] .stepnav b { border-radius: 0; }
[data-style="cute"] .stepnav button[aria-current="step"] b { box-shadow: 2px 2px 0 var(--line); }
.ghost.sm { padding: 5px 12px; font-size: 12.5px; }
[data-style="cute"] .stepbar { border: 2px solid var(--line); border-bottom: 0; border-radius: 0; box-shadow: none; background: var(--surface); }
/* transfer buttons under an account: the payment apps' own colours, small and quiet */
.paylinks { display: flex; gap: 6px; margin: -2px 0 6px; }
.paybtn { flex: 1; text-align: center; font-size: 12.5px; font-weight: 500; padding: 7px 8px; border-radius: 6px; text-decoration: none; }
.paybtn.kakaopay { background: #ffeb00; color: #191919; }
.paybtn.toss { background: #0064ff; color: #fff; }
[data-style="cute"] .paybtn { border-radius: 0; border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line); }

/* hall: tabs under the stage */
.htabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 8; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  margin-block: 6px -18px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.htabs button { font: inherit; font-size: 13px; padding: 9px 4px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.htabs button[aria-selected="true"] { background: var(--accent-ink); color: var(--on-accent); font-weight: 500; }
[data-style="cute"] .htabs { border-radius: 0; border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line); background: var(--surface); }
[data-style="cute"] .htabs button { border-radius: 0; }
/* hall: the first-visit guide */
.guide { position: fixed; inset: 0; z-index: 45; display: grid; place-items: end center; padding: 16px max(16px, env(safe-area-inset-left, 0px)) calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(20, 16, 14, .45); animation: fadein .3s ease; }
.guide-card { width: 100%; max-width: 440px; background: var(--surface); color: var(--fg); border-radius: 20px; padding: 26px 22px 20px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5); animation: rise .45s cubic-bezier(.2, .8, .3, 1); }
.guide-card h2 { justify-content: flex-start; }
.guide-card ol { margin: 4px 0 6px; padding: 0; list-style: none; counter-reset: g; display: flex; flex-direction: column; gap: 12px; }
.guide-card li { counter-increment: g; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.guide-card li::before { content: counter(g); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.guide-card li b { color: var(--fg); font-weight: 500; }
@keyframes fadein { from { opacity: 0; } }
[data-style="cute"] .guide-card { border-radius: 0; border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--line); }
[data-style="cute"] .guide-card li::before { border-radius: 0; border: 2px solid var(--line); }
.hand-pick summary { cursor: pointer; font-size: 12.5px; color: var(--muted); width: max-content; }
.hand-pick .hands { margin-top: 10px; }
/* a quiet call to action: ivory, a hairline of gold, the accent in the text */
.soft { font: inherit; font-size: 14.5px; letter-spacing: .02em; padding: 14px 18px; border-radius: 999px; cursor: pointer; text-align: center; text-decoration: none;
  background: var(--surface); color: var(--accent-ink); border: 1px solid var(--gold-soft); box-shadow: 0 6px 18px -12px rgba(28, 25, 23, .35); transition: background .2s, transform .12s; }
.soft:hover { background: var(--accent-soft); }
.soft:active { transform: scale(.98); }
.soft.block { display: block; width: 100%; }
[data-style="cute"] .soft { border-radius: 0; border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line); color: var(--fg); }

/* the number of guests who have sent a heart, on the heart buttons (guest.js) */
.react { position: relative; }
.hcount { font-style: normal; font-variant-numeric: tabular-nums; font-size: 10px; font-weight: 600; line-height: 15px; letter-spacing: 0;
  min-width: 16px; padding: 0 5px; border-radius: 999px; background: var(--accent-ink); color: var(--on-accent); text-align: center; }
.react .hcount { position: absolute; top: 1px; left: calc(50% + 7px); box-shadow: 0 0 0 2px var(--surface); }
.cue button .hcount { margin-left: 2px; background: color-mix(in srgb, var(--on-accent) 26%, transparent); }
[data-style="cute"] .hcount { border-radius: 0; font-family: var(--display); }

/* a guest's own message: fix or remove it (guestbook.js) */
.msg .mine { display: flex; justify-content: flex-end; gap: 14px; margin-top: -2px; }
.msg .mine .linkish { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.msg .mine .linkish:hover, .msg .mine .linkish:focus-visible { color: var(--accent-ink); text-decoration: underline; }
.msg .mine .mine-save { color: var(--accent-ink); font-weight: 600; }
.msg .mine-edit { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.msg .mine-edit textarea { font-size: 15px; line-height: 1.7; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; resize: vertical; }
[data-style="cute"] .msg .mine-edit textarea { border-radius: 0; border-width: 2px; }
