:root {
  --bg: #f6f0e4; --surface: #fffaf0; --text: #2a2418; --muted: #7a6f5a;
  --accent: #2b4a7a; --line: #e4d9c0; --gold: #b8892b; --danger: #b3382c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1724; --surface: #17212f; --text: #ece6d6; --muted: #98a2b3;
    --accent: #8fb0e6; --line: #26324a; --gold: #e8c26a; --danger: #ff8a7d; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
body { overscroll-behavior-y: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.shell { min-height: 100dvh; padding-top: env(safe-area-inset-top);
  padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; margin-top: calc(-1 * env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font: 600 20px var(--serif); flex: 1; }
.topbar .back { background: none; border: 0; color: var(--accent); font-size: 17px; padding: 6px 4px; }
.page { max-width: 640px; margin: 0 auto; padding: 14px 16px; }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; display: flex;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar button { flex: 1; background: none; border: 0; padding: 8px 0 6px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; }
.tabbar button .ic { display: grid; place-items: center; height: 26px; }
.tabbar button:active .ic { transform: scale(.9); }
.tabbar button .ic svg { display: block; }
.tabbar button[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Feed cards */
.card { border-radius: 20px; overflow: hidden; margin: 0 0 18px; background: var(--surface);
  border: 1px solid var(--line); }
.verse { min-height: 300px; padding: 28px 24px 20px; display: flex; flex-direction: column;
  justify-content: space-between; color: #fff; text-align: left; border: 0; width: 100%;
  background-size: cover; position: relative; }
.verse::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.22); }
.verse > * { position: relative; }
.verse .quote { font: 400 clamp(20px, 5.6vw, 26px)/1.4 var(--serif); margin: 0 0 18px; text-wrap: pretty;
  text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.verse .ref { font: 600 15px var(--sans); letter-spacing: .04em; opacity: .95; }
.actions { display: flex; gap: 4px; padding: 6px 10px; }
.actions button { flex: 1; background: none; border: 0; padding: 10px; font-size: 15px;
  color: var(--muted); border-radius: 12px; }
.actions button:active { background: var(--line); }
.actions button.on { color: var(--gold); }
.sentinel { text-align: center; color: var(--muted); padding: 20px; font-size: 14px; }

/* Forms */
.auth { max-width: 400px; margin: 0 auto; padding: 56px 20px; }
.auth h1 { font: 600 32px var(--serif); margin: 0 0 4px; text-align: center; }
.auth p.sub { text-align: center; color: var(--muted); margin: 0 0 28px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=search] {
  width: 100%; padding: 13px 14px; font-size: 17px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: var(--accent);
  color: var(--bg); font-weight: 600; font-size: 17px; }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); margin-top: 10px; }
.btn[disabled] { opacity: .6; }
.link { background: none; border: 0; color: var(--accent); padding: 12px; width: 100%; font-size: 15px; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; margin: 4px 0 10px; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.list li button { display: flex; width: 100%; justify-content: space-between; align-items: center;
  background: none; border: 0; padding: 14px 16px; font-size: 17px; text-align: left; }
.list li + li { border-top: 1px solid var(--line); }
.list .meta { color: var(--muted); font-size: 14px; }
.sect { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  margin: 22px 4px 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-width: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-size: 16px; }

/* Reader */
.reader p { font: 400 19px/1.65 var(--serif); margin: 0 0 4px; }
.reader sup { font: 600 11px var(--sans); color: var(--gold); margin-right: 4px; vertical-align: super; }
.reader .v { cursor: pointer; border-radius: 6px; }
.reader .v.sel { background: color-mix(in srgb, var(--gold) 25%, transparent); }
.pager { display: flex; gap: 10px; margin-top: 22px; }
.pager button { flex: 1; }
.result { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 10px; width: 100%; text-align: left; display: block; }
.result b { display: block; color: var(--accent); margin-bottom: 4px; font-size: 14px; }
.result span { font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 20px; font-size: 14px; z-index: 20; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
@media (prefers-reduced-motion: no-preference) { .card { animation: up .25s ease-out; }
  @keyframes up { from { opacity: 0; transform: translateY(8px); } } }

/* Article / video cards */
.media { display: block; color: inherit; text-decoration: none; }
.media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--line); }
.body { padding: 14px 16px 10px; } .body.pad { padding-top: 12px; }
.body h2 { font: 600 19px/1.3 var(--serif); margin: 4px 0 6px; text-wrap: balance; }
.body p { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.src { font-size: 13px; color: var(--muted); } .src b { color: var(--text); font-weight: 600; }
.badge { display: inline-block; margin-left: 4px; width: 15px; height: 15px; line-height: 15px; text-align: center;
  font-size: 10px; border-radius: 50%; background: var(--accent); color: var(--bg); vertical-align: 1px; }
.go { color: var(--accent); font-size: 14px; font-weight: 600; }
.player { position: relative; aspect-ratio: 16/9; background: #000; }
.player iframe, .player video, .player .thumb { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.thumb { padding: 0; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; display: block; }
.play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; line-height: 64px; text-align: center;
  border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 26px; padding-left: 4px; }
/* Admin orgs */
.org { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.org .meta, .srcrow { font-size: 13px; color: var(--muted); margin-top: 2px; word-break: break-all; }
.srcrow { display: flex; align-items: center; gap: 4px; } .srcrow span:first-child { flex: 1; }
.srcrow .bad { color: var(--danger); } .x { background: none; border: 0; color: var(--muted); padding: 6px; }
.btnrow { display: flex; gap: 8px; margin-top: 10px; }
.btnrow button { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: none; }
.btnrow .ok { background: var(--accent); color: var(--bg); border: 0; font-weight: 600; }
.btnrow .no { color: var(--danger); }

/* Art cards */
.verse.art { aspect-ratio: 4/5; min-height: 0; padding: 0; justify-content: flex-end; background: #111; overflow: hidden; }
.verse.art::before { background: linear-gradient(to bottom, rgba(0,0,0,0) 8%, rgba(0,0,0,.5) 32%, rgba(0,0,0,.84) 52%, rgba(0,0,0,.92) 100%); }
.verse.art .quote, .verse.art .ref { text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 14px rgba(0,0,0,.55); }
.verse.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.verse.art .quote { font-size: clamp(18px, 5vw, 23px); padding: 0 22px; margin: 0 0 8px; }
.verse.art.long .quote { font-size: clamp(15px, 4.2vw, 19px); }
.verse.art .ref { padding: 0 22px 18px; }
.credits { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.credits summary { cursor: pointer; } .credits p, .credits li { font-size: 14px; color: var(--muted); }
.credits ul { padding-left: 18px; } .credits a { color: var(--accent); }

/* Tab bar: center action */
.tabbar button.plus .ic { background: var(--accent); color: var(--bg); width: 40px; height: 30px; line-height: 30px; border-radius: 12px;
  margin-top: 2px; } .tabbar button.plus .ic { display: block; } .tabbar button.plus svg { margin: 3px auto; } .tabbar button.plus { font-size: 0; gap: 0; }
.topbar .icon { background: none; border: 0; color: var(--muted); padding: 6px; display: grid; place-items: center; }
/* Kind marks */
.kind { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px;
  margin-right: 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.kind.audio { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold); }
audio { width: 100%; margin: 6px 0 10px; }
/* Family posts */
.post { padding: 14px 16px 6px; } .post .actions { padding: 4px 0 6px; }
.phead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .phead > div { flex: 1; }
.phead .when { font-size: 13px; color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--bg); display: grid; place-items: center; font-weight: 700; }
.pbody { white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 1.5; margin: 6px 0 10px; }
.pimg { width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; display: block; margin: 0 0 8px; }
.att { display: block; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent);
  margin: 4px 0 10px; padding: 10px 12px; border-radius: 0 10px 10px 0; font: 400 16px/1.5 var(--serif); color: inherit; text-decoration: none; }
.att cite { display: block; font: 600 13px var(--sans); color: var(--muted); margin-top: 4px; font-style: normal; }
.att.link b { display: block; font: 600 15px var(--sans); } .att.link span { font: 400 13px var(--sans); color: var(--muted); }
.thread { border-top: 1px solid var(--line); padding: 8px 0; } .cmt { font-size: 15px; padding: 5px 0; line-height: 1.4; }
.cmt .x, .post .x { background: none; border: 0; color: var(--muted); padding: 2px 6px; }
.reply { display: flex; gap: 8px; margin-top: 6px; } .reply input { padding: 9px 12px; font-size: 16px; }
.reply button { border: 0; background: var(--accent); color: var(--bg); border-radius: 10px; padding: 0 14px; font-weight: 600; }
textarea { width: 100%; padding: 13px 14px; font: 400 17px/1.5 var(--sans); border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: inherit; resize: vertical; margin: 10px 0 4px; }
.kinds { margin-bottom: 4px; } .kinds .sel { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.ctools { margin-bottom: 8px; } .ctools .link { width: auto; padding: 8px 0; }
.cphoto img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 12px; }
.cpreview .att p { margin: 4px 0 0; }
[hidden] { display: none !important; }

.toggle { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 16px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
.note { font-size: 14px; color: var(--muted); line-height: 1.45; margin: 4px 2px; }
select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: inherit; margin: 0 0 6px 30px; }
.actions button { font-size: 14px; padding: 10px 4px; }

.actions button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.actions button svg { flex: none; }
.actions button:active svg { transform: scale(.85); }

/* Doré plates: whole engraving on a dark mat, verse below (no cropping, no text over the linework) */
.verse.art.plate { aspect-ratio: auto; justify-content: flex-start; background: #17130f; color: #f3ead8; }
.verse.art.plate::before { display: none; }
.verse.art.plate img { position: static; display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #0e0c09; }
.verse.art.plate .cap { font: italic 13px var(--serif); color: #b9ab8e; padding: 10px 22px 0; letter-spacing: .01em; }
.verse.art.plate .quote { font-size: clamp(18px, 5vw, 22px); padding: 12px 22px 0; margin: 0 0 10px; text-shadow: none; }
.verse.art.plate .ref { text-shadow: none; }
.verse.art.plate.long .quote { font-size: clamp(15px, 4.2vw, 18px); }
.verse.art.plate .ref { padding: 0 22px 20px; color: var(--gold); }

/* Feed filter chips */
.filters { display: flex; gap: 8px; padding: 10px 16px; max-width: 640px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 14px; font-weight: 500; }
.filters button.sel { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }

/* App icon picker */
.iconpick { display: flex; gap: 12px; margin: 8px 0; }
.iconpick button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text); }
.iconpick button.sel { border-color: var(--accent); }
.iconpick img { border-radius: 16px; display: block; }

/* ===== Liquid Glass (iOS 26 style): translucent, blurred, specular-edged surfaces ===== */
:root {
  --glass: color-mix(in srgb, var(--surface) 58%, transparent);
  --glass-strong: color-mix(in srgb, var(--surface) 74%, transparent);
  --glass-edge: rgba(255, 255, 255, .55);
  --glass-edge-dim: rgba(255, 255, 255, .12);
  --glass-shadow: 0 8px 28px rgba(30, 20, 5, .14), 0 1px 3px rgba(30, 20, 5, .08);
  --glass-blur: blur(22px) saturate(180%);
}
@media (prefers-color-scheme: dark) {
  :root { --glass: color-mix(in srgb, var(--surface) 55%, transparent); --glass-strong: color-mix(in srgb, var(--surface) 72%, transparent);
    --glass-edge: rgba(255, 255, 255, .22); --glass-edge-dim: rgba(255, 255, 255, .07); --glass-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .3); }
}
body { background:
  radial-gradient(120% 60% at 15% -10%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%),
  radial-gradient(100% 50% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%), var(--bg);
  background-attachment: fixed; }
.shell { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* Floating capsule tab bar */
.tabbar { left: 14px; right: 14px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 5px; border: 1px solid var(--glass-edge-dim);
  border-radius: 34px; background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 var(--glass-edge-dim); max-width: 520px; margin: 0 auto; }
.tabbar button { border-radius: 26px; padding: 7px 0 5px; transition: background .25s, color .25s; }
.tabbar button[aria-current="page"] { background: color-mix(in srgb, var(--text) 9%, transparent);
  box-shadow: inset 0 1px 0 var(--glass-edge-dim), inset 0 0 0 1px var(--glass-edge-dim); }
.tabbar button.plus[aria-current="page"] { background: none; box-shadow: none; }
.tabbar button.plus .ic { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45); border-radius: 15px; }

/* Header: frosted, no hard rule */
.topbar { background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-edge-dim); box-shadow: 0 1px 0 var(--glass-edge) inset; }
.topbar .icon { width: 38px; height: 38px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-edge-dim);
  box-shadow: inset 0 1px 0 var(--glass-edge); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }

/* Filter chips + segmented controls */
.filters button { background: var(--glass); border-color: var(--glass-edge-dim); box-shadow: inset 0 1px 0 var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transition: background .2s, color .2s; }
.filters button.sel { background: color-mix(in srgb, var(--accent) 88%, transparent); border-color: color-mix(in srgb, var(--accent) 60%, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }

/* Cards: softer, rounder, with a specular rim */
.card { border-radius: 26px; border-color: var(--glass-edge-dim); box-shadow: var(--glass-shadow); }
.card .actions { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-edge-dim); box-shadow: inset 0 1px 0 var(--glass-edge-dim); }
.verse.art .quote, .verse.art .ref, .verse .quote { text-wrap: pretty; }
.actions button { border-radius: 16px; transition: background .2s, transform .15s; }
.actions button:active { background: color-mix(in srgb, var(--text) 10%, transparent); transform: scale(.97); }

/* Lists, forms, buttons, toasts */
.list, .org, .credits, .result, .att { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  background: var(--glass-strong); border-color: var(--glass-edge-dim); box-shadow: inset 0 1px 0 var(--glass-edge-dim); }
.list, .org, .credits { border-radius: 20px; }
input[type=text], input[type=email], input[type=password], input[type=search], textarea, select {
  background: var(--glass-strong); border-color: var(--glass-edge-dim); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
.btn { border-radius: 16px; background: linear-gradient(170deg, color-mix(in srgb, var(--accent) 86%, #fff), var(--accent));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 32%, transparent), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn.secondary { background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  color: var(--text); box-shadow: inset 0 1px 0 var(--glass-edge); border: 1px solid var(--glass-edge-dim); }
.toast { background: color-mix(in srgb, var(--text) 78%, transparent); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .25); bottom: calc(96px + env(safe-area-inset-bottom)); }
.iconpick button { background: var(--glass-strong); border-color: var(--glass-edge-dim); }
.iconpick button.sel { border-color: var(--accent); }

/* Browsers without backdrop-filter get solid surfaces */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: var(--surface); --glass-strong: var(--surface); }
  .topbar { background: var(--bg); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: var(--surface); --glass-strong: var(--surface); --glass-blur: none; }
  .topbar { background: var(--bg); }
}

/* Inline line icons */
.badge { display: inline-grid; place-items: center; line-height: 1; } .badge svg { display: block; }
.kind svg { vertical-align: -1.5px; margin-right: 2px; }
.btn svg, .link svg, .chips button svg, .ctools svg, .toggle svg, .list li button svg { vertical-align: -4px; margin-right: 6px; }
.x svg, .cmt .x svg { vertical-align: -2px; margin: 0; }
.srcrow .bad svg { vertical-align: -2px; margin-right: 3px; }
.play { display: grid; place-items: center; padding-left: 4px; } .play svg { display: block; }
.post .actions button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.phead .when svg, .phead svg { vertical-align: -2px; }

/* Source health */
.warnchip { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); vertical-align: 1px; }
.warnbanner { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4;
  color: var(--text); background: color-mix(in srgb, var(--danger) 12%, var(--glass-strong)); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.warnbanner svg { flex: none; margin-top: 2px; color: var(--danger); }
.srcrow { flex-wrap: wrap; }

/* Reader: adjustable size, saved highlights, selection bar */
.reader p { font-size: var(--reader-size, 20px); }
.reader .v.hl { background: color-mix(in srgb, var(--gold) 30%, transparent); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 1px 2px; }
.reader .v.sel { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; }
.reader .v.hl.sel { background: color-mix(in srgb, var(--gold) 38%, transparent); }
.selbar { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; gap: 10px; margin-top: 16px; padding: 8px; border-radius: 22px;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-edge-dim); box-shadow: var(--glass-shadow); }
.selbar .btn { margin: 0; flex: 1; padding: 12px 6px; font-size: 14px; white-space: nowrap; } .selbar .btn svg { margin-right: 4px; }
.topbar .textsize { width: auto; min-width: 38px; padding: 0 8px; border-radius: 19px; font: 600 15px var(--sans); color: var(--accent); }

.card.votd { border-color: color-mix(in srgb, var(--gold) 55%, var(--glass-edge-dim)); }
.votd-tag { display: flex; align-items: center; gap: 6px; padding: 10px 18px; font: 700 12px var(--sans); letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--glass-strong)); }
.votd-tag svg { vertical-align: -2px; }

/* Source picker */
.srcbar { align-items: center; margin: 4px 0 10px; } .srcbar .meta { flex: 1; } .srcbar .link { width: auto; padding: 6px 10px; }
.srclist { margin-bottom: 14px; }
.srcpick { display: flex; align-items: center; gap: 14px; padding: 13px 16px; cursor: pointer; }
.srcpick + .srcpick { border-top: 1px solid var(--line); }
.srcpick input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.srcname { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .srcname b { font-size: 17px; } .srcname small { color: var(--muted); font-size: 13px; }
.where { display: flex; gap: 8px; align-items: flex-start; margin: 4px 2px 16px; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4;
  background: color-mix(in srgb, var(--accent) 10%, var(--glass-strong)); border: 1px solid var(--glass-edge-dim); }
.where svg { flex: none; margin-top: 1px; color: var(--accent); }
.srcbar .link { flex: none; border: 0; background: none; color: var(--accent); font-size: 15px; font-weight: 600; }
.srcbar .meta { white-space: nowrap; }

.srcrow { flex-wrap: nowrap; align-items: flex-start; } .srcrow .srcinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.srcrow .bad { display: block; line-height: 1.35; } .srcrow .x { flex: none; margin-top: -4px; }

/* "New version" banner, floats above the tab bar */
.update-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; font-size: 14px; white-space: nowrap;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge-dim); box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge); }
.update-banner button { border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--bg); background: var(--accent); }
.srcrow .bad { word-break: normal; overflow-wrap: anywhere; }

/* Invite rows */
.list .invrow { display: flex; align-items: center; gap: 10px; padding: 12px 16px; justify-content: space-between; }
.invcode { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .invcode b { font-size: 17px; letter-spacing: .06em; }
.invacts { display: flex; gap: 8px; flex: none; }
.invacts button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--glass-edge-dim); background: var(--glass-strong); color: var(--accent); font-size: 14px; font-weight: 600; }
.invacts button svg { vertical-align: -3px; margin-right: 2px; }

/* Admin password-reset sheet */
.sheet { position: fixed; inset: 0; z-index: 40; display: grid; place-items: end center; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheetbox { width: 100%; max-width: 440px; padding: 22px 20px 12px; border-radius: 28px; background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge-dim); box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge); background-color: color-mix(in srgb, var(--surface) 88%, transparent); }
.sheetbox h2 { margin: 0 0 12px; font: 600 20px var(--serif); text-align: center; }
.tempcode { text-align: center; font: 600 26px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; padding: 14px; margin-bottom: 8px; border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 14%, transparent); user-select: all; -webkit-user-select: all; word-break: break-all; }
.sheetbox .btn { margin-top: 8px; }

/* Install guide + feed banner */
.isteps { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 12px; }
.istep { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-edge-dim); }
.istep p { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; } .istep p svg { vertical-align: -3px; }
.inum { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--bg); background: var(--accent); }
.installcard { display: flex; align-items: center; gap: 12px; margin: 4px 16px 6px; max-width: 608px; padding: 10px 10px 10px 14px; border-radius: 20px;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-edge-dim); box-shadow: var(--glass-shadow); }
@media (min-width: 672px) { .installcard { margin-left: auto; margin-right: auto; } }
.iicon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--bg); background: var(--accent); }
.itext { flex: 1; display: flex; flex-direction: column; min-width: 0; } .itext b { font-size: 15px; } .itext span { font-size: 13px; color: var(--muted); }
.installcard .go { border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 600; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.installcard .x { background: none; border: 0; color: var(--muted); padding: 6px; }

/* Tagline under the name on sign-in screens */
.auth h1 { margin-bottom: 2px; }
.auth .tagline { text-align: center; margin: 0 0 22px; font: italic 17px var(--serif); color: var(--gold); letter-spacing: .01em; }
.auth .tagline + .sub { margin-top: -10px; font-size: 14px; }

/* Article / podcast picture area */
.hero { position: relative; aspect-ratio: 16 / 9; background: var(--line); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .illus { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; font: 600 11px var(--sans); letter-spacing: .04em; color: #fff;
  background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .25); }
.hero.textcard { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; padding: 16px 18px; color: rgba(255, 255, 255, .92); aspect-ratio: 21 / 9; }
.hero.textcard svg { opacity: .8; } .hero.textcard .heroorg { font: 600 22px/1.2 var(--serif); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
