/* DOXA Worship Suite — dark-first UI */
:root {
  --bg: #0d0d0f; --bg2: #131316; --panel: #18181c; --panel2: #1f1f24; --line: #2a2a31; --line2: #34343c;
  --text: #ecebe8; --muted: #9b998f; --dim: #6d6b66;
  --gold: #e3b45c; --gold2: #f0d08a; --accent: var(--gold); --accent-ink: #1a1408;
  --ok: #5fc28a; --warn: #e6a23c; --danger: #e5604f; --live: #ff4d4d;
  --r: 12px; --r-sm: 8px;
  --ui: 'Inter', 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; --serif: 'Fraunces', Georgia, 'Times New Roman', serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --k-intro: #8a8f98; --k-verse: #6fa8dc; --k-prechorus: #b48ad6; --k-chorus: #e3b45c; --k-bridge: #e2786a; --k-instrumental: #6cc0a0; --k-interlude: #6cc0a0; --k-outro: #8a8f98; --k-tag: #d6a2c6; --k-ending: #8a8f98; --k-other: #8a8f98;
}
body[data-app="stage"] { --accent: #86b8f0; --accent-ink: #0a1420; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--ui); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 6px; font-weight: 700; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: 0; }
h2 { font-size: 20px; } h3 { font-size: 16px; } h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 16px 0 8px; }
p { margin: 0 0 8px; line-height: 1.5; }
.muted { color: var(--muted); } .sm { font-size: 12px; } .accent { color: var(--accent); } .ok-text { color: var(--ok); } .center { text-align: center; }
code, kbd { font-family: var(--mono); font-size: 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; outline: none; min-width: 0; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type=color] { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg2); padding: 2px; }
input[type=range] { accent-color: var(--accent); width: 100%; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
textarea { resize: vertical; line-height: 1.45; width: 100%; }
textarea.mono, .mono { font-family: var(--mono); font-size: 13px; }
select { cursor: pointer; }
:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- shell ---------- */
#app { display: grid; grid-template-columns: 228px minmax(0, 1fr); grid-template-rows: 56px 1fr; height: 100vh; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(13,13,15,.92); backdrop-filter: blur(10px); z-index: 20; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); }
.brand-mark { width: 28px; height: 28px; color: var(--gold); }
.brand span { font-weight: 800; letter-spacing: .28em; font-size: 15px; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.app-switch { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-left: 10px; }
.app-switch button { border: 0; background: transparent; padding: 6px 16px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.app-switch button.active { background: var(--accent); color: var(--accent-ink); }
.top-spacer { flex: 1; }
.topbar .nav-toggle { display: none; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.pill.ok i { background: var(--ok); } .pill.warn i { background: var(--warn); }
.pill.live { color: #fff; background: rgba(255,77,77,.16); border-color: rgba(255,77,77,.4); cursor: pointer; }
.pill.live i { background: var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.sidebar { border-right: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; overflow: auto; }
#nav { padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
#nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 600; }
#nav a:hover { background: var(--panel); color: var(--text); }
#nav a.active { background: var(--panel2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.ico { width: 18px; height: 18px; flex: none; }
#nav a.active .ico { color: var(--accent); }
.side-foot { margin-top: auto; padding: 16px; font-family: var(--serif); font-style: italic; color: var(--dim); font-size: 14px; }
.main { overflow: auto; padding: 26px 30px 60px; position: relative; min-width: 0; }
.operator-main .page-head, .operator-main .view > .btn-row, .live-main .view > .page-head, .live-main .view > .card-grid { margin: 18px; }
.view { max-width: 1500px; margin: 0 auto; }
.live-main .view, .operator-main .view, .editor-main .view { margin: 0; width: 100%; }
.banner { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--r); padding: 10px 14px; display: flex; gap: 10px; align-items: center; z-index: 40; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* ---------- common ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head-actions, .btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row { margin-top: 10px; }
.back { display: inline-block; color: var(--muted); font-size: 12px; margin-bottom: 4px; font-weight: 600; }
.title-in { font-family: var(--serif); font-size: 30px !important; font-weight: 600; background: transparent !important; border-color: transparent !important; padding: 2px 6px !important; margin-left: -6px; width: min(640px, 80vw); }
.title-in:hover, .title-in:focus { border-color: var(--line) !important; }
.title-in.sm { font-size: 20px !important; width: 280px; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: #26262c; border-color: #44444d; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: #ffb1a6; border-color: rgba(229,96,79,.45); background: rgba(229,96,79,.08); }
.btn.on { background: var(--text); color: #111; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.big { padding: 12px 22px; font-size: 15px; }
.btn .ico { width: 15px; height: 15px; }
.icon-btn { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; font-weight: 700; }
.icon-btn:hover { border-color: var(--line2); background: var(--panel2); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }
.seg-ctl { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px; }
.seg-ctl button { border: 0; background: transparent; padding: 5px 11px; border-radius: 6px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: capitalize; }
.seg-ctl button.on { background: var(--panel2); color: var(--text); box-shadow: 0 0 0 1px var(--line2); }
.seg-ctl.full { display: flex; margin: 6px 0; } .seg-ctl.full button { flex: 1; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1; }
.stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.hero-card { background: radial-gradient(ellipse at 100% 0%, rgba(227,180,92,.12), transparent 60%), var(--panel); }
body[data-app="stage"] .hero-card { background: radial-gradient(ellipse at 100% 0%, rgba(134,184,240,.12), transparent 60%), var(--panel); }
.hero-card h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.mini-list { margin: 10px 0; padding-left: 20px; } .mini-list li { padding: 4px 0; } .mini-list li span:first-child { margin-right: 8px; }
.key-badge { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: rgba(227,180,92,.14); color: var(--gold2); border: 1px solid rgba(227,180,92,.3); }
.link-list { list-style: none; margin: 0; padding: 0; } .link-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; } .link-list li:last-child { border: 0; }
.nns-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .nns-demo div { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 15px; } .nns-demo b { font-family: var(--ui); }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; } .toolbar input[type=search] { flex: 1; min-width: 220px; }
.table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.tr { display: grid; grid-template-columns: 3fr .6fr .6fr .6fr .7fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: default; }
.songs-table .tr:not(.th) { cursor: pointer; } .songs-table .tr:not(.th):hover { background: var(--panel2); }
.tr:last-child { border-bottom: 0; }
.tr.th { background: var(--bg2); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.tr > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.members-table .tr { grid-template-columns: 1.4fr 1.2fr 1.4fr .5fr auto; }
.members-table .tr > span:first-child { flex-direction: row; align-items: center; gap: 6px; }
.members-table input:not([type=checkbox]), .members-table select { width: 100%; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.tag { display: inline-block; font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 1px 6px; border-radius: 4px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }
.tag.accent { color: var(--accent); border-color: var(--accent); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r); }
.note-box { background: rgba(227,180,92,.07); border: 1px solid rgba(227,180,92,.25); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 14px; line-height: 1.5; }
body[data-app="stage"] .note-box { background: rgba(134,184,240,.07); border-color: rgba(134,184,240,.25); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sec-title { margin: 22px 0 12px; font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
.chip-btn { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 12px; }
.chip-btn.on, .chip-btn:hover { color: var(--text); border-color: var(--accent); }
.chip-btn small { color: var(--dim); margin-left: 4px; }
.chip { display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.chip b { color: var(--text); font-family: var(--mono); } .chip.accent { border-color: var(--accent); color: var(--accent); }
.meta-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.form-grid { display: grid; gap: 12px; } .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid.four { grid-template-columns: repeat(4, 1fr); }
.span-4 { grid-column: 1 / -1; }
.form-grid > * { min-width: 0; }
.field > input:not([type=checkbox]):not([type=range]), .field > select, .field > textarea { width: 100%; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; margin: 0; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.check.sm { font-size: 12px; color: var(--muted); }
.mini { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.mini input, .mini select { padding: 5px 7px !important; font-size: 13px; text-transform: none; letter-spacing: 0; }
.mini input[type=number] { width: 70px; }
.full { width: 100%; }
.danger-zone { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pick-list { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; margin: 8px 0; }
.pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 9px 11px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--bg2); cursor: pointer; position: relative; }
.pick:hover, .pick.on { border-color: var(--accent); }
.pick .muted { font-size: 12px; }
.pick .x { position: absolute; right: 8px; top: 8px; font-style: normal; color: var(--dim); }

/* ---------- section colours ---------- */
.sec-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; font-family: var(--mono); background: var(--panel2); border: 1px solid var(--line2); color: var(--text); cursor: pointer; }
.sec-chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0 0 0 2px; }
.sec-chip.k-verse { border-color: var(--k-verse); color: var(--k-verse); } .sec-chip.k-chorus { border-color: var(--k-chorus); color: var(--k-chorus); }
.sec-chip.k-prechorus { border-color: var(--k-prechorus); color: var(--k-prechorus); } .sec-chip.k-bridge { border-color: var(--k-bridge); color: var(--k-bridge); }
.sec-chip.k-instrumental, .sec-chip.k-interlude { border-color: var(--k-instrumental); color: var(--k-instrumental); } .sec-chip.k-tag { border-color: var(--k-tag); color: var(--k-tag); }
.sec-chip.on { background: currentColor; } .sec-chip.on { color: #111 !important; background: var(--accent); border-color: var(--accent); }
.sec-chip.done { opacity: .45; }
.arr-strip { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 16px; }
.arr-builder { display: flex; gap: 6px; flex-wrap: wrap; min-height: 40px; padding: 8px; border: 1px dashed var(--line2); border-radius: var(--r-sm); }
.arr-builder .sec-chip { cursor: grab; }

/* ---------- chord charts ---------- */
.chart { --chart-size: 22px; font-size: var(--chart-size); }
.chart-sec { margin: 0 0 1.1em; padding: .5em .8em .6em; border-left: 3px solid var(--k-other); border-radius: 4px; transition: background .25s, opacity .25s; }
.chart-sec.k-verse { border-color: var(--k-verse); } .chart-sec.k-chorus { border-color: var(--k-chorus); } .chart-sec.k-prechorus { border-color: var(--k-prechorus); } .chart-sec.k-bridge { border-color: var(--k-bridge); } .chart-sec.k-instrumental, .chart-sec.k-interlude { border-color: var(--k-instrumental); } .chart-sec.k-tag { border-color: var(--k-tag); }
.chart-sec header { display: flex; gap: 10px; align-items: center; margin-bottom: .3em; font-size: 13px; }
.sec-tag { font-family: var(--mono); font-weight: 700; padding: 1px 7px; border-radius: 5px; background: var(--panel2); }
.sec-name { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-size: 12px; }
.sec-cue { color: var(--accent); font-weight: 700; font-size: 12px; }
.cl { display: flex; flex-wrap: wrap; align-items: flex-end; min-height: 1.2em; margin-bottom: .15em; }
.cl.blank { min-height: .6em; }
.seg { display: inline-flex; flex-direction: column; white-space: pre; }
.seg .ch { font-family: var(--mono); font-weight: 700; color: var(--gold2); font-size: .78em; line-height: 1.15; min-height: 1.15em; padding-right: .35em; }
.seg .ly { line-height: 1.3; }
.chords-only { gap: .9em; }
.ch-solo { font-family: var(--mono); font-weight: 700; color: var(--gold2); font-size: .9em; padding: .1em .45em; border: 1px solid rgba(227,180,92,.25); border-radius: 5px; }
.ly-only { line-height: 1.45; }
.chart.small { --chart-size: 15px; }
.chart-toolbar { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; position: sticky; top: -26px; z-index: 5; }
.ctl-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ctl-group .lbl { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- song editor ---------- */
.editor-grid { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 16px; align-items: start; }
.sec-edit { border: 1px solid var(--line); border-left: 3px solid var(--k-other); border-radius: var(--r-sm); padding: 10px; margin-bottom: 12px; background: var(--bg2); }
.sec-edit.k-verse { border-left-color: var(--k-verse); } .sec-edit.k-chorus { border-left-color: var(--k-chorus); } .sec-edit.k-bridge { border-left-color: var(--k-bridge); } .sec-edit.k-prechorus { border-left-color: var(--k-prechorus); } .sec-edit.k-instrumental { border-left-color: var(--k-instrumental); }
.sec-edit-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.sec-name-in { font-weight: 700; width: 150px; }
.cue-in { flex: 1; min-width: 160px; }
.sec-preview { margin-top: 8px; padding: 8px 10px; background: var(--panel); border-radius: 6px; }

/* ---------- setlists ---------- */
.set-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-align: left; cursor: pointer; transition: border-color .15s; display: block; width: 100%; color: inherit; }
.set-card:hover { border-color: var(--line2); }
.set-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.setlist-items { display: flex; flex-direction: column; gap: 6px; }
.si { display: grid; grid-template-columns: 22px 46px 26px minmax(160px, 1fr) auto auto auto 52px auto; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; }
.si.el { background: var(--bg2); }
.si.missing { opacity: .6; }
.si.dragging { opacity: .4; } .si.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.drag-h { cursor: grab; color: var(--dim); letter-spacing: -2px; user-select: none; }
.start-time { font-family: var(--mono); font-size: 12px; }
.kind-ico { text-align: center; }
.si-title { display: flex; flex-direction: column; min-width: 0; } .si-title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-title input { padding: 4px 6px !important; font-weight: 700; }
.dur { font-family: var(--mono); font-size: 12px; }
.si-details { grid-column: 2 / -1; padding: 10px 0 2px; border-top: 1px solid var(--line); margin-top: 4px; }
.assign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.assign-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.group-card h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.musician-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.musician { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.musician.on, .musician:hover { border-color: var(--accent); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); font-weight: 800; font-size: 18px; color: var(--accent); border: 1px solid var(--line2); }
.assign-list { list-style: none; padding: 0; margin: 8px 0; } .assign-list li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.assign-list li.assigned a { font-weight: 700; } .assign-note { color: var(--accent); font-size: 12px; }

/* ---------- metronome ---------- */
.metro { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.metro-page { max-width: 560px; margin: 0 auto 16px; padding: 30px; }
.metro-beats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.metro-beats i { width: 26px; height: 26px; border-radius: 50%; background: var(--panel2); border: 2px solid var(--line2); transition: background .06s, transform .06s; }
.metro-beats i.acc { border-color: var(--accent); }
.metro-beats i.on { background: var(--text); transform: scale(1.15); }
.metro-beats i.acc.on { background: var(--accent); }
.metro-beats.countin i.on { background: var(--warn); }
.metro.compact .metro-beats i { width: 16px; height: 16px; }
.metro-row { display: flex; gap: 10px; align-items: center; justify-content: center; } .metro-row.wrap { flex-wrap: wrap; }
.metro-bpm { display: flex; align-items: baseline; gap: 6px; }
.metro-bpm input { width: 120px; font-size: 44px !important; font-family: var(--serif); text-align: center; font-weight: 600; background: transparent !important; border-color: transparent !important; }
.metro.compact .metro-bpm input { font-size: 26px !important; width: 80px; }
.metro-bpm span { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: .1em; }
.metro-slider { max-width: 420px; }

/* ---------- live musician mode ---------- */
.live-main { padding: 0 !important; display: flex; flex-direction: column; }
.live-main .view { max-width: none; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.live-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--bg2); flex-wrap: wrap; }
.live-top-l, .live-top-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.song-tabs { display: flex; gap: 4px; overflow: auto; }
.song-tabs button { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 5px 10px; cursor: pointer; color: var(--muted); font-weight: 600; white-space: nowrap; font-size: 12px; }
.song-tabs button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.clock { font-family: var(--mono); font-weight: 700; font-size: 16px; }
.cue-banner { background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 26px; text-align: center; padding: 10px; letter-spacing: .04em; animation: cueflash 1s 3; }
.cue-banner small { font-weight: 600; font-size: 12px; opacity: .7; }
@keyframes cueflash { 50% { filter: brightness(1.4); } }
.live-grid { flex: 1; display: grid; grid-template-columns: 1fr 320px; min-height: 0; }
.live-chart-wrap { overflow: auto; padding: 18px 26px 40px; }
.live-song-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 8px; }
.live-song-head h1 { font-size: 40px; margin: 0 0 6px; }
.sec-strip { display: flex; gap: 5px; flex-wrap: wrap; }
.bar-prog { height: 3px; background: var(--line); border-radius: 2px; margin: 10px 0 16px; overflow: hidden; } .bar-prog i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.live-chart .chart-sec { opacity: .38; }
.live-chart .chart-sec.active { opacity: 1; background: rgba(255,255,255,.035); }
.live-side { border-left: 1px solid var(--line); padding: 14px; overflow: auto; background: var(--bg2); }
.live-side .card { padding: 14px; }
.next-card h3 { font-size: 18px; }
.cue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.live-controls { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px; border-top: 1px solid var(--line); background: var(--bg2); flex-wrap: wrap; }
.live-controls .sep { width: 1px; height: 26px; background: var(--line2); }
.key-now { font-family: var(--mono); font-size: 18px; min-width: 42px; text-align: center; }

/* ---------- modal / toast ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fadein .15s; }
@keyframes fadein { from { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 18px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.copy-area { font-family: var(--mono); font-size: 12px; }
#toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-left: 3px solid var(--ok); padding: 10px 14px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: opacity .3s, transform .3s; max-width: 360px; }
.toast.error { border-left-color: var(--danger); } .toast.out { opacity: 0; transform: translateY(8px); }
.kbd-table { width: 100%; border-collapse: collapse; } .kbd-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); } .kbd-table td:first-child { white-space: nowrap; width: 40%; }

/* ---------- slide canvas ---------- */
.mon, .sframe { position: relative; overflow: hidden; background: #000; }
.mon { aspect-ratio: 16 / 9; width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.canvas { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; }
.canvas .bg, .canvas .ov { position: absolute; inset: 0; }
.canvas .bg video { width: 100%; height: 100%; object-fit: cover; }
.el { position: absolute; display: flex; flex-direction: column; overflow: hidden; }
.el-text .txt { width: 100%; white-space: pre-wrap; word-break: break-word; outline: none; }
.el-img img { width: 100%; height: 100%; }
.img-missing { display: grid; place-items: center; width: 100%; height: 100%; border: 4px dashed rgba(255,255,255,.3); color: rgba(255,255,255,.4); font-size: 40px; }
.txt .em { font-weight: 700; }
.txt .vn { font-size: .5em; vertical-align: super; opacity: .7; margin-right: .15em; font-family: var(--ui); }
.mon-empty, .mon-black { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: #070708; }
.mon-black.logo { color: var(--gold); }
.mon-cd { position: absolute; inset: auto 0 8% 0; text-align: center; font-family: var(--mono); font-weight: 700; color: #fff; font-size: clamp(14px, 4vw, 40px); text-shadow: 0 2px 10px #000; }
.mon-badge { position: absolute; top: 8px; right: 8px; background: var(--live); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }

/* motion backgrounds */
.bg.motion { overflow: hidden; }
.bg.motion i, .bg.motion b { position: absolute; inset: -30%; display: block; }
.m-aurora { background: #071019; }
.m-aurora i { background: radial-gradient(40% 35% at 30% 40%, rgba(60,180,160,.55), transparent 70%), radial-gradient(35% 40% at 70% 55%, rgba(110,70,200,.55), transparent 70%); filter: blur(40px); animation: drift 22s ease-in-out infinite alternate; }
.m-aurora b { background: radial-gradient(30% 30% at 55% 30%, rgba(40,120,200,.45), transparent 70%); filter: blur(50px); animation: drift2 30s ease-in-out infinite alternate; }
.m-embers { background: radial-gradient(circle at 60% 90%, #4a160a 0%, #160806 55%, #070303 100%); }
.m-embers i { background: radial-gradient(circle at 50% 100%, rgba(255,120,40,.35), transparent 55%); animation: glow 6s ease-in-out infinite; }
.m-embers b { background-image: radial-gradient(2px 2px at 20% 30%, rgba(255,170,90,.9), transparent), radial-gradient(3px 3px at 70% 60%, rgba(255,140,60,.8), transparent), radial-gradient(2px 2px at 40% 80%, rgba(255,200,120,.8), transparent), radial-gradient(2px 2px at 85% 20%, rgba(255,150,80,.7), transparent); background-size: 420px 420px; animation: rise 18s linear infinite; }
.m-waves { background: linear-gradient(180deg, #03101b, #08283b); }
.m-waves i { background: radial-gradient(60% 18% at 50% 70%, rgba(40,140,180,.35), transparent 70%); animation: wave 12s ease-in-out infinite alternate; }
.m-waves b { background: radial-gradient(70% 14% at 40% 82%, rgba(30,110,160,.35), transparent 70%); animation: wave 16s ease-in-out infinite alternate-reverse; }
.m-rays { background: radial-gradient(circle at 50% -10%, #5a4520 0%, #1a140b 55%, #0a0806 100%); }
.m-rays i { background: conic-gradient(from 0deg at 50% -10%, transparent 0 8deg, rgba(255,220,150,.10) 10deg 16deg, transparent 18deg 30deg, rgba(255,220,150,.07) 32deg 38deg, transparent 40deg 360deg); animation: sway 18s ease-in-out infinite alternate; transform-origin: 50% 0; }
.m-rays b { background: radial-gradient(circle at 50% 0%, rgba(255,230,180,.22), transparent 45%); animation: glow 9s ease-in-out infinite; }
.m-stars { background: radial-gradient(circle at 50% 40%, #141833, #04050b 75%); }
.m-stars i { background-image: radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #cfd8ff, transparent), radial-gradient(1.5px 1.5px at 55% 35%, #fff, transparent), radial-gradient(1px 1px at 80% 60%, #fff, transparent), radial-gradient(2px 2px at 90% 15%, #dfe6ff, transparent); background-size: 360px 360px; animation: starsmove 80s linear infinite; opacity: .8; }
.m-stars b { background-image: radial-gradient(1px 1px at 25% 45%, #fff, transparent), radial-gradient(1.5px 1.5px at 65% 85%, #fff, transparent), radial-gradient(1px 1px at 45% 10%, #fff, transparent); background-size: 250px 250px; animation: twinkle 4s ease-in-out infinite; }
.m-mist { background: linear-gradient(180deg, #3a414e, #12151b); }
.m-mist i { background: radial-gradient(40% 25% at 30% 60%, rgba(255,255,255,.18), transparent 70%), radial-gradient(35% 20% at 75% 40%, rgba(255,255,255,.14), transparent 70%); filter: blur(30px); animation: drift 26s ease-in-out infinite alternate; }
.m-mist b { background: radial-gradient(50% 20% at 50% 85%, rgba(200,210,230,.18), transparent 70%); filter: blur(30px); animation: drift2 34s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(8%, -6%) rotate(8deg) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-10%, 8%) rotate(-6deg) scale(1.15); } }
@keyframes glow { 50% { opacity: .55; } }
@keyframes rise { to { background-position: 0 -840px; } }
@keyframes wave { to { transform: translateX(10%) scaleY(1.2); } }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes starsmove { to { background-position: -360px 180px; } }
@keyframes twinkle { 50% { opacity: .2; } }

/* ---------- stage: presentations & editor ---------- */
.pres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pres-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; cursor: pointer; }
.pres-card:hover { border-color: var(--line2); }
.pres-meta { display: flex; justify-content: space-between; align-items: center; margin: 10px 2px 0; }
.editor-main { padding: 0 !important; } .editor-main .view { max-width: none; height: 100%; display: flex; flex-direction: column; }
.editor-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg2); flex-wrap: wrap; }
.editor-top .btn-row { margin: 0; margin-left: auto; }
.editor-body { flex: 1; display: grid; grid-template-columns: 180px 1fr 290px; min-height: 0; }
.slide-rail { border-right: 1px solid var(--line); overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--bg2); }
.rail-item { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; padding: 4px; border-radius: 8px; border: 2px solid transparent; }
.rail-item .n { font-size: 11px; color: var(--dim); width: 14px; }
.rail-item .mon { flex: 1; }
.rail-item.on { border-color: var(--accent); }
.rail-item.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.rail-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.canvas-area { padding: 18px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.edit-frame { aspect-ratio: 16/9; width: 100%; max-width: 1100px; margin: 0 auto; border-radius: 6px; box-shadow: 0 10px 50px rgba(0,0,0,.5); user-select: none; }
.edit-frame .el { cursor: move; }
.edit-frame .el:hover { outline: 2px dashed rgba(255,255,255,.35); }
.edit-frame .el.selected { outline: 3px solid var(--accent); }
.edit-frame .txt[contenteditable="true"] { cursor: text; user-select: text; outline: none; }
.rs-handle { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; background: var(--accent); border-radius: 4px; cursor: nwse-resize; z-index: 3; }
.props { border-left: 1px solid var(--line); padding: 14px; overflow: auto; background: var(--bg2); }
.props h4:first-child { margin-top: 0; }
.toggle-row { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0; }
.tog { border: 1px solid var(--line); background: var(--panel); padding: 5px 10px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 12px; color: var(--muted); }
.tog.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 14px; }
.bg-swatch { position: relative; aspect-ratio: 16/9; border-radius: 8px; border: 1px solid var(--line2); cursor: pointer; overflow: hidden; display: flex; align-items: flex-end; padding: 0; }
.bg-swatch span { display: block; width: 100%; padding: 4px 6px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 11px; font-weight: 700; color: #fff; text-align: left; }
.bg-swatch:hover { border-color: var(--accent); }
.bg-swatch.wide { aspect-ratio: auto; height: 56px; width: 100%; }
.bg-swatch.theme { background: repeating-linear-gradient(45deg, #222 0 10px, #1a1a1a 10px 20px); }

/* lyrics & bible */
.three-col { display: grid; grid-template-columns: 260px 1fr 300px; gap: 16px; align-items: start; }
.list-col input[type=search], .list-col select { width: 100%; margin-bottom: 6px; }
.slide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.slide-card { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.slide-card .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.bible-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ref-in { flex: 1; min-width: 220px; font-size: 18px !important; font-family: var(--serif); }
.chap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 4px; margin-bottom: 10px; }
.chap-grid button { border: 1px solid var(--line); background: var(--bg2); border-radius: 5px; padding: 5px 0; cursor: pointer; font-family: var(--mono); font-size: 12px; }
.chap-grid button.on, .chap-grid button:hover { border-color: var(--accent); color: var(--accent); }
.kw-res { max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; }
.verse-list { font-family: var(--serif); font-size: 20px; line-height: 1.55; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin: 10px 0; }
.verse-list sup { color: var(--accent); font-family: var(--ui); font-size: 11px; font-weight: 700; }

/* media */
.drop-zone { border: 2px dashed var(--line2); border-radius: var(--r); padding: 22px; text-align: center; color: var(--muted); margin-bottom: 14px; transition: border-color .15s, background .15s; }
.drop-zone.over { border-color: var(--accent); background: rgba(134,184,240,.06); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.media-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.media-prev { aspect-ratio: 16/9; background: #000; border-radius: 6px; overflow: hidden; display: grid; place-items: center; color: var(--dim); }
.media-prev img, .media-prev video { width: 100%; height: 100%; object-fit: cover; }
.audio-ico { font-size: 40px; color: var(--accent); }

/* themes */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.theme-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.theme-card.live { border-color: var(--accent); }
.theme-card .btn-row { margin: 0; }
.theme-layout { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.theme-editor { position: sticky; top: 0; }

/* operator */
.operator-main { padding: 0 !important; } .operator-main .view { max-width: none; height: 100%; }
.op-grid { display: grid; grid-template-columns: 250px 1fr 400px; height: 100%; min-height: 0; }
.op-left { border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--bg2); min-height: 0; }
.op-svc { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); } .op-svc select { flex: 1; }
.op-items { flex: 1; overflow: auto; padding: 6px; }
.op-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; margin-bottom: 2px; }
.op-item:hover { background: var(--panel); }
.op-item.on { background: var(--panel2); border-color: var(--line2); }
.op-item.is-live { box-shadow: inset 3px 0 0 var(--live); }
.op-item .k { width: 20px; text-align: center; color: var(--muted); }
.op-item .t { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-item .t small { color: var(--accent); font-family: var(--mono); }
.op-item .x { border: 0; background: transparent; color: var(--dim); cursor: pointer; opacity: 0; }
.op-item:hover .x { opacity: 1; }
.op-item.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.op-add { padding: 10px; border-top: 1px solid var(--line); } .op-add select { width: 100%; }
.op-center { overflow: auto; padding: 14px 16px; min-height: 0; }
.op-center-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.op-center-head .btn-row { margin: 0; }
.op-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.op-slide { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 10px; border: 2px solid transparent; background: var(--panel); cursor: pointer; text-align: left; }
.op-slide:hover { border-color: var(--line2); }
.op-slide.next { border-color: rgba(134,184,240,.6); }
.op-slide.live { border-color: var(--live); box-shadow: 0 0 0 3px rgba(255,77,77,.2); }
.op-slide .lbl { font-size: 11px; color: var(--muted); font-weight: 700; } .op-slide .lbl b { color: var(--text); margin-right: 4px; }
.op-slide .otxt { font-size: 12px; color: var(--dim); line-height: 1.35; max-height: 3.2em; overflow: hidden; }
.op-right { border-left: 1px solid var(--line); padding: 12px; overflow: auto; background: var(--bg2); display: flex; flex-direction: column; gap: 10px; }
.mon-wrap { display: flex; flex-direction: column; gap: 5px; }
.mon-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.mon.big { border-color: rgba(255,77,77,.5); }
.op-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.op-btns .btn { justify-content: center; }
.op-btns [data-a="prev"], .op-btns [data-a="next"] { grid-column: span 1; }
.op-btns [data-a="next"] { grid-column: span 2; }
.op-trans { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; background: transparent; padding: 8px 4px; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 12px; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-body { display: flex; flex-direction: column; gap: 8px; }
.tab-body .btn-row { margin: 0; }
.timer-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.big-num { font-family: var(--mono); font-size: 26px; font-weight: 700; }
.sm-num { width: 70px; }
.display-card .mon { margin: 10px 0; }
.mini-stage { position: absolute; inset: 0; padding: 10px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #ddd; background: #0b0b0c; }
.mini-stage b { color: var(--gold2); }
.pad { padding: 10px; }

/* ---------- displays ---------- */
body.display-mode #app { display: none; }
#display-root { position: fixed; inset: 0; background: #000; z-index: 500; cursor: none; overflow: hidden; }
#display-root.show-bar { cursor: default; }
.d-layers { position: absolute; inset: 0; }
.lay { position: absolute; inset: 0; opacity: 0; transition-property: opacity, transform; transition-timing-function: ease; background: transparent !important; }
.lay.in { opacity: 1; }
.lay.t-slide { transform: translateX(6%); } .lay.t-slide.in { transform: none; } .lay.t-slide.out { transform: translateX(-6%); }
.lay.t-zoom { transform: scale(1.06); } .lay.t-zoom.in { transform: none; }
.lay.empty { display: none; }
.d-audience .lay[data-n="bg"] { background: #000 !important; }
.d-bar { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; align-items: center; background: rgba(20,20,24,.9); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; z-index: 50; opacity: 0; transition: opacity .3s; pointer-events: none; color: var(--muted); font-size: 12px; }
.show-bar .d-bar { opacity: 1; pointer-events: auto; }
.cd-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-shadow: 0 4px 30px rgba(0,0,0,.7); color: #fff; }
.cd-label { font-family: var(--ui); font-size: 3.2vw; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.cd-time { font-family: var(--serif); font-size: 16vw; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-church { font-family: var(--ui); font-size: 1.6vw; letter-spacing: .2em; text-transform: uppercase; opacity: .6; margin-top: 2vw; }
.d-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.sound-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.7); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 14px; }
.logo-screen { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vw; }
.logo-screen img { max-width: 40vw; max-height: 50vh; object-fit: contain; }
.doxa-mark { font-family: var(--ui); font-weight: 800; letter-spacing: .5em; font-size: 7vw; color: var(--gold); padding-left: .5em; }
.logo-church { font-family: var(--serif); font-size: 2.6vw; color: #ddd; letter-spacing: .1em; }
.blackout { position: absolute; inset: 0; background: #000; }
.d-stage { background: #050506; }
.stg { position: absolute; inset: 0; display: flex; flex-direction: column; color: #fff; font-family: var(--ui); }
.stg-top { display: grid; grid-template-columns: auto auto 1fr auto; gap: 3vw; align-items: center; padding: 1.2vw 2vw; background: #111114; border-bottom: 1px solid #26262c; }
.stg-clock { font-family: var(--mono); font-size: 3.4vw; font-weight: 700; }
.stg-timers { display: flex; flex-direction: column; font-family: var(--mono); font-size: 1.4vw; color: var(--gold2); }
.stg-song { display: flex; gap: 1.2vw; align-items: center; font-size: 1.8vw; flex-wrap: wrap; } .stg-song b { font-size: 2.2vw; } .stg-song span { color: #aaa; text-transform: uppercase; letter-spacing: .12em; font-size: 1.4vw; }
.stg-song .key-badge { font-size: 1.6vw; }
.stg-mode { color: var(--live); font-weight: 800; font-size: 1.4vw; letter-spacing: .1em; }
.stg-msg { background: #e5604f; color: #fff; font-size: 3vw; font-weight: 800; text-align: center; padding: .6vw; }
.stg-msg.flash { animation: cueflash .8s infinite; }
.stg-cue { background: var(--gold); color: #1a1408; font-size: 2.6vw; font-weight: 800; text-align: center; padding: .5vw; }
.stg-seccue { color: var(--gold2); font-size: 1.8vw; padding: .6vw 2vw 0; font-weight: 700; }
.stg-now { flex: 1; padding: 1.5vw 2.5vw; --chart-size: 4.4vw; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.stg-now .seg .ch { color: var(--gold); }
.stg-next { padding: 1vw 2.5vw 1.4vw; background: #0d0d10; border-top: 1px solid #26262c; font-size: 2.6vw; color: #9a9a9a; }
.stg-next .lbl { display: block; font-size: 1.2vw; letter-spacing: .18em; color: #6fa8dc; font-weight: 800; margin-bottom: .3vw; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .three-col { grid-template-columns: 220px 1fr; } .three-col > aside:last-child { grid-column: 1 / -1; }
  .op-grid { grid-template-columns: 210px 1fr 340px; }
  .editor-body { grid-template-columns: 150px 1fr 260px; }
}
@media (max-width: 900px) {
  #app { grid-template-columns: minmax(0, 1fr); }
  .topbar { gap: 8px; padding: 0 10px; overflow: hidden; } .app-switch { margin-left: 0; } .brand span { letter-spacing: .18em; }
  .sidebar { position: fixed; top: 56px; bottom: 0; left: 0; width: 240px; transform: translateX(-100%); transition: transform .2s; z-index: 30; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .topbar .nav-toggle { display: inline-grid; }
  .brand small { display: none; }
  .main { padding: 18px 14px 60px; }
  .grid-2, .grid-3, .editor-grid, .theme-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid.four { grid-template-columns: 1fr 1fr; }
  .tr { grid-template-columns: 2fr .6fr .6fr auto; } .tr > span:nth-child(4), .tr > span:nth-child(5) { display: none; }
  .members-table .tr { grid-template-columns: 1fr 1fr auto; } .members-table .tr > span:nth-child(3), .members-table .tr > span:nth-child(4) { display: none; }
  .si { grid-template-columns: 18px 26px 1fr auto; } .si .start-time, .si .dur, .si label.mini:nth-of-type(2), .si label.mini:nth-of-type(3) { display: none; }
  .live-grid { display: block; overflow: auto; } .live-chart-wrap { overflow: visible; padding: 14px; } .live-side { border-left: 0; border-top: 1px solid var(--line); }
  .live-top-l, .live-top-r { min-width: 0; max-width: 100%; } .live-top-l select { max-width: 100%; } .song-tabs { max-width: calc(100vw - 36px); }
  .live-controls { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; } .live-controls > * { flex: none; }
  .live-song-head h1 { font-size: 28px; }
  .three-col { grid-template-columns: 1fr; }
  .op-grid { grid-template-columns: 1fr; height: auto; } .op-left { max-height: 260px; } .op-right { border-left: 0; }
  .editor-body { grid-template-columns: 1fr; } .slide-rail { flex-direction: row; overflow-x: auto; border-right: 0; } .rail-item { min-width: 130px; } .rail-actions { flex-direction: row; }
  .operator-main .view, .editor-main .view { height: auto; }
  .app-switch button { padding: 6px 10px; }
  #peer-count { display: none; }
}
@media (max-width: 560px) {
  .pill#sync-pill { font-size: 0; padding: 7px; } .pill#sync-pill i { margin: 0; }
  h1 { font-size: 26px; }
  .nns-demo { grid-template-columns: 1fr; }
}

/* =====================================================================
   v0.2 — brand, light mode, DANCE, FORMATION, CENTRAL
   ===================================================================== */
:root { --flame1: #f7c531; --flame2: #f08a24; --flame3: #e0412c; --ljor: #8e3fc0; }
body[data-app="dance"] { --accent: #f2884b; --accent-ink: #1e0d04; }
body[data-app="formation"] { --accent: #b48ae6; --accent-ink: #160a24; }
body[data-app="admin"] { --accent: #e3b45c; --accent-ink: #1a1408; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-weight: 800; letter-spacing: .28em; font-size: 14px; }
.brand-text small { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.beta-badge { border: 1px solid rgba(240,138,36,.55); background: linear-gradient(90deg, rgba(247,197,49,.14), rgba(224,65,44,.14)); color: var(--flame1); font-weight: 800; font-size: 10px; letter-spacing: .14em; padding: 4px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.top-ico { min-width: 34px; height: 34px; border-radius: 50%; padding: 0; }
.top-ico .ico { width: 17px; height: 17px; }
#admin-btn.active { color: var(--gold); border-color: var(--gold); }
.nav-app { font-size: 10px; letter-spacing: .2em; font-weight: 800; color: var(--accent); padding: 4px 12px 10px; }
.side-foot { display: flex; flex-direction: column; gap: 4px; } .side-foot small { font-family: var(--ui); font-style: normal; font-size: 10px; letter-spacing: .06em; color: var(--dim); }
.warn-text { color: var(--warn); }
.linklike { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.progress { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; } .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--flame2)); border-radius: 4px; }
.progress.thin { height: 4px; margin: 6px 0 2px; }
.stats.mini { grid-template-columns: repeat(4, 1fr); } .stats.mini .stat { padding: 10px; } .stats.mini .stat b { font-size: 24px; }
.doxa-logo-big { max-width: 30vw; max-height: 45vh; object-fit: contain; }

/* light mode */
body.light { --bg: #f5f3ef; --bg2: #efece6; --panel: #ffffff; --panel2: #f6f4f0; --line: #e3dfd7; --line2: #d4cfc5; --text: #1c1b1f; --muted: #6b675f; --dim: #9a958b; --gold2: #9a6a14; --accent-ink: #fff; }
body.light[data-app="music"], body.light[data-app="admin"] { --accent: #b27a14; }
body.light[data-app="stage"] { --accent: #2f6fb8; }
body.light[data-app="dance"] { --accent: #d1602a; }
body.light[data-app="formation"] { --accent: #7a3fb0; }
body.light .topbar { background: rgba(255,255,255,.92); }
body.light .btn:hover { background: #ece9e3; } body.light .btn.on { background: #1c1b1f; color: #fff; }
body.light .key-badge { color: #7a5410; background: rgba(178,122,20,.1); }
body.light .seg .ch, body.light .ch-solo { color: #9a5f00; }
body.light .hero-card { background: radial-gradient(ellipse at 100% 0%, rgba(178,122,20,.08), transparent 60%), var(--panel); }
body.light .modal-wrap { background: rgba(20,20,20,.35); }
body.light .note-box { background: rgba(178,122,20,.07); }

/* status tags */
.tag.st-draft { color: #c9c3b8; } .tag.st-learning { color: #f2b04b; border-color: #f2b04b; } .tag.st-ready { color: var(--ok); border-color: var(--ok); }
.bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; flex: 1; } .bar i { display: block; height: 100%; }
.bar i.st-draft { background: #8a857c; } .bar i.st-learning { background: #f2b04b; } .bar i.st-ready { background: var(--ok); }
.prep-bars > div, .prep-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; } .prep-bars span { width: 70px; font-size: 12px; color: var(--muted); }
.prep-row > span { flex: 1.4; font-size: 13px; } .prep-row small { width: 60px; text-align: right; color: var(--muted); } .prep-row { cursor: pointer; }

/* DANCE */
.stage-svg { width: 100%; height: auto; display: block; }
.stage-floor { fill: var(--bg2); stroke: var(--line2); stroke-width: .4; }
.stage-edge { stroke: var(--accent); stroke-width: .5; stroke-dasharray: 1.5 1; }
.stage-lbl { font-size: 2.2px; fill: var(--dim); text-anchor: middle; letter-spacing: .3px; font-family: var(--ui); font-weight: 700; }
.stage-empty { font-size: 3px; fill: var(--dim); text-anchor: middle; font-family: var(--ui); }
.dot circle { fill: var(--accent); stroke: rgba(0,0,0,.35); stroke-width: .4; }
.dot text { font-size: 2.6px; fill: var(--accent-ink); text-anchor: middle; font-weight: 800; font-family: var(--ui); pointer-events: none; }
.fp-stage .dot { cursor: grab; }
.form-planner { display: grid; grid-template-columns: 1fr 260px; gap: 16px; }
.fp-stage { background: var(--bg); border-radius: 10px; padding: 8px; touch-action: none; }
.fp-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; } .fp-labels input { padding: 4px 6px !important; font-size: 12px; }
.mini-formation { margin-top: 8px; opacity: .9; }
.choreo-grid { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 16px; align-items: start; }
.choreo-meta { position: sticky; top: 0; }
.ready-list { display: flex; flex-direction: column; gap: 6px; } .ready-list label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; } .ready-list select { padding: 4px 6px !important; font-size: 12px; }
.dsec { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; }
.dsec.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.dsec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dsec-head .sec-name-in { font-size: 16px; width: 200px; }
.dsec-body { display: grid; grid-template-columns: 1fr 220px; gap: 14px; margin-top: 10px; }
.dsec-peek { margin: 6px 0 0 30px; }
textarea.pattern { font-size: 15px; line-height: 1.55; min-height: 110px; }
.formation-btn { display: flex; flex-direction: column; gap: 6px; width: 100%; background: transparent; border: 1px dashed var(--line2); border-radius: 10px; padding: 6px; cursor: pointer; color: var(--muted); }
.formation-btn:hover { border-color: var(--accent); } .formation-btn em { font-style: normal; font-size: 12px; text-transform: capitalize; }
.dance-si { grid-template-columns: 22px 26px minmax(150px, 1fr) auto auto auto auto; }
.si-note { grid-column: 3 / -1; padding: 6px 8px !important; font-size: 12px; }
.sm-sel { padding: 5px !important; font-size: 12px; margin-left: 6px; max-width: 150px; }
.reh-grid { flex: 1; display: grid; grid-template-columns: 1fr 340px; min-height: 0; }
.reh-main { overflow: auto; padding: 18px 28px 40px; }
.reh-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; } .reh-head h1 { font-size: 38px; margin: 0 0 6px; }
.reh-sec-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .reh-sec-title h2 { font-family: var(--serif); font-size: 44px; font-weight: 600; margin: 0; color: var(--accent); }
.count-badge { font-family: var(--mono); font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); }
.reh-pattern { font-size: clamp(20px, 2.4vw, 34px); line-height: 1.5; white-space: normal; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }
.reh-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.reh-fields div { background: var(--bg2); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; } .reh-fields span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.reh-side { border-left: 1px solid var(--line); padding: 14px; overflow: auto; background: var(--bg2); }

/* FORMATION */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 10px; }
.pub-card { display: grid; grid-template-columns: 92px 1fr; gap: 12px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; cursor: pointer; color: inherit; }
.pub-card:hover { border-color: var(--accent); }
.pub-cover { width: 92px; height: 120px; border-radius: 8px; overflow: hidden; background: var(--panel2); display: grid; place-items: center; font-family: var(--serif); font-size: 40px; color: var(--accent); }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; }
.pub-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .pub-meta .eyebrow { margin: 0; font-size: 10px; } .pub-meta b { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.pub-foot { display: flex; gap: 8px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.today-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); } .today-row div { display: flex; flex-direction: column; }
.reader { display: grid; grid-template-columns: 270px minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.reader-toc { position: sticky; top: 0; max-height: calc(100vh - 110px); overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.toc-head { display: flex; gap: 10px; align-items: center; } .toc-head img { width: 48px; height: 62px; object-fit: cover; border-radius: 6px; } .toc-head div { display: flex; flex-direction: column; } .toc-head b { font-family: var(--serif); font-size: 18px; line-height: 1.1; }
.toc { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; }
.toc a { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 6px; color: var(--muted); font-size: 13px; cursor: pointer; }
.toc a:hover { background: var(--panel); color: var(--text); } .toc a.on { background: var(--panel2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.toc a small { color: var(--dim); font-family: var(--mono); font-size: 10px; } .toc a em { margin-left: auto; color: var(--gold); font-style: normal; }
.toc-group { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 800; margin: 10px 8px 2px; }
.chk { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line2); display: inline-grid; place-items: center; font-style: normal; font-size: 10px; flex: none; }
.chk.y { background: var(--ok); border-color: var(--ok); color: #fff; } .chk.dot { border: 0; width: 6px; height: 6px; background: var(--line2); margin: 0 5px; }
.reader-main { min-width: 0; }
.reader-bar { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; position: sticky; top: -26px; background: var(--bg); padding: 10px 0; z-index: 3; }
.reader-bar h1 { font-size: 32px; margin: 0; } .reader-bar .btn-row { margin: 0; }
.icon-btn.on { color: var(--gold); border-color: var(--gold); }
.ref-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.doc-body { --read-size: 18px; font-size: var(--read-size); line-height: 1.65; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 30px; overflow-wrap: break-word; }
.doc-body p { margin: 0 0 .7em; }
.doc-body img { max-width: 100%; height: auto; max-height: 360px; display: block; margin: 10px auto; border-radius: 6px; }
.doc-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0; }
.doc-body td, .doc-body th { vertical-align: top; padding: 8px 12px; text-align: left; }
.doc-body td:empty { display: none; }
.doc-body table table { background: var(--bg2); border-radius: 10px; border: 1px solid var(--line); }
.doc-body table table table { background: var(--panel); }
.doc-body strong { color: var(--text); }
.doc-body h3 { font-family: var(--serif); }
.doc-body.preview { max-height: 60vh; overflow: auto; }

.source-line { font-size: 12px; color: var(--muted); margin: 10px 4px; }
.reader-nav { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 40px; }
.reader-side { position: sticky; top: 0; } .reader-side .card { padding: 14px; } .reader-side textarea { width: 100%; }
.ai-out { margin-top: 8px; font-size: 14px; line-height: 1.55; }
.ai-label { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1px dashed var(--accent); border-radius: 5px; padding: 2px 6px; margin-bottom: 6px; }
.ai-text ul { padding-left: 18px; margin: 6px 0; }
.ai-card { border-style: dashed; }
.course-card .course-head { display: grid; grid-template-columns: 90px 1fr 300px; gap: 16px; align-items: start; }
.course-head img { width: 90px; height: 118px; object-fit: cover; border-radius: 8px; }
.course-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0; }
.course-actions .btn-row { margin-top: 6px; }
.ack { margin-top: 10px; color: var(--ok); font-weight: 700; font-size: 13px; }
.modules { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.modules details { background: var(--bg2); border-radius: 10px; padding: 8px 12px; } .modules summary { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.lesson-list { margin: 8px 0 4px; padding-left: 0; list-style: none; } .lesson-list li a { display: flex; gap: 8px; align-items: center; padding: 4px 0; color: var(--text); font-size: 13px; cursor: pointer; }
.lesson-list li.done a { color: var(--muted); }
.day-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; margin-top: 12px; }
.day-strip .day { border: 1px solid var(--line); background: var(--bg2); border-radius: 6px; padding: 6px 0; cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.day-strip .day.done { background: rgba(95,194,138,.18); color: var(--ok); border-color: rgba(95,194,138,.5); }
.day-strip .day.today { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 2px rgba(180,138,230,.25); }
.journal-list { display: flex; flex-direction: column; gap: 4px; } .j-body { line-height: 1.6; margin: 8px 0; white-space: normal; }
.search-row { display: flex; gap: 8px; } .search-row input { flex: 1; font-size: 16px !important; }
.search-grid { align-items: start; }
.hit { display: flex; flex-direction: column; gap: 3px; text-align: left; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; color: inherit; }
.hit:hover { border-color: var(--accent); } .hit small { color: var(--muted); line-height: 1.45; }
.cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.table-scroll { overflow: auto; }
table.matrix, table.inv { width: 100%; border-collapse: collapse; font-size: 13px; }
table.matrix th, table.matrix td, table.inv th, table.inv td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.matrix th, table.inv th { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.cell-bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; width: 70px; } .cell-bar i { display: block; height: 100%; background: var(--accent); }

/* CENTRAL */
.central-hero { display: flex; gap: 22px; align-items: center; background: radial-gradient(ellipse at 0% 50%, rgba(240,138,36,.12), transparent 55%), var(--panel); }
.central-hero img { width: 110px; height: 110px; object-fit: contain; }
.central-hero h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.app-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.app-tile { text-align: left; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--t); border-radius: var(--r); padding: 14px; cursor: pointer; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.app-tile .eyebrow { color: var(--t); margin: 0; } .app-tile > b { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.t-music { --t: #e3b45c; } .t-stage { --t: #86b8f0; } .t-dance { --t: #f2884b; } .t-formation { --t: #b48ae6; }
.tile-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; } .tile-stats span { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); } .tile-stats b { font-size: 20px; color: var(--text); font-family: var(--serif); }
.st-pill { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.s-working { color: var(--ok); border-color: rgba(95,194,138,.5); } .s-beta { color: #86b8f0; border-color: rgba(134,184,240,.5); } .s-dev { color: #f2b04b; border-color: rgba(242,176,75,.5); } .s-planned { color: var(--muted); border-color: var(--line2); } .s-fix { color: var(--danger); border-color: rgba(229,96,79,.5); }
.tag.s-pending { color: #f2b04b; border-color: #f2b04b; } .tag.s-approved { color: var(--ok); border-color: var(--ok); } .tag.s-archived, .tag.s-rejected { color: var(--dim); }
.status-sum { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; } .status-sum .st-pill b { font-size: 14px; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.status-list { list-style: none; margin: 0; padding: 0; } .status-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: center; }
.log-entry { border-bottom: 1px solid var(--line); padding: 10px 0; } .log-entry ul { margin: 4px 0 8px; padding-left: 18px; line-height: 1.5; } .log-entry .eyebrow { margin: 8px 0 2px; }
.fb-item { border-left: 3px solid var(--line2); } .fb-item.s-open { border-left-color: #f2b04b; } .fb-item.s-progress { border-left-color: #86b8f0; } .fb-item.s-resolved { border-left-color: var(--ok); }
.fb-text { margin: 10px 0; line-height: 1.55; } .fb-resp { background: var(--bg2); padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.fb-item .btn-row input { flex: 1; }
.pub-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .pub-row .btn-row { margin: 0; }
.brand-assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.brand-assets figure { margin: 0; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 1px solid var(--line); }
.brand-assets figure.dark { background: #111114; } .brand-assets figure.light { background: #f6f4f0; }
.brand-assets img { max-height: 100px; max-width: 100%; object-fit: contain; } .brand-assets figcaption { font-size: 11px; color: #888; text-align: center; }
.terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .terms-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }

@media (max-width: 1200px) {
  .reader { grid-template-columns: 230px minmax(0, 1fr); } .reader-side { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
  .app-tiles { grid-template-columns: repeat(2, 1fr); }
  .course-card .course-head { grid-template-columns: 80px 1fr; } .course-actions { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .app-switch button { padding: 6px 7px; font-size: 10px; letter-spacing: .06em; }
  .brand-text, .beta-badge { display: none; }
  .top-ico { min-width: 30px; height: 30px; }
  .reader { grid-template-columns: 1fr; } .reader-toc { position: static; max-height: 280px; }
  .doc-body { padding: 16px; } .reader-bar { position: static; }
  .choreo-grid, .dsec-body, .form-planner { grid-template-columns: 1fr; } .choreo-meta { position: static; }
  .reh-grid { display: block; overflow: auto; } .reh-side { border-left: 0; }
  .app-tiles, .brand-assets, .terms-grid { grid-template-columns: 1fr 1fr; }
  .central-hero { flex-direction: column; align-items: flex-start; }
  .dance-si { grid-template-columns: 18px 22px 1fr auto; }
  .search-row { flex-wrap: wrap; }
}
@media (max-width: 560px) { .app-switch button { padding: 6px 5px; } #fb-btn { display: none; } }

.doc-body.paper { background: #fbfaf7; color: #1f1d22; border-color: #e6e1d8; --text: #1f1d22; --muted: #6b675f; --line: #e3dfd7; --bg2: #f3f0ea; --panel: #ffffff; }
.doc-body.paper table table { background: #f3f0ea; border-color: #e6e1d8; } .doc-body.paper table table table { background: #fff; }
.doc-body.paper strong { color: #111; }
.brand-logo { width: 44px; height: 44px; }
.doc-body img[src*="8f1ebb946c62a1ff"] { max-height: 200px; }

/* reading mode: layout tables from the original booklets reflow as cards */
.doc-body th { font-weight: inherit; }
.doc-body table, .doc-body thead, .doc-body tbody { display: block; width: 100%; }
.doc-body colgroup { display: none; }
.doc-body tr { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-body td, .doc-body th { display: block; flex: 1 1 200px; min-width: min(100%, 160px); }
.doc-body td:empty, .doc-body th:empty { display: none; }
.doc-body table table { padding: 6px 4px; }

::placeholder { color: var(--dim); opacity: .75; }
@media (max-width: 560px) { #theme-toggle { display: none; } .brand-logo { width: 34px; height: 34px; } .topbar { gap: 6px; } }
.side-central { display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--ui); font-style: normal; font-size: 12px; font-weight: 700; margin-bottom: 8px; }

/* ===== Light-first design (v0.2.1) ===== */
body.light {
  --bg: #faf8f4; --bg2: #f4f1eb; --panel: #ffffff; --panel2: #f7f4ef; --line: #ebe6dd; --line2: #ddd6ca;
  --text: #1d1b20; --muted: #6a655c; --dim: #a39d92; --gold2: #8f5f0c; --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(40,28,10,.04), 0 6px 22px rgba(40,28,10,.06);
  background: radial-gradient(1200px 500px at 85% -10%, rgba(247,197,49,.10), transparent 60%), radial-gradient(900px 400px at -10% 110%, rgba(142,63,192,.06), transparent 60%), var(--bg);
}
body.light[data-app="music"], body.light[data-app="admin"] { --accent: #c0841a; }
body.light[data-app="stage"] { --accent: #2d6fc0; }
body.light[data-app="dance"] { --accent: #e0662a; }
body.light[data-app="formation"] { --accent: #7b3fb5; }
body.light #app { background: transparent; }
body.light .topbar { background: rgba(255,255,255,.85); border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
body.light .sidebar { background: rgba(255,255,255,.7); }
body.light #nav a.active { background: var(--panel); box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }
body.light .card, body.light .stat, body.light .set-card, body.light .pub-card, body.light .theme-card, body.light .pres-card, body.light .media-card, body.light .app-tile, body.light .table, body.light .si, body.light .dsec, body.light .musician, body.light .hit, body.light .op-slide { box-shadow: var(--shadow); border-color: var(--line); }
body.light .hero-card { background: linear-gradient(135deg, #fff7e6 0%, #ffffff 55%); }
body[data-app="stage"].light .hero-card { background: linear-gradient(135deg, #eaf3ff 0%, #ffffff 55%); }
body[data-app="dance"].light .hero-card { background: linear-gradient(135deg, #fff0e6 0%, #ffffff 55%); }
body[data-app="formation"].light .hero-card { background: linear-gradient(135deg, #f4ecff 0%, #ffffff 55%); }
body.light .central-hero { background: linear-gradient(135deg, #fff4e0 0%, #ffffff 60%); }
body.light input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), body.light select, body.light textarea { background: #fff; border-color: var(--line2); }
body.light .btn { background: #fff; border-color: var(--line2); }
body.light .btn:hover { background: #f6f2ec; }
body.light .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
body.light .btn.danger { background: #fff5f3; color: #c2412f; border-color: #f1c4bb; }
body.light .icon-btn { background: #fff; border-color: var(--line2); }
body.light .app-switch { background: #f3efe8; border-color: var(--line); }
body.light .app-switch button.active { color: #fff; box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 35%, transparent); }
body.light .pill { background: #fff; }
body.light .seg-ctl { background: #f3efe8; } body.light .seg-ctl button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
body.light .chip, body.light .chip-btn, body.light .tag { background: #fff; }
body.light .tr.th { background: #faf7f2; }
body.light .songs-table .tr:not(.th):hover { background: #fbf8f3; }
body.light .chart-sec.active, body.light .live-chart .chart-sec.active { background: #fff8ea; }
body.light .live-top, body.light .live-controls, body.light .live-side, body.light .reh-side, body.light .op-left, body.light .op-right, body.light .props, body.light .slide-rail, body.light .editor-top { background: #fbf9f6; }
body.light .sec-tag, body.light .count-badge { background: #f3efe8; }
body.light .sec-edit, body.light .si.el, body.light .modules details, body.light .reh-fields div, body.light .fb-resp { background: #faf7f2; }
body.light .stage-floor { fill: #faf7f2; }
body.light .metro-beats i { background: #f1ede6; }
body.light .metro-beats i.on { background: #1d1b20; }
body.light .toast { background: #fff; box-shadow: var(--shadow); }
body.light .modal { background: #fff; box-shadow: 0 30px 80px rgba(40,28,10,.18); }
body.light .banner { background: #fff; }
body.light .beta-badge { color: #b8650c; background: linear-gradient(90deg, #fff6dc, #ffe9df); border-color: #f2c48a; }
body.light .key-badge { color: #8f5f0c; background: #fff4dc; border-color: #f0d49a; }
body.light .mon { border-color: var(--line2); }
body.light .reader-bar { background: transparent; }
body.light .doc-body:not(.paper) { background: #fff; }
body.light .pub-cover { background: #f3efe8; }
body.light .day-strip .day { background: #fff; }
body.light .drop-zone { background: #fff; }
body.light .side-foot { color: var(--muted); }

/* ===== Cross-device compatibility (v0.3) ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
* { -webkit-tap-highlight-color: transparent; }
#app { height: 100vh; }
@supports (height: 100dvh) { #app { height: 100dvh; } }
.topbar { -webkit-backdrop-filter: blur(10px); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.edit-frame, .fp-stage, .stage-svg { touch-action: none; }
button, a, [data-go], [data-open] { touch-action: manipulation; }
@media (hover: none) and (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
  .op-item .x { opacity: 1; }
  .icon-btn { min-height: 38px; min-width: 38px; }
  .btn.sm { padding: 7px 11px; }
  .drag-h { display: none; }
}
.main { -webkit-overflow-scrolling: touch; }

/* ===== Suite Home — international ===== */
.home-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; padding: 44px 46px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(120deg, #fffaf0 0%, #ffffff 45%, #f7f1ff 100%); box-shadow: var(--shadow, 0 10px 40px rgba(0,0,0,.06)); margin-bottom: 30px; }
body:not(.light) .home-hero { background: linear-gradient(120deg, #1d1710 0%, #141418 45%, #1a1424 100%); }
.hero-glow { position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; background: radial-gradient(circle, rgba(247,197,49,.22), rgba(240,138,36,.10) 40%, transparent 70%); pointer-events: none; }
.hero-logo { position: relative; width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 12px 30px rgba(240,138,36,.18)); }
.hero-text { position: relative; }
.hero-kicker { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .28em; color: var(--muted); }
.hero-kicker i { font-style: normal; letter-spacing: .12em; font-size: 10px; padding: 3px 8px; border-radius: 999px; color: #b8650c; background: linear-gradient(90deg, #fff1cc, #ffe2d6); border: 1px solid #f2c48a; }
.home-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; margin: 12px 0 12px; letter-spacing: -.01em; background: linear-gradient(90deg, var(--text) 0%, var(--text) 55%, #c0641a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.home-hero p { color: var(--muted); font-size: 16px; max-width: 760px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 14px; }
.lang-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .lang-row > span { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-right: 4px; }
.lang { border: 1px solid var(--line2); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.lang.on { background: var(--text); color: var(--panel); border-color: var(--text); }
.home-h2 { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.home-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.home-app { position: relative; overflow: hidden; text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 20px; min-height: 270px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; box-shadow: var(--shadow, 0 6px 24px rgba(0,0,0,.06)); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-app:hover { transform: translateY(-3px); border-color: var(--ha); box-shadow: 0 18px 44px color-mix(in srgb, var(--ha) 22%, transparent); }
.home-app .ha-art { height: 80px; margin: -22px -20px 6px; background: var(--ha-bg); position: relative; }
.home-app .ha-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.55), transparent 45%); }
.ha-name { font-size: 11px; font-weight: 800; letter-spacing: .22em; color: var(--ha); }
.ha-tag { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
.ha-desc { color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1; }
.ha-stats { display: flex; gap: 14px; font-size: 12px; color: var(--muted); } .ha-stats b { color: var(--text); font-size: 15px; }
.ha-open { font-weight: 800; font-size: 13px; color: var(--ha); }
.a-music { --ha: #c0841a; --ha-bg: linear-gradient(135deg, #f7c531, #f08a24); }
.a-stage { --ha: #2d6fc0; --ha-bg: linear-gradient(135deg, #7cc0ff, #2d6fc0); }
.a-dance { --ha: #e0662a; --ha-bg: linear-gradient(135deg, #ffb07a, #e0412c); }
.a-formation { --ha: #7b3fb5; --ha-bg: linear-gradient(135deg, #c8a4f0, #7b3fb5); }
.home-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.home-strip .card { display: flex; flex-direction: column; gap: 4px; margin: 0; } .home-strip .eyebrow { margin-bottom: 4px; color: var(--muted); }
.home-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 28px 2px 0; color: var(--muted); font-size: 13px; } .home-foot b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 16px; color: var(--text); }
body[data-app="home"] { --accent: #c0641a; }
.install-steps { padding-left: 18px; line-height: 1.7; }
@media (max-width: 1100px) { .home-apps, .home-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .home-hero { grid-template-columns: 1fr; padding: 26px 20px; gap: 14px; border-radius: 18px; text-align: left; }
  .hero-logo { width: 96px; height: 96px; }
  .home-apps, .home-strip { grid-template-columns: 1fr; }
  .home-app { min-height: 0; }
}
.sw-home { display: none; }
@media (max-width: 700px) {
  .app-switch { position: fixed; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); margin: 0; z-index: 60; justify-content: space-between; padding: 5px; border-radius: 16px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(40,28,10,.16); }
  body:not(.light) .app-switch { background: rgba(24,24,28,.94); }
  .app-switch button { flex: 1; padding: 10px 2px; font-size: 10px; letter-spacing: .04em; border-radius: 12px; }
  .sw-home { display: block; }
  .main { padding-bottom: 96px !important; }
  .live-controls, .op-btns { margin-bottom: 70px; }
  body.display-mode .app-switch { display: none; }
  #display-root ~ * { }
}
@media (max-width: 700px) { .topbar, body.light .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--panel); } }

/* v0.3.1 — instant tap feedback */
button, a, [data-go], [data-open], .card, .chip { -webkit-tap-highlight-color: transparent; }
button:active, [data-go]:active, [data-open]:active, .app-switch button:active { transform: scale(.97); opacity: .85; transition: transform .06s, opacity .06s; }

/* ===== v0.4 — team sign-in, accounts, people & codes, new from the team ===== */
body.locked > *:not(#login-root):not(.toast-wrap):not(.modal-wrap):not(.install-banner) { display: none !important; }
#login-root { position: fixed; inset: 0; z-index: 900; overflow: auto; background: radial-gradient(1200px 600px at 50% -10%, #fff7e6 0%, #faf8f4 45%, #f1ede6 100%); }
.login-wrap { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 18px calc(24px + env(safe-area-inset-bottom)); gap: 18px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid rgba(20,20,30,.08); border-radius: 22px; padding: 30px 26px; box-shadow: 0 30px 80px -30px rgba(40,30,10,.25); display: flex; flex-direction: column; gap: 14px; text-align: center; color: #1b1b22; }
.login-logo { width: 150px; max-width: 60%; height: auto; margin: 0 auto 4px; }
.login-kicker { font: 700 11px/1 Inter, Manrope, system-ui, sans-serif; letter-spacing: .24em; color: #a07a2c; }
.login-card h1 { margin: 0; font: 600 34px/1.1 'Cormorant Garamond', Georgia, serif; }
.login-card p { margin: 0; }
.login-card label { display: flex; flex-direction: column; gap: 6px; text-align: left; font-weight: 600; font-size: 13px; color: #555; }
.login-card input { font-size: 17px; padding: 13px 14px; border-radius: 12px; border: 1px solid #ddd6ca; background: #fdfcfa; color: #1b1b22; width: 100%; box-sizing: border-box; }
.login-card input:focus { outline: 2px solid #c9a24d; border-color: transparent; }
.login-card .pin-in { font-size: 28px; letter-spacing: .6em; text-align: center; padding-left: .6em; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.login-card .btn.big { width: 100%; justify-content: center; margin-top: 4px; }
.login-err { background: #fdecea; color: #a12a1f; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.login-help { margin-top: 2px !important; }
.link-btn { background: none; border: 0; color: #8a6a24; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px; }
.login-wrap footer { font: italic 500 16px 'Cormorant Garamond', Georgia, serif; color: #8b826f; }
.me-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line, #e5e0d6); background: var(--panel, #fff); color: inherit; border-radius: 999px; padding: 3px 12px 3px 3px; cursor: pointer; font: 600 13px Inter, Manrope, system-ui, sans-serif; }
.me-btn[hidden] { display: none !important; }
.me-av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #c9a24d, #8a6a24); color: #fff; font: 700 11px Inter, Manrope, system-ui, sans-serif; letter-spacing: .04em; flex: none; }
.me-av.sm { width: 26px; height: 26px; font-size: 10px; vertical-align: middle; }
.me-av.big { width: 72px; height: 72px; font-size: 24px; margin: 0 auto 8px; }
.acct { text-align: center; } .acct h2 { margin: 0; } .acct-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
@media (max-width: 700px) { .me-nm { display: none; } .me-btn { padding: 3px; } }
.ro-hide { display: none !important; }
.ppl-card { padding: 0; overflow-x: auto; }
table.ppl { width: 100%; border-collapse: collapse; min-width: 560px; }
table.ppl th, table.ppl td { padding: 12px 14px; border-bottom: 1px solid var(--line, #eee); text-align: left; vertical-align: middle; }
table.ppl th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #888); font-weight: 600; }
table.ppl tr.off td { opacity: .5; }
table.ppl select { padding: 6px 8px; border-radius: 8px; }
.ppl-act { white-space: nowrap; text-align: right !important; } .ppl-act .btn { margin-left: 4px; }
.code-list { display: flex; flex-direction: column; gap: 10px; }
.code-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line, #eee); border-radius: 12px; flex-wrap: wrap; }
.code-row b { flex: 1; min-width: 120px; }
.code-big { font: 700 28px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .25em; color: #8a6a24; }
.whats-new { margin: 6px 0 8px; }
.wn-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.wn-card { scroll-snap-align: start; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid var(--line, #e7e1d6); background: var(--panel, #fff); color: inherit; cursor: pointer; font: inherit; box-shadow: 0 8px 24px -18px rgba(40,30,10,.35); }
.wn-card b { font-size: 16px; line-height: 1.25; }
.wn-kind { font: 700 10.5px Inter, Manrope, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a6a24; }
.wn-kind.k-setlists { color: #2d6a8a; } .wn-kind.k-choreo, .wn-kind.k-dancesets { color: #a0457a; } .wn-kind.k-presentations { color: #5b4bb5; }
.wn-new { font-style: normal; background: #c9a24d; color: #fff; border-radius: 6px; padding: 2px 6px; margin-left: 4px; letter-spacing: .08em; }
.wn-by { font-size: 12px; color: var(--muted, #888); margin-top: auto; }

/* ===== v0.5 — admin publication editor ===== */
.edit-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; position: sticky; top: 0; z-index: 5; padding: 8px; margin: 0 0 10px; background: var(--panel, #fff); border: 1px solid var(--line, #e5dfd3); border-radius: 12px; box-shadow: 0 8px 20px -16px rgba(0,0,0,.4); }
.edit-tools button { min-width: 38px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line, #e5dfd3); background: var(--bg, #faf8f4); color: inherit; cursor: pointer; font: 600 13px Inter, Manrope, system-ui, sans-serif; }
.edit-tools button:hover { border-color: #c9a24d; }
.edit-tools .muted { margin-left: auto; }
.doc-body.editing { outline: 2px dashed #c9a24d; outline-offset: 6px; border-radius: 6px; cursor: text; min-height: 200px; }
.edit-title { font: 600 26px/1.2 'Cormorant Garamond', Georgia, serif; width: 100%; padding: 6px 10px; border: 1px solid var(--line, #ddd); border-radius: 10px; background: var(--bg, #fff); color: inherit; box-sizing: border-box; }
.edited-tag { color: #8a6a24; }
.toc-head .link-btn { display: block; padding: 4px 0 0; text-align: left; }

/* ===== v0.6 — compact, one-screen charts ===== */
.chords-only { gap: .35em .5em; }
.chords-only .cbar { display: none; }
.ch-solo { padding: .02em .38em; font-size: .86em; line-height: 1.25; }
.chart-sec { margin: 0 0 .55em; padding: .35em .65em .4em; }
.chart-sec header { margin-bottom: .15em; }
.cl { margin-bottom: .08em; }
.cl.blank { min-height: .35em; }
/* sections flow into columns so a whole song fits on one screen */
.live-chart, .song-chart { column-width: 300px; column-gap: 18px; column-fill: balance; }
.live-chart .chart-sec, .song-chart .chart-sec { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; display: inline-block; width: 100%; box-sizing: border-box; }
.live-chart-wrap { padding: 10px 18px 12px; }
.live-song-head { margin-bottom: 2px; align-items: center; }
.live-song-head h1 { font-size: 30px; margin: 0 0 4px; line-height: 1.1; }
.live-song-head .meta-chips .chip { padding: 2px 9px; font-size: 12px; }
.bar-prog { margin: 6px 0 8px; }
.live-grid { grid-template-columns: minmax(0, 1fr) 280px; }
.live-side { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.live-side .card { padding: 10px 12px; margin: 0; }
.live-side .card h3 { margin: 2px 0 4px; font-size: 16px; }
.live-side .eyebrow { margin: 0; }
.live-side .metro { gap: 6px; }
.live-controls { padding: 7px 10px; gap: 8px; }
.live-controls .btn.big { padding: 9px 18px; font-size: 15px; }
.live-top { padding: 6px 14px; }
@media (max-width: 700px) { .live-chart, .song-chart { column-width: auto; columns: 1; } .live-song-head h1 { font-size: 24px; } }
.live-side .metro-row { gap: 6px; } .live-side .metro-beats i { width: 18px; height: 18px; } .live-side .metro .bpm-big, .live-side .metro .bpm { font-size: 30px; }

/* ===== About DOXA & introductions ===== */
.pub-intro { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
.intro-card { border-left: 3px solid #c9a24d; background: var(--panel, #fff); border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; }
.intro-card p { margin: 6px 0 0; line-height: 1.55; }
.about-hero { display: flex; gap: 22px; align-items: center; padding: 20px 24px; }
.about-hero img { width: 120px; height: auto; flex: none; }
.about-hero blockquote { margin: 6px 0 8px; font: italic 500 22px/1.3 'Cormorant Garamond', Georgia, serif; }
.about-hero .slogan { font: 700 12px Inter, Manrope, system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #8a6a24; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 14px 0; }
.about-card p { line-height: 1.6; margin: 6px 0 10px; }
.about-card .eyebrow { display: block; margin-top: 6px; }
.about-card .verse { font-style: italic; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 10px; }
.value { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 12px; background: var(--bg, #faf8f4); border: 1px solid var(--line, #eee); }
.value i { font: 700 12px 'JetBrains Mono', monospace; color: #c9a24d; font-style: normal; } .value span { font-size: 13.5px; line-height: 1.45; } .value small { color: var(--muted); font-size: 12px; }
.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 10px; }
.j-step { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid var(--line, #eee); background: var(--panel, #fff); color: inherit; font: inherit; cursor: pointer; position: relative; }
.j-step i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #c9a24d; color: #fff; font-weight: 800; font-size: 13px; }
.j-step small { color: var(--muted); } .j-step span { font-size: 13.5px; line-height: 1.45; }
.intro-group { margin: 18px 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #8a6a24; }
.intro-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.intro-item { display: flex; gap: 14px; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line, #eee); background: var(--panel, #fff); color: inherit; font: inherit; cursor: pointer; align-items: flex-start; }
.intro-item img { width: 72px; border-radius: 6px; flex: none; box-shadow: 0 6px 16px -10px rgba(0,0,0,.5); }
.intro-item b { display: block; font-size: 17px; margin: 2px 0; } .intro-item p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; }
.open-link { display: inline-block; margin-top: 8px; color: #8a6a24; font-weight: 700; font-size: 13px; }
@media (max-width: 700px) { .about-hero { flex-direction: column; text-align: center; } .intro-list { grid-template-columns: 1fr; } }
.live-top { flex-wrap: nowrap; }
.live-top-l { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; }
.live-top-l select { max-width: 260px; flex: none; }
.live-top .song-tabs { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.live-top-r { flex: none; flex-wrap: nowrap; }
@media (max-width: 700px) { .live-top { flex-wrap: wrap; } .live-top-l { flex-basis: 100%; } }
.wg { display: inline-flex; flex-wrap: nowrap; align-items: flex-end; }
.live-controls .icon-btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.live-controls .sep { display: none; }
.seg .ch.e { padding-right: 0; }

/* ===== scripture versions ===== */
.add-passage h2 { margin: 4px 0 10px; } .add-passage .steps { padding-left: 20px; line-height: 1.9; margin: 0 0 10px; }
.add-passage textarea { width: 100%; box-sizing: border-box; font-size: 15px; line-height: 1.5; }
.link-list.tight li { padding: 5px 0; font-size: 13.5px; }

/* ===== verse of the day ===== */
.daily { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; padding: 22px 24px; margin: 6px 0 14px; background: linear-gradient(135deg, #fffaf0 0%, #fff 60%); border: 1px solid #efe3c9; }
.daily blockquote { margin: 8px 0 10px; font: italic 500 24px/1.35 'Cormorant Garamond', Georgia, serif; color: var(--text, #1b1b22); }
.daily-ref { font: 700 12px Inter, Manrope, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a6a24; }
.daily-r p { margin: 6px 0; line-height: 1.55; font-size: 14.5px; }
.daily details { margin: 6px 0 10px; font-size: 14px; } .daily summary { cursor: pointer; font-weight: 700; color: #8a6a24; }
.daily .btn-row { margin: 8px 0 6px; }
body:not(.light) .daily { background: var(--panel); border-color: var(--line); }
@media (max-width: 760px) { .daily { grid-template-columns: 1fr; gap: 10px; padding: 16px; } .daily blockquote { font-size: 20px; } }

/* ===== simple dance patterns ===== */
.pat-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 3px; }
.pat-list li { display: flex; gap: 8px; font-size: 13.5px; } .pat-list b { min-width: 92px; font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding-top: 1px; }
.pat-card.t-banner { border-top: 3px solid #d0642c; } .pat-card.t-tamb { border-top: 3px solid #c9a24d; }
.collate { display: grid; gap: 10px; margin-top: 10px; }
.col-row { display: grid; grid-template-columns: minmax(160px, .8fr) 1fr 1fr; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line, #eee); border-radius: 12px; background: var(--panel, #fff); }
.col-song { display: flex; gap: 10px; align-items: baseline; } .col-song i { font-style: normal; font-weight: 800; color: var(--muted); } .col-song b { font-size: 16px; }
.col-team { padding: 8px 10px; border-radius: 10px; background: var(--bg, #faf8f4); }
.col-team.t-banner { box-shadow: inset 3px 0 0 #d0642c; } .col-team.t-tamb { box-shadow: inset 3px 0 0 #c9a24d; }
.col-team-h { display: flex; justify-content: space-between; align-items: center; font: 700 11px Inter, Manrope, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.row-actions-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.pat-editor { max-width: 860px; }
.pat-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; } .pat-head .grow { flex: 1 1 260px; } .pat-head .title-in { font-size: 22px; width: 100%; }
.team-seg button.on.t-banner { background: #d0642c; color: #fff; } .team-seg button.on.t-tamb { background: #c9a24d; color: #fff; }
.pat-rows { display: grid; gap: 8px; }
.pat-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pat-row input { padding: 10px 12px; font-size: 15px; border-radius: 10px; }
.pat-sec { font-weight: 700; }
.quick-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.btn-row .grow { flex: 1; }
@media (max-width: 760px) { .col-row { grid-template-columns: 1fr; } .pat-row { grid-template-columns: 1fr auto; } .pat-row .pat-sec { grid-column: 1 / -1; } }

/* ===== multimedia: low-CPU previews, YouTube ===== */
.bg.motion.still, .bg.motion.still * { animation-play-state: paused !important; }
.media-prev { position: relative; } .yt-badge { position: absolute; left: 8px; bottom: 8px; background: #e62117; color: #fff; font: 700 11px Inter, Manrope, system-ui, sans-serif; padding: 3px 7px; border-radius: 5px; font-style: normal; }
.now-media { display: flex; gap: 10px; align-items: center; margin-top: 6px; } .now-media img { width: 96px; border-radius: 6px; }
iframe.d-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* ===== OBS panel ===== */
.obs-card { margin-top: 14px; } .obs-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.obs-dot { width: 10px; height: 10px; border-radius: 50%; background: #bbb; display: inline-block; } .obs-dot.s-on { background: #2fa36b; box-shadow: 0 0 0 4px rgba(47,163,107,.15); } .obs-dot.s-connecting { background: #e0a526; } .obs-dot.s-error { background: #d0453a; }
.obs-scenes { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.obs-form { margin-top: 10px; } .obs-help { margin-top: 10px; font-size: 13.5px; } .obs-help summary { cursor: pointer; font-weight: 700; color: var(--accent); } .obs-help li { margin: 4px 0; line-height: 1.5; }
.pat-editor .back, .page-head .back { display: block; margin-bottom: 4px; }

/* ===== screens ===== */
.screen-rows { display: grid; gap: 8px; margin: 12px 0; }
.screen-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line, #eee); border-radius: 12px; }
.screen-row b { display: block; } .screen-row small { display: block; }
.fs-hint { position: fixed; inset: auto 0 40px 0; margin: auto; width: max-content; max-width: 90vw; z-index: 99999; background: rgba(0,0,0,.78); color: #fff; padding: 14px 22px; border-radius: 14px; text-align: center; font: 600 16px Inter, Manrope, system-ui, sans-serif; display: flex; flex-direction: column; gap: 4px; transition: opacity .6s; }
.fs-hint span { font-size: 12px; opacity: .7; text-transform: uppercase; letter-spacing: .14em; } .fs-hint.fade { opacity: 0; pointer-events: none; }
@media (max-width: 700px) { .screen-row { grid-template-columns: 1fr; } }

/* ===== install apps ===== */
.install-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.install-app { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line, #eee); border-radius: 14px; }
.install-app.here { border-color: #c9a24d; box-shadow: 0 0 0 3px rgba(201,162,77,.18); }
.install-app img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 4px 12px -6px rgba(0,0,0,.35); } .install-app b, .install-app small { display: block; }
.install-steps li { margin: 6px 0; line-height: 1.5; } .kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--line, #ccc); border-radius: 5px; font-size: 12px; }

/* ===== ProPresenter-style Songs & Lyrics ===== */
.pp-songs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.pp-lib { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 120px); overflow: auto; }
.btn.block { width: 100%; justify-content: center; }
.pp-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 8px; }
.pp-head h1 { margin: 0; font-size: 30px; }
.pp-arr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: var(--panel, #fff); border: 1px solid var(--line, #eee); border-radius: 12px; margin-bottom: 8px; }
.arr-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.arr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; font: 800 12px 'JetBrains Mono', monospace; color: #fff; background: var(--k-other); cursor: grab; user-select: none; }
.arr-chip small { font: 600 11px Inter, Manrope, system-ui, sans-serif; opacity: .9; } .arr-chip i { font-style: normal; cursor: pointer; opacity: .75; padding-left: 2px; } .arr-chip i:hover { opacity: 1; }
.arr-chip.k-verse { background: var(--k-verse); } .arr-chip.k-chorus { background: #d99a2b; } .arr-chip.k-prechorus { background: var(--k-prechorus); } .arr-chip.k-bridge { background: var(--k-bridge); } .arr-chip.k-tag { background: var(--k-tag); } .arr-chip.k-instrumental, .arr-chip.k-interlude { background: var(--k-instrumental); }
.pp-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 4px 0 10px; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pp-group { grid-column: 1 / -1; font: 800 11px Inter, Manrope, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; padding: 6px 0 0; border-bottom: 2px solid var(--k-other); color: var(--muted); }
.pp-group.k-verse { border-color: var(--k-verse); } .pp-group.k-chorus { border-color: #d99a2b; } .pp-group.k-prechorus { border-color: var(--k-prechorus); } .pp-group.k-bridge { border-color: var(--k-bridge); } .pp-group.k-tag { border-color: var(--k-tag); }
.pp-slide { padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--panel, #fff); overflow: hidden; cursor: pointer; text-align: left; box-shadow: 0 6px 16px -12px rgba(0,0,0,.5); font: inherit; color: inherit; }
.pp-slide:hover { border-color: var(--accent); } .pp-slide .mon { border-radius: 0; }
.pp-slide .lbl { display: flex; gap: 6px; align-items: center; padding: 5px 8px; font-size: 12px; font-weight: 600; border-top: 3px solid var(--k-other); }
.pp-slide.k-verse .lbl { border-color: var(--k-verse); } .pp-slide.k-chorus .lbl { border-color: #d99a2b; } .pp-slide.k-prechorus .lbl { border-color: var(--k-prechorus); } .pp-slide.k-bridge .lbl { border-color: var(--k-bridge); } .pp-slide.k-tag .lbl { border-color: var(--k-tag); }
.pp-slide .lbl i { font-style: normal; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.pp-edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; margin-top: 8px; }
.pp-lyrics { width: 100%; box-sizing: border-box; min-height: 56vh; font: 15px/1.55 'JetBrains Mono', ui-monospace, monospace; padding: 14px; border-radius: 12px; }
.pp-help ul { padding-left: 18px; font-size: 13.5px; line-height: 1.5; } .pp-help li { margin: 5px 0; }
@media (max-width: 900px) { .pp-songs { grid-template-columns: 1fr; } .pp-lib { position: static; max-height: 260px; } .pp-edit-grid { grid-template-columns: 1fr; } }
.free-bibles { display: grid; gap: 4px; margin: 6px 0 8px; } .fb-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; padding: 3px 0; border-bottom: 1px dashed var(--line, #eee); }
.pp-slide .lbl.first { font-weight: 800; }
.pp-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.install-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg, #f3efe8); margin-bottom: 8px; }
.seg-b { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font: 600 14px Inter, Manrope, system-ui, sans-serif; cursor: pointer; color: inherit; }
.seg-b.on { background: var(--panel, #fff); box-shadow: 0 2px 8px -4px rgba(0,0,0,.3); }
.install-steps.big { font-size: 15.5px; padding-left: 22px; } .install-steps.big li { margin: 10px 0; }
.install-more { margin-top: 12px; font-size: 14px; } .install-more summary { cursor: pointer; font-weight: 700; color: var(--accent); }

/* ===== add-to-home-screen banner ===== */
.install-banner { position: fixed; left: 10px; right: 10px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 950; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; background: #fff; color: #1b1b22; border: 1px solid #efe3c9; border-radius: 16px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.45); }
.install-banner img { width: 40px; height: 40px; border-radius: 10px; } .install-banner b, .install-banner span { display: block; } .install-banner span { font-size: 12.5px; color: #777; }
body.locked .install-banner { bottom: calc(14px + env(safe-area-inset-bottom)); }
.login-card .btn:not(.primary) { width: 100%; justify-content: center; }
.sync-card { margin-bottom: 14px; } .code-ta { width: 100%; box-sizing: border-box; font: 12.5px/1.45 'JetBrains Mono', ui-monospace, monospace; }
.pill.warn i { background: #e0a526; }

/* ===== v1.1 — compact chords-only, pages, setlist navigation ===== */
.chords-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .25em .3em; line-height: 1.35; }
.chords-flow .cg { display: inline-flex; flex-wrap: wrap; gap: .3em; }
.chords-flow .cb { font-style: normal; color: var(--muted); opacity: .45; padding: 0 .15em; font-weight: 300; }
.chords-flow .ch-solo { font-size: .95em; padding: .06em .42em; }
.mode-chords .chart-sec { padding: .3em .6em .35em; margin-bottom: .4em; }
.mode-chords.live-chart, .mode-chords.song-chart { column-width: 240px; }
.live-chart.pages-1, .song-chart.pages-1 { columns: 1 !important; column-width: auto !important; }
.live-chart.pages-2, .song-chart.pages-2 { columns: 2 !important; column-width: auto !important; column-gap: 26px; column-rule: 1px dashed var(--line, #e5ded0); }
.btn.to-song { background: linear-gradient(135deg, #c9a24d, #a8792a); border-color: transparent; }
.set-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 8px 10px; margin: 8px 0; }
.set-nav .btn { justify-content: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .set-nav .btn:last-child { justify-self: end; } .set-nav .btn:first-child { justify-self: start; }
.set-nav-mid { text-align: center; display: flex; flex-direction: column; } .si-open { cursor: pointer; text-decoration: none; color: inherit; } .si-open:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 700px) { .set-nav { grid-template-columns: 1fr 1fr; } .set-nav-mid { grid-column: 1 / -1; order: -1; } }

/* ===== chord-sheet bars & YouTube reference ===== */
.cl.bars { display: flex; flex-wrap: wrap; align-items: center; gap: .22em .28em; margin-bottom: .18em; }
.cl.bars .sep { font-style: normal; color: var(--muted); font-weight: 400; padding: 0 .05em; }
.cl.bars .sep.sl { opacity: .8; margin: 0 -.12em; } .cl.bars .sep.hold { letter-spacing: -.1em; opacity: .55; }
.cl.bars .rep { font: 800 .72em Inter, Manrope, system-ui, sans-serif; color: #fff; background: var(--accent); border-radius: 6px; padding: .1em .45em; margin-left: .3em; }
.yt-ref { display: inline-flex; align-items: center; gap: 8px; } .yt-ref img { width: 64px; height: 36px; object-fit: cover; border-radius: 5px; }
.yt-modal iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; }

/* ===== v1.4 phone fixes: solid side menu above content, compact status dot ===== */
@media (max-width: 900px) {
  .sidebar, body.light .sidebar { background: #fbf9f5; z-index: 960; -webkit-backdrop-filter: none; backdrop-filter: none; top: 0; padding-top: calc(env(safe-area-inset-top) + 64px); }
  body:not(.light) .sidebar { background: #15151b; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(15, 12, 8, .38); z-index: 950; }
  body.nav-open .topbar { position: relative; z-index: 970; }
  .pill#sync-pill { flex: 0 0 auto; width: 30px; height: 30px; max-width: 30px; padding: 0; display: inline-grid; place-items: center; overflow: hidden; cursor: pointer; }
  .main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* ===== v1.4 Live Mode: persistent performance toolbar, no horizontal overflow, high contrast ===== */
.perf-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 7px 14px; background: var(--bg2); border-bottom: 1px solid var(--line); }
body.light .perf-bar { background: #fbf9f6; }
.perf-bar .pb-title { font-weight: 700; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf-bar .pb-key { font-size: 13px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line2); white-space: nowrap; }
.perf-bar .pb-key b { color: var(--accent); }
.perf-bar .pb-grp { display: inline-flex; gap: 4px; align-items: center; }
.perf-bar select { padding: 4px 6px; font-size: 13px; min-height: 30px; width: auto; }
.perf-bar .seg-ctl button { padding: 4px 9px; font-size: 12.5px; }
.perf-bar .icon-btn { width: 32px; height: 32px; }
.perf-bar .icon-btn.on, .perf-bar .btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.live-controls .nav-key { font-weight: 700; padding: 0 6px; white-space: nowrap; }
/* full chords and lyrics: wrap, never cut off or scroll sideways */
.live-chart-wrap { overflow-x: hidden; }
.live-chart-wrap .chart, .live-chart-wrap .chart-sec { max-width: 100%; min-width: 0; }
.live-chart-wrap .cl, .live-chart-wrap .chords-flow { flex-wrap: wrap; max-width: 100%; }
.live-chart-wrap .wg { max-width: 100%; }
/* high contrast stage view */
.live-grid.hc .live-chart-wrap { background: #000; color: #fff; }
.live-grid.hc .live-chart-wrap .ch, .live-grid.hc .live-chart-wrap .ch-solo, .live-grid.hc .live-chart-wrap .cg { color: #ffd54a !important; font-weight: 800; }
.live-grid.hc .live-chart-wrap .chart-sec { border-color: #444; background: transparent; }
.live-grid.hc .live-chart-wrap .chart-sec.active { outline: 2px solid #ffd54a; }
@media (max-width: 900px) {
  .perf-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px 8px; gap: 6px; scrollbar-width: none; }
  .perf-bar::-webkit-scrollbar { display: none; }
  .perf-bar > * { flex: none; }
  .perf-bar .pb-title { max-width: 14ch; font-size: 14px; }
  .live-grid { overflow-x: hidden; }
}

/* ===== v1.5 Musicians Mode: chords only, everything else in a "More" dropdown, Prev/Next pinned at the bottom ===== */
.mm-head { display: none; }
body.mus-mode .mm-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--bg2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 25; }
body.light.mus-mode .mm-head { background: #fbf9f6; }
.mm-title { font-weight: 800; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-key { font-weight: 800; color: var(--accent); white-space: nowrap; }
.mm-sec { font-size: 12px; color: var(--muted); white-space: nowrap; }
body.mus-mode .topbar, body.mus-mode .app-switch, body.mus-mode .sidebar, body.mus-mode .install-banner { display: none !important; }
body.mus-mode #app { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) !important; }
body.mus-mode .main { padding: 0 !important; }
body.mus-mode .live-song-head, body.mus-mode .bar-prog, body.mus-mode .live-side, body.mus-mode .nav-key { display: none !important; }
body.mus-mode:not(.mm-open) .live-top, body.mus-mode:not(.mm-open) .perf-bar { display: none !important; }
body.mus-mode.mm-open .live-top, body.mus-mode.mm-open .perf-bar { position: static; }
body.mus-mode .live-grid { display: block; }
body.mus-mode .live-chart-wrap { padding: 8px 10px calc(84px + env(safe-area-inset-bottom)); overflow-x: hidden; }
body.mus-mode .live-controls { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0 !important; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 6px; flex-wrap: nowrap; justify-content: stretch; overflow: visible; }
body.mus-mode .live-controls .lc-btns .btn { flex: 1 1 0; min-width: 0; height: 52px; font-size: 16px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.mus-mode .live-controls .btn.big { flex: 1.5 1 0; }

/* Musicians Mode: always 2 columns, compact chord boxes so both columns fit on a phone */
body.mus-mode .live-chart.pages-2 { column-gap: 12px; }
body.mus-mode .live-chart .chart-sec { break-inside: avoid; padding: 6px 8px; margin-bottom: 8px; }
@media (max-width: 700px) {
  body.mus-mode .live-chart .ch-solo, body.mus-mode .live-chart .ch { padding: 1px 4px; }
  body.mus-mode .live-chart .sep { margin: 0 1px; }
  body.mus-mode .live-chart-wrap { padding-left: 6px; padding-right: 6px; }
}
body.mus-mode .live-chart .chart-sec { opacity: .72; } body.mus-mode .live-chart .chart-sec.active { opacity: 1; }
body.mus-mode .live-chart-wrap { height: calc(100vh - 46px); height: calc(100dvh - 46px); overflow-y: auto !important; overflow-x: hidden !important; }
body.mus-mode.mm-open .live-chart-wrap { height: auto; }
body.mus-mode .live-chart .cl.bars > .sep.bar:first-child, body.mus-mode .live-chart .cl.bars > .sep.bar:last-child { display: none; }
body.mus-mode .live-chart .chords-flow > .cb { display: none; } body.mus-mode .live-chart .chords-flow { row-gap: 4px; } body.mus-mode .live-chart .chords-flow > .cg { margin-right: .5em; }
/* Musicians Mode: tighter dashes and boxes so a whole chord line fits one row in a column */
body.mus-mode .live-chart .cl.bars { gap: .15em .12em; flex-wrap: nowrap; }
body.mus-mode .live-chart .cl.bars .sep { font-size: .75em; padding: 0; }
body.mus-mode .live-chart .cl.bars .ch-solo { padding: .02em .22em; }
body.mus-mode .live-chart .cl.bars .rep { margin-left: .15em; padding: .1em .3em; }
/* ===== v1.5 section annotations + Musicians Mode column choice ===== */
.sec-ann { display: inline-flex; align-items: center; gap: 3px; font: 700 12px/1.2 var(--ui), system-ui, sans-serif; padding: 2px 8px; border-radius: 99px; margin-left: 6px; letter-spacing: 0; text-transform: none; border: 1px solid transparent; white-space: normal; }
.sec-ann.c-gold { background: #fff3d6; color: #8a5a00; border-color: #f0d9a3; }
.sec-ann.c-red { background: #ffe1df; color: #a3271d; border-color: #f5b9b3; }
.sec-ann.c-blue { background: #dfeeff; color: #1c4f8f; border-color: #b6d3f5; }
.sec-ann.c-green { background: #dff5e4; color: #1d6b33; border-color: #b3e0bf; }
.sec-ann.band { box-shadow: inset 0 0 0 1px currentColor; }
.chart-sec header { flex-wrap: wrap; row-gap: 4px; }
.live-chart .chart-sec .sec-ann { opacity: 1; }
.ann-add { margin-left: auto; font: 700 12px Inter, Manrope, system-ui, sans-serif; padding: 3px 10px; border-radius: 99px; border: 1.5px dashed var(--accent); color: var(--accent); background: transparent; cursor: pointer; }
.live-chart.annotating .chart-sec { opacity: 1 !important; }
.ann-scope { margin-bottom: 10px; }
.ann-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .ann-quick .chip { cursor: pointer; }
.ann-colors { display: flex; gap: 10px; margin-top: 8px; }
.ann-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.ann-dot.c-gold { background: #e3b45c; } .ann-dot.c-red { background: #e0574b; } .ann-dot.c-blue { background: #4a8ad8; } .ann-dot.c-green { background: #3fa85f; }
.ann-dot.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg); }
.mm-cols button { padding: 4px 8px; font-size: 12px; }
body.mus-mode .mm-head .btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 480px) { .mm-head { gap: 5px; padding: 6px 6px; } .mm-sec { display: none; } .mm-head .btn.sm { padding: 5px 8px; } }
/* ===== v1.5 Faith reader: clean, book-like reading (no slide boxes, logos or banners) ===== */
.doc-body.clean { background: transparent; border: 0; border-radius: 0; padding: 4px 2px 10px; max-width: 70ch; line-height: 1.72; }
.doc-body.clean.paper { background: transparent; }
.doc-body.clean p.lead { font-size: 1.08em; color: var(--muted); font-style: italic; margin-bottom: .5em; }
.doc-body.clean .in-this { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; margin: 0 0 1.2em; }
.doc-body.clean .in-this span { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; color: var(--accent); margin-right: 4px; }
.doc-body.clean .in-this i { font-style: normal; padding: 3px 10px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); }
.doc-body.clean .tbl-block { margin: 1em 0; }
.doc-body.clean table table, .doc-body.clean.paper table table { background: transparent; border: 0; border-left: 3px solid var(--line); border-radius: 0; }
.doc-body.clean table table table, .doc-body.clean.paper table table table { background: transparent; }
.doc-body.clean td { padding: 4px 12px 4px 0; }
.doc-body.clean p > strong:only-child { display: block; font-weight: 700; color: var(--text); margin-top: .9em; }
.doc-body.clean img { max-height: 300px; border-radius: 10px; }
.reader-bar h1 { font-size: 30px; line-height: 1.15; }
.reader-bar .btn-row .icon-btn { width: 34px; height: 34px; }
.reader-toc .toc-fold > summary { list-style: none; cursor: pointer; display: none; }
.reader-toc .toc-fold > summary::-webkit-details-marker { display: none; }
@media (max-width: 900px) {
  .reader-toc { max-height: none !important; }
  .reader-toc .toc-fold > summary { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
  .reader-toc .toc-fold > summary { position: relative; padding-right: 70px; }
  .reader-toc .toc-fold > summary::after { content: 'Show ▾'; position: absolute; right: 12px; top: 14px; font-size: 12px; font-weight: 700; color: var(--accent); }
  .reader-toc .toc-fold[open] > summary::after { content: 'Hide ▴'; }
  .reader-toc .toc-fold .toc-head { display: none; }
  .reader-toc .toc-fold[open] .toc { max-height: 46vh; overflow: auto; }
  .reader-bar h1 { font-size: 24px; }
  .reader-bar .btn-row { gap: 6px; }
  .doc-body.clean { padding: 2px 0 10px; }
}
.my-progress .mp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0 12px; }
.my-progress .mp-stats div { display: flex; flex-direction: column; } .my-progress .mp-stats b { font-size: 24px; font-family: var(--serif); } .my-progress .mp-stats span { font-size: 12px; color: var(--muted); }
.mp-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 44px; gap: 10px; align-items: center; width: 100%; background: none; border: 0; border-top: 1px solid var(--line); padding: 8px 0; text-align: left; cursor: pointer; color: var(--text); font: inherit; }
.mp-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mp-row b { text-align: right; font-size: 13px; }
@media (max-width: 600px) { .my-progress .mp-stats { grid-template-columns: repeat(2, 1fr); } .mp-row { grid-template-columns: minmax(0, 1fr) 70px 40px; } }
.reader-toc .toc-fold[open] { display: flex; flex-direction: column; gap: 6px; }

/* ===== v1.6 typography, spacing and centering polish ===== */
html, body { font-size: 15px; line-height: 1.5; text-rendering: optimizeLegibility; font-feature-settings: 'cv11', 'ss01'; }
h1, h2, h3, h4 { line-height: 1.2; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.01em; }
h2 { font-size: 20px; } h3 { font-size: 16.5px; }
.main > .view { max-width: 1240px; margin: 0 auto; }
.main.live-main > .view, .main.operator-main > .view, .main.editor-main > .view { max-width: none; }
.page-head { align-items: center; margin-bottom: 22px; row-gap: 12px; }
.page-head p.muted { margin: 4px 0 0; font-size: 14.5px; max-width: 62ch; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card { padding: 20px; border-radius: 16px; }
.card h3 { margin-bottom: 10px; }
.btn { min-height: 38px; justify-content: center; }
.btn.sm { min-height: 32px; }
.eyebrow { letter-spacing: .14em; }
.muted { line-height: 1.5; }
.stats { gap: 12px; }
.grid-2, .grid-3 { gap: 16px; }
p { line-height: 1.6; }
@media (max-width: 700px) {
  .main { padding: 18px 14px 110px; }
  .page-head { flex-direction: column; align-items: stretch; text-align: left; }
  .page-head .head-actions { justify-content: flex-start; }
  .card { padding: 16px; }
}

/* ===== v1.6 simple Home ===== */
.home-simple { text-align: center; padding: 26px 10px 18px; }
.home-simple .hs-logo { width: 64px; height: 64px; object-fit: contain; margin-bottom: 10px; }
.home-simple h1 { margin: 0; font-size: clamp(28px, 5vw, 38px); }
.home-simple p { margin: 6px 0 0; }
.home-apps.simple { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 980px; margin: 8px auto 18px; }
.home-apps.simple .home-app { min-height: 0; padding: 18px 16px; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.home-apps.simple .ha-name { font: 600 22px/1.15 var(--serif); letter-spacing: 0; text-transform: none; }
.home-apps.simple .ha-desc { font-size: 13px; opacity: .85; }
.home-apps.simple .home-app.last { outline: 2px solid var(--accent); outline-offset: 2px; }
.home-strip.simple { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 980px; margin: 0 auto 16px; }
.home-strip.simple .card { text-align: left; display: flex; flex-direction: column; gap: 3px; margin: 0; cursor: pointer; font: inherit; color: inherit; }
.home-strip.simple .card.live { border-color: #e0574b; }
.daily.card.simple { display: block; max-width: 980px; margin: 0 auto 16px; text-align: center; }
.daily.simple blockquote { font: 500 clamp(18px, 2.4vw, 22px)/1.45 var(--serif); margin: 8px auto; max-width: 52ch; }
.daily.simple details { margin: 8px auto 0; max-width: 60ch; text-align: left; }
.daily.simple details summary { cursor: pointer; text-align: center; color: var(--accent); font-weight: 700; font-size: 13px; }
.daily.simple .btn-row { justify-content: center; margin-top: 10px; }
.home-links { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; align-items: center; color: var(--muted); font-size: 13px; margin: 6px 0 4px; }
.home-links .link-btn.on { color: var(--accent); font-weight: 800; }
.home-foot { text-align: center; }
@media (max-width: 760px) {
  .home-apps.simple { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-apps.simple .home-app { padding: 14px 12px; }
  .home-apps.simple .ha-name { font-size: 19px; }
  .home-simple { padding: 14px 6px 12px; }
}
.home-apps.simple .ha-art { height: 46px; margin: -18px -16px 8px; } @media (max-width: 760px) { .home-apps.simple .ha-art { height: 34px; margin: -14px -12px 6px; } }

/* ===== v1.6 friendly dropdowns: picker over a dark see-through backdrop ===== */
select:not([multiple]) { cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 30px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a07a2c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 12px 8px; }
.pick-wrap { position: fixed; inset: 0; z-index: 3000; background: rgba(12, 10, 16, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: pick-fade .15s ease-out; }
.pick-sheet { position: absolute; display: flex; flex-direction: column; background: var(--panel, #fff); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; max-height: 70vh; animation: pick-pop .16s ease-out; }
body:not(.light) .pick-sheet { background: #1d1d24; }
.pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 8px; }
.pick-head b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pick-q { margin: 0 12px 8px; width: auto; }
.pick-list { overflow: auto; padding: 4px 8px 10px; -webkit-overflow-scrolling: touch; }
.pick-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 12px 12px; border: 0; border-radius: 10px; background: none; color: inherit; font: 500 15px/1.3 var(--ui); cursor: pointer; }
.pick-opt:hover, .pick-opt:focus-visible { background: var(--bg2); outline: none; }
.pick-opt.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; }
.pick-opt i { font-style: normal; font-weight: 800; }
.pick-opt[disabled] { opacity: .45; cursor: default; }
.pick-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) {
  .pick-sheet { left: 0; right: 0; bottom: 0; border-radius: 20px 20px 0 0; max-height: 75vh; padding-bottom: env(safe-area-inset-bottom); animation: pick-up .2s ease-out; }
  .pick-sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line2, #ccc); margin: 8px auto 0; }
  .pick-opt { padding: 14px 14px; font-size: 16px; }
}
@keyframes pick-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pick-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pick-up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
/* same dark backdrop for the side menu and pop-up windows */
body.nav-open::after { background: rgba(12, 10, 16, .55) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-wrap { background: rgba(12, 10, 16, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* Musicians Mode "More" dropdown: darken the chords behind it */
body.mus-mode.mm-open .live-grid { filter: brightness(.55); }
/* ===== v1.6 Members database & Access groups ===== */
.db-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.db-tools input[type=search] { flex: 1 1 240px; min-width: 0; }
.db-tools select { width: auto; }
.db-tools .grow { flex: 1 1 0; }
.ppl.db td { vertical-align: middle; }
.db-name { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.db-name > span:last-child { display: flex; flex-direction: column; } .db-name small { font-size: 12px; }
.code-dots { letter-spacing: .2em; font-weight: 800; color: var(--muted); }
.me-av.lg { width: 48px; height: 48px; font-size: 17px; }
.prof-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; } .prof-head > div { display: flex; flex-direction: column; }
.min-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 99px; cursor: pointer; font-size: 13px; }
.chip-check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 700; }
.chip-check input { accent-color: var(--accent); }
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ag-card { border-top: 4px solid var(--ag, #e3b45c); margin: 0; }
.ag-card.c-gold { --ag: #e3b45c; } .ag-card.c-blue { --ag: #4a8ad8; } .ag-card.c-red { --ag: #e0574b; } .ag-card.c-green { --ag: #3fa85f; } .ag-card.c-purple { --ag: #8b5cf6; }
.ag-perms { width: 100%; margin-top: 12px; border-collapse: collapse; }
.ag-perms td { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; } .ag-perms td:last-child { text-align: right; }
.ag-perms .seg-ctl button { padding: 5px 14px; }
.ag-new { display: grid; place-items: center; min-height: 160px; border: 2px dashed var(--line2); background: transparent; color: var(--accent); font-weight: 800; font-size: 15px; cursor: pointer; margin: 0; }
.ag-pick { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
@media (max-width: 700px) {
  .ppl.db thead { display: none; }
  .ppl.db tr { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ppl.db td { padding: 0; border: 0; }
  .ppl.db td select { width: 100%; }
  .ppl.db .ppl-act { display: flex; flex-wrap: wrap; gap: 6px; }
  .db-tools select { flex: 1 1 45%; }
}

/* ===== v1.7 DOXA MultiMedia studio look (dark, purple → olive glow, lime "on air") ===== */
body[data-app="stage"] { --bg: #111114; --bg2: #17171b; --panel: #1c1c21; --panel2: #24242a; --line: #2b2b33; --line2: #393943; --text: #eeedf3; --muted: #9c9aa8; --accent: #b79cff; --accent-ink: #160d2b; --onair: #b6e35a; }
body[data-app="stage"] .topbar { background: linear-gradient(90deg, #3a1f3f 0%, #2a1d33 40%, #2b2c1c 100%) !important; border-bottom-color: #2f2a36; }
body[data-app="stage"] .sidebar { background: #141418; }
body[data-app="stage"] .btn.primary { background: #f4f2f8; color: #141418; border-color: #f4f2f8; }
body[data-app="stage"] .btn.primary:hover { background: #fff; }
body[data-app="stage"] .card { background: #1a1a1f; border-color: #2a2a31; }
body[data-app="stage"] .app-switch { background: rgba(20, 20, 24, .94); }
.studio { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.main.operator-main { padding: 0 !important; overflow: hidden; }
.main.operator-main > .view { height: 100%; }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; height: 48px; flex: none; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(110,52,120,.28), rgba(60,40,80,.18) 45%, rgba(110,120,40,.2)); }
.st-modes { display: flex; height: 100%; }
.st-modes button { background: none; border: 0; color: var(--muted); font: 600 14px var(--ui); padding: 0 16px; height: 100%; cursor: pointer; border-bottom: 2px solid transparent; }
.st-modes button.on { color: var(--text); border-bottom-color: var(--onair); background: rgba(255,255,255,.04); }
.st-modes button:disabled { opacity: .4; cursor: default; }
.st-top-r { display: flex; align-items: center; gap: 10px; }
.st-onair { display: inline-flex; align-items: center; gap: 6px; font: 800 11px var(--ui); letter-spacing: .14em; color: var(--muted); }
.st-onair i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.st-onair.on { color: var(--onair); } .st-onair.on i { background: var(--onair); box-shadow: 0 0 10px var(--onair); }
.studio-grid { flex: 1; min-height: 0; grid-template-columns: 250px minmax(0, 1fr) 340px !important; gap: 0; }
.studio-grid > aside, .studio-grid > section { min-height: 0; overflow: auto; }
.studio-grid .op-left { border-right: 1px solid var(--line); background: #141418; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.studio-grid .op-right { border-left: 1px solid var(--line); background: #141418; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.studio-grid .op-center { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.st-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-panel-h b { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.st-panel-h .dot, .st-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.st-panel-h .dot.on, .st-status .dot.on { background: var(--onair); box-shadow: 0 0 8px var(--onair); }
.st-sub { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; } .st-sub span { margin-left: 4px; opacity: .8; }
.studio .op-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; }
.studio .op-item .t { display: flex; flex-direction: column; min-width: 0; flex: 1; } .studio .op-item .t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .studio .op-item .t small { color: var(--muted); font-size: 12px; }
.studio .op-item.on { background: #23232a; border-color: #3b3b45; box-shadow: inset 3px 0 0 var(--accent); }
.studio .op-item.is-live { box-shadow: inset 3px 0 0 var(--onair); }
.studio .op-item .k { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #26262d; flex: none; }
.studio .op-item .x { opacity: 0; background: none; border: 0; color: var(--muted); cursor: pointer; } .studio .op-item:hover .x { opacity: 1; }
.studio .op-center-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.studio .op-center-head h2 { font: 700 24px/1.2 var(--ui); margin: 2px 0 0; }
.st-bar { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.st-bar .grow, .dock-tabs .grow { flex: 1; }
.studio .op-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.studio .op-slide { padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid #2c2c34; background: #1b1b20; text-align: left; position: relative; display: flex; flex-direction: column; }
.studio .op-slide .mon { border-radius: 0; border: 0; }
.studio .op-slide .lbl { padding: 8px 10px; font-size: 13px; color: var(--text); } .studio .op-slide .lbl b { color: var(--muted); margin-right: 6px; font-weight: 600; }
.studio .op-slide .otxt { display: none; }
.studio .op-slide.live { border-color: var(--onair); box-shadow: 0 0 0 2px var(--onair); }
.studio .op-slide.live::after { content: 'LIVE'; position: absolute; top: 8px; right: 8px; font: 800 10px var(--ui); letter-spacing: .12em; color: var(--onair); border: 1px solid var(--onair); background: rgba(0,0,0,.55); border-radius: 5px; padding: 2px 6px; }
.studio .op-slide.next { box-shadow: inset 3px 0 0 var(--accent); }
.studio .op-slides.as-list { grid-template-columns: 1fr; gap: 6px; }
.studio .op-slides.as-list .op-slide { flex-direction: row; align-items: center; }
.studio .op-slides.as-list .op-slide .mon { width: 120px; flex: none; }
.studio .op-slides.as-list .op-slide .otxt { display: block; color: var(--muted); font-size: 13px; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.st-go { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; }
.st-go .icon-btn { width: 44px; height: 44px; font-size: 22px; }
.st-golive { height: 44px; background: #f4f2f8 !important; color: #141418 !important; border-color: #f4f2f8 !important; font-weight: 800; font-size: 15px; }
.st-trans { display: flex; flex-direction: column; gap: 4px; } .st-trans span { font-size: 12px; color: var(--muted); }
.st-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st-3 .btn { padding: 8px 4px; }
.st-3 .btn.on { background: #2f2f37; border-color: var(--onair); color: var(--onair); }
.danger-text { color: #ff8a7a !important; }
.st-msg { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; } .st-msg input { min-width: 0; }
.st-more { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.studio .mon-wrap { margin: 0; } .studio .mon-label { margin-top: 4px; font-size: 12px; color: var(--muted); }
.op-dock { flex: none; border-top: 1px solid var(--line); background: #15151a; }
.dock-tabs { display: flex; align-items: center; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.dock-tabs button[data-dock] { background: none; border: 0; color: var(--muted); font: 600 13.5px var(--ui); padding: 11px 14px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.dock-tabs button[data-dock].on { color: var(--text); border-bottom-color: var(--onair); }
.dock-tabs input[type=search] { width: 220px; max-width: 40vw; margin: 6px 4px; }
.dock-body { max-height: 210px; overflow: auto; padding: 6px 12px 10px; }
.dock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 6px; border-bottom: 1px solid #23232a; }
.dock-row:hover { background: rgba(255,255,255,.03); }
.dr-t { display: flex; flex-direction: column; min-width: 0; } .dr-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dr-t small { color: var(--muted); font-size: 12px; }
.dr-b { display: flex; gap: 6px; flex: none; }
.dock-scr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; } .dock-scr input { flex: 1 1 260px; } .dock-scr select { width: auto; }
.dock-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 6px 0; }
.dock-theme { background: none; border: 1px solid #2c2c34; border-radius: 10px; padding: 0 0 6px; overflow: hidden; cursor: pointer; color: var(--text); text-align: left; }
.dock-theme .mon { display: block; border: 0; border-radius: 0; margin-bottom: 6px; } .dock-theme b { padding: 0 8px; font-size: 12.5px; font-weight: 600; }
.dock-theme.on { border-color: var(--onair); box-shadow: 0 0 0 1px var(--onair); }
.st-status { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); background: linear-gradient(90deg, rgba(110,52,120,.25), rgba(30,30,36,.6) 50%, rgba(110,120,40,.22)); }
.st-status span:first-child { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1100px) { .studio-grid { grid-template-columns: 210px minmax(0, 1fr) 300px !important; } .st-status .keys { display: none; } }
@media (max-width: 900px) {
  .main.operator-main { overflow: auto; } .studio { height: auto; }
  .studio-grid { display: flex !important; flex-direction: column; }
  .studio-grid > aside, .studio-grid > section { overflow: visible; }
  .studio-grid .op-right { order: -1; border-left: 0; border-bottom: 1px solid var(--line); }
  .studio-grid .op-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .studio-grid .op-left .op-items { max-height: 220px; overflow: auto; }
  .studio .op-slides { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .st-modes button { padding: 0 10px; font-size: 13px; }
  .op-dock { margin-bottom: 80px; } .st-status { display: none; }
}
/* ===== v1.7 Musicians Mode navigation: colored section pads + big Previous / Next ===== */
.mm-pads { display: none; }
body.mus-mode .live-controls { flex-direction: column; align-items: stretch; gap: 8px; }

body.mus-mode .live-controls .mm-pads { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; -webkit-overflow-scrolling: touch; }
body.mus-mode .live-controls .mm-pads::-webkit-scrollbar { display: none; }
.mm-pad { flex: none; border: 0; border-radius: 12px; padding: 10px 14px; font: 700 13.5px var(--ui); color: #15130f; background: var(--k, #8a8f98); cursor: pointer; white-space: nowrap; opacity: .9; }
.mm-pad.k-intro, .mm-pad.k-outro { --k: #6aa9f0; } .mm-pad.k-verse { --k: #5fc77a; } .mm-pad.k-prechorus { --k: #f08a3c; } .mm-pad.k-chorus { --k: #f2c94c; }
.mm-pad.k-bridge { --k: #a77bf3; color: #fff; } .mm-pad.k-tag { --k: #ec5fa8; color: #fff; } .mm-pad.k-instrumental, .mm-pad.k-interlude { --k: #4fc1b8; } .mm-pad.k-other { --k: #b9b4a8; }
.mm-pad.k-next { --k: #ec5fa8; color: #fff; }
.mm-pad.done { opacity: .55; }
.mm-pad.on { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--k); transform: translateY(-1px); }
.mm-title { display: flex; flex-direction: column; min-width: 0; } .mm-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mm-title small { font-size: 11.5px; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-yt { color: #e62117; }
.live-artist { margin: 2px 0 6px; color: var(--muted); font-size: 14px; }
.pb-title small { color: var(--muted); font-weight: 500; }
.si-prev { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; } .si-prev img { width: 120px; border-radius: 8px; }
.lc-btns { display: contents; }
body.mus-mode .lc-btns { display: flex; gap: 6px; }
body.mus-mode .live-chart-wrap { padding-bottom: calc(140px + env(safe-area-inset-bottom)) !important; }
body.mus-mode .live-chart-wrap { height: calc(100vh - 46px - 0px); height: calc(100dvh - 46px); }
@media (max-width: 480px) { .mm-head .lg { display: none; } .mm-head [data-a="sinfo"] { display: none; } .mm-head .icon-btn { width: 32px; height: 32px; } .mm-cols button { padding: 4px 9px; } .mm-title b { font-size: 14px; } }
@media (max-width: 900px) { .studio-grid .op-left .op-items { flex: none; min-height: 60px; } .studio-grid .op-left { gap: 8px; } }
@media (max-width: 900px) { .studio-grid > aside, .studio-grid > section { height: auto !important; max-height: none !important; flex: none !important; } }
body[data-app="stage"] #theme-toggle { display: none; }

/* ===== v1.8 Studio look for the whole suite (dark is the default; Light stays available) ===== */
body:not(.light) { --bg: #111114; --bg2: #17171b; --panel: #1c1c21; --panel2: #24242a; --line: #2b2b33; --line2: #393943; --text: #eeedf3; --muted: #9c9aa8; --dim: #6f6d79; --onair: #b6e35a; }
body:not(.light)[data-app="home"] { --accent: #e9a35a; --accent-ink: #1c1006; }
body:not(.light)[data-app="music"] { --accent: #f2c14e; --accent-ink: #1c1405; }
body:not(.light)[data-app="formation"] { --accent: #b79cff; }
body:not(.light) .topbar { background: linear-gradient(90deg, #3a1f3f 0%, #2a1d33 40%, #2b2c1c 100%) !important; border-bottom: 1px solid #2f2a36 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
body:not(.light) .sidebar { background: #141418; border-right-color: #24242b; }
body:not(.light) .card, body:not(.light) .stat, body:not(.light) .note-box { background: #1a1a1f; border-color: #2a2a31; }
body:not(.light) .btn { background: #202027; border-color: #33333c; color: var(--text); }
body:not(.light) .btn:hover { background: #2a2a32; }
body:not(.light) .btn.primary, body:not(.light) .btn.accent-btn { background: #f4f2f8; color: #141418; border-color: #f4f2f8; }
body:not(.light) .btn.primary:hover { background: #fff; }
body:not(.light) .app-switch { background: rgba(20, 20, 24, .94); border-color: #2c2c34; }
body:not(.light) .app-switch [data-app].active { background: var(--accent); color: var(--accent-ink); }
body:not(.light) .seg-ctl { background: #17171c; border-color: #2c2c34; }
body:not(.light) .seg-ctl button.on { background: #f4f2f8; color: #141418; }
body:not(.light) .home-app { border-color: #2b2b33; background: #1a1a1f; }
body:not(.light) .hero-card, body:not(.light) .daily.card { background: radial-gradient(120% 140% at 0% 0%, rgba(110,52,120,.22), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(110,120,40,.18), transparent 55%), #1a1a1f; }
body:not(.light) .home-foot, body:not(.light) .side-foot { color: var(--muted); }
body:not(.light) #nav a.active { background: #23232a; box-shadow: inset 3px 0 0 var(--accent); color: var(--text); }
body:not(.light) .pill#sync-pill { background: #1c1c21; border-color: #33333c; }
body:not(.light) .doc-body.clean { color: #e7e5ee; }
body:not(.light) .chart-sec { background: rgba(255,255,255,.02); }

/* ===== v1.8 side menu on phones: solid dark panel over a dark see-through backdrop ===== */
@media (max-width: 900px) {
  .sidebar, body.light .sidebar { background: #141418 !important; color: #eeedf3; box-shadow: 12px 0 40px rgba(0,0,0,.45); border-right: 1px solid #26262d; }
  body.light .sidebar #nav a, body.light .sidebar .side-foot, body.light .sidebar .side-foot * { color: #d9d7e2; }
  body.light .sidebar #nav a.active { background: #23232a; color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
  body.light .sidebar .nav-app { color: var(--accent); }
  body.light .sidebar #nav a svg, body.light .sidebar #nav a i { color: #a3a1ae; }
}

/* ===== v1.8 dropdown picker is always dark ===== */
.pick-sheet, body:not(.light) .pick-sheet { background: #1c1c22 !important; color: #eeedf3; border-color: #2e2e36; }
.pick-head b { color: #a3a1ae; }
.pick-opt { color: #eeedf3; } .pick-opt:hover, .pick-opt:focus-visible { background: #2a2a32; }
.pick-opt.on { background: rgba(182, 227, 90, .14); color: #c9ef7c; }
.pick-group { color: #8f8d9a; }
.pick-sheet .icon-btn { background: #26262d; border-color: #34343d; color: #eee; }
.pick-sheet .pick-q { background: #15151a; border-color: #33333c; color: #eee; }
.pick-sheet::before { background: #44444e !important; }

/* ===== v1.8 international chord-chart typography: bold, clean chords (no boxes) ===== */
:root { --chord: #f5c451; }
body.light { --chord: #b4560a; }
body[data-app="formation"] { --chord: #c9b2ff; }
.seg .ch, .ch-solo, .chords-flow .ch-solo, body.mus-mode .live-chart .ch-solo, body.mus-mode .live-chart .cl.bars .ch-solo {
  font-family: var(--ui); font-weight: 800; letter-spacing: -.015em; color: var(--chord) !important;
  border: 0 !important; background: none !important; border-radius: 0; padding: 0 .08em !important; font-feature-settings: 'tnum', 'case';
}
.seg .ch { font-size: .82em; }
.ch-solo, .chords-flow .ch-solo { font-size: 1.02em; line-height: 1.3; }
.cl.bars { gap: .1em .5em; align-items: baseline; }
.cl.bars .sep, .chords-flow .cb { color: var(--muted); opacity: .55; font-weight: 400; font-family: var(--ui); }
.cl.bars .sep.hold { opacity: .4; }
.cl.bars .rep { font: 800 .62em/1 var(--ui); padding: .25em .45em; border-radius: 6px; background: color-mix(in srgb, var(--chord) 18%, transparent); color: var(--chord); }
.chart-sec header .sec-name { font: 800 11.5px var(--ui); letter-spacing: .14em; }
.chart-sec header .sec-tag, .chart-sec header .k { font-family: var(--ui); }
body.mus-mode .live-chart .cl.bars { gap: .05em .32em; }

/* ===== v1.9 warm light look (default) — cream, deep red accent, clean white cards ===== */
body.light { --bg: #fdf9f1; --bg2: #f6f0e4; --panel: #ffffff; --panel2: #faf6ee; --line: #ece4d5; --line2: #e0d6c4; --text: #231e1b; --muted: #6f6860; --dim: #9d958a; --chord: #2563a6; }
body.light[data-app="home"], body.light[data-app="music"], body.light[data-app="admin"] { --accent: #6b3fa0; --accent-ink: #fff; }
body.light .topbar { background: rgba(253, 249, 241, .96) !important; border-bottom: 1px solid #efe7d8 !important; }
body.light .sidebar { background: #fdf9f1; }
body.light .card, body.light .stat { background: #fff; border-color: #ece4d5; box-shadow: 0 1px 2px rgba(60, 40, 20, .04); }
body.light .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
body.light .app-switch [data-app].active { background: var(--accent); color: #fff; }
body.light .eyebrow { color: var(--accent); }
body.light h1 { font-family: var(--ui); font-weight: 800; letter-spacing: -.03em; }
body.light .page-head h1 { font-size: clamp(28px, 4vw, 38px); }
/* fewer words: hide page sub-descriptions on phones */
@media (max-width: 700px) { body .page-head p.muted { display: none; } }
/* Home headline + search, inspired by clean worship apps */
.home-simple .hs-greet { margin: 0 0 6px; color: var(--muted); font-weight: 600; }
.home-simple h1 { font: 800 clamp(34px, 7vw, 54px)/1.04 var(--ui) !important; letter-spacing: -.035em; margin: 0 auto; max-width: 13ch; }
.home-simple h1 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--accent); letter-spacing: -.01em; }
.hs-search { display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 22px auto 4px; padding: 6px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 8px 24px rgba(80, 40, 20, .08); }
body:not(.light) .hs-search { background: var(--panel); }
.hs-search span { font-size: 22px; color: var(--accent); }
.hs-search input { flex: 1; border: 0 !important; background: transparent !important; padding: 12px 0 !important; font-size: 16px; box-shadow: none !important; }
/* song titles in lists read like links */
body.light .song-row b, body.light .song-card h3, body.light .list-item .title { color: #1a6fd8; }

/* ===== v1.9 chord charts: blue bold serif chords, serif lyrics, same size ===== */
body.light .chart, body.light .song-chart { font-family: Georgia, 'Times New Roman', serif; }
body.light .seg .ly { font-family: Georgia, 'Times New Roman', serif; color: #2b2622; }
body.light .seg .ch, body.light .ch-solo, body.light .chords-flow .ch-solo, body.light.mus-mode .live-chart .ch-solo, body.light.mus-mode .live-chart .cl.bars .ch-solo {
  font-family: Georgia, 'Times New Roman', serif !important; font-weight: 700; color: var(--chord) !important; letter-spacing: 0; font-feature-settings: normal;
}
body.light .seg .ch { font-size: 1em; line-height: 1.25; padding-right: .4em; }
body.light .ch-solo, body.light .chords-flow .ch-solo { font-size: 1em; }
body.light .cl.bars .sep, body.light .chords-flow .cb { font-family: Georgia, serif; color: #8a8178; }
body.light .chart-sec header .sec-name { font: 400 1em Georgia, 'Times New Roman', serif; letter-spacing: 0; text-transform: none; color: #2b2622; }
body.light .chart-sec header .sec-name::before { content: '['; } body.light .chart-sec header .sec-name::after { content: ']'; }
body.light .chart-sec { background: transparent; }

/* ===== v1.9 light side menu: clean white sheet; dropdowns follow the theme ===== */
@media (max-width: 900px) {
  body.light .sidebar { background: #ffffff !important; color: var(--text); box-shadow: 12px 0 40px rgba(40, 25, 10, .18); border-right: 1px solid #efe7d8; }
  body.light .sidebar #nav a { color: #4a433d; font-size: 16px; padding-top: 12px; padding-bottom: 12px; }
  body.light .sidebar #nav a.active { background: #fbf3e6; color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
  body.light .sidebar #nav a svg, body.light .sidebar #nav a i { color: #6f6860; }
  body.light .sidebar .side-foot, body.light .sidebar .side-foot * { color: #8b847a; }
}
body.light .pick-sheet { background: #ffffff !important; color: #231e1b; border-color: #ece4d5; }
body.light .pick-head b { color: #8b847a; }
body.light .pick-opt { color: #231e1b; } body.light .pick-opt:hover, body.light .pick-opt:focus-visible { background: #f6f0e4; }
body.light .pick-opt.on { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
body.light .pick-group { color: #8b847a; }
body.light .pick-sheet .icon-btn { background: #fff; border-color: #e0d6c4; color: #231e1b; }
body.light .pick-sheet .pick-q { background: #faf6ee; border-color: #e0d6c4; color: #231e1b; }
body.light .pick-sheet::before { background: #ddd3c2 !important; }
/* song library rows: blue title, artist, red key tile */
body.light [data-list] .tr[data-song] > span:first-child b { color: #1a6fd8; font-weight: 700; }
body.light .key-badge { background: linear-gradient(160deg, #7c4dbb, #4f2a80); color: #fff; border: 0; }
@media (max-width: 700px) {
  body.light [data-list] .tr.th { display: none; }
  body.light [data-list] .tr[data-song] { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; margin-bottom: 12px; background: #fff; border: 1px solid #ece4d5; border-radius: 18px; }
  body.light [data-list] .tr[data-song] > span:nth-child(2) { order: -1; }
  body.light [data-list] .tr[data-song] > span:nth-child(3), body.light [data-list] .tr[data-song] > span:nth-child(4), body.light [data-list] .tr[data-song] > span:nth-child(5) { display: none; }
  body.light [data-list] .tr[data-song] .key-badge { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: end; padding: 6px 9px; font-weight: 800; font-size: 14px; position: relative; }
  body.light [data-list] .tr[data-song] .key-badge::before { content: '♪'; position: absolute; left: 14px; top: 8px; font-size: 26px; font-weight: 400; }
  body.light [data-list] .tr[data-song] > span:first-child { display: flex; flex-direction: column; gap: 2px; }
  body.light [data-list] .tr[data-song] > span:first-child b { font-size: 19px; }
  body.light [data-list] .tr[data-song] .row-actions .icon-btn:not(:first-child) { display: none; }
}
body.light .chart-sec header .sec-tag { display: none; }
body.light select:not([multiple]) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b3fa0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 11px center !important; background-size: 12px 8px !important; }
@media (max-width: 700px) { .toolbar input[type=search] { flex: 1 1 100% !important; width: 100%; } .toolbar select { flex: 1 1 30%; } }
body.light .chart-sec header { font-size: .82em; } body.light .chart-sec header .sec-name { font-size: 1em !important; color: #3a332d; }
/* ===== v1.10 Musicians Mode launcher ===== */
.mm-launch { max-width: 560px; margin: 0 auto; text-align: center; padding: 10px 0 30px; }
.mm-l-ic { font-size: 40px; display: block; }
.mm-launch h1 { margin: 6px 0 2px; }
.mm-launch h3 { text-align: left; margin: 22px 0 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mm-l-main { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "e go" "b go" "s go"; align-items: center; text-align: left; width: 100%; margin-top: 18px; padding: 18px 20px; border-radius: 20px; border: 0; cursor: pointer; color: #fff; background: linear-gradient(135deg, #7c4dbb, #4f2a80); box-shadow: 0 12px 30px rgba(79, 42, 128, .3); font: inherit; }
.mm-l-main .eyebrow { grid-area: e; color: rgba(255,255,255,.75) !important; } .mm-l-main b { grid-area: b; font-size: 21px; } .mm-l-main small { grid-area: s; opacity: .85; }
.mm-l-main .go { grid-area: go; background: #fff; color: #4f2a80; font-weight: 800; padding: 10px 16px; border-radius: 12px; }
.mm-l-list { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.mm-l-list button { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; color: var(--text); font: inherit; text-align: left; }
.mm-l-list button b { color: #1a6fd8; } body:not(.light) .mm-l-list button b { color: var(--text); }
.mm-l-list button small { color: var(--muted); font-size: 12.5px; }
.mm-launch input[type=search] { width: 100%; margin-bottom: 8px; }

/* ===== v1.10 Musicians Mode chord chart: clearer classic font ===== */
body.light.mus-mode .live-chart { font-family: Georgia, 'Times New Roman', serif; }
body.light.mus-mode .live-chart .ch-solo, body.light.mus-mode .live-chart .cl.bars .ch-solo { font-weight: 700 !important; color: #1f5fa8 !important; font-size: 1.05em; letter-spacing: .01em; }
body.light.mus-mode .live-chart .cl.bars .sep, body.light.mus-mode .live-chart .chords-flow .cb { color: #a39a90; }
body.light.mus-mode .live-chart .chart-sec { opacity: 1 !important; border-left-width: 3px; background: transparent; padding: 4px 8px 6px; }
body.light.mus-mode .live-chart .chart-sec.active { background: #f3edff; border-radius: 0 10px 10px 0; }
body.light.mus-mode .live-chart .chart-sec header .sec-name { font-weight: 700; color: #4f2a80; }
body.light.mus-mode .live-chart .cl { margin-bottom: .18em; }
body.light.mus-mode .live-chart .cl.bars .rep { background: #ece4fb; color: #4f2a80; }
/* YouTube link in the song list */
.yt-btn { color: #c4302b; font-size: 12px; font-weight: 800; }
.yt-btn.has { background: #c4302b; color: #fff; border-color: #c4302b; }
.yt-dot { font-style: normal; font-size: 11px; font-weight: 800; color: #c4302b; margin-right: 4px; }
@media (max-width: 700px) { body.light [data-list] .tr[data-song] .row-actions { display: flex; gap: 6px; } body.light [data-list] .tr[data-song] .row-actions .icon-btn:nth-child(2) { display: inline-grid !important; } }
.rel-note { margin-bottom: 14px; } .rel-note ul { margin: 6px 0 0; padding-left: 18px; } .rel-note li { margin-bottom: 4px; font-size: 14px; }
.icon-btn.yt-btn.has, body.light .icon-btn.yt-btn.has { background: #c4302b !important; color: #fff !important; border-color: #c4302b !important; }

/* ===== v1.11 Faith reader formatting ===== */
.doc-body.clean table.tbl-num, .doc-body.clean table.tbl-num > tbody, .doc-body.clean table.tbl-num > thead { display: table !important; width: 100%; border: 0; background: transparent; }
.doc-body.clean table.tbl-num > tbody, .doc-body.clean table.tbl-num > thead { display: table-row-group !important; }
.doc-body.clean table.tbl-num tr { display: table-row !important; }
.doc-body.clean table.tbl-num td, .doc-body.clean table.tbl-num th { display: table-cell !important; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 0; }
.doc-body.clean table.tbl-num tr > :first-child { width: 2.6em; font-weight: 800; color: var(--accent); }
.doc-body.clean table.tbl-num td p { margin: 0 0 2px; }
.doc-body.clean table.tbl-num .pg { width: 2.6em; text-align: right; color: var(--muted); font-weight: 600; font-size: .85em; }
.doc-body.clean .num-label strong { letter-spacing: .1em; color: var(--accent); }
.doc-body.clean h2 { font: 800 1.45em/1.2 var(--ui); margin: .4em 0 .2em; }
.doc-body.clean h3 { font: 800 .82em var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 1.4em 0 .4em; }
.doc-body.clean h4 { font: 700 1em var(--ui); margin: 1.1em 0 .3em; }
.doc-body.clean .eyebrow-line { font: 800 .75em var(--ui); letter-spacing: .14em; color: var(--accent); margin: 0 0 .3em; }
.doc-body.clean .theme { color: var(--muted); font-style: italic; margin-top: 0; }
.doc-body.clean section.box { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 4px 16px 10px; margin: 14px 0; }
.doc-body.clean section.box h3 { margin-top: .9em; }
.doc-body.clean section.devotional h3 { margin-top: 1.2em; }
.doc-body.clean blockquote { margin: 10px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); font-family: Georgia, serif; font-size: 1.05em; }
.doc-body.clean blockquote.prayer { font-style: italic; }
.doc-body.clean blockquote .ref { font: 800 .75em var(--ui); letter-spacing: .12em; color: var(--accent); font-style: normal; }
.doc-body.clean .question { font-weight: 600; font-size: 1.05em; }
.doc-body.clean table.refs { display: table !important; width: 100%; margin: 10px 0 4px; border-collapse: collapse; }
.doc-body.clean table.refs tbody { display: table-row-group !important; } .doc-body.clean table.refs tr { display: table-row !important; }
.doc-body.clean table.refs th, .doc-body.clean table.refs td { display: table-cell !important; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); }
.doc-body.clean table.refs th { width: 8.5em; font: 800 .72em var(--ui); letter-spacing: .12em; color: var(--accent); }
.doc-body.clean hr { border: 0; border-top: 2px dashed var(--line2); margin: 26px 0 8px; }
.doc-body.clean .journal-h { font-size: .9em; } .doc-body.clean .journal-h span { color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: none; margin-left: 6px; }
.doc-body.clean ol.soap { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.doc-body.clean ol.soap li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.doc-body.clean .soap-l { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; font: 800 18px var(--ui); }
.doc-body.clean ol.soap h4 { margin: 0 0 2px; font-size: .78em; letter-spacing: .12em; color: var(--accent); } .doc-body.clean ol.soap p { margin: 0; }
.doc-body.clean .checklist { font-size: .92em; color: var(--muted); } .doc-body.clean .checklist strong { color: var(--text); }
.doc-body.clean .prompt { margin: 14px 0 4px; padding: 10px 12px; border: 1px dashed var(--line2); border-radius: 10px; min-height: 2.4em; }
.doc-body.clean table.glance { display: table !important; width: 100%; border-collapse: collapse; }
.doc-body.clean table.glance tbody { display: table-row-group !important; } .doc-body.clean table.glance tr { display: table-row !important; }
.doc-body.clean table.glance th, .doc-body.clean table.glance td { display: table-cell !important; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); }
.doc-body.clean table.glance th { width: 4.2em; color: var(--accent); font-weight: 800; white-space: nowrap; } .doc-body.clean table.glance td.d { width: 7.5em; color: var(--muted); white-space: nowrap; }
.doc-body.clean .cover { text-align: center; padding: 10px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.doc-body.clean .cover p:nth-child(2) { font: 800 2em/1.1 var(--ui); letter-spacing: .02em; color: var(--accent); margin: .1em 0; }
.doc-body.clean .cover blockquote { border: 0; padding: 0; }
.doc-body.clean .soap-item { margin: 8px 0; }
/* library cards: title first, no autogenerated descriptions */
.pub-card .pub-intro { -webkit-line-clamp: 2; }
.doc-body.clean table.tbl-num td p, .doc-body.clean table.tbl-num td p > strong:only-child { margin: 0 0 2px !important; }
.doc-body.clean table.tbl-num tr > :first-child, .doc-body.clean table.tbl-num tr > :first-child strong { color: var(--accent) !important; }
.pub-cover { background: var(--bg2); }
.pub-cover img { object-fit: contain !important; object-position: center !important; background: var(--bg2); }
.doc-body.clean .day-strip { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 800 .74em var(--ui); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.doc-body.clean .day-strip .dn { color: #fff; background: var(--accent); padding: 4px 9px; border-radius: 7px; }
/* ===== v1.11 Auto-scroll pill ===== */
.as-pill { position: fixed; right: 14px; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 99px; background: #241a35; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 13px; }
.as-pill .icon-btn { width: 34px; height: 34px; background: rgba(255,255,255,.12) !important; color: #fff !important; border: 0 !important; }
.as-pill select { width: auto; min-height: 32px; padding: 4px 26px 4px 8px; background-color: rgba(255,255,255,.12) !important; color: #fff; border: 0; }
.as-dot { width: 9px; height: 9px; border-radius: 50%; background: #9be15d; box-shadow: 0 0 8px #9be15d; animation: as-blink 1.2s infinite; }
.as-dot.paused { background: #f2c94c; box-shadow: none; animation: none; }
@keyframes as-blink { 50% { opacity: .35; } }
@media (min-width: 901px) { body:not(.mus-mode) .as-pill { bottom: 90px; } }
@media (max-width: 480px) { .as-pill b { display: none; } .as-pill { right: 8px; left: 8px; justify-content: center; } }
/* ===== v1.11 LET'S LISTEN TOGETHER ===== */
.listen-together { margin: 28px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.listen-together h2 { font: 800 15px var(--ui); letter-spacing: .14em; color: var(--accent); margin: 0 0 12px; }
.yt-frame { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.song-secs-sum { margin: 18px 0 0; } .song-secs-sum > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.song-secs-sum .mm-pad { cursor: default; padding: 6px 12px; font-size: 12.5px; }
@media (max-width: 900px) { body:not(.mus-mode) .as-pill { bottom: calc(205px + env(safe-area-inset-bottom)); } }
/* phones: the song toolbar scrolls away with the page instead of covering the chart */
@media (max-width: 700px) {
  .chart-toolbar { position: static !important; box-shadow: none !important; }
  .chart-toolbar .btn, .chart-toolbar .icon-btn { min-height: 40px; }
  .chart-toolbar .seg-ctl button { min-height: 38px; padding: 6px 12px; }
}

/* ===== v1.12 DOXA Vocals ===== */
body[data-app="vocals"] { --accent: #2bb5a0; --accent-ink: #04201b; }
body.light[data-app="vocals"] { --accent: #0f8a7a; --accent-ink: #fff; }
.a-vocals { --ha: #0f8a7a; --ha-bg: linear-gradient(135deg, #7fe0cf, #10917f); }
@media (max-width: 760px) { .home-apps.simple { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.app-switch button[hidden] { display: none !important; }
.vx-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 8px; }
.vx-set { display: flex; flex-direction: column; gap: 3px; text-align: left; margin: 0; cursor: pointer; font: inherit; color: inherit; }
.vx-set b { font-size: 17px; }
.vx-list { display: flex; flex-direction: column; gap: 10px; }
.vx-song { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); text-align: left; cursor: pointer; color: var(--text); font: inherit; }
.vx-key { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(160deg, #19a28f, #0b6e62); }
.vx-main { display: flex; flex-direction: column; min-width: 0; } .vx-main b { font-size: 17px; color: #1a6fd8; } body:not(.light) .vx-main b { color: var(--text); } .vx-main small { color: var(--muted); }
.vx-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.vx-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 14px; } .vx-facts span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); font-size: 13px; color: var(--muted); } .vx-facts b { color: var(--text); margin-left: 4px; }
.vx-notes p { margin: 4px 0 0; white-space: pre-wrap; }
.vx-tabs { margin: 6px 0 14px; } .vx-tabs i { font-style: normal; opacity: .6; margin-left: 4px; }
.vx-mix { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.vx-grp { margin: 18px 0 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.file-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 8px; }
.fr-ic { font-size: 22px; text-align: center; }
.fr-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; } .fr-main b { overflow: hidden; text-overflow: ellipsis; } .fr-main small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.fr-desc { color: var(--text) !important; }
.fr-part { font-style: normal; font-weight: 800; color: var(--accent); }
.fr-st { font-size: 11.5px; font-weight: 700; color: var(--muted); } .fr-st.ok { color: #2a9d5b; } .fr-st.warn { color: #c98a12; } .fr-st.bad { color: #d24c3e; cursor: pointer; } .fr-st.busy { color: var(--accent); }
.fr-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.fr-act .icon-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.vx-ply { display: inline-flex; align-items: center; gap: 4px; } .vx-ply input[type=range] { width: 80px; }
.vx-ply .icon-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.vx-sel input { width: 20px; height: 20px; accent-color: var(--accent); }
.vx-lyrics { font-family: Georgia, serif; font-size: 17px; line-height: 1.6; } .vx-sec { font: 800 13px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 18px 0 4px; } .vx-line { margin: 0; }
.vx-ann { display: inline-block; margin: 2px 6px 4px 0; padding: 3px 10px; border-radius: 99px; font: 700 12px var(--ui); background: #fff3d6; color: #8a5a00; } .vx-ann.c-red { background: #ffe1df; color: #a3271d; } .vx-ann.c-blue { background: #dfeeff; color: #1c4f8f; } .vx-ann.c-green { background: #dff5e4; color: #1d6b33; }
.vx-lyr-ed { width: 100%; font-family: Georgia, serif; font-size: 16px; }
.vx-notelist { display: grid; gap: 10px; }
.vx-note { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid #e3b45c; background: var(--panel); } .vx-note p { margin: 4px 0; white-space: pre-wrap; }
.vx-note.c-red { border-left-color: #e0574b; } .vx-note.c-blue { border-left-color: #4a8ad8; } .vx-note.c-green { border-left-color: #3fa85f; } .vx-note.hl { background: #fff8e1; } body:not(.light) .vx-note.hl { background: #2a2416; }
.vx-order { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vx-order li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.vx-order .vx-main { background: none; border: 0; text-align: left; cursor: pointer; font: inherit; padding: 0; }
.vx-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; }
.vx-ord { display: flex; gap: 4px; }
@media (max-width: 700px) {
  .file-row { grid-template-columns: 30px minmax(0, 1fr); } .fr-act { grid-column: 1 / -1; justify-content: flex-start; }
  .vx-order li { grid-template-columns: 32px minmax(0, 1fr); } .vx-ord { grid-column: 1 / -1; }
}
/* ===== PDF viewer ===== */
.pdfv { position: fixed; inset: 0; z-index: 4000; background: #e9e6df; display: flex; flex-direction: column; }
.pdfv.present { background: #000; }
.pdfv-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #1d1b22; color: #fff; }
.pdfv-bar .icon-btn { background: rgba(255,255,255,.1) !important; color: #fff !important; border: 0 !important; width: 40px; height: 40px; font-size: 18px; }
.pdfv-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; } .pdfv-n { color: #c9c6d3; font-size: 13px; white-space: nowrap; } .pdfv-bar .grow { flex: 1; }
.pdfv-stage { flex: 1; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 8px; }
.pdfv.present .pdfv-stage { align-items: center; }
.pdfv-stage canvas { background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.pdfv-msg { color: #555; padding: 30px; } .pdfv.present .pdfv-msg { color: #ccc; }
.pdfv-notes { max-height: 30vh; overflow: auto; padding: 10px 14px; background: #fff; border-top: 1px solid #ddd; display: grid; gap: 8px; }
.pdfv:fullscreen .pdfv-bar { opacity: .15; transition: opacity .2s; } .pdfv:fullscreen .pdfv-bar:hover { opacity: 1; }
@media (max-width: 600px) { .pdfv-t { max-width: 30vw; } .pdfv-bar { gap: 4px; padding: 6px; } .pdfv-bar .icon-btn { width: 36px; height: 36px; } }
.perm-cell { min-width: 300px; } .perm-sel { display: inline-flex; flex-direction: column; gap: 2px; margin: 0 6px 6px 0; font-size: 11px; color: var(--muted); font-weight: 700; }
.perm-sel select { width: auto; min-height: 32px; padding: 4px 26px 4px 8px; font-size: 12.5px; }
.perm-sel select.pv-editor { border-color: var(--accent); color: var(--accent); font-weight: 700; } .perm-sel select.pv-none { color: #b44; }
.mod-toggles { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 700px) { .perm-cell { min-width: 0; } .perm-sel { flex: 1 1 45%; } .perm-sel select { width: 100%; } }
.tr-slot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tr-slot > div { display: flex; flex-direction: column; } .tr-slot.pending b { opacity: .7; }
.tr-more { margin: 12px 0; } .tr-more summary { cursor: pointer; font-weight: 700; color: var(--accent); } .tr-more .check { display: flex; margin: 4px 0; }
.tr-attr { font-size: 11.5px; color: var(--muted); margin: 6px 0 0; }
.mf-list { margin-top: 6px; }
.mf-foot { margin: 18px 0 8px; } .mf-bar { height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; margin-bottom: 4px; } .mf-bar i { display: block; height: 100%; background: var(--accent); }
.mf-help summary { cursor: pointer; font-weight: 700; color: var(--accent); }

/* ===== v1.13 — Jesus Reigns journey ===== */
.jr-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 22px 18px; margin: 4px 0 22px; color: #fbf6ea;
  background: radial-gradient(120% 140% at 100% 0%, rgba(212,167,58,.32) 0%, rgba(212,167,58,0) 46%), linear-gradient(150deg, #2a1650 0%, #4a2582 55%, #6b3fa0 100%);
  box-shadow: 0 18px 40px -22px rgba(42,22,80,.55); }
.jr-hero::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255,230,170,.18); box-shadow: 0 0 0 26px rgba(255,230,170,.05), 0 0 0 54px rgba(255,230,170,.035); pointer-events: none; }
.jr-hero-top { display: flex; gap: 18px; align-items: flex-start; position: relative; z-index: 1; }
.jr-num { flex: none; display: grid; justify-items: center; min-width: 78px; padding: 10px 8px 8px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,230,170,.35); }
.jr-num small { font-size: 10px; letter-spacing: .18em; font-weight: 700; color: #f1d48a; }
.jr-num b { font-family: Georgia, 'Times New Roman', serif; font-size: 44px; line-height: 1; font-weight: 700; color: #fff; margin: 2px 0; }
.jr-hero-txt { min-width: 0; }
.jr-brand { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #f1d48a; margin-bottom: 6px; }
.jr-eyebrow { font-size: 12.5px; letter-spacing: .06em; font-weight: 600; color: rgba(251,246,234,.82); }
.jr-eyebrow em { font-style: normal; margin-left: 6px; padding: 2px 9px; border-radius: 99px; background: #f1d48a; color: #2a1650; font-size: 11px; letter-spacing: .04em; font-weight: 800; }
.jr-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(25px, 4.6vw, 36px); line-height: 1.15; margin: 6px 0 4px; color: #fff; letter-spacing: -.01em; font-weight: 700; }
.jr-group { margin: 0; color: rgba(251,246,234,.75); font-size: 14px; }
.jr-hero-sm h1 { font-size: clamp(22px, 4vw, 30px); }
.jr-weeks { position: relative; z-index: 1; display: grid; gap: 8px; margin-top: 18px; }
.jr-week { display: flex; align-items: center; gap: 10px; }
.jr-wk { flex: none; width: 54px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: rgba(251,246,234,.6); }
.jr-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; flex: 1; max-width: 400px; }
.jr-dot { aspect-ratio: 1; min-height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #fbf6ea; font-weight: 700; font-size: 12.5px; cursor: pointer; display: grid; place-items: center; padding: 0; transition: transform .12s, background .12s; }
.jr-dot:hover { transform: scale(1.08); background: rgba(255,255,255,.16); }
.jr-dot.done { background: #f1d48a; border-color: #f1d48a; color: #2a1650; }
.jr-dot.today { box-shadow: 0 0 0 2px #2a1650, 0 0 0 4px #f1d48a; }
.jr-dot.on { background: #fff; color: #4a2582; border-color: #fff; }
.jr-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 12.5px; color: rgba(251,246,234,.8); }
.jr-bar { flex: 1; min-width: 120px; max-width: 260px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.jr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f1d48a, #ffe9b0); border-radius: 99px; }
.jr-today { margin-left: auto; background: #f1d48a; color: #2a1650; border: 0; border-radius: 99px; padding: 7px 14px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.reader-bar.jr-tools { margin-bottom: 10px; }
.reader-bar.jr-tools .btn-row { margin-left: auto; }

/* day content */
.doc-body.jr { line-height: 1.75; }
.doc-body.jr .theme { font-family: Georgia, serif; font-style: italic; color: var(--muted); margin: 0 0 16px; }
.doc-body.jr table.refs { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #eadfca; border-left: 4px solid #d4a73a; border-radius: 14px; overflow: hidden; margin: 0 0 22px; }
.doc-body.jr table.refs th { width: 34%; max-width: 150px; text-align: left; vertical-align: top; padding: 12px 14px; font-size: 11.5px; letter-spacing: .12em; color: #8a6a1f; font-weight: 800; }
.doc-body.jr table.refs td { padding: 12px 14px 12px 0; font-weight: 500; }
.doc-body.jr table.refs tr + tr > * { border-top: 1px solid #f1e8d6; }
.doc-body.jr section h3 { font-size: 12px !important; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; margin: 0 0 8px; color: #6b3fa0; font-family: inherit; }
.doc-body.jr section.jr-dv { margin: 6px 0 26px; }
.doc-body.jr section.jr-dv > p:first-of-type::first-letter { float: left; font-family: Georgia, serif; font-size: 3.4em; line-height: .85; padding: 6px 10px 0 0; color: #4a2582; font-weight: 700; }
.doc-body.jr section.box { position: relative; background: #fff; border: 1px solid #ece4f4; border-radius: 16px; padding: 16px 18px 14px 58px; margin: 0 0 14px; box-shadow: 0 6px 18px -14px rgba(74,37,130,.35); }
.doc-body.jr section.box::before { position: absolute; left: 16px; top: 15px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; font-weight: 700; background: #f3edf9; color: #6b3fa0; content: '✦'; }
.doc-body.jr section.jr-tb::before { content: '✺'; background: #fdf3dc; color: #a57a17; }
.doc-body.jr section.jr-tb h3 { color: #a57a17; }
.doc-body.jr section.jr-ch::before { content: '◎'; background: #e7f4f1; color: #0f7c6c; }
.doc-body.jr section.jr-ch h3 { color: #0f7c6c; }
.doc-body.jr section.jr-pr { background: linear-gradient(160deg, #fbf8ff, #f5eefc); border-color: #e3d6f2; }
.doc-body.jr section.jr-pr::before { content: '❦'; }
.doc-body.jr section.jr-pr blockquote { border: 0; margin: 0; padding: 0; }
.doc-body.jr section.jr-pr blockquote p { font-family: Georgia, serif; font-style: italic; font-size: 1.12em; line-height: 1.6; color: #3a2163; }
.doc-body.jr section.jr-rq { background: #4a2582; border-color: #4a2582; color: #fff; }
.doc-body.jr section.jr-rq::before { content: '?'; background: rgba(255,255,255,.14); color: #f1d48a; }
.doc-body.jr section.jr-rq h3 { color: #f1d48a; }
.doc-body.jr section.jr-rq p, .doc-body.jr section.jr-rq .question { color: #fff; font-weight: 600 !important; text-transform: none !important; font-size: 1.05em; }
.doc-body.jr section.jr-mv::before { content: '❝'; background: #fdf3dc; color: #a57a17; }
.doc-body.jr section.jr-mv blockquote { border: 0; margin: 0; padding: 0; }
.doc-body.jr section.jr-mv blockquote p { font-family: Georgia, serif; font-size: 1.15em; line-height: 1.55; font-style: italic; color: #2a1650; }
.doc-body.jr section.jr-mv blockquote p.ref { font-style: normal; font-family: inherit; font-size: 12px; letter-spacing: .14em; font-weight: 800; color: #a57a17; }
.doc-body.jr section.jr-sh::before { content: '➚'; background: #e7f4f1; color: #0f7c6c; }
.doc-body.jr hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, #d4a73a, transparent); margin: 30px 0 22px; }
.doc-body.jr .journal-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: Georgia, serif; font-size: 1.45em !important; color: #2a1650; text-transform: none !important; letter-spacing: 0 !important; margin: 0 0 14px; }
.doc-body.jr .journal-h span { font-family: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #a57a17; font-weight: 800; }
.doc-body.jr ol.soap { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.doc-body.jr ol.soap > li { display: flex; gap: 14px; background: #fff; border: 1px solid #ece4f4; border-radius: 16px; padding: 14px 16px; box-shadow: 0 6px 18px -16px rgba(74,37,130,.4); }
.doc-body.jr ol.soap > li > div { flex: 1; min-width: 0; }
.doc-body.jr .soap-l { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(150deg, #4a2582, #6b3fa0); color: #fff; font-family: Georgia, serif; font-size: 20px; }
.doc-body.jr ol.soap h4 { margin: 0; font-size: 12px; letter-spacing: .14em; color: #6b3fa0; font-weight: 800; }
.doc-body.jr ol.soap p { margin: 2px 0 8px; color: var(--muted); font-size: .95em; }
.jr-write { width: 100%; box-sizing: border-box; min-height: 74px; resize: vertical; border: 1px dashed #cdb9e6 !important; background: #fcfaff !important; border-radius: 12px; padding: 10px 12px; font: inherit; font-family: Georgia, serif; font-size: .98em; line-height: 1.6; color: #2a1650 !important; }
.jr-write:focus { outline: none; border-style: solid !important; border-color: #6b3fa0 !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(107,63,160,.14); }
.doc-body.jr p.prompt { margin: 18px 0 6px; color: #3a2163; }
.jr-save { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px; }
.jr-checks { margin: 20px 0 8px; padding: 16px; border-radius: 16px; background: #fdf8ec; border: 1px solid #f0e2bd; }
.jr-checks > b { display: block; font-size: 12px; letter-spacing: .16em; color: #8a6a1f; margin-bottom: 10px; }
.jr-checks > div { display: flex; flex-wrap: wrap; gap: 8px; }
.jr-ck { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; border: 1px solid #e6d5a8; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: #4a3a12; cursor: pointer; transition: background .12s; }
.jr-ck i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d4a73a; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; color: #fff; }
.jr-ck.y { background: #4a2582; border-color: #4a2582; color: #fff; }
.jr-ck.y i { background: #f1d48a; border-color: #f1d48a; color: #2a1650; }
.doc-body.jr table.glance { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.doc-body.jr table.glance tr.jr-row { cursor: pointer; }
.doc-body.jr table.glance tr.jr-row > * { background: #fff; padding: 10px 12px; border-top: 1px solid #eee5f5; border-bottom: 1px solid #eee5f5; }
.doc-body.jr table.glance tr.jr-row > :first-child { border-left: 1px solid #eee5f5; border-radius: 12px 0 0 12px; color: #6b3fa0; white-space: nowrap; }
.doc-body.jr table.glance tr.jr-row > :last-child { border-right: 1px solid #eee5f5; border-radius: 0 12px 12px 0; }
.doc-body.jr table.glance tr.jr-row:hover > * { background: #f8f3fd; }
.doc-body.jr table.glance td.d { color: var(--muted); font-size: .9em; white-space: nowrap; }
.doc-body.jr table.glance tr.done > :last-child::after { content: ' ✓'; color: #0f7c6c; font-weight: 800; }
.doc-body.jr table.glance tr.today > * { background: #fdf3dc; border-color: #f1d48a; }
.is-journey .ref-chips { margin-bottom: 14px; }
/* dark page option */
.doc-body.jr:not(.paper) table.refs, .doc-body.jr:not(.paper) section.box, .doc-body.jr:not(.paper) ol.soap > li, .doc-body.jr:not(.paper) .jr-ck, .doc-body.jr:not(.paper) table.glance tr.jr-row > * { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: inherit; }
.doc-body.jr:not(.paper) .jr-write { background: rgba(255,255,255,.06) !important; color: inherit !important; }
.doc-body.jr:not(.paper) .jr-checks { background: rgba(212,167,58,.1); border-color: rgba(212,167,58,.3); }
.doc-body.jr:not(.paper) .journal-h, .doc-body.jr:not(.paper) section.jr-pr blockquote p, .doc-body.jr:not(.paper) section.jr-mv blockquote p { color: inherit; }
/* Faith home feature */
.jr-feature { cursor: pointer; display: flex; align-items: center; gap: 20px; justify-content: space-between; flex-wrap: wrap; border-radius: 22px; padding: 24px 26px; margin: 0 0 22px; color: #fbf6ea;
  background: radial-gradient(110% 160% at 100% 0%, rgba(212,167,58,.35) 0%, rgba(212,167,58,0) 50%), linear-gradient(150deg, #2a1650 0%, #4a2582 60%, #6b3fa0 100%); box-shadow: 0 18px 40px -24px rgba(42,22,80,.6); transition: transform .15s; }
.jr-feature:hover { transform: translateY(-2px); }
.jr-feature h2 { font-family: Georgia, serif; font-size: clamp(28px, 5vw, 40px); margin: 2px 0 2px; color: #fff; line-height: 1.1; }
.jr-feature p { margin: 0; color: rgba(251,246,234,.8); }
.jr-f-today { margin-top: 14px; display: grid; gap: 2px; }
.jr-f-today span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #f1d48a; }
.jr-f-today b { font-family: Georgia, serif; font-size: 19px; color: #fff; font-weight: 600; }
.jr-f-prog { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: rgba(251,246,234,.75); }
.jr-f-btn .btn { background: #f1d48a !important; color: #2a1650 !important; border: 0 !important; font-weight: 800; border-radius: 99px; padding: 11px 20px; }
@media (max-width: 560px) {
  .jr-hero { padding: 18px 16px 16px; border-radius: 18px; }
  .jr-num { min-width: 64px; } .jr-num b { font-size: 36px; }
  .jr-hero-top { gap: 12px; }
  .jr-wk { width: auto; writing-mode: horizontal-tb; font-size: 9.5px; }
  .jr-week { flex-direction: column; align-items: stretch; gap: 4px; }
  .jr-dots { max-width: none; gap: 5px; }
  .doc-body.jr section.box { padding: 14px 14px 12px 14px; }
  .doc-body.jr section.box::before { position: static; display: inline-grid; width: 26px; height: 26px; margin-bottom: 6px; font-size: 13px; }
  .doc-body.jr ol.soap > li { flex-direction: column; gap: 8px; padding: 12px; }
  .doc-body.jr .soap-l { width: 34px; height: 34px; font-size: 17px; }
  .doc-body.jr table.refs th { width: auto; padding: 10px 10px 2px; display: block; } .doc-body.jr table.refs td { display: block; padding: 0 10px 10px; }
  .doc-body.jr table.refs tr { display: block; }
  .jr-feature { padding: 20px 18px; }
  .jr-f-btn { width: 100%; } .jr-f-btn .btn { width: 100%; justify-content: center; display: flex; }
}
/* auto-scroll bar is placed by script above the song controls */
.as-pill { transition: bottom .15s; }

/* ===== v1.14 — acronym steps and lists in all DOXA materials ===== */
.doc-body .acro { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 4px; vertical-align: middle; }
.doc-body .acro-l { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(150deg, #4a2582, #6b3fa0); color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; font-weight: 700; line-height: 1; box-shadow: 0 6px 14px -8px rgba(74,37,130,.7); }
.doc-body .acro-w { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: #6b3fa0; }
.doc-body .acro-cell, .doc-body li.acro-blk { background: #fff; border: 1px solid #ece4f4 !important; border-radius: 16px; padding: 14px 16px !important; box-shadow: 0 6px 18px -16px rgba(74,37,130,.45); vertical-align: top; }
.doc-body table:has(> thead > tr > .acro-cell), .doc-body table:has(> tbody > tr > .acro-cell) { border-collapse: separate; border-spacing: 10px; margin-left: -10px; margin-right: -10px; width: calc(100% + 20px); }
.doc-body .acro-cell > p:not(.acro-blk), .doc-body .acro-cell > div { margin-top: 6px; }
.doc-body tr.acro-row > td, .doc-body tr.acro-row > th { vertical-align: top; padding-top: 12px; padding-bottom: 12px; }
.doc-body td.acro-lc, .doc-body th.acro-lc { width: 50px; padding-right: 4px !important; }
.doc-body tr.acro-row + tr.acro-row > * { border-top: 1px solid #f1eaf8; }
.doc-body table.acro-tbl { background: #fff; border: 1px solid #ece4f4; border-radius: 16px; overflow: hidden; border-collapse: separate; border-spacing: 0; width: 100%; box-shadow: 0 6px 18px -16px rgba(74,37,130,.45); }
.doc-body table.acro-tbl strong:first-child { letter-spacing: .1em; color: #4a2582; }
.doc-body ul.nice { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 8px; }
.doc-body ul.nice > li { position: relative; padding: 10px 14px 10px 40px; background: #fff; border: 1px solid #efe7f6; border-radius: 12px; line-height: 1.55; }
.doc-body ul.nice > li::before { content: ''; position: absolute; left: 16px; top: 1.05em; width: 9px; height: 9px; border-radius: 3px; transform: rotate(45deg); background: linear-gradient(150deg, #d4a73a, #f1d48a); }
.doc-body ol.nice-num { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 10px; counter-reset: none; }
.doc-body ol.nice-num > li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: #fff; border: 1px solid #efe7f6; border-radius: 14px; }
.doc-body ol.nice-num > li > i.n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 14px; background: #f3edf9; color: #6b3fa0; border: 1.5px solid #d9c8ee; }
.doc-body ol.nice-num > li > div { flex: 1; min-width: 0; padding-top: 3px; }
.doc-body ol.nice-num > li > div > strong:only-child { font-weight: 600; }
/* regular lists in the books */
.doc-body.clean ul:not(.nice):not(.soap) { padding-left: 1.3em; }
.doc-body.clean ul:not(.nice):not(.soap) > li::marker { color: #b48a2c; }
.doc-body.clean ol:not(.nice-num):not(.soap) > li::marker { color: #6b3fa0; font-weight: 800; }
.doc-body.clean ul:not(.nice):not(.soap) > li, .doc-body.clean ol:not(.nice-num):not(.soap) > li { margin: 5px 0; padding-left: 4px; }
/* dark page */
.doc-body:not(.paper) .acro-cell, .doc-body:not(.paper) table.acro-tbl, .doc-body:not(.paper) ul.nice > li, .doc-body:not(.paper) ol.nice-num > li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12) !important; }
.doc-body:not(.paper) .acro-w { color: #c9b1ec; }
@media (max-width: 640px) {
  .doc-body table:has(> thead > tr > .acro-cell) > thead > tr, .doc-body table:has(> tbody > tr > .acro-cell) > tbody > tr { display: grid; gap: 10px; }
  .doc-body table:has(> thead > tr > .acro-cell), .doc-body table:has(> tbody > tr > .acro-cell) { border-spacing: 0; margin: 0 0 10px; width: 100%; }
  .doc-body table:has(> thead > tr > .acro-cell) > * > tr > :empty, .doc-body table:has(> tbody > tr > .acro-cell) > * > tr > :empty { display: none; }
  .doc-body table:has(> * > tr > .acro-cell) > * > tr > * { display: block; width: auto !important; }
}
/* cards: title and subtitle only */
.intro-item p { display: none; }
body.light .reader-bar { background: rgba(251,247,238,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.reader-bar.jr-tools { position: static; background: transparent !important; backdrop-filter: none; }
/* letter + word rows inside tables (G·R·O·W, S·E·E·D) */
.doc-body table.acro-tbl tr.acro-row > .acro-cell { background: transparent; border: 0 !important; box-shadow: none; border-radius: 0; }
.doc-body table.acro-tbl tr.acro-row > * { padding: 12px 14px; }
.doc-body table.acro-tbl tr.acro-row > *:not(.acro-cell) { color: var(--text); }
.doc-body table.acro-tbl .acro { margin-bottom: 2px; }
.doc-body td.acro-cell > p:first-child, .doc-body th.acro-cell > p:first-child { margin-top: 0; }
@media (max-width: 640px) {
  .doc-body table.acro-tbl, .doc-body table.acro-tbl > * { display: block; width: 100%; }
  .doc-body table.acro-tbl tr.acro-row { display: block; padding: 6px 0; }
  .doc-body table.acro-tbl tr.acro-row > * { display: block; padding: 4px 14px; border: 0 !important; }
  .doc-body table.acro-tbl tr.acro-row > :empty { display: none; }
  .doc-body table.acro-tbl tr.acro-row + tr.acro-row { border-top: 1px solid #f1eaf8; }
}
.doc-body table.acro-tbl, .doc-body table.acro-tbl > thead, .doc-body table.acro-tbl > tbody { display: block; width: 100%; }
.doc-body table.acro-tbl > colgroup { display: none; }
.doc-body table.acro-tbl tr.acro-row { display: block; padding: 10px 4px; }
.doc-body table.acro-tbl tr.acro-row > * { display: block; width: auto !important; padding: 3px 14px !important; border: 0 !important; text-align: left; font-weight: 400; }
.doc-body table.acro-tbl tr.acro-row > :empty { display: none; }
.doc-body table.acro-tbl tr.acro-row + tr.acro-row { border-top: 1px solid #f1eaf8; }
.doc-body table.acro-tbl tr.acro-row > * em { color: var(--muted); }
.intro-item .open-link { display: block; margin-top: 10px; }
.intro-item small { display: block; line-height: 1.45; }

/* ===== v1.14.1 — compact lists with professional gold bullets ===== */
.doc-body ul.nice { gap: 0; margin: 6px 0 12px; }
.doc-body ul.nice > li { background: none !important; border: 0 !important; border-radius: 0; padding: 3px 0 3px 22px; line-height: 1.55; }
.doc-body ul.nice > li::before { left: 3px; top: .68em; width: 8px; height: 8px; border-radius: 50%; transform: none; background: radial-gradient(circle at 35% 30%, #f6dc8f 0%, #d4a73a 55%, #a57a17 100%); box-shadow: 0 0 0 2px rgba(212,167,58,.18); }
.doc-body ol.nice-num { gap: 0; margin: 6px 0 12px; }
.doc-body ol.nice-num > li { background: none !important; border: 0 !important; border-radius: 0; padding: 4px 0; gap: 10px; }
.doc-body ol.nice-num > li > i.n { width: 24px; height: 24px; font-size: 12px; margin-top: 1px; background: linear-gradient(150deg, #f6dc8f, #d4a73a); color: #3a2a06; border: 0; box-shadow: 0 2px 6px -2px rgba(165,122,23,.6); }
.doc-body ol.nice-num > li > div { padding-top: 0; }
.doc-body.clean ul:not(.nice):not(.soap) { list-style: none; padding-left: 0; margin: 6px 0 12px; }
.doc-body.clean ul:not(.nice):not(.soap) > li { position: relative; padding: 2px 0 2px 22px; margin: 0; }
.doc-body.clean ul:not(.nice):not(.soap) > li::before { content: ''; position: absolute; left: 3px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6dc8f 0%, #d4a73a 55%, #a57a17 100%); box-shadow: 0 0 0 2px rgba(212,167,58,.18); }
.doc-body.clean ol:not(.nice-num):not(.soap) { padding-left: 1.5em; margin: 6px 0 12px; }
.doc-body.clean ol:not(.nice-num):not(.soap) > li { margin: 0; padding: 2px 0 2px 4px; }
.doc-body.clean ol:not(.nice-num):not(.soap) > li::marker { color: #b48a2c; }
.doc-body.clean li > p { margin: 0; }
