/* Styles for the feature modules in app/features. Each feature adds its own clearly commented section here (append only). */

/* ---- Licensing, buying and sales (app/features/licensing.py, payouts.py) ---- */
.fx-testbanner { margin: 0 0 16px; padding: 10px 14px; border: 2px dashed #d97706; border-radius: 10px; background: rgba(217, 119, 6, 0.12); color: var(--ink); font-size: 13px; line-height: 1.4; }
.fx-testbanner b { letter-spacing: 0.04em; }
.fx-lic { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.fx-lic__on { flex-direction: row !important; align-items: baseline; flex-wrap: wrap; gap: 8px !important; }
.fx-lic textarea { width: 100%; resize: vertical; }
.fx-keep { margin: 0; min-height: 1.2em; }
.fx-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; }
.fx-check input { margin-top: 3px; }
.fx-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 16px; }
.fx-totals > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.fx-totals small, .fx-totals span { color: var(--muted); font-size: 12px; }
.fx-totals b { color: var(--ink); font-size: 20px; font-weight: 600; }
.fx-totals__net { border-color: var(--ink) !important; }
.fx-statement { font-size: 12px; }
.fx-statement th, .rv-table th { padding: 6px 10px 6px 0; color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; }
@media (max-width: 640px) { .fx-statement { display: block; overflow-x: auto; } }

/* ---------- Engrave on Arweave, snapshots (app/features/engrave.py) ---------- */
.eg { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.eg--page { max-width: 640px; margin: 24px auto; padding: 0 16px; }
.eg__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.eg__dry { margin: 0; padding: 10px 12px; border-radius: 10px; border: 2px dashed #d9a400; background: rgba(217, 164, 0, 0.14); color: inherit; font-size: 13px; }
.eg__dry--live { border-color: #d64545; background: rgba(214, 69, 69, 0.14); }
.eg__chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid currentColor; opacity: 0.8; }
.eg__chip--on { color: #1c9a5a; opacity: 1; }
.eg__chip--wait { color: #c58a00; opacity: 1; }
.eg__chip--bad { color: #d64545; opacity: 1; }
.eg__addr { font-size: 12px; overflow-wrap: anywhere; }
.eg__link { font-size: 12.5px; }
.eg__err { color: #d64545; }
.eg__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eg__form .input { flex: 1 1 280px; }
.eg__fee { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 6px 0; }
.eg__fee dt { opacity: 0.7; } .eg__fee dd { margin: 0; }
.eg__tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; opacity: 0.7; vertical-align: middle; }
.eg__check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin: 8px 0; }
.eg__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.eg__list { padding-left: 18px; } .eg__list ul { padding-left: 18px; }
.eg__dialog { border: 1px solid rgba(128, 128, 128, 0.35); border-radius: 16px; padding: 22px; max-width: min(520px, calc(100vw - 32px)); background: var(--bg, Canvas); color: inherit; }
.eg__dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.eg__dialog h2 { margin-top: 0; font-size: 18px; }

/* ---------- Create flow (app/features/create.py, templates/features/create_*.html, static/js/features/create*.js) ---------- */
.cr { --pe-ink: var(--ink); --pe-muted: var(--muted); --pe-copy: var(--ink); --pe-faint: color-mix(in srgb, var(--muted) 65%, transparent);
  --pe-line: var(--line); --pe-hover: var(--field); --pe-content: 720px; --pe-head-h: 64px; --pe-side: clamp(220px, 50vw, 360px);
  width: 100%; max-width: var(--pe-content); margin: 0 auto; padding: 24px 0 140px; }
/* The header's own foot is the progress line (header.css). This bar used to draw a second one. */
.cr-progress { display: none; }
.cr .cr-card { gap: 24px; }
.cr .pe-copy { min-height: 320px; text-align: left; }
.cr .pe-copy .pe-copy__content { min-height: 300px; }
.cr .pe-date { position: relative; }
.cr .cr-date { position: absolute; inset: 0; width: 100%; opacity: 0; pointer-events: none; }
.cr .cr-details { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); }
.cr .cr-field { display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: 13px; }
.cr .cr-guide { margin: -4px 0 0; color: var(--muted); font-size: 13px; }
.cr .cr-guide:empty { display: none; }
.cr .cr-frame { max-width: 360px; margin-top: 10px; }
.cr .cr-sketch { align-self: center; --pe-side: min(360px, 80vw); }
.cr .pe-msg { text-align: center; }
.cr .cr-kindbar { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.cr .cr-kindbar__type .rv-kind { gap: 7px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 500; }
.cr .cr-kindbar__type .rv-kind svg { width: 16px; height: 16px; }
.cr .cr-swap { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.cr .cr-swap__label { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.cr .cr-swap p.rv-small { margin: 0; }
.cr .cr-swap__types { display: flex; flex-wrap: wrap; gap: 8px; }
.cr .cr-swap__type { padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font: inherit; }
.cr .cr-swap__type .rv-kind { gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.cr .cr-swap__type .rv-kind svg { width: 18px; height: 18px; }
.cr .cr-swap__type[aria-pressed="true"] .rv-kind { border-color: var(--ink); background: var(--field); }
.cr-toast.is-bad { border-color: #b42318; color: #b42318; }
html:not([data-theme="light"]) .cr-toast.is-bad { color: #ff8a80; border-color: #ff8a80; }
.cr-soon { text-align: center; }
.cr-soon__icon { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
@media (max-width: 640px) { .cr { padding-bottom: 150px; } .cr .cr-details { padding: 14px; } .cr .pe-title { font-size: 26px; } }

/* ---- Encryption and key custody (app/features/access.py, keys_custody.py) ---- */
.access-state { margin: .6rem 0; }
.access-state__line { display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline; }
.access-state__more { opacity: .75; }
.access-state form { margin-top: .4rem; }
.custody__row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .5rem 0 1rem; }
.custody__row .rv-input { flex: 1 1 14rem; }
.custody__list { padding-left: 1.2rem; display: grid; gap: .3rem; }
.custody__status { min-height: 1.4em; }
.rv-enc-chip { font-size: .72rem; opacity: .8; margin-left: .35rem; }
.cr, .cr .cr-card, .cr .cr-details { min-width: 0; box-sizing: border-box; }
.cr .rv-opt div { min-width: 0; }
.cr .rv-opt span { overflow-wrap: anywhere; }
.cr:has(.pe-float) .cr-card { margin-top: 56px; }

/* ---- Recording (app/features/recording.py, static/js/features/recording.js) ---- */
.rec { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0; }
.rec__modes, .rec__row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rec__modes .btn[aria-pressed="true"] { outline: 2px solid currentColor; }
.rec__stage { width: min(520px, 100%); display: flex; flex-direction: column; gap: 8px; }
.rec__live { width: 100%; max-height: 320px; border-radius: 12px; background: #000; }
.rec__meter { height: 10px; border-radius: 6px; background: var(--field, rgba(128,128,128,.2)); overflow: hidden; }
.rec__meter span { display: block; height: 100%; width: 0; background: #2e9e5b; transition: width .08s linear; }
.rec__time { font-size: 28px; font-variant-numeric: tabular-nums; }
.rec__player { width: min(520px, 100%); }
.rec__player audio, .rec__player video { width: 100%; border-radius: 12px; }
.rec__note { min-height: 1.2em; margin: 0; text-align: center; }
.rec__note.is-bad { color: #b42318; }
html:not([data-theme="light"]) .rec__note.is-bad { color: #ff8a80; }

/* ---------- Books (app/features/book.py, templates/features/book_*.html, static/js/features/book.js) ---------- */
.cr .cr-book { display: flex; flex-direction: column; gap: 10px; }
.bk { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.bk--manage, .bk-reader { max-width: 720px; margin: 24px auto; padding: 0 16px; }
.bk-desc, .bk-desc-text { width: 100%; resize: vertical; }
.bk-desc-text { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.55; white-space: pre-wrap; }
.bk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bk-h { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.bk-toc, .bk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bk-toc li + li, .bk-list li + li { border-top: 1px solid var(--line); }
.bk-toc a, .bk-row { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; color: var(--ink); }
.bk-toc a:hover { background: var(--field); }
.bk-row { color: var(--muted); }
.bk-n { flex: none; min-width: 1.6em; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.bk-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg, transparent); }
.bk-item.is-dragging { opacity: 0.5; }
.bk-grip { flex: none; color: var(--muted); cursor: grab; letter-spacing: -3px; user-select: none; }
.bk-item__title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.bk-item__tools { flex: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.bk-item__tools form { display: contents; }
.bk-item__tools .btn:disabled { opacity: 0.35; cursor: default; }
/* The book editor: cover, then one page. Click the page for the note editor. */
.bkx { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.bkx-desc { width: 100%; }
.bkx-seg { display: flex; gap: 4px; }
.bkx-seg button { padding: 7px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer; }
.bkx-seg button[aria-selected="true"] { background: var(--pe-accent, var(--accent)); color: #fff; }
.bkx-stage { width: min(280px, 72vw); }
.bkx-cover, .bkx-leaf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; width: 100%; aspect-ratio: 3 / 4; margin: 0; padding: 12% 10%; border: 0; border-radius: 2px; background: #fffdf8; color: #24211c; text-align: center; cursor: pointer; box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 12px 18px rgba(0, 0, 0, .16); }
.bkx-cover__kicker, .bkx-leaf__hint { color: #8a8170; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.bkx-cover__title { font-size: 22px; font-weight: 650; line-height: 1.2; letter-spacing: -0.02em; }
.bkx-leaf { align-items: stretch; justify-content: flex-start; text-align: left; }
.bkx-leaf__chapter { color: #8a8170; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.bkx-leaf__preview { flex: 1; overflow: hidden; font: 400 15px/1.45 Georgia, "Iowan Old Style", serif; }
.bkx-leaf__preview.is-empty { color: #8a8170; font-style: italic; }
.bkx-leaf__hint { align-self: center; }
.bkx-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; width: 100%; }
.bkx-pos { min-width: 7em; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.bkx-chapters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; width: 100%; }
.bkx-chip { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
/* A page being written is the note editor: same surface, same bar. The book chrome steps aside. */
.cr.is-writing .bkx-stage { display: none; }
.cr.is-writing .bkx [data-bk-editor] { display: block; align-self: stretch; width: 100%; min-height: 50vh; }
.bkx [data-bk-editor] .ProseMirror { min-height: 46vh; cursor: text; }
.cr:not(.is-writing) #float { display: none !important; }
.bkx-ask { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(20, 18, 14, .42); }
.bkx-ask[hidden] { display: none; }
.bkx-ask__box { box-sizing: border-box; width: min(380px, 100%); padding: 22px; border-radius: 16px; background: var(--card, var(--bg, #fffdf8)); color: var(--ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .22); }
.bkx-ask__box h3 { margin: 0 0 12px; font-size: 18px; }
.bkx-ask__box .input { width: 100%; margin-bottom: 14px; }
.bkx-ask__actions { display: flex; justify-content: flex-end; gap: 8px; }
.bk-reader__book { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.bk-reader__title { margin: 6px 0 22px; text-align: center; font-size: 32px; font-weight: 600; letter-spacing: -0.028em; line-height: 1.15; color: var(--ink); }
.bk-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 32px 0 12px; }
.bk-nav .btn { max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .bk-item { flex-wrap: wrap; } .bk-item__tools { width: 100%; justify-content: flex-start; } .bk-nav { flex-wrap: wrap; } .bk-nav .btn { max-width: 100%; } }

/* ---- Website (app/features/website.py) ---- */
.site { margin: 18px 0; }
.site__frame { display: block; width: 100%; height: min(70vh, 640px); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.site__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.site__files { margin-top: 8px; }
.site__files summary { cursor: pointer; }
.site__files ul { margin: 8px 0 0; padding-left: 1.1rem; display: grid; gap: 2px; max-height: 280px; overflow: auto; }
.site__files a { overflow-wrap: anywhere; }
.site-drop { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }

/* ---------- Cards and capsules (app/features/card.py, capsule.py; templates/features/card_*, capsule_*, create_card/capsule; static/js/features/card.js, capsule.js) ---------- */
/* The front of a card: a color with an optional pattern (--cd-bg, --cd-ink), or an uploaded picture. */
.cd-face { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; width: 100%; overflow: hidden; border-radius: 14px; background-color: var(--cd-bg, #e11d48); color: var(--cd-ink, #fff);
  background-size: cover; background-position: center; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 10px 28px rgba(0, 0, 0, 0.16); }
.cd-face--image { background-color: var(--field); }
.cd-face__text { padding: 0 8%; max-width: 100%; font-size: clamp(20px, 5vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.cd-face--image .cd-face__text { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }
.cd-pat-dots { background-image: radial-gradient(circle, color-mix(in srgb, var(--cd-ink) 38%, transparent) 2.5px, transparent 3px); background-size: 22px 22px; }
.cd-pat-stripes { background-image: repeating-linear-gradient(45deg, color-mix(in srgb, var(--cd-ink) 24%, transparent) 0 8px, transparent 8px 22px); }
.cd-pat-grid { background-image: linear-gradient(color-mix(in srgb, var(--cd-ink) 28%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--cd-ink) 28%, transparent) 1px, transparent 1px); background-size: 24px 24px; }
.cd-pat-hearts { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M18 26l-6.2-6.2a4.2 4.2 0 0 1 6.2-5.6 4.2 4.2 0 0 1 6.2 5.6z' fill='%23ffffff' fill-opacity='.38'/%3E%3C/svg%3E"); background-size: 36px 36px; }
.cd-pat-confetti { background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.55) 3px, transparent 4px), radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.4) 2px, transparent 3px), radial-gradient(circle at 55% 75%, rgba(255, 255, 255, 0.5) 3px, transparent 4px), radial-gradient(circle at 85% 60%, rgba(0, 0, 0, 0.18) 2px, transparent 3px), radial-gradient(circle at 30% 85%, rgba(0, 0, 0, 0.16) 3px, transparent 4px);
  background-size: 64px 64px; }

/* The card's page */
.cd-view, .cs-view { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; max-width: 640px; margin: 8px auto 0; }
.cd-view__head, .cs-head { align-self: stretch; }
.cd-post { width: 100%; max-width: 560px; border-radius: 14px; background: var(--field); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 10px 28px rgba(0, 0, 0, 0.16); overflow: hidden; }
.cd-post__front { border-radius: 0; box-shadow: none; }
.cd-post__msg { padding: 20px 24px 26px; text-align: left; border-top: 1px dashed var(--line); }
.cd-fold { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.cd-fold__stage { width: 100%; max-width: 560px; perspective: 1400px; }
.cd-fold__inner { position: relative; width: 100%; aspect-ratio: 3 / 2; transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1); transform-style: preserve-3d; }
.cd-fold.is-open .cd-fold__inner { transform: rotateY(-180deg); }
.cd-fold__front, .cd-fold__inside { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cd-fold__front { cursor: pointer; }
.cd-fold__inside { display: block; overflow: auto; padding: 22px 26px; border-radius: 14px; background: var(--field); border: 1px solid var(--line); text-align: left; transform: rotateY(180deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 10px 28px rgba(0, 0, 0, 0.16); }
.cd-fold__plain { display: none; }
.cd-fold__btn { min-width: 160px; }
@media (prefers-reduced-motion: reduce) { .cd-fold__inner { transition: none; } }
@media (max-width: 520px) { .cd-fold__inner { aspect-ratio: 4 / 5; } .cd-fold__front { aspect-ratio: auto; } .cd-fold__inside { padding: 16px; } }
.cd-audio { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 560px; }
.cd-audio audio { width: 100%; }
.cd-owner { align-self: stretch; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.cd-owner .rv-small, .cd-owner p { margin: 0; }
.cd-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cd-invite code { flex: 1 1 260px; min-width: 0; padding: 8px 10px; border-radius: 8px; background: var(--field); font-size: 12px; overflow-wrap: anywhere; }

/* The card editor: a large live preview, the format under it, then the choices in rounded panels like the page's Details. */
.cd { display: flex; flex-direction: column; gap: 14px; }
.cd-float[hidden], .cd [hidden], .cd-private[hidden] { display: none !important; }
.cr[data-kind="card"]:not(.cd-twosided) .cr-card { margin-top: 0; }
.cdx-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 4px 0 10px; }
.cdx-preview { width: 100%; max-width: 480px; border-radius: 16px; overflow: hidden; background: var(--field); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 14px 36px rgba(0, 0, 0, .22); }
.cdx-preview .cd-designer__face { border-radius: 0; font-size: 0; }
.cdx-preview .cd-face__text { font-size: clamp(20px, 4.4vw, 30px); }
.cdx-preview__msg { margin: 0; padding: 16px 20px 18px; border-top: 1px dashed var(--line); color: var(--ink); font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
.cdx-preview__msg:empty::before { content: attr(data-empty); color: var(--muted); }
/* Segmented controls (format, design or picture). */
.cdx-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line); }
.cdx-seg label { cursor: pointer; }
.cdx-seg input { position: absolute; opacity: 0; pointer-events: none; }
.cdx-seg span { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.cdx-seg input:checked + span { background: var(--pe-accent, var(--accent)); color: #fff; }
.cdx-seg label:has(input:focus-visible) span { outline: 2px solid var(--pe-accent, var(--accent)); outline-offset: 2px; }
.cdx-seg--sm span { padding: 5px 12px; font-size: 13px; }
.cdx-ico { position: relative; width: 18px; height: 13px; border: 1.5px solid currentColor; border-radius: 3px; }
.cdx-ico--post::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 1.5px; background: currentColor; box-shadow: 0 -3px 0 currentColor; }
.cdx-ico--fold::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1.5px solid currentColor; }
/* Panels. */
.cdx-panel { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); }
.cdx-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.cdx-panel__head h3 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; }
.cdx-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.cdx-design { display: flex; flex-direction: column; gap: 14px; }
.cdx .cd-swatches, .cdx .cd-patterns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.cdx .cd-swatch, .cdx .cd-pattern { cursor: pointer; }
.cdx .cd-swatch input, .cdx .cd-pattern input { position: absolute; opacity: 0; pointer-events: none; }
.cdx .cd-swatch span { display: block; width: 32px; height: 32px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: transform .12s; }
.cdx .cd-swatch:hover span { transform: scale(1.08); }
.cdx .cd-swatch input:checked + span { box-shadow: 0 0 0 2px var(--field), 0 0 0 4px var(--pe-accent, var(--accent)); }
.cdx .cd-swatch:has(input:focus-visible) span { outline: 2px solid var(--pe-accent, var(--accent)); outline-offset: 4px; }
/* Pattern tiles are small cards in the chosen colour, the pattern's name under each. */
.cdx .cd-pattern span { --cd-bg: var(--cd-pick-bg, #9ca3af) !important; --cd-ink: var(--cd-pick-ink, #fff) !important; display: flex; align-items: flex-end; justify-content: center; width: 64px; height: 44px; padding: 0 0 4px; border: 0; border-radius: 8px; background-color: var(--cd-bg); background-size: 11px 11px; color: var(--cd-ink); font-size: 10px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cdx .cd-pattern span.cd-pat-hearts { background-size: 18px 18px; }
.cdx .cd-pattern input:checked + span { box-shadow: 0 0 0 2px var(--field), 0 0 0 4px var(--pe-accent, var(--accent)); }
.cdx .cd-pattern:has(input:focus-visible) span { outline: 2px solid var(--pe-accent, var(--accent)); outline-offset: 4px; }
/* Picking a picture. */
.cdx-drop { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 1.5px dashed var(--line-strong, var(--line)); border-radius: 12px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.cdx-drop:hover { border-color: var(--pe-accent, var(--accent)); }
.cdx-drop svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--pe-accent, var(--accent)); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cdx-drop b { display: block; font-size: 14px; font-weight: 600; }
.cdx-drop small { display: block; color: var(--muted); font-size: 12px; }
/* Fields. */
.cdx-field { display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: 13px; }
.cdx-field small { margin-left: 4px; color: var(--muted); font-weight: 400; }
.cdx .input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; }
.cdx .input:focus { outline: 0; border-color: var(--pe-accent, var(--accent)); }
.cdx .cd-short { display: block; resize: vertical; min-height: 104px; line-height: 1.5; }
.cdx .cd-inside { min-height: 240px; }
.cdx-at { position: relative; display: block; }
.cdx-at i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; pointer-events: none; }
.cdx-at .input { padding-left: 32px; }
.cdx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cdx-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
/* A switch for the invite link. */
.cdx-switch { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; cursor: pointer; }
.cdx-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cdx-switch__track { position: relative; flex: none; width: 36px; height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: background .15s; }
.cdx-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.cdx-switch input:checked + .cdx-switch__track { background: var(--pe-accent, var(--accent)); }
.cdx-switch input:checked + .cdx-switch__track::after { transform: translateX(14px); }
.cdx-switch:has(input:focus-visible) .cdx-switch__track { outline: 2px solid var(--pe-accent, var(--accent)); outline-offset: 2px; }
/* Audio: one row. */
.cdx-panel--row { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; }
.cdx-panel__ico { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--pe-accent, var(--accent)); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cdx-audio__text { flex: 1; min-width: 0; }
.cdx-audio__text b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.cdx-audio__text small { display: block; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.cdx-btn { flex: none; padding: 7px 16px; border: 0; border-radius: 999px; background: var(--pe-accent, var(--accent)); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cdx-btn:hover { filter: brightness(1.1); }
.cdx-link { flex: none; padding: 6px 4px; border: 0; background: none; color: var(--pe-accent, var(--accent)); font: inherit; font-size: 13px; cursor: pointer; }
@media (max-width: 520px) { .cdx-panel { padding: 14px; } .cdx .cd-pattern span { width: 56px; height: 40px; } }

/* Capsules */
.cs-sealed { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px; width: 100%; border: 1px solid var(--line); border-radius: 18px; background: var(--field); text-align: center; }
.cs-sealed p { margin: 0; }
.cs-sealed__title { color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.cs-count { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.cs-glass { width: 96px; height: 128px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cs-glass__frame { stroke-width: 5; }
.cs-glass__sand, .cs-glass__pile { fill: currentColor; stroke: none; color: #d9a21b; }
.cs-glass__stream { stroke: #d9a21b; stroke-width: 2; stroke-dasharray: 3 5; animation: cs-fall 1.2s linear infinite; }
@keyframes cs-fall { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: reduce) { .cs-glass__stream { animation: none; } }
.cs-banner { width: 100%; padding: 12px 14px; border: 1px dashed var(--muted); border-radius: 12px; color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.cs-opened { margin: 0; }
.cs-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; width: 100%; margin: 0; padding: 0; list-style: none; }
.cs-files li { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.cs-files img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.cs-files__name { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cs-set { display: flex; flex-direction: column; gap: 14px; }
.cs-attached { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cs-attached:empty { display: none; }
.cs-attached li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.cs-attached li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-attached__rm { flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.cs-attached__rm:hover { background: var(--field); color: var(--ink); }
/* "Sealed until <date>" on cards and lists */
.fx-sealed { gap: 5px; white-space: nowrap; }
.fx-sealed svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.fx-sealed-line { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--muted); font-size: 11.5px; }

/* Settings: the Add (+) button gives way to a round Save icon at the same spot. */
.pe-actions:has(.rv-savefab) { right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
body:has(.rv-fab) .pe-actions:has(.rv-savefab) { right: calc(24px + env(safe-area-inset-right, 0px)); }
.rv-savefab { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; }
.rv-savefab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }

/* The signed-in user menu is a popup above its pill, like the hamburger's; the pill stays where it is. Log out is plain red text at the bottom. */
body > .me .me-menu { left: 0; bottom: calc(100% + 10px); width: 232px; transform: translateY(8px); transform-origin: bottom left; }
body > .me.is-open .me-menu { transform: none; }
body > .me.is-open > .me__home { opacity: 1; pointer-events: auto; }
.me-menu__foot form { display: block; width: 100%; }
html body .me-menu .me-menu__out { width: 100%; justify-content: flex-start; }

/* Settings: more room between the section cards. */
.prof__body[data-shown="settings"] { display: flex; flex-direction: column; gap: 28px; }

/* Landing page: the scrolling area stops above the footer row (language select, credit), so slides never run under those buttons;
   each slide is as tall as what is left. */
body.rv-home:has(.lp-first) { --foot: 52px; }
body.rv-home:has(.lp-first) .rv-main { bottom: var(--foot); }
body.rv-home:has(.lp-first) .rv-main .lp-first,
body.rv-home:has(.lp-first) .rv-main .lp .lp-sec,
body.rv-home:has(.lp-first) .rv-main .lp .lp-cta,
body.rv-home:has(.lp-first) .rv-main .lp .lp-all,
body.rv-home:has(.lp-first) .lp-slides .lp-step { min-height: calc(100dvh - 52px - var(--foot)); padding-top: 24px; padding-bottom: 24px; }
/* The footer strip is as tall as the header (52px); what sits in it is centred in that strip. */
body.rv-home:has(.lp-first) .rv-lang { bottom: calc(4px + env(safe-area-inset-bottom, 0px)); }
body.rv-home:has(.lp-first) .rv-footer, body.rv-home:has(.lp-first) .lp-credit { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
/* The language pill is a little smaller, so it sits comfortably inside the 52px strip, centred like the header's buttons. */
body.rv-home:has(.lp-first) .rv-lang__btn { height: 36px; min-height: 36px; padding-top: 0; padding-bottom: 0; }
body.rv-home:has(.lp-first) .rv-lang { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
/* The globe's circle is concentric with the pill's rounded left end, with the word English close beside it. */
body.rv-home:has(.lp-first) .rv-lang .rv-lang__btn { gap: 2px; padding: 0 16px 0 3px; }
body.rv-home:has(.lp-first) .rv-lang__btn svg { width: 30px; height: 30px; stroke-width: 1; }
body.rv-home:has(.lp-first) .rv-lang { display: flex; align-items: center; }

/* Landing header and footer match the other pages: 64px each, their contents centred in them. */
body.rv-home { --hh: 64px; }
body.rv-home .rv-ph { min-height: 64px; }
body.rv-home .rv-dock { height: 64px; }
body.rv-home:has(.lp-first) { --foot: 64px; }
body.rv-home .rv-main { top: 64px; }
body.rv-home:has(.lp-first) .rv-main .lp-first,
body.rv-home:has(.lp-first) .rv-main .lp .lp-sec,
body.rv-home:has(.lp-first) .rv-main .lp .lp-cta,
body.rv-home:has(.lp-first) .rv-main .lp .lp-all,
body.rv-home:has(.lp-first) .lp-slides .lp-step { min-height: calc(100dvh - 64px - var(--foot)); }
body.rv-home:has(.lp-first) .rv-lang { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
body.rv-home:has(.lp-first) .rv-footer, body.rv-home:has(.lp-first) .lp-credit { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }

/* The language pill is the same size as the signed-in pill on the other pages (44px), centred in the 64px footer. */
body.rv-home:has(.lp-first) .rv-lang__btn { height: 44px; min-height: 44px; }
body.rv-home:has(.lp-first) .rv-lang { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
body.rv-home:has(.lp-first) .rv-lang .rv-lang__btn { gap: 3px; padding: 0 20px 0 4px; }
body.rv-home:has(.lp-first) .rv-lang__btn svg { width: 36px; height: 36px; }

/* Each slide is exactly the space between the header and footer (its content shrinks to fit, see landing1.html). */
body.rv-home:has(.lp-first) .lp-slides .lp-step { height: calc(100dvh - 64px - var(--foot)); overflow: hidden; }
.lp-slides .lp-step h2, .lp-slides .lp-step .lp-mini, .lp-slides .lp-step__text > p { zoom: var(--z, 1); }

/* Your keys (settings/keys): the same section cards as the Settings tab, in the same centred column. */
.custody-page { max-width: 720px; margin: 0 auto; padding: 24px 0 96px; }
.custody-page__title { margin: 0 0 20px; font-size: 28px; color: var(--ink); text-align: center; }
.custody-page__done { margin: 0 0 16px; text-align: center; color: var(--muted); }
.custody-page__back { margin: 24px 0 0; text-align: center; font-size: 14px; }
.custody-page .custody__note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.custody-page .custody__note b { color: var(--ink); }
.custody-page .custody__row { margin: 12px 0 0; }
.custody-page .acct__row code { font-size: 13px; }
.custody-page .acct__row b a { font-weight: 500; }
.custody-page .custody__status:empty { display: none; }
.custody-page .custody__row .rv-input { height: 40px; padding: 0 14px; border: 1px solid var(--pe-line, var(--line)); border-radius: 20px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; }
.custody-page .custody__row input[type="file"] { flex: 1 1 14rem; font-size: 13px; color: var(--muted); }

/* The first slide fits between the header and footer the same way (its headline, cards and buttons shrink together). */
body.rv-home:has(.lp-first) .rv-main .lp-first { height: calc(100dvh - 64px - var(--foot)); overflow: hidden; box-sizing: border-box; padding-top: 24px; padding-bottom: 24px; }
.lp-first > .rv-ask, .lp-first > .rv-carwrap, .lp-first > .lp-login { zoom: var(--z, 1); }

/* ---------- The Add dialog (app/templates/_add_modal.html, static/js/features/addflow.js) ---------- */
.addm[hidden], .addm [hidden] { display: none !important; }
.addm .addm__box { position: relative; display: flex; flex-direction: column; width: min(440px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 22px 18px 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: #1c1c1c; color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.7); transform: translateY(8px) scale(.98); transition: transform 240ms var(--ease); }
.addm.is-open .addm__box { transform: none; }
.addm .addm__x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: rgba(255,255,255,.6); cursor: pointer; }
.addm .addm__x:hover { color: #fff; background: rgba(255,255,255,.1); }
.addm .addm__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; }
.addm .addm__step { display: flex; flex-direction: column; gap: 4px; }
.addm .addm__step[hidden] { display: none; }
.addm .addm__label { margin: 14px 12px 4px; color: rgba(255,255,255,.5); font-size: 15px; }
.addm .addm__label:first-child { margin-top: 4px; }
.addm .addm__item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: none; color: #fff; font: inherit; font-size: 18px; text-align: left; cursor: pointer; }
.addm .addm__item:hover, .addm .addm__item:focus-visible { background: rgba(255,255,255,.08); outline: none; }
.addm .addm__item svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.addm .addm__item .rv-kind { gap: 14px; }
.addm .addm__item .rv-kind svg { width: 24px; height: 24px; }
.addm .addm__back { align-self: flex-start; margin-bottom: 8px; padding: 6px 8px; border: 0; background: none; color: rgba(255,255,255,.6); font: inherit; font-size: 14px; cursor: pointer; }
.addm .addm__back:hover { color: #fff; }
.addm .addm__title { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
.addm .rv-opts { margin: 0 0 8px; padding: 0; border: 0; color: #fff; }
.addm .rv-opts legend { padding: 0 0 8px; font-size: 15px; }
.addm .rv-opt { border-color: rgba(255,255,255,.16); color: #fff; }
.addm .rv-opt:has(input:checked) { border-color: #fff; background: rgba(255,255,255,.06); }
.addm .rv-opt span, .addm .addm__note { color: rgba(255,255,255,.55); }
.addm .addm__price, .addm .addm__alt { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; color: #fff; font-size: 14px; }
.addm .addm__go { margin-top: 12px; }
.addm .addm__cost { opacity: .9; font-variant-numeric: tabular-nums; }
.addm .addm__cost.is-short { color: var(--danger, #e85d4c) !important; opacity: 1; }
.addm .addm__go.is-uploading { gap: 10px; pointer-events: none; }
.addm .addm__go.is-uploading::before {
  content: "";
  width: 1.05em;
  height: 1.05em;
  flex: none;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: addm-upload-spin .7s linear infinite;
}
@keyframes addm-upload-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .addm .addm__go.is-uploading::before { animation: none; border-right-color: currentColor; opacity: .55; }
}

.addm .rv-drop { color: rgba(255,255,255,.8); }
@media (max-width: 640px) { .addm .addm__item { font-size: 17px; } }
.addm .addm__title--kind { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.addm .addm__ico svg { display: block; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }

/* The dialog form of Add has none of the file manager's inline extras (they are added to it for the inline form only). */
.addm:not(.addm--inline) .addm__who, .addm:not(.addm--inline) .addm__current, .addm:not(.addm--inline) .addm__rule, .addm:not(.addm--inline) .addm__hint { display: none; }

/* The dialog form of Add: the Records box and a title at the top, like the sign-in window, and colors for the light themes. */
.addm .addm__head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 0 40px 14px 6px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.addm .addm__chest { flex: none; display: grid; place-items: center; line-height: 0; }
.addm:not(.addm--inline) .addm__title { display: none; }
.addm .addm__headtitle { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.addm.addm--inline .addm__head { display: none; }
html[data-theme="light"] .addm:not(.addm--inline) { background: rgba(120, 150, 190, .35); }
html[data-theme="light"] .addm:not(.addm--inline) .addm__box { border-color: rgba(0, 0, 0, .1); background: rgba(255, 255, 255, .92); color: #111; box-shadow: 0 30px 80px rgba(20, 40, 80, .28); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
html[data-theme="light"] .addm:not(.addm--inline) .addm__head { border-bottom-color: rgba(0, 0, 0, .1); }
html[data-theme="light"] .addm:not(.addm--inline) .addm__x { color: rgba(0, 0, 0, .5); }
html[data-theme="light"] .addm:not(.addm--inline) .addm__x:hover { color: #111; background: rgba(0, 0, 0, .07); }
html[data-theme="light"] .addm:not(.addm--inline) .addm__label, html[data-theme="light"] .addm:not(.addm--inline) .addm__back, html[data-theme="light"] .addm:not(.addm--inline) .rv-opt span, html[data-theme="light"] .addm:not(.addm--inline) .addm__note, html[data-theme="light"] .addm:not(.addm--inline) .addm__cost { color: rgba(0, 0, 0, .55); }
html[data-theme="light"] .addm:not(.addm--inline) .addm__back:hover { color: #111; }
html[data-theme="light"] .addm:not(.addm--inline) .addm__item, html[data-theme="light"] .addm:not(.addm--inline) .rv-opts, html[data-theme="light"] .addm:not(.addm--inline) .rv-opt, html[data-theme="light"] .addm:not(.addm--inline) .addm__price, html[data-theme="light"] .addm:not(.addm--inline) .addm__alt, html[data-theme="light"] .addm:not(.addm--inline) .addm__title { color: #111; }
html[data-theme="light"] .addm:not(.addm--inline) .addm__item:hover, html[data-theme="light"] .addm:not(.addm--inline) .addm__item:focus-visible { background: rgba(0, 0, 0, .06); }
html[data-theme="light"] .addm:not(.addm--inline) .rv-opt { border-color: rgba(0, 0, 0, .14); }
html[data-theme="light"] .addm:not(.addm--inline) .rv-opt:has(input:checked) { border-color: #111; background: rgba(0, 0, 0, .05); }
html[data-theme="light"] .addm:not(.addm--inline) .rv-drop { color: rgba(0, 0, 0, .7); }
html[data-theme="light"] .addm:not(.addm--inline) .input { color: #111; }
/* The close button lines up with the Records box and the title: the same middle line. */
.addm:not(.addm--inline) .addm__x { top: 22px; right: 16px; }
.addm:not(.addm--inline) .addm__head { min-height: 32px; }


/* The English button sits level with "Built on Arweave" and "Created by Vanilla Software": moved up to share their centreline. */
html body.rv-home:has(.lp-first) .rv-lang { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }

/* The Add dialog's panel is the same grey as the view bar, and the page behind it is not blurred. */
html:not([data-theme="light"]) .addm:not(.addm--inline) .addm__box { background: #373737; border-color: transparent; }
.addm:not(.addm--inline) { -webkit-backdrop-filter: none; backdrop-filter: none; }
html:not([data-theme="light"]) .addm:not(.addm--inline) .addm__box { background: #222222; border: 1px solid #4b4f58; box-shadow: none; }
html[data-theme="light"] .addm:not(.addm--inline) .addm__box { background: rgba(255, 255, 255, .85); border: 1px solid #c4c8cf; box-shadow: none; }

/* The Add dialog is the Sign In button's glass: on dark no fill, only a 1.5px border; on light the whitish fill and a faint dark border. */
html:not([data-theme="light"]) .addm:not(.addm--inline) .addm__box { background: rgba(255, 255, 255, 0.0375); border: 1.5px solid rgba(255, 255, 255, 0.2); box-shadow: none; -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); }
html[data-theme="light"] .addm:not(.addm--inline) .addm__box { background: rgba(255, 255, 255, 0.69); border: 1.5px solid rgba(0, 0, 0, 0.125); box-shadow: none; -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); }
/* No transparency: the dialog is a solid color, with the same edge. */
html:not([data-theme="light"]) .addm:not(.addm--inline) .addm__box { background: #101010; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="light"] .addm:not(.addm--inline) .addm__box { background: #f6f6f4; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* More themes (chosen from the theme menu): each is a plain colour, dark or light, with no sky. Set by data-skin on <html>. */
html[data-skin="midnight"] { --bg: #0a1a40; --accent: #5b6bdf; --pe-accent: #5b6bdf; --sel: #5b6bdf; }
html[data-skin="forest"] { --bg: #0a2616; --accent: #e3f1e8; --pe-accent: #e3f1e8; --sel: #e3f1e8; }
html[data-skin="plum"] { --bg: #2b1138; }
html[data-skin="cream"][data-theme="light"] { --bg: #faf6ef; --accent: #2b4a8a; --pe-accent: #2b4a8a; --sel: #203a70; }
html[data-skin="mint"][data-theme="light"] { --bg: #e3f1e8; --accent: #0a2616; --pe-accent: #0a2616; --sel: #0a2616; }
html[data-skin="rose"][data-theme="light"] { --bg: #f6e3e6; --accent: #8a3a7a; --pe-accent: #8a3a7a; --sel: #702e63; }
html[data-skin="lavender"][data-theme="light"] { --bg: #e9e4f5; --accent: #4a4ccf; --pe-accent: #4a4ccf; --sel: #3a3bb0; }

/* Get Started (the blue button) wears the colour theme's accent, like Learn more does: filled with --sel, white text, no border. */
html[data-skin] .btn.btn--blue { --btn-fill: var(--sel, #1f6fe5); --btn-edge-top: var(--sel, #1f6fe5); --btn-edge-bottom: var(--sel, #1f6fe5); --btn-line: transparent; background: var(--sel, #1f6fe5); color: #fff; }
html[data-skin] .btn.btn--blue:hover { background: var(--sel, #1f6fe5); filter: brightness(1.12); }

/* Theme tiles: every tile has the same 1.5px border (clear unless chosen), so the label, which sits against the inside of the border,
   lands at the same spot on all of them. Before, White and Black had none and sat 1.5px further left and lower than the scenes. */
html:not(#a):not(#b):not(#c) body .me-tiles .me-tiles__opt { border-width: 1.5px !important; border-style: solid !important; }
html:not(#a):not(#b):not(#c) body .me-tiles .me-tiles__opt:not([aria-checked="true"]) { border-color: transparent !important; }

/* The plain and colour tiles have no edge at all: the border above stays clear (it keeps the labels aligned) and the inset line some of them drew is gone. */
html:not(#a):not(#b):not(#c) body .me-tiles .me-tiles__opt[data-sky="off"]:not([aria-checked="true"]), html:not(#a):not(#b):not(#c) body .me-tiles .me-tiles__skin:not([aria-checked="true"]) { box-shadow: none !important; border-color: transparent !important; }

/* Group lists: the square beside a group is the same size as a cover thumbnail (32px, same corners), and Created, Collected, the groups and
   "+ New group" all start at the same left edge, with no indent. */
html:not(#a):not(#b):not(#c) body .fm .fm-kid .fm-gico:not(:has(img)) { width: 32px; height: 32px; border-radius: 6px; }
html:not(#a):not(#b):not(#c) body .fm .fm-menu .fm-kid { padding-left: 12px !important; text-align: left !important; justify-content: flex-start !important; }
html:not(#a):not(#b):not(#c) body .fm .fm-menu .fm-kid > .rv-kind, html:not(#a):not(#b):not(#c) body .fm .fm-menu .fm-kid > .fm-kind { display: none !important; }

/* A group on "Original licenses" shows four green tiles: each record keeps its own terms. */
.fm-gtile__mixed { flex: none; width: 14px; height: 14px; fill: none; stroke: #2a9a4f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* A group with no image of its own shows the big Records box in the middle of its tile (the same mark as the small one beside its name). */
.fm .fm-gtile__mark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: var(--ink); opacity: .9; transition: opacity .15s; }
html body .fm .fm-gtile__art .fm-gtile__mark svg { display: block; width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
/* The camera button sits on top of the group's mark; the mark stays. */

/* Group cards have no tile behind the picture: the Records box sits straight on the page. */
html body .fm .fm-gtile__art, html body .fm .fm-gtile .rv-pol { background: none !important; }

/* The Add menu's steps: Back is just an arrow in the top right corner, and the main button (Continue, Upload, Save) is the theme's accent, not green. */
html:not(#a):not(#b) body .addm .addm__step { position: relative; }
html:not(#a):not(#b) body .addm .addm__step > .addm__back, html:not(#a):not(#b) body .rv-licpop > .addm__back { position: absolute; top: 6px; right: 6px; margin: 0; padding: 6px 10px; font-size: 18px; line-height: 1; z-index: 1; }
html:not(#a):not(#b) body .addm .addm__step > .addm__title, html:not(#a):not(#b) body .rv-licpop > .addm__back + .rv-opts { padding-right: 40px; }
html:not(#a):not(#b) body .addm .btn.addm__go, html:not(#a):not(#b) body .rv-licpop .btn.addm__go { background: var(--sel, #1f6fe5) !important; color: #fff !important; border-color: transparent !important; --btn-fill: var(--sel, #1f6fe5); --btn-line: transparent; box-shadow: none !important; }
html:not(#a):not(#b) body .addm .btn.addm__go:hover, html:not(#a):not(#b) body .rv-licpop .btn.addm__go:hover { filter: brightness(1.12); }


/* The Theme menu: its own column beside the rail, with just the themes at the top. */
.fm .fm-menupanel--theme { padding-top: 12px; }
.fm-landing .fm-menupanel--theme { display: block; width: var(--lf-menu); box-sizing: border-box; padding: 12px 6px; }
.fm-landing .fm-menupanel--theme[hidden] { display: none; }

/* The Theme panel is the themes themselves, straight in the column: no popup box, no title, larger tiles with their full names. */

html:not(#a):not(#b):not(#c):not(#d) body .fm .fm-menupanel--theme .me-motion { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; margin: 14px 0 0; padding: 6px 2px; font-size: 15px; }
html:not(#a):not(#b):not(#c):not(#d) body .fm .fm-menupanel--theme .me-motion > * { flex: none; margin-left: 0; margin-right: 0; }

/* Clear filters (Filter menu) sits at the bottom, left aligned, in the flow of the menu; the Motion switch in the Theme panel is left aligned. */
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .fm-filterpop .fm-filterpop__clear { position: static !important; top: auto !important; right: auto !important; display: flex !important; align-self: flex-start !important; justify-content: flex-start !important; text-align: left !important; width: auto !important; margin: 10px 0 0 0 !important; padding: 8px 10px !important; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .fm .fm-menupanel--theme .fm-themepop .me-motion { position: static !important; top: auto !important; right: auto !important; justify-content: flex-start !important; padding: 6px 2px !important; }

/* The theme tiles, one look wherever they are shown inline (the Theme panel beside the rail and the Records menu on the landing page): they sit straight on the page, no popup box or title,
   small tiles on a 6px grid, their names small in the bottom-left corner. */
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-themetiles { position: static; width: auto; max-width: none; margin: 0; padding: 4px 10px 12px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; filter: none; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-themetiles .fm-pop-title, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-themetiles .me-motion + .fm-pop-title { display: none !important; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-themetiles .fm-themepop__title { margin: 10px 2px 6px; padding: 0; font-size: 12px; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-themetiles .me-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 6px; padding: 2px 0; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-themetiles .me-tiles__opt span { font-size: 10.5px !important; left: 3px !important; bottom: 0 !important; padding: 0 2px 2px !important; letter-spacing: -.01em; text-overflow: clip; }

/* The landing page's menu closes from the "‹ Records" header, so it has no X in its corner. */
html:not(#a):not(#b):not(#c):not(#d) body.rv-home .me-menu .me-drawer-x { display: none !important; }

/* Less empty space above the Theme menu: it starts right under the top of the column. */
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .fm .fm-menupanel--theme { padding-top: 0 !important; margin-top: -10px; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .fm .fm-menupanel--theme .rv-themetiles { padding-top: 0 !important; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .fm .fm-menupanel--theme .rv-themetiles > .fm-themepop__title:first-child { margin-top: 0; }


/* The "Created by" line sits on the footer's own line, bottom corner to bottom center, not above it. */
body.rv-home .lp-credit, body.rv-home:has(.lp-first) .lp-credit { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }

/* The license icons (person, tag, briefcase, lock) are always filled with the theme's accent colour. (The owner's gold key and the red taken-down mark keep theirs.) */
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .od-lock:not(.od-lock--gold):not(.od-lock--down), html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .od-access { color: var(--accent, #1f6fe5) !important; }

/* The bottom row of a card and of a record's page reads license, then date, then size, each with a dot before it, and the options (the three dots) at the right. */
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-cap__who { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: flex-start !important; gap: 2px 8px; padding-left: 0; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-cap__who > .rv-cap__lic, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-cap__who > .rv-cap__date, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-cap__who > .rv-cap__size { margin: 0 !important; white-space: nowrap; display: inline-flex; align-items: center; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-cap__who > .rv-cap__lic ~ .rv-cap__date::before, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-cap__who > .rv-cap__date ~ .rv-cap__size::before, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-piece__sub > .rv-piece__lic ~ .rv-piece__date::before, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-piece__sub > .rv-piece__date ~ .rv-piece__size::before { content: "\00b7"; margin-right: 8px; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-cap__who > .rv-more3 { margin-left: auto !important; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-piece__sub { gap: 0 8px; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-cap__who > .rv-cap__date::after, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-cap__who > .rv-cap__lic::before, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-cap__who > .rv-cap__lic::after, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-cap__who > .rv-cap__size::after { content: none !important; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-cap__who > .rv-cap__size, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .rv-cap__who > .rv-cap__date { font-size: inherit !important; letter-spacing: inherit; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz):not(#aaa):not(#bbb):not(#ccc):not(#ddd):not(#eee):not(#fff):not(#ggg):not(#hhh):not(#iii):not(#jjj) body .rv-cap__who > .rv-cap__lic, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz):not(#aaa):not(#bbb):not(#ccc):not(#ddd):not(#eee):not(#fff):not(#ggg):not(#hhh):not(#iii):not(#jjj) body .rv-cap__who > .rv-cap__date, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz):not(#aaa):not(#bbb):not(#ccc):not(#ddd):not(#eee):not(#fff):not(#ggg):not(#hhh):not(#iii):not(#jjj) body .rv-cap__who > .rv-cap__size { font-size: 12.5px !important; line-height: 1.3; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz):not(#aaa):not(#bbb):not(#ccc):not(#ddd):not(#eee):not(#fff):not(#ggg):not(#hhh):not(#iii):not(#jjj) body .rv-cap__who { column-gap: 0 !important; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz):not(#aaa):not(#bbb):not(#ccc):not(#ddd):not(#eee):not(#fff):not(#ggg):not(#hhh):not(#iii):not(#jjj) body .rv-cap__who > .rv-cap__lic ~ .rv-cap__date::before, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz):not(#aaa):not(#bbb):not(#ccc):not(#ddd):not(#eee):not(#fff):not(#ggg):not(#hhh):not(#iii):not(#jjj) body .rv-cap__who > .rv-cap__date ~ .rv-cap__size::before { content: "\00b7"; margin: 0 7px; }

/* Preview view: the strip of small pictures has one even edge all round (no extra bottom line or shadow), and it clears the toolbar below it. */
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .fm .fm-gal-thumb { box-shadow: none !important; border-radius: 8px; background: none !important; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .fm .fm-gal-thumb .rv-prev, html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .fm .fm-gal-thumb .rv-prev--real { border: 0 !important; border-bottom: 0 !important; box-shadow: none !important; border-radius: 6px !important; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .fm .fm-gallery { margin-bottom: 100px; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .fm .fm-gallery__strip { padding: 6px 2px 14px; }

html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .fm .fm-gal-thumb .rv-prev { background: color-mix(in srgb, var(--ink, #111) 7%, transparent) !important; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .fm .fm-gallery__art.rv-prev { border: 0 !important; box-shadow: none !important; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz) body .fm .fm-gallery { height: calc(100vh - 262px); min-height: 400px; margin-bottom: 0; }

/* In the grid a card's bottom row is date, then license, then size. */
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz):not(#aaa):not(#bbb):not(#ccc):not(#ddd):not(#eee):not(#fff):not(#ggg):not(#hhh):not(#iii):not(#jjj) body .rv-cap__who > .rv-cap__date ~ .rv-cap__lic::before { content: "\00b7" !important; margin: 0 7px 0 0; }
html:not(#a):not(#b):not(#c):not(#d):not(#e):not(#f):not(#g):not(#h):not(#i):not(#j):not(#k):not(#l):not(#m):not(#n):not(#o):not(#p):not(#q):not(#r):not(#s):not(#t):not(#u):not(#v):not(#w):not(#x):not(#y):not(#z):not(#aa):not(#bb):not(#cc):not(#dd):not(#ee):not(#ff):not(#gg):not(#hh):not(#ii):not(#jj):not(#kk):not(#ll):not(#mm):not(#nn):not(#oo):not(#pp):not(#qq):not(#rr):not(#ss):not(#tt):not(#uu):not(#vv):not(#ww):not(#xx):not(#yy):not(#zz):not(#aaa):not(#bbb):not(#ccc):not(#ddd):not(#eee):not(#fff):not(#ggg):not(#hhh):not(#iii):not(#jjj) body .rv-cap__who > .rv-cap__date ~ .rv-cap__lic { margin-left: 7px !important; }

/* Phones: a compact credit band (it was 64px and cut off the slide buttons), and more room under the header on the first slide. */
@media (max-width: 640px) {
  html body.rv-home:has(.lp-first) { --foot: 34px; }
  html body.rv-home:has(.lp-first) .rv-main .lp-first { padding-top: 48px; }
}

/* Landing "Add your records" on a phone: the Create/Upload grid fills the width (3 columns, big tiles) instead of wrapping
   into narrow rows that the fit-to-height zoom (landing body script) then shrank to a tiny box, worst on browsers with
   bars top and bottom (iOS Brave). */
@media (max-width: 760px) {
  body.rv-home .lp-slides .lp-step { padding-left: 16px; padding-right: 16px; gap: 16px; }
  body.rv-home .lp-slides .lp-step .lp-mini--add { width: 100%; box-sizing: border-box; min-height: 0; height: auto; padding: 14px; gap: 8px; align-items: stretch; }
  body.rv-home .lp-slides .lp-step .lp-mini--add > p { margin: 2px 0 0; font-size: 13px; }
  body.rv-home .lp-slides .lp-step .lp-mini--add > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  body.rv-home .lp-slides .lp-step .lp-mini--add > div > span { display: block; min-width: 0; }
  body.rv-home .lp-slides .lp-step .lp-mini--add .rv-kind { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; box-sizing: border-box;
    gap: 8px; height: clamp(64px, 11dvh, 100px); min-height: 0; padding: 4px; border-radius: 14px; font-size: 15px; line-height: 1.15; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.rv-home .lp-slides .lp-step .lp-mini--add svg { width: 32px; height: 32px; }
  /* No zoom on this panel: WebKit draws a zoomed grids box smaller than its tiles. The tiles height follows the screen instead. */
  body.rv-home .lp-slides .lp-step .lp-mini--add { zoom: 1 !important; }
  body.rv-home .lp-slides .lp-step .lp-step__text h2 { margin-bottom: 6px; }
}
/* Create: the thumbnail is one rounded square above the title, the same box as "Create a Sketch". A chosen picture fills it. */
.cr .cr-thumb { position: relative; align-self: center; --pe-side: min(360px, 80vw); width: var(--pe-side); height: var(--pe-side); box-sizing: border-box; margin-bottom: 4px; }
html body .cr .cr-thumb .cr-frame { position: absolute; inset: 0; margin: 0; padding: 0; overflow: hidden; border-radius: 20px; }  /* the same corners as the dashed box */
html:not(#a):not(#b) body .cr .cr-thumb .cr-frame:not([hidden]) { display: block !important; }  /* records.css hides the old separate frame; in the square it is the picture */
html body .cr .cr-thumb .cr-frame img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
html body .cr .cr-thumb .cr-thumb__remove { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; }
html body .cr .cr-thumb .cr-thumb__remove[hidden] { display: none; }
.cr .cr-thumb .cr-thumb__remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
/* No Details box when a kind has nothing to put in it (the thumbnail moved above the title). */
.cr .cr-details:not(:has(*)) { display: none; }

/* Forest's accent is the light mint, so the words on its buttons and selected rows are the dark forest green, not white. */
html[data-skin="forest"] .btn.btn--blue, html[data-skin="forest"] .fm-follow__btn:not(.is-on), html[data-skin="forest"] .cdx-btn, html[data-skin="forest"] .cdx-seg input:checked + span,
html[data-skin="forest"] .addm .btn.addm__go, html[data-skin="forest"] .rv-piece__cta .btn, html[data-skin="forest"] .fm-themepop__lang[aria-checked="true"], html[data-skin="forest"] .rm-card .rm-btn,
html[data-skin="forest"] .fm-filterpop__chip[aria-pressed="true"], html[data-skin="forest"] .fm .fm-rail__btn.is-on, html[data-skin="forest"] .fm .fm-sec__head.is-on, html[data-skin="forest"] .fm .fm-kid.is-on,
html[data-skin="forest"] .fm .fm-dock__opt.is-on, html[data-skin="forest"] .fm .fm-dock__opt[aria-checked="true"], html[data-skin="forest"] .fm .fm-dock__opt[aria-expanded="true"], html[data-skin="forest"] .addm .addm__item.is-on,
html[data-skin="forest"] .fm .fm-secseg > button.is-on, html[data-skin="forest"] .fm .fm-me.is-on { color: #0a2616 !important; }
html[data-skin="forest"] .fm .fm-kid.is-on *, html[data-skin="forest"] .fm .fm-rail__btn.is-on *, html[data-skin="forest"] .fm .fm-sec__head.is-on * { color: #0a2616 !important; }

/* Card presets: a grid of ready-made fronts; picking one opens the sketch editor on it. */
.cdx-presets { display: flex; flex-direction: column; gap: 12px; }
.cdx-presets__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.cdx-preset { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.cdx-preset__pic { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s; }
.cdx-preset:hover .cdx-preset__pic, .cdx-preset:focus-visible .cdx-preset__pic { box-shadow: 0 0 0 2px var(--pe-accent, var(--accent, #1f6fe5)); transform: translateY(-1px); }
.cdx-presets__edit { align-self: flex-start; }
/* Recording: the button shows red while the microphone is on; the same control floats over the sketch editor. */
.cdx-btn.is-rec { background: #e5484d; color: #fff; }
.cd-recpill { position: fixed; z-index: 2147483000; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  background-color: color-mix(in srgb, var(--fm-foot, var(--bg-solid, var(--bg))) 96%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); }
.cd-recpill i { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; }
.cd-recpill.is-rec i { animation: cd-rec 1s ease-in-out infinite; }
@keyframes cd-rec { 50% { opacity: .25; } }

/* The finished card, shown under the presets once the sketch is saved. */
.cdx-presets__preview { margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; }
.cdx-presets__preview img { display: block; width: 100%; max-width: 560px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.cdx-presets__preview figcaption { display: flex; }

/* Who the card is for: the same people rows as the Friends menu; the chosen one shows a check. */
.cdx-to { display: flex; flex-direction: column; gap: 10px; }
.cdx-to__search { margin: 0; }
.cdx-to__list { max-height: 280px; overflow-y: auto; scrollbar-width: none; }
.cdx-to__list::-webkit-scrollbar { display: none; }
.cdx-to__list li[hidden] { display: none; }
.pl__list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.cdx-to__check { flex: none; width: 22px; height: 22px; margin-left: auto; border: 1.5px solid var(--line-strong, var(--line)); border-radius: 50%; }
.pl__list button.is-on .cdx-to__check { border-color: var(--pe-accent, var(--accent, #1f6fe5)); background: var(--pe-accent, var(--accent, #1f6fe5)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cdx-audio__text audio { display: block; width: 100%; max-width: 360px; height: 36px; margin-top: 8px; }

.cd-exitpill { position: fixed; z-index: 2147483001; left: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  background-color: color-mix(in srgb, var(--fm-foot, var(--bg-solid, var(--bg))) 96%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); }
.cd-exitpill span { font-size: 20px; line-height: 1; }

/* Archive storage: two thin bars. Archived is what is already on Arweave; Staged is what still waits on this server; both count toward what you bought. */
.prof__store { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 6px 0 0; color: inherit; text-decoration: none; }
.prof__store-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); }
.prof__store-row b { font-weight: 500; color: var(--ink); }
.prof__bar { display: block; width: 100%; height: 6px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.prof__bar i { display: block; height: 100%; border-radius: inherit; background: var(--pe-accent, var(--accent, #1f6fe5)); }
.prof__bar--staged i { background: color-mix(in srgb, var(--pe-accent, var(--accent, #1f6fe5)) 55%, var(--ink)); background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255, 255, 255, .28) 4px 8px); }
.prof__store.is-over .prof__bar--staged i, .sto__sum.is-over ~ * .prof__bar--staged i { background-color: #e5484d; }
.prof__store.is-over .prof__store-row:last-of-type b { color: #e5484d; }
.sto { max-width: 560px; margin: 0 auto 28px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
.sto h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.sto__lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.sto__bars { display: flex; flex-direction: column; gap: 6px; }
.sto__row { display: flex; justify-content: space-between; font-size: 14px; }
.sto__row span { color: var(--muted); }
.sto__sum { margin: 12px 0; font-size: 14px; }
.sto__sum.is-over { color: #e5484d; }
.sto__buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sto__buy label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.sto__buy input[type="number"] { width: 84px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; font: inherit; }
.sto__total { font-size: 15px; font-weight: 600; }

.prof__store-row.is-over b, .sto__row.is-over b { color: #e5484d; }
.prof__bar.is-over i { background: #e5484d; background-image: none; }

/* Publish popup (the Archiving page): the sign-in card's look around the old page's content. */
.pub .pub__body { display: flex; flex-direction: column; gap: 12px; font-size: 14px; text-align: left; overflow-y: auto; max-height: 70vh; }
.pub .pub__body p, .pub .pub__body ul { margin: 0; }
.pub .eg__list { padding-left: 18px; }
.pub .pub__sub { margin: 6px 0 0; font-weight: 600; font-size: 13px; color: var(--rm-muted, var(--muted)); }
.pub .eg__fee { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.pub .eg__fee dt { color: var(--rm-muted, var(--muted)); }
.pub .eg__fee dd { margin: 0; }
.pub .eg__actions { display: flex; gap: 8px; justify-content: flex-end; }
.pub .eg__form { display: flex; gap: 8px; }
.pub .eg__form .input { flex: 1; min-width: 0; }

/* Buy storage wears the theme's accent. */
html body .sto__buy .btn.sto__buybtn { background: var(--pe-accent, var(--sel, var(--accent, #1f6fe5))) !important; background-image: none !important; border: 0 !important; color: var(--sel-ink, #fff) !important; box-shadow: none !important; }
html body .sto__buy .btn.sto__buybtn::before, html body .sto__buy .btn.sto__buybtn::after { display: none !important; }
html body .sto__buy .btn.sto__buybtn:hover { filter: brightness(1.1); }

/* Settings > Authentication > Apps that can add records, and the popup that shows a new key once. */
html body .fm .fm-imptok .fm-list li { align-items: flex-start; }
html body .fm .fm-imptok .fm-linkbtn { white-space: nowrap; }
html body .fm .fm-imptok .fm-field__msg:empty, html body .fm .fm-imptok-form .fm-field__msg:empty, html body .fm [data-imptok-copied]:empty { display: none; }
html body .fm .fm-imptok-form select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); font: inherit; font-size: 15px; }
html body .fm .fm-imptok-key { display: block; width: 100%; padding: 12px 14px; font-size: 13px; line-height: 1.4; word-break: break-all; user-select: all; -webkit-user-select: all; }
