diff --git a/CHANGELOG.md b/CHANGELOG.md index 45928c7..059e159 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi ## [Unreleased] ### Changed +- **Audiobook/Reader stylesheet extraction.** Reader controls, Audiobook casting, page layout, character overlays, + and confidence/recast styles now live in `static/css/audiobook.css` with release cache busting. - **Rehearser stylesheet extraction.** The main Rehearser layout, cast, stage, training, library, and script-view rules now live in `static/css/rehearser.css`, loaded after the core stylesheet with release cache busting. - **Rehearser cast-renderer extraction.** The full cast-card renderer and delegated cast interactions now live in diff --git a/TODO.md b/TODO.md index ec07c33..5c8fe16 100644 --- a/TODO.md +++ b/TODO.md @@ -143,7 +143,7 @@ architecture change: the larger Audiobook/Rehearser/style split. - [x] Split background-job history and retry-panel styles into `static/css/background-jobs.css`. - [x] Split Voice Design form and sample-grid styles into `static/css/voice-design.css`. - [x] Split `style.css` by feature; Rehearser rules now live in `static/css/rehearser.css` alongside the existing - diagnostics, background-job, and voice-design feature styles. + diagnostics, background-job, voice-design, and Audiobook/Reader feature styles. - [ ] Do not migrate to TypeScript or rewrite the frontend until behavior is covered by tests. ## P1 — Frontend performance and memory safety diff --git a/VERSION b/VERSION index 067233c..eb6fac4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.24.45 +1.24.46 diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 5610ded..cb4962b 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -43,6 +43,7 @@ Done incrementally as global-scope ordered files (no ES-module change needed) - ✅ `static/css/background-jobs.css` — isolated background-job history and retry-panel styles. - ✅ `static/css/voice-design.css` — isolated Voice Design form, samples, and preview-match styles. - ✅ `static/css/rehearser.css` — isolated Rehearser modal, cast, stage, training, bookshelf, and script-view styles. +- ✅ `static/css/audiobook.css` — isolated Reader/Audiobook controls, casting feed, page layout, character overlays, and review styles. - ✅ `rehearser-train.js` — transcript normalization, LCS comparison, and word-level training feedback; microphone/state wiring remains in `rehearser.js`. - ✅ `rehearser-library.js` — SQLite persistence helpers and IndexedDB migration; import/export and auto-save remain in `rehearser.js` until their UI/event-handler dependencies are isolated. diff --git a/static/css/audiobook.css b/static/css/audiobook.css new file mode 100644 index 0000000..8f21fb3 --- /dev/null +++ b/static/css/audiobook.css @@ -0,0 +1,1790 @@ +/* ── Read Aloud reader ─────────────────────────────────────────────────── */ +.reader-controls { + display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; +} +.reader-ctl { margin: 0; min-width: 150px; } +.reader-ctl-grow { flex: 1 1 200px; } +.reader-ctl-sm { min-width: 96px; max-width: 130px; } +.reader-ctl-sm input { width: 100%; } +.reader-norm-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--subtext); white-space: nowrap; align-self: center; cursor: pointer; } +.reader-backend-hint { margin-top: 10px; font-size: 12px; color: var(--subtext); display: flex; align-items: flex-start; gap: 6px; } +.reader-backend-hint .mdi { color: var(--accent); flex-shrink: 0; } +.reader-backend-hint b { color: var(--text); } +.reader-backend-hint.reader-hint-warn { color: var(--text); } +.reader-backend-hint:empty { display: none; } +.reader-voice-pick { display: flex; gap: 6px; } +.reader-voice-pick select { flex: 1; min-width: 0; } +.reader-speed-label { color: var(--accent); font-weight: 700; } +.reader-ctl input[type=range] { width: 100%; accent-color: var(--accent); } +.reader-import-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } + +#s-reader .reader-tuning-panel { + margin-top: 12px; + display: grid; + grid-template-columns: 1fr; + gap: 8px; + padding: 10px 12px; + border: 1px solid var(--border); + border-radius: 8px; + background: var(--bg); +} +#s-caststudio .reader-tuning-panel { + margin-top: 12px; + display: grid; + grid-template-columns: 1fr; + gap: 8px; + padding: 10px 12px; + border: 1px solid var(--border); + border-radius: 8px; + background: var(--bg); +} +#s-reader .reader-tuning-row { + grid-column: 1; + display: grid; + grid-template-columns: 136px minmax(130px, 220px) minmax(220px, 1fr); + gap: 12px; + align-items: center; +} +#s-caststudio .reader-tuning-row { + grid-column: 1; + display: grid; + grid-template-columns: 136px minmax(130px, 220px) minmax(220px, 1fr); + gap: 12px; + align-items: center; +} +#s-reader .reader-tuning-row label { + margin: 0; + color: var(--subtext); + font-size: 12px; + font-weight: 800; + text-transform: uppercase; + letter-spacing: .02em; +} +#s-caststudio .reader-tuning-row label { + margin: 0; + color: var(--subtext); + font-size: 12px; + font-weight: 800; + text-transform: uppercase; + letter-spacing: .02em; +} +#s-reader .reader-tuning-row input[type="number"], +#s-caststudio .reader-tuning-row input[type="number"], +#s-reader .reader-tuning-row input[type="range"], +#s-caststudio .reader-tuning-row input[type="range"] { + width: 100%; + min-width: 0; +} +#s-reader .reader-tuning-row input[type="range"] { accent-color: var(--accent); } +#s-caststudio .reader-tuning-row input[type="range"] { accent-color: var(--accent); } +#s-reader .reader-tuning-help { + color: var(--subtext); + font-size: 12px; + line-height: 1.35; +} +#s-caststudio .reader-tuning-help { + color: var(--subtext); + font-size: 12px; + line-height: 1.35; +} +#s-reader .reader-tuning-panel .reader-backend-hint { + /* Used to sit beside the 4 tuning rows, forced to stretch to their + combined height (grid-row: 1 / span 4) regardless of how short its own + text was — most of the time that left a large empty gap below a + 1-3 line hint. Full-width below the rows instead, sized to its own + content, so there's no reserved space to be empty in the first place. */ + margin: 4px 0 0; + padding: 10px 12px; + border: 1px solid var(--border); + border-radius: 8px; + background: var(--surface); + min-width: 0; +} +#s-caststudio .reader-tuning-panel .reader-backend-hint { + /* Used to sit beside the 4 tuning rows, forced to stretch to their + combined height (grid-row: 1 / span 4) regardless of how short its own + text was — most of the time that left a large empty gap below a + 1-3 line hint. Full-width below the rows instead, sized to its own + content, so there's no reserved space to be empty in the first place. */ + margin: 4px 0 0; + padding: 10px 12px; + border: 1px solid var(--border); + border-radius: 8px; + background: var(--surface); + min-width: 0; +} +#s-reader .reader-tuning-panel .reader-backend-hint:empty { display: none; margin: 0; } +#s-caststudio .reader-tuning-panel .reader-backend-hint:empty { display: none; margin: 0; } + +#s-reader .reader-source-panel { + margin-top: 12px; + padding: 12px; + border: 1px solid var(--border); + border-radius: 10px; + background: linear-gradient(180deg, var(--surface), var(--bg)); +} +#s-caststudio .reader-source-panel { + margin-top: 12px; + padding: 12px; + border: 1px solid var(--border); + border-radius: 10px; + background: linear-gradient(180deg, var(--surface), var(--bg)); +} +#s-reader .reader-source-head { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + margin-bottom: 10px; +} +#s-caststudio .reader-source-head { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + margin-bottom: 10px; +} +#s-reader .reader-source-head div { + min-width: 0; + display: flex; + align-items: baseline; + gap: 10px; + flex-wrap: wrap; +} +#s-caststudio .reader-source-head div { + min-width: 0; + display: flex; + align-items: baseline; + gap: 10px; + flex-wrap: wrap; +} +#s-reader .reader-source-head strong { + display: inline-flex; + align-items: center; + gap: 6px; + color: var(--text); + font-size: 13px; +} +#s-caststudio .reader-source-head strong { + display: inline-flex; + align-items: center; + gap: 6px; + color: var(--text); + font-size: 13px; +} +#s-reader .reader-source-head span { + color: var(--subtext); + font-size: 12px; +} +#s-caststudio .reader-source-head span { + color: var(--subtext); + font-size: 12px; +} +#s-reader .reader-source-grid { + display: grid; + grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); + gap: 12px; + align-items: stretch; +} +#s-caststudio .reader-source-grid { + display: grid; + grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); + gap: 12px; + align-items: stretch; +} +#s-reader .reader-paste-panel { + min-width: 0; + display: flex; + flex-direction: column; + gap: 8px; + padding: 12px; + border: 1px solid var(--border); + border-radius: 8px; + background: var(--surface); +} +#s-caststudio .reader-paste-panel { + min-width: 0; + display: flex; + flex-direction: column; + gap: 8px; + padding: 12px; + border: 1px solid var(--border); + border-radius: 8px; + background: var(--surface); +} +#s-reader .reader-source-method { + display: flex; + align-items: flex-start; + gap: 8px; + color: var(--subtext); +} +#s-caststudio .reader-source-method { + display: flex; + align-items: flex-start; + gap: 8px; + color: var(--subtext); +} +#s-reader .reader-source-method > .mdi { + color: var(--accent); + font-size: 20px; + line-height: 1; +} +#s-caststudio .reader-source-method > .mdi { + color: var(--accent); + font-size: 20px; + line-height: 1; +} +#s-reader .reader-source-method div { + min-width: 0; + display: flex; + flex-direction: column; + gap: 1px; +} +#s-caststudio .reader-source-method div { + min-width: 0; + display: flex; + flex-direction: column; + gap: 1px; +} +#s-reader .reader-source-method strong { + color: var(--text); + font-size: 13px; +} +#s-caststudio .reader-source-method strong { + color: var(--text); + font-size: 13px; +} +#s-reader .reader-source-method span { + color: var(--subtext); + font-size: 12px; + line-height: 1.35; +} +#s-caststudio .reader-source-method span { + color: var(--subtext); + font-size: 12px; + line-height: 1.35; +} +#s-reader .reader-paste-text { + width: 100%; + min-height: 138px; + resize: vertical; + box-sizing: border-box; + border: 1px solid var(--border); + border-radius: 8px; + background: var(--bg); + color: var(--text); + padding: 11px 12px; + font: inherit; + line-height: 1.45; +} +#s-caststudio .reader-paste-text { + width: 100%; + min-height: 138px; + resize: vertical; + box-sizing: border-box; + border: 1px solid var(--border); + border-radius: 8px; + background: var(--bg); + color: var(--text); + padding: 11px 12px; + font: inherit; + line-height: 1.45; +} +#s-reader .reader-paste-text:focus { + outline: none; + border-color: var(--accent); + box-shadow: 0 0 0 3px rgba(37,99,235,.12); +} +#s-caststudio .reader-paste-text:focus { + outline: none; + border-color: var(--accent); + box-shadow: 0 0 0 3px rgba(37,99,235,.12); +} +#s-reader .reader-paste-actions { + display: flex; + align-items: center; + justify-content: flex-end; + gap: 10px; + flex-wrap: wrap; +} +#s-caststudio .reader-paste-actions { + display: flex; + align-items: center; + justify-content: flex-end; + gap: 10px; + flex-wrap: wrap; +} + +.reader-dropzone { + margin-top: 14px; padding: 30px 16px; border: 2px dashed var(--border); + border-radius: 12px; text-align: center; color: var(--subtext); + display: flex; flex-direction: column; align-items: center; gap: 5px; + transition: border-color .15s, background .15s; +} +#s-reader .reader-source-panel .reader-dropzone { + margin-top: 0; + min-height: 100%; + padding: 18px; + border-radius: 8px; + background: var(--surface); + justify-content: center; + gap: 8px; +} +#s-caststudio .reader-source-panel .reader-dropzone { + margin-top: 0; + min-height: 100%; + padding: 18px; + border-radius: 8px; + background: var(--surface); + justify-content: center; + gap: 8px; +} +.reader-dropzone-icon { font-size: 34px; opacity: .5; } +/* "Extract Text" prompt — PDF pages are already visible, but text/OCR extraction + is a separate explicit action (pipeline stage 2) rather than automatic. */ +.reader-extract-banner { + display: flex; align-items: center; gap: 14px; margin: 12px 0; padding: 14px 16px; + border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); +} +.reader-extract-icon { font-size: 30px; color: var(--accent); flex-shrink: 0; } +.reader-extract-info { flex: 1; min-width: 160px; } +.reader-extract-info strong { display: block; color: var(--text); font-size: 14px; } +.reader-extract-info p { margin: 2px 0 0; color: var(--subtext); font-size: 12.5px; } +.reader-dropzone.dragover { border-color: var(--accent); background: rgba(37,99,235,.06); color: var(--accent); } +.reader-dropzone.dragover .reader-dropzone-icon { opacity: 1; } +#s-reader .reader-file-pick { + margin-top: 4px; + cursor: pointer; + display: inline-flex; + align-items: center; + gap: 6px; +} +#s-caststudio .reader-file-pick { + margin-top: 4px; + cursor: pointer; + display: inline-flex; + align-items: center; + gap: 6px; +} + +@media (max-width: 860px) { + #s-reader .reader-source-grid { grid-template-columns: 1fr; } + #s-caststudio .reader-source-grid { grid-template-columns: 1fr; } + #s-reader .reader-tuning-row { grid-template-columns: 1fr; gap: 5px; } + #s-caststudio .reader-tuning-row { grid-template-columns: 1fr; gap: 5px; } +} + +.reader-transport { + display: flex; align-items: center; gap: 14px; flex-wrap: wrap; + margin-top: 14px; padding: 10px 14px; background: var(--surface); + border: 1px solid var(--border); border-radius: var(--radius); +} +.reader-tb-group { display: flex; gap: 4px; } +.reader-progress-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; } +.reader-progress-track { flex: 1; height: 6px; border-radius: 4px; background: var(--panel); overflow: hidden; } +.reader-progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .25s; } +.reader-progress-label { font-size: 12px; color: var(--subtext); white-space: nowrap; min-width: 56px; text-align: right; } +.reader-doc-title { font-size: 13px; font-weight: 700; color: var(--text); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } + +/* Saved-books library */ +.reader-lib-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } +.reader-lib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; } +.reader-book { + position: relative; padding: 18px 16px 16px 24px; border: 1px solid var(--border); + border-radius: 4px 14px 14px 4px; background: var(--surface); cursor: pointer; + transition: border-color .15s, transform .1s, box-shadow .15s; + display: flex; flex-direction: column; aspect-ratio: 1 / 1.35; + box-shadow: inset 5px 0 10px rgba(0,0,0,.03), -1px 0 0 rgba(0,0,0,.06), 0 3px 8px rgba(0,0,0,.05); +} +.reader-book::before { + content: ''; position: absolute; top: 0; bottom: 0; left: 14px; width: 2px; + background: rgba(0,0,0,.04); border-left: 1px solid rgba(255,255,255,.5); +} +.reader-book:hover { + border-color: var(--accent); + box-shadow: inset 5px 0 10px rgba(0,0,0,.03), -1px 0 0 var(--accent), 0 8px 20px rgba(0,0,0,.08); + transform: translateY(-2px); +} +.reader-book-icon { font-size: 28px; color: var(--accent); line-height: 1; z-index: 1; } +.reader-book-title { font-weight: 800; font-size: 15px; margin-top: 10px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.3; z-index: 1; } +.reader-book-meta { font-size: 11px; color: var(--subtext); margin-top: 6px; z-index: 1; } +.reader-book-bar { position: relative; height: 6px; border-radius: 4px; background: var(--panel); margin-top: auto; margin-bottom: 5px; overflow: hidden; border: 1px solid var(--border); z-index: 1; } +.reader-book-bar-synth { position: absolute; inset: 0 auto 0 0; background: rgba(34,197,94,.45); } +.reader-book-bar-read { position: absolute; inset: 0 auto 0 0; background: var(--accent); } +.reader-book-stats { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; color: var(--subtext); z-index: 1; } +.reader-book-del { + position: absolute; top: 8px; right: 8px; border: none; background: rgba(0,0,0,.06); + color: var(--subtext); border-radius: 6px; width: 28px; height: 28px; cursor: pointer; opacity: 0; transition: opacity .15s; + display: flex; align-items: center; justify-content: center; z-index: 5; +} +.reader-book-del .mdi { font-size: 15px; } +.reader-book:hover .reader-book-del { opacity: 1; } +.reader-book-del:hover { color: var(--red, #ef4444); background: rgba(239,68,68,.1); } + +/* Synthesise-ahead bar + range selection */ +.reader-synthbar { + display: flex; align-items: center; flex-wrap: wrap; gap: 10px; + margin-top: 10px; padding: 8px 12px; background: var(--surface); + border: 1px solid var(--border); border-radius: var(--radius); + justify-content: space-between; +} +.reader-page-range { display: inline-flex; align-items: center; gap: 6px; } +.reader-page-inp { + width: 56px; padding: 4px 6px; border: 1px solid var(--border); + border-radius: 6px; background: var(--panel); color: var(--text); font-family: var(--font); +} +#reader-select-toggle.active { background: var(--accent); color: #fff; border-color: var(--accent); } +.reader-sel-info { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); font-weight: 600; } +.reader-sel-clear { border: none; background: none; color: var(--subtext); cursor: pointer; font-size: 13px; padding: 0 2px; } +.reader-sel-clear:hover { color: var(--red, #ef4444); } +.reader-sel-hint { font-size: 12px; color: var(--subtext); } +.reader-sel-hint b { color: var(--accent); } +.reader-export { display: inline-flex; align-items: center; gap: 6px; } + +/* Audiobook live casting — floating, non-blocking, minimisable panel */ +.ab-castpanel { + position: fixed; right: 18px; bottom: 18px; z-index: 1000; + width: min(880px, 96vw); height: 50vh; max-height: 82vh; display: flex; flex-direction: column; + background: var(--surface); border: 1px solid var(--border); border-radius: 12px; + box-shadow: 0 16px 48px rgba(0,0,0,.28); overflow: hidden; resize: both; min-height: 300px; min-width: 400px; +} +.ab-castpanel-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg); cursor: move; flex-shrink: 0; } +.ab-castpanel-head > .mdi { color: var(--accent); font-size: 18px; } +.ab-castpanel-title { font-weight: 800; font-size: 14px; } +.ab-castpanel-count { font-size: 12px; color: var(--subtext); } +.ab-castpanel-btn { border: none; background: none; color: var(--subtext); cursor: pointer; padding: 2px 5px; border-radius: 6px; line-height: 1; } +.ab-castpanel-btn:hover { background: var(--panel); color: var(--text); } +.ab-castpanel-bar { + position: relative; flex: 0 1 760px; min-width: 180px; height: 30px; min-height: 30px; max-height: 30px; + align-self: center; margin: 0 12px 0 0; border-radius: 6px; + background: var(--surface); border: 1px solid var(--border); overflow: hidden; +} +.ab-castpanel-bar .reader-synth-fill { + height: 100%; +} +#ab-cv-fill-text { + position:absolute; inset:0; display:flex; align-items:center; justify-content:center; + font-size:12px; font-weight:800; color:var(--text); + text-shadow:0 1px 2px var(--bg), 0 -1px 2px var(--bg); + pointer-events:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding:0 8px; +} +.ab-castpanel-foot { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--bg); flex-shrink: 0; z-index: 10; position: relative; } +.ab-castpanel-foot #ab-cv-cancel { flex: 0 0 auto; margin-right: 0 !important; } +.ab-cv-done { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; } +.ab-cv-done .mdi { color: #10b981; } +/* minimised → just the header chip in the corner */ +.ab-castpanel.minimized { width: auto; max-width: 320px; height: auto; min-height: auto; resize: none; } +.ab-castpanel.minimized .ab-castpanel-bar, +.ab-castpanel.minimized .ab-cv-body, +.ab-castpanel.minimized .ab-castpanel-foot { display: none; } +.ab-castpanel.minimized .ab-castpanel-head { cursor: pointer; border-bottom: none; } + +.ab-castpanel-inline { + display: flex; + flex-direction: column; + background: var(--panel); + /* Bound to the viewport so the feed scrolls internally instead of pushing + the action bar (Continue casting / Edit in Rehearser / ...) down the page + — without this, .ab-cv-body's flex:1 has no height to divide up against. */ + height: calc(100vh - 230px); + min-height: 420px; + overflow: hidden; +} + +.ab-cv-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; padding: 12px; flex: 1; min-height: 0; min-width: 0; transition: grid-template-columns .15s; } +.ab-cv-body.side-collapsed { grid-template-columns: minmax(0, 1fr) 44px; } +.ab-cv-feed-wrap { position: relative; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--panel); } +.ab-cv-topbar { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 8px; + padding: 0 6px 8px; + flex: 0 0 auto; + min-width: 0; +} +.ab-edit-toolbar { + display: flex; + align-items: center; + justify-content: flex-end; + gap: 4px; + flex: 0 0 auto; + margin-left: auto; +} +.ab-edit-btn { + width: 28px; + height: 28px; + display: inline-flex; + align-items: center; + justify-content: center; + border: 1px solid var(--border); + border-radius: 6px; + background: var(--surface); + color: var(--subtext); + cursor: pointer; +} +.ab-edit-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); background: var(--panel); } +.ab-edit-btn:disabled { opacity: .42; cursor: default; } +.ab-page-nav { + display: flex; + align-items: center; + justify-content: flex-end; + gap: 4px; + flex: 0 0 auto; +} +.ab-page-select { + min-width: 112px; + height: 28px; + padding: 3px 8px; + border: 1px solid var(--border); + border-radius: 6px; + background: var(--surface); + color: var(--text); + font-size: 12px; +} +.ab-page-nav-btn { + width: 28px; + height: 28px; + display: inline-flex; + align-items: center; + justify-content: center; + border: 1px solid var(--border); + border-radius: 6px; + background: var(--surface); + color: var(--subtext); + cursor: pointer; +} +.ab-page-nav-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--panel); } +.ab-cv-feed { flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; border: 0px solid var(--border); border-radius: 0px; padding: 0px 10px 10px 0px; background: none; display: flex; flex-direction: column; gap: 18px; } +/* Each source page renders as its own "paper" card — white surface, thin + border, soft shadow — sitting on the feed's canvas background, so a long + book reads like a paginated document instead of one unbroken stream. */ +.ab-cv-page { + /* Merged "paper" look: Casting's stacked-card border/shadow + Rehearser's + off-white paper background/font/colour (kept a fixed light paper even in + dark mode, same as .reh-a4-page, since it's meant to read as a printed page). */ + background: #fff; + color: #1a1a2e; + font-family: 'Courier New', Courier, monospace; + font-size: calc(12pt * var(--reh-stage-scale, 1)); + border-top: 1px solid var(--border); + border-left: 1px solid var(--border); + border-right: 1px solid #ccc; + border-bottom: 1px solid #ccc; + border-radius: 0px; + box-shadow: 5px 5px 10px rgba(0, 0, 0, .08); + padding: 14px 16px; + display: flex; flex-direction: column; gap: 3px; +} +[data-theme="dark"] .ab-cv-page { background: #f8f8f2; color: #1a1a2e; } +/* A fully-cast long book keeps EVERY page's full DOM forever (deliberate — + "keep the full completed cast available for review"), which measured at + ~40,000 live nodes for a real 235-page book — confirmed live as a serious + memory/layout cost, and a real contributor to tab instability on top of + whatever else is running in the same tab (PDF canvases, an OCR worker...). + `content-visibility: auto` lets the browser skip layout/paint/style work + for whichever page groups are off-screen without touching a single line + of the scroll/search/click-handler JS that assumes every row still + physically exists in the DOM — the nodes stay, the browser just stops + doing expensive work on the ones nobody can see. `contain-intrinsic-size` + gives it a rough placeholder height before a page's real size is ever + measured, so scrolling doesn't jump around before that happens. */ +.ab-cv-page { content-visibility: auto; contain-intrinsic-size: auto 500px; } +/* Long unbroken passage strings must wrap, never widen the layout (it was + pushing the sidebar out of frame). */ +.ab-cv-row { min-width: 0; overflow-wrap: anywhere; word-break: break-word; } +.ab-cv-llm-preview { overflow-wrap: anywhere; word-break: break-word; } +.ab-cv-llm-pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; margin: 0; } +.ab-cv-jump-btn { + position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); + display: flex; align-items: center; gap: 4px; + padding: 5px 14px; font-size: 12px; font-weight: 700; + background: var(--accent); color: #fff; border: none; border-radius: 20px; + cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); z-index: 5; + white-space: nowrap; +} +.ab-cv-jump-btn:hover { filter: brightness(1.1); } +.ab-cv-row { + display: block; + font-family: 'Courier New', Courier, monospace; + /* Fixed px here silently defeated the A-/A+ controls (which set + --reh-stage-scale on an ancestor) — this hardcoded size always won over + the inherited calc() on .ab-cv-page, so the buttons visibly changed + nothing. Scale it the same way. */ + font-size: calc(13.5px * var(--reh-stage-scale, 1)); + line-height: 1.5; + padding: 20px 50px; + margin-bottom: 4px; + position: relative; +} +.ab-cv-row-tools { + position: absolute; + top: 4px; + right: 4px; + display: inline-flex; + gap: 2px; + opacity: 0; + pointer-events: none; + transition: opacity .12s; +} +.ab-cv-row:hover .ab-cv-row-tools, +.ab-cv-row:focus-within .ab-cv-row-tools { + opacity: 1; + pointer-events: auto; +} +.ab-cv-row-tool { + width: 24px; + height: 24px; + display: inline-flex; + align-items: center; + justify-content: center; + border: 1px solid var(--border); + border-radius: 6px; + background: var(--surface); + color: var(--subtext); + cursor: pointer; + font-size: 15px; + box-shadow: 0 2px 6px rgba(0,0,0,.12); +} +.ab-cv-row-tool:hover { color: var(--accent); border-color: var(--accent); background: var(--panel); } +.ab-cv-row.is-narr { opacity: .85; } +.ab-cv-edit-ta { + width: 100%; min-height: 60px; resize: vertical; font: inherit; color: inherit; + background: rgba(37,99,235,.06); border: 1px solid var(--accent); border-radius: 4px; + padding: 4px 6px; outline: none; +} +.ab-cv-spk { + display: block; + font-weight: 700; + letter-spacing: 0.08em; + text-transform: uppercase; + margin-bottom: 2px; +} +.ab-cv-row:not(.is-narr):not(.is-processing) .ab-cv-spk { + padding-left: 120px; + cursor: pointer; + border-radius: 4px; + transition: background 0.15s; +} +.ab-cv-row:not(.is-narr):not(.is-processing) .ab-cv-spk:hover { + background: rgba(37,99,235,0.08); +} +.ab-cv-row.is-assigning { + background: rgba(245,158,11,0.1) !important; + outline: 2px dashed rgba(245,158,11,0.5); + outline-offset: -2px; + border-radius: 6px; +} +.ab-cv-row.is-assigning .ab-cv-spk { + background: rgba(245,158,11,0.2); + color: #d97706 !important; +} +.ab-cv-row:not(.is-narr):not(.is-processing) .ab-cv-txt { + display: block; + padding-left: 60px; + /*max-width: 500px;*/ +} +.ab-cv-row.is-narr .ab-cv-spk { + display: block; + font-weight: 600; + padding-left: 0; + font-size: 11px; +} +.ab-cv-row.is-processing { + font-family: inherit; + display: block; + padding: 4px 8px; +} +.ab-cv-llm-head { display: flex; align-items: center; gap: 6px; } +.ab-cv-row.is-processing .ab-cv-spk { + display: inline-block; + padding-left: 0; + letter-spacing: normal; + text-transform: none; + font-size: 12px; + margin: 0; +} +.ab-cv-expand-btn { + border: none; background: none; cursor: pointer; + color: var(--subtext); padding: 0 2px; line-height: 1; + font-size: 15px; border-radius: 4px; +} +.ab-cv-expand-btn:hover { color: var(--text); background: var(--panel); } +.ab-cv-llm-preview { + font-size: 12px; color: var(--subtext); font-style: italic; + padding: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; +} +.ab-cv-llm-pre { + font-family: inherit; font-size: 12px; color: var(--text); + white-space: pre-wrap; word-break: break-word; + background: var(--bg); border: 1px solid var(--border); + border-radius: 6px; padding: 8px 10px; margin: 0; + max-height: 260px; overflow-y: auto; +} +.ab-cv-page-label { + width: calc(100% + 4px); + border: 0; + background: transparent; + display: flex; align-items: center; gap: 6px; + font-size: 11px; font-weight: 700; letter-spacing: .06em; + color: var(--subtext); text-transform: uppercase; + padding: 0 0 8px; + border-bottom: 1px dashed var(--border); + margin: -2px -2px 10px; + text-align: left; + cursor: pointer; +} +.ab-cv-page-label .mdi { font-size: 13px; opacity: .7; } +.ab-cv-page-label:hover { color: var(--accent); } +.ab-cv-page-back { margin-left: auto; } +.ab-cv-txt { color: var(--text); white-space: pre-wrap; word-wrap: break-word; } +/* Every word in the narration/dialogue text is individually clickable — the + basis for "click a name in the text to assign", including names the app + doesn't already know (drag across a multi-word one to select it all). */ +/* Live LLM view while a passage is processing: passage left, the LLM's live + thinking/raw-output stream right. Collapsed by default; toggled by the + chevron button in .ab-cv-llm-head. */ +.ab-cv-llm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; } +.ab-cv-llm-col { min-width: 0; display: flex; flex-direction: column; gap: 4px; } +.ab-cv-llm-col-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--subtext); display: flex; align-items: center; gap: 5px; } +.ab-cv-think { + margin: 0; height: 240px; min-height: 80px; max-height: 80vh; resize: vertical; overflow-y: auto; white-space: pre-wrap; + overflow-wrap: anywhere; font-size: 11.5px; line-height: 1.5; color: var(--text); + background: rgba(37,99,235,.05); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; +} +.ab-cv-llm-split .ab-cv-llm-pre { height: 240px; min-height: 80px; max-height: 80vh; resize: vertical; overflow-y: auto; font-size: 11.5px; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; background: var(--panel); } +@media (max-width: 900px) { .ab-cv-llm-split { grid-template-columns: 1fr; } } + +/* Heading-like narration (recovered chapter titles, OCR headline bands): + bold, larger, centered so titles read as titles inside the paper page. */ +.ab-cv-row.is-heading .ab-cv-txt { + display: block; text-align: center; font-weight: 700; + font-size: 1.25em; letter-spacing: .02em; padding: 6px 0; +} +.ab-font-ctl { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; } +.ab-font-ctl .ab-page-nav-btn { width: auto; padding: 0 8px; font-size: 12px; font-weight: 700; } +.ab-name-hit { cursor: pointer; border-radius: 2px; } +.ab-name-hit:hover { background: rgba(37,99,235,.14); text-decoration: underline; text-decoration-style: dotted; } +.ab-cv-txt { cursor: pointer; } +/* Single reused overlay marking the word under the cursor (positioned in JS + from the caret range) — replaces per-word spans, which at book scale meant + ~100k extra DOM nodes and froze the page. */ +.ab-word-hover { + position: fixed; z-index: 5; pointer-events: none; + background: rgba(37,99,235,.16); border-radius: 3px; + outline: 1px dotted rgba(37,99,235,.55); +} +.ab-word-hover[hidden] { display: none; } +.ab-cv-note { font-size: 11.5px; color: var(--subtext); font-style: italic; padding: 3px 0 3px 4px; border-left: 2px solid var(--border); font-family: sans-serif; } +.ab-cv-side { + border: 1px solid var(--border); border-radius: 8px; padding: 8px; background: var(--panel); + min-height: 0; display: flex; flex-direction: column; overflow: hidden; +} +.ab-cv-side-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--subtext); margin-bottom: 6px; } +.ab-cv-side-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.ab-cv-side-collapse { border: none; background: none; color: var(--subtext); cursor: pointer; padding: 2px; border-radius: 4px; line-height: 1; flex-shrink: 0; } +.ab-cv-side-collapse:hover { background: var(--surface); color: var(--text); } +.ab-cv-side-done { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); flex: 0 0 auto; } +.ab-cv-side-tools { display: flex; gap: 4px; margin-bottom: 6px; flex: 0 0 auto; } +.ab-cv-side-search { + flex: 1; min-width: 0; padding: 4px 7px; font-size: 11.5px; border: 1px solid var(--border); + border-radius: 5px; background: var(--surface); color: var(--text); outline: none; +} +.ab-cv-side-search:focus { border-color: var(--accent); } +.ab-cv-side-sort { + padding: 4px 5px; font-size: 11px; border: 1px solid var(--border); border-radius: 5px; + background: var(--surface); color: var(--text); cursor: pointer; flex-shrink: 0; +} +.ab-cv-side.is-collapsed .ab-cv-side-tools { display: none; } +/* flex:1 is the actual fix here — without it this just sizes to its own + content like any other block element, ignoring .ab-cv-side's bounded + height entirely, so its own overflow-y:auto never has anything to + constrain against: the list silently grows past the panel (clipped only + by the parent's overflow:hidden, with no scrollbar at all) instead of + scrolling internally. Confirmed live as the reported "Characters found" + sidebar having no scrollbar and leaving a mismatched empty gap in the + feed column next to it (the grid row stretches to fit the taller, + unbounded sidebar content). */ +.ab-cv-chars { flex: 1; display: block; min-height: 0; overflow-y: auto; padding-right: 2px; } +.ab-cv-empty { font-size: 12px; color: var(--subtext); font-style: italic; } +/* Collapsed sidebar: shrink to just the avatar dots, hide name/count/labels. + The grid column itself is narrowed via .ab-cv-body.side-collapsed. */ +.ab-cv-side.is-collapsed { padding: 8px 4px; } +.ab-cv-side.is-collapsed .ab-cv-side-title, +.ab-cv-side.is-collapsed .ab-char-name, +.ab-cv-side.is-collapsed .ab-char-count { display: none; } +.ab-cv-side.is-collapsed .ab-char-item { justify-content: center; padding: 4px 0; } +.ab-cv-side.is-collapsed .ab-char-dot { margin: 0; } +/* Skeleton loading placeholders */ +.ab-skel-feed { padding:8px 0; } +.ab-skel-chars { padding:4px 0; } +.ab-skel-row, .ab-skel-char-row { + display:flex; align-items:center; gap:8px; + padding:6px 10px; border-radius:4px; + opacity:.55; +} +.ab-skel-row { flex-direction:column; align-items:flex-start; gap:5px; margin-bottom:2px; } +.ab-skel-row.ab-skel-dlg { flex-direction:row; flex-wrap:wrap; align-items:center; } +.ab-skel-line { + height:10px; border-radius:4px; + background:linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%); + background-size:200% 100%; + animation:skeletonSweep 1.4s ease-in-out infinite; +} +.ab-skel-narr .ab-skel-line { height:9px; } +.ab-skel-dlg .ab-skel-line { height:11px; } +.ab-skel-spk { + width:52px; height:11px; border-radius:4px; flex-shrink:0; + background:linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%); + background-size:200% 100%; + animation:skeletonSweep 1.4s ease-in-out infinite; + opacity:.9; +} +.ab-skel-dot { + width:26px; height:26px; border-radius:50%; flex-shrink:0; + background:linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%); + background-size:200% 100%; + animation:skeletonSweep 1.4s ease-in-out infinite; +} +.ab-skel-num { + width:18px; height:10px; border-radius:4px; margin-left:auto; + background:linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%); + background-size:200% 100%; + animation:skeletonSweep 1.4s ease-in-out infinite; +} +.ab-skel-char-row .ab-skel-line { height:10px; flex:1; } +/* stagger animation delays for a wave effect */ +.ab-skel-row:nth-child(2) .ab-skel-line, +.ab-skel-row:nth-child(2) .ab-skel-spk { animation-delay:.15s; } +.ab-skel-row:nth-child(3) .ab-skel-line, +.ab-skel-row:nth-child(3) .ab-skel-spk { animation-delay:.3s; } +.ab-skel-row:nth-child(4) .ab-skel-line, +.ab-skel-row:nth-child(4) .ab-skel-spk { animation-delay:.45s; } +.ab-skel-row:nth-child(5) .ab-skel-line { animation-delay:.6s; } +.ab-skel-row:nth-child(6) .ab-skel-line { animation-delay:.75s; } +.ab-skel-char-row:nth-child(2) * { animation-delay:.1s; } +.ab-skel-char-row:nth-child(3) * { animation-delay:.2s; } +.ab-skel-char-row:nth-child(4) * { animation-delay:.3s; } +.ab-skel-char-row:nth-child(5) * { animation-delay:.4s; } +/* Character list rows in the casting side panel */ +.ab-char-item { + position: relative; + display:flex; align-items:center; gap:8px; padding:7px 10px; + border-radius:8px; cursor:pointer; transition:background .12s, border-color .12s; + overflow: hidden; + min-height: 44px; +} +.ab-char-item:hover, .ab-char-item.is-active { background:var(--surface); } +.ab-char-item.is-active { border-left:2px solid var(--accent); padding-left:6px; } +.ab-char-item > :not(.cs-progress-fillmeta) { position: relative; z-index: 1; } +.ab-char-dot { + width:30px; height:30px; border-radius:50%; flex-shrink:0; + display:flex; align-items:center; justify-content:center; + font-size:13px; font-weight:800; color:#fff; + box-shadow: 0 2px 6px rgba(0,0,0,.14), inset 0 0 0 1px rgba(255,255,255,.28); + border: 1px solid rgba(255,255,255,.28); +} +/* border-color is set inline per-row to the character's own cast color, so a + real portrait still reads as "this character" at a glance in a long list, + the same way the plain colored-letter dot already does via its background. */ +.ab-char-dot-img { overflow: hidden; background: var(--panel); border-width: 2px; } +.ab-char-dot-img img { width: 100%; height: 100%; object-fit: cover; } +.ab-char-name { flex:1; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width: 0; } +.ab-char-count { + margin-left: auto; + flex-shrink: 0; + min-width: 24px; + display: inline-flex; + align-items: center; + justify-content: flex-end; + color: var(--subtext); + font-weight: 700; + line-height: 1; + font-size: 14px; +} +.ab-char-count-divider { + width: 16px; + height: 1px; + background: color-mix(in srgb, var(--subtext) 55%, transparent); + border-radius: 999px; +} +.ab-char-alias-btn { + flex-shrink: 0; width: 20px; height: 20px; border-radius: 4px; border: none; + background: none; color: var(--subtext); cursor: pointer; display: none; + align-items: center; justify-content: center; font-size: 13px; +} +.ab-char-item:hover .ab-char-alias-btn { display: inline-flex; } +.ab-char-alias-btn:hover { background: var(--panel); color: var(--accent); } +/* Sidebar's own collapse state hides the count/name anyway; keep the alias + button out of the way rather than fighting for the 44px column. */ +.ab-cv-side.is-collapsed .ab-char-alias-btn { display: none !important; } +.ab-cv-chars .ab-char-item + .ab-char-item { margin-top: 4px; } + +.ab-alias-popup { + position: fixed; z-index: 2002; width: 260px; + background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); + box-shadow: 0 10px 25px rgba(0,0,0,.35); padding: 10px; display: flex; flex-direction: column; gap: 8px; +} +.ab-alias-popup-title { font-size: 12px; color: var(--subtext); } +.ab-alias-popup-title b { color: var(--text); } +.ab-alias-popup-inp { + width: 100%; padding: 6px 8px; font-size: 12.5px; border: 1px solid var(--border); + border-radius: 6px; background: var(--bg, var(--surface)); color: var(--text); outline: none; +} +.ab-alias-popup-inp:focus { border-color: var(--accent); } +.ab-alias-popup-hint { font-size: 10.5px; color: var(--subtext); text-transform: uppercase; letter-spacing: .03em; font-weight: 700; margin-top: -2px; } +.ab-alias-popup-list { display: flex; flex-direction: column; gap: 2px; max-height: 180px; overflow-y: auto; } +.ab-alias-merge-opt { + display: flex; justify-content: space-between; align-items: center; gap: 8px; + padding: 5px 7px; font-size: 12px; border: 1px solid transparent; border-radius: 5px; + background: none; color: var(--text); cursor: pointer; text-align: left; +} +.ab-alias-merge-opt:hover { background: var(--panel); border-color: var(--border); } +.ab-alias-merge-name { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.ab-alias-merge-name .ab-char-dot { width: 18px; height: 18px; font-size: 9px; } +.ab-alias-merge-count { font-size: 10.5px; color: var(--subtext); font-weight: 700; flex-shrink: 0; } +.ab-alias-popup-actions { display: flex; justify-content: flex-end; gap: 6px; } +/* Grouped footer flyout menus (Identify / Cast / View & Export Characters) — + opens upward from a bottom toolbar, fixed-position + body-appended so it's + never clipped by the scrolling panel it lives in. */ +.ab-foot-trigger.is-menu-open { border-color: var(--accent); color: var(--accent); } +.ab-foot-menu { + position: fixed; z-index: 2002; min-width: 240px; max-width: 320px; + max-height: calc(100vh - 24px); overflow-y: auto; + background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); + box-shadow: 0 10px 25px rgba(0,0,0,.35); padding: 6px; display: flex; flex-direction: column; gap: 2px; +} +.ab-foot-menu-item { + display: flex; align-items: center; gap: 10px; + padding: 8px 10px; font-size: 13px; font-weight: 600; text-align: left; + border: none; border-radius: 7px; background: none; color: var(--text); cursor: pointer; +} +.ab-foot-menu-item:hover:not(:disabled) { background: var(--panel); } +.ab-foot-menu-item:disabled { opacity: .4; cursor: not-allowed; } +.ab-foot-menu-item .mdi { font-size: 16px; color: var(--subtext); flex-shrink: 0; } +.ab-foot-menu-item.is-danger { color: var(--error); } +.ab-foot-menu-item.is-danger .mdi { color: var(--error); } +.ab-foot-menu-item-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.ab-foot-menu-sep { height: 1px; margin: 4px 6px; background: var(--border); } +/* Character detail panel inside the casting feed area */ +.ab-char-detail-panel { + display:flex; flex-direction:column; overflow-y:auto; + height:100%; border:1px solid var(--border); border-radius:8px; + background:var(--panel); +} +.ab-char-detail-back { + display:inline-flex; align-items:center; gap:6px; + background:none; border:none; cursor:pointer; color:var(--accent); + font-size:13px; padding:10px 14px 6px; opacity:.85; flex-shrink:0; +} +.ab-char-detail-back:hover { opacity:1; } +.ab-char-detail-panel .lcd-header { border-radius:0; flex-shrink:0; } +.ab-cd-body { padding:0; } +.ab-cd-body .lcd-voice-top button { + padding:3px 8px; font-size:11px; border:1px solid var(--border); + border-radius:4px; background:none; cursor:pointer; color:var(--text); +} +.ab-cd-edit-btn { + background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.3); + border-radius:6px; cursor:pointer; color:#fff; padding:5px 8px; + font-size:14px; display:flex; align-items:center; line-height:1; + transition:background .15s; +} +.ab-cd-edit-btn:hover { background:rgba(255,255,255,.28); } +.ab-cd-header-actions { position:absolute; top:10px; right:10px; display:flex; align-items:center; gap:8px; z-index:3; } +.ab-cd-refine-btn { + background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.3); + border-radius:6px; cursor:pointer; color:#fff; padding:5px 10px; + font-size:12px; font-weight:700; display:flex; align-items:center; gap:6px; line-height:1; + transition:background .15s; +} +.ab-cd-refine-btn:hover { background:rgba(255,255,255,.28); } +/* editable fields: show hint border in edit mode */ +.ab-cd-editing .ab-editable { + border-bottom:1px dashed var(--accent); + outline:none; cursor:text; min-height:1.3em; + border-radius:2px; padding:1px 2px; +} +.ab-cd-editing .ab-editable:focus { background:rgba(124,106,247,.07); } +.ab-cd-body .lcd-voice-top .ab-cd-pick:hover { border-color:var(--accent); color:var(--accent); } +.ab-cd-body .lcd-voice-top .ab-cd-auto:hover { border-color:var(--green,#22c55e); color:var(--green,#22c55e); } +.ab-cd-body .lcd-voice-top .ab-cd-online:hover { border-color:#0ea5e9; color:#0ea5e9; } +.ab-cd-color { + display:inline-flex; align-items:center; gap:5px; + padding:3px 7px; border:1px solid var(--border); border-radius:4px; + color:var(--subtext); cursor:pointer; line-height:1; +} +.ab-cd-color:hover { border-color:var(--accent); color:var(--accent); } +.ab-cd-color input { + width:22px; height:18px; padding:0; border:0; background:transparent; cursor:pointer; +} +.cl-edit-color input[type="color"] { + width:48px; height:30px; padding:2px; cursor:pointer; +} +/* Character selection bar (compact bar above the casting feed) */ +.ab-char-bar[hidden] { display: none; } +.ab-char-bar { + display:flex; align-items:center; gap:8px; + flex:1 1 430px; min-width:280px; max-width:100%; + padding:6px 10px; margin:0; + background:var(--panel); border:1px solid var(--border); border-radius:8px; +} +.ab-char-bar-dot { + width:32px; height:32px; border-radius:50%; flex-shrink:0; + display:flex; align-items:center; justify-content:center; + font-size:13px; font-weight:700; color:#fff; +} +.ab-char-bar-info { display:flex; flex-direction:column; min-width:0; flex-shrink:0; } +.ab-char-bar-name { font-size:13px; font-weight:700; white-space:nowrap; } +.ab-char-bar-cnt { font-size:11px; opacity:.5; } +.ab-char-bar-nav { display:flex; align-items:center; gap:4px; flex-shrink:0; } +.ab-char-bar-nav button { + width:26px; height:26px; border-radius:50%; + border:1px solid var(--border); background:none; cursor:pointer; color:var(--text); + display:flex; align-items:center; justify-content:center; font-size:15px; +} +.ab-char-bar-nav button:hover { background:var(--panel); border-color:var(--accent); } +.ab-char-bar-pos { font-size:11px; opacity:.6; min-width:44px; text-align:center; } +.ab-char-bar-search { + flex:1; min-width:140px; max-width:none; + padding:4px 8px; font-size:12px; + border:1px solid var(--border); border-radius:6px; + background:var(--bg,var(--surface)); color:var(--text); outline:none; +} +.ab-char-bar-search:focus { border-color:var(--accent); } +.ab-char-bar-profile, .ab-char-bar-close { + padding:4px 8px; font-size:12px; flex-shrink:0; + border:1px solid var(--border); border-radius:6px; + background:none; cursor:pointer; color:var(--text); + display:inline-flex; align-items:center; gap:4px; +} +.ab-char-bar-profile:hover { border-color:var(--accent); color:var(--accent); } +.ab-char-bar-close { padding:4px 6px; } +.ab-char-bar-close:hover { border-color:#f87171; color:#f87171; } +/* Feed row highlights for selected character */ +.ab-cv-row.ab-char-hl { background:rgba(124,106,247,.08); } +.ab-cv-row.ab-char-focus { background:rgba(124,106,247,.20); border-left:3px solid var(--accent); padding-left:5px; } +/* Keep old ab-chip for any legacy use */ +.ab-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 20px; cursor: pointer; transition: background 0.1s; } +.ab-chip:hover { background: var(--panel); border-color: var(--accent); } +.ab-chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex-shrink: 0; } +.ab-chip b { margin-left: auto; color: var(--subtext); font-weight: 700; } +.audiobook-narr-note { color: var(--subtext); } +@media (max-width: 900px) { + .ab-cv-topbar { flex-wrap: wrap; } + .ab-char-bar { flex-basis: 100%; } + .ab-edit-toolbar { margin-left: 0; } +} +@media (max-width: 560px) { .ab-cv-body { grid-template-columns: 1fr; } .ab-cv-side { height: auto; max-height: 22vh; } } + +/* Audiobook casting overlay */ +.audiobook-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; } +.audiobook-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; width: min(420px, 90vw); box-shadow: 0 12px 40px rgba(0,0,0,.25); } +.audiobook-box.conceptart-lightbox-box { width: min(1120px, calc(100vw - 40px)); max-width: calc(100vw - 40px); } +.audiobook-title { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; } +.audiobook-title .mdi { color: var(--accent); font-size: 20px; } +.audiobook-msg { color: var(--subtext); font-size: 13px; margin: 10px 0 12px; } +.audiobook-box .reader-synth-track { width: 100%; } +.audiobook-box label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--subtext); } +.audiobook-box label input[type="text"] { font: inherit; font-weight: 400; color: var(--text); padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); } +.audiobook-box.cdi-voice-dialog { + box-sizing: border-box; width: min(600px, calc(100vw - 32px)); max-width: none; + max-height: calc(100dvh - 32px); overflow-y: auto; +} +.cdi-voice-actions { + display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); + gap: 8px; margin-top: 14px; +} +.cdi-voice-actions button { + box-sizing: border-box; min-width: 0; width: 100%; height: auto; + min-height: 58px; padding: 8px 7px; white-space: normal; line-height: 1.2; + overflow-wrap: anywhere; justify-content: center; +} +@media (max-width: 540px) { + .audiobook-box.cdi-voice-dialog { padding: 18px 16px; } + .cdi-voice-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } +} +.audiobook-actions { margin-top: 14px; text-align: right; display: flex; gap: 8px; justify-content: flex-end; } +.conceptart-editor-box .conceptart-editor-preview { width: 100%; } +.conceptart-editor-box .conceptart-editor-preview .conceptart-lightbox-img { max-width: 100%; width: auto; } + +/* Avatar lightbox — click any character avatar to open */ +.avatar-lightbox-box { width: min(1180px, 96vw); max-height: 92vh; overflow-y: auto; } +.alb-body { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; align-items: center; } +.alb-preview { width: min(560px, 86vw); } +.alb-preview img { width: min(560px, 86vw); height: min(560px, 86vw); min-width: 500px; min-height: 500px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); } +.alb-preview-empty { + width: min(560px, 86vw); height: min(560px, 86vw); min-width: 500px; min-height: 500px; border-radius: 14px; border: 1px dashed var(--border); + display: flex; align-items: center; justify-content: center; font-size: 120px; color: var(--subtext); opacity: .5; +} +.alb-actions { width: min(760px, 92vw); display: flex; flex-direction: column; gap: 22px; } +.alb-quick-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; } +.alb-section-label { font-size: 14px; font-weight: 700; color: var(--subtext); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } +.alb-section input[type="file"] { font-size: 13.5px; width: 100%; } +.alb-url-row { display: flex; gap: 8px; } +.alb-url-row input { flex: 1; min-width: 0; font-size: 13.5px; padding: 8px 10px; } +#alb-prompt { width: 100%; font-size: 13.5px; font-family: inherit; resize: vertical; padding: 10px; min-height: 140px; } +.alb-gen-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; } +.alb-gen-row select { flex: 1; min-width: 0; font-size: 13.5px; padding: 8px 10px; } +.alb-gen-row .btn-primary { font-size: 13.5px; padding: 9px 16px; } +@media (max-width: 820px) { + .alb-preview, .alb-preview img, .alb-preview-empty { min-width: 0; width: min(500px, 86vw); height: min(500px, 86vw); } + .alb-actions { min-width: 0; width: 100%; } +} +#alb-status { margin-top: 10px; } +.ab-recast-select-list { max-height: 320px; overflow-y: auto; margin: 10px 0; text-align: left; border: 1px solid var(--border); border-radius: 6px; padding: 4px; } +.audiobook-box.ab-recast-dialog { width: min(760px, calc(100vw - 40px)); max-width: calc(100vw - 40px); max-height: 90vh; } +.ab-recast-select-list label.ab-char-item { display:flex; flex-direction:row; align-items:center; width:100%; box-sizing:border-box; } +.ab-recast-select-list .ab-char-name { min-width:0; flex:1; text-align:left; } +.ab-recast-select-list .ab-char-count { margin-left:auto; flex:0 0 auto; } +.ab-recast-select-list .ab-char-item + .ab-char-item { margin-top: 2px; } +.ab-recast-select-list .ab-recast-cb { flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; } +.ab-recast-select-list .ab-cv-empty { padding: 16px; text-align: center; color: var(--subtext); font-size: 13px; } +.audiobook-count { font-weight: 500; font-size: 12px; color: var(--subtext); margin-left: auto; } +.audiobook-preview-box { width: min(760px, 94vw); } +.audiobook-preview-box .audiobook-title { flex-wrap: wrap; } +.audiobook-seglist { max-height: 56vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 6px; margin-top: 6px; } +.audiobook-seg { display: grid; grid-template-columns: 130px 96px 1fr; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; } +.audiobook-seg:nth-child(odd) { background: var(--panel); } +.audiobook-seg.is-dialog { box-shadow: inset 3px 0 0 var(--accent); } +.audiobook-seg input { padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 12px; font-family: var(--font); min-width: 0; } +.audiobook-seg input:disabled { opacity: .4; } +.audiobook-seg-text { font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +#reh-tb-audiobook .mdi { color: var(--accent); } +#reader-charsheets-btn .mdi, #reh-charsheets-btn .mdi { color: var(--accent); } + +/* Character sheets overlay */ +.cs-box { width: min(1120px, 96vw); max-height: 90vh; display: flex; flex-direction: column; } +.cs-page-shell { width: 100%; max-width: none; } +#s-reader #reader-charsheets-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; } +#s-caststudio #reader-charsheets-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; } +#s-reader #reader-charsheets-panel .cs-progress-box-big, +#s-caststudio #reader-charsheets-panel .cs-progress-box-big, +#s-reader #reader-charsheets-panel .cs-page-shell, +#s-caststudio #reader-charsheets-panel .cs-page-shell { + width: 100%; + max-width: none; +} +/* Embedded inline, this has been through three wrong attempts: + (1) a fixed/viewport-relative height left a gap below the box whenever + the section (a fixed, full-height flex column needed for other + content like the PDF reader) was taller than the box needed to be; + (2) flex:1 (forcing the box to fill that whole section) fixed that gap, + but then forced .cs-progress-preview (flex:1 itself, scrolling a + single character's card) to stretch to match — so a SHORT card left + the SAME empty gap one level down, inside the preview panel instead + of below the box; + (3) making the BOX ALSO shrink-to-content (flex:0 1 auto) to fix that, + intending "short content -> short box" — but .cs-progress-layout + (the box's own direct child) is itself `flex:1` (meant to fill + whatever height the box has), which made the box's "content size" + circular: the box has no real min-content height to shrink to as + long as its child is a flex:1 filler, so it silently kept resolving + to the max-height CEILING regardless of how little was actually + generated yet — confirmed live: an 8-character result still filled + the box to the exact 90vh cap, even though almost nothing had been + generated, leaving a huge empty gap below the small amount of real + content. + Back to flex:1 (the box fills the section, no gap below it — that part + of (2) was never actually wrong) and rely ENTIRELY on the preview/output + split below (.cs-progress-preview shrink + .cs-progress-output absorbing + the rest) to keep short content from looking stretched-empty, since that + fix (unlike this one) doesn't fight a flex:1 child. */ +#s-reader #reader-charsheets-panel .cs-progress-box-big, +#s-caststudio #reader-charsheets-panel .cs-progress-box-big { + height: auto; + flex: 1; + min-height: 0; + max-height: min(880px, 90vh); + box-shadow: none; +} +.cs-progress-box-big { + box-shadow: none; +} +.cs-progress-layout { + flex: 1; + min-height: 0; + display: grid; + grid-template-columns: minmax(0, 1fr) 300px; + gap: 14px; + margin-top: 12px; + align-items: stretch; +} +.cs-progress-layout.side-collapsed { + grid-template-columns: minmax(0, 1fr) 44px; +} +.cs-progress-left { + min-width: 0; + min-height: 0; + display: flex; + flex-direction: column; + gap: 12px; + min-height: 0; +} +.cs-titlebar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } +.cs-list { overflow-y: auto; padding-right: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 14px; align-content: start; } +/* Compact cards (_charCardHtml, same as the Library's own character grid) + need a much narrower column than the old full-detail cards this grid + used to render. */ +.cs-list.cs-list-compact { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } +.cs-group-label { grid-column: 1 / -1; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--subtext); margin-top: 4px; } +.cs-card { border: 1px solid var(--border); border-radius: 8px; padding: 14px; background: color-mix(in srgb, var(--panel) 88%, var(--surface)); box-shadow: 0 8px 22px rgba(0,0,0,.08); } +.cs-card.cs-main { box-shadow: inset 4px 0 0 var(--accent), 0 8px 22px rgba(0,0,0,.08); } +.cs-card.cs-supp { box-shadow: inset 4px 0 0 var(--border), 0 8px 22px rgba(0,0,0,.08); } +.cs-header-pills { + display: flex; + flex-wrap: wrap; + gap: 7px; + margin-top: 10px; +} +.cs-header-pill { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 5px 10px; + border-radius: 999px; + border: 1px solid rgba(255,255,255,.24); + background: rgba(255,255,255,.14); + color: #fff; + box-shadow: 0 2px 6px rgba(0,0,0,.08); +} +.cs-header-pill .mdi { font-size: 14px; } +.cs-header-pill-label { + text-transform: uppercase; + letter-spacing: .05em; + font-size: 9px; + font-weight: 800; + opacity: .82; +} +.cs-header-pill-value { + font-size: 12px; + font-weight: 700; + white-space: nowrap; +} +.cs-header-pills-primary { margin-bottom: 2px; } +.cs-header-pills-primary + .lcd-tier-gender { margin-top: 8px; } +.lcd-header .cs-header-color { + flex-shrink: 0; align-self: flex-start; + background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.32); color: #fff; +} +.lcd-header .cs-header-color:hover { background: rgba(255,255,255,.32); border-color: rgba(255,255,255,.5); color: #fff; } +/* A too-narrow native color swatch can paint as garbled "###" text in some + Chromium builds before it settles — give it a bit more room than the + generic .ab-cd-color input default to avoid that. */ +.lcd-header .cs-header-color input { width: 30px; height: 20px; min-width: 30px; } +.cs-header-actions { + display: flex; + gap: 8px; + flex-shrink: 0; + align-self: flex-start; + flex-wrap: wrap; +} +.cs-detail-hero-note { + padding: 12px 18px; + background: color-mix(in srgb, var(--panel) 82%, var(--surface)); + border-bottom: 1px solid var(--border); +} +.cs-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } +.cs-name { font-weight: 900; font-size: 17px; letter-spacing: .01em; } +.cs-archetype { font-size: 12px; font-weight: 700; color: var(--accent); } +.cs-tier { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--subtext); border: 1px solid var(--border); border-radius: 20px; padding: 1px 8px; } +.cs-head-btns { margin-left: auto; display: flex; gap: 4px; flex-shrink: 0; } +.cs-head-btns .btn-secondary { font-size: 10px; padding: 2px 7px; } +.cs-img-btn:hover { border-color: #a78bfa; color: #a78bfa; } +.cs-voice-btn:hover { border-color: var(--accent); color: var(--accent); } +.cs-meta-tags { + display: flex; + flex-wrap: wrap; + gap: 6px; + margin: 4px 0 6px; +} +.cs-meta-tag { + display: inline-flex; + align-items: center; + gap: 6px; + border: 1px solid color-mix(in srgb, var(--border) 90%, transparent); + border-radius: 999px; + padding: 3px 8px; + background: color-mix(in srgb, var(--panel) 78%, transparent); + color: var(--subtext); + font-size: 11px; + line-height: 1; +} +.cs-meta-tag-label { + text-transform: uppercase; + letter-spacing: .04em; + font-size: 9px; + font-weight: 800; + color: var(--accent); +} +.cs-meta-tag-value { + font-style: italic; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + max-width: 220px; +} + +/* Character sheet card layout with avatar */ +.cs-card-top { display: flex; gap: 14px; margin-bottom: 10px; } +.cs-card-top-body { flex: 1; min-width: 0; } +.cs-avatar { + width: 80px; height: 80px; border-radius: 10px; flex-shrink: 0; + display: flex; align-items: center; justify-content: center; + font-size: 28px; font-weight: 800; color: #fff; + cursor: pointer; position: relative; overflow: hidden; + border: 2px solid rgba(255,255,255,.1); +} +.cs-avatar img { width: 100%; height: 100%; object-fit: cover; } +.cs-avatar-overlay { + position: absolute; inset: 0; background: rgba(0,0,0,.5); + display: flex; align-items: center; justify-content: center; + opacity: 0; transition: opacity .15s; font-size: 20px; color: #fff; +} +.cs-avatar:hover .cs-avatar-overlay { opacity: 1; } + +/* Library card avatar with image */ +.lib-char-avatar { position: relative; overflow: hidden; cursor: pointer; } +.lib-char-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; } +.lib-char-avatar-cam { + position: absolute; inset: 0; background: rgba(0,0,0,.5); + display: flex; align-items: center; justify-content: center; + opacity: 0; transition: opacity .15s; font-size: 14px; color: #fff; border-radius: inherit; +} +.lib-char-avatar:hover .lib-char-avatar-cam { opacity: 1; } + +/* Alignment gradient bar */ +.cs-alignment-wrap { margin: 8px 0 6px; } +.cs-alignment-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--subtext); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; } +.cs-alignment-gradient { + position: relative; height: 20px; border-radius: 4px; + background: linear-gradient(to right, #111 0%, #444 25%, #888 50%, #ccc 75%, #f5f5f5 100%); + box-shadow: inset 0 1px 3px rgba(0,0,0,.5); +} +.cs-alignment-dot { + position: absolute; top: 50%; transform: translate(-50%, -50%); + width: 18px; height: 18px; border-radius: 50%; + background: #fff; border: 2px solid rgba(0,0,0,.7); + box-shadow: 0 0 0 2px rgba(255,255,255,.5), 0 2px 6px rgba(0,0,0,.6); + display: flex; align-items: center; justify-content: center; +} +.cs-alignment-arc-arrow { + font-size: 13px; line-height: 1; font-style: normal; margin-top: -1px; + text-shadow: 0 1px 3px rgba(0,0,0,.8); +} +.cs-arc-note { font-size: 11px; color: var(--subtext); margin-top: 3px; font-style: italic; } +.cs-progress-box { width: min(520px, 92vw); } +/* Big layout: passage | live output side by side, character sidebar on the + right (current/just-updated characters highlighted) — same shape as the + audiobook casting live view, so you can watch each sheet being built. */ +.cs-progress-box-big { width: min(1400px, 96vw); height: min(880px, 90vh); display: flex; flex-direction: column; padding: 20px 22px; } +.cs-progress-head { flex-shrink: 0; } +.cs-progress-head .audiobook-msg { margin: 8px 0 10px; } +.cs-progress-prompt { padding: 10px 12px; margin: 0 0 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; } +.cs-progress-prompt textarea { + width: 100%; font-family: monospace; font-size: 12.5px; font-weight: 500; padding: 10px; + line-height: 1.5; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); + color: var(--text); resize: vertical; +} +.cs-progress-prompt-actions { display: flex; justify-content: flex-end; margin-top: 8px; gap: 8px; align-items: center; } +.cs-progress-prompt-actions select { max-width: 200px; outline: none; border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; font-size: 12px; background: var(--surface); color: var(--text); } +.cs-progress-prompt-actions input { width: 140px; padding: 4px 8px; font-size: 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); outline: none; } +.cs-progress-output { + display: flex; + flex-direction: column; + flex: 1 1 auto; + gap: 8px; + min-height: 120px; + max-height: 42vh; + overflow: auto; + resize: none; + position: relative; + padding: 10px 12px 12px; + border: 1px solid color-mix(in srgb, var(--border) 90%, transparent); + border-radius: 12px; + background: color-mix(in srgb, var(--panel) 72%, var(--surface)); + box-shadow: 0 1px 0 rgba(255,255,255,.7) inset; +} +.cs-progress-footer { + margin-top: auto; + padding-top: 12px; + display: flex; + align-items: center; + gap: 12px; +} +.cs-progress-footer-track { + flex: 1 1 auto; + min-width: 0; + margin: 0; + height: 12px; + border-radius: 999px; + overflow: hidden; +} +.cs-progress-footer .reader-synth-fill { border-radius: inherit; } +.cs-progress-footer-actions { + margin: 0; + flex: none; + display: flex; + justify-content: flex-end; +} +.cs-progress-output-head { + display: flex; align-items: center; justify-content: space-between; gap: 8px; + font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--subtext); + margin-top: 6px; +} +.cs-progress-output-title { display: inline-flex; align-items: center; gap: 6px; min-width: 0; } +.cs-progress-output .cs-progress-live-status { margin-left: 4px; } +.cs-progress-output.is-collapsed { + min-height: 140px; + max-height: 140px; + resize: none; + overflow: hidden; + padding-bottom: 10px; +} +.cs-progress-output.is-collapsed .cs-progress-body { display: flex; } +.cs-progress-output.is-collapsed .cs-progress-output-head { margin-top: 6px; } +/* A small centered grip bar on the panel's top edge, like a sheet handle, + instead of a boxed icon button floating over the bottom-right content. */ +.cs-progress-resize-handle { + position: absolute; top: 5px; left: 50%; transform: translateX(-50%); + width: 44px; height: 5px; border-radius: 999px; padding: 0; + border: none; + background: color-mix(in srgb, var(--subtext) 35%, transparent); + cursor: ns-resize; + z-index: 3; + transition: background .15s, width .15s; +} +.cs-progress-resize-handle:hover, +.cs-progress-resize-handle:active { background: var(--accent); width: 56px; } +.cs-output-resizing, .cs-output-resizing * { cursor: ns-resize !important; } +.cs-progress-body { flex: 1; min-height: 0; display: flex; gap: 14px; margin-top: 0; } +.cs-progress-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } +.cs-progress-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; } +.cs-progress-col-label { + display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; + text-transform: uppercase; letter-spacing: .04em; color: var(--subtext); flex-shrink: 0; +} +.cs-progress-passage-pre, .cs-progress-live-pre { + flex: 1; min-height: 0; margin: 0; padding: 10px 12px; overflow-y: auto; white-space: pre-wrap; + overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; color: var(--text); + background: var(--surface); border: 1px solid var(--border); border-radius: 8px; +} +.cs-progress-live-pre { background: rgba(37,99,235,.045); } +.cs-progress-output.is-collapsed .cs-progress-passage-pre, +.cs-progress-output.is-collapsed .cs-progress-live-pre { + font-size: 12.5px; + line-height: 1.45; + padding: 8px 10px; + min-height: 58px; +} +.cs-progress-side { + width: 100%; + flex-shrink: 0; + display: flex; + flex-direction: column; + gap: 8px; + min-height: 0; + /* NOT height:100% — the grid row's own height is itself content-derived + (no explicit row height on .cs-progress-layout), so a child asking for + "100% of the row" creates a circular reference that resolves back to + the child's own content size instead of actually matching the taller + sibling column. align-items:stretch on the grid already gives this a + real, definite computed height with no percentage involved — confirmed + live: removing this let the two columns match (was 180px vs the other + column's 371px; matched afterward). */ + padding: 10px 8px 8px; +} +.cs-progress-side.is-collapsed { + padding: 8px 4px; +} +.cs-progress-layout.side-collapsed .cs-progress-side { + width: 44px; +} +.cs-progress-side.is-collapsed .ab-cv-side-title, +.cs-progress-side.is-collapsed .ab-cv-side-tools, +.cs-progress-side.is-collapsed .ab-cv-side-done { + display: none; +} +.cs-progress-side.is-collapsed .cs-progress-chars { + padding-right: 0; +} +.cs-progress-side .ab-char-item { + min-height: 48px; + padding: 8px 12px; + border-radius: 10px; +} +.cs-progress-side .ab-char-item.is-active { + padding-left: 10px; +} +.cs-progress-side .ab-char-dot { + width: 32px; + height: 32px; + font-size: 13px; +} +.cs-progress-side .ab-char-name { + font-size: 16px; + font-weight: 600; +} +.cs-progress-side .ab-char-count { + font-size: 14px; +} +.cs-progress-side-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--subtext); flex-shrink: 0; } +.cs-progress-preview { + /* Not flex:1 — when the sidebar has many characters (and so needs a tall + column to give the list room to scroll, per align-items:stretch on + .cs-progress-layout), flex:1 here forced THIS panel to stretch to + match, leaving a large empty gap below a short/not-yet-filled sheet + (confirmed live with a short card next to a 72-character sidebar). + Shrink-to-content instead; .cs-progress-output below absorbs any + leftover column height since it's the piece meant to grow (it already + scrolls its own passage/live-output text, unlike this preview which + shows one bounded character sheet). */ + margin: 10px 0 0; + padding: 0; + min-height: 220px; + flex: 0 1 auto; + overflow: auto; +} +.cs-progress-left.is-output-collapsed .cs-progress-preview { min-height: 520px; } +.cs-progress-output.is-collapsed .cs-progress-output-title { opacity: .85; } +.cs-progress-output.is-working .cs-progress-output-title { color: var(--text); } +.cs-progress-preview .cs-card { + box-shadow: none; + border-radius: 12px; + margin: 0; + background: color-mix(in srgb, var(--panel) 92%, var(--surface)); +} +.cs-progress-preview .cs-head-btns, +.cs-progress-preview .cs-sources { + display: none; +} +.cs-progress-preview .cs-avatar { + pointer-events: none; + cursor: default; +} +.cs-progress-preview-empty { + font-size: 13px; + color: var(--subtext); + font-style: italic; + border: 1px dashed var(--border); + border-radius: 10px; + padding: 12px; + background: color-mix(in srgb, var(--panel) 80%, transparent); +} +.cs-progress-chars { flex: 1; min-height: 0; overflow-y: auto; display: block; padding: 2px 2px 4px; } +.cs-progress-chars .ab-char-item + .ab-char-item { margin-top: 6px; } +/* Two-row roster card: a bigger avatar spanning both rows, name on top, + line count + profile completeness together underneath — instead of + cramming avatar/name/count into one flex row like the casting sidebar. */ +.cs-progress-chars .ab-char-item { + display: grid; + grid-template-columns: 38px 1fr; + grid-template-rows: auto auto; + column-gap: 10px; + row-gap: 2px; + align-items: center; + min-height: 0; + padding: 8px 10px; +} +.cs-progress-chars .ab-char-dot { + grid-row: 1 / 3; + width: 38px; height: 38px; font-size: 15px; +} +.cs-progress-chars .ab-char-name { grid-column: 2; grid-row: 1; font-weight: 700; } +.cs-progress-chars .ab-char-meta { + grid-column: 2; grid-row: 2; + display: flex; align-items: center; gap: 6px; + font-size: 11.5px; color: var(--subtext); font-weight: 600; +} +.cs-progress-chars .ab-char-meta-sep { opacity: .45; } +.cs-progress-chars .ab-char-count { margin-left: 0; font-size: 11.5px; font-weight: 600; color: var(--subtext); } +.cs-progress-empty { font-size: 12px; color: var(--subtext); font-style: italic; text-align: center; padding: 20px 0; } +.cs-progress-chip { + display: grid; grid-template-columns: 26px minmax(0, 1fr) 44px auto; align-items: center; gap: 8px; + min-height: 38px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; + background: var(--surface); color: var(--text); flex-shrink: 0; +} +.cs-progress-chip.is-new { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.08); } +.cs-progress-chip.is-updated { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: 0 0 0 1px var(--accent); } +@media (max-width: 900px) { + .cs-progress-box-big { width: 96vw; height: 92vh; } + .cs-progress-body { flex-direction: column; } + .cs-progress-main { grid-template-columns: 1fr; } + .cs-progress-side { width: 100%; max-height: 180px; } +} +.cs-progress-dot { + width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; + background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; +} +.cs-progress-meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; } +.cs-progress-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; } +.cs-progress-alias { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--subtext); font-size: 10px; } +.cs-progress-fillmeta { + position: absolute; + inset: 0; + border-radius: inherit; + background: color-mix(in srgb, var(--panel) 90%, transparent); + overflow: hidden; + border: 1px solid color-mix(in srgb, var(--border) 85%, transparent); + pointer-events: none; +} +.cs-progress-fillmeta span { + display: block; + height: 100%; + background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 46%, transparent)); + border-radius: inherit; + min-width: 2px; +} +.cs-progress-badge { font-size: 9px; text-transform: uppercase; color: var(--subtext); font-weight: 800; } +.cs-fields { margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; } +.cs-identity-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); + gap: 6px; + margin-bottom: 4px; +} +.cs-id-cell { + display: flex; + flex-direction: column; + gap: 3px; + padding: 9px 11px; + font-size: 13.5px; + border: 1px solid color-mix(in srgb, var(--border) 55%, transparent); + border-radius: 10px; + background: color-mix(in srgb, var(--surface) 78%, transparent); +} +.cs-id-cell dt { + font-weight: 800; + color: var(--subtext); + text-transform: uppercase; + font-size: 10.5px; + letter-spacing: .04em; + display: flex; + align-items: center; + gap: 5px; +} +.cs-id-cell dd { + margin: 0; + color: var(--text); + line-height: 1.35; +} +.cs-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: 15.5px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--border) 55%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--surface) 72%, transparent); } +.cs-row dt { font-weight: 800; color: var(--subtext); text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; display:flex; align-items:center; gap:5px; } +.cs-row dd { margin: 0; color: var(--text); line-height: 1.5; } +.cs-row ul { margin: 0; padding-left: 16px; } +.cs-source-mark { + width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--accent); + background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); + font-size: 9px; font-weight: 900; cursor: pointer; line-height: 1; padding: 0; +} +.cs-row dd .cs-source-mark, +.lcd-field-value .cs-source-mark { margin-left: 6px; vertical-align: middle; } +.cs-source-mark:hover, .cs-source-mark.is-active { background: var(--accent); color: #fff; } +.cs-source-mark-sample { cursor: default; pointer-events: none; } +.cs-source-preview { + margin: 16px 28px 20px; padding: 14px 16px; border-radius: 10px; + background: color-mix(in srgb, var(--accent) 6%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); +} +.cs-source-preview-empty { font-size: 12.5px; color: var(--subtext); } +.cs-source-preview-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: 6px; } +.cs-source-preview-head em { font-style: normal; opacity: .75; text-transform: none; letter-spacing: 0; } +.cs-source-preview-quote { font-size: 14px; line-height: 1.6; color: var(--text); font-style: italic; } +.cs-sources { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--border); font-size: 11px; color: var(--subtext); } +.cs-sources-title { display:flex; align-items:center; gap:5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; margin-bottom:6px; } +.cs-sources b { color: var(--text); } +.cs-sources .mdi { color: var(--accent); } +.cs-source-list { display:flex; flex-wrap:wrap; gap:5px; } +.cs-source-link { + display:inline-flex; align-items:center; gap:5px; max-width:100%; + border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--subtext); + padding:3px 8px; font-size:10.5px; cursor:pointer; +} +.cs-source-link:hover { border-color:var(--accent); color:var(--accent); } +.cs-source-link span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:150px; } +.cs-source-link .cs-source-quote { max-width: 260px; color: var(--text); } +.cs-source-link .cs-source-hint { color: var(--subtext); } +.cs-source-link em { font-style:normal; opacity:.8; } +.cs-row-voice dt .mdi { color: var(--accent); } +.cs-row-voice dd { font-style: italic; } +.cs-prompts { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; } +.cs-prompts .lcd-prompt-box summary { border-radius: 8px; } +.cs-prompts .lcd-prompt-empty { opacity: .6; font-size: 11px; } +.cs-overview { + padding: 0; + overflow: hidden; + display: flex; + flex-direction: column; + min-height: 560px; + border-radius: 24px; + border: 1px solid color-mix(in srgb, var(--border) 72%, transparent); + background: + radial-gradient(circle at 100% 0%, rgba(255,255,255,.18), transparent 32%), + linear-gradient(180deg, color-mix(in srgb, var(--panel) 74%, var(--surface)) 0%, color-mix(in srgb, var(--surface) 88%, var(--panel)) 100%); + box-shadow: 0 20px 50px rgba(0,0,0,.14); +} +.cs-overview .cs-header { + border-radius: 0; + padding: 24px 24px 20px; +} +.cs-overview .cs-avatar { + width: 96px; + height: 96px; + font-size: 40px; + border-width: 4px; + box-shadow: 0 14px 28px rgba(0,0,0,.24); +} +.cs-overview .lcd-name { font-size: 30px; } +.cs-overview .lcd-aliases { font-size: 15px; opacity: .76; } +.cs-overview .lcd-archetype { font-size: 18px; margin-bottom: 14px; } +.cs-overview .lcd-tier { font-size: 11px; padding: 4px 11px; } +.cs-overview .cs-header-pills { margin-top: 12px; } +.cs-overview .cs-header-pill { + background: rgba(255,255,255,.12); + border-color: rgba(255,255,255,.22); +} +.cs-overview-meta { + display: flex; + flex-direction: column; + gap: 16px; + padding: 18px 20px 20px; + flex: 1; +} +.cs-overview-alignment { margin: 0; } +.cs-overview-facts { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 10px; +} +.cs-overview-fact { + min-height: 66px; + padding: 10px 12px; + border-radius: 14px; + border: 1px solid color-mix(in srgb, var(--border) 60%, transparent); + background: color-mix(in srgb, var(--surface) 82%, var(--panel)); + display: flex; + flex-direction: column; + justify-content: center; + gap: 2px; +} +.cs-overview-fact span { + font-size: 10px; + font-weight: 800; + text-transform: uppercase; + letter-spacing: .05em; + color: var(--subtext); +} +.cs-overview-fact b { + font-size: 14px; + line-height: 1.35; + color: var(--text); +} +.cs-overview-tags { + display: flex; + flex-wrap: wrap; + gap: 8px; +} +.cs-overview .cl-tag-chip { + font-size: 12px; + padding: 4px 10px; +} + diff --git a/static/index.html b/static/index.html index 32d05d8..92c5e67 100644 --- a/static/index.html +++ b/static/index.html @@ -10,7 +10,7 @@ - + @@ -27,11 +27,12 @@ - - - - - + + + + + + @@ -396,7 +397,7 @@ window.toggleNavTree = function(treeId, chevronId) { - + diff --git a/static/style.css b/static/style.css index 91f9732..5c01715 100644 --- a/static/style.css +++ b/static/style.css @@ -4334,1795 +4334,6 @@ code { background: var(--panel); border-radius: 4px; padding: 1px 5px; font-fami .conv-hist-err { color: var(--red); } -/* ── Read Aloud reader ─────────────────────────────────────────────────── */ -.reader-controls { - display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; -} -.reader-ctl { margin: 0; min-width: 150px; } -.reader-ctl-grow { flex: 1 1 200px; } -.reader-ctl-sm { min-width: 96px; max-width: 130px; } -.reader-ctl-sm input { width: 100%; } -.reader-norm-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--subtext); white-space: nowrap; align-self: center; cursor: pointer; } -.reader-backend-hint { margin-top: 10px; font-size: 12px; color: var(--subtext); display: flex; align-items: flex-start; gap: 6px; } -.reader-backend-hint .mdi { color: var(--accent); flex-shrink: 0; } -.reader-backend-hint b { color: var(--text); } -.reader-backend-hint.reader-hint-warn { color: var(--text); } -.reader-backend-hint:empty { display: none; } -.reader-voice-pick { display: flex; gap: 6px; } -.reader-voice-pick select { flex: 1; min-width: 0; } -.reader-speed-label { color: var(--accent); font-weight: 700; } -.reader-ctl input[type=range] { width: 100%; accent-color: var(--accent); } -.reader-import-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } - -#s-reader .reader-tuning-panel { - margin-top: 12px; - display: grid; - grid-template-columns: 1fr; - gap: 8px; - padding: 10px 12px; - border: 1px solid var(--border); - border-radius: 8px; - background: var(--bg); -} -#s-caststudio .reader-tuning-panel { - margin-top: 12px; - display: grid; - grid-template-columns: 1fr; - gap: 8px; - padding: 10px 12px; - border: 1px solid var(--border); - border-radius: 8px; - background: var(--bg); -} -#s-reader .reader-tuning-row { - grid-column: 1; - display: grid; - grid-template-columns: 136px minmax(130px, 220px) minmax(220px, 1fr); - gap: 12px; - align-items: center; -} -#s-caststudio .reader-tuning-row { - grid-column: 1; - display: grid; - grid-template-columns: 136px minmax(130px, 220px) minmax(220px, 1fr); - gap: 12px; - align-items: center; -} -#s-reader .reader-tuning-row label { - margin: 0; - color: var(--subtext); - font-size: 12px; - font-weight: 800; - text-transform: uppercase; - letter-spacing: .02em; -} -#s-caststudio .reader-tuning-row label { - margin: 0; - color: var(--subtext); - font-size: 12px; - font-weight: 800; - text-transform: uppercase; - letter-spacing: .02em; -} -#s-reader .reader-tuning-row input[type="number"], -#s-caststudio .reader-tuning-row input[type="number"], -#s-reader .reader-tuning-row input[type="range"], -#s-caststudio .reader-tuning-row input[type="range"] { - width: 100%; - min-width: 0; -} -#s-reader .reader-tuning-row input[type="range"] { accent-color: var(--accent); } -#s-caststudio .reader-tuning-row input[type="range"] { accent-color: var(--accent); } -#s-reader .reader-tuning-help { - color: var(--subtext); - font-size: 12px; - line-height: 1.35; -} -#s-caststudio .reader-tuning-help { - color: var(--subtext); - font-size: 12px; - line-height: 1.35; -} -#s-reader .reader-tuning-panel .reader-backend-hint { - /* Used to sit beside the 4 tuning rows, forced to stretch to their - combined height (grid-row: 1 / span 4) regardless of how short its own - text was — most of the time that left a large empty gap below a - 1-3 line hint. Full-width below the rows instead, sized to its own - content, so there's no reserved space to be empty in the first place. */ - margin: 4px 0 0; - padding: 10px 12px; - border: 1px solid var(--border); - border-radius: 8px; - background: var(--surface); - min-width: 0; -} -#s-caststudio .reader-tuning-panel .reader-backend-hint { - /* Used to sit beside the 4 tuning rows, forced to stretch to their - combined height (grid-row: 1 / span 4) regardless of how short its own - text was — most of the time that left a large empty gap below a - 1-3 line hint. Full-width below the rows instead, sized to its own - content, so there's no reserved space to be empty in the first place. */ - margin: 4px 0 0; - padding: 10px 12px; - border: 1px solid var(--border); - border-radius: 8px; - background: var(--surface); - min-width: 0; -} -#s-reader .reader-tuning-panel .reader-backend-hint:empty { display: none; margin: 0; } -#s-caststudio .reader-tuning-panel .reader-backend-hint:empty { display: none; margin: 0; } - -#s-reader .reader-source-panel { - margin-top: 12px; - padding: 12px; - border: 1px solid var(--border); - border-radius: 10px; - background: linear-gradient(180deg, var(--surface), var(--bg)); -} -#s-caststudio .reader-source-panel { - margin-top: 12px; - padding: 12px; - border: 1px solid var(--border); - border-radius: 10px; - background: linear-gradient(180deg, var(--surface), var(--bg)); -} -#s-reader .reader-source-head { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; - margin-bottom: 10px; -} -#s-caststudio .reader-source-head { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; - margin-bottom: 10px; -} -#s-reader .reader-source-head div { - min-width: 0; - display: flex; - align-items: baseline; - gap: 10px; - flex-wrap: wrap; -} -#s-caststudio .reader-source-head div { - min-width: 0; - display: flex; - align-items: baseline; - gap: 10px; - flex-wrap: wrap; -} -#s-reader .reader-source-head strong { - display: inline-flex; - align-items: center; - gap: 6px; - color: var(--text); - font-size: 13px; -} -#s-caststudio .reader-source-head strong { - display: inline-flex; - align-items: center; - gap: 6px; - color: var(--text); - font-size: 13px; -} -#s-reader .reader-source-head span { - color: var(--subtext); - font-size: 12px; -} -#s-caststudio .reader-source-head span { - color: var(--subtext); - font-size: 12px; -} -#s-reader .reader-source-grid { - display: grid; - grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); - gap: 12px; - align-items: stretch; -} -#s-caststudio .reader-source-grid { - display: grid; - grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); - gap: 12px; - align-items: stretch; -} -#s-reader .reader-paste-panel { - min-width: 0; - display: flex; - flex-direction: column; - gap: 8px; - padding: 12px; - border: 1px solid var(--border); - border-radius: 8px; - background: var(--surface); -} -#s-caststudio .reader-paste-panel { - min-width: 0; - display: flex; - flex-direction: column; - gap: 8px; - padding: 12px; - border: 1px solid var(--border); - border-radius: 8px; - background: var(--surface); -} -#s-reader .reader-source-method { - display: flex; - align-items: flex-start; - gap: 8px; - color: var(--subtext); -} -#s-caststudio .reader-source-method { - display: flex; - align-items: flex-start; - gap: 8px; - color: var(--subtext); -} -#s-reader .reader-source-method > .mdi { - color: var(--accent); - font-size: 20px; - line-height: 1; -} -#s-caststudio .reader-source-method > .mdi { - color: var(--accent); - font-size: 20px; - line-height: 1; -} -#s-reader .reader-source-method div { - min-width: 0; - display: flex; - flex-direction: column; - gap: 1px; -} -#s-caststudio .reader-source-method div { - min-width: 0; - display: flex; - flex-direction: column; - gap: 1px; -} -#s-reader .reader-source-method strong { - color: var(--text); - font-size: 13px; -} -#s-caststudio .reader-source-method strong { - color: var(--text); - font-size: 13px; -} -#s-reader .reader-source-method span { - color: var(--subtext); - font-size: 12px; - line-height: 1.35; -} -#s-caststudio .reader-source-method span { - color: var(--subtext); - font-size: 12px; - line-height: 1.35; -} -#s-reader .reader-paste-text { - width: 100%; - min-height: 138px; - resize: vertical; - box-sizing: border-box; - border: 1px solid var(--border); - border-radius: 8px; - background: var(--bg); - color: var(--text); - padding: 11px 12px; - font: inherit; - line-height: 1.45; -} -#s-caststudio .reader-paste-text { - width: 100%; - min-height: 138px; - resize: vertical; - box-sizing: border-box; - border: 1px solid var(--border); - border-radius: 8px; - background: var(--bg); - color: var(--text); - padding: 11px 12px; - font: inherit; - line-height: 1.45; -} -#s-reader .reader-paste-text:focus { - outline: none; - border-color: var(--accent); - box-shadow: 0 0 0 3px rgba(37,99,235,.12); -} -#s-caststudio .reader-paste-text:focus { - outline: none; - border-color: var(--accent); - box-shadow: 0 0 0 3px rgba(37,99,235,.12); -} -#s-reader .reader-paste-actions { - display: flex; - align-items: center; - justify-content: flex-end; - gap: 10px; - flex-wrap: wrap; -} -#s-caststudio .reader-paste-actions { - display: flex; - align-items: center; - justify-content: flex-end; - gap: 10px; - flex-wrap: wrap; -} - -.reader-dropzone { - margin-top: 14px; padding: 30px 16px; border: 2px dashed var(--border); - border-radius: 12px; text-align: center; color: var(--subtext); - display: flex; flex-direction: column; align-items: center; gap: 5px; - transition: border-color .15s, background .15s; -} -#s-reader .reader-source-panel .reader-dropzone { - margin-top: 0; - min-height: 100%; - padding: 18px; - border-radius: 8px; - background: var(--surface); - justify-content: center; - gap: 8px; -} -#s-caststudio .reader-source-panel .reader-dropzone { - margin-top: 0; - min-height: 100%; - padding: 18px; - border-radius: 8px; - background: var(--surface); - justify-content: center; - gap: 8px; -} -.reader-dropzone-icon { font-size: 34px; opacity: .5; } -/* "Extract Text" prompt — PDF pages are already visible, but text/OCR extraction - is a separate explicit action (pipeline stage 2) rather than automatic. */ -.reader-extract-banner { - display: flex; align-items: center; gap: 14px; margin: 12px 0; padding: 14px 16px; - border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); -} -.reader-extract-icon { font-size: 30px; color: var(--accent); flex-shrink: 0; } -.reader-extract-info { flex: 1; min-width: 160px; } -.reader-extract-info strong { display: block; color: var(--text); font-size: 14px; } -.reader-extract-info p { margin: 2px 0 0; color: var(--subtext); font-size: 12.5px; } -.reader-dropzone.dragover { border-color: var(--accent); background: rgba(37,99,235,.06); color: var(--accent); } -.reader-dropzone.dragover .reader-dropzone-icon { opacity: 1; } -#s-reader .reader-file-pick { - margin-top: 4px; - cursor: pointer; - display: inline-flex; - align-items: center; - gap: 6px; -} -#s-caststudio .reader-file-pick { - margin-top: 4px; - cursor: pointer; - display: inline-flex; - align-items: center; - gap: 6px; -} - -@media (max-width: 860px) { - #s-reader .reader-source-grid { grid-template-columns: 1fr; } - #s-caststudio .reader-source-grid { grid-template-columns: 1fr; } - #s-reader .reader-tuning-row { grid-template-columns: 1fr; gap: 5px; } - #s-caststudio .reader-tuning-row { grid-template-columns: 1fr; gap: 5px; } -} - -.reader-transport { - display: flex; align-items: center; gap: 14px; flex-wrap: wrap; - margin-top: 14px; padding: 10px 14px; background: var(--surface); - border: 1px solid var(--border); border-radius: var(--radius); -} -.reader-tb-group { display: flex; gap: 4px; } -.reader-progress-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; } -.reader-progress-track { flex: 1; height: 6px; border-radius: 4px; background: var(--panel); overflow: hidden; } -.reader-progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .25s; } -.reader-progress-label { font-size: 12px; color: var(--subtext); white-space: nowrap; min-width: 56px; text-align: right; } -.reader-doc-title { font-size: 13px; font-weight: 700; color: var(--text); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } - -/* Saved-books library */ -.reader-lib-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } -.reader-lib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; } -.reader-book { - position: relative; padding: 18px 16px 16px 24px; border: 1px solid var(--border); - border-radius: 4px 14px 14px 4px; background: var(--surface); cursor: pointer; - transition: border-color .15s, transform .1s, box-shadow .15s; - display: flex; flex-direction: column; aspect-ratio: 1 / 1.35; - box-shadow: inset 5px 0 10px rgba(0,0,0,.03), -1px 0 0 rgba(0,0,0,.06), 0 3px 8px rgba(0,0,0,.05); -} -.reader-book::before { - content: ''; position: absolute; top: 0; bottom: 0; left: 14px; width: 2px; - background: rgba(0,0,0,.04); border-left: 1px solid rgba(255,255,255,.5); -} -.reader-book:hover { - border-color: var(--accent); - box-shadow: inset 5px 0 10px rgba(0,0,0,.03), -1px 0 0 var(--accent), 0 8px 20px rgba(0,0,0,.08); - transform: translateY(-2px); -} -.reader-book-icon { font-size: 28px; color: var(--accent); line-height: 1; z-index: 1; } -.reader-book-title { font-weight: 800; font-size: 15px; margin-top: 10px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.3; z-index: 1; } -.reader-book-meta { font-size: 11px; color: var(--subtext); margin-top: 6px; z-index: 1; } -.reader-book-bar { position: relative; height: 6px; border-radius: 4px; background: var(--panel); margin-top: auto; margin-bottom: 5px; overflow: hidden; border: 1px solid var(--border); z-index: 1; } -.reader-book-bar-synth { position: absolute; inset: 0 auto 0 0; background: rgba(34,197,94,.45); } -.reader-book-bar-read { position: absolute; inset: 0 auto 0 0; background: var(--accent); } -.reader-book-stats { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; color: var(--subtext); z-index: 1; } -.reader-book-del { - position: absolute; top: 8px; right: 8px; border: none; background: rgba(0,0,0,.06); - color: var(--subtext); border-radius: 6px; width: 28px; height: 28px; cursor: pointer; opacity: 0; transition: opacity .15s; - display: flex; align-items: center; justify-content: center; z-index: 5; -} -.reader-book-del .mdi { font-size: 15px; } -.reader-book:hover .reader-book-del { opacity: 1; } -.reader-book-del:hover { color: var(--red, #ef4444); background: rgba(239,68,68,.1); } - -/* Synthesise-ahead bar + range selection */ -.reader-synthbar { - display: flex; align-items: center; flex-wrap: wrap; gap: 10px; - margin-top: 10px; padding: 8px 12px; background: var(--surface); - border: 1px solid var(--border); border-radius: var(--radius); - justify-content: space-between; -} -.reader-page-range { display: inline-flex; align-items: center; gap: 6px; } -.reader-page-inp { - width: 56px; padding: 4px 6px; border: 1px solid var(--border); - border-radius: 6px; background: var(--panel); color: var(--text); font-family: var(--font); -} -#reader-select-toggle.active { background: var(--accent); color: #fff; border-color: var(--accent); } -.reader-sel-info { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); font-weight: 600; } -.reader-sel-clear { border: none; background: none; color: var(--subtext); cursor: pointer; font-size: 13px; padding: 0 2px; } -.reader-sel-clear:hover { color: var(--red, #ef4444); } -.reader-sel-hint { font-size: 12px; color: var(--subtext); } -.reader-sel-hint b { color: var(--accent); } -.reader-export { display: inline-flex; align-items: center; gap: 6px; } - -/* Audiobook live casting — floating, non-blocking, minimisable panel */ -.ab-castpanel { - position: fixed; right: 18px; bottom: 18px; z-index: 1000; - width: min(880px, 96vw); height: 50vh; max-height: 82vh; display: flex; flex-direction: column; - background: var(--surface); border: 1px solid var(--border); border-radius: 12px; - box-shadow: 0 16px 48px rgba(0,0,0,.28); overflow: hidden; resize: both; min-height: 300px; min-width: 400px; -} -.ab-castpanel-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg); cursor: move; flex-shrink: 0; } -.ab-castpanel-head > .mdi { color: var(--accent); font-size: 18px; } -.ab-castpanel-title { font-weight: 800; font-size: 14px; } -.ab-castpanel-count { font-size: 12px; color: var(--subtext); } -.ab-castpanel-btn { border: none; background: none; color: var(--subtext); cursor: pointer; padding: 2px 5px; border-radius: 6px; line-height: 1; } -.ab-castpanel-btn:hover { background: var(--panel); color: var(--text); } -.ab-castpanel-bar { - position: relative; flex: 0 1 760px; min-width: 180px; height: 30px; min-height: 30px; max-height: 30px; - align-self: center; margin: 0 12px 0 0; border-radius: 6px; - background: var(--surface); border: 1px solid var(--border); overflow: hidden; -} -.ab-castpanel-bar .reader-synth-fill { - height: 100%; -} -#ab-cv-fill-text { - position:absolute; inset:0; display:flex; align-items:center; justify-content:center; - font-size:12px; font-weight:800; color:var(--text); - text-shadow:0 1px 2px var(--bg), 0 -1px 2px var(--bg); - pointer-events:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding:0 8px; -} -.ab-castpanel-foot { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--bg); flex-shrink: 0; z-index: 10; position: relative; } -.ab-castpanel-foot #ab-cv-cancel { flex: 0 0 auto; margin-right: 0 !important; } -.ab-cv-done { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; } -.ab-cv-done .mdi { color: #10b981; } -/* minimised → just the header chip in the corner */ -.ab-castpanel.minimized { width: auto; max-width: 320px; height: auto; min-height: auto; resize: none; } -.ab-castpanel.minimized .ab-castpanel-bar, -.ab-castpanel.minimized .ab-cv-body, -.ab-castpanel.minimized .ab-castpanel-foot { display: none; } -.ab-castpanel.minimized .ab-castpanel-head { cursor: pointer; border-bottom: none; } - -.ab-castpanel-inline { - display: flex; - flex-direction: column; - background: var(--panel); - /* Bound to the viewport so the feed scrolls internally instead of pushing - the action bar (Continue casting / Edit in Rehearser / ...) down the page - — without this, .ab-cv-body's flex:1 has no height to divide up against. */ - height: calc(100vh - 230px); - min-height: 420px; - overflow: hidden; -} - -.ab-cv-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; padding: 12px; flex: 1; min-height: 0; min-width: 0; transition: grid-template-columns .15s; } -.ab-cv-body.side-collapsed { grid-template-columns: minmax(0, 1fr) 44px; } -.ab-cv-feed-wrap { position: relative; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--panel); } -.ab-cv-topbar { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 8px; - padding: 0 6px 8px; - flex: 0 0 auto; - min-width: 0; -} -.ab-edit-toolbar { - display: flex; - align-items: center; - justify-content: flex-end; - gap: 4px; - flex: 0 0 auto; - margin-left: auto; -} -.ab-edit-btn { - width: 28px; - height: 28px; - display: inline-flex; - align-items: center; - justify-content: center; - border: 1px solid var(--border); - border-radius: 6px; - background: var(--surface); - color: var(--subtext); - cursor: pointer; -} -.ab-edit-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); background: var(--panel); } -.ab-edit-btn:disabled { opacity: .42; cursor: default; } -.ab-page-nav { - display: flex; - align-items: center; - justify-content: flex-end; - gap: 4px; - flex: 0 0 auto; -} -.ab-page-select { - min-width: 112px; - height: 28px; - padding: 3px 8px; - border: 1px solid var(--border); - border-radius: 6px; - background: var(--surface); - color: var(--text); - font-size: 12px; -} -.ab-page-nav-btn { - width: 28px; - height: 28px; - display: inline-flex; - align-items: center; - justify-content: center; - border: 1px solid var(--border); - border-radius: 6px; - background: var(--surface); - color: var(--subtext); - cursor: pointer; -} -.ab-page-nav-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--panel); } -.ab-cv-feed { flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; border: 0px solid var(--border); border-radius: 0px; padding: 0px 10px 10px 0px; background: none; display: flex; flex-direction: column; gap: 18px; } -/* Each source page renders as its own "paper" card — white surface, thin - border, soft shadow — sitting on the feed's canvas background, so a long - book reads like a paginated document instead of one unbroken stream. */ -.ab-cv-page { - /* Merged "paper" look: Casting's stacked-card border/shadow + Rehearser's - off-white paper background/font/colour (kept a fixed light paper even in - dark mode, same as .reh-a4-page, since it's meant to read as a printed page). */ - background: #fff; - color: #1a1a2e; - font-family: 'Courier New', Courier, monospace; - font-size: calc(12pt * var(--reh-stage-scale, 1)); - border-top: 1px solid var(--border); - border-left: 1px solid var(--border); - border-right: 1px solid #ccc; - border-bottom: 1px solid #ccc; - border-radius: 0px; - box-shadow: 5px 5px 10px rgba(0, 0, 0, .08); - padding: 14px 16px; - display: flex; flex-direction: column; gap: 3px; -} -[data-theme="dark"] .ab-cv-page { background: #f8f8f2; color: #1a1a2e; } -/* A fully-cast long book keeps EVERY page's full DOM forever (deliberate — - "keep the full completed cast available for review"), which measured at - ~40,000 live nodes for a real 235-page book — confirmed live as a serious - memory/layout cost, and a real contributor to tab instability on top of - whatever else is running in the same tab (PDF canvases, an OCR worker...). - `content-visibility: auto` lets the browser skip layout/paint/style work - for whichever page groups are off-screen without touching a single line - of the scroll/search/click-handler JS that assumes every row still - physically exists in the DOM — the nodes stay, the browser just stops - doing expensive work on the ones nobody can see. `contain-intrinsic-size` - gives it a rough placeholder height before a page's real size is ever - measured, so scrolling doesn't jump around before that happens. */ -.ab-cv-page { content-visibility: auto; contain-intrinsic-size: auto 500px; } -/* Long unbroken passage strings must wrap, never widen the layout (it was - pushing the sidebar out of frame). */ -.ab-cv-row { min-width: 0; overflow-wrap: anywhere; word-break: break-word; } -.ab-cv-llm-preview { overflow-wrap: anywhere; word-break: break-word; } -.ab-cv-llm-pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; margin: 0; } -.ab-cv-jump-btn { - position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); - display: flex; align-items: center; gap: 4px; - padding: 5px 14px; font-size: 12px; font-weight: 700; - background: var(--accent); color: #fff; border: none; border-radius: 20px; - cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); z-index: 5; - white-space: nowrap; -} -.ab-cv-jump-btn:hover { filter: brightness(1.1); } -.ab-cv-row { - display: block; - font-family: 'Courier New', Courier, monospace; - /* Fixed px here silently defeated the A-/A+ controls (which set - --reh-stage-scale on an ancestor) — this hardcoded size always won over - the inherited calc() on .ab-cv-page, so the buttons visibly changed - nothing. Scale it the same way. */ - font-size: calc(13.5px * var(--reh-stage-scale, 1)); - line-height: 1.5; - padding: 20px 50px; - margin-bottom: 4px; - position: relative; -} -.ab-cv-row-tools { - position: absolute; - top: 4px; - right: 4px; - display: inline-flex; - gap: 2px; - opacity: 0; - pointer-events: none; - transition: opacity .12s; -} -.ab-cv-row:hover .ab-cv-row-tools, -.ab-cv-row:focus-within .ab-cv-row-tools { - opacity: 1; - pointer-events: auto; -} -.ab-cv-row-tool { - width: 24px; - height: 24px; - display: inline-flex; - align-items: center; - justify-content: center; - border: 1px solid var(--border); - border-radius: 6px; - background: var(--surface); - color: var(--subtext); - cursor: pointer; - font-size: 15px; - box-shadow: 0 2px 6px rgba(0,0,0,.12); -} -.ab-cv-row-tool:hover { color: var(--accent); border-color: var(--accent); background: var(--panel); } -.ab-cv-row.is-narr { opacity: .85; } -.ab-cv-edit-ta { - width: 100%; min-height: 60px; resize: vertical; font: inherit; color: inherit; - background: rgba(37,99,235,.06); border: 1px solid var(--accent); border-radius: 4px; - padding: 4px 6px; outline: none; -} -.ab-cv-spk { - display: block; - font-weight: 700; - letter-spacing: 0.08em; - text-transform: uppercase; - margin-bottom: 2px; -} -.ab-cv-row:not(.is-narr):not(.is-processing) .ab-cv-spk { - padding-left: 120px; - cursor: pointer; - border-radius: 4px; - transition: background 0.15s; -} -.ab-cv-row:not(.is-narr):not(.is-processing) .ab-cv-spk:hover { - background: rgba(37,99,235,0.08); -} -.ab-cv-row.is-assigning { - background: rgba(245,158,11,0.1) !important; - outline: 2px dashed rgba(245,158,11,0.5); - outline-offset: -2px; - border-radius: 6px; -} -.ab-cv-row.is-assigning .ab-cv-spk { - background: rgba(245,158,11,0.2); - color: #d97706 !important; -} -.ab-cv-row:not(.is-narr):not(.is-processing) .ab-cv-txt { - display: block; - padding-left: 60px; - /*max-width: 500px;*/ -} -.ab-cv-row.is-narr .ab-cv-spk { - display: block; - font-weight: 600; - padding-left: 0; - font-size: 11px; -} -.ab-cv-row.is-processing { - font-family: inherit; - display: block; - padding: 4px 8px; -} -.ab-cv-llm-head { display: flex; align-items: center; gap: 6px; } -.ab-cv-row.is-processing .ab-cv-spk { - display: inline-block; - padding-left: 0; - letter-spacing: normal; - text-transform: none; - font-size: 12px; - margin: 0; -} -.ab-cv-expand-btn { - border: none; background: none; cursor: pointer; - color: var(--subtext); padding: 0 2px; line-height: 1; - font-size: 15px; border-radius: 4px; -} -.ab-cv-expand-btn:hover { color: var(--text); background: var(--panel); } -.ab-cv-llm-preview { - font-size: 12px; color: var(--subtext); font-style: italic; - padding: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -} -.ab-cv-llm-pre { - font-family: inherit; font-size: 12px; color: var(--text); - white-space: pre-wrap; word-break: break-word; - background: var(--bg); border: 1px solid var(--border); - border-radius: 6px; padding: 8px 10px; margin: 0; - max-height: 260px; overflow-y: auto; -} -.ab-cv-page-label { - width: calc(100% + 4px); - border: 0; - background: transparent; - display: flex; align-items: center; gap: 6px; - font-size: 11px; font-weight: 700; letter-spacing: .06em; - color: var(--subtext); text-transform: uppercase; - padding: 0 0 8px; - border-bottom: 1px dashed var(--border); - margin: -2px -2px 10px; - text-align: left; - cursor: pointer; -} -.ab-cv-page-label .mdi { font-size: 13px; opacity: .7; } -.ab-cv-page-label:hover { color: var(--accent); } -.ab-cv-page-back { margin-left: auto; } -.ab-cv-txt { color: var(--text); white-space: pre-wrap; word-wrap: break-word; } -/* Every word in the narration/dialogue text is individually clickable — the - basis for "click a name in the text to assign", including names the app - doesn't already know (drag across a multi-word one to select it all). */ -/* Live LLM view while a passage is processing: passage left, the LLM's live - thinking/raw-output stream right. Collapsed by default; toggled by the - chevron button in .ab-cv-llm-head. */ -.ab-cv-llm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; } -.ab-cv-llm-col { min-width: 0; display: flex; flex-direction: column; gap: 4px; } -.ab-cv-llm-col-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--subtext); display: flex; align-items: center; gap: 5px; } -.ab-cv-think { - margin: 0; height: 240px; min-height: 80px; max-height: 80vh; resize: vertical; overflow-y: auto; white-space: pre-wrap; - overflow-wrap: anywhere; font-size: 11.5px; line-height: 1.5; color: var(--text); - background: rgba(37,99,235,.05); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; -} -.ab-cv-llm-split .ab-cv-llm-pre { height: 240px; min-height: 80px; max-height: 80vh; resize: vertical; overflow-y: auto; font-size: 11.5px; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; background: var(--panel); } -@media (max-width: 900px) { .ab-cv-llm-split { grid-template-columns: 1fr; } } - -/* Heading-like narration (recovered chapter titles, OCR headline bands): - bold, larger, centered so titles read as titles inside the paper page. */ -.ab-cv-row.is-heading .ab-cv-txt { - display: block; text-align: center; font-weight: 700; - font-size: 1.25em; letter-spacing: .02em; padding: 6px 0; -} -.ab-font-ctl { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; } -.ab-font-ctl .ab-page-nav-btn { width: auto; padding: 0 8px; font-size: 12px; font-weight: 700; } -.ab-name-hit { cursor: pointer; border-radius: 2px; } -.ab-name-hit:hover { background: rgba(37,99,235,.14); text-decoration: underline; text-decoration-style: dotted; } -.ab-cv-txt { cursor: pointer; } -/* Single reused overlay marking the word under the cursor (positioned in JS - from the caret range) — replaces per-word spans, which at book scale meant - ~100k extra DOM nodes and froze the page. */ -.ab-word-hover { - position: fixed; z-index: 5; pointer-events: none; - background: rgba(37,99,235,.16); border-radius: 3px; - outline: 1px dotted rgba(37,99,235,.55); -} -.ab-word-hover[hidden] { display: none; } -.ab-cv-note { font-size: 11.5px; color: var(--subtext); font-style: italic; padding: 3px 0 3px 4px; border-left: 2px solid var(--border); font-family: sans-serif; } -.ab-cv-side { - border: 1px solid var(--border); border-radius: 8px; padding: 8px; background: var(--panel); - min-height: 0; display: flex; flex-direction: column; overflow: hidden; -} -.ab-cv-side-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--subtext); margin-bottom: 6px; } -.ab-cv-side-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.ab-cv-side-collapse { border: none; background: none; color: var(--subtext); cursor: pointer; padding: 2px; border-radius: 4px; line-height: 1; flex-shrink: 0; } -.ab-cv-side-collapse:hover { background: var(--surface); color: var(--text); } -.ab-cv-side-done { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); flex: 0 0 auto; } -.ab-cv-side-tools { display: flex; gap: 4px; margin-bottom: 6px; flex: 0 0 auto; } -.ab-cv-side-search { - flex: 1; min-width: 0; padding: 4px 7px; font-size: 11.5px; border: 1px solid var(--border); - border-radius: 5px; background: var(--surface); color: var(--text); outline: none; -} -.ab-cv-side-search:focus { border-color: var(--accent); } -.ab-cv-side-sort { - padding: 4px 5px; font-size: 11px; border: 1px solid var(--border); border-radius: 5px; - background: var(--surface); color: var(--text); cursor: pointer; flex-shrink: 0; -} -.ab-cv-side.is-collapsed .ab-cv-side-tools { display: none; } -/* flex:1 is the actual fix here — without it this just sizes to its own - content like any other block element, ignoring .ab-cv-side's bounded - height entirely, so its own overflow-y:auto never has anything to - constrain against: the list silently grows past the panel (clipped only - by the parent's overflow:hidden, with no scrollbar at all) instead of - scrolling internally. Confirmed live as the reported "Characters found" - sidebar having no scrollbar and leaving a mismatched empty gap in the - feed column next to it (the grid row stretches to fit the taller, - unbounded sidebar content). */ -.ab-cv-chars { flex: 1; display: block; min-height: 0; overflow-y: auto; padding-right: 2px; } -.ab-cv-empty { font-size: 12px; color: var(--subtext); font-style: italic; } -/* Collapsed sidebar: shrink to just the avatar dots, hide name/count/labels. - The grid column itself is narrowed via .ab-cv-body.side-collapsed. */ -.ab-cv-side.is-collapsed { padding: 8px 4px; } -.ab-cv-side.is-collapsed .ab-cv-side-title, -.ab-cv-side.is-collapsed .ab-char-name, -.ab-cv-side.is-collapsed .ab-char-count { display: none; } -.ab-cv-side.is-collapsed .ab-char-item { justify-content: center; padding: 4px 0; } -.ab-cv-side.is-collapsed .ab-char-dot { margin: 0; } -/* Skeleton loading placeholders */ -.ab-skel-feed { padding:8px 0; } -.ab-skel-chars { padding:4px 0; } -.ab-skel-row, .ab-skel-char-row { - display:flex; align-items:center; gap:8px; - padding:6px 10px; border-radius:4px; - opacity:.55; -} -.ab-skel-row { flex-direction:column; align-items:flex-start; gap:5px; margin-bottom:2px; } -.ab-skel-row.ab-skel-dlg { flex-direction:row; flex-wrap:wrap; align-items:center; } -.ab-skel-line { - height:10px; border-radius:4px; - background:linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%); - background-size:200% 100%; - animation:skeletonSweep 1.4s ease-in-out infinite; -} -.ab-skel-narr .ab-skel-line { height:9px; } -.ab-skel-dlg .ab-skel-line { height:11px; } -.ab-skel-spk { - width:52px; height:11px; border-radius:4px; flex-shrink:0; - background:linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%); - background-size:200% 100%; - animation:skeletonSweep 1.4s ease-in-out infinite; - opacity:.9; -} -.ab-skel-dot { - width:26px; height:26px; border-radius:50%; flex-shrink:0; - background:linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%); - background-size:200% 100%; - animation:skeletonSweep 1.4s ease-in-out infinite; -} -.ab-skel-num { - width:18px; height:10px; border-radius:4px; margin-left:auto; - background:linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%); - background-size:200% 100%; - animation:skeletonSweep 1.4s ease-in-out infinite; -} -.ab-skel-char-row .ab-skel-line { height:10px; flex:1; } -/* stagger animation delays for a wave effect */ -.ab-skel-row:nth-child(2) .ab-skel-line, -.ab-skel-row:nth-child(2) .ab-skel-spk { animation-delay:.15s; } -.ab-skel-row:nth-child(3) .ab-skel-line, -.ab-skel-row:nth-child(3) .ab-skel-spk { animation-delay:.3s; } -.ab-skel-row:nth-child(4) .ab-skel-line, -.ab-skel-row:nth-child(4) .ab-skel-spk { animation-delay:.45s; } -.ab-skel-row:nth-child(5) .ab-skel-line { animation-delay:.6s; } -.ab-skel-row:nth-child(6) .ab-skel-line { animation-delay:.75s; } -.ab-skel-char-row:nth-child(2) * { animation-delay:.1s; } -.ab-skel-char-row:nth-child(3) * { animation-delay:.2s; } -.ab-skel-char-row:nth-child(4) * { animation-delay:.3s; } -.ab-skel-char-row:nth-child(5) * { animation-delay:.4s; } -/* Character list rows in the casting side panel */ -.ab-char-item { - position: relative; - display:flex; align-items:center; gap:8px; padding:7px 10px; - border-radius:8px; cursor:pointer; transition:background .12s, border-color .12s; - overflow: hidden; - min-height: 44px; -} -.ab-char-item:hover, .ab-char-item.is-active { background:var(--surface); } -.ab-char-item.is-active { border-left:2px solid var(--accent); padding-left:6px; } -.ab-char-item > :not(.cs-progress-fillmeta) { position: relative; z-index: 1; } -.ab-char-dot { - width:30px; height:30px; border-radius:50%; flex-shrink:0; - display:flex; align-items:center; justify-content:center; - font-size:13px; font-weight:800; color:#fff; - box-shadow: 0 2px 6px rgba(0,0,0,.14), inset 0 0 0 1px rgba(255,255,255,.28); - border: 1px solid rgba(255,255,255,.28); -} -/* border-color is set inline per-row to the character's own cast color, so a - real portrait still reads as "this character" at a glance in a long list, - the same way the plain colored-letter dot already does via its background. */ -.ab-char-dot-img { overflow: hidden; background: var(--panel); border-width: 2px; } -.ab-char-dot-img img { width: 100%; height: 100%; object-fit: cover; } -.ab-char-name { flex:1; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width: 0; } -.ab-char-count { - margin-left: auto; - flex-shrink: 0; - min-width: 24px; - display: inline-flex; - align-items: center; - justify-content: flex-end; - color: var(--subtext); - font-weight: 700; - line-height: 1; - font-size: 14px; -} -.ab-char-count-divider { - width: 16px; - height: 1px; - background: color-mix(in srgb, var(--subtext) 55%, transparent); - border-radius: 999px; -} -.ab-char-alias-btn { - flex-shrink: 0; width: 20px; height: 20px; border-radius: 4px; border: none; - background: none; color: var(--subtext); cursor: pointer; display: none; - align-items: center; justify-content: center; font-size: 13px; -} -.ab-char-item:hover .ab-char-alias-btn { display: inline-flex; } -.ab-char-alias-btn:hover { background: var(--panel); color: var(--accent); } -/* Sidebar's own collapse state hides the count/name anyway; keep the alias - button out of the way rather than fighting for the 44px column. */ -.ab-cv-side.is-collapsed .ab-char-alias-btn { display: none !important; } -.ab-cv-chars .ab-char-item + .ab-char-item { margin-top: 4px; } - -.ab-alias-popup { - position: fixed; z-index: 2002; width: 260px; - background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); - box-shadow: 0 10px 25px rgba(0,0,0,.35); padding: 10px; display: flex; flex-direction: column; gap: 8px; -} -.ab-alias-popup-title { font-size: 12px; color: var(--subtext); } -.ab-alias-popup-title b { color: var(--text); } -.ab-alias-popup-inp { - width: 100%; padding: 6px 8px; font-size: 12.5px; border: 1px solid var(--border); - border-radius: 6px; background: var(--bg, var(--surface)); color: var(--text); outline: none; -} -.ab-alias-popup-inp:focus { border-color: var(--accent); } -.ab-alias-popup-hint { font-size: 10.5px; color: var(--subtext); text-transform: uppercase; letter-spacing: .03em; font-weight: 700; margin-top: -2px; } -.ab-alias-popup-list { display: flex; flex-direction: column; gap: 2px; max-height: 180px; overflow-y: auto; } -.ab-alias-merge-opt { - display: flex; justify-content: space-between; align-items: center; gap: 8px; - padding: 5px 7px; font-size: 12px; border: 1px solid transparent; border-radius: 5px; - background: none; color: var(--text); cursor: pointer; text-align: left; -} -.ab-alias-merge-opt:hover { background: var(--panel); border-color: var(--border); } -.ab-alias-merge-name { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.ab-alias-merge-name .ab-char-dot { width: 18px; height: 18px; font-size: 9px; } -.ab-alias-merge-count { font-size: 10.5px; color: var(--subtext); font-weight: 700; flex-shrink: 0; } -.ab-alias-popup-actions { display: flex; justify-content: flex-end; gap: 6px; } -/* Grouped footer flyout menus (Identify / Cast / View & Export Characters) — - opens upward from a bottom toolbar, fixed-position + body-appended so it's - never clipped by the scrolling panel it lives in. */ -.ab-foot-trigger.is-menu-open { border-color: var(--accent); color: var(--accent); } -.ab-foot-menu { - position: fixed; z-index: 2002; min-width: 240px; max-width: 320px; - max-height: calc(100vh - 24px); overflow-y: auto; - background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); - box-shadow: 0 10px 25px rgba(0,0,0,.35); padding: 6px; display: flex; flex-direction: column; gap: 2px; -} -.ab-foot-menu-item { - display: flex; align-items: center; gap: 10px; - padding: 8px 10px; font-size: 13px; font-weight: 600; text-align: left; - border: none; border-radius: 7px; background: none; color: var(--text); cursor: pointer; -} -.ab-foot-menu-item:hover:not(:disabled) { background: var(--panel); } -.ab-foot-menu-item:disabled { opacity: .4; cursor: not-allowed; } -.ab-foot-menu-item .mdi { font-size: 16px; color: var(--subtext); flex-shrink: 0; } -.ab-foot-menu-item.is-danger { color: var(--error); } -.ab-foot-menu-item.is-danger .mdi { color: var(--error); } -.ab-foot-menu-item-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.ab-foot-menu-sep { height: 1px; margin: 4px 6px; background: var(--border); } -/* Character detail panel inside the casting feed area */ -.ab-char-detail-panel { - display:flex; flex-direction:column; overflow-y:auto; - height:100%; border:1px solid var(--border); border-radius:8px; - background:var(--panel); -} -.ab-char-detail-back { - display:inline-flex; align-items:center; gap:6px; - background:none; border:none; cursor:pointer; color:var(--accent); - font-size:13px; padding:10px 14px 6px; opacity:.85; flex-shrink:0; -} -.ab-char-detail-back:hover { opacity:1; } -.ab-char-detail-panel .lcd-header { border-radius:0; flex-shrink:0; } -.ab-cd-body { padding:0; } -.ab-cd-body .lcd-voice-top button { - padding:3px 8px; font-size:11px; border:1px solid var(--border); - border-radius:4px; background:none; cursor:pointer; color:var(--text); -} -.ab-cd-edit-btn { - background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.3); - border-radius:6px; cursor:pointer; color:#fff; padding:5px 8px; - font-size:14px; display:flex; align-items:center; line-height:1; - transition:background .15s; -} -.ab-cd-edit-btn:hover { background:rgba(255,255,255,.28); } -.ab-cd-header-actions { position:absolute; top:10px; right:10px; display:flex; align-items:center; gap:8px; z-index:3; } -.ab-cd-refine-btn { - background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.3); - border-radius:6px; cursor:pointer; color:#fff; padding:5px 10px; - font-size:12px; font-weight:700; display:flex; align-items:center; gap:6px; line-height:1; - transition:background .15s; -} -.ab-cd-refine-btn:hover { background:rgba(255,255,255,.28); } -/* editable fields: show hint border in edit mode */ -.ab-cd-editing .ab-editable { - border-bottom:1px dashed var(--accent); - outline:none; cursor:text; min-height:1.3em; - border-radius:2px; padding:1px 2px; -} -.ab-cd-editing .ab-editable:focus { background:rgba(124,106,247,.07); } -.ab-cd-body .lcd-voice-top .ab-cd-pick:hover { border-color:var(--accent); color:var(--accent); } -.ab-cd-body .lcd-voice-top .ab-cd-auto:hover { border-color:var(--green,#22c55e); color:var(--green,#22c55e); } -.ab-cd-body .lcd-voice-top .ab-cd-online:hover { border-color:#0ea5e9; color:#0ea5e9; } -.ab-cd-color { - display:inline-flex; align-items:center; gap:5px; - padding:3px 7px; border:1px solid var(--border); border-radius:4px; - color:var(--subtext); cursor:pointer; line-height:1; -} -.ab-cd-color:hover { border-color:var(--accent); color:var(--accent); } -.ab-cd-color input { - width:22px; height:18px; padding:0; border:0; background:transparent; cursor:pointer; -} -.cl-edit-color input[type="color"] { - width:48px; height:30px; padding:2px; cursor:pointer; -} -/* Character selection bar (compact bar above the casting feed) */ -.ab-char-bar[hidden] { display: none; } -.ab-char-bar { - display:flex; align-items:center; gap:8px; - flex:1 1 430px; min-width:280px; max-width:100%; - padding:6px 10px; margin:0; - background:var(--panel); border:1px solid var(--border); border-radius:8px; -} -.ab-char-bar-dot { - width:32px; height:32px; border-radius:50%; flex-shrink:0; - display:flex; align-items:center; justify-content:center; - font-size:13px; font-weight:700; color:#fff; -} -.ab-char-bar-info { display:flex; flex-direction:column; min-width:0; flex-shrink:0; } -.ab-char-bar-name { font-size:13px; font-weight:700; white-space:nowrap; } -.ab-char-bar-cnt { font-size:11px; opacity:.5; } -.ab-char-bar-nav { display:flex; align-items:center; gap:4px; flex-shrink:0; } -.ab-char-bar-nav button { - width:26px; height:26px; border-radius:50%; - border:1px solid var(--border); background:none; cursor:pointer; color:var(--text); - display:flex; align-items:center; justify-content:center; font-size:15px; -} -.ab-char-bar-nav button:hover { background:var(--panel); border-color:var(--accent); } -.ab-char-bar-pos { font-size:11px; opacity:.6; min-width:44px; text-align:center; } -.ab-char-bar-search { - flex:1; min-width:140px; max-width:none; - padding:4px 8px; font-size:12px; - border:1px solid var(--border); border-radius:6px; - background:var(--bg,var(--surface)); color:var(--text); outline:none; -} -.ab-char-bar-search:focus { border-color:var(--accent); } -.ab-char-bar-profile, .ab-char-bar-close { - padding:4px 8px; font-size:12px; flex-shrink:0; - border:1px solid var(--border); border-radius:6px; - background:none; cursor:pointer; color:var(--text); - display:inline-flex; align-items:center; gap:4px; -} -.ab-char-bar-profile:hover { border-color:var(--accent); color:var(--accent); } -.ab-char-bar-close { padding:4px 6px; } -.ab-char-bar-close:hover { border-color:#f87171; color:#f87171; } -/* Feed row highlights for selected character */ -.ab-cv-row.ab-char-hl { background:rgba(124,106,247,.08); } -.ab-cv-row.ab-char-focus { background:rgba(124,106,247,.20); border-left:3px solid var(--accent); padding-left:5px; } -/* Keep old ab-chip for any legacy use */ -.ab-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 20px; cursor: pointer; transition: background 0.1s; } -.ab-chip:hover { background: var(--panel); border-color: var(--accent); } -.ab-chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex-shrink: 0; } -.ab-chip b { margin-left: auto; color: var(--subtext); font-weight: 700; } -.audiobook-narr-note { color: var(--subtext); } -@media (max-width: 900px) { - .ab-cv-topbar { flex-wrap: wrap; } - .ab-char-bar { flex-basis: 100%; } - .ab-edit-toolbar { margin-left: 0; } -} -@media (max-width: 560px) { .ab-cv-body { grid-template-columns: 1fr; } .ab-cv-side { height: auto; max-height: 22vh; } } - -/* Audiobook casting overlay */ -.audiobook-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; } -.audiobook-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; width: min(420px, 90vw); box-shadow: 0 12px 40px rgba(0,0,0,.25); } -.audiobook-box.conceptart-lightbox-box { width: min(1120px, calc(100vw - 40px)); max-width: calc(100vw - 40px); } -.audiobook-title { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; } -.audiobook-title .mdi { color: var(--accent); font-size: 20px; } -.audiobook-msg { color: var(--subtext); font-size: 13px; margin: 10px 0 12px; } -.audiobook-box .reader-synth-track { width: 100%; } -.audiobook-box label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--subtext); } -.audiobook-box label input[type="text"] { font: inherit; font-weight: 400; color: var(--text); padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); } -.audiobook-box.cdi-voice-dialog { - box-sizing: border-box; width: min(600px, calc(100vw - 32px)); max-width: none; - max-height: calc(100dvh - 32px); overflow-y: auto; -} -.cdi-voice-actions { - display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); - gap: 8px; margin-top: 14px; -} -.cdi-voice-actions button { - box-sizing: border-box; min-width: 0; width: 100%; height: auto; - min-height: 58px; padding: 8px 7px; white-space: normal; line-height: 1.2; - overflow-wrap: anywhere; justify-content: center; -} -@media (max-width: 540px) { - .audiobook-box.cdi-voice-dialog { padding: 18px 16px; } - .cdi-voice-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } -} -.audiobook-actions { margin-top: 14px; text-align: right; display: flex; gap: 8px; justify-content: flex-end; } -.conceptart-editor-box .conceptart-editor-preview { width: 100%; } -.conceptart-editor-box .conceptart-editor-preview .conceptart-lightbox-img { max-width: 100%; width: auto; } - -/* Avatar lightbox — click any character avatar to open */ -.avatar-lightbox-box { width: min(1180px, 96vw); max-height: 92vh; overflow-y: auto; } -.alb-body { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; align-items: center; } -.alb-preview { width: min(560px, 86vw); } -.alb-preview img { width: min(560px, 86vw); height: min(560px, 86vw); min-width: 500px; min-height: 500px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); } -.alb-preview-empty { - width: min(560px, 86vw); height: min(560px, 86vw); min-width: 500px; min-height: 500px; border-radius: 14px; border: 1px dashed var(--border); - display: flex; align-items: center; justify-content: center; font-size: 120px; color: var(--subtext); opacity: .5; -} -.alb-actions { width: min(760px, 92vw); display: flex; flex-direction: column; gap: 22px; } -.alb-quick-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; } -.alb-section-label { font-size: 14px; font-weight: 700; color: var(--subtext); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } -.alb-section input[type="file"] { font-size: 13.5px; width: 100%; } -.alb-url-row { display: flex; gap: 8px; } -.alb-url-row input { flex: 1; min-width: 0; font-size: 13.5px; padding: 8px 10px; } -#alb-prompt { width: 100%; font-size: 13.5px; font-family: inherit; resize: vertical; padding: 10px; min-height: 140px; } -.alb-gen-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; } -.alb-gen-row select { flex: 1; min-width: 0; font-size: 13.5px; padding: 8px 10px; } -.alb-gen-row .btn-primary { font-size: 13.5px; padding: 9px 16px; } -@media (max-width: 820px) { - .alb-preview, .alb-preview img, .alb-preview-empty { min-width: 0; width: min(500px, 86vw); height: min(500px, 86vw); } - .alb-actions { min-width: 0; width: 100%; } -} -#alb-status { margin-top: 10px; } -.ab-recast-select-list { max-height: 320px; overflow-y: auto; margin: 10px 0; text-align: left; border: 1px solid var(--border); border-radius: 6px; padding: 4px; } -.audiobook-box.ab-recast-dialog { width: min(760px, calc(100vw - 40px)); max-width: calc(100vw - 40px); max-height: 90vh; } -.ab-recast-select-list label.ab-char-item { display:flex; flex-direction:row; align-items:center; width:100%; box-sizing:border-box; } -.ab-recast-select-list .ab-char-name { min-width:0; flex:1; text-align:left; } -.ab-recast-select-list .ab-char-count { margin-left:auto; flex:0 0 auto; } -.ab-recast-select-list .ab-char-item + .ab-char-item { margin-top: 2px; } -.ab-recast-select-list .ab-recast-cb { flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; } -.ab-recast-select-list .ab-cv-empty { padding: 16px; text-align: center; color: var(--subtext); font-size: 13px; } -.audiobook-count { font-weight: 500; font-size: 12px; color: var(--subtext); margin-left: auto; } -.audiobook-preview-box { width: min(760px, 94vw); } -.audiobook-preview-box .audiobook-title { flex-wrap: wrap; } -.audiobook-seglist { max-height: 56vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 6px; margin-top: 6px; } -.audiobook-seg { display: grid; grid-template-columns: 130px 96px 1fr; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; } -.audiobook-seg:nth-child(odd) { background: var(--panel); } -.audiobook-seg.is-dialog { box-shadow: inset 3px 0 0 var(--accent); } -.audiobook-seg input { padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 12px; font-family: var(--font); min-width: 0; } -.audiobook-seg input:disabled { opacity: .4; } -.audiobook-seg-text { font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -#reh-tb-audiobook .mdi { color: var(--accent); } -#reader-charsheets-btn .mdi, #reh-charsheets-btn .mdi { color: var(--accent); } - -/* Character sheets overlay */ -.cs-box { width: min(1120px, 96vw); max-height: 90vh; display: flex; flex-direction: column; } -.cs-page-shell { width: 100%; max-width: none; } -#s-reader #reader-charsheets-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; } -#s-caststudio #reader-charsheets-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; } -#s-reader #reader-charsheets-panel .cs-progress-box-big, -#s-caststudio #reader-charsheets-panel .cs-progress-box-big, -#s-reader #reader-charsheets-panel .cs-page-shell, -#s-caststudio #reader-charsheets-panel .cs-page-shell { - width: 100%; - max-width: none; -} -/* Embedded inline, this has been through three wrong attempts: - (1) a fixed/viewport-relative height left a gap below the box whenever - the section (a fixed, full-height flex column needed for other - content like the PDF reader) was taller than the box needed to be; - (2) flex:1 (forcing the box to fill that whole section) fixed that gap, - but then forced .cs-progress-preview (flex:1 itself, scrolling a - single character's card) to stretch to match — so a SHORT card left - the SAME empty gap one level down, inside the preview panel instead - of below the box; - (3) making the BOX ALSO shrink-to-content (flex:0 1 auto) to fix that, - intending "short content -> short box" — but .cs-progress-layout - (the box's own direct child) is itself `flex:1` (meant to fill - whatever height the box has), which made the box's "content size" - circular: the box has no real min-content height to shrink to as - long as its child is a flex:1 filler, so it silently kept resolving - to the max-height CEILING regardless of how little was actually - generated yet — confirmed live: an 8-character result still filled - the box to the exact 90vh cap, even though almost nothing had been - generated, leaving a huge empty gap below the small amount of real - content. - Back to flex:1 (the box fills the section, no gap below it — that part - of (2) was never actually wrong) and rely ENTIRELY on the preview/output - split below (.cs-progress-preview shrink + .cs-progress-output absorbing - the rest) to keep short content from looking stretched-empty, since that - fix (unlike this one) doesn't fight a flex:1 child. */ -#s-reader #reader-charsheets-panel .cs-progress-box-big, -#s-caststudio #reader-charsheets-panel .cs-progress-box-big { - height: auto; - flex: 1; - min-height: 0; - max-height: min(880px, 90vh); - box-shadow: none; -} -.cs-progress-box-big { - box-shadow: none; -} -.cs-progress-layout { - flex: 1; - min-height: 0; - display: grid; - grid-template-columns: minmax(0, 1fr) 300px; - gap: 14px; - margin-top: 12px; - align-items: stretch; -} -.cs-progress-layout.side-collapsed { - grid-template-columns: minmax(0, 1fr) 44px; -} -.cs-progress-left { - min-width: 0; - min-height: 0; - display: flex; - flex-direction: column; - gap: 12px; - min-height: 0; -} -.cs-titlebar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } -.cs-list { overflow-y: auto; padding-right: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 14px; align-content: start; } -/* Compact cards (_charCardHtml, same as the Library's own character grid) - need a much narrower column than the old full-detail cards this grid - used to render. */ -.cs-list.cs-list-compact { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } -.cs-group-label { grid-column: 1 / -1; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--subtext); margin-top: 4px; } -.cs-card { border: 1px solid var(--border); border-radius: 8px; padding: 14px; background: color-mix(in srgb, var(--panel) 88%, var(--surface)); box-shadow: 0 8px 22px rgba(0,0,0,.08); } -.cs-card.cs-main { box-shadow: inset 4px 0 0 var(--accent), 0 8px 22px rgba(0,0,0,.08); } -.cs-card.cs-supp { box-shadow: inset 4px 0 0 var(--border), 0 8px 22px rgba(0,0,0,.08); } -.cs-header-pills { - display: flex; - flex-wrap: wrap; - gap: 7px; - margin-top: 10px; -} -.cs-header-pill { - display: inline-flex; - align-items: center; - gap: 6px; - padding: 5px 10px; - border-radius: 999px; - border: 1px solid rgba(255,255,255,.24); - background: rgba(255,255,255,.14); - color: #fff; - box-shadow: 0 2px 6px rgba(0,0,0,.08); -} -.cs-header-pill .mdi { font-size: 14px; } -.cs-header-pill-label { - text-transform: uppercase; - letter-spacing: .05em; - font-size: 9px; - font-weight: 800; - opacity: .82; -} -.cs-header-pill-value { - font-size: 12px; - font-weight: 700; - white-space: nowrap; -} -.cs-header-pills-primary { margin-bottom: 2px; } -.cs-header-pills-primary + .lcd-tier-gender { margin-top: 8px; } -.lcd-header .cs-header-color { - flex-shrink: 0; align-self: flex-start; - background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.32); color: #fff; -} -.lcd-header .cs-header-color:hover { background: rgba(255,255,255,.32); border-color: rgba(255,255,255,.5); color: #fff; } -/* A too-narrow native color swatch can paint as garbled "###" text in some - Chromium builds before it settles — give it a bit more room than the - generic .ab-cd-color input default to avoid that. */ -.lcd-header .cs-header-color input { width: 30px; height: 20px; min-width: 30px; } -.cs-header-actions { - display: flex; - gap: 8px; - flex-shrink: 0; - align-self: flex-start; - flex-wrap: wrap; -} -.cs-detail-hero-note { - padding: 12px 18px; - background: color-mix(in srgb, var(--panel) 82%, var(--surface)); - border-bottom: 1px solid var(--border); -} -.cs-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } -.cs-name { font-weight: 900; font-size: 17px; letter-spacing: .01em; } -.cs-archetype { font-size: 12px; font-weight: 700; color: var(--accent); } -.cs-tier { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--subtext); border: 1px solid var(--border); border-radius: 20px; padding: 1px 8px; } -.cs-head-btns { margin-left: auto; display: flex; gap: 4px; flex-shrink: 0; } -.cs-head-btns .btn-secondary { font-size: 10px; padding: 2px 7px; } -.cs-img-btn:hover { border-color: #a78bfa; color: #a78bfa; } -.cs-voice-btn:hover { border-color: var(--accent); color: var(--accent); } -.cs-meta-tags { - display: flex; - flex-wrap: wrap; - gap: 6px; - margin: 4px 0 6px; -} -.cs-meta-tag { - display: inline-flex; - align-items: center; - gap: 6px; - border: 1px solid color-mix(in srgb, var(--border) 90%, transparent); - border-radius: 999px; - padding: 3px 8px; - background: color-mix(in srgb, var(--panel) 78%, transparent); - color: var(--subtext); - font-size: 11px; - line-height: 1; -} -.cs-meta-tag-label { - text-transform: uppercase; - letter-spacing: .04em; - font-size: 9px; - font-weight: 800; - color: var(--accent); -} -.cs-meta-tag-value { - font-style: italic; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - max-width: 220px; -} - -/* Character sheet card layout with avatar */ -.cs-card-top { display: flex; gap: 14px; margin-bottom: 10px; } -.cs-card-top-body { flex: 1; min-width: 0; } -.cs-avatar { - width: 80px; height: 80px; border-radius: 10px; flex-shrink: 0; - display: flex; align-items: center; justify-content: center; - font-size: 28px; font-weight: 800; color: #fff; - cursor: pointer; position: relative; overflow: hidden; - border: 2px solid rgba(255,255,255,.1); -} -.cs-avatar img { width: 100%; height: 100%; object-fit: cover; } -.cs-avatar-overlay { - position: absolute; inset: 0; background: rgba(0,0,0,.5); - display: flex; align-items: center; justify-content: center; - opacity: 0; transition: opacity .15s; font-size: 20px; color: #fff; -} -.cs-avatar:hover .cs-avatar-overlay { opacity: 1; } - -/* Library card avatar with image */ -.lib-char-avatar { position: relative; overflow: hidden; cursor: pointer; } -.lib-char-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; } -.lib-char-avatar-cam { - position: absolute; inset: 0; background: rgba(0,0,0,.5); - display: flex; align-items: center; justify-content: center; - opacity: 0; transition: opacity .15s; font-size: 14px; color: #fff; border-radius: inherit; -} -.lib-char-avatar:hover .lib-char-avatar-cam { opacity: 1; } - -/* Alignment gradient bar */ -.cs-alignment-wrap { margin: 8px 0 6px; } -.cs-alignment-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--subtext); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; } -.cs-alignment-gradient { - position: relative; height: 20px; border-radius: 4px; - background: linear-gradient(to right, #111 0%, #444 25%, #888 50%, #ccc 75%, #f5f5f5 100%); - box-shadow: inset 0 1px 3px rgba(0,0,0,.5); -} -.cs-alignment-dot { - position: absolute; top: 50%; transform: translate(-50%, -50%); - width: 18px; height: 18px; border-radius: 50%; - background: #fff; border: 2px solid rgba(0,0,0,.7); - box-shadow: 0 0 0 2px rgba(255,255,255,.5), 0 2px 6px rgba(0,0,0,.6); - display: flex; align-items: center; justify-content: center; -} -.cs-alignment-arc-arrow { - font-size: 13px; line-height: 1; font-style: normal; margin-top: -1px; - text-shadow: 0 1px 3px rgba(0,0,0,.8); -} -.cs-arc-note { font-size: 11px; color: var(--subtext); margin-top: 3px; font-style: italic; } -.cs-progress-box { width: min(520px, 92vw); } -/* Big layout: passage | live output side by side, character sidebar on the - right (current/just-updated characters highlighted) — same shape as the - audiobook casting live view, so you can watch each sheet being built. */ -.cs-progress-box-big { width: min(1400px, 96vw); height: min(880px, 90vh); display: flex; flex-direction: column; padding: 20px 22px; } -.cs-progress-head { flex-shrink: 0; } -.cs-progress-head .audiobook-msg { margin: 8px 0 10px; } -.cs-progress-prompt { padding: 10px 12px; margin: 0 0 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; } -.cs-progress-prompt textarea { - width: 100%; font-family: monospace; font-size: 12.5px; font-weight: 500; padding: 10px; - line-height: 1.5; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); - color: var(--text); resize: vertical; -} -.cs-progress-prompt-actions { display: flex; justify-content: flex-end; margin-top: 8px; gap: 8px; align-items: center; } -.cs-progress-prompt-actions select { max-width: 200px; outline: none; border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; font-size: 12px; background: var(--surface); color: var(--text); } -.cs-progress-prompt-actions input { width: 140px; padding: 4px 8px; font-size: 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); outline: none; } -.cs-progress-output { - display: flex; - flex-direction: column; - flex: 1 1 auto; - gap: 8px; - min-height: 120px; - max-height: 42vh; - overflow: auto; - resize: none; - position: relative; - padding: 10px 12px 12px; - border: 1px solid color-mix(in srgb, var(--border) 90%, transparent); - border-radius: 12px; - background: color-mix(in srgb, var(--panel) 72%, var(--surface)); - box-shadow: 0 1px 0 rgba(255,255,255,.7) inset; -} -.cs-progress-footer { - margin-top: auto; - padding-top: 12px; - display: flex; - align-items: center; - gap: 12px; -} -.cs-progress-footer-track { - flex: 1 1 auto; - min-width: 0; - margin: 0; - height: 12px; - border-radius: 999px; - overflow: hidden; -} -.cs-progress-footer .reader-synth-fill { border-radius: inherit; } -.cs-progress-footer-actions { - margin: 0; - flex: none; - display: flex; - justify-content: flex-end; -} -.cs-progress-output-head { - display: flex; align-items: center; justify-content: space-between; gap: 8px; - font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--subtext); - margin-top: 6px; -} -.cs-progress-output-title { display: inline-flex; align-items: center; gap: 6px; min-width: 0; } -.cs-progress-output .cs-progress-live-status { margin-left: 4px; } -.cs-progress-output.is-collapsed { - min-height: 140px; - max-height: 140px; - resize: none; - overflow: hidden; - padding-bottom: 10px; -} -.cs-progress-output.is-collapsed .cs-progress-body { display: flex; } -.cs-progress-output.is-collapsed .cs-progress-output-head { margin-top: 6px; } -/* A small centered grip bar on the panel's top edge, like a sheet handle, - instead of a boxed icon button floating over the bottom-right content. */ -.cs-progress-resize-handle { - position: absolute; top: 5px; left: 50%; transform: translateX(-50%); - width: 44px; height: 5px; border-radius: 999px; padding: 0; - border: none; - background: color-mix(in srgb, var(--subtext) 35%, transparent); - cursor: ns-resize; - z-index: 3; - transition: background .15s, width .15s; -} -.cs-progress-resize-handle:hover, -.cs-progress-resize-handle:active { background: var(--accent); width: 56px; } -.cs-output-resizing, .cs-output-resizing * { cursor: ns-resize !important; } -.cs-progress-body { flex: 1; min-height: 0; display: flex; gap: 14px; margin-top: 0; } -.cs-progress-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } -.cs-progress-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; } -.cs-progress-col-label { - display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; - text-transform: uppercase; letter-spacing: .04em; color: var(--subtext); flex-shrink: 0; -} -.cs-progress-passage-pre, .cs-progress-live-pre { - flex: 1; min-height: 0; margin: 0; padding: 10px 12px; overflow-y: auto; white-space: pre-wrap; - overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; color: var(--text); - background: var(--surface); border: 1px solid var(--border); border-radius: 8px; -} -.cs-progress-live-pre { background: rgba(37,99,235,.045); } -.cs-progress-output.is-collapsed .cs-progress-passage-pre, -.cs-progress-output.is-collapsed .cs-progress-live-pre { - font-size: 12.5px; - line-height: 1.45; - padding: 8px 10px; - min-height: 58px; -} -.cs-progress-side { - width: 100%; - flex-shrink: 0; - display: flex; - flex-direction: column; - gap: 8px; - min-height: 0; - /* NOT height:100% — the grid row's own height is itself content-derived - (no explicit row height on .cs-progress-layout), so a child asking for - "100% of the row" creates a circular reference that resolves back to - the child's own content size instead of actually matching the taller - sibling column. align-items:stretch on the grid already gives this a - real, definite computed height with no percentage involved — confirmed - live: removing this let the two columns match (was 180px vs the other - column's 371px; matched afterward). */ - padding: 10px 8px 8px; -} -.cs-progress-side.is-collapsed { - padding: 8px 4px; -} -.cs-progress-layout.side-collapsed .cs-progress-side { - width: 44px; -} -.cs-progress-side.is-collapsed .ab-cv-side-title, -.cs-progress-side.is-collapsed .ab-cv-side-tools, -.cs-progress-side.is-collapsed .ab-cv-side-done { - display: none; -} -.cs-progress-side.is-collapsed .cs-progress-chars { - padding-right: 0; -} -.cs-progress-side .ab-char-item { - min-height: 48px; - padding: 8px 12px; - border-radius: 10px; -} -.cs-progress-side .ab-char-item.is-active { - padding-left: 10px; -} -.cs-progress-side .ab-char-dot { - width: 32px; - height: 32px; - font-size: 13px; -} -.cs-progress-side .ab-char-name { - font-size: 16px; - font-weight: 600; -} -.cs-progress-side .ab-char-count { - font-size: 14px; -} -.cs-progress-side-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--subtext); flex-shrink: 0; } -.cs-progress-preview { - /* Not flex:1 — when the sidebar has many characters (and so needs a tall - column to give the list room to scroll, per align-items:stretch on - .cs-progress-layout), flex:1 here forced THIS panel to stretch to - match, leaving a large empty gap below a short/not-yet-filled sheet - (confirmed live with a short card next to a 72-character sidebar). - Shrink-to-content instead; .cs-progress-output below absorbs any - leftover column height since it's the piece meant to grow (it already - scrolls its own passage/live-output text, unlike this preview which - shows one bounded character sheet). */ - margin: 10px 0 0; - padding: 0; - min-height: 220px; - flex: 0 1 auto; - overflow: auto; -} -.cs-progress-left.is-output-collapsed .cs-progress-preview { min-height: 520px; } -.cs-progress-output.is-collapsed .cs-progress-output-title { opacity: .85; } -.cs-progress-output.is-working .cs-progress-output-title { color: var(--text); } -.cs-progress-preview .cs-card { - box-shadow: none; - border-radius: 12px; - margin: 0; - background: color-mix(in srgb, var(--panel) 92%, var(--surface)); -} -.cs-progress-preview .cs-head-btns, -.cs-progress-preview .cs-sources { - display: none; -} -.cs-progress-preview .cs-avatar { - pointer-events: none; - cursor: default; -} -.cs-progress-preview-empty { - font-size: 13px; - color: var(--subtext); - font-style: italic; - border: 1px dashed var(--border); - border-radius: 10px; - padding: 12px; - background: color-mix(in srgb, var(--panel) 80%, transparent); -} -.cs-progress-chars { flex: 1; min-height: 0; overflow-y: auto; display: block; padding: 2px 2px 4px; } -.cs-progress-chars .ab-char-item + .ab-char-item { margin-top: 6px; } -/* Two-row roster card: a bigger avatar spanning both rows, name on top, - line count + profile completeness together underneath — instead of - cramming avatar/name/count into one flex row like the casting sidebar. */ -.cs-progress-chars .ab-char-item { - display: grid; - grid-template-columns: 38px 1fr; - grid-template-rows: auto auto; - column-gap: 10px; - row-gap: 2px; - align-items: center; - min-height: 0; - padding: 8px 10px; -} -.cs-progress-chars .ab-char-dot { - grid-row: 1 / 3; - width: 38px; height: 38px; font-size: 15px; -} -.cs-progress-chars .ab-char-name { grid-column: 2; grid-row: 1; font-weight: 700; } -.cs-progress-chars .ab-char-meta { - grid-column: 2; grid-row: 2; - display: flex; align-items: center; gap: 6px; - font-size: 11.5px; color: var(--subtext); font-weight: 600; -} -.cs-progress-chars .ab-char-meta-sep { opacity: .45; } -.cs-progress-chars .ab-char-count { margin-left: 0; font-size: 11.5px; font-weight: 600; color: var(--subtext); } -.cs-progress-empty { font-size: 12px; color: var(--subtext); font-style: italic; text-align: center; padding: 20px 0; } -.cs-progress-chip { - display: grid; grid-template-columns: 26px minmax(0, 1fr) 44px auto; align-items: center; gap: 8px; - min-height: 38px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; - background: var(--surface); color: var(--text); flex-shrink: 0; -} -.cs-progress-chip.is-new { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.08); } -.cs-progress-chip.is-updated { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: 0 0 0 1px var(--accent); } -@media (max-width: 900px) { - .cs-progress-box-big { width: 96vw; height: 92vh; } - .cs-progress-body { flex-direction: column; } - .cs-progress-main { grid-template-columns: 1fr; } - .cs-progress-side { width: 100%; max-height: 180px; } -} -.cs-progress-dot { - width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; - background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; -} -.cs-progress-meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; } -.cs-progress-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; } -.cs-progress-alias { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--subtext); font-size: 10px; } -.cs-progress-fillmeta { - position: absolute; - inset: 0; - border-radius: inherit; - background: color-mix(in srgb, var(--panel) 90%, transparent); - overflow: hidden; - border: 1px solid color-mix(in srgb, var(--border) 85%, transparent); - pointer-events: none; -} -.cs-progress-fillmeta span { - display: block; - height: 100%; - background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 46%, transparent)); - border-radius: inherit; - min-width: 2px; -} -.cs-progress-badge { font-size: 9px; text-transform: uppercase; color: var(--subtext); font-weight: 800; } -.cs-fields { margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; } -.cs-identity-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); - gap: 6px; - margin-bottom: 4px; -} -.cs-id-cell { - display: flex; - flex-direction: column; - gap: 3px; - padding: 9px 11px; - font-size: 13.5px; - border: 1px solid color-mix(in srgb, var(--border) 55%, transparent); - border-radius: 10px; - background: color-mix(in srgb, var(--surface) 78%, transparent); -} -.cs-id-cell dt { - font-weight: 800; - color: var(--subtext); - text-transform: uppercase; - font-size: 10.5px; - letter-spacing: .04em; - display: flex; - align-items: center; - gap: 5px; -} -.cs-id-cell dd { - margin: 0; - color: var(--text); - line-height: 1.35; -} -.cs-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: 15.5px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--border) 55%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--surface) 72%, transparent); } -.cs-row dt { font-weight: 800; color: var(--subtext); text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; display:flex; align-items:center; gap:5px; } -.cs-row dd { margin: 0; color: var(--text); line-height: 1.5; } -.cs-row ul { margin: 0; padding-left: 16px; } -.cs-source-mark { - width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--accent); - background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); - font-size: 9px; font-weight: 900; cursor: pointer; line-height: 1; padding: 0; -} -.cs-row dd .cs-source-mark, -.lcd-field-value .cs-source-mark { margin-left: 6px; vertical-align: middle; } -.cs-source-mark:hover, .cs-source-mark.is-active { background: var(--accent); color: #fff; } -.cs-source-mark-sample { cursor: default; pointer-events: none; } -.cs-source-preview { - margin: 16px 28px 20px; padding: 14px 16px; border-radius: 10px; - background: color-mix(in srgb, var(--accent) 6%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); -} -.cs-source-preview-empty { font-size: 12.5px; color: var(--subtext); } -.cs-source-preview-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: 6px; } -.cs-source-preview-head em { font-style: normal; opacity: .75; text-transform: none; letter-spacing: 0; } -.cs-source-preview-quote { font-size: 14px; line-height: 1.6; color: var(--text); font-style: italic; } -.cs-sources { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--border); font-size: 11px; color: var(--subtext); } -.cs-sources-title { display:flex; align-items:center; gap:5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; margin-bottom:6px; } -.cs-sources b { color: var(--text); } -.cs-sources .mdi { color: var(--accent); } -.cs-source-list { display:flex; flex-wrap:wrap; gap:5px; } -.cs-source-link { - display:inline-flex; align-items:center; gap:5px; max-width:100%; - border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--subtext); - padding:3px 8px; font-size:10.5px; cursor:pointer; -} -.cs-source-link:hover { border-color:var(--accent); color:var(--accent); } -.cs-source-link span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:150px; } -.cs-source-link .cs-source-quote { max-width: 260px; color: var(--text); } -.cs-source-link .cs-source-hint { color: var(--subtext); } -.cs-source-link em { font-style:normal; opacity:.8; } -.cs-row-voice dt .mdi { color: var(--accent); } -.cs-row-voice dd { font-style: italic; } -.cs-prompts { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; } -.cs-prompts .lcd-prompt-box summary { border-radius: 8px; } -.cs-prompts .lcd-prompt-empty { opacity: .6; font-size: 11px; } -.cs-overview { - padding: 0; - overflow: hidden; - display: flex; - flex-direction: column; - min-height: 560px; - border-radius: 24px; - border: 1px solid color-mix(in srgb, var(--border) 72%, transparent); - background: - radial-gradient(circle at 100% 0%, rgba(255,255,255,.18), transparent 32%), - linear-gradient(180deg, color-mix(in srgb, var(--panel) 74%, var(--surface)) 0%, color-mix(in srgb, var(--surface) 88%, var(--panel)) 100%); - box-shadow: 0 20px 50px rgba(0,0,0,.14); -} -.cs-overview .cs-header { - border-radius: 0; - padding: 24px 24px 20px; -} -.cs-overview .cs-avatar { - width: 96px; - height: 96px; - font-size: 40px; - border-width: 4px; - box-shadow: 0 14px 28px rgba(0,0,0,.24); -} -.cs-overview .lcd-name { font-size: 30px; } -.cs-overview .lcd-aliases { font-size: 15px; opacity: .76; } -.cs-overview .lcd-archetype { font-size: 18px; margin-bottom: 14px; } -.cs-overview .lcd-tier { font-size: 11px; padding: 4px 11px; } -.cs-overview .cs-header-pills { margin-top: 12px; } -.cs-overview .cs-header-pill { - background: rgba(255,255,255,.12); - border-color: rgba(255,255,255,.22); -} -.cs-overview-meta { - display: flex; - flex-direction: column; - gap: 16px; - padding: 18px 20px 20px; - flex: 1; -} -.cs-overview-alignment { margin: 0; } -.cs-overview-facts { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 10px; -} -.cs-overview-fact { - min-height: 66px; - padding: 10px 12px; - border-radius: 14px; - border: 1px solid color-mix(in srgb, var(--border) 60%, transparent); - background: color-mix(in srgb, var(--surface) 82%, var(--panel)); - display: flex; - flex-direction: column; - justify-content: center; - gap: 2px; -} -.cs-overview-fact span { - font-size: 10px; - font-weight: 800; - text-transform: uppercase; - letter-spacing: .05em; - color: var(--subtext); -} -.cs-overview-fact b { - font-size: 14px; - line-height: 1.35; - color: var(--text); -} -.cs-overview-tags { - display: flex; - flex-wrap: wrap; - gap: 8px; -} -.cs-overview .cl-tag-chip { - font-size: 12px; - padding: 4px 10px; -} /* ── Character library section ─────────────────────────────────────────── */ .cl-toolbar { margin-bottom: 14px; }