/* My TV List
 *
 * The look is chosen by the admin (Panel Params > My TV List) and arrives as
 * attributes of <html>:
 *   data-theme   the colours: indigo, ocean, forest, sunset, rose, cinema, gold, mono, cyberpunk
 *   data-style   the shapes:  soft, flat, glass, bold
 *   data-scheme  light or dark, set by assets/theme.js from the admin's choice
 *                (follow the visitor's device, always light, always dark)
 *   data-bg      the picture behind the page (assets/bg/), absent when there is none
 * A theme is only a set of colours for light and for dark; a style never names a colour.
 * Cyberpunk is the exception: it is always dark and has a few neon touches of its own.
 */

/* ---------------------------------------------------------------- colours */

:root {
    color-scheme: light;
    /* the same in every theme */
    --good: #12824a;
    --good-soft: #e3f6ea;
    --bad: #c62f45;
    --bad-soft: #fdeaed;
    --warn: #96600a;
    --warn-soft: #fff3d9;
    --live: #2f7df6;
    --vod: #17a673;
    --series: #e8833a;
    --shadow: 0 1px 2px rgba(20, 24, 50, .06), 0 6px 20px rgba(20, 24, 50, .06);
    --veil: rgba(10, 12, 28, .6);
    /* shapes (changed by the styles) */
    --radius: 14px;
    --radius-s: 10px;
    /* indigo, light: also what a browser without the attributes gets */
    --bg: #f4f5fb;
    --card: #ffffff;
    --line: #e3e6f0;
    --text: #1b2134;
    --muted: #667089;
    --accent: #5a55ee;
    --accent-ink: #ffffff;
    --accent-soft: #ecebff;
    --row: #f7f8fc;
    --row-on: #f1f0ff;
    --art: linear-gradient(135deg, #eef0ff 0%, #f6f1ff 50%, #eaf4ff 100%);
}
:root[data-scheme="dark"] {
    color-scheme: dark;
    --good: #5fd699;
    --good-soft: #143325;
    --bad: #ff8a9a;
    --bad-soft: #3a1820;
    --warn: #f2c36b;
    --warn-soft: #3a2d10;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --veil: rgba(0, 0, 0, .7);
    --bg: #0f1220;
    --card: #181c2e;
    --line: #2a3048;
    --text: #e8eaf4;
    --muted: #9aa3bb;
    --accent: #8f8cff;
    --accent-ink: #11132a;
    --accent-soft: #25264a;
    --row: #1d2236;
    --row-on: #232650;
    --art: linear-gradient(135deg, #12142b 0%, #1a1638 50%, #0f1c30 100%);
}

:root[data-theme="ocean"] {
    --bg: #f1f7fb; --card: #ffffff; --line: #d9e6ef; --text: #0f2534; --muted: #5b7385;
    --accent: #0a74b3; --accent-ink: #ffffff; --accent-soft: #e0f1fb; --row: #f5f9fc; --row-on: #e6f3fb;
    --art: linear-gradient(135deg, #e3f3fb 0%, #eef6ff 50%, #e2f7f4 100%);
}
:root[data-theme="ocean"][data-scheme="dark"] {
    --bg: #08151f; --card: #0f2230; --line: #1d384b; --text: #e3eff7; --muted: #8fa9ba;
    --accent: #4db8f0; --accent-ink: #04202f; --accent-soft: #123449; --row: #132a3a; --row-on: #153a52;
    --art: linear-gradient(135deg, #071a28 0%, #0b2436 50%, #072a2c 100%);
}

:root[data-theme="forest"] {
    --bg: #f3f8f4; --card: #ffffff; --line: #dbe8de; --text: #14261a; --muted: #5d7565;
    --accent: #1c7c45; --accent-ink: #ffffff; --accent-soft: #e1f3e7; --row: #f6faf7; --row-on: #e6f4ea;
    --art: linear-gradient(135deg, #e6f5ea 0%, #f3f8ea 50%, #e3f4f1 100%);
}
:root[data-theme="forest"][data-scheme="dark"] {
    --bg: #0b1610; --card: #13231a; --line: #223829; --text: #e4f1e8; --muted: #93ad9b;
    --accent: #5fd08b; --accent-ink: #06200f; --accent-soft: #173524; --row: #182b20; --row-on: #1b3a28;
    --art: linear-gradient(135deg, #0a1a10 0%, #122414 50%, #0a2220 100%);
}

:root[data-theme="sunset"] {
    --bg: #fdf6f1; --card: #ffffff; --line: #f0dfd3; --text: #2e1c12; --muted: #856a5a;
    --accent: #c2440f; --accent-ink: #ffffff; --accent-soft: #fde8dc; --row: #fdf9f6; --row-on: #fdebe0;
    --art: linear-gradient(135deg, #ffe9d9 0%, #fff1e6 50%, #ffe6ea 100%);
}
:root[data-theme="sunset"][data-scheme="dark"] {
    --bg: #1a100b; --card: #281912; --line: #40291e; --text: #f6e9e1; --muted: #bfa192;
    --accent: #ff9a62; --accent-ink: #2b1206; --accent-soft: #44261a; --row: #2f1e16; --row-on: #4a2a1c;
    --art: linear-gradient(135deg, #24120a 0%, #2b1711 50%, #2a1018 100%);
}

:root[data-theme="rose"] {
    --bg: #fcf4f7; --card: #ffffff; --line: #f0dbe4; --text: #2c1420; --muted: #84606f;
    --accent: #c2216b; --accent-ink: #ffffff; --accent-soft: #fbe3ee; --row: #fdf8fa; --row-on: #fbe8f0;
    --art: linear-gradient(135deg, #fde6ef 0%, #fbeefc 50%, #ffe9e4 100%);
}
:root[data-theme="rose"][data-scheme="dark"] {
    --bg: #1a0c13; --card: #29141e; --line: #43212f; --text: #f7e6ed; --muted: #c29aab;
    --accent: #ff7fb3; --accent-ink: #2e0717; --accent-soft: #46192c; --row: #301824; --row-on: #4c1d32;
    --art: linear-gradient(135deg, #240c18 0%, #2a1024 50%, #2a0f12 100%);
}

:root[data-theme="cinema"] {
    --bg: #f6f5f5; --card: #ffffff; --line: #e5e1e1; --text: #1d1718; --muted: #6f6466;
    --accent: #c81e2b; --accent-ink: #ffffff; --accent-soft: #fbe4e6; --row: #faf9f9; --row-on: #fbe9ea;
    --art: linear-gradient(135deg, #f6e4e4 0%, #f5f1f1 50%, #f0e6ea 100%);
}
:root[data-theme="cinema"][data-scheme="dark"] {
    --bg: #0d0b0c; --card: #191516; --line: #2f2829; --text: #f3eeee; --muted: #a89c9e;
    --accent: #ff5a66; --accent-ink: #26050a; --accent-soft: #3b1519; --row: #201b1c; --row-on: #40181c;
    --art: linear-gradient(135deg, #1a0a0c 0%, #141012 50%, #1c0c14 100%);
}

:root[data-theme="gold"] {
    --bg: #f8f6f0; --card: #ffffff; --line: #e9e3d3; --text: #1f1b10; --muted: #746b55;
    --accent: #946200; --accent-ink: #ffffff; --accent-soft: #f7ecd0; --row: #fbfaf6; --row-on: #f8efd8;
    --art: linear-gradient(135deg, #f7edd2 0%, #f8f4e8 50%, #f3ead9 100%);
}
:root[data-theme="gold"][data-scheme="dark"] {
    --bg: #0c1018; --card: #151b27; --line: #283247; --text: #f1ece0; --muted: #a9a593;
    --accent: #e6b84d; --accent-ink: #231800; --accent-soft: #3a3018; --row: #1a2231; --row-on: #3d3319;
    --art: linear-gradient(135deg, #0c1220 0%, #141a2a 50%, #1c170c 100%);
}

:root[data-theme="mono"] {
    --bg: #f5f5f6; --card: #ffffff; --line: #e2e3e6; --text: #17181b; --muted: #666a72;
    --accent: #22252b; --accent-ink: #ffffff; --accent-soft: #e9eaed; --row: #f8f8f9; --row-on: #ececef;
    --art: linear-gradient(135deg, #ededf0 0%, #f6f6f7 50%, #e9ebee 100%);
}
:root[data-theme="mono"][data-scheme="dark"] {
    --bg: #0e0f11; --card: #18191c; --line: #2c2e33; --text: #ececee; --muted: #9a9da5;
    --accent: #f0f1f3; --accent-ink: #111215; --accent-soft: #2a2c31; --row: #1e2024; --row-on: #2d3036;
    --art: linear-gradient(135deg, #101114 0%, #17181c 50%, #0f1113 100%);
}

/* Cyberpunk: one set of colours (the server always asks for dark), cyan and magenta neon. */
:root[data-theme="cyberpunk"],
:root[data-theme="cyberpunk"][data-scheme="dark"] {
    color-scheme: dark;
    --bg: #0a0714; --card: #130d24; --line: #2f2456; --text: #ece8ff; --muted: #a9a0d6;
    --accent: #00e5ff; --accent-ink: #00161c; --accent-soft: #10283d; --row: #17112b; --row-on: #1b1d44;
    --neon: #ff2bd6;
    --art: radial-gradient(circle at 12% 8%, rgba(255, 43, 214, .22), transparent 42%),
           radial-gradient(circle at 88% 0%, rgba(0, 229, 255, .20), transparent 46%),
           linear-gradient(135deg, #0a0714 0%, #150a2b 50%, #07101f 100%);
}

/* ------------------------------------------------------------------- page */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.15rem; }
p { margin: .4rem 0 0; }
.muted { color: var(--muted); }
.small, small { font-size: .875rem; }
.center { text-align: center; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who-name { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }

/* Cards, notices */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
main > .card, #view-in > .card { margin-top: 24px; }
.notice { border-radius: var(--radius-s); padding: 12px 14px; margin: 14px 0 0; font-size: .95rem; }
.notice-good { background: var(--good-soft); color: var(--good); }
.notice-bad { background: var(--bad-soft); color: var(--bad); }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-info { background: var(--accent-soft); color: var(--text); }
#view-app > .notice { margin-top: 20px; font-weight: 600; }
#view-app > .notice small { display: block; font-weight: 400; margin-top: 2px; }

/* Buttons */
.btn {
    appearance: none; border: 1px solid transparent; border-radius: var(--radius-s); cursor: pointer;
    font: inherit; font-weight: 600; padding: 10px 16px; min-height: 44px; line-height: 1.2;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-main:not(:disabled):hover { filter: brightness(1.07); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line); }
.btn-quiet:not(:disabled):hover { background: var(--row); }
.btn-wide { width: 100%; }
.btn-small { min-height: 34px; padding: 5px 10px; font-size: .85rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Sign in */
.hero { text-align: center; margin: 34px auto 0; max-width: 560px; }
.signin { max-width: 440px; margin-left: auto; margin-right: auto; }
.field { display: block; margin-top: 14px; }
.field > span:first-child { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
input[type=text], input[type=password], input[type=search] {
    width: 100%; font: inherit; color: var(--text); background: var(--bg);
    border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; min-height: 44px;
}
.pass { display: flex; gap: 8px; }
.pass input { flex: 1; min-width: 0; }
.pass-eye { flex: none; min-width: 68px; }
.captcha { margin: 16px 0 4px; min-height: 0; overflow: hidden; }
.signin .btn-wide { margin-top: 14px; }
.steps { list-style: none; padding: 0; margin: 22px auto 40px; max-width: 440px; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .95rem; }
.steps b, .num {
    flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
}

/* Sections */
.section { margin-top: 28px; }
.section-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.section-head .num { margin-top: 1px; }
.cols { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; } }

/* One list (a kind of bouquets, or of categories) */
.list-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; container-type: inline-size; }
.list-head {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: 0;
    color: var(--text); font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
.list-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.kind-live .list-dot { background: var(--live); }
.kind-vod .list-dot, .kind-movie .list-dot { background: var(--vod); }
.kind-series .list-dot { background: var(--series); }
.list-count { margin-left: auto; font-weight: 600; font-size: .85rem; color: var(--muted); background: var(--row); border-radius: 20px; padding: 2px 10px; }
.list-chev { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .15s; }
.list-card.is-shut .list-chev { transform: rotate(-90deg); }
.list-card.is-shut .list-body { display: none; }
@media (min-width: 900px) {
    .list-head { cursor: default; }
    .list-chev { display: none; }
    .list-card.is-shut .list-body { display: block; }
}
.list-body { padding: 0 12px 12px; }
.list-tools { display: flex; gap: 8px; margin-bottom: 8px; }
.list-tools input { flex: 1; min-width: 0; min-height: 34px; padding: 6px 10px; font-size: .9rem; }
.list-rows { max-height: 430px; overflow-y: auto; overscroll-behavior: contain; border-radius: var(--radius-s); }
.list-empty { color: var(--muted); font-size: .9rem; padding: 14px 6px; text-align: center; }

.row {
    display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-bottom: 4px; min-height: 46px;
    background: var(--row); border: 1px solid transparent; border-radius: var(--radius-s);
}
.row.is-on { background: var(--row-on); border-color: var(--accent-soft); }
.row.is-miss { display: none; }
.row-grip { flex: none; width: 22px; height: 30px; color: var(--muted); cursor: grab; display: none; align-items: center; justify-content: center; touch-action: none; }
.row.is-on .row-grip { display: inline-flex; }
.row-grip svg, .row-move svg, .row-lock svg { width: 16px; height: 16px; }
.row-check { flex: none; width: 22px; height: 22px; accent-color: var(--accent); margin: 0; cursor: pointer; }
.row-check:disabled { cursor: default; }
.row-name { flex: 1; min-width: 0; font-size: .93rem; overflow-wrap: break-word; cursor: pointer; user-select: none; }
.row-lock { flex: none; color: var(--muted); display: inline-flex; }
.row-moves { flex: none; display: none; gap: 3px; }
.row.is-on .row-moves { display: inline-flex; }
.row-move {
    appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: calc(var(--radius-s) - 2px);
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.row-move:hover { border-color: var(--accent); color: var(--accent); }
.row-ghost { opacity: .35; }
/* A narrow list (three lists side by side) keeps only the up and down arrows, so names have room. */
@container (max-width: 479px) {
    .row-move.is-far { display: none; }
}
@media (max-width: 559px) {
    .row.is-on .row-grip { display: none; }
    .row-move.is-far { display: none; }
    .list-rows { max-height: 62vh; }
}

/* Switch rows */
.switch-row { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 14px 16px; }
.switch-row small { display: block; }
.switch {
    appearance: none; flex: none; width: 50px; height: 30px; border-radius: 30px; background: var(--line); position: relative;
    cursor: pointer; transition: background .15s; margin: 0;
}
.switch::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s;
}
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); background: var(--accent-ink); }
#cat-box { margin-top: 12px; }
#cat-box > p { margin-bottom: 10px; }

/* Save bar */
.savebar-space { height: 96px; }
.savebar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(20, 24, 50, .08); padding-bottom: env(safe-area-inset-bottom);
}
.savebar-in { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.savebar-text { flex: 1; min-width: 0; font-size: .9rem; color: var(--muted); }
.savebar.is-dirty .savebar-text { color: var(--text); font-weight: 600; }
@media (max-width: 559px) {
    .savebar-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .savebar-text { flex-basis: 100%; }
    .savebar .btn { flex: 1; }
}

/* Dialog, toast */
.veil { position: fixed; inset: 0; z-index: 50; background: var(--veil); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { background: var(--card); border-radius: var(--radius); padding: 22px; max-width: 460px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.dialog p { margin-top: 10px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; cursor: pointer; font-weight: 600; }
.check-row input { flex: none; width: 22px; height: 22px; accent-color: var(--accent); margin: 1px 0 0; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.toast {
    position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px);
    background: var(--text); color: var(--bg); border-radius: var(--radius-s); padding: 10px 16px; font-size: .92rem; box-shadow: var(--shadow);
}
.toast.is-bad { background: var(--bad); color: #fff; }
:root[data-scheme="dark"] .toast.is-bad { color: #2a0508; }

/* -------------------------------------------------------------- cyberpunk */

:root[data-theme="cyberpunk"] body {
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(0, 229, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, .05) 1px, transparent 1px),
        var(--art);
    background-size: 44px 44px, 44px 44px, cover;
    background-attachment: fixed;
}
:root[data-theme="cyberpunk"] h1,
:root[data-theme="cyberpunk"] h2,
:root[data-theme="cyberpunk"] .brand-name,
:root[data-theme="cyberpunk"] .list-head {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    letter-spacing: .03em; text-transform: uppercase;
}
:root[data-theme="cyberpunk"] h1 { text-shadow: 0 0 18px rgba(0, 229, 255, .55), 0 0 2px rgba(255, 43, 214, .9); }
:root[data-theme="cyberpunk"] .brand-mark { color: var(--neon); filter: drop-shadow(0 0 6px rgba(255, 43, 214, .7)); }
:root[data-theme="cyberpunk"] .card,
:root[data-theme="cyberpunk"] .list-card,
:root[data-theme="cyberpunk"] .dialog {
    border-color: rgba(0, 229, 255, .30);
    box-shadow: 0 0 0 1px rgba(255, 43, 214, .12), 0 0 28px rgba(0, 229, 255, .10);
}
:root[data-theme="cyberpunk"] .btn-main {
    text-transform: uppercase; letter-spacing: .05em;
    box-shadow: 0 0 0 1px rgba(0, 229, 255, .6), 0 0 22px rgba(0, 229, 255, .45);
}
:root[data-theme="cyberpunk"] .btn-main:disabled { box-shadow: none; }
:root[data-theme="cyberpunk"] .row.is-on { border-color: rgba(255, 43, 214, .5); box-shadow: inset 3px 0 0 var(--neon); }
:root[data-theme="cyberpunk"] .steps b,
:root[data-theme="cyberpunk"] .num { background: transparent; border: 1px solid var(--neon); color: var(--neon); border-radius: 4px; box-shadow: 0 0 10px rgba(255, 43, 214, .35); }
:root[data-theme="cyberpunk"] .list-count { color: var(--accent); }
:root[data-theme="cyberpunk"] .switch:checked { box-shadow: 0 0 14px rgba(0, 229, 255, .6); }
:root[data-theme="cyberpunk"] .top { border-bottom-color: rgba(255, 43, 214, .45); }

/* ----------------------------------------------------------------- styles */

/* flat: straight corners, lines, no shadows */
:root[data-style="flat"] { --radius: 4px; --radius-s: 4px; --shadow: none; }
:root[data-style="flat"] .row { border-color: var(--line); }
:root[data-style="flat"] .row.is-on { border-color: var(--accent); }
:root[data-style="flat"] .list-count, :root[data-style="flat"] .steps b, :root[data-style="flat"] .num { border-radius: 4px; }
:root[data-style="flat"] .savebar { box-shadow: none; }

/* glass: the theme's soft colours behind see-through cards */
:root[data-style="glass"] { --radius: 20px; --radius-s: 12px; }
:root[data-style="glass"] body { background: var(--art) fixed; background-color: var(--bg); }
:root[data-style="glass"] .card,
:root[data-style="glass"] .list-card,
:root[data-style="glass"] .top,
:root[data-style="glass"] .savebar {
    background: color-mix(in srgb, var(--card) 68%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
}
:root[data-style="glass"] .row { background: color-mix(in srgb, var(--row) 70%, transparent); }
:root[data-style="glass"] .row.is-on { background: color-mix(in srgb, var(--row-on) 85%, transparent); }
:root[data-style="glass"] input[type=text],
:root[data-style="glass"] input[type=password],
:root[data-style="glass"] input[type=search] { background: color-mix(in srgb, var(--card) 80%, transparent); }

/* bold: the accent colour as a band on top, filled numbers, tinted list heads */
:root[data-style="bold"] { --radius: 16px; --radius-s: 10px; }
:root[data-style="bold"] .top { background: var(--accent); border-bottom-color: transparent; }
:root[data-style="bold"] .top .brand,
:root[data-style="bold"] .top .brand-mark,
:root[data-style="bold"] .top .who-name,
:root[data-style="bold"] .top .btn-quiet { color: var(--accent-ink); }
:root[data-style="bold"] .top .who-name { opacity: .85; }
:root[data-style="bold"] .top .btn-quiet { border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); }
:root[data-style="bold"] .top .btn-quiet:not(:disabled):hover { background: color-mix(in srgb, var(--accent-ink) 14%, transparent); }
:root[data-style="bold"] .hero { background: var(--art); border-radius: var(--radius); padding: 30px 20px; margin-top: 24px; max-width: none; }
:root[data-style="bold"] .steps b,
:root[data-style="bold"] .num { background: var(--accent); color: var(--accent-ink); }
:root[data-style="bold"] .list-head { background: var(--accent-soft); margin-bottom: 12px; }
:root[data-style="bold"] .list-card.is-shut .list-head { margin-bottom: 0; }
:root[data-style="bold"] h1 { font-size: 1.9rem; letter-spacing: -.01em; }

/* ------------------------------------------------------------ backgrounds */

/* A picture behind the whole page (admin: "Background picture"). It never moves
 * with the page, and a veil of the theme's own background colour lies on it so
 * the text stays readable in every theme, light or dark. */
:root[data-bg="forest"]    { --photo: url(bg/forest.webp); }
:root[data-bg="mountains"] { --photo: url(bg/mountains.webp); }
:root[data-bg="ocean"]     { --photo: url(bg/ocean.webp); }
:root[data-bg="sunset"]    { --photo: url(bg/sunset.webp); }
:root[data-bg="aurora"]    { --photo: url(bg/aurora.webp); }
:root[data-bg="desert"]    { --photo: url(bg/desert.webp); }
:root[data-bg="blossom"]   { --photo: url(bg/blossom.webp); }
:root[data-bg="lavender"]  { --photo: url(bg/lavender.webp); }
:root[data-bg="stars"]     { --photo: url(bg/stars.webp); }
:root[data-bg="city"]      { --photo: url(bg/city.webp); }
:root[data-bg="grid"]      { --photo: url(bg/grid.svg); }

:root[data-bg] { background: var(--bg); --veil-bg: .74; }
:root[data-bg][data-scheme="dark"] { --veil-bg: .60; }
:root[data-bg="grid"][data-scheme="dark"],
:root[data-bg="city"][data-scheme="dark"] { --veil-bg: .48; }
:root[data-bg] body,
:root[data-bg][data-style="glass"] body,
:root[data-bg][data-theme="cyberpunk"] body { background: transparent; }
:root[data-bg] body::before {
    content: ""; position: fixed; inset: 0; z-index: -2;
    background: var(--photo) center / cover no-repeat;
}
:root[data-bg] body::after {
    content: ""; position: fixed; inset: 0; z-index: -1;
    background: var(--bg); opacity: var(--veil-bg);
}
/* On a picture the lines of text that sit outside a card get a little help. */
:root[data-bg] .hero h1,
:root[data-bg] .section-head h2 { text-shadow: 0 1px 12px var(--bg); }
:root[data-bg] .hero .muted,
:root[data-bg] .section-head .muted,
:root[data-bg] .steps li,
:root[data-bg] #cat-box > p { color: var(--text); }
