/* mosvla.ge site + app — Apple system look: #f5f5f7 canvas, white grouped boxes, black pills, glass bars.
   The colour comes from the invitations (bg.css backgrounds), never from the chrome. */
/* tokens (colours, type, space, shape, motion): public/css/tokens.css */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: var(--lh-base); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
/* the underline fades in rather than popping: it is always there, transparent until hover */
a { color: var(--blue); text-decoration: underline transparent; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }
/* every control eases its hover/press changes in and out (a component's own `transition` still wins: :where adds
   nothing to the specificity) */
:where(a, button, summary, label, input, select, textarea, [role="button"]) { transition: var(--tx-ui); }
/* a link inside a sentence is underlined, so it doesn't rely on colour alone (menus, footer and buttons stay clean) */
main p a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: var(--track-tight); line-height: 1.2; }
h2 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
h1, h2, h3 { text-wrap: balance; }
p, li, summary, figcaption { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
::placeholder { color: var(--placeholder); }
.fine { font-size: var(--fs-sm); color: var(--text-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.logo-mark { width: 30px; height: 30px; flex: none; display: block; }

/* ---------- buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--h-md); padding: 0 var(--sp-5); border: 0; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-base); line-height: 1.2; white-space: nowrap; text-decoration: none !important; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: var(--tx-ui); }
.btn:active { transform: scale(.97); transition-duration: var(--dur-press); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { min-height: var(--h-sm); padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.btn-lg { min-height: var(--h-lg); padding: 0 var(--sp-7); font-size: 1rem; }
.btn-dark { background: var(--primary); color: var(--on-primary); }
.btn-light { background: #fff; color: #1d1d1f; } /* always a white button (dark hero, featured card), in both themes */
.btn-soft { background: var(--fill-2); color: var(--text); }
.btn-soft:hover { background: var(--fill-3); }
.btn-danger { background: var(--red-bg); color: var(--red-ink); }
.btn-link { min-height: 40px; border: 0; background: none; color: var(--blue); font-weight: 600; cursor: pointer; }

/* ---------- top bar + footer ---------- */

.topbar { position: sticky; top: 0; z-index: 40; background: var(--bar); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--hairline); }
.topbar.is-dark { position: fixed; left: 0; right: 0; background: rgba(0, 0, 0, .55); border-bottom: 1px solid rgba(255, 255, 255, .08); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); transition: background-color .25s ease, border-color .25s ease; }
/* readable dark glass by default (a page opened at #pricing, or before the script runs); see-through only at the very top of the dark hero */
.topbar.is-dark.is-scrolled { background: var(--bar); border-bottom-color: var(--hairline); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); }
.topbar.is-dark.is-top:not(.is-scrolled):not(:has(.menu[open])) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.is-dark.is-scrolled .brand, .is-dark.is-scrolled .topnav > a:not(.btn), .is-dark.is-scrolled .menu-btn, .is-dark.is-scrolled .acct-btn { color: var(--text); }
.is-dark.is-scrolled .btn-light { background: var(--primary); color: var(--on-primary); }
@media (prefers-reduced-motion: no-preference) { html:has(.home-hero) { scroll-behavior: smooth; } }
.topbar-in { max-width: 1080px; margin: 0 auto; padding: var(--sp-3) var(--sp-5); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.brand { display: inline-flex; align-items: center; min-height: 40px; color: var(--text); text-decoration: none !important; }
.brand-logo { display: block; width: auto; height: 32px; } /* the logo kit: 32px, 28px on phones */
@media (max-width: 480px) { .brand-logo { height: 28px; } }
/* the bar's own links only (>): the account panel inside .topnav keeps its own colours */
.is-dark .brand, .is-dark .topnav > a:not(.btn) { color: #fff; transition: var(--tx-ui); }
.topnav { display: flex; align-items: center; gap: var(--sp-6); }
.topnav > a:not(.btn) { padding: var(--sp-3) 2px; color: var(--text); font-size: var(--fs-base); } /* padding, not display: .hide-sm must still hide these on phones */
@media (max-width: 560px) { .hide-sm { display: none; } .topnav { gap: var(--sp-4); } .topbar-in { padding: var(--sp-3) var(--sp-4); } }
/* „ჩემი სივრცე“ (signed in): the avatar, last in the bar, opens the account panel; phones have it in ☰ */
.me-avatar { display: block; flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #ffb347 0%, #ff4f8b 55%, #7c5cff 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.me-avatar.is-lg { width: 40px; height: 40px; }
.me-avatar svg { display: block; width: 100%; height: 100%; fill: rgba(255, 255, 255, .96); }
/* signed out: the same round mark, neutral — the account's place in the bar is there before signing in */
.me-avatar.is-guest { background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.me-avatar.is-guest svg { fill: var(--text-2); }
.is-dark:not(.is-scrolled) .me-avatar.is-guest { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); }
.is-dark:not(.is-scrolled) .me-avatar.is-guest svg { fill: #fff; }
.acct { position: relative; }
.acct-btn { list-style: none; display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; margin-right: -8px; padding: 0 10px 0 8px; border-radius: var(--r-pill); color: var(--text); font-size: var(--fs-base); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: var(--tx-ui); }
.acct-btn::-webkit-details-marker { display: none; }
a.acct-btn { text-decoration: none !important; }
.acct-chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .65; transition: transform var(--dur-2) var(--ease-out); }
.acct[open] .acct-chev { transform: rotate(180deg); }
.acct[open] > .acct-btn { background: var(--hover); }
@media (hover: hover) { .acct-btn:hover { background: var(--hover); } .is-dark:not(.is-scrolled) .acct-btn:hover { background: rgba(255, 255, 255, .14); } }
.is-dark .acct-btn { color: #fff; transition: var(--tx-ui); }
.is-dark:not(.is-scrolled) .acct[open] > .acct-btn { background: rgba(255, 255, 255, .14); }
.acct-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: 268px; max-height: calc(100dvh - 88px); overflow-y: auto; padding: var(--sp-2); border-radius: var(--r-lg); background: var(--card); color: var(--text); box-shadow: inset 0 1px 0 var(--card-gloss), 0 0 0 1px var(--card-edge), 0 20px 44px -14px rgba(0, 0, 0, .28); }
.acct-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: 6px; padding: var(--sp-2) 10px var(--sp-3); border-bottom: 1px solid var(--line-2); }
.acct-head span, .menu-me span { display: grid; min-width: 0; }
.acct-head b { font-size: var(--fs-base); font-weight: 600; }
.acct-head small, .menu-me small { overflow: hidden; color: var(--text-2); font-size: var(--fs-sm); text-overflow: ellipsis; white-space: nowrap; }
.acct-list { list-style: none; margin: 0; padding: 0; }
/* the pages in groups (#lib/account.ts): a small title, then the links with their icons; a line between groups */
.acct-group + .acct-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.acct-group-title { margin: 0; padding: 6px 10px 2px; color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; }
.acct-list a, .acct-out button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font: inherit; font-size: var(--fs-base); text-align: left; text-decoration: none !important; cursor: pointer; transition: var(--tx-ui); }
.acct-list a:hover, .acct-out button:hover { background: var(--fill); }
.acct-list a[aria-current='page'] { background: var(--fill); font-weight: 600; }
.acct-ico, .menu-ico { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--text-2); }
.acct-out { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line-2); }
.acct-out button { color: var(--red-ink); }
.acct-out .acct-ico, .menu-out .menu-ico { color: currentColor; }
@media (prefers-reduced-motion: no-preference) { .acct[open] .acct-panel { animation: acct-in .16s ease-out; } }
@keyframes acct-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
/* up to 720 px (the home bar has three more links) only the avatar shows; the name stays for screen readers */
@media (max-width: 720px) { .topnav { gap: var(--sp-4); } .acct-btn { padding: 0 8px; } .acct-chev { display: none; } .acct-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (max-width: 560px) { .acct { display: none; } }

.site-foot { border-top: 1px solid var(--line-2); background: var(--bg); }
.site-foot-in { max-width: 1080px; margin: 0 auto; padding: var(--sp-14) var(--sp-5) 0; }
.foot-top { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); gap: var(--sp-10) var(--sp-12); padding-bottom: var(--sp-12); }
.foot-brand { display: grid; align-content: start; justify-items: start; gap: var(--sp-4); }
.foot-brand p { max-width: 26ch; font-size: var(--fs-base); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.foot-brand .btn { margin-top: var(--sp-1); }
/* four columns at their own width, spread so the last one ends on the same edge as the domain below */
.foot-cols { display: grid; grid-template-columns: repeat(4, max-content); justify-content: space-between; gap: var(--sp-7) var(--sp-6); }
.foot-col h2 { margin-bottom: var(--sp-3); font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.foot-col a { display: inline-block; padding: var(--sp-1) 0; font-size: var(--fs-sm); color: var(--text-2); overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--text); text-decoration: none; }
/* slim footer (the signed-in pages): help and the legal links in one row, then the same bottom line */
.site-foot.is-slim .site-foot-in { padding-top: var(--sp-6); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 var(--sp-6); padding-bottom: var(--sp-4); }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--fs-sm); color: var(--text-2); overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--text); text-decoration: none; }
/* the bottom bar, one row: „mosvla.ge © 2026. ყველა უფლება დაცულია.“ on the left; the green shield and the marks
   (Bank of Georgia first, then the cards) on the right */
.foot-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy pay"; align-items: center; gap: var(--sp-4) var(--sp-6); padding: var(--sp-6) 0 var(--sp-9); border-top: 1px solid var(--line-2); font-size: var(--fs-xs); line-height: 1.5; color: var(--text-2); }
.foot-bottom p { margin: 0; }
.foot-copy { grid-area: copy; }
/* the site font draws © small and raised (superscript-like): Arial's sits on the line at full height */
.foot-c { font-family: Arial, Helvetica, sans-serif; font-size: 1.05em; line-height: 1; }
.foot-pay { grid-area: pay; justify-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.foot-shield { display: inline-grid; place-items: center; margin-right: var(--sp-1); color: var(--green); }
.foot-shield svg { display: block; width: 20px; height: 20px; }
/* the marks on white chips (their brand colours), in both themes */
.pay-badge { display: inline-grid; place-items: center; width: 42px; height: 28px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.pay-badge svg { display: block; width: auto; }
.pay-badge.is-visa svg { height: 10px; }
.pay-badge.is-mc svg { height: 18px; }
.pay-badge.is-amex { background: #016fd0; box-shadow: none; }
.pay-badge.is-amex svg { height: 13px; }
.pay-badge.is-bog svg { height: 18px; }
@media (max-width: 1000px) { .foot-top { grid-template-columns: minmax(0, 1fr); gap: var(--sp-9); } }
@media (max-width: 760px) {
  .site-foot-in { padding-top: var(--sp-11); }
  .foot-top { gap: var(--sp-8); padding-bottom: var(--sp-9); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: var(--sp-7) var(--sp-5); }
  /* one column: the marks first, the copyright under them */
  .foot-bottom { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pay" "copy"; }
  .foot-pay { justify-self: start; }
}

/* ---------- mini posters (same backgrounds as the invitations) ---------- */

.mini-poster { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; aspect-ratio: 3 / 4; padding: var(--sp-4); border-radius: var(--r-xl); overflow: hidden; color: #fff; text-decoration: none !important; isolation: isolate; box-shadow: var(--shadow); transition: var(--tx-ui); }
.mini-poster::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--tint) 80%, #000) 100%); }
.mini-poster:hover { transform: translateY(-3px); }
.mini-poster-kicker { font-size: var(--fs-2xs); opacity: .8; }
.mini-poster-title { font-weight: 700; font-size: var(--fs-md); line-height: 1.25; letter-spacing: var(--track-snug); text-wrap: balance; }
.mini-poster-mono { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); display: grid; place-items: center; font: 600 1.5rem var(--serif); }
.mini-poster-num { position: absolute; top: 12%; left: 0; right: 0; text-align: center; font-size: 4.6rem; font-weight: 700; letter-spacing: -.06em; line-height: 1; opacity: .95; }
.mini-poster-meta { font-size: var(--fs-2xs); opacity: .85; }
/* type picker: one minimal line drawing per occasion */
.mini-poster .emblem { position: absolute; top: 15%; left: 50%; width: 44%; translate: -50% 0; fill: none; stroke: rgba(255, 255, 255, .94); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .14)); pointer-events: none; }
.mini-poster .emblem .fill { fill: rgba(255, 255, 255, .94); stroke: none; }
.mini-poster .emblem .warm { fill: rgba(255, 226, 150, .95); stroke: none; }

/* poster art: the same white shapes as the full invitation */
:is(.mini-poster, .screen) .art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 72%; fill: rgba(255, 255, 255, .45); pointer-events: none; }
:is(.mini-poster, .screen) .art .line { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 3; stroke-linecap: round; }
:is(.mini-poster, .screen) .art .leaf { fill: rgba(255, 255, 255, .26); }
:is(.mini-poster, .screen) .art .fill-none { fill: url(#gp); }
:is(.mini-poster, .screen) .art-grid { height: 100%; fill: none; }
:is(.mini-poster, .screen) .art-grid .line { stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
:is(.mini-poster, .screen) .art-stars { fill: rgba(255, 255, 255, .85); }
:is(.mini-poster, .screen) .art-vine { fill: rgba(255, 220, 160, .5); }
:is(.mini-poster, .screen, .demo-invite) .art .win { fill: rgba(255, 226, 150, .75); }
:is(.mini-poster, .screen, .demo-invite) .art .pump { fill: rgba(255, 150, 60, .85); }
/* Easter art (lib/art.ts egg, paska, jejili): its own colours, opaque so the red eggs read on the red */
:is(.mini-poster, .screen, .demo-invite) .art .egg { fill: #e8222f; }
:is(.mini-poster, .screen, .demo-invite) .art .shine { fill: rgba(255, 255, 255, .38); }
:is(.mini-poster, .screen, .demo-invite) .art .paint { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 2.4; stroke-linecap: round; }
:is(.mini-poster, .screen, .demo-invite) .art .dot { fill: #ffd76a; }
:is(.mini-poster, .screen, .demo-invite) .art .bread { fill: #c98a3e; }
:is(.mini-poster, .screen, .demo-invite) .art .icing { fill: #fff6ec; }
:is(.mini-poster, .screen, .demo-invite) .art .sprout { fill: #86d36c; }
:is(.mini-poster, .screen, .demo-invite) .art .sprout-line { fill: none; stroke: #86d36c; stroke-width: 3; stroke-linecap: round; }
:is(.mini-poster, .screen, .demo-invite) .art .dish { fill: rgba(255, 240, 228, .55); }
:is(.mini-poster, .screen) .art-vine .line { stroke: rgba(255, 220, 160, .45); }
:is(.mini-poster, .screen) .art-frame { position: absolute; inset: 8px; z-index: -2; border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px; pointer-events: none; }
:is(.mini-poster, .screen) .art-frame::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r); }
.screen .art-frame { inset: 12px; border-radius: 26px; }
.screen .art-frame::after { border-radius: 22px; }

/* ---------- forms ---------- */

.field { display: grid; align-content: start; gap: var(--sp-2); min-width: 0; }
.field-label { font-size: var(--fs-sm); font-weight: 600; color: var(--label); }
.field-label small { font-size: var(--fs-xs); font-weight: 400; color: var(--text-2); }
.field input, .field textarea, .field select, .row-input, .search input {
  width: 100%; min-width: 0; min-height: 46px; padding: var(--sp-3) var(--sp-4); border: 0; border-radius: var(--r-sm); background: var(--fill); font-size: 1rem; color: var(--text);
  transition: var(--tx-ui);
}
.field textarea { min-height: 100px; resize: vertical; line-height: var(--lh-base); }
/* date fields (admin filters, promo dates): iPhone Safari keeps its own minimum width and height for a native date
   input and ignores width: 100%, so it ran past the card; without the native box it fits its column like the others.
   The date text sits left like every other field's, and an empty one keeps its height (Safari shows no hint in it). */
.field > input[type="date"] { -webkit-appearance: none; appearance: none; display: block; max-width: 100%; height: 48px; line-height: 24px; }
.field > input[type="date"]::-webkit-date-and-time-value { min-height: 24px; margin: 0; text-align: left; }
.field input:focus, .field textarea:focus, .row-input:focus, .search input:focus { outline: none; background: var(--surface); box-shadow: 0 0 0 2px var(--blue); }
.has-error input, .has-error textarea { box-shadow: 0 0 0 2px var(--red) !important; }
.field-error { color: var(--red-ink); font-size: var(--fs-xs); font-weight: 600; }
.cf-errors { padding: var(--sp-3) var(--sp-4); border-radius: var(--r); background: var(--red-bg); color: var(--red-ink); font-weight: 600; font-size: var(--fs-base); }
.search { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-3); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--track); }
.seg label { position: relative; display: grid; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; min-height: 34px; padding: 3px var(--sp-2); border-radius: var(--r-xs); font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; color: var(--label); text-align: center; cursor: pointer; text-wrap: balance; }
.seg input:checked + span { background: var(--seg-on); color: var(--text); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); }
.seg-sm span { min-height: 30px; font-size: var(--fs-xs); }
.is-serif { font-family: var(--serif); }

.switch { cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 51px; height: 31px; margin: 0; border-radius: var(--r-pill); background: var(--switch-off); cursor: pointer; transition: background-color var(--dur-2) var(--ease-out); }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform var(--dur-2) var(--ease-out); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(20px); }
.consent { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); text-align: left; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--text); flex: none; }

/* iOS grouped lists */
.group { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); scroll-margin-top: 16px; }
.group[id] { scroll-margin-top: 88px; } /* /my#plan, /my#account from the account menu: clear of the sticky bar */
.group-title { padding: 0; font-size: var(--fs-md); font-weight: 700; letter-spacing: var(--track-snug); }
.group-note { padding: 0; font-size: var(--fs-xs); color: var(--text-2); }
.group-box { border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.group-pad { padding: var(--sp-4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.group-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 52px; padding: var(--sp-3) var(--sp-4); font-size: var(--fs-base); }
.group-row + .group-row, .group-box > * + .group-row { border-top: 1px solid var(--line-2); }
.group-row small { display: block; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.35; }
.group-row .row-input { width: auto; min-height: 36px; padding: var(--sp-2) var(--sp-3); margin-left: auto; }
.group-row:has(> .row-input) { flex-wrap: wrap; row-gap: var(--sp-2); }
.row-action { color: var(--blue); font-weight: 600; font-size: var(--fs-base); }
.group.is-flash .group-box { animation: flash 1s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--focus); } 100% { box-shadow: 0 0 0 3px transparent; } }
a.group-row, button.group-row { width: 100%; border: 0; background: none; color: var(--text); text-align: left; text-decoration: none !important; cursor: pointer; }
a.group-row::after, .group-row.has-chevron::after { content: "›"; color: var(--text-3); font-size: var(--fs-xl); line-height: 1; }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { min-height: 32px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill); background: var(--fill); color: var(--text); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.type-picker summary { list-style: none; cursor: pointer; }
.type-picker summary::-webkit-details-marker { display: none; }
.type-picker-body { display: grid; gap: var(--sp-3); padding: var(--sp-1) var(--sp-4) var(--sp-4); }
.type-list { display: grid; gap: var(--sp-2); }
.type-opt { position: relative; display: grid; }
.type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-opt span { display: flex; align-items: center; gap: var(--sp-3); min-height: 46px; padding: var(--sp-2) var(--sp-4); border-radius: var(--r); background: var(--fill); font-weight: 600; font-size: var(--fs-base); cursor: pointer; }
.type-opt span::after { content: ""; margin-left: auto; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--line); }
.type-opt input:checked + span { background: var(--blue-bg); }
.type-opt input:checked + span::after { border: 6px solid var(--blue); }
.type-opt input:focus-visible + span { outline: 2px solid var(--blue); }

/* background tiles */
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--sp-2); padding: var(--sp-3); }
.bg-grid.is-busy { opacity: .5; pointer-events: none; }
.bg-tile { position: relative; aspect-ratio: 1; display: flex; align-items: flex-end; justify-content: center; padding: var(--sp-2) var(--sp-1); border: 0; border-radius: var(--r); overflow: hidden; color: #fff; font-size: .75rem; font-weight: 600; cursor: pointer; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); transition: var(--tx-ui); } /* 12px: a name on a small swatch, one of the few labels under the 13px floor */
.bg-tile:active { transform: scale(.96); transition-duration: var(--dur-press); }
/* a shade band under the white label, so it reads on the palest backgrounds (champagne, sunshine, mint …) and photos */
.bg-tile::before { content: ""; position: absolute; inset: auto 0 0; height: 64%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .62)); }
.bg-tile-label { position: relative; text-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.bg-tile[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--blue); }
.bg-tile.is-photo { background-color: var(--fill); color: var(--text); flex-direction: column; justify-content: center; gap: var(--sp-1); }
.bg-tile.is-photo:not([style])::before { display: none; } /* the empty photo tile: dark text on grey */
.bg-tile.is-photo[style] { color: #fff; justify-content: flex-end; }
.bg-tile.is-photo[style]::before { display: block; }
.bg-tile.is-photo[style] .bg-tile-plus { display: none; }
.bg-tile-plus { font-size: var(--fs-2xl); font-weight: 300; line-height: 1; color: var(--blue); }
.bg-tile.is-photo .bg-tile-label { text-shadow: none; }
.bg-tile.is-photo[style] .bg-tile-label { text-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.group-row.is-stacked { flex-direction: column; align-items: stretch; gap: var(--sp-3); padding-top: var(--sp-4); padding-bottom: var(--sp-4); container-type: inline-size; }
@container (max-width: 500px) { .is-stacked .seg { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bg-tile-wrap { position: relative; display: grid; }
.bg-tile-remove { position: absolute; top: 4px; right: 4px; z-index: 2; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: var(--fs-2xs); cursor: pointer; }
.bg-tile-remove::before { content: ""; position: absolute; inset: -9px; }

.program-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-md); background: var(--fill); }
.program-item + .program-item { margin-top: var(--sp-3); }
.program-item .field input { background: var(--surface); }
.program-head { display: flex; gap: var(--sp-2); align-items: center; }
.program-label { flex: 1; min-width: 0; min-height: 40px; padding: var(--sp-2) var(--sp-3); border: 0; border-radius: var(--r-sm); background: var(--surface); font-weight: 600; }
.program-remove { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); color: var(--text-2); cursor: pointer; }
.program-row { display: grid; gap: var(--sp-3); grid-template-columns: minmax(0, 1fr) 104px; }
/* the place field's registered places (PlaceField.svelte): the list spans the place and the time; a picked place's
   name is locked, with a ✕ to type another */
.place-pick { position: relative; }
/* a picked place's name can't be shortened, so it gets the whole row and the time goes under it */
.program-row:has(.place-pick.is-locked) { grid-template-columns: minmax(0, 1fr); }
#g-when .group-box { overflow: visible; } /* the list may reach past the box (its padding keeps the fields inside) */
.place-pick.is-locked input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.place-locked-name { min-height: 46px; margin: 0; padding: var(--sp-3) 50px var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--fill); color: var(--text); font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.program-item .place-locked-name { background: var(--surface); }
.place-pick.is-locked:has(input:disabled) .place-locked-name { padding-right: var(--sp-4); opacity: .62; }
.place-unpick { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--fill); color: var(--text-2); font-size: 13px; line-height: 1; cursor: pointer; }
.place-unpick:hover { background: var(--line-2); color: var(--text); }
.place-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 300px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-lg); }
.program-row .place-list { right: calc(-104px - var(--sp-3)); }
.place-list[hidden] { display: none; }
.place-list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; }
.place-list li:hover, .place-list li.is-active { background: var(--fill); }
.place-name { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.place-sub { font-size: var(--fs-xs); color: var(--text-2); }
@media (max-width: 359px) { .program-item { padding: var(--sp-3); } .program-row { gap: var(--sp-2); grid-template-columns: minmax(0, 1fr) 96px; } .program-row .place-list { right: calc(-96px - var(--sp-2)); } } /* the place keeps room on the smallest phones */

/* date and time (PickerInput): our face — an icon, the date in Georgian with its weekday, the 24-hour time — under the
   native input, which lies on top see-through: a tap opens the phone's picker, a click anywhere the desktop one */
.dt { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 46px; padding: 0 var(--sp-4) 0 14px; border-radius: var(--r-sm); background: var(--fill); color: var(--text); font-size: 1rem; line-height: 1.25; transition: var(--tx-ui); }
@media (hover: hover) {
  .dt:not(:has(input:disabled)):hover { background: var(--fill-2); }
  .program-item .dt:not(:has(input:disabled)):hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
}
/* read-only for the agency's client (the date, times and places are the agency's) */
.dt:has(input:disabled), .field > input:disabled, .program-label:disabled { opacity: .62; cursor: not-allowed; }
.dt:has(input:disabled) input { cursor: not-allowed; }
.program-item .dt { background: var(--surface); }
.dt-icon { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--text-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dt-caret { flex: none; width: 16px; height: 16px; margin-left: auto; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dt-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dt-value.is-empty { color: var(--placeholder); }
.dt-sub { flex: none; margin-left: auto; padding-left: var(--sp-2); white-space: nowrap; color: var(--text-2); font-size: var(--fs-sm); }
/* the weekday only when the date fits beside it whole (small phones: the date alone) */
.field > .dt { container-type: inline-size; }
@container (max-width: 280px) { .dt-sub { display: none; } }
.dt > input { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: inherit; opacity: 0; -webkit-appearance: none; appearance: none; cursor: pointer; }
.dt > input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.dt:focus-within { background: var(--surface); box-shadow: 0 0 0 2px var(--blue); }
.has-error .dt { box-shadow: 0 0 0 2px var(--red); }
.program-row .dt { gap: 7px; padding: 0 var(--sp-3); }
.program-row .dt-icon { width: 18px; height: 18px; }
.dt.is-compact { flex: none; gap: var(--sp-2); min-height: 36px; margin-left: auto; padding: 0 var(--sp-3); font-size: var(--fs-base); }
.dt.is-compact .dt-icon { width: 18px; height: 18px; }
.group-row:has(> .dt) { flex-wrap: wrap; row-gap: var(--sp-2); }
.dt-clear { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-left: auto; margin-right: -6px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; }
.dt-sub ~ .dt-clear { margin-left: 0; }
.dt-clear::before { content: ""; position: absolute; inset: -9px; }
.dt-clear:hover { background: var(--hover); color: var(--text); }
.dt-clear svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* RSVP deadline block: full-width date picker, quick 1-tap presets, live confirmation, and 1-tap conflict fix */
.rsvp-deadline { gap: var(--sp-3); }
.rsvp-deadline > .field { width: 100%; }
.deadline-presets { gap: 6px; }
.deadline-note { margin: 0; font-size: var(--fs-xs); color: var(--text-2); line-height: 1.4; }
.deadline-note.is-set { color: var(--green-ink); font-weight: 500; }
.deadline-fix { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* text greeting helpers: restore default copy + character count */
.text-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 24px; }
.text-reset { padding: 4px 0; border: 0; background: none; color: var(--blue); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.text-reset:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-count { font-size: var(--fs-xs); color: var(--text-2); font-variant-numeric: tabular-nums; }

.field-grid { display: grid; align-items: end; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
/* label / input / error line on shared rows: an error under one field (or a label on two lines) never moves its neighbour */
@supports (grid-template-rows: subgrid) {
  .field-grid { align-items: start; row-gap: 0; margin-bottom: calc(-1 * var(--sp-4)); }
  .field-grid > .field { grid-row: span 3; grid-template-rows: subgrid; gap: 0; margin-bottom: var(--sp-4); }
  .field-grid > .field > .field-label { align-self: end; margin-bottom: var(--sp-2); }
  .field-grid > .field > .field-error { margin-top: var(--sp-2); }
}
#add-item { justify-self: start; }

/* ---------- editor ---------- */

.editor-body { background: var(--stage); }
.ed-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--stage-bar); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--hairline); }
.ed-close { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--hover); color: var(--text); font-size: var(--fs-base); text-decoration: none !important; }
.ed-top-title { flex: 1; text-align: center; font-weight: 600; font-size: var(--fs-base); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-top-space { width: 36px; }
/* the price stays on the publish button on phones; only the narrowest ones (no room beside ✕ and the status) drop it */
/* „ახალი მოსაწვევი“ is only a title: on a phone it gives its room to the button; the save states (shorter) still show */
@media (max-width: 430px) { .ed-top-title.is-idle { visibility: hidden; } }
@media (max-width: 359px) { .ed-price { display: none; } }
.ed { display: grid; grid-template-columns: minmax(0, 1fr); }
.ed-stage { display: grid; justify-items: center; align-content: start; gap: var(--sp-3); padding: var(--sp-3) var(--sp-3) 104px; }
.ed-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); width: 100%; }
.ed-tabs { width: min(300px, 100%); }
.ed-device { display: none; width: 268px; }
.ed-device span { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.ed-device svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; flex: none; }
.show-card .ed-device { visibility: hidden; }
.ed-phone { width: min(390px, 100%); height: calc(100svh - 262px); min-height: 480px; display: flex; flex-direction: column; border-radius: var(--r-2xl); overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.ed-screen { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.ed-screen iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.ed-chrome { display: none; }
.ed-start-btn { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--card-edge), var(--card-shadow); }
.ed-start-btn:hover { background: var(--fill); }
.ed-hint { font-size: var(--fs-xs); color: var(--text-2); }
.card-preview { margin: 0; width: min(390px, 100%); display: none; gap: var(--sp-3); }
.show-card .card-preview { display: grid; }
.show-card .ed-phone, .show-card .ed-hint, .show-card .ed-start-btn { display: none; }
.chat { padding: var(--sp-5); border-radius: var(--r-xl); background: #e5ddd5; }
.chat-bubble { max-width: 300px; margin-left: auto; padding: var(--sp-1); border-radius: calc(var(--r-sm) + var(--sp-1)); /* one radius, concentric with the picture inside (10px + 4px padding) */ background: #dcf8c6; color: #1d1d1f; /* a chat app bubble: same in dark mode */ box-shadow: 0 1px 1px rgba(0, 0, 0, .1); display: grid; gap: 2px; }
.chat-bubble img { width: 100%; border-radius: var(--r-sm); aspect-ratio: 1200 / 630; object-fit: cover; background: #fff; }
.chat-bubble-title { padding: var(--sp-1) var(--sp-2) 0; font-weight: 700; font-size: var(--fs-sm); }
.chat-bubble-host { padding: 0 var(--sp-2) var(--sp-1); font-size: var(--fs-2xs); color: #3a662d; }
.card-preview figcaption { text-align: center; font-size: var(--fs-xs); color: var(--text-2); }

/* clickable mobile backdrop behind the settings sheet */
.ed-backdrop { position: fixed; inset: 0; z-index: 45; border: 0; padding: 0; background: rgba(0, 0, 0, .28); cursor: pointer; }
.ed-panel { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--bg); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.ed-panel.is-open { transform: none; }
.ed-panel-head { display: flex; align-items: center; justify-content: flex-end; padding: var(--sp-2) var(--sp-4) var(--sp-1); position: relative; flex: none; }
.ed-panel-head .grabber { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); }
.grabber { display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--grabber); }
.ed-done { border: 0; background: none; color: var(--blue); font-weight: 700; font-size: var(--fs-base); min-height: 40px; padding: var(--sp-2) var(--sp-2); cursor: pointer; }

/* sticky section navigation pills at the top of the settings panel (desktop sidebar + mobile sheet) */
.ed-nav { flex: none; display: flex; flex-wrap: nowrap; gap: 6px; padding: var(--sp-1) var(--sp-4) var(--sp-3); border-bottom: 1px solid var(--hairline); background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.ed-nav::-webkit-scrollbar { display: none; }
.ed-nav-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; cursor: pointer; box-shadow: inset 0 0 0 1px var(--hairline); transition: var(--tx-ui); }
.ed-nav-btn:hover { color: var(--text); background: var(--fill); }
.ed-nav-btn.is-active { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.ed-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ed-dot.is-missing { background: var(--blue); }
.ed-dot.is-error { background: var(--red); }
.ed-nav-btn.is-active .ed-dot.is-missing { background: #5ac8fa; }
@media screen and (prefers-color-scheme: dark) { .ed-nav-btn.is-active .ed-dot.is-missing { background: #0066cc; } }
@media (max-width: 979px) { .ed-start-btn + .ed-hint { display: none; } }

/* readiness checklist card at the top of the settings form */
.ed-progress { display: grid; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 1px 0 var(--card-gloss), 0 0 0 1px var(--card-edge), var(--card-shadow); }
.ed-progress.is-ready { background: var(--green-bg); color: var(--green-ink); box-shadow: none; }
.ed-progress.is-error { background: var(--red-bg); color: var(--red-ink); box-shadow: none; }
.ed-progress-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); flex-wrap: wrap; }
.ed-progress-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.ed-progress.is-error .ed-progress-label { color: var(--red-ink); }
.ed-progress-count { font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ed-progress-track { height: 5px; border-radius: var(--r-pill); background: var(--fill-2); overflow: hidden; }
.ed-progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width var(--dur-2) var(--ease-out); }
.ed-missing { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.ed-missing-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border: 0; border-radius: var(--r-pill); background: var(--fill); color: var(--text); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; transition: var(--tx-ui); }
.ed-missing-chip:hover { background: var(--fill-2); }
.ed-missing-chip.is-error { background: var(--surface); color: var(--red-ink); }
.ed-progress-ready { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--green-ink); }
.ed-progress-ready svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.create-form { flex: 1; min-height: 0; display: grid; align-content: start; gap: var(--sp-6); padding: var(--sp-3) 16px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; }
.ed-dock { position: fixed; z-index: 40; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 440px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 5px; border-radius: 24px; background: var(--dock); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3); }
.ed-dock button { min-width: 0; display: grid; justify-items: center; align-content: start; gap: 3px; min-height: 54px; padding: 7px 0 6px; white-space: nowrap; border: 0; border-radius: 19px; background: transparent; font-size: .75rem; font-weight: 600; line-height: 1.15; text-align: center; text-wrap-style: balance; color: var(--text); cursor: pointer; }
.ed-dock-ico { position: relative; display: grid; place-items: center; }
.ed-dock-ico .ed-dot { position: absolute; top: -2px; right: -5px; width: 7px; height: 7px; box-shadow: 0 0 0 2px var(--dock); }
.ed-dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ed-dock button:hover { background: var(--hover); }
.ed-dock button:active { background: var(--hover); transform: scale(.96); transition-duration: var(--dur-press); }
@media (min-width: 980px) {
  .ed { grid-template-columns: clamp(440px, 36vw, 620px) minmax(0, 1fr); height: calc(100vh - 65px); }
  .ed-stage { padding: var(--sp-5) var(--sp-7) var(--sp-6); overflow-y: auto; align-content: safe center; }
  .ed-device { display: grid; }
  .ed-start-btn { display: none; }
  .device-desktop .ed-phone { width: 100%; max-width: 1240px; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--hairline), 0 30px 60px -30px rgba(0, 0, 0, .35); }
  .device-desktop .ed-chrome { display: flex; align-items: center; gap: var(--sp-2); flex: none; height: 38px; padding: 0 var(--sp-4); background: var(--stage); border-bottom: 1px solid var(--hairline); }
  .ed-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
  .ed-chrome i:nth-child(2) { background: #febc2e; } .ed-chrome i:nth-child(3) { background: #28c840; }
  .ed-chrome span { margin: 0 auto; padding: 3px var(--sp-12); border-radius: var(--r-xs); background: var(--surface); font-size: var(--fs-2xs); color: var(--text-2); transform: translateX(-24px); }
  .device-desktop .ed-screen iframe { position: absolute; top: 0; left: 0; width: var(--vw, 1280px); height: calc(100% / var(--scale, 1)); transform: scale(var(--scale, 1)); transform-origin: 0 0; }
  .ed-phone { height: min(780px, calc(100vh - 170px)); }
  .ed-backdrop { display: none !important; }
  .ed-panel { position: static; max-height: none; transform: none; border-radius: 0; box-shadow: none; border-right: 1px solid var(--hairline); overflow: hidden; }
  .ed-panel-head, .ed-dock { display: none; }
  .ed-nav { padding: var(--sp-3) var(--sp-7); }
  .create-form { padding: var(--sp-5) var(--sp-7) var(--sp-12); }
}


/* dialogs: bottom sheet on the phone, centered card on desktop */
.dlg { width: 100%; max-width: 440px; margin: auto auto 0; padding: 0; border: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--surface); color: var(--text); box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); }
.dlg[open] { animation: rise .32s cubic-bezier(.2, .8, .2, 1); }
.dlg::backdrop { background: rgba(0, 0, 0, .4); }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 560px) { .dlg { margin: auto; border-radius: var(--r-xl); } }
.dlg-body { display: grid; gap: var(--sp-4); padding: 10px 22px calc(22px + env(safe-area-inset-bottom)); text-align: center; }
.dlg-body .grabber { justify-self: center; }
.dlg-body .field { text-align: left; }
.dlg-mark { width: 56px; height: 56px; justify-self: center; margin-top: var(--sp-2); }
.dlg-body h2 { font-size: var(--fs-xl); }
.dlg-text { color: var(--text-2); font-size: var(--fs-base); }
/* a promo code (the publish sheet, the checkout page): a link, then the field with its button on one row; an accepted
   code as a green line with „მოხსნა“. Theme surfaces, theme inks. */
.promo-box { display: grid; justify-items: center; min-width: 0; }
.promo-field { width: 100%; text-align: left; }
.promo-row { display: flex; gap: var(--sp-2); min-width: 0; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.promo-row input::placeholder { text-transform: none; letter-spacing: 0; }
.promo-row .btn { flex: none; }
/* the narrowest phones: the button under the field, so a long code stays readable */
@media (max-width: 380px) { .promo-row { flex-direction: column; } .promo-row .btn { width: 100%; } }
.promo-on { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--sp-3); width: 100%; margin: 0; padding: var(--sp-2) var(--sp-4); border-radius: var(--r); background: var(--green-bg); color: var(--green-ink); font-size: var(--fs-sm); font-weight: 600; overflow-wrap: anywhere; }
.promo-on .btn-link { min-height: 36px; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.promo-was { color: var(--text-2); font-size: .5em; font-weight: 600; text-decoration: line-through; }
/* the checkout pages have no JavaScript: „პრომო კოდი მაქვს“ is a <details> whose summary looks like the link */
.promo-details { width: 100%; }
.promo-details > summary { display: inline-flex; align-items: center; list-style: none; cursor: pointer; }
.promo-details > summary::-webkit-details-marker { display: none; }
.promo-details[open] > summary { display: none; }
.pay-promo { justify-items: stretch; text-align: left; }
.pay-promo > .promo-details:not([open]) { text-align: center; }

/* ---------- type picker ---------- */

.picker { max-width: 900px; margin: 0 auto; padding: var(--sp-8) var(--sp-4) 72px; display: grid; gap: var(--sp-7); }
.picker-head { display: grid; gap: var(--sp-3); }
.picker-sub { max-width: 34em; font-size: var(--fs-md); color: var(--text-2); }
.picker-nav { margin-top: var(--sp-2); }
a.picker-chip { display: inline-flex; align-items: center; text-decoration: none !important; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline); }
a.picker-chip:hover { background: var(--fill-2); }
.picker-group { display: grid; gap: var(--sp-3); scroll-margin-top: 76px; }
.picker-group h2 { font-size: var(--fs-md); }
.picker-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
/* phone tiles are wide and short: the emblem sits in the corner above the title, the tile grows with a long title */
.picker-row .mini-poster { aspect-ratio: auto; min-height: 112px; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-lg); }
.picker-row .mini-poster .emblem { position: static; translate: none; flex: none; width: 44px; height: 44px; }
/* a short tile has little of the poster's own dark foot under its title: the shade starts higher and the title has a soft shadow */
.picker-row .mini-poster::before { background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 20%, transparent) 0%, color-mix(in srgb, var(--tint) 62%, #000) 62%, color-mix(in srgb, var(--tint) 78%, #000) 100%); }
.picker-row .mini-poster-title { text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.picker-row .mini-poster-title { margin-top: auto; font-size: var(--fs-base); overflow-wrap: anywhere; } /* auto: a tile without an emblem keeps its title at the bottom */
@media (min-width: 760px) {
  .picker { padding-top: var(--sp-12); }
  .picker-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .picker-row .mini-poster { aspect-ratio: 3 / 4; min-height: 0; justify-content: flex-end; align-items: stretch; gap: 2px; padding: var(--sp-4); border-radius: var(--r-xl); }
  .picker-row .mini-poster .emblem { position: absolute; translate: -50% 0; width: 44%; height: auto; }
  .picker-row .mini-poster::before { background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--tint) 80%, #000) 100%); }
  .picker-row .mini-poster-title { font-size: var(--fs-md); }
}
/* wide screens: six cards a row; every group starts its own row, however few cards it has (same card size everywhere) */
@media (min-width: 1000px) {
  .picker { max-width: 1080px; }
  .picker-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .picker-row .mini-poster-title { font-size: var(--fs-base); }
}

/* ---------- generic pages ---------- */

.narrow { max-width: 680px; margin: 0 auto; padding: var(--sp-8) var(--sp-4) var(--sp-16); display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1fr); }
.wide { max-width: 1080px; margin: 0 auto; padding: var(--sp-8) var(--sp-5) var(--sp-16); display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 1fr); }
.flash { padding: var(--sp-3) var(--sp-4); border-radius: var(--r); background: var(--green-bg); color: var(--green-ink); font-weight: 600; }
.flash.is-error { background: var(--red-bg); color: var(--red-ink); }
.flash.is-warn { background: var(--orange-bg); color: var(--orange-ink); font-size: var(--fs-base); }
.empty { padding: var(--sp-10) var(--sp-5); border-radius: var(--r-lg); background: var(--surface); text-align: center; color: var(--text-2); display: grid; gap: var(--sp-4); justify-items: center; }
.status { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 3px var(--sp-3); border-radius: var(--r-pill); font-size: var(--fs-2xs); font-weight: 600; white-space: nowrap; background: var(--fill-2); color: var(--text-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.is-live { background: var(--green-bg); color: var(--green-ink); }
.status.is-draft { background: var(--orange-bg); color: var(--orange-ink); }
.status.is-off { background: var(--red-bg); color: var(--red-ink); }
.prose { line-height: 1.75; }
.prose h1 { margin-bottom: var(--sp-1); font-size: clamp(1.45rem, 6.2vw, 2.2rem); overflow-wrap: break-word; }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--sp-3); }
.prose ul { padding-left: var(--sp-5); margin: 0; }
.prose p { margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.table th, .table td { text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table td .btn { margin-block: -6px; }
.table th { font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.table form { margin: 0; }
.wide section > .table { display: block; overflow-x: auto; }
@media (max-width: 759px) { .wide section > .table :is(th, td) { white-space: nowrap; } }
@media (min-width: 760px) { .narrow, .wide { padding-top: var(--sp-12); } .wide section > .table { display: table; } }
.page-intro { display: grid; justify-items: center; gap: var(--sp-3); text-align: center; }
.page-intro p { max-width: 34em; font-size: var(--fs-lg); color: var(--text-2); }
.wide section > h2 { margin-bottom: var(--sp-3); }
.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; max-width: calc(100vw - 32px); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md); background: rgba(29, 29, 31, .92); color: #fff; font-weight: 500; font-size: var(--fs-base); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); }

/* auth & small pages */
.auth { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: var(--sp-6); padding: var(--sp-6) var(--sp-4); }
.auth-card { width: min(400px, calc(100vw - 32px)); padding: var(--sp-8) var(--sp-6) var(--sp-6); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: var(--sp-4); text-align: center; }
.auth-card h1 { font-size: var(--fs-2xl); }
.auth-card .field { text-align: left; }
.auth-card > p { color: var(--text-2); }

/* ---------- my events ---------- */

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3) var(--sp-4); flex-wrap: wrap; }
.page-head h1 { overflow-wrap: anywhere; }
.page-sub { margin-top: var(--sp-2); color: var(--text-2); font-size: var(--fs-base); }
.poster-row { display: grid; grid-auto-flow: column; grid-auto-columns: 156px; gap: var(--sp-4); overflow-x: auto; margin-inline: calc(-1 * var(--sp-4)); padding: var(--sp-1) var(--sp-4) var(--sp-6); scroll-padding-inline: var(--sp-4); scroll-snap-type: x mandatory; }
@media (min-width: 760px) { .poster-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-inline: 0; padding: var(--sp-1) 0 var(--sp-2); overflow: visible; } }
.poster-row .mini-poster { scroll-snap-align: start; }
.poster-row .status { position: absolute; top: 10px; left: 10px; }
.plan-box { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-4); border-radius: var(--r-lg); background: var(--surface); }
.plan-box.is-active { background: var(--green-bg); color: var(--green-ink); }
.plan-box form { margin: 0; }
.group-row.is-danger { color: var(--red-ink); font-weight: 500; }
.group-row-value { color: var(--text-2); overflow-wrap: anywhere; text-align: right; }
.receipts .table { margin: 0; border-radius: 0; }
.receipts summary .group-row-value { margin-left: auto; }
.receipts summary.group-row::after { content: "›"; color: var(--text-3); font-size: var(--fs-xl); line-height: 1; transition: transform var(--dur-2) var(--ease-out); }
.receipts .table { border-top: 1px solid var(--line-2); }
.table small { font-size: var(--fs-2xs); color: var(--text-2); }
.group-box:not(.group-pad) > * + * { border-top: 1px solid var(--line-2); }
.receipts[open] summary.group-row::after { transform: rotate(90deg); }
.list-rows { list-style: none; margin: 0; padding: 0; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.list-rows li + li { border-top: 1px solid var(--line-2); }
.list-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); color: var(--text); text-decoration: none !important; }
.list-row-thumb { width: 44px; height: 56px; flex: none; border-radius: var(--r-sm); }
.list-row-main { flex: 1; display: grid; min-width: 0; }
.list-row-title { font-weight: 600; overflow-wrap: anywhere; }
.list-row-meta { font-size: var(--fs-xs); color: var(--text-2); }
.receipts summary { cursor: pointer; list-style: none; }
.receipts summary::-webkit-details-marker { display: none; }

/* ---------- manage ---------- */

.manage-head { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--sp-3) var(--sp-4); align-items: start; }
.manage-head .status { margin-bottom: var(--sp-2); }
.manage-head .mini-poster { padding: var(--sp-2); border-radius: var(--r-lg); }
.manage-head .mini-poster .mini-poster-title { display: none; }
.manage-head h1 { font-size: var(--fs-2xl); line-height: 1.22; overflow-wrap: anywhere; }
.manage-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.manage-actions .btn { min-width: 0; padding: 0 var(--sp-3); white-space: normal; text-align: center; }
.share { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-4); border-radius: var(--r-lg); background: var(--surface); }
.share-link { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); border-radius: var(--r); background: var(--fill); }
.share-link code { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font); font-size: var(--fs-sm); color: var(--text-2); }
.share-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.share-app { display: grid; justify-items: center; gap: var(--sp-2); padding: var(--sp-2) 0; border: 0; background: none; color: var(--text); font-size: var(--fs-2xs); font-weight: 500; text-decoration: none !important; cursor: pointer; }
.share-app i { width: 54px; height: 54px; border-radius: var(--r-lg); display: grid; place-items: center; font-style: normal; color: #fff; font-size: var(--fs-xl); font-weight: 700; }
.share-app svg { width: 28px; height: 28px; }
@media (max-width: 359px) { .share-app { font-size: .75rem; } } /* four names side by side on the narrowest phones („Messenger“) */
.is-viber i { background: #7360f2; } .is-wa i { background: #25d366; } .is-fb i { background: linear-gradient(135deg, #0a7cff, #a033ff); } .is-more i { background: var(--fill-2); color: var(--text); }
/* a center's public page (/c/<slug>): the center's colour (--cc, chosen from colours that hold white text) leads */
.center-page { --cc: #c2185b; padding-bottom: var(--sp-12); }
.cp-hero { position: relative; }
.cp-banner { height: clamp(140px, 34vw, 300px); background: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 55%, #000)); overflow: hidden; }
.cp-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-id { position: relative; max-width: 760px; margin: 0 auto; padding: 0 var(--sp-4); display: grid; justify-items: center; gap: var(--sp-2); text-align: center; }
.cp-logo { width: 96px; height: 96px; margin-top: -48px; border-radius: var(--r-xl); object-fit: contain; background: #fff; box-shadow: 0 0 0 4px var(--bg), 0 10px 30px -12px rgba(0, 0, 0, .35); }
.cp-id h1 { margin-top: var(--sp-3); font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.2; overflow-wrap: anywhere; text-wrap: balance; }
.cp-label { color: var(--text-2); font-size: var(--fs-md); }
.cp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.cp-primary { background: var(--cc); color: #fff; }
.cp-primary:hover { background: color-mix(in srgb, var(--cc) 85%, #000); color: #fff; }
.cp-body { max-width: 760px; margin: 0 auto; padding: var(--sp-8) var(--sp-4) 0; display: grid; gap: var(--sp-8); }
.cp-section { display: grid; gap: var(--sp-3); }
.cp-section h2 { font-size: var(--fs-xl); }
.cp-text { color: var(--text); font-size: var(--fs-md); line-height: var(--lh-loose); text-wrap: pretty; white-space: pre-line; }
.cp-packages { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cp-package { display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-5); border-radius: var(--r-lg); background: var(--surface); border-top: 4px solid var(--cc); }
.cp-package-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); }
.cp-package h3 { font-size: var(--fs-lg); overflow-wrap: anywhere; }
.cp-price { flex: none; font-weight: 700; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.cp-photos { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cp-photos img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--r); }
.cp-contact { list-style: none; margin: 0; padding: 0; display: grid; border-radius: var(--r-lg); background: var(--surface); }
.cp-contact li { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); padding: var(--sp-3) var(--sp-4); }
.cp-contact li + li { border-top: 1px solid var(--line-2); }
.cp-k { flex: 0 0 110px; color: var(--text-2); font-size: var(--fs-sm); }
.cp-v { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.cp-book { padding: var(--sp-6) var(--sp-5); border-radius: var(--r-xl); background: var(--surface); }
.cp-form { display: grid; gap: var(--sp-4); }
.cp-form textarea { width: 100%; }
.cp-form .btn { justify-self: start; }
.cp-done { display: grid; gap: var(--sp-1); padding: var(--sp-4); border-radius: var(--r-md); background: var(--green-bg); color: var(--text); }
@media (max-width: 560px) { .cp-actions .btn { flex: 1 1 100%; } .cp-form .btn { justify-self: stretch; } }
/* the center profile (/my/center) */
.center-profile { display: grid; gap: var(--sp-6); }
.center-preview { position: relative; display: grid; justify-items: center; gap: var(--sp-3); padding: var(--sp-6) var(--sp-4); border-radius: var(--r-lg); overflow: hidden; }
.center-chip-demo { display: inline-flex; align-items: center; gap: var(--sp-2); max-width: 100%; padding: 4px var(--sp-4) 4px 4px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r-pill); background: rgba(0, 0, 0, .45); color: #fff; font-weight: 600; font-size: var(--fs-sm); }
.center-chip-demo:not(:has(img)) { padding-left: var(--sp-4); }
.center-chip-demo img { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: contain; background: #fff; }
.center-chip-demo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center-preview-note { padding: 2px var(--sp-3); border-radius: var(--r-pill); background: rgba(0, 0, 0, .45); color: #fff; font-size: var(--fs-xs); }
.center-logo-box { justify-items: start; }
.center-logo-big { width: 96px; height: 96px; border-radius: var(--r-lg); object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.center-logo-form { display: grid; gap: var(--sp-3); width: 100%; }
.center-slug { display: flex; align-items: center; min-width: 0; border-radius: var(--r-sm); background: var(--fill); }
.center-slug-base { flex: none; padding-left: var(--sp-4); color: var(--text-2); font-size: var(--fs-base); }
.center-slug input { flex: 1; min-width: 0; padding-left: 2px; background: transparent; }
.center-colors { border: 0; margin: 0; padding: 0; }
.center-swatches { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.center-swatch { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--sw); cursor: pointer; }
.center-swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.center-swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--sw); }
.center-swatch:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 5px; }
.center-packages { border: 0; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.center-package { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--sp-2); padding-bottom: var(--sp-2); }
.center-package + .center-package { padding-top: var(--sp-2); border-top: 1px solid var(--line-2); }
.center-package input:last-child { grid-column: 1 / -1; }
.center-media { gap: var(--sp-5); }
.center-banner-row { display: grid; gap: var(--sp-3); justify-items: start; }
.center-banner { width: 100%; max-width: 420px; height: auto; aspect-ratio: 8 / 3; object-fit: cover; border-radius: var(--r); }
.center-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--sp-2); }
.center-photos:empty { display: none; }
.center-photo { position: relative; margin: 0; }
.center-photo img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--r-sm); display: block; }
.center-photo-remove { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 1rem; cursor: pointer; }
.center-page-on small { display: block; color: var(--text-2); font-size: var(--fs-sm); font-weight: 400; }
.file-pick { position: relative; justify-self: start; overflow: hidden; cursor: pointer; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.file-pick.is-off { opacity: .55; cursor: not-allowed; }
.center-logo-form .btn { justify-self: start; }
/* the agency's client link (host page) */
.client-who { font-size: var(--fs-base); }
.client-sms { display: grid; gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--line-2); }
.client-sms-row { display: flex; gap: var(--sp-2); }
.client-sms-row input { width: 110px; flex: none; }
.client-who b { font-weight: 600; }
/* the agency's bookings (/my/bookings) */
.bookings { display: grid; gap: var(--sp-5); }
.bookings-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.bookings-search { display: flex; gap: var(--sp-2); }
.bookings-search .field { flex: 1; min-width: 0; }
.bookings-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bookings-tabs a { display: flex; align-items: center; justify-content: center; gap: var(--sp-1); min-height: 40px; padding: 0 var(--sp-2); border-radius: var(--r-sm); color: var(--text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bookings-tabs a b { color: inherit; font-weight: 400; font-variant-numeric: tabular-nums; } /* the label's own ink: the selected tab's light chip in dark mode */
.bookings-tabs a[aria-current="page"] { background: var(--seg-on); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.booking-list { list-style: none; margin: 0; padding: 0; display: grid; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.booking + .booking { border-top: 1px solid var(--line-2); }
.booking { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-4); }
.booking-main { display: grid; gap: 2px; min-width: 0; color: var(--text); text-decoration: none; }
.booking-main:hover .booking-title { text-decoration: underline; }
.booking-title { font-weight: 600; overflow-wrap: anywhere; }
.booking-meta, .booking-until { font-size: var(--fs-sm); color: var(--text-2); overflow-wrap: anywhere; }
.booking-side { display: grid; justify-items: end; gap: var(--sp-1); text-align: right; }
.booking-count { font-size: var(--fs-sm); color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.booking-copy { min-height: 32px; padding: 0; font-size: var(--fs-sm); }
@media (pointer: coarse) { .booking-copy { min-height: 40px; } }
.request-list { list-style: none; margin: 0; padding: 0; display: grid; border-radius: var(--r-lg); background: var(--surface); }
.request { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-3); padding: var(--sp-4); }
.request + .request { border-top: 1px solid var(--line-2); }
.request.is-done .request-main { opacity: .7; }
.request-name { font-weight: 600; overflow-wrap: anywhere; }
.request-name a { font-weight: 400; white-space: nowrap; }
.request-meta, .request-when { font-size: var(--fs-sm); color: var(--text-2); }
.request-note { font-size: var(--fs-sm); overflow-wrap: anywhere; }
.request-actions { display: grid; justify-items: end; align-content: start; gap: var(--sp-1); }
@media (max-width: 560px) { .request { grid-template-columns: minmax(0, 1fr); } .request-actions { justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; gap: var(--sp-3); } }
.made { display: grid; gap: var(--sp-3); padding: var(--sp-5); border-radius: var(--r-lg); background: var(--green-bg); }
.made h2 { font-size: var(--fs-lg); }
.made .fine { color: var(--text); }
.booking-new { display: grid; gap: var(--sp-5); }
.booking-form { display: grid; gap: var(--sp-6); }
.booking-form select { width: 100%; }
.back-link { justify-self: start; padding: 0; }
.client-fill { display: grid; gap: var(--sp-5); justify-items: start; }
.center-contact { gap: var(--sp-3); }
.center-contact-head { display: flex; align-items: center; gap: var(--sp-3); }
.center-contact-head img { flex: none; width: 48px; height: 48px; border-radius: var(--r); object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.center-contact-name { font-weight: 700; overflow-wrap: anywhere; }
.center-contact-line { color: var(--text-2); font-size: var(--fs-base); overflow-wrap: anywhere; }
.center-contact-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.client-note { margin-top: calc(-1 * var(--sp-2)); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--blue-bg); color: var(--text); font-size: var(--fs-sm); text-wrap: pretty; }
.client-note b { font-weight: 600; }
.client-box { gap: var(--sp-3); }
.client-what { color: var(--text-2); font-size: var(--fs-base); text-wrap: pretty; }
.client-until { font-size: var(--fs-sm); color: var(--text-2); }
.client-hint { font-size: var(--fs-sm); color: var(--text-2); }
.client-until b { color: var(--text); font-weight: 600; }
.client-send { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.client-send .btn { gap: var(--sp-2); padding-inline: var(--sp-3); }
.client-send .btn svg { flex: none; width: 18px; height: 18px; }
.client-send .is-viber svg { color: #7360f2; } .client-send .is-wa svg { color: #1faa53; }
.client-manage { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.share-print { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--fill); color: var(--text); text-decoration: none !important; transition: var(--tx-ui); }
.share-print:hover { background: var(--fill-2); }
.share-print i { flex: none; width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.share-print i svg { width: 24px; height: 24px; }
.share-print span { flex: 1; display: grid; gap: 1px; min-width: 0; }
.share-print b { font-weight: 600; }
.share-print small { font-size: var(--fs-xs); color: var(--text-2); }
.share-print::after { content: "›"; color: var(--text-3); font-size: var(--fs-xl); line-height: 1; }
/* SMS on the host page */
.sms-box { display: grid; }
.sms-locked { padding: var(--sp-4); font-size: var(--fs-base); color: var(--text-2); }
.sms-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-4) var(--sp-4) var(--sp-1); }
.sms-head b { font-size: var(--fs-2xl); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sms-head small { color: var(--text-2); font-size: var(--fs-xs); }
.sms-form { display: grid; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.sms-form textarea { min-height: 112px; font-variant-numeric: tabular-nums; }
/* „SMS მათ, ვინც გიპასუხა“: above the invitation form, which then gets a small heading of its own */
.sms-update { display: grid; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4) var(--sp-5); }
.sms-update-head { display: grid; gap: 2px; }
.sms-update-head h3 { margin: 0; font-size: var(--fs-base); font-weight: 700; }
.sms-update-head small { font-size: var(--fs-xs); color: var(--text-2); }
.sms-groups { width: 100%; grid-auto-columns: auto; }
.sms-groups b { margin-left: 2px; font-variant-numeric: tabular-nums; opacity: .7; }
.sms-sub { margin: 0; padding: var(--sp-4) var(--sp-4) 0; font-size: var(--fs-base); font-weight: 700; }
.sms-box > .sms-sub + .sms-form { border-top: 0; } /* the heading belongs to the form under it */
.answer-phone, .answer-when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.answer-phone::after { content: "·"; margin: 0 .4em; }
/* the narrowest phones: the four groups as two rows, so no label breaks */
@media (max-width: 400px) { .sms-groups { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } .sms-groups span { white-space: nowrap; } }
.answer-call { justify-self: start; font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.sms-hint { font-size: var(--fs-xs); font-weight: 400; color: var(--text-2); }
.sms-preview { padding: var(--sp-3) var(--sp-3); border-radius: var(--r); background: #dcf8c6; font-size: var(--fs-sm); color: #1f3a17; overflow-wrap: anywhere; }
.sms-preview q { quotes: none; }
.sms-send { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.sms-cost { font-size: var(--fs-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }
.sms-cost.is-over { color: var(--red-ink); font-weight: 600; }
.sms-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); padding: var(--sp-4); }
.sms-stats + .sms-remind { border-top: 0; }
.sms-stats span { display: grid; gap: 2px; padding: var(--sp-3) var(--sp-3); border-radius: var(--r); background: var(--fill); font-size: var(--fs-xs); color: var(--text-2); }
.sms-stats b { font-size: var(--fs-xl); color: var(--text); font-variant-numeric: tabular-nums; }
.sms-stats .is-yes b { color: var(--green-ink); }
.sms-remind { padding: 0 var(--sp-4) var(--sp-4); }
.sms-remind .btn { width: 100%; min-height: 52px; padding: var(--sp-2) var(--sp-5); display: grid; gap: 1px; white-space: normal; text-align: center; line-height: var(--lh-snug); border-radius: var(--r-lg); }
.sms-remind .btn small { font-weight: 500; font-size: var(--fs-xs); color: var(--text-2); }
.sms-box .sms-band { margin: 0; border-radius: 0; border-top: 1px solid var(--line-2); background: transparent; padding: var(--sp-4); }
/* SMS packs (pricing and host page) */
.sms-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-5) var(--sp-7); margin-top: var(--sp-4); padding: var(--sp-6) var(--sp-7); border-radius: var(--r-xl); background: var(--surface); }
.sms-band h3 { font-size: var(--fs-lg); }
.sms-band p { margin-top: var(--sp-1); color: var(--text-2); font-size: var(--fs-base); }
.sms-band small { display: block; margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-2); }
.sms-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.sms-packs form { margin: 0; display: grid; }
.sms-pack { display: grid; gap: 2px; min-width: 112px; padding: var(--sp-3) var(--sp-4); border: 0; border-radius: var(--r-lg); background: var(--fill); color: var(--text); text-align: center; cursor: pointer; transition: var(--tx-ui); }
.sms-pack:hover { background: var(--fill-2); }
.sms-pack:active { transform: scale(.97); transition-duration: var(--dur-press); }
.sms-pack b { font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; } /* „1 000 SMS“ on one line, like the others */
.sms-pack span { font-size: var(--fs-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .sms-band { grid-template-columns: minmax(0, 1fr); padding: var(--sp-5) var(--sp-6); } .sms-pack { min-width: 0; padding: var(--sp-3) var(--sp-2); } .sms-pack b { font-size: clamp(.8125rem, 3.9vw, 1rem); } }
@media (max-width: 360px) { .sms-pack { padding-inline: 4px; } .sms-pack b { font-size: .78rem; } }
.group-row .group-row-value { margin-left: auto; }
.card-thumb { margin: 0; display: grid; gap: var(--sp-2); }
.card-thumb img { width: 100%; border-radius: var(--r-md); height: auto; outline: 1px solid rgba(0, 0, 0, .08); outline-offset: -1px; }
.card-thumb figcaption { font-size: var(--fs-xs); color: var(--text-2); text-align: center; }

.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-3); }
.stats > .stat { grid-column: span 2; }
/* 4 tiles → 2 × 2; 5 tiles → the guest counts on top (2), the three answers below (3) */
.stats:has(> :nth-child(4):last-child) > .stat, .stats:has(> :nth-child(5)) > .stat:nth-child(-n+2) { grid-column: span 3; }
.stat { display: grid; align-content: start; gap: 2px; padding: var(--sp-4) var(--sp-4); border-radius: var(--r-lg); background: var(--surface); }
.stat-num { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: var(--fs-xs); color: var(--text-2); font-weight: 500; }
.stat.is-yes .stat-num { color: var(--green-ink); } .stat.is-maybe .stat-num { color: var(--orange-ink); } .stat.is-no .stat-num { color: var(--red-ink); }

.answers { display: grid; gap: var(--sp-3); }
.answers-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.answers-filter, .answer-edit .seg { width: 100%; grid-auto-columns: auto; } /* segments sized to their labels, so none has to wrap */
.answer-list { list-style: none; margin: 0; padding: 0; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.answer + .answer { border-top: 1px solid var(--line-2); }
.answer-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-4); cursor: pointer; list-style: none; }
.answer-row::-webkit-details-marker { display: none; }
div.answer-row { cursor: default; } /* read-only (the agency client's page after the deadline) */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: hsl(var(--h, 210) 60% 24%); background: hsl(var(--h, 210) 75% 89%); }
.answer-main { display: grid; min-width: 0; }
.answer-name { font-weight: 600; overflow-wrap: anywhere; }
.answer-meta { font-size: var(--fs-xs); color: var(--text-2); overflow-wrap: anywhere; }
.answer-side { display: grid; justify-items: end; gap: 2px; }
.answer-count { font-size: var(--fs-xs); color: var(--text-2); white-space: nowrap; }
.answer-edit { display: grid; gap: var(--sp-3); padding: var(--sp-1) var(--sp-4) var(--sp-4) 64px; }
.row-actions { display: flex; gap: var(--sp-2); }
.answer.is-hidden { display: none; }

.settings summary { list-style: none; cursor: pointer; }
.settings summary::-webkit-details-marker { display: none; }
.settings summary::after { content: "›"; color: var(--text-3); font-size: var(--fs-xl); line-height: 1; transition: transform var(--dur-2) var(--ease-out); }
.settings[open] summary::after { transform: rotate(90deg); }
.settings + .settings { border-top: 1px solid var(--line-2); }
.settings-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-1) var(--sp-4) var(--sp-4); }
.settings-body form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin: 0; }
.group-box > form { margin: 0; }
.group-box > form + .settings, .group-box > form + form, .group-box > a + form, .group-box > form + a { border-top: 1px solid var(--line-2); }

/* ---------- home ---------- */

.home-hero { position: relative; overflow: hidden; padding: 168px var(--sp-5) 0; background: #000; color: #fff; text-align: center; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, rgba(124, 92, 255, .35), transparent 70%), radial-gradient(40% 40% at 85% 40%, rgba(255, 79, 139, .22), transparent 70%), radial-gradient(40% 40% at 10% 60%, rgba(255, 179, 71, .18), transparent 70%); pointer-events: none; }
.home-hero-in { position: relative; max-width: 1120px; margin: 0 auto; display: grid; justify-items: center; gap: var(--sp-5); }
.home-hero h1 { font-size: clamp(1.15rem, calc((100vw - 48px) / 14.2), 4.75rem); line-height: 1.16; letter-spacing: -.03em; }
.home-hero h1 .l1 { display: block; }
.home-hero h1 .l2 { white-space: nowrap; }
.home-hero h1 .l2 { display: block; padding: .1em .06em .16em; margin: -.1em -.06em -.16em; background: linear-gradient(90deg, #ffb347, #ff4f8b 45%, #7c5cff); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.home-lead { max-width: 32em; margin-top: var(--sp-1); font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.55; color: rgba(255, 255, 255, .74); }
.home-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-2); }
.home-cta a.link-light { display: inline-flex; align-items: center; min-height: 40px; color: #2997ff; font-weight: 600; }
.phones { position: relative; height: clamp(380px, 62vw, 600px); max-width: 1000px; margin: clamp(56px, 8vh, 88px) auto 0; }
.phone { position: absolute; bottom: -26px; left: 50%; width: clamp(180px, 30vw, 290px); aspect-ratio: 9 / 19; padding: var(--sp-2); border-radius: calc(var(--r-2xl) + var(--sp-2)); background: #1c1c1e; box-shadow: 0 0 0 1px #3a3a3c, 0 40px 80px -30px rgba(0, 0, 0, .8); }
.phone .screen { position: relative; height: 100%; border-radius: var(--r-2xl); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--sp-5) var(--sp-4) var(--sp-6); color: #fff; text-align: center; isolation: isolate; }
.phone .screen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--tint) 85%, #000)); }
.phone .screen-num { position: absolute; top: 16%; left: 0; right: 0; font-size: clamp(4rem, 9vw, 7rem); font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.phone .screen-mono { position: absolute; top: 15%; left: 50%; transform: translateX(-50%); width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); display: grid; place-items: center; font: 600 clamp(1.4rem, 3vw, 2.3rem) var(--serif); }
.phone .screen-kicker { font-size: clamp(.55rem, 1.1vw, .72rem); opacity: .8; }
.phone .screen-title { font-size: clamp(1.1rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; margin: 2px 0 var(--sp-1); }
.phone .screen-title.is-serif { font-family: var(--serif); font-weight: 600; }
.phone .screen-meta { font-size: clamp(.55rem, 1.1vw, .72rem); opacity: .9; }
.phone .screen-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-1); margin-top: var(--sp-3); }
.phone .screen-btns span { display: grid; justify-items: center; gap: 3px; padding: var(--sp-2) 0 var(--sp-2); border-radius: var(--r-sm); background: rgba(255, 255, 255, .18); font-size: clamp(.45rem, .9vw, .6rem); font-weight: 600; }
.phone .screen-btns i { width: 14px; height: 14px; border-radius: 50%; }
.phone.is-left { transform: translateX(-122%) rotate(-7deg); bottom: -64px; }
.phone.is-mid { transform: translateX(-50%); z-index: 2; }
.phone.is-right { transform: translateX(22%) rotate(7deg); bottom: -64px; }
.float-icon { position: absolute; z-index: 3; width: clamp(44px, 6vw, 64px); height: clamp(44px, 6vw, 64px); border-radius: 30%; display: grid; place-items: center; color: #fff; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6); animation: bob 6s ease-in-out infinite; }
.float-icon svg { width: 55%; height: 55%; }
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: phone-in .9s cubic-bezier(.2, .8, .2, 1) both; }
  .phone.is-mid { animation-delay: .05s; } .phone.is-left { animation-delay: .18s; } .phone.is-right { animation-delay: .28s; }
  .home-hero-in > * { animation: hero-in .7s cubic-bezier(.2, .8, .2, 1) both; }
  .home-hero-in > :nth-child(2) { animation-delay: .06s; } .home-hero-in > :nth-child(3) { animation-delay: .12s; } .home-hero-in > :nth-child(n+4) { animation-delay: .18s; }
}
@keyframes phone-in { from { translate: 0 80px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes hero-in { from { translate: 0 14px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
.float-icon.f1 { left: 8%; top: 18%; background: #7360f2; }
.float-icon.f2 { right: 9%; top: 10%; background: #25d366; animation-delay: -2s; }
.float-icon.f3 { left: 14%; top: 62%; background: #fff; color: #ff3b30; animation-delay: -4s; }
.float-icon.f4 { right: 13%; top: 56%; background: #34c759; animation-delay: -1s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-icon { animation: none; } }
@media (max-width: 600px) { .phone.is-left { transform: translateX(-108%) rotate(-7deg); } .phone.is-right { transform: translateX(8%) rotate(7deg); } .float-icon.f3, .float-icon.f4 { display: none; } }

.home-section { max-width: 1080px; margin: 0 auto; padding: 104px var(--sp-5) 0; scroll-margin-top: 40px; }
.home-section > h2 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: var(--track-tight); text-align: center; line-height: 1.2; }
.home-section > .section-sub { max-width: 34em; margin: var(--sp-4) auto 0; text-align: center; font-size: var(--fs-lg); color: var(--text-2); }
.features { display: grid; gap: var(--sp-4); margin-top: var(--sp-10); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) {
  .features > .feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: center; column-gap: var(--sp-8); }
  .features > .feature > :not(.feature-visual) { grid-column: 1; }
  .features .feature-visual { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}
@media (min-width: 900px) and (max-width: 1000px) { .feature { padding: var(--sp-5); } .price-card { padding: var(--sp-6) var(--sp-5) var(--sp-5); } }
.feature { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-7); border-radius: var(--r-xl); background: var(--surface); }
.feature-num { align-self: flex-start; width: 30px; height: 30px; margin-bottom: var(--sp-1); border-radius: 50%; display: grid; place-items: center; background: var(--fill); font-size: var(--fs-sm); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.feature h3 { font-size: var(--fs-xl); letter-spacing: -.015em; }
.feature p { color: var(--text-2); margin-bottom: var(--sp-2); }
.feature-visual { margin-top: auto; height: 190px; border-radius: var(--r-lg); background: var(--fill); display: grid; place-items: center; overflow: hidden; position: relative; }
.fv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); width: min(86%, 240px); }
.fv-tiles span { aspect-ratio: 3 / 4; border-radius: var(--r-sm); }
.fv-tiles span.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--blue); }
.fv-chat { width: 78%; padding: var(--sp-1); border-radius: calc(var(--r-sm) + var(--sp-1)); /* one radius, concentric with the picture inside (10px + 4px padding) */ background: #dcf8c6; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.fv-chat-img { height: 92px; border-radius: var(--r-sm); display: grid; place-items: end center; padding: var(--sp-2); color: #fff; font-weight: 700; font-size: var(--fs-base); position: relative; overflow: hidden; isolation: isolate; }
.fv-chat-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--tint) 85%, #000)); }
.fv-mono { width: 58px; height: 58px; margin-bottom: var(--sp-1); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); display: grid; place-items: center; font: 600 1.05rem var(--serif); }
/* a monogram stays on one line and grows with its circle (a wide letter like „ლ“ wrapped on narrow phone cards) */
:is(.mini-poster-mono, .phone .screen-mono, .fv-mono) { white-space: nowrap; }
/* the circle is 46% of the card: the letters take a share of the card's width (its own container) */
@supports (font-size: 1cqi) { :is(.mini-poster, .phone .screen):has(> .mini-poster-mono, > .screen-mono) { container-type: inline-size; } .mini-poster-mono, .phone .screen-mono { font-size: 12.5cqi; } }
.fv-mono { font-size: .9rem; }
.fv-chat-img { place-items: center !important; }
.fv-chat p { padding: var(--sp-1) var(--sp-2) 2px; font-size: var(--fs-xs); font-weight: 700; }
.feature .fv-chat p { margin: 0; color: #1d1d1f; }
.fv-chat small { display: block; padding: 0 var(--sp-2) 3px; font-size: var(--fs-2xs); color: #3a662d; }
.fv-stats { width: min(84%, 260px); padding: var(--sp-2) var(--sp-3) var(--sp-3); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.fv-stats-row { display: grid; }
.fv-stats-row span { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: var(--sp-3); padding: 5px var(--sp-1); font-size: var(--fs-xs); color: var(--text-2); }
.fv-stats-row span + span { border-top: 1px solid var(--line-2); }
.fv-stats b { font-size: var(--fs-lg); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.fv-stats .y b { color: var(--green-ink); } .fv-stats .m b { color: var(--orange-ink); } .fv-stats .n b { color: var(--red-ink); }
.fv-bar { display: flex; gap: 2px; height: 6px; margin: var(--sp-2) var(--sp-1) 0; border-radius: var(--r-pill); overflow: hidden; }
.fv-bar .y { background: var(--yes); } .fv-bar .m { background: var(--maybe); } .fv-bar .n { background: var(--no); }
.fv-split { display: block; margin-top: var(--sp-2); text-align: center; font-size: var(--fs-2xs); color: var(--text-2); }

.styles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: var(--sp-4); margin-top: var(--sp-10); overflow-x: auto; padding: var(--sp-1) var(--sp-1) var(--sp-4); scroll-snap-type: x mandatory; }
.styles .mini-poster { scroll-snap-align: start; }
@media (max-width: 899px) { .styles { grid-auto-columns: 156px; margin-inline: calc(-1 * var(--sp-5)); padding-inline: var(--sp-5); scroll-padding-inline: var(--sp-5); } }
@media (min-width: 900px) { .styles { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; } }
/* the occasions under the samples: groups in balanced columns, each occasion a row with its line emblem on a tile in
   the group's colour (only the tile is tinted: the text stays ink) */
.occasions { margin-top: var(--sp-11); padding: var(--sp-6) var(--sp-5); border-radius: var(--r-xl); background: var(--surface); columns: 3 250px; column-gap: var(--sp-6); }
.occ-group { --occ: #8e8e93; break-inside: avoid; padding: var(--sp-2) 0 var(--sp-4); }
.occ-kids { --occ: #ff8a00; } .occ-birthday { --occ: #ff375f; } .occ-love { --occ: #a855f7; }
.occ-gathering { --occ: #c2410c; } .occ-work { --occ: #0a84ff; }
.occasions h3 { margin: 0 0 var(--sp-1); padding: 0 var(--sp-2); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.occasions ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.occasions a { display: flex; align-items: center; gap: var(--sp-3); min-height: 48px; padding: 6px var(--sp-2); border-radius: var(--r-md); color: var(--text); font-size: var(--fs-base); line-height: 1.3; }
.occasions a:hover { background: var(--fill); color: var(--text); text-decoration: none; }
.occ-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--occ) 13%, var(--surface)); color: color-mix(in srgb, var(--occ) 82%, var(--text)); }
.occ-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.occ-ico svg .fill, .occ-ico svg .warm { fill: currentColor; stroke: none; }
.occ-label { flex: 1; min-width: 0; text-wrap: pretty; }
.occ-go { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--text-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; translate: -4px 0; transition: opacity var(--dur-hover) var(--ease-soft), translate var(--dur-hover) var(--ease-soft); }
.occasions a:hover .occ-go, .occasions a:focus-visible .occ-go { opacity: 1; translate: 0 0; }
@media (pointer: coarse) { .occ-go { opacity: .6; translate: 0 0; } }
/* phones: the first two groups, then „ყველა ტიპის ნახვა“ opens the rest (the links stay in the page either way) */
.occ-more { display: none; position: relative; align-items: center; justify-content: center; min-height: 44px; margin-top: var(--sp-2); border-radius: var(--r-pill); background: var(--fill); color: var(--text); font-size: var(--fs-base); font-weight: 600; cursor: pointer; break-inside: avoid; }
.occ-more input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.occ-more:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
@supports selector(:has(*)) {
  @media (max-width: 760px) {
    .occasions:not(:has(.occ-more input:checked)) .occ-group:nth-of-type(n+3) { display: none; }
    .occasions:not(:has(.occ-more input:checked)) .occ-more { display: flex; }
  }
}

.prices { display: grid; gap: var(--sp-4); margin-top: var(--sp-10); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); } .price-card .price + p { min-height: 2lh; } }
@media (min-width: 600px) and (max-width: 899px) { .prices { max-width: 520px; margin-inline: auto; } }
.price-card { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-7) var(--sp-6) var(--sp-6); border-radius: var(--r-xl); background: var(--surface); }
.price-card.is-dark { background: #000; color: #fff; }
.price-card :is(h2, h3) { font-size: var(--fs-lg); }
.price-card .price { margin: var(--sp-2) 0 2px; font-size: 2.6rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; color: inherit; font-variant-numeric: tabular-nums; }
.price-card p:not(.price) { color: var(--text-2); font-size: var(--fs-base); }
.price-card.is-dark p:not(.price) { color: rgba(255, 255, 255, .65); }
.price-card ul { flex: 1; margin: var(--sp-2) 0 var(--sp-4); padding: 0; list-style: none; display: grid; gap: var(--sp-2); font-size: var(--fs-base); }
.price-card li { display: flex; gap: var(--sp-3); }
.price-card li::before { content: "✓"; color: var(--green); font-weight: 700; }
.price-card form, .price-card .btn { width: 100%; margin: 0; }
.price-card form .btn { width: 100%; }
/* the home page on a phone: plans without their lists, and one link to /pricing for the lists, SMS packs and help */
.price-more { display: none; align-items: center; justify-content: center; min-height: 44px; margin-top: var(--sp-3); font-size: var(--fs-base); font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; } /* full ink: it sits on the section's coloured glow */
@media (max-width: 760px) {
  .prices.is-compact .price-card { padding: var(--sp-5); }
  .prices.is-compact .price-card ul { display: none; }
  .prices.is-compact .price-card .price { margin-bottom: 0; }
  .prices.is-compact .price-card p:not(.price) { margin-bottom: var(--sp-3); }
  .price-rest.is-compact { display: none; }
  .price-more { display: flex; }
}
.price-note { max-width: 46em; margin: var(--sp-5) auto 0; text-align: center; font-size: var(--fs-sm); color: var(--text-2); }

.faq { max-width: 760px; margin: var(--sp-9) auto 0; border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: var(--fs-xl); font-weight: 400; color: var(--text-3); transition: transform var(--dur-2) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 var(--sp-6) var(--sp-5); color: var(--text-2); }

.cta-band { position: relative; overflow: hidden; width: calc(100% - 2 * var(--sp-5)); max-width: 1040px; margin: 104px auto 0; padding: var(--sp-16) var(--sp-6); border-radius: var(--r-2xl); background: #000; color: #fff; text-align: center; display: grid; justify-items: center; gap: var(--sp-4); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 50% 120%, rgba(255, 79, 139, .45), transparent 70%), radial-gradient(40% 60% at 10% 0%, rgba(124, 92, 255, .35), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: -.03em; }
.cta-band p { color: rgba(255, 255, 255, .7); }
.cta-band + * { margin-top: 0; }
main:has(> .cta-band) { padding-bottom: 104px; }

/* ---------- try it: guest answers on the left, host list on the right ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--sp-5); margin-top: var(--sp-11); align-items: stretch; }
.demo-invite { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 460px; border-radius: var(--r-xl); color: #fff; }
.demo-invite::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--tint) 75%, #000)); }
.demo-invite .art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 72%; fill: rgba(255, 255, 255, .45); }
.demo-invite .art .line { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 3; stroke-linecap: round; }
.demo-invite-in { width: 100%; display: grid; justify-items: center; gap: var(--sp-1); padding: var(--sp-7) var(--sp-6) var(--sp-6); text-align: center; }
.demo-num { font-size: 8rem; font-weight: 700; line-height: .85; letter-spacing: -.07em; margin-bottom: var(--sp-3); }
.demo-kicker { font-size: var(--fs-sm); color: rgba(255, 255, 255, .8); }
.demo-title { font-size: 2.1rem; font-weight: 700; line-height: 1.17; letter-spacing: -.02em; }
.demo-meta { font-size: var(--fs-base); font-weight: 600; }
.demo-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); width: 100%; margin-top: var(--sp-5); }
.demo-btns button { display: grid; justify-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-1) var(--sp-3); border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r-lg); background: rgba(255, 255, 255, .16); color: #fff; font: 600 .8rem/1.2 var(--font); cursor: pointer; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: var(--tx-ui); }
.demo-btns button:hover { background: rgba(255, 255, 255, .24); }
.demo-btns button:active { transform: scale(.96); transition-duration: var(--dur-press); }
.demo-btns button[aria-pressed="true"] { background: #fff; color: #1d1d1f; } /* white in both themes: the ink must not follow the theme */
:is(.demo-btns, .v-rsvp) i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
:is(.demo-btns, .v-rsvp) i svg { width: 15px; height: 15px; }
.dot-yes { background: #30c75e; } .dot-no { background: #ff453a; } .dot-maybe { background: #ff9f0a; }
.demo-host { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6); border-radius: var(--r-xl); background: var(--surface); }
.demo-host-title { font-weight: 700; font-size: var(--fs-md); }
.demo-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.demo-stats span { display: grid; gap: 2px; padding: var(--sp-3); border-radius: var(--r-md); background: var(--fill); font-size: var(--fs-2xs); color: var(--text-2); }
.demo-stats b { font-size: 1.7rem; line-height: 1.1; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.demo-stats .is-yes b { color: var(--green-ink); } .demo-stats .is-maybe b { color: var(--orange-ink); } .demo-stats .is-no b { color: var(--red-ink); }
.demo-stats b.bump { animation: bump .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes bump { 40% { transform: scale(1.25); } }
.demo-list { list-style: none; margin: 0; padding: 0; display: grid; }
.demo-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; }
.demo-list li + li { border-top: 1px solid var(--line-2); }
.demo-list .avatar { width: 38px; height: 38px; font-size: var(--fs-base); }
.demo-list .avatar.is-you { background: var(--primary); color: var(--on-primary); }
.demo-who { display: grid; align-content: center; min-width: 0; min-height: calc((var(--fs-base) + var(--fs-xs)) * var(--lh-base)); } /* every row two lines tall: answering never changes the list's height */
.demo-who b { font-weight: 600; font-size: var(--fs-base); }
.demo-who small { font-size: var(--fs-xs); color: var(--text-2); }
.demo-list .status { transition: var(--tx-ui); }
.demo-note { margin-top: var(--sp-4); text-align: center; font-size: var(--fs-xs); color: var(--text-2); }
@media (max-width: 860px) { .demo { grid-template-columns: minmax(0, 1fr); } .demo-invite { min-height: 420px; } }
@media (max-width: 420px) { .demo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .demo-host { padding: var(--sp-5); } }

/* ---------- features grid ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-11); }
.tile { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) var(--sp-6); border-radius: var(--r-xl); background: var(--surface); }
.tile h3 { margin-top: var(--sp-3); padding: 0 var(--sp-3); font-size: var(--fs-lg); letter-spacing: var(--track-snug); }
.tile p { padding: 0 var(--sp-3); color: var(--text-2); font-size: var(--fs-base); }
.tile-visual { height: 168px; border-radius: var(--r-lg); background: var(--fill); display: grid; place-items: center; overflow: hidden; position: relative; }
.v-rsvp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); width: 90%; padding: var(--sp-4) var(--sp-3); border-radius: var(--r-lg); }
.v-rsvp span { display: grid; justify-items: center; gap: var(--sp-1); padding: var(--sp-3) 2px var(--sp-2); border-radius: var(--r-md); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: .62rem; font-weight: 600; line-height: 1.2; text-align: center; text-wrap: balance; }
.v-counts { display: grid; gap: var(--sp-2); width: 84%; }
.v-counts span { display: grid; grid-template-columns: 1fr 30px 26px 30px; align-items: center; gap: var(--sp-1); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); border-radius: var(--r-md); background: var(--surface); }
.v-counts b { font-size: var(--fs-sm); font-weight: 600; }
.v-counts i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); font-style: normal; font-weight: 500; }
.v-counts em { text-align: center; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.v-map { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3) var(--sp-3); align-items: center; width: 84%; padding: var(--sp-4); border-radius: var(--r-lg); background: var(--surface); }
.v-date { width: 46px; border-radius: var(--r-sm); overflow: hidden; text-align: center; background: #fff; color: #1d1d1f; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.v-date i { display: block; background: #d70015; color: #fff; font: 700 .6rem/1.6 var(--font); font-style: normal; }
.v-date b { display: block; font-size: var(--fs-xl); line-height: var(--lh-snug); }
.v-place { display: grid; min-width: 0; } .v-place b { font-size: var(--fs-sm); } .v-place small { font-size: var(--fs-2xs); color: var(--text-2); }
.v-pill { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-pill); background: var(--fill); font-size: var(--fs-xs); font-weight: 600; }
.v-pill svg { width: 15px; height: 15px; }
.v-guests { display: grid; justify-items: center; gap: var(--sp-3); }
.v-guests p { font-weight: 700; font-size: var(--fs-base); }
.v-guests span { display: flex; padding-left: var(--sp-2); }
.v-guests i { width: 36px; height: 36px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: var(--fs-sm); color: hsl(var(--h) 60% 24%); background: hsl(var(--h) 75% 89%); border: 2px solid var(--fill); }
.v-guests i.is-more { background: var(--primary); color: var(--on-primary); font-size: var(--fs-2xs); }
.v-print { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); }
.v-card { position: relative; width: 84px; aspect-ratio: 148 / 210; border-radius: var(--r-xs); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .35); display: grid; justify-items: center; align-content: space-between; padding: var(--sp-3) var(--sp-2) var(--sp-2); color: #fff; }
.v-card b { font: 600 .82rem var(--serif); }
.v-qr { width: 30px; height: 30px; padding: 2px; border-radius: var(--r-xs); background: #fff; }
.v-qr svg { width: 100%; height: 100%; display: block; }
.v-card.is-back { background: #fff; transform: rotate(6deg); align-content: start; gap: var(--sp-2); padding: var(--sp-4) var(--sp-3); }
.v-card.is-back i { display: block; width: 100%; height: 4px; border-radius: 2px; background: #e8e8ed; }
.v-card.is-back i:first-child { width: 70%; height: 6px; background: #d2d2d7; }
.v-change { width: 84%; display: grid; }
.v-notice { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: #ffc400; color: #2b2100; font-size: var(--fs-xs); line-height: 1.35; text-align: center; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .4); }
.privacy-line { display: flex; align-items: flex-start; justify-content: center; gap: var(--sp-3); max-width: 46em; margin: var(--sp-7) auto 0; font-size: var(--fs-base); color: var(--text-2); text-align: left; }
.privacy-line svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--text); }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } .tile-visual { height: 150px; } }
@media (max-width: 560px) {
  .cta-band { margin: 72px var(--sp-5) 0; padding: var(--sp-13) var(--sp-5); border-radius: var(--r-xl); }
  .home-hero { padding-top: 124px; }
  .home-hero h1 .l1 { font-size: 1.6em; line-height: 1.12; }
  .home-section { padding-top: 80px; }
  main:has(> .cta-band) { padding-bottom: 80px; }
  .phones { margin-top: clamp(44px, 6.5vh, 60px); }
  .feature { padding: var(--sp-6); }
  .occasions { padding: var(--sp-4) var(--sp-3); }
}

/* ---------- confirm dialog (replaces the browser's confirm()) ---------- */

.btn-red { background: #e0261b; color: #fff; } /* white on --red is 3.5:1; this is 4.7:1 */
.btn-red:hover { background: #c4271a; }
.ask { width: min(372px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 32px 80px -24px rgba(0, 0, 0, .45); overflow: auto; }
.ask::backdrop { background: rgba(20, 20, 24, .34); -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2); }
.ask-card { display: grid; gap: var(--sp-2); padding: var(--sp-7) var(--sp-6) var(--sp-5); text-align: center; }
.ask-title { font-size: var(--fs-lg); font-weight: 700; line-height: 1.35; letter-spacing: var(--track-snug); }
.ask-text { color: var(--text-2); font-size: var(--fs-base); line-height: 1.55; text-wrap: balance; }
.ask-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-4); }
.ask-actions .btn { min-height: 48px; padding: var(--sp-2) var(--sp-4); white-space: normal; }
@media (prefers-reduced-motion: no-preference) {
  .ask[open] { animation: ask-in .28s cubic-bezier(.2, .9, .3, 1.12); }
  .ask[open]::backdrop { animation: ask-fade .2s ease-out; }
}
@keyframes ask-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes ask-fade { from { opacity: 0; } }

/* ---------- drafts: delete, trash ---------- */

.poster-item { position: relative; display: grid; scroll-snap-align: start; }
.poster-del { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.poster-del button { position: relative; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .34); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: var(--tx-ui); }
.poster-del button::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; } /* 44px hit area */
.poster-del button:hover { background: rgba(0, 0, 0, .55); }
.poster-del button:active { transform: scale(.92); transition-duration: var(--dur-press); }
.poster-del svg { width: 17px; height: 17px; }
.flash-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); flex-wrap: wrap; }
.flash-row form { margin: 0; flex: none; }
.flash-row > span { flex: 1 1 240px; }
.flash-btn { min-height: 34px; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--green-ink); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; }
.flash-btn:hover { background: var(--fill); }

.trash-entry-label { display: inline-flex; align-items: center; gap: var(--sp-3); }
.trash-entry-label svg { width: 19px; height: 19px; color: var(--text-2); }
.trash-entry .group-row::after { content: "›"; margin-left: -6px; color: var(--text-3); font-size: var(--fs-xl); line-height: 1; }
.back-link { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: var(--sp-2); color: var(--blue); font-weight: 500; }
.trash-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3) var(--sp-3); padding: var(--sp-3) var(--sp-4); }
.trash-row .list-row-main { flex: 1 1 180px; }
.trash-actions { display: flex; gap: var(--sp-2); margin-left: auto; }
.trash-actions form { margin: 0; }

/* ---------- editor: mourning portrait ---------- */

.portrait-edit { display: grid; gap: var(--sp-2); margin-top: var(--sp-1); }
.portrait-edit.is-busy { opacity: .55; pointer-events: none; }
.portrait-add { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 64px; border: 1.5px dashed var(--line); border-radius: var(--r); background: var(--fill); color: var(--text); font-weight: 600; cursor: pointer; transition: var(--tx-ui); }
.portrait-add:hover { background: var(--fill-2); border-color: var(--text-3); }
.portrait-add span { font-size: var(--fs-xl); line-height: 1; color: var(--text-2); }
.portrait-tools { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.portrait-crop { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); background: #2a2a2a; cursor: grab; touch-action: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.portrait-crop.is-dragging { cursor: grabbing; }
.portrait-crop img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: var(--px, 50%) var(--py, 35%); transform: scale(var(--pz, 1)); transform-origin: var(--px, 50%) var(--py, 35%); pointer-events: none; user-select: none; }
.portrait-controls { display: grid; gap: var(--sp-3); }
.portrait-controls .range { display: grid; gap: var(--sp-1); font-size: var(--fs-sm); color: var(--text-2); }
.portrait-controls input[type="range"] { width: 100%; accent-color: var(--text); }
.portrait-hint { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.45; }
.portrait-actions { display: flex; gap: var(--sp-4); }
.portrait-actions .btn-link { min-height: 32px; padding: 0; font-size: var(--fs-sm); }
.btn-link.is-danger { color: var(--red-ink); }

/* ---------- touch screens: comfortable targets without making desktop bulky ---------- */
@media (pointer: coarse) {
  .btn-sm { min-height: 40px; }
  .seg span, .seg-sm span { min-height: 40px; }
  .chip { min-height: 40px; }
  .row-input, .group-row .row-input, .dt.is-compact { min-height: 42px; }
  .foot-col ul { gap: 0; }
  .foot-col a { display: inline-block; padding: 9px 0; }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- phone menu (≤ 560px): ☰ in the bar, a full sheet of links below it ---------- */
.menu { display: none; }
@media (max-width: 560px) {
  .menu { display: block; }
  .topnav > a:not(.btn) { display: none; } /* the account link lives in the menu on phones */
  .topbar-in { gap: var(--sp-2); }
  .topbar-in > .topnav { margin-left: auto; } /* „შექმნა“ and ☰ together on the right */
}
.menu-btn { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 50%; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: var(--tx-ui); }
.menu-btn::-webkit-details-marker { display: none; }
.menu-btn:active { background: var(--hover); transition-duration: var(--dur-press); }
.is-dark .menu-btn { color: #fff; transition: var(--tx-ui); }
.menu-icon { position: relative; width: 20px; height: 12px; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, top .25s ease; }
.menu-icon::before { top: 0; }
.menu-icon::after { top: 10px; }
.menu[open] .menu-icon::before { top: 5px; transform: rotate(45deg); }
.menu[open] .menu-icon::after { top: 5px; transform: rotate(-45deg); }
/* the bar's glass would trap a position:fixed sheet, so the sheet hangs under the bar and fills the rest of the screen */
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - 100%); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: var(--sp-4); padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--hairline); }
.menu-list { list-style: none; margin: 0; padding: 0; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
/* the panel scrolls; its lists and button keep their full height (a short screen used to squeeze them and hide the
   last links — „ადმინისტრირება“, „გასვლა“) */
.menu-panel > * { flex-shrink: 0; }
.menu-list li + li { border-top: 1px solid var(--line-2); }
.menu-list a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 56px; padding: 0 var(--sp-5); color: var(--text); font-size: var(--fs-lg); font-weight: 600; text-decoration: none !important; }
.menu-list a:active { background: var(--fill); transition-duration: var(--dur-press); }
.menu-list a span { color: var(--text-3); font-size: var(--fs-xl); font-weight: 400; line-height: 1; }
.menu-me { display: flex; align-items: center; gap: var(--sp-3); min-height: 68px; padding: 0 var(--sp-5); }
.menu-me b { font-size: var(--fs-lg); font-weight: 600; }
.menu-list a.menu-login { justify-content: flex-start; min-height: 68px; }
.menu-login > :last-child { margin-left: auto; } /* only the › goes right (the avatar is aria-hidden too) */
/* the account's pages in titled groups (#lib/account.ts), each link with its icon */
.menu-group { display: grid; gap: 6px; }
.menu-group-title { margin: 0; padding: 0 var(--sp-5); color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; }
.menu-list .menu-ico { width: 22px; height: 22px; }
.menu-label { margin-right: auto; font-weight: inherit; }
.menu-list a[aria-current='page'] { background: var(--fill); }
.menu-out { margin: 0; }
.menu-out button { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 56px; padding: 0 var(--sp-5); border: 0; background: none; color: var(--red-ink); font: inherit; font-size: var(--fs-lg); font-weight: 600; text-align: left; cursor: pointer; }
.menu-out button:active { background: var(--fill); transition-duration: var(--dur-press); }
.menu-cta { width: 100%; margin-top: var(--sp-1); }
html:has(.menu[open]) { overflow: hidden; } /* the page behind stays put */
.topbar:has(.menu[open]) { background: var(--bg); border-bottom-color: var(--hairline); -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar.is-dark:has(.menu[open]) .brand, .topbar.is-dark:has(.menu[open]) .menu-btn { color: var(--text); }
.topbar.is-dark:has(.menu[open]) .btn-light { background: var(--primary); color: var(--on-primary); }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-panel { animation: menu-in .22s ease-out; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- dark mode: site pages follow the phone's setting. Guest invitations and the printed card keep their
   own looks (they don't load this file's dark values: guest pages skip app.css, print is screen-only here). ---------- */
:root { color-scheme: light; }
@media screen and (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #000; --surface: #1c1c1e; --stage: #0c0c0d;
    --text: #f5f5f7; --text-2: #aeaeb2; --text-3: #8e8e93; --label: #e5e5ea; --placeholder: #98989d;
    --line: #3a3a3c; --line-2: #2c2c2e; --hairline: rgba(255, 255, 255, .09);
    --fill: #2c2c2e; --fill-2: #3a3a3c; --fill-3: #48484a; --hover: rgba(255, 255, 255, .07);
    --track: #2c2c2e; --seg-on: #636366; --switch-off: #39393d; --grabber: #48484a;
    --bar: rgba(22, 22, 24, .78); --stage-bar: rgba(14, 14, 16, .82); --dock: rgba(44, 44, 46, .88);
    --primary: #f5f5f7; --on-primary: #1d1d1f; --primary-hover: #e5e5ea; --primary-tint: rgba(0, 0, 0, .08);
    --primary-top: #fff; --primary-gloss: rgba(255, 255, 255, .7);
    --card: #202023;
    --card-gloss: rgba(255, 255, 255, .07); --card-edge: rgba(255, 255, 255, .08);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 12px 32px -16px rgba(0, 0, 0, .85);
    --wash: linear-gradient(150deg, rgba(255, 179, 71, .10) 0%, rgba(255, 79, 139, .10) 52%, rgba(124, 92, 255, .13) 100%);
    --wash-strong: linear-gradient(150deg, rgba(255, 179, 71, .26) 0%, rgba(255, 79, 139, .26) 52%, rgba(124, 92, 255, .30) 100%);
    --blue: #2997ff; --focus: #2997ff;
    --green-ink: #30d158; --green-bg: rgba(48, 209, 88, .16);
    --red-ink: #ff6961; --red-bg: rgba(255, 69, 58, .18);
    --orange-ink: #ffb340; --orange-bg: rgba(255, 159, 10, .16);
    --blue-bg: rgba(10, 132, 255, .18);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .08), 0 32px 80px -24px rgba(0, 0, 0, .85);
  }
  /* black panels on a black page: lift them with a soft edge */
  .price-card.is-dark { background: linear-gradient(180deg, #2c2c2e, #1c1c1e); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16); }
  .cta-band { background: #0f0f11; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
  .toast { background: rgba(58, 58, 60, .96); }
  .ask::backdrop, .dlg::backdrop { background: rgba(0, 0, 0, .6); }
  .card-thumb img, .mini-poster { outline-color: rgba(255, 255, 255, .08); }
}

/* ---------- motion: busy buttons, toasts in and out, dialogs and sheets fade out on close ---------- */
.btn[aria-busy="true"], button[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn[aria-busy="true"]::after { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.toast { animation: toast-in var(--dur-2) var(--ease-out); }
.toast.is-leaving { opacity: 0; translate: 0 8px; transition: opacity var(--dur-1) ease, translate var(--dur-1) ease; }
@keyframes toast-in { from { opacity: 0; translate: 0 12px; } }
/* closing: supported browsers fade the dialog out instead of cutting it (others simply close) */
.ask, .dlg { transition: opacity var(--dur-1) ease, transform var(--dur-1) ease, overlay var(--dur-1) allow-discrete, display var(--dur-1) allow-discrete; }
.ask:not([open]) { opacity: 0; transform: translateY(6px) scale(.98); }
.dlg:not([open]) { opacity: 0; transform: translateY(16px); }
.ask::backdrop, .dlg::backdrop { transition: opacity var(--dur-1) ease, overlay var(--dur-1) allow-discrete, display var(--dur-1) allow-discrete; }
.ask:not([open])::backdrop, .dlg:not([open])::backdrop { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  /* nothing slides, grows, rotates or bumps: every change of state is instant (hover, press, sheets, menus, counters) */
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  /* … except the busy spinner, which only says "working", slowly */
  .btn[aria-busy="true"]::after { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
  .toast, .ask, .dlg, .ask::backdrop, .dlg::backdrop { animation: none; transition: none; }
}

/* keyboard: a skip link that appears on Tab; the jump target itself shows no ring */
/* „ზემოთ“ (static/js/site.js): glass like the top bar; fades and rises in, fades out, below the bar and its ☰ sheet */
.to-top { position: fixed; z-index: 30; right: max(16px, calc(env(safe-area-inset-right) + 12px)); bottom: calc(20px + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--dock); color: var(--text); -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px); box-shadow: inset 0 1px 0 var(--card-gloss), 0 0 0 1px var(--card-edge), 0 10px 28px -12px rgba(0, 0, 0, .38); cursor: pointer; -webkit-tap-highlight-color: transparent; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9); transition: var(--tx-ui), visibility 0s linear var(--dur-hover); }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: var(--tx-ui), visibility 0s; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .to-top.is-shown:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--card-gloss), 0 0 0 1px var(--card-edge), 0 14px 32px -12px rgba(0, 0, 0, .45); } }
.to-top.is-shown:active { transform: scale(.93); transition-duration: var(--dur-press); }
/* out of the way while the phone menu is open */
body:has(details.menu[open]) .to-top { opacity: 0; visibility: hidden; }
@media print { .to-top { display: none; } }
/* where the footer reaches the screen's right edge, its last line ends above the button instead of under it */
@media (max-width: 1220px) { .foot-bottom { padding-bottom: calc(var(--sp-9) + 56px); } }
.skip-link { position: absolute; left: var(--sp-3); top: -64px; z-index: 100; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary); font-weight: 600; transition: top var(--dur-1) ease; }
.skip-link:focus { top: var(--sp-3); text-decoration: none; }
main:focus { outline: none; }
/* keyboard focus inside the editor's live preview: ring the preview itself */
#preview:focus { outline: 3px solid var(--focus); outline-offset: -3px; }

/* ---------- occasion landing pages (views/occasions.js) ---------- */
.occ-in { max-width: 1080px; margin: 0 auto; padding: var(--sp-6) var(--sp-5) 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-2); }
.crumbs a { color: var(--text-2); display: inline-flex; align-items: center; min-height: 32px; }
.occ-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-10); align-items: center; padding: var(--sp-6) 0 0; }
.occ-cta .btn, .occ .cta-band .btn { max-width: 100%; white-space: normal; text-align: center; text-wrap: balance; }
@media (min-width: 860px) { .occ-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--sp-12); padding-top: var(--sp-10); } }
.occ-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.15; letter-spacing: var(--track-tight); }
.occ-lead { margin-top: var(--sp-4); max-width: 34em; font-size: var(--fs-lg); line-height: var(--lh-base); color: var(--text-2); text-wrap: pretty; }
.occ-keys { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: var(--sp-2); max-width: 36em; }
.occ-keys li { position: relative; padding-left: 28px; font-size: var(--fs-md); line-height: var(--lh-base); text-wrap: pretty; }
.occ-keys li::before { content: "✓"; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--green-bg); color: var(--green-ink); font-size: 12px; font-weight: 700; line-height: 1; }
/* phones and tablets (one column): the buttons right after the lead, the list below them, so „შექმენი“ is on the first screen */
@media (max-width: 859px) { .occ-hero-text { display: flex; flex-direction: column; } .occ-keys { order: 1; } }
.occ-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-7); }
.occ-demo { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.occ-note { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--text-2); }
.occ-visual { display: grid; place-items: center; }
.phone.is-solo { position: relative; left: auto; bottom: auto; transform: none; width: min(270px, 70vw); }
.phone.is-solo .screen-num { font-size: clamp(4rem, 18vw, 6.4rem); }
.phone.is-solo .screen-kicker, .phone.is-solo .screen-meta { font-size: .72rem; }
.phone.is-solo .screen-title { font-size: clamp(1.25rem, 5vw, 1.6rem); }
.phone.is-solo .screen-btns span { font-size: .6rem; }
.occ-section { padding-top: 88px; }
.occ-section > h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); line-height: 1.2; letter-spacing: var(--track-tight); text-align: center; }
.occ-points { list-style: none; max-width: 760px; margin: var(--sp-8) auto 0; padding: 0; display: grid; gap: var(--sp-3); }
.occ-points li { display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border-radius: var(--r-xl); background: var(--surface); font-size: var(--fs-md); line-height: var(--lh-base); text-wrap: pretty; }
.occ-points li::before { content: "✓"; flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--green-bg); color: var(--green-ink); font-size: var(--fs-sm); font-weight: 700; line-height: 1; }
.occ-steps { list-style: none; margin: var(--sp-8) 0 0; padding: 0; display: grid; gap: var(--sp-4); }
@media (min-width: 760px) { .occ-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.occ-steps li { display: grid; align-content: start; gap: var(--sp-3); padding: var(--sp-7); border-radius: var(--r-xl); background: var(--surface); }
.occ-steps h3 { font-size: var(--fs-xl); letter-spacing: -.015em; }
.occ-steps p { color: var(--text-2); }
.occ-links { list-style: none; max-width: 900px; margin: var(--sp-8) auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.occ-links a { display: inline-flex; align-items: center; min-height: 40px; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-size: var(--fs-sm); text-decoration: none; transition: var(--tx-ui); }
.occ-links a:hover { background: var(--fill); text-decoration: none; }
main.occ:not(:has(> .cta-band)) { padding-bottom: 104px; }
/* the sample chat card, sample texts and sending advice (lib/occasion-guides.ts) */
.occ-sub { max-width: 34em; margin: var(--sp-4) auto 0; text-align: center; font-size: var(--fs-md); line-height: var(--lh-base); color: var(--text-2); text-wrap: pretty; }
.occ-card { display: block; width: 100%; max-width: 760px; height: auto; margin: var(--sp-8) auto 0; border-radius: var(--r-xl); outline: 1px solid var(--hairline); outline-offset: -1px; box-shadow: var(--shadow); }
.occ-texts { list-style: none; max-width: 760px; margin: var(--sp-8) auto 0; padding: 0; display: grid; gap: var(--sp-3); }
.occ-texts li { padding: var(--sp-6) var(--sp-7); border-radius: var(--r-xl); background: var(--surface); font-size: var(--fs-md); line-height: var(--lh-base); text-wrap: pretty; }
.occ-texts-more { margin-top: var(--sp-5); text-align: center; }
.occ-texts-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.occ-tips { list-style: none; max-width: 900px; margin: var(--sp-8) auto 0; padding: 0; display: grid; gap: var(--sp-3); }
@media (min-width: 760px) { .occ-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.occ-tips li { padding: var(--sp-6); border-radius: var(--r-xl); background: var(--surface); font-size: var(--fs-md); line-height: var(--lh-base); text-wrap: pretty; }
/* /mosatsvevis-nimushebi: what an invitation says, then every occasion's sample */
.samples-head { padding-top: var(--sp-6); }
@media (min-width: 860px) { .samples-head { padding-top: var(--sp-10); } }
.samples-head h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.15; letter-spacing: var(--track-tight); text-wrap: balance; }
.must { max-width: 900px; margin: var(--sp-8) auto 0; display: grid; gap: var(--sp-3); }
@media (min-width: 760px) { .must { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.must > div { padding: var(--sp-5) var(--sp-6); border-radius: var(--r-xl); background: var(--surface); }
.must dt { font-size: var(--fs-md); font-weight: 700; }
.must dd { margin: var(--sp-1) 0 0; color: var(--text-2); line-height: var(--lh-base); text-wrap: pretty; }
.sample-grid { list-style: none; margin: var(--sp-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--sp-8) var(--sp-6); }
.sample img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); outline: 1px solid var(--hairline); outline-offset: -1px; }
.sample h3 { margin-top: var(--sp-4); font-size: var(--fs-lg); letter-spacing: -.01em; }
.sample h3 a { color: var(--text); }
.sample p { margin-top: var(--sp-2); color: var(--text-2); line-height: var(--lh-base); text-wrap: pretty; }

/* the narrowest phones: one footer column, so „კონფიდენციალურობა“ fits on its line */
@media (max-width: 370px) { .foot-cols { grid-template-columns: minmax(0, 1fr); } }

/* small phones (≤360px): last, so it wins over the component rules above */
@media (max-width: 360px) {
  .ed-top { gap: var(--sp-2); padding-inline: var(--sp-3); }
  .ed-top-title { font-size: var(--fs-sm); }
  .ed-top-title { min-width: 0; }
  .ed-top .btn { padding-inline: var(--sp-3); font-size: var(--fs-sm); }
  .ed-dock button { white-space: normal; }
  .demo-btns button { padding-inline: 2px; font-size: var(--fs-xs); }
  .share-apps { gap: 0; }
}

/* toasts: as wide as their text (no one-word lines); on the desktop editor they sit under the settings column */
.toast { width: max-content; max-width: min(440px, calc(100vw - 32px)); text-align: center; text-wrap: balance; }
@media (min-width: 980px) { .editor-body .toast { left: calc(clamp(440px, 36vw, 620px) / 2); bottom: 28px; } }

/* privacy / terms / refunds: room to breathe on desktop, even line lengths */
@media (min-width: 760px) { .prose.group-pad { padding: var(--sp-8) var(--sp-10); } }
.prose p, .prose li { max-width: 68ch; }

/* dark mode: status pills on poster cards keep their light look (they sit on coloured designs); SMS preview bubble dark;
   on the price cards only the featured plan keeps the bright button */
@media screen and (prefers-color-scheme: dark) {
  .mini-poster .status { --green-bg: #e6f6ea; --green-ink: #1f7a3a; --orange-bg: #fff4dc; --orange-ink: #9a5b00; --red-bg: #ffebe9; --red-ink: #c4271a; --fill-2: #e8e8ed; --text-2: #636368; }
  .sms-preview { background: #1f3319; color: #d3ecc5; }
  .price-card:not(.is-dark) .btn-dark { background: var(--fill-2); color: var(--text); }
}

@media (max-width: 359px) { .ed-dock button { font-size: .7rem; } } /* the narrowest phones: five labels side by side need the smaller size */ /* tab-bar size labels, so „დრო, ადგილი“ stays on one line */
/* phones: five equal slots are narrower than „დრო, ადგილი“, so each slot takes its label's width, evenly spaced */
@media (max-width: 420px) { .ed-dock { display: flex; justify-content: space-evenly; } .ed-dock button { flex: 0 1 auto; min-width: 48px; padding-inline: 4px; } }
/* phone editor: a toast appears at the top, never on top of the form in the open sheet */
@media (max-width: 979px) { .editor-body .toast { top: calc(12px + env(safe-area-inset-top)); bottom: auto; } }
/* desktop dialogs are centred cards: no drag handle, a little more room on top */
@media (min-width: 560px) { .dlg .grabber { display: none; } .dlg-body { padding-top: var(--sp-6); } }

/* ---------- card look (approved 2026-11-08): one surface for every card — soft white with a faint top light, a hairline
   edge and a quiet shadow (Apple-like); warm brand tints in picture panels and chips; polished buttons; the featured plan
   in glossy black with a soft glow. Posters keep their own designs. ---------- */
:is(.feature, .tile, .price-card:not(.is-dark), .faq, .occasions, .demo-host, .auth-card, .group-box, .list-rows, .answer-list, .stat, .share, .empty, .plan-box, .menu-list, .occ-points li, .occ-steps li) {
  background: var(--card);
  box-shadow: inset 0 1px 0 var(--card-gloss), 0 0 0 1px var(--card-edge), var(--card-shadow);
}
:is(.feature-visual, .tile-visual) { background: var(--wash); }
.feature-num { background: var(--wash-strong); color: var(--text); }
/* counters read at a glance: each on a tint of its own colour */
.stat.is-yes, .demo-stats .is-yes { background: var(--green-bg); }
.stat.is-maybe, .demo-stats .is-maybe { background: var(--orange-bg); }
.stat.is-no, .demo-stats .is-no { background: var(--red-bg); }
/* buttons: a soft top light, like a polished key */
/* three shadows in hover and rest alike (gloss, a tint layer that is clear at rest, drop): the hover fades */
.btn-dark { background: linear-gradient(180deg, var(--primary-top) 0%, var(--primary) 100%); box-shadow: inset 0 1px 0 var(--primary-gloss), inset 0 0 0 999px transparent, 0 8px 20px -12px rgba(0, 0, 0, .55); }
.btn-dark:hover { box-shadow: inset 0 1px 0 var(--primary-gloss), inset 0 0 0 999px var(--primary-tint), 0 10px 22px -12px rgba(0, 0, 0, .6); }
.btn-light { background: linear-gradient(180deg, #fff 0%, #f2f2f5 100%); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .05), inset 0 0 0 999px transparent, 0 8px 20px -12px rgba(0, 0, 0, .45); }
.btn-light:hover { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .05), inset 0 0 0 999px rgba(0, 0, 0, .05), 0 10px 22px -12px rgba(0, 0, 0, .5); }
/* the featured plan: polished black with a soft violet-to-pink glow from above */
.price-card.is-dark {
  background: radial-gradient(120% 70% at 50% -12%, rgba(124, 92, 255, .38), transparent 62%), radial-gradient(70% 45% at 100% 0%, rgba(255, 79, 139, .24), transparent 62%), linear-gradient(180deg, #1d1d20 0%, #050506 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(255, 255, 255, .06), 0 28px 56px -28px rgba(40, 16, 90, .55);
}
/* questions: a quiet row highlight and a round +/× */
.faq summary { transition: var(--tx-ui); }
@media (hover: hover) { .faq summary:hover { background: var(--hover); } }
.faq summary::after { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); font-size: var(--fs-lg); line-height: 1; color: var(--text-2); }
/* a faint warm glow behind the "try it" demo and the plans: the section's own background (a layer on top would hide
   the text's real background from contrast checks) */
#try, #pricing { --glow: .16; background: radial-gradient(42% 50% at 15% 60%, rgba(255, 179, 71, var(--glow)), transparent 70%), radial-gradient(42% 50% at 85% 50%, rgba(124, 92, 255, calc(var(--glow) * .9)), transparent 70%); }
@media screen and (prefers-color-scheme: dark) {
  .price-card.is-dark { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px rgba(255, 255, 255, .14), 0 28px 56px -28px rgba(0, 0, 0, .9); }
  .btn-dark { box-shadow: inset 0 1px 0 var(--primary-gloss), 0 8px 20px -12px rgba(0, 0, 0, .8); }
  #try, #pricing { --glow: .11; }
}
.price-card:not(.is-dark) li::before { color: var(--green-ink); } /* --green ✓ on white is 2.2:1 */
.ed-screen iframe { color-scheme: light; } /* the invitation preview never takes the editor's dark scheme */
@media screen and (prefers-color-scheme: dark) {
  .mini-poster { outline: 1px solid rgba(255, 255, 255, .08); outline-offset: -1px; }
  :is(.avatar, .v-guests i:not(.is-more)) { color: hsl(var(--h, 210) 85% 84%); background: hsl(var(--h, 210) 35% 26%); }
}
/* answer buttons (demo, feature tile, phone mockups): the same two-line label slot in all three, so „ვერ მოვდივარ“ may
   wrap on a narrow phone and the row still lines up (icons on one line, labels centred in the slot) */
.v-rsvp span { grid-template-rows: auto 2.4em; align-items: center; line-height: 1.2; text-wrap: balance; text-align: center; }
@media (max-width: 480px) { .demo-btns button { grid-template-rows: auto 2.4em; align-items: center; line-height: 1.2; text-wrap: balance; text-align: center; } }
@media (max-width: 767px) { .phone .screen-btns span { grid-template-rows: auto 2.4em; align-items: center; line-height: 1.2; text-wrap: balance; text-align: center; } }
/* touch screens: links in the occasions list are a full finger tall */
@media (pointer: coarse) { .crumbs a { min-height: 44px; } }
/* the demo's glass answer buttons sit on a light poster: a soft shadow under the white label (gone once picked) */
.demo-btns button:not([aria-pressed="true"]) { text-shadow: 0 1px 2px rgba(0, 0, 0, .28); }
.field-hint { display: block; margin-top: 6px; font-size: var(--fs-xs); font-weight: 400; color: var(--text-2); }
.settings-body.is-flush { padding: 0; }

/* ---------- admin (owner only): sidebar + overview ---------- */
/* one width for every admin page, so the menu and the page never move when you switch sections: 1400px, what the
   customers and invitations tables need (~1090px beside the menu); narrower screens scroll a table in its own card */
.wide.admin { max-width: 1400px; }
/* the scrollbar's space is always kept: a short page (no scrollbar) doesn't shift sideways next to a long one */
html:has(.wide.admin) { scrollbar-gutter: stable; }
.admin-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
/* minmax(0, 1fr): a wide table below must scroll in its own box, never stretch the page past the screen */
.admin-main { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--sp-6); min-width: 0; }
.admin-main > .table { display: block; overflow-x: auto; }
.admin-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: var(--sp-3); min-height: 40px; padding: 0 var(--sp-3); border-radius: var(--r-sm); color: var(--text); font-size: var(--fs-base); font-weight: 500; text-decoration: none !important; transition: var(--tx-ui); }
.admin-nav a:hover { background: var(--hover); }
.admin-nav a[aria-current="page"] { background: var(--card); font-weight: 600; box-shadow: 0 0 0 1px var(--card-edge), var(--card-shadow); }
.admin-nav svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-nav-title { margin: 0 0 var(--sp-2) var(--sp-3); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
@media (min-width: 900px) {
  /* 212px: the longest label („ფასები და პაკეტები“) stays on one line */
  .admin-shell { grid-template-columns: 212px minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
  .admin-nav { position: sticky; top: 88px; }
}
@media (max-width: 899px) {
  .admin-nav-title { display: none; }
  .admin-nav ul { grid-auto-flow: column; justify-content: start; overflow-x: auto; padding-bottom: 2px; }
  /* 12px sides; the row of tabs scrolls sideways (/js/admin.js brings the current one into view) */
  .admin-nav a { min-height: 40px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--fill); white-space: nowrap; }
  .admin-nav a[aria-current="page"] { background: var(--text); color: var(--bg); box-shadow: none; }
}
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-5); }
.admin-head h1 { font-size: clamp(1.75rem, 4vw, 2.2rem); }
.period-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--fill); }
.period-tabs a { display: grid; place-items: center; min-height: 34px; padding: 0 var(--sp-4); border-radius: var(--r-xs); color: var(--text); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.period-tabs a[aria-current] { background: var(--seg-on); font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
@media (max-width: 560px) { .period-tabs { display: flex; width: 100%; } .period-tabs a { flex: 1; min-height: 40px; padding: 0 var(--sp-2); } }
.admin-note { font-size: var(--fs-sm); color: var(--text-2); }
.admin-empty { padding: var(--sp-8) var(--sp-6); border-radius: var(--r-lg); background: var(--card); color: var(--text-2); text-align: center; }
.nowrap { white-space: nowrap; }

/* what needs attention: red = act now, orange = look soon, grey = for information */
.attention { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
.wide .attention > h2 { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.attention ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.att { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r); font-size: var(--fs-base); font-weight: 500; line-height: 1.45; }
.att::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: currentColor; }
.att.is-red { background: var(--red-bg); color: var(--red-ink); }
.att.is-orange { background: var(--orange-bg); color: var(--orange-ink); }
.att.is-info { background: var(--fill); color: var(--text-2); }
.att a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.att-ok { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r); background: var(--green-bg); color: var(--green-ink); font-weight: 600; }
.att-ok::before { content: "✓"; }

/* the numbers */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: var(--sp-3); }
.kpi { display: grid; align-content: start; gap: 4px; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 1px 0 var(--card-gloss), 0 0 0 1px var(--card-edge), var(--card-shadow); }
.kpi-label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.kpi-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-height: 22px; font-size: var(--fs-xs); }
.kpi-delta { padding: 2px 8px; border-radius: var(--r-pill); font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi-delta.is-good { background: var(--green-bg); color: var(--green-ink); }
.kpi-delta.is-bad { background: var(--red-bg); color: var(--red-ink); }
.kpi-delta.is-same { background: var(--fill); color: var(--text-2); }
.kpi-sub { color: var(--text-2); }
/* phones: two cards a row, slightly smaller figures */
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); } .kpi { padding: var(--sp-3) var(--sp-4); } .kpi-value { font-size: 1.3rem; } }

/* cards: revenue, funnel, types, VAT */
.admin-card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 1px 0 var(--card-gloss), 0 0 0 1px var(--card-edge), var(--card-shadow); }
.wide .admin-card h2 { margin: 0; font-size: var(--fs-lg); }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2) var(--sp-4); }
.card-total { font-size: var(--fs-lg); font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--sp-5); }
@media (max-width: 560px) { .admin-card { padding: var(--sp-4) var(--sp-4); } }
/* the logo's colours: invitations violet, plans pink, SMS orange */
.legend .is-event, .bar-stack .is-event { --c: #7c5cff; }
.legend .is-plan, .bar-stack .is-plan { --c: #ff4f8b; }
.legend .is-sms, .bar-stack .is-sms { --c: #ffb347; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.legend b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; height: 210px; }
.bars:has(> :nth-child(46)) { gap: 1px; }
.bar { display: grid; grid-template-rows: minmax(0, 1fr) 20px; min-width: 0; }
.bar-stack { display: flex; flex-direction: column-reverse; min-height: 0; border-bottom: 1px solid var(--line-2); }
.bar-stack i { display: block; flex: none; height: var(--h); min-height: 2px; background: var(--c); }
.bar-stack i:last-child { border-radius: 4px 4px 0 0; }
.bar-label { padding-top: 5px; font-size: 11px; line-height: 1; color: var(--text-2); text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label n" "bar bar"; gap: 6px var(--sp-3); align-items: baseline; }
.hbar-label { grid-area: label; font-size: var(--fs-sm); }
.hbars b { grid-area: n; font-variant-numeric: tabular-nums; }
.hbars .hbar { grid-area: bar; }
.hbar, .meter { height: 8px; border-radius: var(--r-pill); background: var(--fill); overflow: hidden; }
.hbar i, .meter i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb347, #ff4f8b 55%, #7c5cff); }
.meter { height: 10px; }
.meter.is-warn i { background: #ff9f0a; }

/* ---------- admin settings pages (prices, payments, SMS, email) and the payment events log ---------- */
/* the sidebar's settings group; on phones its title hides and its tabs continue the one scrolling row */
.admin-nav-group > .admin-nav-title { margin-top: var(--sp-5); }
@media (max-width: 899px) { .admin-nav-group > ul { overflow: visible; padding-bottom: 0; } }
.set-last { margin-top: calc(-1 * var(--sp-3)); }
.set-fresh > span, .set-fresh-inline > span { font-weight: 600; }
/* an action's answer page opens at its card (?/test#sms-test …): clear of the sticky top bar */
.admin-card[id], .admin-card h2[id], .set-sub-form[id] { scroll-margin-top: 88px; }
.set-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); margin: 0; }
.set-sub-form { gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--line-2); }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--sp-4); align-items: start; }
.set-grid.is-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
/* pairs that belong together (a bank and its account number): two per row, one under the other on phones */
.set-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .set-grid.is-2 { grid-template-columns: minmax(0, 1fr); } }
.set-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); min-width: 0; margin: 0; padding: 0; border: 0; }
.wide .admin-card .set-sub { margin: 0; padding: 0; font-size: var(--fs-base); font-weight: 700; color: var(--text); }
/* a legend is outside its fieldset's grid, so the gap doesn't space it */
.wide .admin-card legend.set-sub { margin-bottom: var(--sp-3); }
.set-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.set-inline { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-3); margin: 0; }
.set-inline > .field { flex: 1 1 220px; max-width: 360px; }
/* the button lines up with the input (below its label), not with the label */
.set-inline > .btn { margin-top: calc(var(--fs-sm) * 1.5 + var(--sp-2)); min-height: 46px; }
/* phones: the field takes the row, the button goes under it (no label to line up with) */
@media (max-width: 480px) { .set-inline > .field { flex-basis: 100%; max-width: none; } .set-inline > .btn { margin-top: 0; } }
/* label + where the value comes from, on one line (wraps on narrow screens) */
.set-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--sp-2); min-width: 0; }
.set-label .field-label { overflow-wrap: anywhere; }
.src { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: var(--r-pill); background: var(--fill-2); color: var(--text-2); font-size: var(--fs-2xs); font-weight: 600; line-height: 1; white-space: nowrap; }
.src.is-admin { background: var(--blue-bg); color: var(--blue); }
/* dark: the theme blue on its own see-through blue tint is 4.3:1 (3.8:1 inside a switch row); a lighter blue reads */
@media (prefers-color-scheme: dark) { .src.is-admin { color: #70b8ff; } }
.secret-state { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: var(--r-pill); background: var(--orange-bg); color: var(--orange-ink); font-size: var(--fs-2xs); font-weight: 600; white-space: nowrap; }
.secret-state.is-set { background: var(--green-bg); color: var(--green-ink); }
.set-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--sp-2); min-width: 0; font-size: var(--fs-xs); line-height: 1.4; color: var(--text-2); }
.set-meta > small { font-size: var(--fs-xs); }
.set-hint { margin-top: 0; }
/* a small checkbox inside a .field (not the full-width text input look) */
.set-check { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 32px; font-size: var(--fs-sm); color: var(--text); cursor: pointer; }
.field .set-check input, .set-check input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; border-radius: 4px; background: none; box-shadow: none !important; accent-color: var(--text); }
/* the keyboard ring `.field input:focus` (outline: none) and the box-shadow reset above would both hide (0,3,1 beats 0,2,1) */
.field .set-check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.set-checks { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.set-seg { justify-self: start; max-width: 100%; }
@media (min-width: 561px) { .set-seg span { padding-inline: var(--sp-4); } }
/* three choices don't fit a narrow phone side by side („გამორთული“ is one long word): one under another */
@media (max-width: 420px) { .set-seg:has(> :nth-child(3)) { grid-auto-flow: row; justify-self: stretch; } }
.field .set-seg input { width: auto; min-height: 0; }
/* an on/off setting: text left, switch right */
.set-switches { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
.set-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 52px; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--fill); font-size: var(--fs-base); }
.set-switch-text { display: grid; gap: 2px; min-width: 0; }
.set-switch-text > .set-label > span:first-child { font-weight: 600; }
.set-switch small:not(.src) { font-size: var(--fs-xs); color: var(--text-2); line-height: 1.35; }
/* the SMS packs: one row each (size, price, on sale), the new pack's row last */
.pack-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
.pack-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(170px, auto); align-items: start; gap: var(--sp-3); min-width: 0; margin: 0; padding: var(--sp-3) var(--sp-4) var(--sp-4); border: 1px solid var(--line-2); border-radius: var(--r); }
.pack-row.is-off { background: var(--fill); }
.pack-row.is-new { border-style: dashed; border-color: var(--line); }
.pack-row .set-switch { min-height: 46px; padding-block: var(--sp-2); }
/* level with the inputs (under their one-line labels), whatever error shows under a field */
@media (min-width: 561px) { .pack-row .set-switch { margin-top: calc(var(--fs-sm) * 1.5 + var(--sp-2)); } }
.pack-name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding: 0; font-size: var(--fs-base); font-weight: 700; }
@media (max-width: 560px) { .pack-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pack-row .set-switch { grid-column: 1 / -1; } }
/* tables that may be wider than a phone scroll in their own box */
.table-scroll { min-width: 0; overflow-x: auto; border-radius: var(--r-lg); }
/* a scroll box is a tab stop (arrow keys scroll it): its ring sits inside, the card would clip one outside */
.table-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.table-scroll > .table { min-width: 100%; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table th.num { text-align: right; }
.table-scroll .table :is(th, td) { white-space: nowrap; }
.table-scroll .table td:last-child, .pay-events td:last-child { white-space: normal; min-width: 160px; }
.admin-card .table { background: transparent; border-radius: 0; }
.admin-card .table-scroll { border-radius: 0; }
.admin-card .table tbody tr:last-child td { border-bottom: 0; }
.admin-card .table :is(th, td):first-child { padding-left: 0; }
.admin-card .table :is(th, td):last-child { padding-right: 0; }
.econ tr.is-low td { color: var(--red-ink); }
.econ tr.is-low td:first-child { box-shadow: inset 3px 0 0 var(--red); padding-left: var(--sp-3); }
.econ tr.is-low small { color: var(--red-ink); font-weight: 600; }
.econ tr.is-hidden td { color: var(--text-2); }
.break { overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-xs); overflow-wrap: anywhere; }
/* the result of a test button */
.test-result { display: grid; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r); font-size: var(--fs-base); line-height: 1.45; }
.test-result.is-ok { background: var(--green-bg); color: var(--green-ink); }
.test-result.is-bad { background: var(--red-bg); color: var(--red-ink); }
.test-result p { margin: 0; }
.test-body { margin: 0; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-xs); background: var(--surface); color: var(--text); font: var(--fs-xs) / 1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.flash.is-info { background: var(--blue-bg); color: var(--text); font-weight: 400; font-size: var(--fs-base); }
.flash.is-info b { font-variant-numeric: tabular-nums; }
.flash a:not(.btn) { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.kpi-delta.is-warn { background: var(--orange-bg); color: var(--orange-ink); }
.set-down { margin: 0; }
.set-search { flex-wrap: wrap; margin: 0; }
.set-search input { flex: 1 1 150px; max-width: 420px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--text-2); }

/* ---------- admin lists and records (phases 3–5 share these: src/lib/components/admin/*); each area's own rules go
   in /css/admin-orders.css, /css/admin-people.css, /css/admin-system.css (AdminShell links all three) ---------- */
/* the filter form: on a card, so its grey inputs read as fields (as on the settings pages); one column on a phone */
.list-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-3) var(--sp-4); margin: 0; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 1px 0 var(--card-gloss), 0 0 0 1px var(--card-edge), var(--card-shadow); }
.list-filter .field { flex: 1 1 160px; min-width: 0; }
.list-filter .lf-q { flex: 2 1 240px; }
.list-filter .lf-date { flex: 0 1 170px; }
.list-filter select { appearance: auto; cursor: pointer; }
.list-filter select:focus-visible { outline: none; background: var(--surface); box-shadow: 0 0 0 2px var(--blue); }
.lf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
/* level with the inputs (46px), not with their labels */
.lf-actions .btn { min-height: 46px; }
@media (max-width: 560px) { .list-filter { padding: var(--sp-4); } .list-filter .field, .list-filter .lf-date { flex-basis: 100%; } .lf-actions { flex-basis: 100%; } .lf-actions .btn-dark { flex: 1; } }
/* quick filters: links that look like chips; the one in use is filled */
.lf-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.lf-chip { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 36px; padding: 0 var(--sp-4); border-radius: var(--r-pill); background: var(--fill-2); color: var(--text); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; text-decoration: none !important; transition: var(--tx-ui); }
.lf-chip:hover { background: var(--fill-3); }
.lf-chip[aria-current] { background: var(--primary); color: var(--on-primary); }
.lf-chip b { min-width: 22px; padding: 1px 6px; border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-size: var(--fs-2xs); text-align: center; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) { .lf-chip { min-height: 40px; } }
/* a list's table on its own card (plain inside an .admin-card); it scrolls sideways inside the card on a phone */
.data-table { background: var(--card); box-shadow: inset 0 1px 0 var(--card-gloss), 0 0 0 1px var(--card-edge), var(--card-shadow); }
.data-table > .table { background: transparent; font-variant-numeric: tabular-nums; }
.admin-card .data-table { background: transparent; box-shadow: none; }
.data-table .table td:last-child { white-space: nowrap; min-width: 0; }
.data-table .table td.wrap { white-space: normal; min-width: 180px; }
.data-table tbody tr { transition: background-color var(--dur-hover) var(--ease-soft); }
.data-table tbody tr:hover { background: var(--hover); }
/* dark: the usual tint lifts a hovered row so much that blue links (4.4:1) and the red buttons' see-through tint (3.9:1)
   fall under 4.5:1; a fainter tint, and red buttons on the card's own colour, so the row's tint never shows through */
@media screen and (prefers-color-scheme: dark) { .data-table tbody tr:hover { background: rgba(255, 255, 255, .04); } .data-table .btn-danger { background: linear-gradient(var(--red-bg), var(--red-bg)), var(--card); } }
.data-table tbody tr:last-child td { border-bottom: 0; }
.pager-pos { font-variant-numeric: tabular-nums; }
/* a state: one colour vocabulary (#lib/admin-view.ts) — green done, orange waiting, red needs the admin, blue info, grey over */
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 8px; border-radius: var(--r-pill); background: var(--fill-2); color: var(--text-2); font-size: var(--fs-2xs); font-weight: 600; line-height: 1; white-space: nowrap; vertical-align: middle; }
.badge::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.is-good { background: var(--green-bg); color: var(--green-ink); }
.badge.is-warn { background: var(--orange-bg); color: var(--orange-ink); }
.badge.is-bad { background: var(--red-bg); color: var(--red-ink); }
.badge.is-info { background: var(--blue-bg); color: var(--blue); }
/* dark: the theme's blue is a little too dark for small text on its own tint over a card (4.3:1); this one is 6:1 */
@media screen and (prefers-color-scheme: dark) { .badge.is-info { color: #64b5ff; } }
.badge + .badge { margin-left: 4px; }
/* a record's facts: label over value, in columns (one on a phone) */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--sp-4) var(--sp-5); margin: 0; }
.dg-row { display: grid; align-content: start; gap: 2px; min-width: 0; }
.dg-row.is-wide { grid-column: 1 / -1; }
.dg-row dt { font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.dg-row dd { margin: 0; font-size: var(--fs-base); color: var(--text); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dg-row dd small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--text-2); }
.dg-row dd.mono { font-size: var(--fs-xs); }
/* one action as a card (ActionCard): the fields, then the button */
.action-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin: 0; }
.action-off { margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r); background: var(--fill); color: var(--text-2); font-size: var(--fs-sm); }
/* money: lari with tabular figures; nothing (0) in grey */
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money.is-zero { color: var(--text-2); }
/* the moderation count next to „მოსაწვევები“ in the menu. position: relative keeps its screen-reader words (.sr-only,
   absolute) inside the badge: otherwise they sit at the end of the phone's sideways-scrolling tab row and widen the page.
   A solid fixed red with a fixed white ink (5.7:1): the tinted red-bg is see-through and fails on the current tab's
   inverted pill in dark mode */
.admin-nav-count { position: relative; min-width: 20px; margin-left: auto; padding: 1px 6px; border-radius: var(--r-pill); background: #c4271a; color: #fff; font-size: var(--fs-2xs); font-weight: 700; line-height: 1.4; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .admin-nav-count { margin-left: 2px; } }

/* notched phones turned sideways (viewport-fit=cover): bars and content clear the notch and the rounded corners */
@media (orientation: landscape) and (max-width: 1000px) {
  .topbar-in, .site-foot-in, .narrow, .ed-top { padding-left: max(var(--sp-4), env(safe-area-inset-left)); padding-right: max(var(--sp-4), env(safe-area-inset-right)); }
}
.account-error { margin: 0 0 var(--sp-3); }
.human-check:empty { display: none; }

/* sign-in code: one large field, the six digits spaced like a code (tabular, centred); the placeholder dots show how many */
.code-field .code-input { height: 60px; padding: 0 var(--sp-4); text-align: center; font-size: 28px; font-weight: 600; letter-spacing: .32em; text-indent: .32em; font-variant-numeric: tabular-nums; }
.code-field .code-input::placeholder { letter-spacing: .32em; color: var(--placeholder); }
.btn-link-note { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--text-2); }
#login-set-password { line-height: 1.35; }

/* SMS settings: a sub-heading inside a card, and the callback address to copy (long: it wraps anywhere) */
.set-sub { margin: var(--sp-6) 0 var(--sp-2); font-size: var(--fs-base); font-weight: 600; }
.set-callback code { display: block; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--fill); font-size: var(--fs-sm); overflow-wrap: anywhere; user-select: all; }

/* ---------- blog (/blog, /blog/<slug>; lib/blog): the occasion pages' frame, a reading column for the article ---------- */
.blog-head, .post-head { padding-top: var(--sp-6); }
@media (min-width: 860px) { .blog-head, .post-head { padding-top: var(--sp-10); } }
.blog-head h1, .post-head h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; letter-spacing: var(--track-tight); text-wrap: balance; }
.blog-list { list-style: none; margin: var(--sp-10) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--sp-10) var(--sp-6); }
.blog-card-img { display: block; }
.blog-card img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); outline: 1px solid var(--hairline); outline-offset: -1px; }
.blog-card-topic, .post-topic { margin: var(--sp-4) 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.blog-card h2 { margin-top: var(--sp-1); font-size: var(--fs-xl); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.blog-card h2 a { color: var(--text); text-decoration: none; }
.blog-card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-card-summary { margin-top: var(--sp-2); color: var(--text-2); line-height: var(--lh-base); text-wrap: pretty; }
.blog-card-meta, .post-meta { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }
.post-topic { margin: 0 0 var(--sp-2); }
.post-meta { margin-top: var(--sp-4); }
.post-lead { margin-top: var(--sp-6); font-size: var(--fs-lg); font-weight: 500; line-height: var(--lh-base); text-wrap: pretty; }
.post-cover { display: block; width: 100%; height: auto; margin-top: var(--sp-8); border-radius: var(--r-xl); outline: 1px solid var(--hairline); outline-offset: -1px; box-shadow: var(--shadow); }
.post-toc { margin-top: var(--sp-8); padding: var(--sp-5) var(--sp-6); border-radius: var(--r-xl); background: var(--surface); }
.post-toc h2 { font-size: var(--fs-md); }
.post-toc ol { margin: var(--sp-3) 0 0; padding-left: 1.4em; display: grid; gap: var(--sp-2); }
.post-toc a { color: var(--text); text-underline-offset: 3px; }
.post-section { padding-top: var(--sp-12); }
.post [id] { scroll-margin-top: 88px; }
.post-section > h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.25; letter-spacing: var(--track-tight); text-wrap: balance; }
.post-section h3 { margin-top: var(--sp-8); font-size: var(--fs-lg); line-height: 1.35; text-wrap: balance; }
.post-section p, .post-section li { font-size: var(--fs-md); line-height: 1.7; text-wrap: pretty; }
.post-section p { margin-top: var(--sp-4); }
.post-section ol, .post-section ul { margin: var(--sp-4) 0 0; padding-left: 1.3em; display: grid; gap: var(--sp-3); }
.post-section a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
/* the price tables: their own sideways scroll on a phone, never squeezed into the column */
.post-table { margin-top: var(--sp-5); overflow-x: auto; border-radius: var(--r-lg); background: var(--surface); }
.post-table:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.post-table table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.5; }
.post-table th, .post-table td { padding: var(--sp-3) var(--sp-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.post-table thead th { font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }
.post-table tbody th { font-weight: 600; }
.post-table td { font-variant-numeric: tabular-nums; }
/* a price range stays on one line (its note under it wraps) */
.post-prices td:first-of-type, .post-budget td { white-space: nowrap; }
.post-budget td small { white-space: normal; }
.post-table td small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--text-2); }
.post-table tfoot th, .post-table tfoot td { font-weight: 700; border-bottom: 0; }
.post-box { margin-top: var(--sp-5); padding: var(--sp-6); border-radius: var(--r-xl); background: var(--card); box-shadow: inset 0 1px 0 var(--card-gloss), 0 0 0 1px var(--card-edge), var(--card-shadow); }
.post-box p:first-child { margin-top: 0; }
.post-box-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-5); }
.post-box-cta .btn { white-space: normal; text-align: center; }
.post-section .post-tip { margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg); background: var(--surface); }
.post-sources a { overflow-wrap: anywhere; }
.post .occ-links { display: flex; justify-content: flex-start; margin: var(--sp-5) 0 0; padding: 0; }
.post .occ-links a { color: var(--text); text-decoration: none; }
.post .faq { max-width: none; margin-top: var(--sp-5); }
/* an occasion page's „სასარგებლო სტატიები“ */
.occ-posts { list-style: none; max-width: 760px; margin: var(--sp-8) auto 0; padding: 0; display: grid; gap: var(--sp-3); }
.occ-posts a { display: grid; gap: var(--sp-1); padding: var(--sp-5) var(--sp-6); border-radius: var(--r-xl); background: var(--surface); color: var(--text); text-decoration: none; transition: var(--tx-ui); }
.occ-posts a:hover { background: var(--fill); }
.occ-posts strong { font-size: var(--fs-md); line-height: 1.35; }
.occ-posts span { color: var(--text-2); font-size: var(--fs-sm); line-height: var(--lh-base); }
