/* Voljeni. Monochrome: white page, light grey bands, black blocks and 1px black frames.
   Montserrat for headings, Mulish for text, PT Serif on the printed obituary.
   The only warm color is candlelight. */
:root {
  --bg: #FFFFFF;
  --band: #F5F5F4;
  --band-2: #ECECEA;
  --ink: #0A0A0A;
  --ink-2: #3A3A38;
  --muted: #6D6D69;
  --line: #E0E0DC;
  --frame: #0A0A0A;
  --inv: #0A0A0A;
  --inv-ink: #FFFFFF;
  --field: #FFFFFF;
  --ok: #1C6B44;
  --ok-bg: #E4F1E9;
  --warn: #7A5300;
  --warn-bg: #FBEFD3;
  --err: #8A1F11;
  --err-bg: #FBE7E4;
  --stage-ink: #F4EEE6;
  --stage-muted: #A79F94;
  --stage-line: #2E2820;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.08);
  --head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Mulish", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15.5px; line-height: 1.6; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wrap { max-width: 70rem; margin-inline: auto; padding-inline: 16px; padding-block: 0 24px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); padding-block: 10px 0; }
.hdr-box { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; border: 1px solid var(--frame); background: var(--bg); }
.brand { background: var(--inv); color: var(--inv-ink); padding: 8px 16px; display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 52px; }
.brand span { display: flex; flex-direction: column; justify-content: center; }
.brand b { font-family: var(--head); font-weight: 700; font-size: 16px; line-height: 1.1; letter-spacing: 0.01em; }
.brand small { font-size: 11px; opacity: 0.72; letter-spacing: 0.02em; margin-top: 2px; }
.brand-logo { height: 32px; width: auto; }
.hdr-note { display: flex; align-items: center; padding: 0 14px; font-size: 12.5px; color: var(--muted); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hdr-act { display: flex; align-items: stretch; }
.hdr-link { display: flex; align-items: center; padding: 0 16px; min-height: 52px; font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-left: 1px solid var(--line); }
.hdr-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.hdr-link.on { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
@media (max-width: 759px) {
  .hdr-note { display: none; }
  .hdr-box { grid-template-columns: minmax(0, 1fr) auto; }
  .hdr-box.many { grid-template-columns: minmax(0, 1fr); }
  .hdr-box.many .hdr-act { border-top: 1px solid var(--frame); overflow-x: auto; }
  .hdr-box.many .hdr-link { flex: 1 0 auto; justify-content: center; min-height: 44px; padding: 0 12px; font-size: 13px; }
  .hdr-box.many .hdr-link:first-child { border-left: 0; }
  .hdr-box.many .hdr-link.on { background: var(--inv); color: var(--inv-ink); text-decoration: none; }
  .hdr-link { padding: 0 12px; }
}

/* ---------- type and blocks ---------- */
.eyebrow { font-size: 12.5px; color: var(--muted); letter-spacing: 0.03em; }
.h2 { font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.35; text-wrap: balance; }
.h3 { font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; line-height: 1.35; text-wrap: balance; }
.statement { font-family: var(--head); font-weight: 700; font-size: clamp(19px, 5vw, 30px); line-height: 1.35; text-align: center; max-width: 26ch; margin-inline: auto; text-wrap: balance; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.hint { font-size: 12.5px; color: var(--muted); }
.center { text-align: center; justify-content: center; }
.sec { padding-block: 40px; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.band, .band { background: var(--band); border-top: 0; }
.sec.band + .sec, .stage + .sec { border-top: 0; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 24px; padding-inline: 16px; }
.sec-head.left { align-items: flex-start; text-align: left; padding-inline: 0; }
.inner { max-width: 40rem; margin-inline: auto; padding-inline: 18px; }
.inner.wide { max-width: 64rem; }
.prose p { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.prose p + p { margin-top: 14px; }
.prose p.note { font-size: 13.5px; color: var(--muted); }
.stack { display: grid; gap: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-family: var(--head); font-weight: 600; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border-radius: 0; text-align: center; line-height: 1.25; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 10.5px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: 0.45; cursor: default; }
.btn.light { background: var(--stage-ink); color: #0E0C0A; border-color: var(--stage-ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.actions.center { justify-content: center; }
.linkbtn { appearance: none; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; min-height: 32px; }
form.inline { display: inline; margin: 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.3; padding: 3px 9px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }

.notice { padding: 10px 12px; font-size: 14px; margin: 14px 0; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.err { background: var(--err-bg); color: var(--err); }
/* the example page says what it is, once, under the header */
.demo-bar { margin: 10px 0 0; padding: 10px 14px; background: var(--band); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); text-align: center; text-wrap: balance; }
.demo-bar a { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl, legend { font-size: 12.5px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.01em; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); background: var(--field); border-radius: 0; font-size: 16px; line-height: 1.4; -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
textarea { min-height: 92px; resize: vertical; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 459px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.seg { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border: 1px solid var(--frame); }
.seg label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; border-left: 1px solid var(--line); background: var(--bg); font-size: 13.5px; padding: 4px 6px; color: var(--ink-2); cursor: pointer; line-height: 1.25; }
.seg label:first-of-type { border-left: 0; }
.seg input:checked + label { background: var(--inv); color: var(--inv-ink); font-weight: 700; }
.seg input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: -4px; }
@media (max-width: 459px) {
  .seg[style*="--n:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg[style*="--n:4"] label:nth-of-type(3) { border-left: 0; }
  .seg[style*="--n:4"] label:nth-of-type(n + 3) { border-top: 1px solid var(--line); }
}
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.filebtn:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.photo-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.check small { color: var(--muted); font-size: 12.5px; }
.check.small { border-bottom: 0; padding: 0; align-items: center; }
.check.small span { font-size: 13px; }
.checks { display: grid; }
.checks.inline { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.checks.inline .check { border-bottom: 0; padding: 4px 0; }
.copybox { min-height: 150px; font-size: 14px; }

/* ---------- login and apps ---------- */
.login { min-height: 62vh; display: grid; place-items: center; padding: 40px 0; }
.login-card { width: 100%; max-width: 26rem; border: 1px solid var(--frame); padding: 26px 22px; display: grid; gap: 14px; background: var(--bg); }
.app { padding-block: 0 30px; }
.intro { padding: 30px 18px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; margin-top: 18px; }
.tabs { display: flex; overflow-x: auto; border: 1px solid var(--frame); margin-top: 18px; scrollbar-width: thin; }
.tab { flex: 1 0 auto; padding: 0 14px; min-height: 46px; display: flex; align-items: center; justify-content: center; font-size: 13.5px; text-decoration: none; color: var(--ink-2); border-left: 1px solid var(--line); white-space: nowrap; }
.tab:first-child { border-left: 0; }
.tab.on { background: var(--inv); color: var(--inv-ink); font-weight: 700; }
.fam-wrap { max-width: 44rem; margin-inline: auto; padding-block: 26px 10px; display: grid; gap: 16px; }
.fam-wrap > form { display: grid; gap: 16px; }

.pg-grid { display: grid; gap: 34px; padding-block: 26px 0; }
.pg-form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--frame); padding-bottom: 10px; margin-top: 6px; }
.pg-out { display: flex; flex-direction: column; min-width: 0; }
.out { padding-block: 22px; border-top: 1px solid var(--frame); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.out-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: baseline; }
.num { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }
.paper { background: #FFFFFF; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; max-width: 430px; margin-inline: auto; position: relative; }
.paper canvas { width: 100%; height: auto; }
.paper .tag { position: absolute; top: 10px; right: 10px; background: #0A0A0A; color: #FFFFFF; font-family: var(--head); font-weight: 600; font-size: 10px; letter-spacing: 0.1em; padding: 4px 8px; }
@media (min-width: 960px) {
  .pg-grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: start; }
  .pg-out { position: sticky; top: 92px; }
}
.plist { border-top: 1px solid var(--frame); }
.pitem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); align-items: center; }
.pmain { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pname { font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-decoration: none; }
.pname:hover { text-decoration: underline; }
.pacts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.pacts select { min-height: 38px; width: auto; }
@media (max-width: 759px) { .pitem { grid-template-columns: minmax(0, 1fr); } .pacts { justify-content: flex-start; } }
.cred { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; border: 1px solid var(--frame); padding: 14px; font-size: 15px; margin: 0; }
.cred dt { color: var(--muted); }
.cred dd { margin: 0; overflow-wrap: anywhere; }
.tablewrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.rows { border-top: 1px solid var(--frame); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-block: 12px; border-bottom: 1px solid var(--line); }

/* form sections, symbol picker, obituary text, grave location */
.fsec { display: grid; gap: 14px; }
.fsec + .fsec { border-top: 1px solid var(--line); padding-top: 20px; }
.fsec-h { font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.fgrid .field.wide { grid-column: 1 / -1; }
.sym-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sym-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--bg); padding: 6px 14px 6px 8px; cursor: pointer; min-height: 54px; font-size: 13.5px; color: var(--ink-2); }
.sym-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); font-weight: 700; }
.sym-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.sym-ico { width: 28px; height: 40px; display: grid; place-items: center; color: var(--ink); }
.sym-ico svg { width: 100%; height: 100%; }
.sym-none { width: 22px; height: 22px; border: 1px dashed var(--muted); border-radius: 50%; }
.utext { border: 1px solid var(--line); background: var(--bg); }
.utext summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; font-weight: 700; font-size: 14px; }
.utext summary::-webkit-details-marker { display: none; }
.utext summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin-left: auto; align-self: center; transition: transform 0.2s; }
.utext[open] summary::after { transform: rotate(-135deg); }
.utext[open] summary { border-bottom: 1px solid var(--line); }
.utext summary .hint { font-weight: 400; }
.utext-body { padding: 14px; display: grid; gap: 14px; }
.loc { gap: 10px; }
.loc-state { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.loc-state [data-loc-text] { flex: 1 1 14rem; min-width: 0; }
.loc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.loc.is-set .loc-dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.loc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.loc .hint .linkbtn { font-size: 12.5px; min-height: 0; color: var(--ink-2); }
.loc-panel { border: 1px solid var(--frame); padding: 12px; display: grid; gap: 10px; background: var(--bg); }
.loc-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.loc-search input { min-height: 40px; }
.loc-map { height: 340px; border: 1px solid var(--line); background: var(--band); z-index: 0; }
.loc-results li { border-bottom: 1px solid var(--line); font-size: 13.5px; }
.loc-results li.muted { padding: 8px 0; }
.loc-results button { appearance: none; background: none; border: 0; text-align: left; padding: 9px 0; width: 100%; line-height: 1.4; }
.loc-results button:hover { text-decoration: underline; }
.loc-pin span { position: absolute; left: 4px; top: 2px; width: 20px; height: 20px; border-radius: 50% 50% 50% 0; background: #0A0A0A; transform: rotate(-45deg); border: 3px solid #FFFFFF; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); }
.paper.land { max-width: 680px; }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice a { color: inherit; font-weight: 700; }
.app-help { text-align: center; font-size: 13px; color: var(--muted); margin: 40px auto 0; max-width: 40rem; }
.app-help a { color: var(--ink-2); }
.yearnav a { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); margin-left: 4px; text-decoration: none; }
.yearnav a.on { background: var(--inv); color: var(--inv-ink); border-color: var(--inv); }

/* invoice to pay */
.bill { border: 2px solid var(--ink); padding: 18px; display: grid; gap: 18px; margin-bottom: 16px; background: var(--bg); }
.bill.late { border-color: var(--err); }
.bill-k { font-size: 13px; color: var(--muted); }
.bill-sum { font-family: var(--head); font-weight: 700; font-size: 32px; line-height: 1.15; font-variant-numeric: tabular-nums; margin-top: 2px; }
.bill-meta { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.bill.late .bill-meta b { color: var(--err); }
.bill-main .actions { margin-top: 12px; }
.bill-pay { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 14px; margin: 0; align-content: start; }
.bill-pay dt { color: var(--muted); }
.bill-pay dd { margin: 0; overflow-wrap: anywhere; }
.bill-qr { margin: 0; width: 170px; display: grid; gap: 6px; }
.bill-qr canvas { width: 170px; height: auto; image-rendering: pixelated; border: 1px solid var(--line); }
.bill-qr figcaption { font-size: 12px; color: var(--muted); line-height: 1.4; }
@media (min-width: 860px) { .bill { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; align-items: start; } }

/* ---------- public page ----------
   One quiet column. Serif for what is personal (name, story, messages), sans for what is practical.
   The funeral and the invitation sit in the double black frame of a printed obituary. */
.pub { display: block; }
.pub .sec { padding-block: 64px; }
.pub .sec + .sec { border-top: 0; }
.pub .sec-head { gap: 8px; margin-bottom: 34px; }
.pub .h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(25px, 4.6vw, 34px); letter-spacing: 0; text-transform: none; line-height: 1.2; }
.sec-sub { font-size: 15px; color: var(--muted); max-width: 44ch; text-wrap: balance; }
.pub .inner { max-width: 42rem; }
.pub .inner.wide { max-width: 66rem; }
.pub .note { font-size: 14px; }
/* bands and the candle stage run edge to edge without widening the page */
.pub .band { box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
.pub .stage { box-shadow: 0 0 0 100vmax #070605; clip-path: inset(0 -100vmax); }
@media (max-width: 759px) { .pub .sec { padding-block: 48px; } .pub .sec-head { margin-bottom: 26px; } }

/* hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 0 34px; }
.hero-sym { color: var(--ink); width: 30px; height: 42px; margin-bottom: 14px; }
.hero-sym svg { width: 100%; height: 100%; }
.c-islamski .hero-sym { color: #2E6B45; }
.ayah { font-family: "VljAyah", "Amiri", "Geeza Pro", "Noto Naskh Arabic", serif; font-size: 25px; line-height: 1.6; color: var(--ink-2); margin-bottom: 4px; }
.epitaph { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); max-width: 34ch; text-wrap: balance; margin-bottom: 10px; }
.hero .name { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 8.4vw, 66px); line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; padding-inline: 8px; max-width: 16ch; }
.c-islamski .hero .name { text-transform: uppercase; font-size: clamp(30px, 7.4vw, 58px); letter-spacing: 0.01em; }
.name-x { display: inline-block; font-size: 0.42em; font-weight: 400; color: var(--muted); letter-spacing: 0; vertical-align: 0.3em; text-transform: none; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; width: 100%; margin-top: 30px; }
.year { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.year.y1 { writing-mode: vertical-rl; transform: rotate(180deg); justify-self: end; }
.year.y2 { writing-mode: vertical-rl; justify-self: start; }
.portrait { margin: 0; width: min(60vw, 360px); aspect-ratio: 4 / 5; max-width: 100%; position: relative; overflow: hidden; background: var(--band-2); border-radius: 999px 999px 0 0; }
.portrait.empty { background: radial-gradient(120% 90% at 50% 20%, #5B5248 0%, #2B2622 70%); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait .mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 12vw, 72px); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.82); padding-top: 12%; }
.hero-dates { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-dates i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.hero-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
@media (min-width: 760px) {
  .year { font-size: clamp(60px, 7vw, 96px); font-weight: 400; letter-spacing: -0.02em; }
  .year.y1, .year.y2 { writing-mode: horizontal-tb; transform: none; }
  .year.y1 { text-align: right; }
  .hero-row { gap: 44px; }
}
.pnav { display: flex; justify-content: center; gap: 4px 2px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 0; margin-bottom: 0; }
.pnav a { padding: 8px 12px; font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.pnav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 759px) {
  .pnav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 10px; }
  .pnav::-webkit-scrollbar { display: none; }
}

/* funeral, and the invitation: the frame of a printed obituary */
.fun { padding: 54px 0; }
.fun-card, .invite { max-width: 38rem; margin-inline: auto; background: var(--bg); border: 4px double var(--ink); outline: 1px solid var(--ink); outline-offset: 6px; padding: 30px 22px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.fun-k, .inv-k { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.fun-when, .inv-when { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 5vw, 30px); line-height: 1.25; text-wrap: balance; }
.fun-when span, .inv-when span { display: block; font-weight: 400; font-size: 0.78em; margin-top: 2px; }
.fun-where, .inv-where { font-size: 17px; color: var(--ink-2); text-wrap: balance; max-width: 34ch; }
.fun-note { font-size: 14.5px; color: var(--muted); max-width: 44ch; text-wrap: balance; }
.fun-grave { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.fun-pin { font-size: 13px; color: var(--muted); margin-top: 10px; }
.fun .actions, .invite .actions { margin-top: 14px; }
@media (max-width: 459px) { .fun-card, .invite { margin-inline: 7px; padding: 26px 16px 22px; } }

/* candles */
.stage { position: relative; overflow: hidden; background: radial-gradient(100% 62% at 50% 30%, #2A2016 0%, #110E0B 56%, #070605 100%); color: var(--stage-ink); padding: 56px 18px 44px; }
.stage .eyebrow { color: var(--stage-muted); }
.stage .h2 { color: var(--stage-ink); font-family: var(--serif); font-weight: 700; font-size: clamp(25px, 4.6vw, 34px); letter-spacing: 0; text-transform: none; }
.stage .sec-head { margin-bottom: 12px; }
.tray { position: relative; height: 178px; max-width: 640px; margin-inline: auto; }
.sand { position: absolute; left: 0; right: 0; top: 56px; bottom: 0; background: linear-gradient(180deg, #2B231A 0%, #18130F 55%, #0B0907 100%); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.sand::after { content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; background: rgba(255, 214, 160, 0.22); }
.cnd { position: absolute; transform: translate(-50%, -100%); z-index: var(--z, 1); appearance: none; background: none; border: 0; padding: 0; }
.cnd::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 28px; height: calc(var(--h) * 1px * var(--s) + 26px); transform: translateX(-50%); }
.cnd .w { display: block; position: relative; width: calc(5px * var(--s)); height: calc(var(--h) * 1px * var(--s)); border-radius: 1px; background: linear-gradient(90deg, #7C551E, #D4A653 30%, #F2D490 48%, #DDB062 64%, #74501C); }
.cnd .w::before { content: ""; position: absolute; left: 50%; top: calc(-3px * var(--s)); width: 1px; height: calc(3.5px * var(--s)); background: #2B1D0E; transform: translateX(-50%); }
.cnd .f { position: absolute; left: 50%; bottom: calc(100% + 2px * var(--s)); width: calc(7px * var(--s)); height: calc(16px * var(--s)); margin-left: calc(-3.5px * var(--s)); border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; background: radial-gradient(ellipse 48% 58% at 50% 74%, #FFFEF4 0 18%, #FFE29A 34%, #FFAA44 62%, rgba(255, 120, 30, 0) 78%); transform-origin: 50% 92%; animation: flick var(--d, 0.8s) ease-in-out infinite alternate; }
.cnd .g { position: absolute; left: 50%; top: calc(-22px * var(--s)); width: calc(52px * var(--s)); height: calc(52px * var(--s)); margin-left: calc(-26px * var(--s)); margin-top: calc(-14px * var(--s)); border-radius: 50%; background: radial-gradient(circle, rgba(255, 178, 80, 0.36) 0, rgba(255, 150, 50, 0.13) 38%, rgba(255, 140, 40, 0) 68%); animation: breathe calc(var(--d, 0.8s) * 3.6) ease-in-out infinite; pointer-events: none; }
.k-lampion .cnd .w { width: calc(14px * var(--s)); height: calc(22px * var(--s)); border-radius: 3px 3px 2px 2px; background: radial-gradient(ellipse 60% 45% at 50% 70%, rgba(255, 196, 120, 0.85), rgba(214, 52, 34, 0.75) 55%, rgba(120, 18, 12, 0.85)); border: 1px solid rgba(255, 140, 110, 0.35); box-shadow: 0 0 calc(10px * var(--s)) rgba(230, 70, 40, 0.35); }
.k-lampion .cnd .w::before { top: calc(-4px * var(--s)); left: 10%; width: 80%; height: calc(4px * var(--s)); background: linear-gradient(180deg, #8C8780, #4A4640); transform: none; border-radius: 1px 1px 0 0; }
.k-lampion .cnd .f { bottom: 24%; width: calc(5px * var(--s)); height: calc(10px * var(--s)); margin-left: calc(-2.5px * var(--s)); opacity: 0.9; }
.k-lampion .cnd .g { top: calc(-6px * var(--s)); }
.k-tealight .cnd .w { width: calc(17px * var(--s)); height: calc(7px * var(--s)); border-radius: 2px; background: linear-gradient(180deg, #F5F5F2, #BDBDB8); box-shadow: inset 0 1px 0 #FFFFFF; }
.k-tealight .cnd .w::before { top: calc(-2px * var(--s)); height: calc(2.5px * var(--s)); }
.k-tealight .cnd .f { width: calc(6px * var(--s)); height: calc(13px * var(--s)); margin-left: calc(-3px * var(--s)); }
.k-tealight .cnd .g { top: calc(-26px * var(--s)); }
.cnd.new .f { animation: ignite 1s ease-out, flick var(--d, 0.8s) 1s ease-in-out infinite alternate; }
.cnd.new .g { animation: flash 1.6s ease-out, breathe calc(var(--d, 0.8s) * 3.6) 1.6s ease-in-out infinite; }
@keyframes flick { 0% { transform: scale(1, 1) skewX(0deg); } 35% { transform: scale(0.94, 1.07) skewX(-2deg); } 70% { transform: scale(1.05, 0.95) skewX(1.5deg); } 100% { transform: scale(0.98, 1.09) skewX(-1deg); } }
@keyframes breathe { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
@keyframes ignite { 0% { transform: scale(0, 0); opacity: 0; } 35% { transform: scale(1.5, 1.7); opacity: 1; } 100% { transform: scale(1, 1); } }
@keyframes flash { 0% { opacity: 0; transform: scale(0.4); } 30% { opacity: 1; transform: scale(2.2); } 100% { opacity: 0.85; transform: scale(1); } }
.floater { position: absolute; z-index: 9; transform: translate(-50%, 0); font-size: 12.5px; color: var(--stage-ink); white-space: nowrap; pointer-events: none; animation: floatUp 2.8s ease-out forwards; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, 8px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -40px); } }
.tip { position: absolute; z-index: 12; max-width: 240px; background: #F4EEE6; color: #15110D; padding: 9px 12px; font-size: 13px; line-height: 1.4; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); transform: translate(-50%, -100%); }
.tip b { display: block; font-size: 13px; }
.tip span { color: #6A6156; font-size: 12px; }
.stage-count { font-family: var(--serif); font-weight: 700; font-size: 26px; text-align: center; font-variant-numeric: tabular-nums; margin-top: 12px; }
.stage-sub { text-align: center; color: var(--stage-muted); font-size: 14.5px; margin-top: 4px; text-wrap: balance; }
.cities { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; max-width: 34rem; margin-inline: auto; }
.city { font-size: 12px; padding: 3px 10px; border: 1px solid var(--stage-line); color: var(--stage-ink); }
.city i { font-style: normal; color: var(--stage-muted); margin-left: 4px; }
.recent-wrap { position: relative; max-width: 30rem; margin: 26px auto 0; }
.recent { border-top: 1px solid var(--stage-line); padding-inline: 10px 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4A4036 transparent; }
.recent:focus-visible { outline: 2px solid var(--stage-muted); outline-offset: 4px; }
.recent::-webkit-scrollbar { width: 6px; }
.recent::-webkit-scrollbar-thumb { background: #4A4036; border-radius: 3px; }
.recent-wrap.scrolls::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(rgba(11, 9, 7, 0), #0b0907); pointer-events: none; transition: opacity .2s; }
.recent-wrap.at-end::after { opacity: 0; }
.recent-more { text-align: center; color: var(--stage-muted); font-size: 12.5px; margin-top: 10px; }
.recent-more[hidden] { display: none; }
.recent li { padding-block: 12px; border-bottom: 1px solid var(--stage-line); display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: start; }
.recent .dot { width: 7px; height: 7px; border-radius: 50%; background: #FFC36B; box-shadow: 0 0 10px 3px rgba(255, 170, 70, 0.55); margin-top: 7px; }
.recent b { font-size: 14px; }
.recent span { font-size: 12.5px; color: var(--stage-muted); }
.recent p { font-size: 14px; color: var(--stage-ink); opacity: 0.9; margin-top: 2px; }
.fatiha-art { width: 190px; height: 190px; margin: 6px auto 0; color: var(--stage-ink); opacity: 0.5; }
.fatiha-art svg { width: 100%; height: 100%; }

/* life story: centered, set like a book */
.bio-lead { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 3.6vw, 27px); line-height: 1.45; text-align: center; max-width: 30ch; margin: 0 auto 30px; text-wrap: balance; color: var(--ink); }
.bio-text { max-width: 36rem; margin-inline: auto; padding-inline: 18px; }
.bio-text p { font-family: var(--serif); font-size: 18.5px; line-height: 1.8; color: var(--ink-2); text-align: center; text-wrap: pretty; hyphens: manual; }
.bio-text p + p { margin-top: 1.1em; }
.orn { display: block; width: 56px; height: 9px; margin: 34px auto 0; background: radial-gradient(circle, var(--ink) 0 2px, transparent 2.5px) center / 9px 9px no-repeat, linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
.bio .note { margin-top: 18px; }

/* album */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.grid.small-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.print { margin: 0; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ph { position: relative; display: block; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--band-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pub .ph:hover img { transform: scale(1.025); }
.ph .yr { position: absolute; left: 10px; bottom: 8px; font-family: var(--serif); font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, 0.96); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); }
.print figcaption { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.print .cap { font-size: 13.5px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.print .by { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 760px) { .pub .print.big { grid-column: span 2; grid-row: span 2; } .pub .print.big .ph { aspect-ratio: auto; height: 100%; min-height: 0; flex: 1; } }
.album .actions { margin-top: 30px; }
.album .note { margin-top: 10px; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.pick-list img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--band-2); }
.pick-list { position: relative; }
.pick-count { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }

/* albums (0.7.6): the same print as a single photo, with a small light word on top */
.print.is-album .ph::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 64px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0)); pointer-events: none; }
.alb-mark { position: absolute; z-index: 2; top: 12px; left: 13px; display: inline-flex; align-items: center; gap: 9px; font-family: var(--head); font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1; color: rgba(255, 255, 255, 0.94); pointer-events: none; }
.alb-mark i { width: 1px; height: 10px; background: rgba(255, 255, 255, 0.55); }
.alb-mark span:last-child { letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.82); }
.up-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.up-k { position: relative; cursor: pointer; }
.up-k input { position: absolute; opacity: 0; pointer-events: none; }
.up-k span { display: grid; justify-items: center; gap: 3px; padding: 14px 8px 12px; border: 1px solid var(--line); background: var(--bg); text-align: center; height: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
.up-k svg { width: 30px; height: 30px; margin-bottom: 4px; color: var(--ink-2); }
.up-k b { font-size: 15px; }
.up-k small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.up-k input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.up-k input:checked + span svg { color: var(--ink); }
.up-k input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.pick-list.is-album img:first-child { grid-column: span 2; grid-row: span 2; }

/* memories: one list, each part opens in place */
.acc { border-top: 1px solid var(--ink); }
.acc-i { border-bottom: 1px solid var(--line); }
.acc-i > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 22px; gap: 14px; align-items: center; padding: 16px 6px; transition: background 0.15s; }
.acc-i > summary::-webkit-details-marker { display: none; }
.acc-i > summary:hover { background: var(--band); }
.acc-i > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.acc-ico { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--bg); }
.acc-ico svg { width: 22px; height: 22px; }
.acc-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.acc-t b { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.3; }
.acc-t small { font-size: 13px; color: var(--muted); }
.acc-n { min-width: 32px; height: 32px; padding: 0 9px; border-radius: 16px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.acc-n.zero { background: transparent; color: var(--muted); border: 1px dashed var(--muted); font-weight: 600; }
.acc-chev { width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s; justify-self: center; }
.acc-i[open] > summary .acc-chev { transform: rotate(-135deg) translate(-2px, -2px); }
.acc-i[open] > summary { background: var(--band); }
.acc-body { padding: 6px 6px 26px 64px; display: grid; gap: 4px; }
.acc-body > .actions { margin-top: 14px; }
@media (max-width: 459px) { .acc-i > summary { grid-template-columns: 38px minmax(0, 1fr) auto 18px; gap: 10px; } .acc-ico { width: 38px; height: 38px; } .acc-body { padding-left: 6px; } }
/* a page of memories: what would you like to add */
.pick { display: grid; border-top: 1px solid var(--ink); }
.pick-i { appearance: none; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 13px 6px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.pick-i:hover { background: var(--band); }
.pick-i:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.pick-ico { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.pick-ico svg { width: 20px; height: 20px; }
.pick-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pick-t b { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.3; }
.pick-t small { font-size: 12.5px; color: var(--muted); }
.mi { padding-block: 16px; border-bottom: 1px solid var(--line); }
.mi-t { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.35; }
.mi-x { font-family: var(--serif); font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-top: 6px; overflow-wrap: anywhere; }
.mi-by, .rby { font-size: 13px; color: var(--muted); margin-top: 6px; display: block; }
.mq { margin: 0; padding-block: 18px; border-bottom: 1px solid var(--line); }
.mq blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink); text-wrap: balance; }
.mq-ctx { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.mq figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
details.recipe { border-bottom: 1px solid var(--line); }
details.recipe > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 14px; }
details.recipe > summary::-webkit-details-marker { display: none; }
details.recipe .rt { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.plus { position: relative; width: 30px; height: 30px; border: 1px solid var(--ink); flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.2s; }
details[open] > summary .plus { background: var(--ink); color: var(--bg); }
details[open] > summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.rbody { display: grid; gap: 16px; padding-bottom: 18px; }
@media (min-width: 760px) { .rbody { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } .rbody .rnote { grid-column: 1 / -1; } }
.rbody h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.rbody ul li { padding-block: 5px; border-bottom: 1px dotted var(--line); font-size: 15px; }
.rbody ol { padding-left: 20px; list-style: decimal; }
.rbody ol li { padding-block: 5px; font-size: 15px; }
.rnote { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-2); }

/* last greeting */
.gb-form { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--frame); margin-bottom: 30px; background: var(--bg); }
.gb-form textarea { min-height: 96px; font-family: var(--serif); font-size: 17px; }
.gb-more { display: grid; gap: 12px; }
.gb-list { display: grid; }
.gb-item { padding-block: 20px; border-bottom: 1px solid var(--line); }
.gb-item:first-child { border-top: 1px solid var(--line); }
.gb-who { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.gb-who span { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 8px; }
.gb-msg { margin-top: 8px; font-family: var(--serif); font-size: 17.5px; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.gb .actions { margin-top: 22px; }
audio { width: 100%; margin-top: 12px; height: 40px; }
.recorder { border: 1px dashed var(--muted); padding: 14px; display: grid; gap: 8px; }
.rec-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.rec-btn { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--ink); background: var(--bg); display: grid; place-items: center; padding: 0; }
.rec-btn span { width: 22px; height: 22px; border-radius: 50%; background: #B3261E; transition: border-radius 0.2s, width 0.2s, height 0.2s; }
.rec-btn.on span { border-radius: 3px; width: 18px; height: 18px; }
.rec-btn.on { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, 0.35); } 50% { box-shadow: 0 0 0 10px rgba(179, 38, 30, 0); } }
.rec-state { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* events */
.inv-t { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 4.4vw, 28px); line-height: 1.25; text-wrap: balance; }
.inv-when { font-size: clamp(18px, 4vw, 22px); }
.rsvp { width: 100%; max-width: 24rem; display: grid; gap: 12px; text-align: left; margin-top: 14px; }
.stepper { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; border: 1px solid var(--line); }
.stepper button { appearance: none; border: 0; background: var(--band); min-height: 44px; font-size: 18px; }
.stepper output { display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-variant-numeric: tabular-nums; }
.thanks { font-weight: 700; margin-top: 8px; }
.later { margin: 34px auto 0; max-width: 34rem; }
.later li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.later li span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.ev { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); }
.ev-date { border: 1px solid var(--frame); text-align: center; padding: 8px 0 7px; align-self: start; }
.ev-day { font-family: var(--head); font-weight: 700; font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.ev-mon { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }
.ev-yr { font-size: 10.5px; color: var(--muted); }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); margin-top: 4px; }
.tally div { padding: 10px 8px; border-left: 1px solid var(--line); text-align: center; }
.tally div:first-child { border-left: 0; }
.tally b { display: block; font-family: var(--head); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.tally span { font-size: 11.5px; color: var(--muted); }
.arrivals li { font-size: 13px; padding-block: 5px; border-bottom: 1px dotted var(--line); display: flex; justify-content: space-between; gap: 10px; }

/* flowers */
.prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--frame); border-left: 1px solid var(--line); background: var(--bg); }
@media (min-width: 760px) { .prods { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prod { position: relative; appearance: none; text-align: left; background: var(--bg); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.prod:hover { background: var(--band); }
.prod svg { width: 52px; height: 52px; color: var(--ink); }
.prod .pn { font-size: 14px; font-weight: 700; line-height: 1.35; }
.prod .pp { font-family: var(--head); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.prod .pe { font-size: 12.5px; color: var(--muted); }
.sent { margin-top: 24px; }
.sent li { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }

/* share */
.share { text-align: center; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share-row .btn svg { width: 17px; height: 17px; flex: none; }
.share-row .btn[hidden] { display: none; }
.share-to.s-viber:hover { border-color: #7360F2; color: #7360F2; background: transparent; }
.share-to.s-sms:hover { border-color: #34C759; color: #1E9E44; background: transparent; }
.share-to.s-whatsapp:hover { border-color: #1DA851; color: #1DA851; background: transparent; }
.share-to.s-facebook:hover { border-color: #1877F2; color: #1877F2; background: transparent; }
@media (max-width: 599px) { .share-row { display: grid; grid-template-columns: 1fr 1fr; padding-inline: 16px; } .share-row .share-native, .share-row .share-to:last-child { grid-column: 1 / -1; } .share-row .btn { width: 100%; padding-inline: 10px; } }

/* family */
.q-item { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding-block: 16px; border-top: 1px solid var(--line); align-items: start; }
.q-thumb { width: 60px; height: 76px; background: var(--band-2); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--muted); overflow: hidden; }
.q-thumb img { width: 100%; height: 100%; object-fit: cover; }
.q-item p { font-size: 14px; color: var(--ink-2); }
.q-item .actions { margin-top: 10px; }
.ph-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; }
.ph-row .q-thumb { width: 76px; height: 96px; }
.qa { display: grid; gap: 14px; }
.qa textarea { min-height: 64px; }
.ai-status { font-size: 13px; color: var(--muted); }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: start; }
.social-item { margin: 0; border: 1px solid var(--line); background: var(--band); min-width: 0; }
.social-item canvas { width: 100%; height: auto; background: #FFFFFF; }
.social-item figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.social-item .actions { margin-top: 6px; gap: 8px; }

/* photo viewer */
.lb { position: fixed; inset: 0; z-index: 70; background: rgba(8, 8, 8, 0.96); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #F4F4F2; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 13px; color: #B8B8B2; }
.lb-x, .lb-nav { appearance: none; border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; color: #FFFFFF; width: 46px; height: 46px; display: grid; place-items: center; font-size: 20px; }
/* one track of the stage's own size, so the photo always fits whole, also a tall one on a wide screen */
.lb-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 0 8px; touch-action: pan-y; overflow: hidden; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.35); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-cap { padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 14px; min-height: 52px; }
.lb-cap b { display: block; font-family: var(--serif); font-size: 17px; color: #FFFFFF; }
.lb-cap span { color: #B8B8B2; font-size: 13px; }
@media (max-width: 759px) { .lb-nav { display: none; } }

/* ---------- footer, sheet, toast, lightbox ---------- */
.foot { background: var(--inv); color: var(--inv-ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-size: 12px; margin-top: 44px; flex-wrap: wrap; }
.pub-foot { margin-top: 0; padding: 18px 16px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 13px; }
.foot-brand img { width: 22px; height: 22px; }
.pmark { display: inline-flex; align-items: center; gap: 8px; opacity: 0.85; }
.pmark img { height: 24px; width: auto; max-width: 90px; object-fit: contain; background: #FFFFFF; padding: 2px; }
.sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 36rem; max-height: calc(100% - 24px); overflow: auto; overscroll-behavior: contain; padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--frame); }
@media (min-width: 760px) { .sheet-back { align-items: center; } .sheet { border: 1px solid var(--frame); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); position: sticky; top: -16px; background: var(--bg); z-index: 2; padding-top: 4px; }
.x { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; flex: none; font-size: 18px; }
.sheet-body { display: grid; gap: 14px; }
.sheet .lightbox-img { width: 100%; height: auto; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.done { border: 1px solid var(--frame); padding: 18px; display: grid; gap: 8px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 28rem; margin-inline: auto; background: var(--inv); color: var(--inv-ink); padding: 12px 14px; font-size: 14px; z-index: 80; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cnd .f, .cnd .g, .cnd.new .f, .cnd.new .g, .rec-btn.on { animation: none !important; }
  .floater { animation-duration: 0.01s; }
  .toast { transition: none; }
}
@media print {
  .hdr, .foot, .gb-form, .upload, .actions, .tabs { display: none !important; }
}

/* ---------- the example page inside the phone on the homepage ---------- */
html:has(body.is-embed) { scrollbar-width: none; }
html:has(body.is-embed)::-webkit-scrollbar, body.is-embed::-webkit-scrollbar { display: none; }
body.is-embed { overflow-x: hidden; }
body.is-embed .wrap { pointer-events: none; user-select: none; }

/* ---------- approval choice and the family contact ---------- */
fieldset.approve { margin-top: 6px; }
fieldset.approve .hint { margin-top: 8px; }
[data-phone-hint].ok { color: var(--ok); }
[data-phone-hint].bad { color: var(--err); }

/* the example account: one posmrtnica on its own */
.pg-out.solo { max-width: 58rem; margin: 22px auto 0; position: static; }
.is-demo-pg .demo-bar { margin-top: 10px; }

/* ---------- messages: the newest four in view, the others scroll, like the candles ---------- */
.gb-wrap { position: relative; }
.gb-list { overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #C4C4BE transparent; }
.gb-list:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.gb-list::-webkit-scrollbar { width: 6px; }
.gb-list::-webkit-scrollbar-thumb { background: #C4C4BE; border-radius: 3px; }
.gb-wrap.scrolls::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(245, 245, 244, 0), var(--band)); pointer-events: none; transition: opacity 0.2s; }
.gb-wrap.at-end::after { opacity: 0; }
.recent-more.gb-more-note { color: var(--muted); margin-top: 12px; }
@media print {
  .gb-list { max-height: none !important; overflow: visible; }
  .gb-wrap::after { display: none; }
}

/* ---------- profiles on the social networks ---------- */
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); text-decoration: none; }
.social a:hover { border-color: currentColor; }
.social svg { width: 20px; height: 20px; }
.foot .social { gap: 4px; }
.foot .social a { width: 32px; height: 32px; border: 0; color: var(--inv-ink); opacity: 0.75; }
.foot .social a:hover { opacity: 1; }
.foot .social svg { width: 18px; height: 18px; }

/* ---------- cookie choice (assets/js/merenje.js) ---------- */
.ck { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 620px; margin: 0 auto; background: #fff; color: #1A1A18; border: 1px solid #D9D6CF; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.18); font-size: 15px; line-height: 1.5; }
.ck-in { padding: 18px 20px; }
.ck-t { margin: 0; color: #3A3A36; }
.ck-t b { display: block; font-size: 17px; color: #1A1A18; margin-bottom: 4px; }
.ck-t a { color: #1A1A18; text-decoration: underline; }
.ck-opts { display: none; margin: 14px 0 0; gap: 10px; }
.ck-choose .ck-opts { display: grid; }
.ck-opts label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ck-opts input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: #1A1A18; }
.ck-opts b { display: block; color: #1A1A18; }
.ck-opts span { color: #55554F; font-size: 14px; }
.ck-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ck-b { flex: 1 1 auto; min-height: 44px; padding: 10px 16px; border: 1px solid #1A1A18; border-radius: 10px; background: #1A1A18; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ck-b.alt { background: #fff; color: #1A1A18; }
.ck-b:focus-visible { outline: 3px solid #8A8A80; outline-offset: 2px; }
.ck [data-ck-save] { display: none; }
.ck-choose [data-ck-save] { display: block; }
.ck-choose [data-ck-pick] { display: none; }
@media (max-width: 520px) { .ck { left: 10px; right: 10px; bottom: 10px; } .ck-in { padding: 16px; } .ck-b { flex-basis: 100%; } }

/* ---------- an example page: a bar at the bottom that leads to the order (0.7.2) ---------- */
.demo-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: center; gap: 12px 20px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--inv); color: var(--inv-ink); box-shadow: 0 -12px 30px -20px rgba(0, 0, 0, 0.6); }
.demo-buy p { margin: 0; font-size: 14.5px; line-height: 1.4; max-width: 40rem; }
.demo-buy b { font-weight: 800; }
.demo-buy .btn { flex: none; min-height: 44px; background: var(--bg); color: var(--ink); border-color: var(--bg); }
.is-demo .wrap { padding-bottom: 88px; }
.is-demo .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 599px) { .demo-buy { justify-content: space-between; } .demo-buy p { font-size: 13.5px; } .demo-buy .db-more { display: none; } .demo-buy .btn { padding: 0 14px; } }

/* first steps for a new family page (0.7.6) */
.first-steps { margin: 18px 0 6px; padding: 18px 18px 14px; border: 1px solid var(--ink); background: var(--bg); }
.fs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fs-head .eyebrow { margin: 0; }
.fs-off { font-size: 13px; color: var(--muted); }
.fs-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .fs-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fs-list a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; height: 100%; transition: border-color 0.2s; }
.fs-list a:hover { border-color: var(--ink); }
.fs-n { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-weight: 700; font-size: 15px; }
.fs-n svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fs-t { display: grid; gap: 3px; }
.fs-t b { font-size: 15px; }
.fs-t small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.is-done .fs-n { background: var(--ok); border-color: var(--ok); color: #FFFFFF; }
.is-done .fs-t b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.fs-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* changing things right on the page (0.7.8): pencils only when the family turns them on (0.7.9) */
[data-edit] { position: relative; }
.ed-btn { position: absolute; z-index: 4; top: 8px; right: 8px; width: 34px; height: 34px; display: none; place-items: center; padding: 0; border: 1px solid rgba(17, 17, 17, 0.14); border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16); cursor: pointer; transition: transform 0.15s, background 0.15s; }
.ed-btn svg { width: 16px; height: 16px; }
.ed-btn:hover { transform: scale(1.06); background: #FFFFFF; }
.ed-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.recent li .ed-btn, .gb-item .ed-btn, .mi .ed-btn, .mq .ed-btn { top: 4px; right: 4px; width: 30px; height: 30px; box-shadow: none; }
.recipe > .ed-btn { top: 12px; right: 52px; width: 30px; height: 30px; box-shadow: none; }
.ed-on .ed-btn { display: grid; }
.ed-on .recent li[data-edit], .ed-on .gb-item[data-edit] { padding-right: 38px; }
.ed-bar { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 0 auto; padding: 10px 16px; background: #111111; color: #FFFFFF; font-size: 13.5px; line-height: 1.4; }
.ed-bar p { margin: 0; }
.ed-bar b { font-weight: 700; }
.ed-bar span { display: flex; gap: 14px; }
.ed-bar a, .ed-bar button { color: #FFFFFF; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.ed-form .ed-prev { width: 100%; max-height: 300px; object-fit: contain; background: var(--band-2); }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ed-ph { position: relative; aspect-ratio: 1; background: var(--band-2); }
.ed-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-x, .ed-star { position: absolute; top: 4px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(17, 17, 17, 0.72); color: #FFFFFF; font-size: 17px; line-height: 1; cursor: pointer; }
.ed-x { right: 4px; }
.ed-star { left: 4px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.ed-star.on { color: #F5C542; }
.ed-x.is-sure { background: #B3261E; font-size: 15px; font-weight: 700; }
.btn.danger { border-color: #B3261E; color: #B3261E; background: transparent; }
.btn.danger.is-sure { background: #B3261E; color: #FFFFFF; }
.fam-edit-tip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* one account, more pages (0.13.0): the row of the account's pages on top of the family's settings */
.fam-pages { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.fam-pages-l { flex: none; margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fam-page { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; text-decoration: none; white-space: nowrap; transition: border-color 0.2s; }
.fam-page:hover { border-color: var(--ink); }
.fam-page img, .fam-page-i { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.fam-page-i { display: grid; place-items: center; background: var(--band-2); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.fam-page.on { border-color: var(--inv); background: var(--inv); color: var(--inv-ink); font-weight: 700; }
.fam-page.on .fam-page-i { background: rgba(255, 255, 255, 0.16); color: var(--inv-ink); }
@media (max-width: 599px) { .fam-pages-l { display: none; } }

/* ---------- quiet signs of attention (0.7.9) ---------- */
/* the Voljeni flame between two petals, drawn as a line; a given sign turns the button dark */
.fh { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.hero-love { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.hero-love .fh { width: 17px; height: 17px; color: var(--ink); }
/* Čuvam u srcu under memories and messages */
.srce { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: 600 12.5px/1 var(--body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.srce:hover { border-color: var(--ink); color: var(--ink); }
.srce.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.srce-n { font-weight: 400; color: var(--muted); }
.srce-n:empty { display: none; }
.srce.on .srce-n { color: #C9C9C6; }
.mq .srce, .rbody > .srce { margin-top: 10px; }
.pulse .fh { animation: vlj-pulse 0.5s ease-out; }
@keyframes vlj-pulse { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pulse .fh { animation: none; } }
/* on a photo in the album: how many keep it in their heart */
.ph-love { position: absolute; z-index: 2; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 6px; background: rgba(0, 0, 0, 0.52); color: #FFFFFF; font: 700 11.5px/1 var(--body); pointer-events: none; }
.ph-love .fh { width: 14px; height: 14px; stroke-width: 1.7; }
/* and in the photo viewer, the big button */
.lb-love { display: flex; align-items: center; gap: 8px; width: max-content; margin: 12px auto 0; min-height: 42px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, 0.32); background: transparent; color: #FFFFFF; font: 600 13px/1 var(--body); cursor: pointer; }
.lb-love .srce-n { color: #B8B8B2; }
.lb-love.on { background: #FFFFFF; color: #0A0A0A; border-color: #FFFFFF; }
.lb-love.on .srce-n { color: #55554F; }

/* Jednom rečju: the portrait in words */
.words .inner { text-align: center; }
.wcloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 18px; margin: 0 0 26px; }
.wcloud span { font-family: var(--serif); line-height: 1.08; color: var(--ink); }
.wcloud .w0 { font-weight: 700; }
.wcloud .wi { font-style: italic; }
.wcloud i { font: 600 10px/1 var(--head); font-style: normal; letter-spacing: 0.05em; color: #6D6D69; margin-left: 3px; vertical-align: super; }
.wpick { border-top: 1px solid var(--line); padding-top: 20px; }
.wpick-t { font: 600 10.5px/1 var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.wchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wchip { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 600 13.5px/1 var(--body); cursor: pointer; }
.wchip:hover { border-color: var(--ink); }
.wchip.on { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.wchip.own { border-style: dashed; color: var(--muted); }
.wown { display: flex; gap: 8px; max-width: 360px; margin: 12px auto 0; }
.wown input { flex: 1; min-width: 0; }
.wpick .note { margin-top: 12px; }

/* Venac: black, like the card for chats; flowers are drawn by the script */
.venac { background: #0B0B0C; color: #F4F4F2; padding: 60px 16px 52px; text-align: center; }
.venac .eyebrow { color: #A9A9A6; }
.venac .h2 { color: #FFFFFF; }
.venac .sec-sub { color: #C9C9C6; margin-inline: auto; }
.venac .sec-head { margin-bottom: 8px; }
.venac-art { width: min(330px, 84vw); aspect-ratio: 1; margin: 0 auto; }
.venac-art svg { display: block; width: 100%; height: 100%; }
.venac-nm { font-family: var(--serif); font-size: 15px; fill: #BDBDB8; }
.venac-n { font: 400 16px/1.4 var(--serif); color: #DADAD6; margin: 2px 0 20px; }
.venac-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 84px)); justify-content: center; gap: 8px; }
.venac .fl { box-sizing: border-box; width: 100%; height: 90px; padding: 0 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #E6E6E2; font: 600 11.5px/1.2 var(--body); cursor: pointer; }
.venac .fl svg { width: 30px; height: 30px; }
.venac .fl:hover { border-color: rgba(255, 255, 255, 0.55); }
.venac .fl.on { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.1); }
.venac-name { max-width: 420px; margin: 20px auto 0; text-align: left; }
.venac-name label { font-size: 13.5px; color: #C9C9C6; }
.venac-row { display: flex; gap: 8px; margin-top: 8px; }
.venac-row input { flex: 1; min-width: 0; background: #161618; border-color: rgba(255, 255, 255, 0.25); color: #FFFFFF; }
.venac-last { font-size: 13.5px; color: #A9A9A6; margin: 18px 0 0; }
.venac-real { margin: 10px 0 0; font-size: 14px; }
.venac-real a { color: #FFFFFF; text-underline-offset: 3px; }

/* Knjiga saučešća */
.book-name { margin-bottom: 16px; }
.book-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.book-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.book-t { margin: 0; font: 400 19px/1.35 var(--serif); color: var(--ink); }
.book-who { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.book-sign.on { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.book-own { margin: 16px 0 0; text-align: center; font-size: 14px; }
.book-own a { color: var(--ink); text-underline-offset: 3px; }
/* the family's list of signs */
.q-words { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.q-words .chip { gap: 2px; padding: 2px 2px 2px 10px; font-size: 13px; }
.q-words .chip .btn { min-height: 26px; padding: 0 8px; border: 0; font-size: 13px; }
.q-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.q-line small { display: block; color: var(--muted); font-size: 12px; }
/* visits of the page, for the family (0.11.0) */
.vis-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
.vis-nums p { margin: 0; padding: 12px; border: 1px solid var(--line); text-align: center; }
.vis-nums b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.vis-nums span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.vis-bars { display: flex; align-items: flex-end; gap: 2px; height: 72px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.vis-bars span { flex: 1 1 0; min-width: 0; background: var(--ink); opacity: 0.78; border-radius: 1px 1px 0 0; }
.vis-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 16px; }
@media (min-width: 640px) { .vis-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vis-cols .q-line b { font-weight: 600; }

/* hold a finger, or right-click: the small menu (0.7.9) */
.print .ph, .print img, .lb-stage img, .gb-item, .mi, .mq, .recipe, .recent li { -webkit-touch-callout: none; }
.print .ph, .print img, .lb-stage img { -webkit-user-select: none; user-select: none; }
@media (hover: none) { .gb-item, .mi, .mq, .recipe, .recent li { -webkit-user-select: none; user-select: none; } }
.ctx { position: fixed; inset: 0; z-index: 90; }
.ctx.at { pointer-events: none; }
.ctx.at .ctx-box { pointer-events: auto; position: fixed; min-width: 220px; padding: 6px 0; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16); }
.ctx-back { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.42); animation: vlj-ctx-fade 0.15s; }
.sheet-like .ctx-box { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; padding: 6px 0 calc(8px + env(safe-area-inset-bottom, 0px)); background: #FFFFFF; animation: vlj-ctx-up 0.18s ease-out; }
.ctx-t { margin: 0; padding: 14px 20px 12px; border-bottom: 1px solid var(--line); font: 600 12.5px/1.4 var(--body); color: var(--muted); text-align: center; }
.ctx-i { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 22px; border: 0; background: none; color: var(--ink); font: 600 15px/1.2 var(--body); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ctx.at .ctx-i { min-height: 40px; padding: 0 16px; font-size: 14px; }
.ctx-i svg { width: 20px; height: 20px; flex: none; }
.ctx.at .ctx-i svg { width: 18px; height: 18px; }
.ctx-i:hover, .ctx-i:focus-visible { background: var(--band); outline: none; }
.ctx-i.danger { color: #A3261B; }
.ctx-i.is-sure { background: #A3261B; color: #FFFFFF; }
.ctx-no { justify-content: center; margin-top: 6px; border-top: 1px solid var(--line); color: var(--muted); }
.gone { opacity: 0; transition: opacity 0.35s; }
@keyframes vlj-ctx-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes vlj-ctx-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet-like .ctx-box, .ctx-back { animation: none; } }
/* forgot the password: a login link by mail */
.forgot { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.forgot summary { cursor: pointer; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.forgot summary::-webkit-details-marker { display: none; }
.forgot form { margin-top: 12px; }
/* another page at a special price, in the family's settings (0.7.9) */
.offer { max-width: 44rem; margin: 26px auto 0; padding: 26px 24px 22px; background: #0B0B0C; color: #F4F4F2; }
.offer .eyebrow { color: #A9A9A6; margin: 0; }
.offer-t { margin: 6px 0 8px; font: 700 24px/1.25 var(--serif); color: #FFFFFF; }
.offer-x { margin: 0; font-size: 15px; line-height: 1.6; color: #D8D8D4; }
.offer-x b { color: #FFFFFF; }
.offer-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.offer .btn { background: #FFFFFF; color: #0A0A0A; border-color: #FFFFFF; }
.offer .btn.ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.5); }
.offer .note { color: #A9A9A6; margin: 14px 0 0; }
/* from farewell to memories, in the family's settings (0.7.9) */
.convert { margin: 0 0 26px; padding: 22px 22px 18px; border: 1px solid var(--ink); background: var(--bg); }
.convert .eyebrow { margin: 0; }
.convert-t { margin: 6px 0 8px; font: 700 22px/1.25 var(--serif); }
.convert-x { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.convert .note { margin-top: 10px; }

/* ---------- the face on the main photo (0.8.2): a tap marks it, every picture is cut around it ---------- */
.focus-pick { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; margin: 4px 0 22px; padding: 14px; border: 1px solid var(--line, #E2E2DE); background: #FFFFFF; }
.fp-box { position: relative; line-height: 0; }
.fp-box img { width: 100%; height: auto; display: block; cursor: crosshair; }
.fp-dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid #FFFFFF; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35); pointer-events: none; }
.fp-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #FFFFFF; }
.fp-copy b { display: block; font-size: 15px; margin-bottom: 4px; }
.fp-copy .hint { margin: 0 0 4px; }
.fp-state:empty { display: none; }
@media (max-width: 520px) { .focus-pick { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; } }

/* ---------- the family's settings: the parts of the page as cards, each with a live example (0.8.2) ---------- */
.fam-lead { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; margin: 2px 0 6px; }
.grp-t { font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin: 30px 0 10px; }
.grp-note { font-size: 13.5px; color: var(--muted); margin: -4px 0 12px; max-width: 62ch; }
.mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .mods { grid-template-columns: minmax(0, 1fr); } }
.mod { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 14px 14px 12px; border: 1px solid var(--line); background: var(--bg); transition: border-color 0.15s, box-shadow 0.15s; }
.mod:has(input:checked) { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.mod-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--band); color: var(--ink); }
.mod-ico svg { width: 22px; height: 22px; }
.mod:has(input:checked) .mod-ico { background: var(--ink); color: var(--inv-ink); }
.mod-txt { min-width: 0; padding-top: 1px; }
.mod-txt b { display: block; font-size: 15px; line-height: 1.3; }
.mod-txt span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.mod-ex { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 0; border: 0; background: none; font: 600 12.5px/1.2 var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mod-ex::after { content: "→"; text-decoration: none; }
/* the switch: on is black, off is grey */
.sw { position: relative; display: block; width: 46px; height: 26px; margin-top: 8px; cursor: pointer; }
.sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.sw-ui { position: absolute; inset: 0; border-radius: 13px; background: #CFCFCA; transition: background 0.15s; }
.sw-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.sw input:checked + .sw-ui { background: var(--ink); }
.sw input:checked + .sw-ui::after { transform: translateX(20px); }
.sw input:focus-visible + .sw-ui { outline: 2px solid var(--ink); outline-offset: 2px; }
.save-bar { position: sticky; bottom: 0; margin-top: 22px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(255, 255, 255, 0), var(--bg) 30%); z-index: 3; }
.save-bar .btn { width: 100%; }
/* the live example, in the sheet */
.sheet.is-peek { max-width: 440px; }
.peek { width: 100%; height: min(70vh, 720px); border: 1px solid var(--line); background: var(--bg); }
.peek iframe { display: block; width: 100%; height: 100%; border: 0; }
body.is-peek .hdr, body.is-peek .foot, body.is-peek .demo-bar { display: none; }
/* groups of fields as quiet cards, in the family's settings (0.8.2) */
.fgrp { margin-top: 16px; padding: 18px 18px 10px; border: 1px solid var(--line); background: var(--bg); }
.fgrp > .sec-head.left { margin-top: 0; padding-top: 0; }
@media (max-width: 520px) { .fgrp { padding: 14px 14px 8px; } }

/* ---------- the add-ons, in the family's settings (0.9.0) ---------- */
.addons { display: grid; gap: 14px; margin-top: 14px; }
.addon { padding: 18px; border: 1px solid var(--line); background: var(--bg); }
.addon.is-on { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.addon.is-hint { border-color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); }
.addon-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.addon.is-on .mod-ico { background: var(--ink); color: var(--inv-ink); }
.addon-t h2 { font-size: 17px; line-height: 1.25; margin: 0; }
.addon-price { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.addon-price span { font-weight: 400; color: var(--muted); }
.addon-st { font-size: 12px; font-weight: 600; padding: 5px 10px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.addon-st.st-aktivno, .addon-st.st-uradjeno, .addon-st.st-materijal, .addon-st.st-poslato { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.addon-st.st-ceka { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.addon-d { margin: 12px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 64ch; }
.addon-ok { margin: 12px 0 0; font-size: 14.5px; font-weight: 600; }
.addon-note { margin: 0 0 10px; font-size: 14px; }
.addon-buy { margin-top: 14px; }
.addon-area { margin-top: 4px; }
.addon-area .check span { display: block; font-size: 14.5px; line-height: 1.5; }
.addon-how { margin: 4px 0 0; font-size: 14px; }
.addon-pp { min-height: 50px; max-width: 420px; }
.addon-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 2px 0; max-width: 420px; }
.addon-or::before, .addon-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.addon-box { margin-top: 14px; padding: 14px; background: var(--band); }
.addon-box .pay-dl { margin: 0; border-top: 1px solid var(--line); }
.addon-box .pay-dl div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.addon-box .pay-dl dt { color: var(--muted); }
.addon-box .pay-dl dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.addon-qr { margin: 14px 0 0; display: grid; justify-items: start; gap: 6px; font-size: 13px; color: var(--ink-2); }
.addon-qr canvas { width: 170px; height: auto; display: block; }
@media (max-width: 459px) { .addon-box .pay-dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.addon-ask { margin-top: 12px; }
.addon-steps { margin: 12px 0 0; padding-left: 22px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 64ch; list-style: decimal; }
.addon-steps li::marker { font-weight: 700; color: var(--ink); }
.addon-steps li { margin: 2px 0; }
.addon-qs ol { margin: 0 0 6px; padding-left: 22px; font-size: 14px; line-height: 1.6; list-style: decimal; }
.addon-qa { margin: 4px 0 0; padding: 0; border: 0; }
.addon-qa legend { font-weight: 700; font-size: 14px; letter-spacing: .02em; margin: 6px 0 4px; }
.addon-qa .field textarea { min-height: 64px; }
.addon-qa input[type=file] { font: inherit; font-size: 14px; max-width: 100%; }
.addon-qa input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: 13px; padding: 9px 14px; margin-right: 10px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.addon-ask > summary { cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.addon-ask[open] > summary { margin-bottom: 10px; }
.addon > form.stack, .addon-ask form.stack { margin-top: 12px; }
@media (max-width: 520px) { .addon-head { grid-template-columns: 42px minmax(0, 1fr); } .addon-st { grid-column: 1 / -1; justify-self: start; } }


/* ---------- the family grave (0.13.0) ---------- */
.grob-hero { padding-bottom: 40px; }
.grob-k { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); margin-bottom: 10px; }
.grob-photo { margin: 30px 0 0; width: min(100%, 560px); aspect-ratio: 4 / 3; overflow: hidden; background: var(--band-2); border-radius: 999px 999px 0 0; }
.grob-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grob-faces { display: flex; justify-content: center; margin-top: 30px; padding-left: 14px; }
.grob-face { width: clamp(64px, 18vw, 96px); aspect-ratio: 4 / 5; margin-left: -14px; overflow: hidden; border: 3px solid var(--bg); border-radius: 999px 999px 0 0; background: radial-gradient(120% 90% at 50% 20%, #5B5248 0%, #2B2622 70%); display: grid; place-items: center; }
.grob-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.grob-face i { font-family: var(--serif); font-style: normal; font-size: 18px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.82); }
.grob-text { margin-top: 22px; max-width: 34rem; font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.grob-place { margin-top: 14px; font-size: 15px; color: var(--muted); }
.grob-people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.grob-card { flex: 0 0 200px; }
@media (max-width: 599px) { .grob-card { flex-basis: calc(50% - 6px); } }
.grob-in { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px 16px; border: 1px solid var(--line); text-align: center; color: var(--ink); text-decoration: none; transition: border-color 0.2s; }
a.grob-in:hover { border-color: var(--ink); }
.grob-pic { width: clamp(84px, 24vw, 112px); aspect-ratio: 4 / 5; margin-bottom: 10px; overflow: hidden; border-radius: 999px 999px 0 0; background: radial-gradient(120% 90% at 50% 20%, #5B5248 0%, #2B2622 70%); display: grid; place-items: center; }
.grob-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.grob-pic i { font-family: var(--serif); font-style: normal; font-size: 26px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.82); }
.grob-name { font-family: var(--serif); font-size: clamp(16px, 4.2vw, 19px); line-height: 1.25; text-wrap: balance; }
.grob-yrs { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.grob-go { margin-top: 8px; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.grob-ann .ev-body b { font-family: var(--serif); font-size: 19px; }
.grob-ann .ev-body .note { margin-top: 2px; }
.grob-band { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; margin: 0 auto; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); text-align: center; text-decoration: none; }
.grob-band-k { font-family: var(--serif); font-style: italic; color: var(--muted); }
.grob-band b { font-family: var(--serif); font-size: 17px; }
.grob-band:hover b { text-decoration: underline; text-underline-offset: 4px; }
/* in the family's settings */
.grob-link { margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--line); background: var(--band); }
.grob-link p { margin: 0 0 10px; overflow-wrap: anywhere; }
.grob-link .actions { margin: 0; }
.grob-cur { display: flex; align-items: center; gap: 14px; margin: 4px 0 8px; }
.grob-cur img { width: 120px; height: 90px; object-fit: cover; }
.grob-rows { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; }
.grob-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.grob-ord { width: 64px; min-height: 44px; text-align: center; }
.grob-row-n { display: flex; flex-direction: column; gap: 2px; }
.grob-row-n small { color: var(--muted); font-size: 12.5px; }
.grob-row-edit { display: grid; grid-template-columns: minmax(0, 1fr) 88px 88px; gap: 6px; }
.grob-row-edit input { min-height: 44px; min-width: 0; }
.grob-off { border-bottom: 0; padding: 0; align-items: center; }
.grob-off span { font-size: 13.5px; }
.grob-del { margin-top: 30px; }
.grob-del summary { cursor: pointer; font-size: 14px; color: var(--muted); }
@media (max-width: 599px) {
  .grob-row { grid-template-columns: 52px minmax(0, 1fr); }
  .grob-ord { width: 52px; }
  .grob-off { grid-column: 2; }
  .grob-row-edit { grid-template-columns: 1fr 1fr; }
  .grob-row-edit input:first-child { grid-column: 1 / -1; }
}

/* 0.17.0: the QR code for the headstone, for a page of the English site */
.qrfile { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
.qrfile-code canvas { display: block; width: 132px; height: 132px; image-rendering: pixelated; border: 1px solid var(--line, #e5e1da); border-radius: 6px; background: #fff; }
.qrfile-in { flex: 1 1 200px; min-width: 0; }
.qrfile-url { margin: 0 0 10px; font-size: 14px; word-break: break-all; color: var(--muted, #6b6b6b); }
.qrfile-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.qrfile-tips { margin: 8px 0 0; padding-left: 18px; }
.qrfile-tips li { margin: 4px 0; }

/* ---------- a page made for free, paid before it is shared (0.18.0) ---------- */
.unlock-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 14px 0; padding: 12px 14px; background: var(--warn-bg); color: var(--warn); font-size: 14px; }
.unlock-line p { margin: 0; flex: 1 1 22rem; }
.unlock-line .btn { flex: none; }
.unlock { padding: 20px 18px; border: 1px solid var(--ink); background: var(--bg); display: grid; gap: 12px; }
.unlock .eyebrow, .unlock .h2 { margin: 0; }
.unlock-lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 64ch; }
.unlock-ticks { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.6; list-style: disc; }
.unlock-how { margin: 6px 0 0; display: grid; gap: 2px; font-size: 14.5px; }
.unlock-how span { color: var(--muted); font-size: 13.5px; }
.unlock-pp { min-height: 50px; max-width: 420px; }
.unlock .pp-safe { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 420px; }
.unlock.busy { opacity: .6; pointer-events: none; }
.unlock-bank > summary { cursor: pointer; font-weight: 700; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.unlock-bank[open] > summary { margin-bottom: 10px; }
.unlock .pay-slip { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; padding: 14px; background: var(--band); }
.unlock .pay-slip:not(:has(.pay-qr)) { grid-template-columns: minmax(0, 1fr); }
.unlock .pay-qr { margin: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.unlock .pay-qr canvas { width: 150px; height: 150px; display: block; image-rendering: pixelated; }
.unlock .pay-dl { margin: 0; }
.unlock .pay-dl div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.unlock .pay-dl div:last-child { border-bottom: 0; }
.unlock .pay-dl dt { color: var(--muted); }
.unlock .pay-dl dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .unlock .pay-slip { grid-template-columns: minmax(0, 1fr); }
  .unlock .pay-dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
