:root{--ink:#253b33;--muted:#788079;--green:#244c3e;--border:#e4e5dd;--paper:#fafbf7;--cream:#f1f1e9;font-family:'DM Sans',Segoe UI,sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.45;cursor:not-allowed}button,a,input,textarea,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid #987b3b}input:focus,textarea:focus,select:focus{outline:2px solid #a3b7a2;outline-offset:1px}a{color:var(--green)}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.topbar{height:83px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:32px;padding:0 32px;background:#fffefb}.logo{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-size:24px;font-weight:600;letter-spacing:-1px}.logo-mark{width:38px;height:40px;background:var(--green);border-radius:11px;color:#edce92;display:grid;place-items:center}.logo-mark svg{width:23px;height:23px}.logo span:last-child{font-weight:400;color:#92998e;margin-left:5px;font-size:11px;letter-spacing:.13em;text-transform:uppercase}.top-divider{width:1px;height:28px;background:var(--border)}.session-name{border:0;background:transparent;padding:5px 0;color:#59665c;width:200px;font-size:14px}.top-actions{margin-left:auto;display:flex;gap:9px;align-items:center}.save-status{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px;margin-right:14px}.save-status::before{content:'';background:#70927c;width:6px;height:6px;border-radius:100%}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border:1px solid var(--border);border-radius:8px;padding:10px 14px;background:#fffefb;color:var(--ink);font-weight:500;font-size:13px;line-height:20px;text-decoration:none;transition:background .15s}.button:hover{background:#eeefe6}.button.primary{background:var(--green);border-color:var(--green);color:white}.button.primary:hover{background:#173d30}.button.gold{background:#e5c68b;border-color:#e5c68b;color:#2a382e}.button svg{width:16px;height:16px}.button.ghost{background:transparent;border-color:transparent}.icon-button{width:32px;height:32px;display:inline-grid;place-items:center;border-radius:6px;border:1px solid var(--border);background:transparent;color:#58665b;font-size:21px}.icon-button:hover{background:var(--cream)}.icon-button svg{width:17px;height:17px}
.workspace{display:grid;grid-template-columns:366px minmax(0,1fr);min-height:calc(100vh - 83px)}.sidebar{border-right:1px solid var(--border);background:#fffefb;padding:26px 24px;display:flex;flex-direction:column}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.15em;color:#899184}.sidebar-title{font-family:'Libre Baskerville',Georgia,serif;font-size:25px;font-weight:400;letter-spacing:-.6px;margin:8px 0 20px}.steps{display:flex;border-bottom:1px solid var(--border);margin-bottom:24px;gap:2px}.step{flex:1;color:#94988d;background:transparent;padding:0 0 13px;text-align:center;border-bottom:2px solid transparent;font-size:12px}.step.active{color:var(--green);border-color:var(--green);font-weight:700}.step .num{border:1px solid #d4d9cf;border-radius:50%;width:16px;height:16px;display:inline-grid;place-items:center;margin-right:4px;font-size:9px}.step.active .num{background:var(--green);color:white;border-color:var(--green)}.section-title{font-size:14px;margin:0 0 6px;font-weight:600}.hint{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 17px}.label{display:block;font-size:11px;font-weight:600;color:#687264;margin:16px 0 7px}.input,textarea,select{width:100%;border:1px solid #dfe3d8;border-radius:7px;background:#fcfcf8;color:var(--ink);padding:10px 11px;font-size:13px}textarea{resize:vertical;line-height:1.65;min-height:100px}input[type=color]{padding:3px;width:44px;height:34px}input[type=range]{accent-color:var(--green);padding:0}.lookup-row{display:flex;gap:6px}.lookup-row input{min-width:0}.lookup-row .button{padding:8px 10px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.small-note{font-size:10px;color:#8a9085;line-height:1.7;margin:7px 0}.inline-link{background:transparent;color:var(--green);font-size:11px;text-decoration:underline;padding:0}.source-note{border-top:1px solid var(--border);padding-top:16px;margin-top:22px;font-size:10px;line-height:1.7;color:#8c9186}.source-note a{color:inherit}.subtle-card{background:#f2f3eb;border:1px solid #e5e8db;border-radius:8px;padding:13px;margin-top:16px}.subtle-card .hint{margin:0}.subtle-card strong{font-size:12px;font-weight:600}.word-picker{font-family:Georgia,serif;font-size:16px;line-height:1.95;background:#f7f7ef;border:1px solid var(--border);border-radius:8px;padding:13px 12px;margin:12px 0;max-height:210px;overflow:auto}.word-token{display:inline;background:none;color:#4c594b;padding:1px 2px;border-radius:3px;font:inherit;line-height:inherit}.word-token:hover{background:#e7dfc9}.word-token.selected{background:#e8d3a7;color:#46391e}.note-chips{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.note-chip{padding:5px 9px;background:#eff1e6;border:1px solid #e0e4d6;border-radius:5px;font-size:11px;color:#5f6b58}.note-chip.active{background:var(--green);color:white;border-color:var(--green)}.dictionary-result{font-size:12px;padding:12px 0;border-top:1px solid var(--border)}.dictionary-result strong{font-size:16px;font-weight:500}.dictionary-result p{line-height:1.65;max-height:130px;overflow:auto}.dictionary-result .button{padding:4px 9px;font-size:11px}.results-area{max-height:330px;overflow:auto}.result-status{font-size:12px;color:#787b6c;line-height:1.7}.status-error{color:#a14c3c}.theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.theme-button{border:1px solid var(--border);padding:5px;border-radius:8px;background:white;text-align:left;font-size:11px;color:#6a7367}.theme-button.active{border:2px solid var(--green);padding:4px}.theme-sample{height:62px;border-radius:4px;display:grid;place-items:center;font-family:Georgia,serif;font-size:19px;margin-bottom:6px}.theme-button span{padding:2px 4px;display:block}.theme-midnight{background:radial-gradient(ellipse at 95% 100%,#34404d,transparent 65%),#141e29;color:#f4eedf}.theme-parchment{background:#eee4cd;color:#423c30}.theme-forest{background:radial-gradient(ellipse at 95% 100%,#44634c,transparent 65%),#163b31;color:#f2efdf}.theme-plum{background:radial-gradient(ellipse at 95% 100%,#5b3b52,transparent 65%),#2a2033;color:#f2e9de}.toggle-row{display:flex;align-items:center;gap:10px;font-size:12px;margin-top:14px}.toggle-row input{accent-color:var(--green);width:15px;height:15px}.sidebar-footer{margin-top:auto;padding-top:28px;display:flex;align-items:center;gap:8px;color:#959b90;font-size:10px}.sidebar-footer svg{width:14px;height:14px}
.main{padding:30px 36px 24px;min-width:0}.main-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.main-heading h1{font-family:'Libre Baskerville',Georgia,serif;font-size:24px;font-weight:400;letter-spacing:-.7px;margin:0 0 7px}.main-heading p{font-size:12px;color:#93988b;margin:0}.preview-label{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:600;letter-spacing:.1em}.preview-label .dot{background:#b99458;width:6px;height:6px;border-radius:50%}.aspect-badge{font-size:10px;color:#7e8779;letter-spacing:.03em;border:1px solid var(--border);padding:6px 8px;border-radius:4px}.preview-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 11px}.stage-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:9px;background:#141e29;box-shadow:0 13px 30px #22302912}.stage-canvas{position:absolute;left:0;top:0;width:1920px;height:1080px;transform-origin:0 0;overflow:hidden;color:var(--fg);background:var(--bg);font-family:var(--slide-font,Georgia,serif)}.stage-canvas::before{content:'';position:absolute;pointer-events:none;width:1300px;height:1300px;border:1px solid var(--line);border-radius:50%;right:-750px;bottom:-850px;box-shadow:0 0 0 90px var(--line2),0 0 0 180px var(--line3)}.stage-canvas::after{content:'';position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none;background:radial-gradient(ellipse at 100% 110%,var(--glow),transparent 62%)}.stage-inner{position:absolute;inset:100px 136px;display:flex;flex-direction:column;z-index:1}.slide-kicker{font-family:'DM Sans',Segoe UI,sans-serif;color:var(--accent);font-size:22px;letter-spacing:.24em;font-weight:500;text-transform:uppercase}.slide-rule{width:66px;height:3px;background:var(--accent);margin-top:30px}.slide-content{flex:1;min-height:0;display:flex;align-items:center;gap:95px;padding:48px 0 40px}.verse-area{flex:1;min-width:0;max-height:100%;overflow:hidden}.verse-text{font-weight:400;line-height:1.46;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;max-height:650px}.verse-text mark{color:var(--accent);background:transparent}.study-area{width:43%;border-left:1px solid var(--line);padding-left:62px;max-height:100%;overflow:hidden}.study-label{font-family:'DM Sans',Segoe UI,sans-serif;font-size:20px;letter-spacing:.2em;color:var(--accent);margin-bottom:18px;text-transform:uppercase}.study-word{font-size:90px;line-height:1.1;margin:0 0 20px;font-weight:400;overflow-wrap:anywhere}.study-original{font-family:Georgia,serif;font-size:37px;color:var(--accent);line-height:1.4;overflow-wrap:anywhere}.study-meta{font-family:'DM Sans',Segoe UI,sans-serif;font-size:23px;line-height:1.5;opacity:.65;margin-top:10px}.study-meaning{font-family:'DM Sans',Segoe UI,sans-serif;font-size:33px;line-height:1.6;margin:32px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.slide-footer{display:flex;align-items:center;justify-content:space-between;font-family:'DM Sans',Segoe UI,sans-serif;font-size:24px;letter-spacing:.06em;color:var(--fg);opacity:.7;gap:40px}.slide-footer span:last-child{font-size:18px;letter-spacing:.14em;text-align:right}.stage-canvas.blank{background:#000!important}.stage-canvas.blank>*{visibility:hidden}.stage-canvas.blank::before,.stage-canvas.blank::after{display:none}.empty-stage{text-align:center;color:#e0dccb;font-size:50px;line-height:1.5;margin:auto}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px 0 25px}.preview-caption{color:#949b8d;font-size:11px;display:flex;align-items:center;gap:7px}.preview-caption svg{width:14px;height:14px}.toolbar-actions{display:flex;gap:8px}.keyboard-hint{font-size:10px;color:#9ca294}.deck-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.deck-heading h2{font-size:13px;font-weight:600;margin:0}.deck-heading span{font-size:11px;color:#92998a}.deck{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 12px}.slide-card{min-width:160px;max-width:180px;flex:0 0 23%;padding:5px;border:1px solid var(--border);border-radius:7px;background:#fffefb;text-align:left;color:var(--ink)}.slide-card.active{border:2px solid #71856b;padding:4px}.slide-card-art{aspect-ratio:16/9;border-radius:3px;padding:13px 14px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden;font-family:Georgia,serif}.slide-card-art .mini-ref{font-family:Segoe UI,sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:7px;opacity:.65;margin-bottom:7px}.slide-card-art .mini-text{font-size:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.slide-card-art .mini-word{color:#dfbf80;font-size:17px}.slide-card-bottom{display:flex;align-items:center;gap:7px;padding:9px 5px 4px;font-size:10px}.slide-card-bottom .index{color:#9ba28e}.slide-card-bottom .live-pin{margin-left:auto;background:#e7eee2;color:#53704d;font-size:8px;padding:3px 5px;border-radius:3px}.add-study-card{min-width:130px;max-width:160px;flex:0 0 21%;border:1px dashed #d3d9c9;border-radius:7px;background:transparent;display:grid;place-content:center;gap:7px;color:#8b967e;font-size:11px}.add-study-card svg{margin:0 auto;width:22px;height:22px}.live-bar{display:flex;align-items:center;gap:13px;background:#e9eee3;border:1px solid #dce4d3;border-radius:8px;padding:12px 14px;margin-top:12px}.live-dot{width:7px;height:7px;background:#7c9470;border-radius:50%}.live-copy{font-size:11px;color:#627357;line-height:1.6}.live-copy strong{color:#435a3a;font-weight:600}.live-controls{margin-left:auto;display:flex;gap:6px}.live-controls .button{padding:5px 9px;font-size:11px;background:#f7f9f2}.live-controls .icon-button{background:#f7f9f2}.footer-tip{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#9ba18f;margin-top:24px;gap:20px}.footer-tip a,.footer-tip button{color:inherit}.footer-tip button{background:transparent;font-size:10px;padding:0;text-decoration:underline}
dialog{border:1px solid #e3e6da;border-radius:14px;padding:28px 32px;width:620px;max-width:calc(100vw - 30px);box-shadow:0 20px 80px #152c3433;background:#fffef9;color:var(--ink)}dialog::backdrop{background:#15272080;backdrop-filter:blur(4px)}.dialog-top{display:flex;justify-content:space-between;align-items:center}dialog h2{font-family:Georgia,serif;font-weight:400;font-size:31px;margin:14px 0 25px}.setup-step{display:flex;gap:14px;margin:22px 0}.setup-step .n{width:25px;height:25px;border-radius:50%;background:#e8ede0;display:grid;place-items:center;font-size:11px;flex-shrink:0}.setup-step h3{font-size:13px;margin:3px 0 6px}.setup-step p{font-size:12px;color:#7c8476;line-height:1.75;margin:0}.code-line{display:block;padding:11px;background:#edf0e6;border:1px solid #dce3d0;border-radius:6px;font-size:12px;overflow-wrap:anywhere;margin:10px 0;color:#45613d}.setup-panel{border-top:1px solid var(--border);margin-top:20px;padding-top:20px}.setup-panel h3{font-size:13px;font-weight:600;margin:0 0 8px}.setup-panel p{font-size:12px;line-height:1.8;color:#818875}.setup-panel ol{font-size:12px;line-height:1.8;color:#818875;padding-left:20px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:#223d30;color:white;padding:12px 20px;border-radius:8px;font-size:12px;box-shadow:0 5px 30px #12281e26;opacity:0;pointer-events:none;z-index:100;transition:.2s;max-width:90vw;line-height:1.5}#toast.visible{opacity:1;transform:translate(-50%,0)}
.output-body{background:#000;overflow:hidden}.output-body .output-wrap{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#000}.output-body .stage-frame{max-width:177.7778vh;max-height:56.25vw;border-radius:0;box-shadow:none;flex-shrink:0}.output-tools{position:fixed;bottom:15px;right:15px;display:flex;gap:7px;z-index:4;opacity:0;transition:opacity .2s}.output-body:hover .output-tools,.output-tools:focus-within{opacity:1}.output-tools .button{background:#1a2627cc;border:1px solid #7b8b7955;color:#ddd9c9}.output-body.obs .output-tools{display:none}
@media(min-width:1600px){.main{padding:35px 65px}.workspace{grid-template-columns:380px minmax(0,1fr)}.sidebar{padding:30px}.main-heading{margin-bottom:25px}.slide-card{min-width:190px;max-width:220px}}
@media(max-width:1100px){.topbar{padding:0 20px;gap:18px}.logo span:last-child,.save-status{display:none}.workspace{grid-template-columns:315px minmax(0,1fr)}.sidebar{padding:25px 18px}.main{padding:27px 22px}.top-actions .button{padding:8px 10px}.session-name{width:145px}.main-heading h1{font-size:21px}.keyboard-hint{display:none}.live-bar{flex-wrap:wrap}.live-controls{margin-left:0}.slide-card{min-width:145px}.footer-tip{align-items:flex-start;line-height:1.7}}
@media(max-width:760px){.topbar{height:69px;padding:0 15px;gap:10px}.logo{font-size:21px}.logo-mark{width:33px;height:34px}.session-name,.top-divider{display:none}.top-actions{gap:5px}.top-actions .button{font-size:11px;padding:7px 9px}.top-actions .button svg{display:none}.workspace{display:flex;flex-direction:column;min-height:auto}.sidebar{order:2;border-right:0;border-top:1px solid var(--border);padding:23px 20px}.main{order:1;padding:23px 16px 18px}.main-heading{margin-bottom:18px}.main-heading h1{font-size:20px}.main-heading p{font-size:11px}.main-heading>.button{font-size:11px;padding:7px 9px}.preview-toolbar{margin:12px 0 18px}.preview-caption{font-size:10px}.toolbar-actions .button{font-size:11px;padding:5px 8px}.slide-card{min-width:135px;max-width:155px}.footer-tip{display:none}.live-bar{padding:10px;gap:8px}.sidebar-title{font-size:23px}.sidebar-footer{padding-top:22px}.source-note{margin-top:16px}dialog{padding:23px}.button{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.screen-toggle{border-color:#bf9b7f;color:#865939;background:#fffaf4}.screen-toggle:hover{background:#f6e9d9}.screen-toggle[data-hidden=true]{border-color:#b7c9b3;color:#365c3a;background:#edf3e8}.preview-toolbar{flex-wrap:wrap}.toolbar-actions{margin-left:auto;flex-wrap:wrap}

.note-chip{display:inline-flex;align-items:center;gap:6px}.word-swatch{display:inline-block;width:9px;height:9px;border-radius:50%;box-shadow:0 0 0 1px #00000020;flex-shrink:0}.word-token.highlighted{text-decoration:underline;text-decoration-color:var(--word-color);text-decoration-thickness:3px;text-underline-offset:3px}.word-color-controls{display:flex;align-items:center;gap:7px}.word-color-controls .input{min-width:0;flex:1;font-family:monospace}.word-color-controls input[type=color]{flex-shrink:0;width:42px;height:38px}.word-color-controls .button{font-size:10px;padding:8px}.word-color-swatches{display:flex;gap:8px;margin-top:9px}.color-swatch{width:29px;height:29px;border-radius:50%;border:3px solid #fffefb;box-shadow:0 0 0 1px #d6dccd;background:var(--swatch)}.color-swatch.active{box-shadow:0 0 0 2px #45633e}.word-color-status{min-height:16px}

/* Per-word emphasis keeps each selected color and style independent. */
.verse-text mark,.study-word mark,.text-slide-layout mark{background:transparent;color:inherit;padding:0;text-decoration:none;box-decoration-break:clone;-webkit-box-decoration-break:clone}
mark[data-emphasis=highlight],.word-token.highlighted[data-emphasis=highlight]{background:var(--word-color);color:var(--mark-ink);border-radius:.06em;padding:.015em .06em;text-decoration:none}
mark[data-emphasis=underline],.word-token.highlighted[data-emphasis=underline]{background:transparent;color:inherit;text-decoration:underline;text-decoration-color:var(--word-color);text-decoration-thickness:.075em;text-underline-offset:.12em;text-decoration-skip-ink:none}
mark[data-emphasis=text],.word-token.highlighted[data-emphasis=text]{background:transparent;color:var(--word-color);text-decoration:none}
mark[data-emphasis=outline],.word-token.highlighted[data-emphasis=outline]{background:transparent;color:inherit;outline:.035em solid var(--word-color);outline-offset:.025em;border-radius:.04em;text-decoration:none}
.word-token.selected{box-shadow:0 0 0 1px #45633e}.word-token:not(.highlighted).selected{background:#e8d3a7}
.template-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}.template-buttons .button{white-space:normal;min-height:42px}
.slide-edit-toolbar{display:flex;flex-wrap:wrap;gap:5px;margin:18px 0 4px}.slide-edit-toolbar .button{padding:5px 8px;font-size:11px}
.body-tools{display:flex;gap:16px;align-items:center;margin:12px 0;font-size:12px}.body-tools input{accent-color:var(--green)}
.size-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.size-fields .input{padding:9px 7px}
.slide-colors{display:flex;justify-content:space-between;margin-bottom:14px}.slide-colors input{width:60px}
.text-slide-layout{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;justify-content:center;gap:36px;padding:8px 3px 24px;white-space:pre-wrap;overflow-wrap:anywhere}
.text-heading-group{display:flex;flex-direction:column;gap:22px;min-width:0}
.text-heading{font-weight:600;line-height:1.15;margin:0;letter-spacing:-.02em}
.text-subtitle{line-height:1.3;opacity:.8}
.text-body{line-height:1.45;margin:0;min-width:0}
.text-bullets{padding-left:1.2em;white-space:normal}.text-bullets li{padding-left:.15em;margin:.18em 0;white-space:pre-wrap}
.layout-title{gap:44px}.layout-title .text-heading{line-height:1.1}
.layout-quote .text-body{font-style:italic}.layout-quote .text-heading-group{order:2}
.layout-split{display:grid;grid-template-columns:1fr 1.3fr;align-content:center;align-items:center;column-gap:90px}
.steps .step{font-size:11px}.step .num{display:none}.sidebar{min-width:0}

[hidden]{display:none!important}@media(min-width:761px){.sidebar{max-height:calc(100vh - 83px);overflow-y:auto;position:sticky;top:0}.workspace{align-items:start}.main{position:sticky;top:0}}

@media(min-width:761px){
 body:not(.output-body){height:100vh;overflow:hidden}
 .workspace{height:calc(100vh - 83px);min-height:0;align-items:stretch}
 .sidebar{position:static;max-height:none;height:100%;overflow:auto}
 .main{position:static;height:100%;overflow:auto;display:flex;flex-direction:column;padding:22px 28px 18px}
 .main-heading{margin-bottom:12px}.main-heading h1{font-size:22px}
 /* Always exactly 16:9 so the canvas fills the frame; narrower when the window is short, so it still fits. */
 .main .stage-frame{aspect-ratio:16/9;width:100%;max-width:max(300px,calc((100vh - 380px) * 16 / 9));margin:0 auto;background:#0b1017}
 .preview-header{margin-bottom:8px}.preview-toolbar{margin:10px 0 14px}
 .deck-heading{margin-bottom:8px}.slide-card{min-width:130px;max-width:150px}
 .slide-card-art{padding:9px}.slide-card-bottom{padding:6px 3px 2px}
 .deck{flex-shrink:0;padding-bottom:6px}.live-bar{padding:8px 12px;margin-top:7px}
 .footer-tip{display:none}
}
.word-token.highlighted[data-emphasis=none]{background:transparent;color:inherit;text-decoration:none}.field-row .body-tools{gap:8px;align-self:end;margin-bottom:10px}

/* Shows, visible verse controls, and the slide organizer. */
.show-switch-bar{height:48px;padding:7px 28px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--border);background:#edf0e7;font-size:11px;color:#64715a}
.show-switch-bar label{font-size:9px;font-weight:700;letter-spacing:.12em;white-space:nowrap}
.show-switch-bar select{width:min(330px,40vw);padding:6px 10px;background:#fffef9;font-weight:600}
.show-private-note{margin-left:auto}.deck-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 8px}
.deck-actions .button{font-size:11px;padding:6px 10px}
.button.danger{color:#963c35;border-color:#dfb6ad;background:#fff9f5}.button.danger:hover{background:#f8e8e2}
button:disabled{opacity:.42;cursor:not-allowed}
.verse-navigation{display:flex;gap:7px}.verse-navigation .button{font-size:11px;padding:7px 10px;flex:1;justify-content:center;white-space:nowrap}
.preview-verse-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.preview-verse-row>span{font-size:12px;font-weight:600;color:#496143}.preview-verse-row .verse-navigation .button{flex:none}
.wide-dialog{width:920px;max-height:90vh;overflow:auto}.wide-dialog h2{margin-bottom:10px}
.show-library-tools{display:flex;gap:8px;align-items:center;margin-top:14px}.show-library-tools .input{flex:1;min-width:0}
.show-list{margin-top:20px;display:grid;gap:10px}.show-row{display:flex;align-items:center;gap:15px;padding:16px;border:1px solid #dce3d3;border-radius:10px;background:#fff}
.show-row.active{border-color:#718b65;background:#f3f6ee}.show-symbol{background:#e8eddf;padding:13px;border-radius:8px;color:#4b6742}.show-symbol svg{width:23px;height:23px}
.show-details{min-width:0;flex:1}.show-name{font-weight:600;background:transparent!important}.show-details p{margin:5px 0 0}
.show-row-actions{display:flex;gap:5px}.show-row-actions .button{padding:7px 10px;font-size:11px}
.organizer-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:20px 0 12px}
.organizer-toolbar label,.organizer-toolbar span,.organizer-transfer label{font-size:12px}.organizer-toolbar span{margin-right:auto}
.organizer-toolbar .button{font-size:11px;padding:7px 9px}.organizer-transfer{display:flex;align-items:center;gap:10px;padding:12px;background:#eef2e7;border-radius:8px}.organizer-transfer select{flex:1;min-width:0}
.organizer-list{display:grid;gap:8px;margin-top:16px}.organizer-row{display:flex;align-items:center;gap:14px;border:1px solid #dce3d3;background:#fff;border-radius:8px;padding:14px}
.organizer-check{display:flex;align-items:center;gap:12px;cursor:pointer}.organizer-check input,.organizer-toolbar input{width:17px;height:17px;accent-color:#45633e}
.organizer-description{flex:1;min-width:0}.organizer-description strong{font-size:13px;overflow-wrap:anywhere}.organizer-description p{font-size:11px;line-height:1.5;color:#737e68;margin:6px 0;overflow-wrap:anywhere}
.empty-list{text-align:center;padding:30px;color:#7c8572;font-size:13px}
@media(min-width:761px){.workspace{height:calc(100vh - 131px)}.main{padding-top:15px}.main-heading{margin-bottom:8px}.main-heading p{margin-bottom:0}.deck-heading{margin-top:4px}.show-switch-bar{flex-shrink:0}}
@media(max-width:1100px){.show-private-note{display:none}.topbar{gap:10px}.top-actions{gap:6px}.topbar .session-name{width:125px}}
@media(max-width:760px){.show-switch-bar{padding:7px 15px;gap:8px}.show-switch-bar select{flex:1;width:auto}.show-switch-bar>span{display:none}.preview-verse-row{flex-wrap:wrap}.wide-dialog{padding:20px}.show-row{flex-wrap:wrap}.show-row-actions{width:100%;justify-content:flex-end}.show-library-tools{flex-wrap:wrap}.show-library-tools .input{flex-basis:100%}.organizer-transfer{flex-wrap:wrap}.organizer-transfer label{width:100%}.organizer-row{gap:8px;padding:10px}.show-symbol{display:none}}

.dialog-feedback{position:sticky;bottom:0;padding:12px 16px;background:#234432;color:#fff;border-radius:7px;font-size:12px;box-shadow:0 3px 16px #0002}

.timer-overlay{position:absolute;z-index:5;min-width:210px;padding:14px 24px;border:2px solid #ffffff45;border-radius:12px;background:#08120ded;color:#fff;font:600 64px/1.15 'Segoe UI',Arial,sans-serif;font-variant-numeric:tabular-nums;text-align:center;box-shadow:0 8px 30px #0004}
.timer-overlay[data-position=top-right]{top:44px;right:50px}.timer-overlay[data-position=top-left]{top:44px;left:50px}.timer-overlay[data-position=bottom-right]{bottom:44px;right:50px}.timer-overlay[data-position=bottom-left]{bottom:44px;left:50px}
.timer-overlay.expired{background:#722d25;color:#fff1d1}.timer-readout{font:600 64px/1.3 'Segoe UI',sans-serif;font-variant-numeric:tabular-nums;padding:15px;text-align:center;background:#edf2e6;border-radius:10px;color:#294733}.timer-readout.expired{color:#9a352d}
.timer-actions{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.main-heading{gap:8px}.main-heading>div:first-child{margin-right:auto}.main-heading>.button{flex-shrink:0}

.scripture-credit{position:absolute;bottom:12px;left:110px;right:110px;color:var(--fg);font:16px/1.3 Arial,sans-serif;opacity:.72;text-align:center}.stage-canvas.blank .scripture-credit{display:none}

/* Timer appearance values are validated before being applied inline. */
.timer-overlay{min-width:0;white-space:nowrap;border:0;box-shadow:none}
.timer-overlay[data-position=top-right]{top:var(--timer-offset-y,44px);right:var(--timer-offset-x,50px)}
.timer-overlay[data-position=top-left]{top:var(--timer-offset-y,44px);left:var(--timer-offset-x,50px)}
.timer-overlay[data-position=bottom-right]{bottom:var(--timer-offset-y,44px);right:var(--timer-offset-x,50px)}
.timer-overlay[data-position=bottom-left]{bottom:var(--timer-offset-y,44px);left:var(--timer-offset-x,50px)}
.timer-appearance-preview{display:flex;justify-content:center;align-items:center;min-height:150px;padding:16px;overflow:auto;border-radius:12px;background:repeating-conic-gradient(#d9ddd7 0% 25%,#f1f3ee 0% 50%) 0 0/20px 20px}
.timer-appearance-preview .timer-readout{display:inline-block;white-space:nowrap;margin:0;line-height:1.15}
#timerDialog input[type=color]{width:100%;height:42px;padding:4px}
@media(max-width:760px){.topbar{height:auto;min-height:83px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.top-actions{flex-wrap:wrap}}
.scene-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:4px 0 10px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:#f6f7f0}
.scene-bar label{font-size:10px;letter-spacing:.12em;font-weight:600;color:var(--muted)}.scene-bar select{max-width:220px}
.scene-bar .scene-name{width:170px;padding:6px 8px;font-size:12px}.scene-bar .button{font-size:11px;padding:6px 10px}.scene-bar .small-note{margin:0 0 0 auto}
.deck-hint{font-size:11px;color:var(--muted);margin-left:auto}
.bulk-bar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 10px;border:1px solid #9fb39a;border-radius:8px;background:#eef3ea}
.bulk-bar strong{font-size:12px;margin-right:6px}.bulk-bar .button{font-size:11px;padding:6px 10px}.bulk-destination{display:flex;align-items:center;gap:6px;font-size:11px;margin-left:6px}
.bulk-destination select{max-width:230px}.bulk-note{margin:4px 0 8px}
.slide-card{position:relative}.slide-card.selecting{cursor:pointer}.slide-card .card-check{position:absolute;top:9px;left:9px;z-index:2;width:18px;height:18px;border:2px solid #fff;border-radius:4px;background:#0006;box-shadow:0 0 0 1px #0005}
.slide-card.selected{outline:3px solid #4f7a46;outline-offset:1px}.slide-card.selected .card-check{background:#4f7a46}
.slide-card.selected .card-check::after{content:'';position:absolute;left:4px;top:0;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.lookup-row{position:relative}.book-suggestions{position:absolute;z-index:20;left:0;right:46px;top:100%;margin:2px 0 0;padding:4px;list-style:none;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #22302922;max-height:240px;overflow:auto}
.book-suggestions li{padding:7px 9px;border-radius:5px;font-size:13px;cursor:pointer}.book-suggestions li span{color:var(--muted);font-size:11px;margin-left:6px}
.book-suggestions li.active,.book-suggestions li:hover{background:#e7eee2}

.stage-pair{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
@media (min-width:1280px){.stage-pair{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start}}
.stage-column{min-width:0}.live-label{color:#b0412f}.live-dot-small{background:#d24b36!important}
.live-mode{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}.live-mode .button{font-size:11px;padding:5px 9px}.live-mode .button.active{background:var(--green);color:#fff}
.live-frame{outline:2px solid #d24b3655}.live-note{margin:6px 0 0}
.live-frame.lower-preview,.stage-frame.graphics-preview{background:repeating-conic-gradient(#3a4148 0 25%,#2c3238 0 50%) 0 0/24px 24px}
.slide-content.fit-mode{padding:var(--fit-pad)}.slide-content.fit-mode .verse-text{max-height:none}
.text-slide-layout.fit-mode{padding:var(--fit-pad)}
html.lower-page,html.lower-page body.lower-body,.lower-body #app,.lower-body .output-wrap,.lower-body .stage-frame{background:transparent!important}
.stage-canvas.lower-canvas,.stage-canvas.lower-canvas.blank{background:transparent!important}
.stage-canvas.lower-canvas::before,.stage-canvas.lower-canvas::after{display:none}
.lower-band{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:.25em;padding:.6em 1.1em;border-radius:14px;overflow:hidden;font-family:var(--slide-font,Georgia,serif);line-height:1.3;white-space:normal;overflow-wrap:break-word}
.lower-heading{font-weight:700;font-size:1.05em}.lower-subtitle{font-size:.68em;opacity:.85}.lower-text{font-size:1em}.lower-text.lower-lines{white-space:pre-line}
.lower-detail{font-family:'DM Sans',Segoe UI,sans-serif;font-size:.72em;opacity:.92}
.lower-ref{font-family:'DM Sans',Segoe UI,sans-serif;font-size:.5em;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);opacity:.95}
.lower-credit{font-family:Arial,sans-serif;font-size:max(.34em,13px);opacity:.75}
/* Clears the browser's default mark style without outranking the per-word emphasis rules (:where adds no specificity). */
:where(.lower-band) mark{background:transparent;color:inherit;padding:0;text-decoration:none}

/* Frames keep 16:9 even inside a short flex column; a shrunk frame made the canvas letterbox inside it. */
.stage-pair,.stage-frame{flex-shrink:0}.main-heading{display:flex;justify-content:flex-end;gap:8px;margin-bottom:10px}
#companionStatus[data-state=offline],#companionStatus[data-state=unpaired],#companionStatus[data-state=error]{color:#a0442f}
.picker-dialog{width:min(1100px,96vw)}.picker-filter{flex:1;margin-right:10px}
.picker-books{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.picker-section{display:flex;flex-wrap:wrap;gap:3px;padding:4px;border-radius:6px}
.book-chip{min-width:44px;padding:5px 4px;border:1px solid transparent;border-radius:4px;font:600 12px 'DM Sans',Segoe UI,sans-serif;color:#22302a;cursor:pointer}
.book-chip.dim{opacity:.25}.book-chip.active{outline:2px solid #22302a;outline-offset:1px}
.sec-law .book-chip{background:#e8d6b4}.sec-history .book-chip{background:#d9e5c6}.sec-poetry .book-chip{background:#f0d0d6}.sec-major .book-chip{background:#cfdcf0}.sec-minor .book-chip{background:#dcd3ef}
.sec-gospels .book-chip{background:#f3c99a}.sec-acts .book-chip{background:#c7e4dd}.sec-paul .book-chip{background:#bfd8ea}.sec-general .book-chip{background:#e3e0c4}.sec-revelation .book-chip{background:#e9c2b8}
.picker-body{display:grid;grid-template-columns:1fr 1fr;gap:16px}.picker-body h3{font-size:12px;margin:4px 0 6px}
.picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:3px;max-height:260px;overflow:auto;padding:2px}
.picker-grid button{padding:6px 0;border:1px solid var(--border);border-radius:4px;background:#fff;font:13px 'DM Sans',Segoe UI,sans-serif;cursor:pointer}
.picker-grid button.active{background:var(--green);color:#fff}.picker-grid button.range{background:#dfe9d8}.picker-grid button.edge{background:#4f7a46;color:#fff}
.picker-footer{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}.picker-footer strong{font-size:15px;min-width:200px}
.picker-recent{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:10px}
@media (max-width:760px){.picker-body{grid-template-columns:1fr}.book-chip{min-width:38px}}

.tip{display:inline-block;margin:2px 0 6px;font-size:11px;color:var(--muted)}.tip summary{list-style:none;cursor:pointer;width:18px;height:18px;border:1px solid var(--border);border-radius:50%;text-align:center;line-height:16px;font-weight:600}
.tip summary::-webkit-details-marker{display:none}.tip[open]{display:block}.tip p{margin:4px 0 0;max-width:46ch}

.song-results{display:flex;flex-direction:column;gap:2px;max-height:300px;overflow:auto;margin:6px 0;border:1px solid var(--border);border-radius:8px;padding:3px}
.song-row{display:flex;justify-content:space-between;gap:8px;padding:6px 8px;border:0;border-radius:5px;background:none;text-align:left;font:13px 'DM Sans',Segoe UI,sans-serif;cursor:pointer}
.song-row:hover,.song-row.active{background:#e7eee2}.song-row small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}
.song-detail{border:1px solid var(--border);border-radius:8px;padding:10px;margin:8px 0;display:flex;flex-direction:column;gap:6px}
.song-order{display:flex;flex-wrap:wrap;gap:4px}.song-entry{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 0;border-top:1px solid var(--border)}.song-entry strong{flex:1;min-width:140px}
.song-subtitle{margin-top:14px}
.live-song-bar{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-top:6px}.live-song-bar .button{font-size:11px;padding:4px 8px}.live-song-bar .button.active{background:var(--green);color:#fff}
.song-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}#songLyrics{font-family:Consolas,'Courier New',monospace;font-size:13px}

.stage-canvas.graphics-canvas{background:transparent!important}.stage-canvas.graphics-canvas::before,.stage-canvas.graphics-canvas::after{display:none}
.graphics-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.graphics-logo{position:absolute;height:auto}
.graphics-card{position:absolute;max-width:1500px;padding:22px 40px;border-radius:14px;background:rgba(11,21,32,.86);color:#fff;font-family:'DM Sans',Segoe UI,sans-serif}
.graphics-card-title{font-size:56px;font-weight:700;line-height:1.15}.graphics-card-subtitle{font-size:34px;opacity:.88;margin-top:6px}
.graphics-timer{position:absolute}.graphics-timer[hidden]{display:none}
.graphics-preview{max-width:560px;margin:4px auto}.graphics-row{border:1px solid var(--border);border-radius:8px;margin:8px 0;padding:6px 10px}
.graphics-row legend{font-weight:600;font-size:12px;display:flex;align-items:center;gap:8px}.graphics-row legend .button{font-size:11px;padding:3px 9px}.graphics-row legend .button.active{background:#7a2b22;color:#fff}
.graphics-on{font-size:10px;color:#b0412f;letter-spacing:.08em;text-transform:uppercase}.graphics-row .field-row{gap:6px;align-items:center}.graphics-row .input[type=number]{width:80px}
.graphics-num,.graphics-text{display:inline-flex;align-items:center;gap:4px;font-size:11px}.graphics-text .input{min-width:200px}
.song-badge{font-weight:600;color:var(--green);font-size:10px;letter-spacing:.04em}
.versions-list{display:grid;gap:6px;max-height:55vh;overflow:auto;margin-top:8px}.version-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:8px 10px;border:1px solid var(--line,#ddd);border-radius:10px}.version-row strong{display:block}.version-row .small-note{margin:2px 0 0}
.remote-state{font-weight:600;margin:6px 0}.remote-section{margin-top:14px}.remote-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.remote-urls{display:flex;flex-wrap:wrap;gap:16px;margin-top:8px}.remote-url{margin:0;display:flex;flex-direction:column;align-items:center;gap:6px}.remote-url svg{width:170px;height:170px;stroke:none;border:1px solid #e3e6da;border-radius:6px}
.remote-url figcaption{display:flex;flex-direction:column;align-items:center;font-size:13px}.remote-url figcaption span{font-size:11px;color:var(--muted)}.remote-help{margin-top:10px;font-size:12px}
.rundown{margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid var(--line,#e3e6da)}.rundown-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.rundown-head .section-title{margin:0}
.item-list{list-style:none;margin:6px 0;padding:0;display:grid;gap:3px;max-height:34vh;overflow:auto}.item-row{width:100%;display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;align-items:center;text-align:left;padding:6px 8px;border:1px solid transparent;border-radius:8px;background:transparent;font:inherit;cursor:pointer}
.item-row:hover{background:#f1f3ec}.item-row.selected{background:#e6ede6;border-color:#9bb3a2}.item-kind{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#6b7068)}.item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-count{font-size:12px;color:var(--muted,#6b7068)}.item-live{font-size:10px;font-weight:700;color:#fff;background:#b0412f;border-radius:4px;padding:1px 5px}
.item-actions{margin-top:6px}.item-actions summary{cursor:pointer;font-size:13px}.item-buttons{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.item-list{position:relative}.deck{position:relative}
/* Desktop: the Items list and the editor tabs stay in place; only the editor below them scrolls. The list and the
   Item actions each have their own bounded scroll, so a long service or the actions never take over the editor. */
@media(min-width:761px){
 .sidebar{overflow:hidden;padding-bottom:0}
 .rundown,.sidebar .steps{flex:none}
 .rundown{max-height:min(40vh,400px);overflow-y:auto}
 .item-list{max-height:min(24vh,250px)}
 #panel{flex:1 1 auto;min-height:0;overflow-y:auto;padding-bottom:24px;margin-right:-8px;padding-right:8px}
}
.rundown-head-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.rundown-head-actions .button{padding:4px 10px;font-size:12px;min-height:0}#connectObs{margin-top:6px}
/* Bible references read more easily: the reference field and preview label in the studio, and the reference line on
   Bible slides (text-slide footers keep their own size). */
#referenceLookup{font-size:17px;font-weight:600}
.preview-verse-row>span{font-size:15px}
.slide-footer.scripture-footer{font-size:30px;font-weight:600;opacity:.82}
.scripture-version{font-size:22px;opacity:.7;font-weight:500}

/* Background image behind full-screen slides: the theme color shows if it is missing. */
.stage-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* The fade uses the theme color, so text keeps the theme contrast on any photo. */
.stage-dim{position:absolute;inset:0;background:var(--bg)}
.stage-canvas.has-background::before,.stage-canvas.has-background::after{display:none}
