/* Memorable — restrained UI: one typeface, neutral greys, a single flash-yellow accent. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Shrikhand"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/shrikhand-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Shrikhand"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/shrikhand-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Retro disco on black: warm cream text, solid 70s accent colours, display type for headings. */
:root {
  color-scheme: dark;
  --bg: #0c0a0f; --surface: #16131b; --surface-2: #1f1a26; --ink: #fbf3e4; --ink-2: #c4b8c9; --ink-3: #8a7f91;
  --line: #2a2431; --line-strong: #3d3447;
  --pink: #ff3d8b; --orange: #ff7a2f; --amber: #ffb627; --sun: #ffd84d; --violet: #9b5cff; --teal: #2ec4b6;
  --accent: var(--pink); --accent-ink: #120a10;
  --btn: var(--pink); --btn-ink: #160c12; --ok: #5ee0a0; --err: #ff6b6b; --focus: var(--sun);
  --radius: 10px; --radius-sm: 8px; --display: "Shrikhand", "Inter", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); min-height: 100vh;
       background: radial-gradient(60vw 40vw at 85% -10%, rgba(255,61,139,.16), transparent 70%),
                   radial-gradient(50vw 40vw at -10% 30%, rgba(155,92,255,.12), transparent 70%),
                   radial-gradient(50vw 30vw at 70% 110%, rgba(255,122,47,.10), transparent 70%), var(--bg);
       background-attachment: fixed;
       font: 400 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
       font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* layout */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 480px; }
.topbar { background: rgba(12,10,15,.6); backdrop-filter: blur(8px); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 27px; letter-spacing: 0.01em; line-height: 1; }
.brand-word { color: var(--ink); padding: 4px 0; }
.brand-word b { font-weight: 400; color: var(--pink); }
.brand-mark { width: 40px; height: 40px; flex: none; color: var(--ink); margin-top: -4px; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.topbar .meta { color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.langs { display: flex; gap: 2px; font-size: 13px; }
.langs a { padding: 4px 8px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2); }
.langs a[aria-current] { color: var(--ink); background: var(--surface-2); }
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--amber); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* landing */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; padding: 56px 0 48px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 64px); letter-spacing: 0; line-height: 1.05; }
.hero h1 .glow { color: var(--pink); }
.hero .lead { font-size: 18px; color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.hero .facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.hero .facts li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.hero .facts li:nth-child(1) .icon { color: var(--pink); } .hero .facts li:nth-child(2) .icon { color: var(--orange); } .hero .facts li:nth-child(3) .icon { color: var(--amber); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(22,19,27,.7); overflow: hidden; }
.steps li { padding: 20px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; }
.steps .num { font-family: var(--display); font-size: 30px; line-height: 1; }
.steps li:nth-child(1) .num { color: var(--violet); } .steps li:nth-child(2) .num { color: var(--pink); }
.steps li:nth-child(3) .num { color: var(--orange); } .steps li:nth-child(4) .num { color: var(--amber); }
.steps h3 { font-size: 16px; margin: 10px 0 4px; }
.steps p { font-size: 14px; color: var(--ink-2); }

/* nav */
.topnav { display: flex; align-items: center; gap: 6px; }
.navlink { padding: 8px 10px; font-size: 14px; white-space: nowrap; color: var(--ink-2); text-decoration: none; border-radius: var(--radius-sm); }
.navlink:hover { color: var(--ink); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.dark { background: #160c12; color: #fbf3e4; border-color: transparent; }
.btn.dark:hover { background: #2a1c25; }

@media (max-width: 900px) { .hide-md { display: none !important; } }
@media (max-width: 560px) { .hide-sm { display: none !important; } .topnav { gap: 2px; } .brand { font-size: 23px; gap: 8px; } .brand-mark { width: 32px; height: 32px; } }

/* accounts */
.auth { padding-top: 48px; }
.auth-panel { padding: 32px; border-radius: 20px; }
.auth-panel h1 { font-family: var(--display); font-weight: 400; letter-spacing: 0; font-size: 34px; }
.auth-panel > .muted { margin: 6px 0 24px; }
.auth-panel .form-error { margin: 0 0 16px; }
.claim-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 18px; }
.claim-note .icon { color: var(--ok); margin-top: 2px; }
.switch-mode { margin-top: 18px; text-align: center; font-size: 14px; color: var(--ink-2); }
.switch-mode a { color: var(--pink); font-weight: 600; }
.new-event { margin-bottom: 28px; }
.new-event-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 0 14px; align-items: end; }
.new-event-row .btn { margin-bottom: 16px; }
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.event-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.event-item .eyebrow { margin-bottom: 4px; }
.event-item h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0; font-size: 24px; margin-bottom: 4px; overflow-wrap: anywhere; }
.notice.ok { border-left-color: var(--ok); }
@media (max-width: 760px) { .new-event-row { grid-template-columns: 1fr 1fr; } .new-event-row .field:first-child { grid-column: 1 / -1; } .new-event-row .btn { grid-column: 1 / -1; } }

/* panels & forms */
.panel { background: rgba(22,19,27,.85); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel.tint { background: var(--surface); }

.panel h2 { font-size: 18px; margin-bottom: 18px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field > span em { font-style: normal; font-weight: 400; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=date], input:not([type]), select, textarea {
  display: block; width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); appearance: none; color-scheme: dark; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
         background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,61,139,.22); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--pink); }
.switch input:checked::after { transform: translateX(16px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
       font: inherit; font-size: 15px; font-weight: 550; border-radius: 99px; border: 1px solid var(--line-strong);
       background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: transparent; font-weight: 700; }
.btn.primary:hover { background: #ff5a9d; }
.btn.block { width: 100%; }
.btn.lg { height: 52px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.linkrow { display: flex; gap: 8px; }
.linkrow input { flex: 1; min-width: 0; }
.linkrow input { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }

/* notices */
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-strong); border-left: 4px solid var(--sun); border-radius: var(--radius); padding: 16px 18px; margin: 24px 0 0; }
.notice h3 { font-size: 15px; margin-bottom: 4px; }
.notice p { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.claim-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.claim-row b { color: var(--ink); }

/* admin */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 32px 0 24px; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 42px); letter-spacing: 0; line-height: 1.1; }
.stats { display: flex; gap: 28px; margin-top: 14px; }
.stats div { font-size: 13px; color: var(--ink-2); }
.stats strong { display: block; font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.admin-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.linkrow.stacked { flex-direction: column; }
.linkrow.stacked input { flex: none; }
.qr-box { background: #fff; border: 0; box-shadow: 0 0 0 4px var(--surface-2), 0 0 0 6px var(--pink); border-radius: var(--radius); padding: 14px; width: 100%; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 14px; }
.qr-box img { width: 100%; height: 100%; image-rendering: pixelated; }
.stack { display: grid; gap: 8px; }
.stack-panels { display: grid; gap: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.panel-head h2 { margin-bottom: 8px; }
.saved { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ok); }
.prefixed { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; }
.prefixed:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,61,139,.22); }
.prefixed .prefix { display: flex; align-items: center; padding: 0 2px 0 12px; color: var(--ink-3); font-size: 15px; white-space: nowrap; }
.prefixed input { border: 0 !important; box-shadow: none !important; padding-left: 0; min-width: 0; flex: 1; }
.form-error { display: flex; gap: 8px; align-items: center; color: var(--err); font-size: 14px; margin: -6px 0 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.stack .btn { justify-content: flex-start; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 14px; }
.section-head h2 { font-size: 18px; }

/* galleries */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px; }
.tile { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; border-radius: 4px; }
.tile .thumb { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.tile .thumb:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-3); }
.tile .ph .icon { width: 28px; height: 28px; }
.tile .who { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 12px; color: #fff;
             background: linear-gradient(transparent, rgba(0,0,0,.55)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.tile .badge { position: absolute; right: 6px; bottom: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--sun); color: #160c12; }
.tile .tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.tile:hover .tools, .tile:focus-within .tools { opacity: 1; }
@media (hover: none) { .tile .tools { opacity: 1; } }
.tool { all: unset; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.92); color: #111; cursor: pointer; }
.tool:hover { background: #fff; }
.tool.danger:hover { color: var(--err); }
.tool .icon { width: 16px; height: 16px; }
.is-hidden .who { padding-right: 96px; }
.is-hidden img { opacity: .35; filter: grayscale(1); }
.empty { background: rgba(22,19,27,.6); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--ink-2); font-size: 15px; }
.empty[hidden] { display: none; }
dialog { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog::backdrop { background: rgba(10,10,10,.9); }
dialog img, dialog video { display: block; max-width: 96vw; max-height: 90vh; border-radius: 4px; }
dialog .close { position: fixed; top: 16px; right: 16px; }

/* guest */
.guest-head { padding: 40px 0 24px; }
.guest-head .date { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); background: var(--sun); padding: 3px 9px; border-radius: 99px; margin-bottom: 14px; }
.guest-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 11vw, 52px); letter-spacing: 0; line-height: 1.05; overflow-wrap: anywhere; }
.guest-head p { color: var(--ink-2); margin-top: 8px; font-size: 17px; }
.progress { margin-top: 16px; }
.progress-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
#bar-fill { height: 100%; width: 0; background: var(--pink); transition: width .2s; }
.result { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-weight: 550; }
.result.ok { color: var(--ok); }
.result.partial { color: var(--err); }
.errors { color: var(--err); font-size: 14px; padding-left: 18px; margin: 10px 0 0; }
.errors:empty { display: none; }
.guest-foot { display: grid; gap: 14px; padding: 24px 0 8px; }
.guest-foot .note { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); }
.guest-foot .note .icon { width: 16px; height: 16px; margin-top: 2px; }

.footer { margin-top: 64px; border-top: 1px solid var(--line); }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: var(--ink-3); }
.footer nav { display: flex; gap: 16px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.center-page { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 16px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 36px 0 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .admin-grid { grid-template-columns: 1fr; }
  .qr-box { max-width: 260px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .stats { gap: 20px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .grid.admin { grid-template-columns: repeat(2, 1fr); }
  .tile { border-radius: 0; }
}

/* slideshow */
body.show { background: #000; overflow: hidden; height: 100vh; cursor: none; color: #fff; }
.slide { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: contain; opacity: 0; transition: opacity 1.2s ease; }
.slide.on { opacity: 1; }
.show-info { position: fixed; z-index: 10; right: 2.5vw; bottom: 2.5vw; display: flex; gap: 1.4vh; align-items: center; background: #fbf3e4; color: #160c12; box-shadow: 0 1vh 4vh rgba(0,0,0,.5); padding: 1.2vh 2vh 1.2vh 1.2vh; border-radius: 1.2vh; font-size: 1.7vh; line-height: 1.35; }
.show-info img { width: 10vh; height: 10vh; display: block; }
.show-info strong { font-family: var(--display); font-weight: 400; font-size: 2.6vh; }
.caption { position: fixed; left: 2.5vw; bottom: 2.5vw; font-size: 2.2vh; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.wait { position: fixed; inset: 0; display: grid; place-items: center; color: #777; font-size: 2.6vh; margin: 0; }
.wait[hidden] { display: none; }

/* plans */
.plan-badge { display: inline-block; vertical-align: middle; font-family: "Inter", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
              padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.plan-badge.plus, .is-plus .plan-badge { background: var(--pink); color: #160c12; }
.plan-panel .panel-head { align-items: center; margin-bottom: 14px; }
.plan-panel .panel-head h2 { margin: 0; }
.meter-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.meter .bar i { display: block; height: 100%; background: var(--pink); border-radius: 4px; }
.plan-facts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.plan-facts li { display: flex; gap: 10px; align-items: center; }
.plan-facts .icon { color: var(--ink-3); width: 16px; height: 16px; }
.plan-up { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan-up p { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.upgrade { padding-top: 40px; }
.upgrade h1 { font-family: var(--display); font-weight: 400; letter-spacing: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
.upgrade .lead { color: var(--ink-2); margin: 10px 0 28px; font-size: 17px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.price-card.featured { border: 2px solid var(--pink); }
.price-card h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0; font-size: 28px; display: flex; justify-content: space-between; align-items: center; }
.price { font-family: var(--display); font-size: 44px; line-height: 1; }
.price small { font-family: "Inter", sans-serif; font-size: 14px; color: var(--ink-2); margin-left: 6px; }
.price-card ul { list-style: none; padding: 0; margin: 6px 0 8px; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.price-card li .icon { color: var(--pink); width: 17px; height: 17px; margin-top: 3px; stroke-width: 2.4; }
.price-card .btn, .price-card form { margin-top: auto; }
.price-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); text-align: center; }
.dev-note { font-size: 13px; color: var(--amber); text-align: center; margin-top: 8px; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

/* guestbook */
textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,61,139,.22); }
.gb { margin-top: 20px; }
.gb-title, .gb-admin h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.gb-title .icon, .gb-admin h2 .icon { color: var(--pink); width: 20px; height: 20px; }
.gb-lead { margin: 6px 0 16px; }
.gb-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); margin: 16px 0 0; }
.gb-note .icon { width: 15px; height: 15px; }
.gb-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.gb-list:empty { display: none; }
.gb-entry { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.gb-entry.mine { border-color: rgba(255,61,139,.45); }
.gb-entry.is-hidden { opacity: .55; }
.gb-msg { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.gb-meta { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.gb-meta strong { color: var(--ink-2); font-weight: 600; }
.gb-tag { display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.gb-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gb-tools .btn { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.danger:hover { color: var(--err); border-color: var(--err); }
.gb-admin { margin-top: 20px; }
.gb-admin .panel-head { align-items: center; }
.gb-switches { margin-top: 6px; }
.gb-hint { margin-top: 10px; }
.gb-list.admin { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* guestbook: photo + scribble attachments, scribble pad */
.gb-attach { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 2px 0 14px; }
.gb-attach .btn { padding: 0 8px; gap: 6px; }
.gb-attach .btn { justify-content: center; }
.gb-pics { display: flex; gap: 8px; margin-bottom: 10px; }
.gb-pic { flex: 1 1 0; min-width: 0; display: block; border-radius: 10px; overflow: hidden; background: var(--surface-2); max-height: 280px; }
.gb-pic img { display: block; width: 100%; height: 100%; max-height: 280px; object-fit: cover; }
.gb-pic.drawing { background: #fffdf8; }
.gb-pic.drawing img { object-fit: contain; }
.gb-pad { padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); color: var(--ink); width: min(720px, calc(100vw - 24px)); max-width: none; }
.gb-pad::backdrop { background: rgba(6,4,8,.78); }
.gb-pad-in { padding: 16px; display: grid; gap: 12px; }
.gb-pad-title { font-weight: 650; }
.gb-pad canvas { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; border-radius: 12px; background: #fffdf8; touch-action: none; cursor: crosshair; }
.gb-pad-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.gb-colors, .gb-sizes { display: flex; gap: 8px; align-items: center; }
.gb-color { width: 30px; height: 30px; border-radius: 99px; padding: 0; cursor: pointer; background: var(--c); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.gb-color.on { box-shadow: 0 0 0 2px var(--ink); }
.gb-color.eraser { background: #fffdf8; position: relative; }
.gb-color.eraser::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: #b9aeb9; transform: rotate(-45deg); }
.gb-size { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.gb-size i { width: var(--s); height: var(--s); border-radius: 99px; background: var(--ink); }
.gb-size.on { border-color: var(--ink); background: var(--surface-2); }
.gb-sizes .btn.sm { width: 36px; padding: 0; justify-content: center; }
.gb-pad-foot { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 560px) {
  .gb-pad { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; margin: 0; }
  .gb-pad-in { height: 100%; align-content: start; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); }
  .gb-pad-foot .btn { flex: 1; justify-content: center; }
}
.ss-gb { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.ss-gb .icon { width: 16px; height: 16px; color: var(--pink); flex: none; }
.ss-gb a { color: inherit; }
.gb-pdf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }

/* guestbook mini editor */
.gb-editor { margin: 0 0 14px; }
.gb-formats { display: flex; gap: 6px; margin-bottom: 10px; }
.gb-fmt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; border-radius: 99px; cursor: pointer;
          border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; }
.gb-fmt.on { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.gb-fmt i { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }
.gb-fmt .f-landscape { width: 14px; height: 10px; } .gb-fmt .f-square { width: 11px; height: 11px; } .gb-fmt .f-portrait { width: 10px; height: 14px; }
.gb-stage { position: relative; width: 100%; aspect-ratio: var(--ar, 1.333); max-height: 62vh; margin: 0 auto; background: #fffdf8;
            border-radius: 10px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.gb-obj { position: absolute; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); cursor: grab; }
.gb-obj img, .gb-obj canvas { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.gb-obj.photo img { box-shadow: 0 0 0 var(--bw, 0) #fff, 0 3px 12px rgba(40,20,30,.28); }
.gb-obj.sel { outline: 2px dashed var(--pink); outline-offset: calc(var(--bw, 0px) + 5px); }
.gb-handle { position: absolute; right: calc(-14px - var(--bw, 0px)); bottom: calc(-14px - var(--bw, 0px)); width: 28px; height: 28px; border-radius: 99px;
             background: var(--pink); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.35); display: none; cursor: nwse-resize; }
.gb-obj.sel .gb-handle { display: block; }
.gb-objbar { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.gb-objbar .btn.sm { width: 44px; padding: 0; justify-content: center; }
.gb-objbar .btn:disabled { opacity: .35; cursor: default; }
.gb-editor-hint { margin-top: 8px; text-align: center; }
.gb-pic.page { background: #fffdf8; }
.gb-pic.page img { object-fit: contain; }

/* editor text: fonts the guest can choose (OFL, see static/fonts) */
@font-face { font-family: "Caveat"; font-weight: 400; font-display: swap; src: url("/static/fonts/caveat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 400; font-display: swap; src: url("/static/fonts/courier-prime-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("/static/fonts/lora-latin-400-italic.woff2") format("woff2"); }
.gb-textbar { margin-top: 10px; display: grid; gap: 10px; }
.gb-fonts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gb-font { flex: none; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; white-space: nowrap; }
.gb-font.on { border-color: var(--pink); background: rgba(255,61,139,.14); }
.gb-font.f-hand { font-family: "Caveat", cursive; font-size: 21px; }
.gb-font.f-elegant { font-family: "Lora", Georgia, serif; font-style: italic; font-size: 16px; }
.gb-font.f-playful { font-family: "Shrikhand", serif; font-size: 15px; }
.gb-font.f-simple { font-family: "Inter", sans-serif; font-weight: 600; font-size: 15px; }
.gb-font.f-typewriter { font-family: "Courier Prime", monospace; font-size: 15px; }
.gb-tcolors { display: flex; gap: 8px; justify-content: center; }

/* GDPR: export and delete */
.danger-zone { margin-top: 28px; }
.danger-zone h2 { font-size: 17px; margin-bottom: 6px; }
.danger-zone summary { cursor: pointer; font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.danger-zone details[open] summary { color: var(--err); margin-bottom: 10px; }
.del-form { display: grid; gap: 12px; max-width: 420px; margin-top: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--err); width: 16px; height: 16px; flex: none; }
.btn.danger-solid { background: transparent; color: var(--err); border-color: var(--err); justify-self: start; }
.btn.danger-solid:hover { background: var(--err); color: #160c12; }

/* legal pages */
.legal { max-width: 760px; padding-bottom: 40px; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 19px; margin: 30px 0 10px; }
.legal h3 { font-size: 15px; margin: 18px 0 6px; color: var(--ink); }
.legal p, .legal li, .legal dd { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.legal p { margin: 0 0 10px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--pink); }
.legal .lead { font-size: 17px; color: var(--ink); }
.legal-updated { font-size: 13px; color: var(--ink-3) !important; margin-bottom: 22px !important; }
.legal-lang { display: flex; gap: 8px; align-items: center; font-size: 14px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.legal-links { margin-top: 36px !important; font-size: 14px !important; }
.facts { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 8px 18px; margin: 0 0 12px; }
.facts dt { color: var(--ink-3); font-size: 14px; padding-top: 2px; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.legal-table { border-collapse: collapse; width: 100%; margin: 6px 0 14px; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.legal-table th { color: var(--ink); }
mark.todo { background: var(--sun); color: #160c12; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.report-form { display: grid; gap: 14px; }
.guest-foot .note a { color: inherit; }
.footer nav { flex-wrap: wrap; }

/* free beta */
.price-grid.single { grid-template-columns: minmax(0, 440px); justify-content: center; }
.beta-tag { display: inline-block; white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px;
            background: var(--sun); color: #160c12; margin-right: 6px; vertical-align: 1px; }
