.topbar { position: sticky; top: env(safe-area-inset-top); z-index: 20; background: rgba(251,248,243,.9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.topbar nav { display: flex; gap: 4px; margin-left: 10px; }
.topbar nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 7px 12px; border-radius: 9px; white-space: nowrap; }
@media (max-width: 560px) { .topbar nav { margin-left: 2px; } .topbar nav a { padding: 7px 8px; } #newBtn { padding: 6px 10px; } .topbar [data-nav="admin"] { display: none; } }
@media (min-width: 561px) { .menu .menu-admin { display: none; } }
.topbar .logo, .topbar #newBtn, .topbar .avatar { flex: none; }
.topbar nav { min-width: 0; overflow: hidden; }
#newBtn { gap: 0; } #newBtn .nb-x { white-space: pre; }
@media (max-width: 440px) { #newBtn .nb-x { display: none; } .topbar .in { gap: 10px; } }
@media (max-width: 380px) { .topbar .in { gap: 6px; padding-left: 12px; padding-right: 12px; } .topbar .logo { font-size: 17.5px; gap: 5px; } .topbar nav a { padding: 7px 6px; font-size: 14px; } }
/* The same squeezes by the header's own width: held sideways or on an iPhone Duo, the camera and side status bar take
   room that the screen-width rules above can't see. (Older browsers without container queries keep the rules above.) */
.topbar { container-type: inline-size; }
@container (max-width: 560px) { .topbar nav { margin-left: 2px; } .topbar nav a { padding: 7px 8px; } #newBtn { padding: 6px 10px; } .topbar [data-nav="admin"], .topbar nav .nav-prints { display: none; } }
@container (max-width: 440px) { #newBtn .nb-x { display: none; } .topbar .in { gap: 10px; } }
@container (max-width: 380px) { .topbar .in { gap: 6px; padding-left: 12px; padding-right: 12px; } .topbar .logo { font-size: 17.5px; gap: 5px; } .topbar nav a { padding: 7px 6px; font-size: 14px; } }
.topbar nav a:hover, .topbar nav a.on { background: var(--surface-2); color: var(--ink); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--honey-soft); color: var(--honey-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; border: 0; cursor: pointer; }
.menu { position: fixed; right: 16px; top: 54px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 210px; z-index: 30; }
.menu .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu .who b { display: block; } .menu .who span { font-size: 13px; color: var(--muted); }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; background: none; border: 0; text-decoration: none; color: var(--ink); font-size: 14.5px; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.page { max-width: 1120px; margin: 0 auto; padding: 26px 16px 80px; }
.page-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(28px, 5vw, 40px); margin: 0; }
.banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--honey-soft); border: 1px solid #f3d9a8; color: var(--honey-ink); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-size: 14.5px; }
.banner b { color: var(--ink); }

/* events list */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ev-card { text-decoration: none; color: inherit; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.ev-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(31,27,22,.1); }
.ev-cover { aspect-ratio: 16/9; background: radial-gradient(120% 90% at 20% 0%, #f7c46f 0%, #e39424 50%, #a86c14 100%); position: relative; }
/* Absolutely placed so the photo never sets the box's height: Android's engine otherwise grew the 16:9 strip to a
   portrait photo's full height. */
.ev-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-cover .pill { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); }
.ev-body { padding: 14px 16px 16px; }
.ev-body h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 2px; }
.ev-stats { display: flex; gap: 14px; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.ev-new { display: grid; place-items: center; min-height: 240px; border: 2px dashed var(--line-2); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink-2); font-weight: 650; background: transparent; }
.ev-new:hover { border-color: var(--honey); color: var(--honey-ink); background: var(--honey-soft); }
.ev-new .plus { font-size: 34px; display: block; text-align: center; line-height: 1; margin-bottom: 6px; }

/* event dashboard */
.tabs-wrap { position: relative; margin-bottom: 22px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  overscroll-behavior-x: contain; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
/* "There's more this way": a fade and a tappable arrow on whichever side has more tabs. */
.tabs-arrow { position: absolute; top: 0; bottom: 1px; width: 44px; display: none; align-items: center; border: 0; padding: 0 6px; margin: 0;
  font: 700 22px/1 var(--sans); color: var(--ink-2); cursor: pointer; z-index: 1; -webkit-tap-highlight-color: transparent; }
.tabs-arrow.l { left: 0; justify-content: flex-start; background: linear-gradient(90deg, var(--bg) 45%, transparent); }
.tabs-arrow.r { right: 0; justify-content: flex-end; background: linear-gradient(270deg, var(--bg) 45%, transparent); }
.tabs-wrap.more-l .tabs-arrow.l, .tabs-wrap.more-r .tabs-arrow.r { display: flex; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 11px 14px; text-decoration: none; color: var(--muted); font-weight: 650; font-size: 14.5px; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--honey); }
.tabs a .n { background: var(--honey); color: var(--ink); border-radius: 99px; font-size: 11px; padding: 1px 7px; margin-left: 5px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px 18px; }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 28px; font-weight: 750; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .bar { margin-top: 10px; }
.two { display: grid; grid-template-columns: 1fr; gap: 16px; }
/* On phones (one column) the setup / quick-actions box comes first; latest uploads follow (they're on Photos too). */
@media (min-width: 860px) { .two { grid-template-columns: 1.3fr 1fr; } }
.qr-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr-box img { width: 150px; height: 150px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.link-row { display: flex; gap: 8px; margin: 10px 0; }
.link-row input { flex: 1; min-width: 0; }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; margin-top: 1px; }
.checklist .done .tick { background: var(--ok); border-color: var(--ok); }
.checklist b { display: block; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 6px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.selbar { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 15; margin-top: 16px; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.selbar .btn { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; }
.selbar .btn.danger { color: #ff9b91; }
.people { width: 100%; border-collapse: collapse; }
.people th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 650; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.people td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.people tr:last-child td { border-bottom: 0; }
.people .blocked td:first-child { text-decoration: line-through; color: var(--muted); }
@media (max-width: 640px) { .people .hide-sm { display: none; } }
.cover-edit { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cover-edit .prev { width: 180px; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 20% 0%, #f7c46f 0%, #e39424 50%, #a86c14 100%); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600; }
.cover-edit .prev img { width: 100%; height: 100%; object-fit: cover; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.danger-zone { border-color: #f1c9c5; }
.upload-mini { margin: 0 0 14px; padding: 12px 14px; }
.kit { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .kit { grid-template-columns: 320px 1fr; } }
.kit .big-qr { width: 100%; max-width: 280px; aspect-ratio: 1; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: block; margin: 0 auto 14px; }
.kit-option { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.kit-option:first-of-type { border-top: 0; }
.kit-option .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--honey-soft); display: grid; place-items: center; font-size: 22px; flex: none; }
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: stretch; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; padding: 26px 22px 22px; display: flex; flex-direction: column; }
.plan h3 { font-family: var(--serif); font-size: 24px; margin: 0; }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 6px; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 8px 0 20px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 14.5px; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 11px; font-weight: 900; display: grid; place-items: center; }
.plan.featured { border: 2px solid var(--honey); box-shadow: 0 12px 40px rgba(227,148,36,.18); }
.plan.current { background: var(--surface-2); }
.plan .ribbon { position: absolute; top: -12px; left: 22px; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "–"; background: var(--surface-2); color: var(--faint); }
.tabs a .lock { color: var(--honey-2); margin-left: 5px; font-size: 12px; }
.locked { max-width: 620px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 10px 0 6px; }
.swatch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.swatch.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.styles { display: grid; gap: 8px; margin-top: 10px; }
.style { text-align: left; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.style small { color: var(--muted); font-size: 12.5px; }
.style.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.phone-frame { width: 100%; max-width: 330px; aspect-ratio: 9/17; margin: 8px auto 0; border-radius: 28px; overflow: hidden; border: 8px solid #1f1b16; background: #fff; }
.phone-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.admin-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 16px; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-actions select { background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 8px; font-size: 13.5px; min-height: 34px; }

/* print-kit template picker */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, 150px); gap: 14px; justify-content: start; margin: 16px 0 6px; }
@media (max-width: 420px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
.tpl { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tpl-frame { display: block; width: 150px; height: 215.3px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 4px 14px rgba(31, 27, 22, .08); transition: box-shadow .15s, transform .15s; }
.tpl-frame iframe { width: 378px; height: 542.4px; border: 0; transform: scale(var(--tpl-s, .3968)); transform-origin: 0 0; pointer-events: none; display: block; }
.tpl:hover .tpl-frame { transform: translateY(-2px); }
.tpl:focus-visible .tpl-frame { box-shadow: 0 0 0 2px var(--ink), 0 4px 14px rgba(31, 27, 22, .08); }
.tpl.on .tpl-frame { box-shadow: 0 0 0 3px var(--honey), 0 6px 18px rgba(31, 27, 22, .14); }
.tpl b { font-size: 14px; margin-top: 7px; }
.tpl small { font-size: 12px; color: var(--muted, #8a8076); line-height: 1.3; }
@media (max-width: 420px) { .tpl-frame { width: 100%; height: auto; aspect-ratio: 100 / 143.5; } }
.tpl-controls { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
@media (min-width: 700px) { .tpl-controls { grid-template-columns: 1fr 260px; align-items: end; } }
.tpl-controls .lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12) inset; padding: 0; }
.sw.auto { width: auto; padding: 0 10px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; color: var(--ink); }
.sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

.tpl-group { margin-top: 18px; }
.tpl-group h3 { font-size: 15px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.tpl-group .tpl-grid { margin-top: 0; }
.tpl-frame { position: relative; }
.tpl.locked .tpl-frame iframe { opacity: .92; }
.tpl-lock { position: absolute; top: 8px; left: 8px; background: rgba(31, 27, 22, .88); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(31, 27, 22, .45); display: grid; place-items: center; padding: 16px;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.modal { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; max-width: 620px; max-height: 92dvh; overflow: auto; display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .modal { grid-template-columns: 240px 1fr; } }
.modal-pv { background: var(--surface-2); padding: 18px; display: grid; place-items: center; overflow: hidden; min-width: 0; }
/* The card preview is a full-size (100mm) page scaled down; the box reserves exactly the scaled size so nothing overflows. */
.modal-pv .pv-box { --s: .54; width: calc(378px * var(--s)); height: calc(542.4px * var(--s)); overflow: hidden; border-radius: 6px; box-shadow: 0 6px 20px rgba(31, 27, 22, .16); background: #fff; }
.modal-pv iframe { display: block; width: 378px; height: 542.4px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; pointer-events: none; }
@media (max-width: 639px) { .modal-pv { padding: 16px; } .modal-pv .pv-box { --s: .42; } .modal-body { padding: 18px 18px 20px; } .modal-body h2 { font-size: 24px; } }
.modal-body { padding: 22px; }
.modal-body h2 { font-family: var(--serif); font-size: 28px; margin: 10px 0 4px; }

/* custom short link */
.alias-row { display: flex; align-items: stretch; border: 1px solid var(--line-2, var(--line)); border-radius: 12px; background: var(--surface); overflow: hidden; }
.alias-row:focus-within { border-color: var(--honey); box-shadow: 0 0 0 3px var(--honey-soft); }
.alias-pre { display: flex; align-items: center; padding-left: 12px; color: var(--muted); white-space: nowrap; font-size: 15px; }
.alias-row input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; outline: 0; background: transparent; padding: 11px 12px 11px 1px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); }
.alias-msg { min-height: 20px; margin: 6px 0 8px; font-size: 13.5px; color: var(--muted); }
.alias-msg.ok { color: #2f7a4f; } .alias-msg.bad { color: var(--bad); }

/* TV pairing */
.tv-code-in { font-size: 24px !important; font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.tv-evs { display: grid; gap: 8px; margin-top: 4px; }
.tv-ev { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.tv-ev:has(input:checked) { border-color: var(--honey); background: var(--honey-soft); }
.tv-ev input { width: 18px; height: 18px; accent-color: var(--honey-2); }
.tv-ev b { display: block; } .tv-ev small { color: var(--muted); }
.hint.ok { color: #2f7a4f; } .hint.err { color: var(--bad); }

.tile .cm-badge { position: absolute; left: 6px; bottom: 6px; background: rgba(31, 27, 22, .72); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px; pointer-events: none; }
.tile .rep-badge { position: absolute; left: 6px; top: 6px; background: #d64545; color: #fff; font-size: 12px; font-weight: 800; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; pointer-events: none; }
.banner.warn-banner { background: #fdecea; border-color: #f3c3bd; color: #8c2a20; }

.tv-tip { margin-top: 14px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); }
.tv-tip ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.5; } .tv-tip li + li { margin-top: 4px; }

.modal.tv-ok { max-width: 440px; grid-template-columns: 1fr; text-align: center; }
.modal.tv-ok .tv-tip { text-align: left; }
.tv-ok-icon { width: 56px; height: 56px; margin: 4px auto 6px; border-radius: 50%; background: #e3f3e8; color: #2f7a4f; display: grid; place-items: center; font-size: 28px; font-weight: 800; }

.tv-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.tv-steps li { display: flex; gap: 12px; align-items: flex-start; }
.tv-steps li > div { flex: 1; min-width: 0; font-weight: 600; }
.tv-steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--honey); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-top: -2px; }
.tv-steps small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.tv-steps small.ok { color: #2f7a4f; } .tv-steps small.err { color: var(--bad); }
.tv-url { display: block; width: fit-content; max-width: 100%; margin-top: 8px; padding: 10px 16px; border-radius: 12px; background: var(--honey-soft); color: var(--honey-ink); border: 1.5px dashed var(--honey);
  font-size: 22px; font-weight: 800; letter-spacing: .01em; word-break: break-all; }

.checklist.quick .qico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--honey-soft); display: grid; place-items: center; font-size: 17px; }

/* Android app */
.app-note { display: inline-block; font-size: 13px; font-weight: 600; color: var(--honey-ink); background: var(--honey-soft); border-radius: 999px; padding: 6px 12px; }

/* Albums: one card per upload batch, then that album's photos in the normal grid */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
@media (max-width: 560px) { .album-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.album-card { position: relative; display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 8px 8px 12px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; }
.album-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.album-card .mosaic { display: grid; gap: 2px; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--surface-2); margin-bottom: 7px; }
.album-card .mosaic.n2, .album-card .mosaic.n3, .album-card .mosaic.n4 { grid-template-columns: 1fr 1fr; }
.album-card .mosaic.n3 img:first-child { grid-row: span 2; }
.album-card .mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.album-card b { font-size: 15px; line-height: 1.25; padding: 0 4px; }
.album-card small { color: var(--muted); font-size: 12.5px; padding: 0 4px; line-height: 1.35; }
.album-card .flag { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.album-card .flag.pending { background: var(--honey); color: var(--ink); }
.album-card .flag.hidden { background: var(--ink); color: #fff; }
.album-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.album-head .grow { min-width: 0; } .album-head .grow b, .album-head .grow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-head .icon-btn { flex: none; border-radius: 50%; }
.album-head .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.album-head .alb-del { color: var(--bad); } .album-head .alb-del:hover { background: var(--bad-soft); border-color: #f1c9c5; color: var(--bad); }
.album-head b { display: block; font-size: 16px; }
.album-head small { color: var(--muted); font-size: 13px; }

/* Photos & videos: the filters scroll sideways in one line (like the tabs), and the actions sit together below. */
.chips-wrap { margin-bottom: 10px; }
.hscroll { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x;
  -webkit-overflow-scrolling: touch; padding: 1px 0 2px; }
.hscroll::-webkit-scrollbar { display: none; }
.chips.hscroll { flex-wrap: nowrap; margin-bottom: 0; }
.hscroll .chip { flex: none; white-space: nowrap; }
.chips-wrap .tabs-arrow { bottom: 0; }
.photo-actions { display: flex; gap: 8px; margin-bottom: 14px; justify-content: flex-end; }
.photo-actions .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .photo-actions .btn { flex: 1; justify-content: center; padding-left: 8px; padding-right: 8px; }
  .photo-actions #dlAll { flex: 1.4; }
}

/* New dashboard content stays invisible until app.js fades it in (see reveal in app.js). */
#view.pre, #tab.pre { opacity: .01; } /* not 0: at 0 iPhones skip drawing it, so the drawing lands in the fade's first frame */

/* ---- Invitations tab ---- */
.inv-switch { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
.inv-switch a { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.inv-switch a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(31, 27, 22, .12); }
.inv-switch .n { background: var(--honey); color: #1f1b16; border-radius: 99px; font-size: 11.5px; padding: 1px 7px; }
.inv-kit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.inv-main > .card, .inv-side { min-width: 0; }
.inv-main { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 980px) { .inv-kit { grid-template-columns: minmax(0, 1fr) 340px; } .inv-side { position: sticky; top: 76px; } }
/* On phones the live preview sits under the design gallery. */
@media (max-width: 979px) { .inv-side { order: -1; } .inv-pv-card { display: grid; grid-template-columns: minmax(0, 190px) 1fr; gap: 14px; align-items: start; } .inv-pv-card > p { grid-column: 1 / -1; } }
.inv-pv { --s: .8; width: 100%; aspect-ratio: 100 / 143.5; overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(31, 27, 22, .12); background: #fff; }
.inv-pv iframe { width: 378px; height: 542.4px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; pointer-events: none; display: block; }
.inv-print { display: grid; gap: 8px; margin-top: 14px; }
@media (max-width: 979px) { .inv-print { margin-top: 0; } .inv-print .btn { font-size: 13.5px; min-height: 42px; padding: 8px 10px; } }
.inv-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.inv-fields .field { margin: 8px 0; min-width: 0; }
.inv-fields .field.wide { grid-column: 1 / -1; }
.inv-fields .field[hidden] { display: none; }
.inv-fields textarea { min-height: 64px; }
@media (max-width: 520px) { .inv-fields { grid-template-columns: 1fr; } }
.inv-qr { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 12px; }
.inv-qr label { position: relative; cursor: pointer; }
.inv-qr input { position: absolute; opacity: 0; }
.inv-qr span { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; height: 100%; }
.inv-qr small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.inv-qr input:checked + span { border-color: var(--honey); background: var(--honey-soft); }
.sw-sep { width: 1px; align-self: stretch; background: var(--line-2); margin: 0 4px; }
#designs .tpl-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
#designs .tpl-frame { width: 100%; height: auto; aspect-ratio: 100 / 143.5; }
#designs .tpl b { font-size: 13px; }

/* ---- RSVPs ---- */
.rsvp-stats { grid-template-columns: repeat(3, 1fr); }
.rsvp-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.rsvp-tools .chips { margin: 0; flex-wrap: nowrap; }
.rsvp-tools .input { max-width: 240px; min-height: 40px; padding: 8px 12px; }
@media (max-width: 560px) { .rsvp-tools .input { max-width: none; } }
.rsvp-list { display: grid; }
.rsvp-row { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.rsvp-row:first-child { border-top: 0; }
.rsvp-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 2px; }
.rsvp-note { font-style: italic; color: var(--ink-2); margin: 4px 0; font-size: 14.5px; }
.rsvp-act { display: flex; gap: 4px; flex: none; }
.modal.single { grid-template-columns: 1fr !important; max-width: 480px; }
.modal.single .modal-body { padding: 22px; }
.seg-radio { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.seg-radio label { position: relative; cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; }
.seg-radio span { display: block; text-align: center; padding: 11px; border: 1.5px solid var(--line-2); border-radius: 12px; font-weight: 700; }
.seg-radio input:checked + span { border-color: var(--honey); background: var(--honey-soft); }
.rs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.rs-two .field, .modal.single .field { margin: 8px 0; }
.yes-only[hidden] { display: none; }

/* ---- Menu tab ---- */
.inv-switch.hscroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.inv-switch a { white-space: nowrap; }
.inv-switch .lock { color: var(--honey-ink); font-size: 12px; }
.mn-course { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-top: 12px; background: var(--surface-2); }
.mn-chead { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.mn-chead .input { flex: 1; min-width: 0; font-weight: 700; }
.mn-opt { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 8px 0; display: grid; gap: 6px; }
.mn-orow { display: flex; gap: 6px; }
.mn-orow .input:first-child { flex: 1; min-width: 0; }
.mn-opt .input { min-height: 40px; padding: 8px 12px; }
.mn-opt .small-in { font-size: 14px; }
.mn-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mn-tags label { position: relative; cursor: pointer; }
.mn-tags input { position: absolute; opacity: 0; }
.mn-tags span { display: inline-block; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; color: var(--muted); }
.mn-tags input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.mt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 20px; }
.mt-grid h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
.mt-row { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.mt-row b { font-size: 16px; }
.mt-row small { color: var(--muted); font-size: 12px; }
.mt-row em { font-style: normal; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rsvp-picks { list-style: none; padding: 0; margin: 4px 0; font-size: 13.5px; }
.rsvp-picks li { margin: 2px 0; }
.mt-menu { font-family: var(--serif); font-size: 17px; margin: 14px 0 0; }

/* Second row: the pages inside a tab (Album → Photos & videos · Guests · Guestbook, and so on). */
.subtabs { display: flex; gap: 4px; padding: 4px; margin: 14px 0 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.subtabs a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(31, 27, 22, .12); }
.subtabs .n { background: var(--honey); color: #1f1b16; border-radius: 99px; font-size: 11px; padding: 1px 7px; }
.subtabs .lock { color: var(--honey-2); font-size: 12px; }
.tabs-wrap + .subtabs { margin: -8px 0 18px; }

/* ---- Planning: checklist & budget ---- */
.plan-locked, .empty-plan { text-align: center; max-width: 560px; margin: 0 auto; }
.plan-locked h2, .empty-plan h2 { font-family: var(--serif); font-size: 26px; margin: 8px 0 6px; }
.plan-head { margin-bottom: 14px; }
.tiny-switch { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.task-add { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.task-add .input:first-child { flex: 1 1 220px; min-width: 0; }
.task-add select.input { flex: 0 1 190px; width: auto; }
.plan-sec, .budget-cat { padding: 6px 16px 10px; margin-bottom: 12px; }
.plan-sec-h { display: flex; align-items: baseline; gap: 10px; padding: 10px 0 6px; border-bottom: 1px solid var(--line); }
.plan-sec-h b { font-size: 15.5px; }
.plan-sec-h span { font-size: 13px; }
.late { color: var(--bad) !important; font-weight: 600; }
.task { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.plan-sec-h + .task { border-top: 0; }
.task-t { font-size: 15px; line-height: 1.35; }
.task.done .task-t, .task.mini.done .grow { color: var(--muted); text-decoration: line-through; }
.tick { position: relative; flex: none; width: 24px; height: 24px; cursor: pointer; margin-top: 1px; }
.tick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tick span { position: absolute; inset: 0; border: 2px solid var(--line-2); border-radius: 7px; background: var(--surface); transition: background .15s, border-color .15s; }
.tick input:checked + span { background: var(--honey); border-color: var(--honey); }
.tick input:checked + span::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #1f1b16; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tick input:focus-visible + span { outline: 2px solid var(--honey); outline-offset: 2px; }
.icon-btn.sm { width: 34px; height: 34px; flex: none; }
.plan-card { margin: 16px 0; }
.task.mini { padding: 8px 0; cursor: pointer; align-items: center; font-size: 14.5px; }
.task.mini:first-of-type { border-top: 0; margin-top: 8px; }
.budget-stats .v input.budget-total { width: 100%; border: 0; border-bottom: 1.5px dashed var(--line-2); background: transparent; font: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; color: inherit; padding: 0; outline: none; -webkit-appearance: none; border-radius: 0; }
.budget-stats .v input.budget-total:focus { border-bottom-color: var(--honey); }
.budget-stats .stat.over .v { color: var(--bad); }
@media (min-width: 700px) { .budget-stats { grid-template-columns: repeat(4, 1fr); } }
.budget-bar { position: relative; height: 12px; }
.budget-bar i.over { background: var(--bad); }
.budget-bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 2px; }
.budget-cat { margin-top: 12px; }
.bitem { padding: 10px 0; border-top: 1px solid var(--line); }
.plan-sec-h + .bitem { border-top: 0; }
.bitem-h { display: flex; gap: 10px; align-items: flex-start; }
.bnums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.bnums label span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.bnums input { width: 100%; min-width: 0; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font: inherit; font-weight: 600; background: var(--surface); }
.bnums input:focus { border-color: var(--honey); outline: none; box-shadow: 0 0 0 3px rgba(242,169,59,.18); }
.budget-cat > .btn { margin-top: 6px; }
.rs-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
.budget-bar { overflow: visible; }
.budget-bar > i { border-radius: 99px; }
.plan-intro { margin: 10px 0 -2px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--honey-ink); }

/* New event: what are you celebrating? */
/* New event: the occasion picker — line icons in a honey disc, a card that lifts on hover and fills when chosen. */
.eyebrow-step { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--honey-ink); margin-bottom: 6px; }
.occ-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; margin: 8px 0 8px; }
.occ-pick label { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.occ-pick input { position: absolute; opacity: 0; pointer-events: none; }
.occ-pick span { position: relative; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding: 18px 8px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center;
  box-shadow: 0 1px 2px rgba(31,27,22,.04); transition: border-color .18s, box-shadow .18s, transform .18s, background .18s; }
.occ-pick span i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--honey-soft); color: var(--honey-ink); transition: background .18s, color .18s, transform .18s; }
.occ-pick svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.occ-pick span b { font-size: 14px; font-weight: 650; line-height: 1.25; color: var(--ink); letter-spacing: -.005em; }
@media (hover: hover) { .occ-pick label:hover span { border-color: var(--line-2); box-shadow: 0 6px 18px rgba(31,27,22,.08); transform: translateY(-2px); } .occ-pick label:hover span i { transform: scale(1.05); } }
.occ-pick input:checked + span { border-color: var(--honey); background: #fffaf1; box-shadow: 0 0 0 3px rgba(242,169,59,.2), 0 6px 18px rgba(242,169,59,.14); }
.occ-pick input:checked + span i { background: var(--honey); color: #1f1b16; }
.occ-pick input:checked + span::after { content: ""; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--honey)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.5' fill='none' stroke='%231f1b16' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.occ-pick input:focus-visible + span { outline: 2px solid var(--honey); outline-offset: 2px; }
@media (max-width: 600px) { .occ-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .occ-pick span { padding: 14px 4px 12px; gap: 8px; } .occ-pick span i { width: 46px; height: 46px; } .occ-pick svg { width: 27px; height: 27px; } .occ-pick span b { font-size: 13px; } }

/* Overview: "Get set up" and Planning side by side on wide screens, stacked on phones; latest uploads below. */
.half { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 16px 0; align-items: start; }
@media (min-width: 860px) { .half { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.half > .plan-card { margin: 0; }
.clear-all { text-align: center; margin: 22px 0 6px; }

/* Event cards without a cover photo: a slim header with a prompt, instead of a big empty panel. */
.ev-nocover { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 0; }
.add-cover { font-size: 13px; font-weight: 700; color: var(--honey-ink); padding: 5px 10px; border-radius: 99px; background: var(--honey-soft); cursor: pointer; }
.add-cover:hover, .add-cover:focus-visible { background: var(--honey); color: #1f1b16; outline: none; }
#coverCard.flash { animation: cflash 1.6s ease-out; }
@keyframes cflash { 0%, 40% { box-shadow: 0 0 0 3px var(--honey); } 100% { box-shadow: var(--shadow); } }

/* Overview planning card: as tall as "Get set up" beside it, tasks fill the middle, budget sits at the bottom. */
.half { align-items: stretch; }
.plan-card { display: flex; flex-direction: column; }
.plan-tasks { position: relative; flex: 1; }
.plan-tasks .task.mini[hidden] { display: none; }
.plan-budget { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.pb-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.pb-nums span { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); }
.pb-nums b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pb-nums .over b { color: var(--bad); }
.plan-budget .bar i.over { background: var(--bad); }
.plan-start .pt-in { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 16px 0; }
@media (min-width: 860px) {
  /* The task list takes no height of its own, so the card never stretches "Get set up"; fitPlanCard hides rows that don't fit. */
  .half .plan-tasks { min-height: 150px; }
  .half .plan-tasks .pt-in { position: absolute; inset: 0; overflow: hidden; }
  .half .plan-start .pt-in { padding: 0; }
}
.task-add input[type="date"].input { flex: 0 1 170px; width: auto; min-height: 46px; }

/* ---- Event website editor ---- */
.site-pv { --s: .8; width: 100%; aspect-ratio: 390 / 760; overflow: hidden; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(31,27,22,.14); background: #fff; }
.site-pv iframe { width: 390px; height: 760px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; display: block; }
@media (max-width: 979px) { .site-kit .inv-side { order: 0; } .site-pv-card { display: block; } .site-pv { max-width: 300px; margin: 0 auto; } }
.site-sec { border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; background: var(--surface); }
.site-sec.off .site-sec-t { opacity: .5; }
.site-sec-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.site-sec-t { all: unset; flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; }
.site-sec-t b { font-size: 15px; } .site-sec-t small { font-size: 12px; color: var(--muted); }
.site-sec.open { border-color: var(--honey); }
.site-sec-b { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.site-sec-b .field { margin: 10px 0; }
.site-rows { display: grid; gap: 8px; margin: 8px 0; }
.site-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 8px; background: var(--surface-2); border-radius: 12px; align-items: start; }
.site-row > :not(.icon-btn) { grid-column: 1; }
.site-row .icon-btn { grid-column: 2; grid-row: 1; }
.site-rows.t-schedule .site-row { grid-template-columns: 88px minmax(0, 1fr) auto; }
.site-rows.t-schedule .site-row > :not(.icon-btn) { grid-column: auto; }
.site-rows.t-schedule .site-row .icon-btn { grid-column: 3; }
.site-row textarea { width: 100%; min-height: 60px; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font: inherit; background: var(--surface); }
.site-row .input { min-height: 40px; padding: 8px 10px; }
.mini-switch { position: relative; width: 38px; height: 22px; flex: none; cursor: pointer; }
.mini-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mini-switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .15s; }
.mini-switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.mini-switch input:checked + span { background: #2f9e62; } .mini-switch input:checked + span::after { transform: translateX(16px); }
.site-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.site-photos button { all: unset; cursor: pointer; border-radius: 10px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 0 0 1px var(--line); position: relative; }
.site-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-photos button.on { box-shadow: 0 0 0 3px var(--honey); } .site-photos button.on::after { content: '✓'; position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--honey); color: #1f1b16; font-weight: 900; font-size: 12px; display: grid; place-items: center; }
.tpl-match { font-size: 11.5px; font-weight: 700; color: var(--honey-ink); }
.site-design-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }

/* Design galleries: one sideways-scrolling row per plan tier, with round arrows either side (invitations, QR cards, website). */
.tpl-row { margin: 0; }
.tpl-row .tpl-grid.hscroll { display: flex; gap: 14px; margin: 0; padding: 4px 4px 8px; touch-action: auto; scroll-snap-type: x proximity; scroll-padding: 0 4px; }
.tpl-row .tpl { flex: none; width: 150px; scroll-snap-align: start; }
.tpl-row .tpl-frame, #designs .tpl-row .tpl-frame { width: 150px; height: 215.3px; aspect-ratio: auto; }
.tpl-row .tabs-arrow { top: 4px; bottom: auto; height: 215px; width: 52px; background: none; padding: 0; font-size: 0; }
.tpl-row .tabs-arrow::before { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 22px/1 var(--sans); padding-bottom: 3px;
  background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 4px 14px rgba(31, 27, 22, .16); }
.tpl-row .tabs-arrow.l { justify-content: flex-start; background: linear-gradient(90deg, var(--surface) 20%, transparent); }
.tpl-row .tabs-arrow.r { justify-content: flex-end; background: linear-gradient(270deg, var(--surface) 20%, transparent); }
.tpl-row .tabs-arrow.l::before { content: '‹'; margin-left: 2px; }
.tpl-row .tabs-arrow.r::before { content: '›'; margin-right: 2px; }
@media (max-width: 420px) {
  .tpl-row .tpl, .tpl-row .tpl-frame, #designs .tpl-row .tpl-frame { width: 128px; }
  .tpl-row .tpl-frame, #designs .tpl-row .tpl-frame { height: 183.7px; }
  .tpl-row .tabs-arrow { height: 184px; width: 44px; }
  .tpl-row .tabs-arrow::before { width: 32px; height: 32px; font-size: 20px; }
}
.kit .tpl-row .tpl small { white-space: normal; }
.site-kit .seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.site-kit .seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 650; font-size: 14px; color: var(--muted); cursor: pointer; }
.site-kit .seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(31, 27, 22, .12); }
.site-kit .seg button:disabled { opacity: .45; cursor: not-allowed; }
/* Grid columns holding a scrolling row must be allowed to shrink, or the row stretches the page instead of scrolling. */
.kit > *, .inv-kit > *, .inv-main > .card { min-width: 0; }

/* Admin → Backups */
.bk-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.bk-head h2 { font-size: 20px; margin: 0; }
.bk-head p { margin: 4px 0 0; }
.bk-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; background: var(--surface-2); color: var(--muted); }
.bk-head.ok .bk-icon { background: #e7f5ea; color: #2e7d46; }
.bk-head.bad .bk-icon { background: #fdecea; color: #b3261e; }
.bk-head.run .bk-icon { background: var(--honey-soft); color: var(--honey-ink); }
.bk-h { font-size: 16px; margin: 0; padding: 16px 18px 10px; }
/* Admin → Processing */
.proc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.proc-m.off { opacity: .75; }
.proc-mh { display: flex; align-items: flex-start; gap: 12px; }
.proc-mh h3 { font-size: 18px; margin: 0; }
.proc-lanes { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.proc-lane { display: flex; flex-direction: column; gap: 2px; }
.proc-lane b { font-size: 18px; font-variant-numeric: tabular-nums; }
.proc-job { display: flex; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.proc-job b { font-size: 14px; margin-right: 6px; }
.proc-job .bar { margin-top: 8px; }
.pill.bad { background: #fdecea; color: #b3261e; }

/* Photos → Recently deleted */
.bin-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.bin-head p { margin: 4px 0 0; max-width: 620px; }
.bin-head .grow { flex: 1 1 260px; } /* phones: the buttons drop below the text rather than squeezing it */
.tile .flag.bin-left { background: rgba(31, 27, 22, .78); color: #fff; }
.bin-voice { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; font-size: 26px; background: var(--surface-2); }
.bin-voice small { font-size: 11px; color: var(--muted); font-weight: 600; }
#binGrid .tile img { opacity: .85; }

/* ---- Bottom navigation inside an event (phones) ----
   A floating "glass" capsule (the iOS Liquid Glass look, used on Android too): frosted, translucent, with a lighter pill
   that glides to the current section and a little bounce on the icon you tap. Content scrolls underneath it. */
.bnav, .fab { display: none; }
.head-gear { display: none; }
/* "View guest page": a button beside the event name on wider screens; on phones a ↗ beside the gear that opens out. */
.head-tools { display: none; }
/* (Below 760px, or beside an upright iPhone Duo bar: html.bn — see bottomNav.) */
html.bn body.has-bnav { --bnav-space: calc(84px + env(safe-area-inset-bottom)); padding-bottom: var(--bnav-space); }
html.bn .has-bnav .main-tabs { display: none; }
html.bn .bnav { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 2px);
  display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); padding: 6px; border-radius: 34px;
  background: rgba(255, 253, 249, .58); -webkit-backdrop-filter: blur(22px) saturate(1.9); backdrop-filter: blur(22px) saturate(1.9);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 12px 34px rgba(31, 27, 22, .16), 0 2px 6px rgba(31, 27, 22, .06), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(31, 27, 22, .04);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
html.bn .bnav[hidden] { display: none; }
/* The pill: one fifth of the bar, slid along by --i with a slightly springy ease. */
html.bn .bnav-pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / var(--n, 5)); border-radius: 28px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 246, 228, .8));
  box-shadow: 0 1px 2px rgba(31, 27, 22, .08), 0 4px 14px rgba(242, 169, 59, .18), inset 0 0 0 1px rgba(255, 255, 255, .9);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s cubic-bezier(.3, 1.3, .45, 1), opacity .25s; }
html.bn .bnav.none .bnav-pill { opacity: 0; }
html.bn .bnav a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px;
  padding: 4px 2px; text-decoration: none; color: #6d6358; font-size: 11px; font-weight: 650; letter-spacing: .01em; border-radius: 28px;
  -webkit-tap-highlight-color: transparent; transition: color .25s; }
html.bn .bnav .ico { display: grid; place-items: center; }
html.bn .bnav svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke-width .2s; }
html.bn .bnav a.on { color: var(--ink); }
html.bn .bnav a.on svg { stroke-width: 2.15; }
html.bn .bnav a.on .ico { animation: bn-pop .45s cubic-bezier(.34, 1.56, .64, 1); }
html.bn .bnav a:active .ico { transform: scale(.9); transition: transform .1s; }
@keyframes bn-pop { 0% { transform: scale(.8) translateY(2px); } 60% { transform: scale(1.12) translateY(-1px); } 100% { transform: none; } }
html.bn .bnav .n { position: absolute; top: 3px; left: calc(50% + 5px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: #e5484d; color: #fff;
  font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px rgba(255, 253, 249, .9); }
html.bn .bnav .star { position: absolute; top: 4px; left: calc(50% + 8px); font-size: 10px; color: var(--honey-ink); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { html.bn .bnav-pill, html.bn .bnav a.on .ico { transition: none; animation: none; } }
/* Things that sit at the bottom move up above the bar. */
html.bn .has-bnav .selbar { bottom: calc(var(--bnav-space) + 4px); }
html.bn .has-bnav .toast { bottom: calc(var(--bnav-space) + 8px); }
/* Keyboard up: the bar (and the + button) get out of the way. */
html.bn .kb-open .bnav { transform: translateY(140%); opacity: 0; }
html.bn .kb-open.has-bnav .selbar { bottom: max(12px, env(safe-area-inset-bottom)); }
/* Settings gear, top-right of the event header. */
html.bn .has-bnav .page-head { position: relative; }
html.bn .has-bnav .page-head > .grow { flex: 1 1 100%; padding-right: 100px; }
html.bn .has-bnav .head-gear { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--ink-2); flex: none; position: absolute; top: -4px; right: 0; }
html.bn .has-bnav .head-gear svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html.bn .has-bnav .head-gear.on { background: var(--surface-2); color: var(--ink); }
html.bn .has-bnav .head-guest { display: none; }
html.bn .has-bnav .head-tools { display: flex; gap: 8px; position: absolute; top: -4px; right: 0; z-index: 2; }
html.bn .has-bnav .head-tools .head-gear { position: static; }
html.bn .head-guest-ic { display: inline-flex; align-items: center; gap: 8px; height: 42px; max-width: 42px; padding: 0 11px; overflow: hidden; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2); text-decoration: none; font: 700 14.5px/1 var(--sans);
  -webkit-tap-highlight-color: transparent; transition: max-width .38s cubic-bezier(.2, .8, .2, 1), background .25s, color .25s, border-color .25s, box-shadow .25s; }
html.bn .head-guest-ic svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.bn .head-guest-ic span { opacity: 0; transition: opacity .2s; }
html.bn .head-guest-ic.open { max-width: 220px; background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(31, 27, 22, .22); }
html.bn .head-guest-ic.open span { opacity: 1; transition-delay: .1s; }
/* The floating + (Photos): springs in once the Add button has scrolled away. */
html.bn .fab { display: grid; place-items: center; position: fixed; z-index: 39; right: 16px; bottom: calc(var(--bnav-space, env(safe-area-inset-bottom)) + 12px);
  width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; color: var(--ink); -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, #f7bb55, var(--honey)); box-shadow: 0 10px 24px rgba(200, 130, 20, .35), 0 2px 6px rgba(31, 27, 22, .12), inset 0 1px 0 rgba(255, 255, 255, .45);
  opacity: 0; pointer-events: none; transform: translateY(24px) scale(.4) rotate(-90deg);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .2s; }
html.bn .fab.show { opacity: 1; pointer-events: auto; transform: none; }
html.bn .fab:active { transform: scale(.92); transition: transform .1s; }
html.bn .fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
html.bn .kb-open .fab { opacity: 0; pointer-events: none; }

/* ---- iPhone Duo: the bar stands upright down one side ----
   On the Duo's outer screen (and the inner one held sideways) iOS puts the status bar and every app's tab bar down the
   side, next to the camera. html[data-rail=right|left] (set by railEdge in app.js) turns the capsule into a rail on that
   side: icons only, as Apple's own side bars are, with the names kept for VoiceOver. On a Duo it sits in the strip iOS
   keeps clear down that side (--rail-in, the safe-area inset), under the clock and camera, as Apple's own bars do;
   where there's no such strip (?rail= in a browser) it floats at the edge and the page stops short of it. */
html[data-rail=right] { --rail-in: env(safe-area-inset-right); }
html[data-rail=left] { --rail-in: env(safe-area-inset-left); }
html[data-rail] { --rail: 72px; --rail-edge: max(8px, calc((var(--rail-in) - var(--rail)) / 2));
  --rail-pad: max(16px, calc(var(--rail-edge) + var(--rail) + 8px - var(--rail-in)));
  /* It runs the full height: in the strip it starts under the clock and camera (164px), otherwise under the header. */
  --rail-top: min(164px, max(72px, calc(var(--rail-in) * 1000))); --rail-bottom: max(12px, env(safe-area-inset-bottom)); }
/* The header still runs full width (the rail sits below it); the page itself stops short. */
html[data-rail=right] .has-bnav #view { padding-right: var(--rail-pad); }
html[data-rail=left] .has-bnav #view { padding-left: var(--rail-pad); }
html[data-rail] body.has-bnav { --bnav-space: env(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); }
html[data-rail] .bnav { left: auto; right: auto; top: var(--rail-top); bottom: var(--rail-bottom); width: var(--rail); transform: none;
  grid-template-columns: none; grid-template-rows: repeat(var(--n, 5), 1fr);
  --rail-slot: calc((100dvh - var(--rail-top) - var(--rail-bottom) - 12px) / var(--n, 5)); }
html[data-rail=right] .bnav { right: var(--rail-edge); }
html[data-rail=left] .bnav { left: var(--rail-edge); }
/* The pill stays tab-sized (not stretched to the taller slots) and glides slot to slot. */
html[data-rail] .bnav-pill { top: calc(6px + (var(--rail-slot) - 60px) / 2); bottom: auto; left: 6px; right: 6px; width: auto; height: 60px;
  transform: translateY(calc(var(--i, 0) * var(--rail-slot))); }
html[data-rail] .bnav a, html[data-rail] .bnav.six a { min-height: 56px; padding: 0; }
html[data-rail] .bnav .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[data-rail] .bnav .n { top: calc(50% - 22px); left: calc(50% + 4px); }
html[data-rail] .bnav .star { top: calc(50% - 20px); left: calc(50% + 9px); }
html[data-rail=right] .kb-open .bnav { transform: translateX(140%); }
html[data-rail=left] .kb-open .bnav { transform: translateX(-140%); }
html[data-rail] .has-bnav .selbar { bottom: max(12px, env(safe-area-inset-bottom)); }
html[data-rail] .has-bnav .toast { bottom: max(20px, env(safe-area-inset-bottom)); }
html[data-rail] .fab { bottom: calc(16px + env(safe-area-inset-bottom)); }
/* The + sits in the page's bottom corner, beside the rail rather than on it. */
html[data-rail=right] .fab { right: calc(max(var(--rail-in), var(--rail-edge) + var(--rail)) + 12px); }
html[data-rail=left] .fab { right: auto; left: calc(max(var(--rail-in), var(--rail-edge) + var(--rail)) + 12px); }
html[data-rail=right] .has-bnav .pr-bar { bottom: max(12px, env(safe-area-inset-bottom)); left: calc(12px + env(safe-area-inset-left)); right: calc(var(--rail-edge) + var(--rail) + 8px); }
html[data-rail=left] .has-bnav .pr-bar { bottom: max(12px, env(safe-area-inset-bottom)); left: calc(var(--rail-edge) + var(--rail) + 8px); right: calc(12px + env(safe-area-inset-right)); }


/* iPhone Duo, open and upright: iOS keeps an 82pt band clear across the top, but only the corner with the clock and the
   camera uses it (html[data-cut], --cut-w × --cut-h, from the HiveBars plugin). The header moves up into the band and
   stops short of that corner, rather than leaving the band empty. */
html[data-cut] body { padding-top: 0; }
html[data-cut] body::before { display: none; }
html[data-cut] .topbar { top: 0; }
html[data-cut] .topbar .in { min-height: var(--cut-h); }
/* On the header itself, not its row: the header is what the width rules above measure, so it squeezes to fit beside it. */
html[data-cut=right] .topbar { padding-right: max(0px, calc(var(--cut-w) - 8px - env(safe-area-inset-right))); }
html[data-cut=left] .topbar { padding-left: max(0px, calc(var(--cut-w) - 8px - env(safe-area-inset-left))); }

/* Half open with the slideshow on top (html[data-fold], foldshow.js in hive.css): the header sits just below the fold,
   and the clock is over the slideshow now, so the header no longer makes room for it. */
html[data-fold] .topbar { top: calc(var(--fold-top) + var(--fold-gap)); }

/* Photos toolbar: view drop-down · nudges · Select / ⋯ / Add, all on one line where it fits. */
.ph-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ph-bar .photo-actions { margin: 0 0 0 auto; display: flex; gap: 8px; align-items: center; }
.ph-view { display: inline-flex; align-items: center; gap: 6px; max-width: 200px; padding: 8px 12px 8px 15px; border: 1px solid var(--line-2); border-radius: 99px;
  background: var(--surface); color: var(--ink); font: 650 14.5px/1.2 var(--sans); cursor: pointer; }
.ph-view span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-view svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.ph-view[aria-expanded="true"] svg { transform: rotate(180deg); }
.ph-nudges { display: contents; }
.ph-alert { border: 0; border-radius: 99px; padding: 7px 12px; font: 700 13px/1.2 var(--sans); background: var(--honey-soft); color: var(--honey-ink); cursor: pointer; white-space: nowrap; }
.ph-alert.bad { background: var(--bad-soft); color: #8a2c2c; }
.ph-more { letter-spacing: 1px; padding-left: 12px; padding-right: 12px; }
.pop-wrap { position: relative; }
.pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 35; min-width: 220px; padding: 6px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(31, 27, 22, .16), 0 2px 6px rgba(31, 27, 22, .06); }
.pop[hidden] { display: none; }
.pop.right { left: auto; right: 0; }
.pop-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink);
  font: 550 15px/1.3 var(--sans); text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pop-i:hover, .pop-i:focus-visible { background: var(--surface-2); outline: none; }
.pop-i svg { width: 18px; height: 18px; flex: none; }
.pop-i b { margin-left: auto; min-width: 22px; padding: 1px 8px; border-radius: 99px; background: var(--honey-soft); color: var(--honey-ink); font-size: 12px; text-align: center; }
.pop-i.on { font-weight: 750; }
.pop-i.on::after { content: '✓'; margin-left: auto; color: var(--honey-ink); font-weight: 800; }
.pop-sep { height: 1px; margin: 6px 8px; background: var(--line); }

/* Admin badge: new messages / payments / backup problems */
.topbar nav a .n, .menu-admin .n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 99px;
  background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; vertical-align: 1px; }
.topbar nav a .n[hidden], .menu-admin .n[hidden] { display: none; }
.avatar { position: relative; }
@media (max-width: 560px) { .avatar.has-new::after { content: ''; position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 2px var(--bg); } }

/* Admin → Messages */
.msgs { display: grid; gap: 10px; }
.msg { padding: 0; overflow: hidden; }
.msg-h { all: unset; box-sizing: border-box; display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px 16px; cursor: pointer; }
.msg-h:focus-visible { outline: 2px solid var(--honey); outline-offset: -2px; }
.msg .dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: #e5484d; }
.msg.unread b { font-weight: 800; }
.msg-snip { margin-top: 3px; color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.open .msg-snip { display: none; }
.msg-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.msg-b { padding: 0 16px 16px; display: grid; gap: 10px; }
.msg-bubble { max-width: 88%; padding: 12px 14px; border-radius: 16px; white-space: pre-wrap; line-height: 1.5; font-size: 14.5px; }
.msg-bubble.them { background: var(--surface-2); border-top-left-radius: 6px; }
.msg-bubble.us { justify-self: end; background: var(--honey-soft); border-top-right-radius: 6px; }
.msg-who { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; white-space: normal; }
.msg-reply textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; font: inherit; font-size: 15px; resize: vertical; background: var(--surface); }

/* Admin → Messages: live chat bits */
.chat-avail { margin-bottom: 12px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(46,157,107,.18); }
.pill .live-dot { margin-right: 4px; box-shadow: none; }
.msg.open .msg-b { max-height: 62vh; overflow-y: auto; }
.msg-reply { position: sticky; bottom: -16px; background: var(--surface); padding: 8px 0 16px; margin-bottom: -16px; }

/* “…” typing bubble */
.typing { display: inline-flex !important; align-items: center; gap: 4px; padding: 13px 14px !important; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #a39686; animation: typing-dot 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; opacity: .7; } }
.typing-txt { color: var(--ok); font-style: italic; }
.msg-bubble.typing { justify-self: start; width: auto; }
@media (max-width: 600px) { .msg-reply .row { flex-wrap: wrap; } .msg-reply .row > .grow { flex-basis: 100%; } }

/* ---------- Photo prints (app.js printsPage) — phone first ---------- */
.center { text-align: center; }
.pr { max-width: 980px; margin: 0 auto; padding-bottom: 120px; }
.pr-back { margin: 2px 0 12px; }
.pr-kick { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--honey-ink); margin-bottom: 6px; }
.pr-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; padding: 26px 28px; border-radius: 24px;
  background: linear-gradient(135deg, #fbe2b0 0%, #f6c269 55%, #efa93f 100%); color: #1f1b16; }
.pr-hero.plain { background: linear-gradient(135deg, #fbf3e4, #f3e4c8); }
.pr-hero h1 { font-family: var(--serif); font-size: clamp(26px, 5vw, 38px); line-height: 1.05; margin: 0 0 8px; }
.pr-hero p { margin: 0 0 10px; color: #3b2a12; line-height: 1.5; }
.pr-hero .pr-kick { color: #7a4d0c; }
.pr-ticks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 700; color: #4a3514; }
.pr-ticks span::before { content: '✓'; margin-right: 5px; }
.pr-fan { position: relative; height: 150px; }
.pr-fan i { position: absolute; left: 50%; top: 50%; width: 96px; aspect-ratio: 2 / 3; padding: 5px 5px 16px; background: #fff; border-radius: 3px;
  box-shadow: 0 2px 4px rgba(60,34,4,.14), 0 14px 26px rgba(60,34,4,.25); transform: translate(-50%, -50%) translateX(calc((var(--i) - 1) * 42px)) rotate(calc((var(--i) - 1) * 9deg)); }
.pr-fan i:nth-child(2) { z-index: 2; transform: translate(-50%, -54%); }
.pr-fan img { width: 100%; height: 100%; object-fit: cover; display: block; background: #f1e6d3; }
.pr-fan i:not(:has(img))::after { content: ''; display: block; width: 100%; height: 100%; background: linear-gradient(160deg, #f6dfb4, #e8b86a); }
@media (max-width: 640px) {
  .pr-hero { grid-template-columns: 1fr; padding: 22px 18px 20px; gap: 10px; text-align: center; border-radius: 22px; }
  .pr-fan { height: 132px; } .pr-fan i { width: 80px; }
  .pr-ticks { justify-content: center; }
}
.pr-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 20px 0 14px; }
.pr-steps li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 6px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 14px; }
.pr-steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #fff; }
.pr-steps li.on { background: var(--ink); color: #fff; } .pr-steps li.on span { background: var(--honey); color: #1f1b16; }
.pr-steps li.done { color: var(--ink-2); } .pr-steps li.done span { background: var(--ok); color: #fff; }
/* an unlocked step is a button: tap to jump to it */
.pr-steps li.open { padding: 0; color: var(--ink-2); transition: background .15s; }
.pr-steps li.open:hover { background: var(--line); }
.pr-steps li button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 6px; border: 0; border-radius: 14px; background: none; font: inherit; color: inherit; cursor: pointer; min-height: 44px; }
.pr-lead { margin: 4px 2px 14px; color: var(--ink-2); line-height: 1.5; }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
@media (max-width: 640px) { .pr-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; } }
.pr-tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pr-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.pr-tile.on img { transform: scale(.9); border-radius: 8px; }
.pr-tile.on { box-shadow: inset 0 0 0 3px var(--honey); background: var(--honey-soft); }
.pr-check { position: absolute; top: 6px; right: 6px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font-size: 13px; font-weight: 800;
  border: 2px solid #fff; background: rgba(0,0,0,.18); color: #1f1b16; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.pr-tile.on .pr-check { background: var(--honey); }
.pr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; align-items: end; }
@media (max-width: 640px) { .pr-list { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; } }
.pr-item { display: grid; gap: 8px; justify-items: center; }
.pr-edit { position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.pr-print { position: relative; width: 100%; background: #fff; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 2px rgba(31,27,22,.12), 0 10px 24px rgba(31,27,22,.16); }
.pr-print.land { aspect-ratio: 3 / 2; } .pr-print.port { aspect-ratio: 2 / 3; width: 70%; }
.pr-print img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-select: none; pointer-events: none; }
.pr-print.fit img { object-fit: contain; padding: 3%; box-sizing: border-box; }
.pr-adjust { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 99px; background: rgba(31,27,22,.72); color: #fff; font-size: 12px; font-weight: 700; }
.pr-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); }
.pr-qty button { width: 36px; height: 34px; border: 0; background: none; font-size: 18px; font-weight: 700; color: var(--ink); cursor: pointer; }
.pr-qty button:disabled { opacity: .35; }
.pr-qty span { min-width: 22px; text-align: center; font-weight: 800; }
.pr-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(31,27,22,.5); display: flex; align-items: flex-end; justify-content: center; padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); animation: pr-fade .2s; }
.pr-sheet-in { width: min(560px, 100%); max-height: 92dvh; overflow: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); animation: pr-up .28s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 700px) { .pr-sheet { align-items: center; } .pr-sheet-in { border-radius: 24px; } }
.pr-sheet-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 17px; }
.pr-stage { display: grid; place-items: center; padding: 18px; border-radius: 18px; background: repeating-conic-gradient(#f3ede3 0 25%, #faf6ef 0 50%) 0 0 / 22px 22px; }
.pr-print.big { touch-action: none; cursor: grab; }
.pr-print.big.port { width: 62%; } .pr-print.big.dragging { cursor: grabbing; }
.pr-print.big:not(.fit)::after { content: ''; position: absolute; inset: 0; border: 2px dashed rgba(255,255,255,.7); pointer-events: none; }
body.sheet-open { overflow: hidden; }
@keyframes pr-fade { from { opacity: 0; } } @keyframes pr-up { from { transform: translateY(40px); opacity: .6; } }
.pr-sum { display: grid; gap: 0; padding: 6px 18px !important; }
.pr-row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.pr-row:first-child { border-top: 0; }
.pr-row small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.pr-row.sub { padding-top: 0; border-top: 0; margin-top: -8px; font-size: 13.5px; color: var(--ok); font-weight: 600; }
.pr-row.sub s { color: var(--muted); font-weight: 500; }
.pr-row.total { font-size: 18px; } .pr-row.total b { font-size: 22px; }
.pr-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); line-height: 1.45; font-size: 14.5px; }
.pr-note.good { background: #e7f5ec; color: #1f5b37; }
.pr-h2 { font-size: 18px; margin: 30px 0 10px; }
.pr-orders { display: grid; gap: 10px; }
.pr-track { list-style: none; display: flex; padding: 0; margin: 14px 0 10px; }
.pr-track li { flex: 1; position: relative; padding-top: 18px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: center; }
.pr-track li::before { content: ''; position: absolute; top: 3px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--line-2); z-index: 1; }
.pr-track li + li::after { content: ''; position: absolute; top: 8px; right: 50%; width: 100%; height: 2px; background: var(--line-2); }
.pr-track li.done { color: var(--ink); } .pr-track li.done::before, .pr-track li.done::after { background: var(--ok); }
.pr-done { text-align: center; padding: 28px 22px !important; background: linear-gradient(180deg, #eaf7ef, #fff); }
.pr-done h2 { margin: 12px 0 6px; } .pr-done p { margin: 0 auto; max-width: 440px; color: var(--ink-2); }
.pr-tick { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 30px; font-weight: 800; }
.pr-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 12px max(16px, calc((100vw - 980px) / 2)) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(31,27,22,.08); }
.pr-bar b { display: block; font-size: 15px; } .pr-bar .tiny { display: block; margin-top: 2px; }
.pr-bar .btn.primary { min-height: 48px; padding: 0 20px; font-size: 15.5px; white-space: nowrap; }
@media (max-width: 420px) { .pr-bar .btn[data-back] { padding: 0 12px; } .pr-bar .btn.primary { padding: 0 14px; } }
/* Event overview: the "Your 25 free prints" card */
.pr-promo { display: flex; align-items: center; gap: 18px; margin: 0 0 16px; padding: 16px 20px 16px 8px; border-radius: 22px; text-decoration: none; color: #1f1b16;
  background: linear-gradient(135deg, #fbe2b0 0%, #f6c269 60%, #efa93f 100%); box-shadow: 0 10px 26px rgba(227,148,36,.25); }
.pr-promo .pr-fan { width: 150px; height: 112px; flex: none; } .pr-promo .pr-fan i { width: 62px; }
.pr-promo b { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.1; margin-bottom: 4px; }
.pr-promo .grow > span:not(.pr-kick) { font-size: 14px; color: #3b2a12; line-height: 1.4; }
.pr-promo .pr-kick { color: #7a4d0c; margin-bottom: 3px; }
@media (max-width: 640px) { .pr-promo { flex-direction: column; text-align: center; padding: 18px 18px 16px; gap: 6px; } .pr-promo .pr-fan { width: 220px; height: 118px; } .pr-promo .pr-fan i { width: 70px; } .pr-promo .btn { width: 100%; justify-content: center; margin-top: 8px; } }
.pr-mini { display: flex; flex-direction: column; padding: 14px 18px; border-radius: 18px; background: linear-gradient(135deg, #fbe2b0, #f3c46f); }
.pr-mini b { font-family: var(--serif); font-size: 21px; } .pr-mini .pr-kick { color: #7a4d0c; margin-bottom: 2px; }
.plan-perk { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #fff3dc, #fbe2b0); font-weight: 700; font-size: 14.5px; color: #4a3514; }
.plan-perk span { font-size: 22px; }
.plan-perk small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: #7a5a2a; }

/* Six sections in the phone bar (with Prints): a touch smaller so the labels still fit at 320px. */
html.bn .bnav.six a { font-size: 10.5px; padding: 4px 0; letter-spacing: 0; }
html.bn .bnav.six svg { width: 23px; height: 23px; }
html.bn .has-bnav .pr-bar { bottom: var(--bnav-space); left: 12px; right: 12px; border-radius: 22px; border: 1px solid var(--line); padding: 10px 12px; }
html.bn .has-bnav .pr { padding-bottom: 96px; }


.pr-promo.paid { background: linear-gradient(135deg, #fff8ec, #f6e6c8); box-shadow: 0 6px 18px rgba(31,27,22,.08); }
.pr-fine { display: block; margin-top: 4px; font-size: 11.5px; color: #7a5a2a; }
.pr-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pr-hub-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.pr-hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pr-hub-art { background: linear-gradient(135deg, var(--honey-soft), #fbe2b0); padding: 10px 0 6px; }
.pr-hub-card .pr-fan { height: 130px; } .pr-hub-card .pr-fan i { width: 66px; }
.pr-hub-body { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.pr-hub-body .pill { white-space: nowrap; margin: 0; }
.pr-hub-card b { display: block; font-size: 16.5px; margin-bottom: 2px; }
.pr-foot { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.pr-seg { display: flex; gap: 4px; padding: 4px; margin: 20px 0 18px; border-radius: 999px; background: var(--line); width: max-content; max-width: 100%; }
.pr-seg a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.pr-seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.pr-seg .n-soft { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--honey); color: var(--ink); font-size: 12px; line-height: 20px; text-align: center; }
.pr-order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 17px; }
.pr-order .pill { white-space: nowrap; }
.pr-order .small a { color: inherit; font-weight: 700; }
.pr-thumbs { display: flex; gap: 6px; margin: 12px 0 2px; overflow: hidden; }
.pr-thumbs img, .pr-thumbs span { flex: none; width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.pr-thumbs span { display: grid; place-items: center; background: var(--line); font-size: 12px; font-weight: 800; color: var(--ink); }
@media (max-width: 560px) { .topbar nav .nav-prints { display: none; } }
@media (max-width: 340px) { .topbar .in { gap: 4px; padding-left: 10px; padding-right: 10px; } .topbar .logo { font-size: 16.5px; } .topbar nav a { padding: 7px 4px; } #newBtn { padding: 6px 8px; } }
/* Plan: its pages in one row (four across on phones, sharing the width, so nothing scrolls). */
@media (max-width: 560px) { .subtabs.plan-sub { width: 100%; } .subtabs.plan-sub a { flex: 1; justify-content: center; padding: 8px 4px; font-size: 14px; } }
/* ---- photo book maker ---- */
.bk-hero { grid-template-columns: 240px 1fr; }
.bk-mock { perspective: 900px; padding: 6px 18px 14px 6px; }
.bk-mock-in { position: relative; transform: rotateY(-16deg) rotateX(3deg); transform-origin: left center; border-radius: 3px 8px 8px 3px; overflow: hidden;
  box-shadow: 1px 0 0 rgba(0,0,0,.08), 14px 18px 32px rgba(60,35,5,.32); background: #fff; }
.bk-mock-in::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 9px; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0)); z-index: 1; }
.bk-mock svg, .bk-cover svg, .bk-page svg { display: block; width: 100%; height: auto; }
.bk-lead { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; } .bk-lead .pr-lead { margin-top: 0; } .bk-bulk { flex: none; }
.bk-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; } .bk-opts .field { margin: 0; }
.bk-themes { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-theme { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.bk-theme i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid; }
.bk-theme.on { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.bk-dens { margin: 0; }
.bk .pr-h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .bk .pr-h2 small { font-size: 13px; font-weight: 500; } .bk .pr-h2 .btn { margin-left: auto; }
.bk-cover { max-width: 760px; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 14px 34px rgba(31,27,22,.16); }
.bk-cover.back { max-width: 420px; }
.bk-spreads { display: grid; gap: 22px; }
.bk-spread { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; box-shadow: 0 12px 30px rgba(31,27,22,.14); border-radius: 4px; background: var(--surface); }
.bk-page { position: relative; background: #fff; }
.bk-page + .bk-page::before { content: ''; position: absolute; inset: 0 auto 0 -14px; width: 28px; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.10) 50%, rgba(0,0,0,0)); pointer-events: none; z-index: 1; }
.bk-page.blank { background: var(--surface-2); }
.bk-page-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; z-index: 2; pointer-events: none; }
.bk-page-bar span { font-size: 11px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.9); border-radius: 99px; padding: 1px 8px; }
.bk-rm { position: absolute; z-index: 3; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(31,27,22,.62); color: #fff; font: 600 18px/1 var(--sans); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); opacity: .9; }
.bk-rm:hover { background: rgba(196,52,52,.92); opacity: 1; }
.bk-arr-rm { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(31,27,22,.66); color: #fff; font: 600 16px/1 var(--sans); cursor: pointer; }
.bk-arr-fab { position: fixed; z-index: 41; right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--bnav-space, env(safe-area-inset-bottom)) + 100px);
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px 11px 13px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--ink); color: #fff; font: 700 14.5px/1 var(--sans); box-shadow: 0 10px 26px rgba(31,27,22,.28), 0 2px 6px rgba(31,27,22,.12);
  opacity: 0; pointer-events: none; transform: translateY(14px) scale(.96); transition: opacity .2s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.bk-arr-fab.show { opacity: 1; pointer-events: auto; transform: none; }
.bk-arr-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.kb-open .bk-arr-fab { opacity: 0; pointer-events: none; }
.bk-undo { display: flex; align-items: center; gap: 14px; }
html body .toast.bk-undo { bottom: calc(var(--bnav-space, 0px) + 96px + env(safe-area-inset-bottom)); } /* above the book's own bottom bar */
.bk-undo button { border: 0; background: none; color: var(--honey, #f2a93b); font: 700 14px/1 var(--sans); cursor: pointer; padding: 4px 2px; }
.bk-lay { pointer-events: auto; border: 0; border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.18); cursor: pointer; }
.bk-order { display: flex; gap: 26px; align-items: flex-start; } .bk-order-mock { width: 260px; flex: none; }
.bk-cover-grid { margin-top: 12px; }
@media (max-width: 700px) {
  .bk-hero { grid-template-columns: 1fr; } .bk-hero .bk-mock { width: 230px; margin: 0 auto; }
  .bk-opts { grid-template-columns: 1fr; }
  .bk-lead { flex-direction: column; gap: 0; }
  .bk-spread { grid-template-columns: 1fr; box-shadow: none; background: none; gap: 14px; }
  .bk-spread .bk-page { box-shadow: 0 6px 18px rgba(31,27,22,.14); } .bk-page.blank { display: none; } .bk-page + .bk-page::before { display: none; }
  .bk-order { flex-direction: column; align-items: stretch; } .bk-order-mock { width: 200px; margin: 0 auto; }
}
.pr .banner { flex-wrap: nowrap; align-items: flex-start; }
/* photo picker: albums first, then into an album to choose */
.pk-seg { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.pk-seg button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 9px; color: var(--ink-2); cursor: pointer; }
.pk-seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(31,27,22,.12); }
.pk-seg button span { font-size: 12px; color: var(--muted); margin-left: 3px; }
.pk-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.pk-album { display: flex; flex-direction: column; gap: 3px; padding: 0 0 10px; border: 0; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.pk-album b { font-size: 14.5px; line-height: 1.25; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-album small { font-size: 12.5px; color: var(--muted); } .pk-album em { font-style: normal; font-weight: 700; color: var(--honey-ink); }
.pk-mosaic { display: grid; gap: 2px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: 0 1px 3px rgba(31,27,22,.10); position: relative; }
.pk-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.pk-mosaic.n2, .pk-mosaic.n3, .pk-mosaic.n4 { grid-template-columns: 1fr 1fr; } .pk-mosaic.n2 { grid-template-rows: 1fr; } .pk-mosaic.n3 img:first-child { grid-row: span 2; }
.pk-album.has .pk-mosaic { box-shadow: 0 0 0 3px var(--honey); }
.pk-album:hover .pk-mosaic { transform: translateY(-2px); transition: transform .15s; }
.pk-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; } .pk-head b { flex: 1; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-back { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 6px 12px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
/* prints past the free allowance */
.pr-tile.paid .pr-check { background: var(--ink); color: #fff; width: auto; min-width: 26px; padding: 0 7px; font-size: 11.5px; font-weight: 800; }
.pr-left { color: var(--ok); }
.pr-full { text-align: center; } .pr-full h2 { font-family: var(--serif); font-size: 26px; margin: 4px 0 8px; } .pr-full p { color: var(--ink-2); line-height: 1.5; margin: 0 auto 18px; max-width: 420px; }
.pr-full-ic { font-size: 40px; } .pr-full-btns { display: grid; gap: 10px; }
@media (max-width: 560px) { .pk-albums { grid-template-columns: 1fr 1fr; gap: 12px; } }
/* arrange the book's photos */
.bk-arr .pr-sheet-in { width: min(760px, 100%); height: min(92dvh, 900px); display: flex; flex-direction: column; overscroll-behavior: contain; }
.bk-arr-hint { margin: 2px 0 12px; }
.bk-arr-list { display: flex; flex-wrap: wrap; gap: 12px 10px; align-content: flex-start; padding-bottom: 20px; }
.bk-arr-pg { border: 1px dashed var(--line-2); border-radius: 12px; padding: 6px; background: var(--surface-2); }
.bk-arr-pg small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin: 0 2px 4px; }
.bk-arr-row { display: flex; gap: 5px; }
/* Add a blank page here (between pages), and a blank page the host added. */
.bk-arr-add { align-self: center; width: 26px; height: 26px; padding: 0; border: 1.5px dashed var(--line-2); border-radius: 50%; background: var(--surface);
  color: var(--muted); font: 700 16px/1 var(--sans); cursor: pointer; display: grid; place-items: center; margin: 0 -4px; }
.bk-arr-add:hover { border-color: var(--honey, #f2a93b); color: var(--ink); background: #fff7e8; }
.bk-arr-pg.space { background: var(--surface); }
.bk-arr-blank.over { outline: 2px dashed var(--honey, #f2a93b); outline-offset: 2px; border-radius: 9px; background: #fff7e8; color: var(--ink); }
.bk-arr-blank span { text-align: center; line-height: 1.25; }
.bk-arr-blank { height: 72px; min-width: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 8px;
  font-size: 12.5px; font-weight: 700; color: var(--muted); }
@media (max-width: 560px) { .bk-arr-blank { height: 64px; } }
.bk-arr-ph { position: relative; width: 72px; height: 72px; border-radius: 9px; overflow: hidden; background: var(--line); cursor: grab;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; transition: transform .12s, box-shadow .12s, opacity .12s; }
.bk-arr-ph img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.bk-arr-ph span { position: absolute; left: 4px; bottom: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.bk-arr-ph.picked { box-shadow: 0 0 0 3px var(--honey); transform: scale(.94); }
.bk-arr-ph.over { box-shadow: 0 0 0 3px var(--ink); transform: scale(.9); }
.bk-arr-ph.lifting { opacity: .3; }
.bk-arr-ghost { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; box-shadow: 0 14px 34px rgba(0,0,0,.35); transition: none; }
.bk-ordopt { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 560px) { .bk-arr-ph { width: 64px; height: 64px; } }
/* add-ons at the end of an order: the book with the prints, or prints with the book (no extra delivery) */
.pr-addon { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--surface); cursor: pointer; }
.pr-addon.on { border-style: solid; border-color: var(--honey); background: var(--honey-soft); }
.pr-addon input { width: 20px; height: 20px; accent-color: var(--honey-2); flex: none; }
.pr-addon b { display: block; font-size: 15px; } .pr-addon small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pr-addon-mock { width: 74px; flex: none; border-radius: 3px 6px 6px 3px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,.18); } .pr-addon-mock svg { display: block; width: 100%; height: auto; }
.pr-addon-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: linear-gradient(135deg, #fbe2b0, #f3c46f); position: relative; }
.pr-addon-ic::after { content: ''; position: absolute; inset: 11px 9px; border-radius: 2px 4px 4px 2px; background: #fff; box-shadow: -3px 0 0 #b9782a; }
.pr-addon-ic.prints::after { inset: 10px 13px; border-radius: 2px; box-shadow: 3px 3px 0 #e8c98f; }
.pr-addon .pr-thumbs { margin: 0; } .pr-addon .pr-thumbs img { width: 40px; height: 40px; }
.pr-parcels { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pr-parcel-wait { font-size: 13px; color: var(--muted); padding: 6px 10px; border: 1px dashed var(--line-2); border-radius: 99px; }
.pr-booklink { display: inline-block; margin-top: 12px; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.65); font-weight: 700; font-size: 13.5px; color: #5c3a08; text-decoration: none; }
.pr-booklink:hover { background: #fff; }
.pr-order { min-width: 0; overflow: hidden; }
.pr-order-head { align-items: flex-start; } .pr-order-head > div { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bk-with { align-items: center; margin: 0 0 14px; } .bk-with .btn { flex: none; }
.bk-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
/* a page's layout picker, and empty pages */
.bk-lay-group { margin: 0 0 14px; } .bk-lay-group small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.bk-lay-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-lay-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.bk-lay-opt svg { width: 100%; height: auto; display: block; } .bk-lay-opt svg rect { fill: #d9cdb9; } .bk-lay-opt svg rect.bg { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 3; }
.bk-lay-opt.on { border-color: var(--honey); background: var(--honey-soft); color: var(--ink); } .bk-lay-opt.on svg rect { fill: var(--honey-2); } .bk-lay-opt.on svg rect.bg { fill: #fff; }
.bk-page.empty svg { opacity: .55; }
.bk-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px dashed var(--bad); color: var(--bad); text-align: center; pointer-events: none; }
.bk-empty b { font-size: 14px; } .bk-empty small { font-size: 12px; }
.inv-menu-link { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.inv-menu-link b { display: block; font-size: 15px; } .inv-menu-link small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.inv-menu-link .btn { flex: none; }
.inv-back { display: inline-block; margin: 2px 0 12px; font-weight: 700; font-size: 14px; color: var(--ink-2); text-decoration: none; }
/* ---- Tablets (iPads and Android tablets, wider than a phone) ----
   They get the desktop layout, but they're driven by fingers: bigger tabs, buttons and chips on touch screens. */
@media (pointer: coarse) and (min-width: 761px) {
  .topbar nav a { padding: 10px 14px; font-size: 15.5px; }
  .tabs a { padding: 14px 16px; font-size: 16px; }
  .subtabs a { padding: 10px 16px; font-size: 15px; }
  .btn.sm { min-height: 40px; padding: 8px 14px; font-size: 14.5px; }
  .chip { padding: 9px 16px; font-size: 14.5px; }
  .icon-btn { width: 44px; height: 44px; }
  .pr-seg a, .pk-seg button { padding: 10px 18px; font-size: 15px; }
  .bk-lay { padding: 7px 13px; font-size: 13.5px; }
  .pr-tile .pr-check { min-width: 28px; height: 28px; }
}
/* Invitations & menus on a tablet in portrait: the preview on the left, and everything else stacked beside it (no gap). */
@media (min-width: 700px) and (max-width: 979px) {
  .inv-pv-card { grid-template-columns: minmax(0, 230px) 1fr; grid-template-rows: auto auto 1fr; column-gap: 20px; }
  .inv-pv-card > .inv-pv { grid-row: 1 / span 3; }
  .inv-pv-card > p, .inv-pv-card > .inv-menu-link { grid-column: 2; }
}
/* The prints banner as a tall card beside "Get set up" (plans without the planner). */
.half > .pr-promo.tall { margin: 0; }
@media (min-width: 860px) {
  .pr-promo.tall { flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding: 28px 26px; }
  .pr-promo.tall .pr-fan { width: 260px; height: 170px; } .pr-promo.tall .pr-fan i { width: 96px; }
  .pr-promo.tall b { font-size: 28px; } .pr-promo.tall .grow { flex: none; }
  .pr-promo.tall .btn { min-height: 44px; padding: 10px 22px; font-size: 15px; margin-top: 6px; }
}
.cover-pick { width: min(760px, 100%); } .cover-pick .pr-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.pk-album { min-width: 0; } .pk-album b, .pk-album small { max-width: 100%; }
@media (max-width: 560px) { .pk-albums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-no { color: var(--ink-2); letter-spacing: .02em; }
.pr-ask { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--honey-ink); }
/* the change window on an order */
.pr-window { margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--honey-soft); border: 1px solid #f1d7a5; }
.pr-window b { display: block; font-size: 14.5px; } .pr-window small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }
.pr-window-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pr-change-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; line-height: 1.45; text-align: center; }
.bk-editing { align-items: center; margin: 0 0 14px; background: var(--honey-soft); } .bk-editing .btn { flex: none; }
.adm-search { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; } .adm-search input { flex: 1; max-width: 420px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: inherit; }
/* Settings → Your own web address */
.dom-search { display: flex; gap: 8px; }
.dom-search .input { flex: 1; min-width: 0; }
.dom-list { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dom-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); }
.dom-row:first-child { border-top: 0; }
.dom-row b { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
.dom-row.taken b { color: var(--muted); font-weight: 500; text-decoration: line-through; text-decoration-color: var(--line-2); }
.dom-price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.2; }
.dom-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.dom-buy { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.dom-buy h3 { font-size: 16px; margin: 0 0 4px; }
.dom-terms { margin: 12px 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.dom-terms li { margin: 3px 0; }
.check-line { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 6px 0 10px; cursor: pointer; }
.check-line input { margin-top: 3px; accent-color: var(--honey); }
.dom-state { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.dom-state p { margin: 2px 0 0; }
.dom-live { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.dom-live .grow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dom-name { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.dom-name[href]:hover { text-decoration: underline; }
.dom-auto { margin-top: 4px; }
.dom-buy .dom-auto { margin: 12px 0 4px; }
.dom-code { font-family: ui-monospace, Menlo, monospace; font-size: 15px; background: var(--surface-2); padding: 2px 8px; border-radius: 6px; user-select: all; }
@media (max-width: 600px) { .dom-row { flex-wrap: wrap; } .dom-row .btn { margin-left: auto; } }
.dom-change { margin-top: 14px; }
.dom-change .banner { margin-bottom: 12px; }
/* "Type X to confirm" box (typeToConfirm in app.js) */
.modal.ttc { max-width: 460px; display: block; }
.modal.ttc h2 { font-size: 22px; margin-top: 0; }
.ttc-btns { gap: 8px; justify-content: flex-end; margin-top: 14px; }
/* Web address card: one main action; the rarely needed ones as quiet links at the foot */
.dom-name { display: inline-flex; align-items: baseline; gap: 6px; }
.dom-go { font-size: 15px; color: var(--muted); font-weight: 600; transition: transform .15s, color .15s; }
a.dom-name[href]:hover { text-decoration: none; }
a.dom-name[href]:hover .dom-go { color: var(--honey-ink); transform: translate(1px, -1px); }
.dom-actions { display: flex; margin: 14px 0 6px; }
.dom-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.dom-links button { background: none; border: 0; padding: 2px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.dom-links button:hover { color: var(--ink); text-decoration-color: currentColor; }
.dom-links button:disabled { opacity: .5; cursor: default; }
@media (max-width: 600px) { .dom-actions .btn { flex: 1; } }
/* App lock switch in the account menu (iPhone app: Face ID / Touch ID; lib in mobile/ios/App/App/HiveLockPlugin.swift) */
.menu .menu-lock { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-sw { flex: none; width: 36px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; }
.menu-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.menu-sw.on { background: var(--ok); }
.menu-sw.on::after { transform: translateX(14px); }
