/* Fonts are served from our own domain (OFL-licensed, latin + latin-ext subsets; the Devanagari face only
   carries the six letters of पैग़ाम). No third-party font hosts on the critical path. */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/hanken-grotesk-latin-ext-v12.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/hanken-grotesk-latin-v12.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic-latin-ext-v5.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic-latin-v5.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin-ext-v5.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin-v5.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Kalam'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/kalam-400-latin-v18.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Kalam'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/kalam-700-latin-v18.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tiro Devanagari Hindi'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/tiro-devanagari-hindi-paigaam-v7.woff2) format('woff2'); unicode-range: U+0900-097F; }

/* Fallback faces sized like the web fonts (measured: width, ascent, descent), so text keeps its shape while
   Instrument Serif / Hanken Grotesk load and nothing shifts when they swap in. Windows/macOS/iOS use
   Times New Roman / Arial; Android uses Noto Serif / Roboto. A face whose local font is missing is skipped. */
@font-face { font-family: 'IS Fallback'; font-style: normal; src: local('Times New Roman'), local('TimesNewRomanPSMT'); size-adjust: 83.1%; ascent-override: 119.13%; descent-override: 37.3%; line-gap-override: 0%; }
@font-face { font-family: 'IS Fallback'; font-style: italic; src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'); size-adjust: 87.58%; ascent-override: 113.04%; descent-override: 35.4%; line-gap-override: 0%; }
@font-face { font-family: 'IS Fallback Android'; font-style: normal; src: local('Noto Serif'), local('NotoSerif'), local('NotoSerif-Regular'); size-adjust: 70.12%; ascent-override: 141.19%; descent-override: 44.21%; line-gap-override: 0%; }
@font-face { font-family: 'IS Fallback Android'; font-style: italic; src: local('Noto Serif Italic'), local('NotoSerif-Italic'); size-adjust: 76.2%; ascent-override: 129.92%; descent-override: 40.68%; line-gap-override: 0%; }
@font-face { font-family: 'HG Fallback'; font-weight: 100 549; src: local('Arial'), local('ArialMT'); size-adjust: 101.54%; ascent-override: 98.48%; descent-override: 29.54%; line-gap-override: 0%; }
@font-face { font-family: 'HG Fallback'; font-weight: 550 900; src: local('Arial Bold'), local('Arial-BoldMT'); size-adjust: 95.47%; ascent-override: 104.74%; descent-override: 31.42%; line-gap-override: 0%; }
@font-face { font-family: 'HG Fallback Android'; font-weight: 100 549; src: local('Roboto'), local('Roboto-Regular'); size-adjust: 101.45%; ascent-override: 98.57%; descent-override: 29.57%; line-gap-override: 0%; }
@font-face { font-family: 'HG Fallback Android'; font-weight: 550 900; src: local('Roboto Bold'), local('Roboto-Bold'), local('Roboto Medium'), local('Roboto-Medium'); size-adjust: 100.2%; ascent-override: 99.8%; descent-override: 29.9%; line-gap-override: 0%; }

/* Paigaam: love-letter stationery. Paper, ink, sindoor. Shared by the storefront, editor and dashboard. */
:root {
  /* colour */
  --paper: #f4ece1;
  --paper-2: #ebe0d0;
  --card: #fbf7f1;
  --ink: #1f1626;
  --ink-soft: #5d5060;
  --ink-faint: #6f6273; /* 4.8:1 on paper: passes WCAG AA for small text */
  --line: rgba(31, 22, 38, .13);
  --sindoor: #c8102e;
  --sindoor-deep: #9c0c24;
  --rose: #eaa7ae;
  --blush: #fbe3e8;
  --gold: #b98b3e;
  --desk: #1b1322;
  --ok: #2f8a5b;

  /* type */
  --serif: 'Instrument Serif', 'IS Fallback', 'IS Fallback Android', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'HG Fallback', 'HG Fallback Android', 'Segoe UI', sans-serif;
  --hand: 'Kalam', cursive;
  --deva: 'Tiro Devanagari Hindi', serif;
  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.05rem, 1.4vw, 1.18rem);
  --fs-h3: clamp(1.45rem, 2.2vw, 1.8rem);
  --fs-h2: clamp(2.4rem, 5.6vw, 4.2rem);
  --fs-display: clamp(3rem, 8vw, 6.6rem);

  /* spacing: one 4px-based scale everywhere */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --stack: clamp(28px, 4vw, 48px); /* gap between a section heading and its content */

  /* shape + motion */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 0 rgba(31, 22, 38, .06), 0 18px 40px -18px rgba(31, 22, 38, .35);
  --shadow-lg: 0 1px 0 rgba(31, 22, 38, .06), 0 32px 60px -26px rgba(31, 22, 38, .5);
  /* boxes: one look everywhere. box = a card or panel; banner = a big feature block; tile = an item inside a box */
  --shadow-sm: 0 1px 0 rgba(31, 22, 38, .05), 0 12px 28px -20px rgba(31, 22, 38, .35);
  --line-strong: rgba(31, 22, 38, .24);
  --box-pad: clamp(20px, 2.4vw, 24px);
  --banner-pad: clamp(28px, 5vw, 64px);
  --tile-bg: rgba(255, 255, 255, .55);
  --top-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* a component's own display rule must never un-hide it */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font: 400 var(--fs-md)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { /* paper grain */
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--sindoor); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--rose); color: var(--ink); }

/* ── layout ── */
.wrap { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 980px; }
.hand { font-family: var(--hand); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
em { font-style: italic; }
.accent { color: var(--sindoor); }

/* ── wordmark ── */
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; text-decoration: none; }
.brand b { font: 400 1.65rem/1 var(--serif); letter-spacing: -.01em; }
.brand i { font: 400 1.05rem/1 var(--deva); font-style: normal; color: var(--sindoor); }

/* ── top bar (storefront + dashboard) ── */
.top { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  background: color-mix(in srgb, var(--paper) 82%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: var(--top-h); }
.top nav { display: flex; align-items: center; gap: var(--sp-1); }
.top nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-3); border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; transition: color .2s; }
.top nav a:not(.btn):hover { color: var(--ink); }
.top .btn { padding-inline: var(--sp-5); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sindoor); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ── buttons ── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 44px;
  padding: 0 var(--sp-5); border-radius: 999px; font-weight: 600; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; white-space: nowrap; transition: transform .25s var(--pop), background .2s, color .2s, box-shadow .25s var(--ease), border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 54px; padding-inline: var(--sp-6); font-size: 1.02rem; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(31, 22, 38, .7); }
.btn-ink:hover { background: #2d2136; }
.btn-seal { background: var(--sindoor); color: #fff8f3; box-shadow: 0 12px 26px -12px rgba(200, 16, 46, .8); }
.btn-seal:hover { background: var(--sindoor-deep); box-shadow: 0 16px 30px -12px rgba(200, 16, 46, .85); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { color: var(--ink-soft); padding-inline: var(--sp-3); font-weight: 500; }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { min-height: 40px; padding-inline: var(--sp-4); font-size: .85rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.danger { color: var(--sindoor); border: 1.5px solid rgba(200, 16, 46, .35); }
.danger:hover { background: var(--sindoor); color: #fff; border-color: var(--sindoor); }

/* ── phone frame (gallery, hero, editor) ── */
.phone {
  --w: 375px; --h: 812px; --s: .5;
  position: relative; flex: none; width: calc(var(--w) * var(--s) + 16px); height: calc(var(--h) * var(--s) + 16px);
  padding: 8px; border-radius: calc(46px * var(--s) + 8px); background: #120c17;
  box-shadow: 0 0 0 1.5px #3a2e40 inset, 0 30px 60px -28px rgba(18, 12, 23, .8), 0 2px 0 rgba(255, 255, 255, .04) inset;
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(40px * var(--s)); overflow: hidden; background: #0b0710; }
.phone iframe {
  position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); border: 0;
  transform: scale(var(--s)); transform-origin: 0 0; background: #0b0710;
}
.phone::after { /* notch */
  content: ''; position: absolute; top: calc(8px + 10px * var(--s)); left: 50%; width: calc(110px * var(--s)); height: calc(26px * var(--s));
  transform: translateX(-50%); border-radius: 99px; background: #120c17; z-index: 4;
}
/* poster: what a phone shows until (or instead of) its live preview */
.poster { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-4); text-align: center; background: linear-gradient(160deg, var(--from, #2a1d31), var(--to, #1b1322)); color: #fff;
  transition: opacity .5s var(--ease); }
.poster.dark { color: var(--ink); }
.poster .g { font-size: calc(6.2rem * var(--s)); line-height: 1; }
.poster .t { font: 400 calc(4rem * var(--s))/1 var(--serif); }
.poster .l { font: 400 calc(2.5rem * var(--s))/1.2 var(--hand); opacity: .85; }
/* lazy previews stay invisible until their page has loaded, so the poster shows meanwhile */
.screen.lazy iframe { z-index: 2; }
.screen.lazy:not(.live) iframe { visibility: hidden; }
.screen.lazy.live .poster { opacity: 0; pointer-events: none; }
/* a playing preview is too small to use in place: tapping it opens the full demo instead (so it never sits waiting) */
.tryit { position: absolute; inset: 0; z-index: 3; display: none; align-items: flex-end; justify-content: center;
  padding-bottom: calc(40px * var(--s) + 8px); text-decoration: none; cursor: pointer; }
.screen.live .tryit { display: flex; }
.tryit span { padding: 6px 12px; border-radius: 999px; background: rgba(20, 14, 26, .8); color: #fff; font-size: .74rem; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tryit:hover span, .tryit:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .tryit span { opacity: 1; transform: none; } }

/* ── small pieces ── */
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 var(--sp-3); border-radius: 999px;
  border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-soft); background: rgba(255, 255, 255, .4); }
.pill { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 32px; padding: 0 var(--sp-3); border-radius: 999px;
  font-size: .82rem; font-weight: 600; background: var(--card); border: 1px solid var(--line); white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47, 138, 91, .15); }
.pill.wait i { background: var(--gold); box-shadow: 0 0 0 3px rgba(185, 139, 62, .15); }
.pill.gone i { background: var(--ink-faint); box-shadow: none; }
.panel { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--box-pad); box-shadow: var(--shadow-sm); }
.help { font-size: .82rem; color: var(--ink-faint); line-height: 1.45; }
.lbl { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.lbl .opt, .field .opt { font-weight: 500; color: var(--ink-faint); margin-left: var(--sp-1); }

/* ── skip link ── */
.skip { position: absolute; left: var(--sp-3); top: -80px; z-index: 100; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--sp-3); }

/* ── form fields ── */
.field { display: grid; gap: 6px; margin-bottom: var(--sp-4); text-align: left; }
.field > span, .field > label { font-size: .82rem; font-weight: 600; }
.inp { width: 100%; min-height: 46px; padding: var(--sp-3) var(--sp-3); border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
textarea.inp { resize: vertical; min-height: 104px; line-height: 1.5; }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d5060' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; }
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(31, 22, 38, .08); }
.inp[aria-invalid="true"] { border-color: var(--sindoor); box-shadow: 0 0 0 4px rgba(200, 16, 46, .08); }
.form-err { min-height: 1.3em; margin: var(--sp-1) 0 var(--sp-2); font-size: .85rem; font-weight: 600; color: var(--sindoor); }
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 6px; font-size: .82rem; font-weight: 600; }
/* toggle chips: checkboxes that look like pills */
.picks { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.pick { position: relative; display: inline-flex; cursor: pointer; }
.pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 var(--sp-3); border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-size: .86rem; font-weight: 600; color: var(--ink-soft); transition: background .15s, border-color .15s, color .15s; }
.pick:hover span { border-color: rgba(31, 22, 38, .3); color: var(--ink); }
.pick input:checked + span { background: var(--blush); border-color: var(--sindoor); color: var(--sindoor-deep); }
.pick input:focus-visible + span { box-shadow: 0 0 0 4px rgba(200, 16, 46, .15); }
.special textarea.inp { min-height: 76px; }
.check { display: flex; gap: var(--sp-3); align-items: center; min-height: 44px; font-size: .92rem; font-weight: 600; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; accent-color: var(--sindoor); }

/* ── segmented choice ── */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper-2); }
.seg button { min-height: 38px; padding: 0 var(--sp-4); border-radius: 9px; font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  transition: background .15s, color .15s, box-shadow .15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 6px -2px rgba(31, 22, 38, .3); }

/* ── dialogs ── */
dialog.dlg { margin: auto; border: 0; border-radius: var(--r-xl); padding: var(--sp-6) var(--sp-5) var(--sp-5); width: min(468px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  background: var(--card); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(31, 22, 38, .6); }
dialog.dlg[open] { animation: dlg-in .4s var(--ease); }
dialog.dlg::backdrop { background: rgba(27, 19, 34, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade-in .3s; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
dialog.dlg h2 { font: 400 2.1rem/1.05 var(--serif); padding-right: var(--sp-7); }
dialog.dlg h2 em { color: var(--sindoor); }
dialog.dlg .sub { color: var(--ink-soft); font-size: .94rem; margin: var(--sp-2) 0 var(--sp-5); }
dialog.dlg .fine { text-align: center; font-size: var(--fs-xs); color: var(--ink-faint); margin-top: var(--sp-3); }
.dlg-x { position: absolute; top: var(--sp-3); right: var(--sp-3); width: 44px; height: 44px; border-radius: 50%; font-size: 1.05rem; color: var(--ink-soft); transition: background .15s, color .15s; }
.dlg-x:hover { background: var(--paper-2); color: var(--ink); }
.seal-mark { width: 68px; height: 68px; margin: 0 auto var(--sp-4); border-radius: 50%; display: grid; place-items: center; color: #fff4ec; font: 400 1.9rem/1 var(--deva);
  background: radial-gradient(circle at 34% 30%, #e8344e, var(--sindoor) 45%, #7d0a1c); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .25), 0 12px 24px -8px rgba(125, 10, 28, .7); }

/* ── link box + QR (editor done dialog, dashboard) ── */
.linkbox { display: flex; gap: 6px; padding: 6px; border-radius: var(--r); background: var(--paper-2); }
.linkbox input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 var(--sp-2); font-size: .9rem; font-weight: 600; color: var(--ink); text-overflow: ellipsis; }
.linkbox input:focus { outline: none; }
.linkbox .btn { min-height: 42px; padding-inline: var(--sp-4); }
.qr { flex: none; width: 112px; height: 112px; border-radius: var(--r-sm); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }

/* ── confetti (publish) ── */
.confetti { position: fixed; inset: 0; z-index: 2147483000; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; left: 50%; top: 40%; width: 9px; height: 14px; border-radius: 2px; }

/* ── toast ── */
.toast { position: fixed; left: 50%; bottom: calc(var(--sp-6) + env(safe-area-inset-bottom, 0px)); z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: var(--sp-3) var(--sp-4); border-radius: 12px; background: var(--ink); color: var(--paper);
  font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-lg); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.foot nav a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
