/* Téléprompteur V2 — une surface de lecture, un panneau de préparation. */
:root{--prompt-ink:#302c37;--prompt-muted:#79737f;--prompt-line:#e3dfe6;--prompt-surface:#fff;--prompt-field:#faf9fb;--prompt-accent:#77548f;--prompt-soft:#f1ecf5;--prompt-page:#f5f3f6;color-scheme:light}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--prompt-page);color:var(--prompt-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.teleprompteur-v2{height:100dvh;min-height:420px;display:flex;flex-direction:column;overflow:hidden}
button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}
[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
button,a,input,select,textarea,summary{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #9b78b2;outline-offset:3px}
button{border:1px solid var(--prompt-line);background:var(--prompt-surface);color:var(--prompt-ink);border-radius:8px;min-height:38px;padding:8px 12px;font-size:.76rem;font-weight:550}
button:hover{background:var(--prompt-soft)}.tool-icon{display:block;width:19px;height:19px;flex-shrink:0}
.prompt-header{width:100%;padding:18px 24px 16px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-shrink:0}
.prompt-header nav{display:flex;gap:8px;align-items:center;font-size:.67rem;color:var(--prompt-muted)}
.prompt-header nav a{color:var(--prompt-muted);text-decoration:none}.prompt-header nav a:hover{color:var(--prompt-accent);text-decoration:underline}
.prompt-header h1{display:flex;align-items:center;gap:10px;margin:7px 0 0;font-size:1.35rem;letter-spacing:-.035em;font-weight:600}
.prompt-version{font-size:.6rem;letter-spacing:.04em;color:var(--prompt-accent);border:1px solid #dacee2;border-radius:5px;padding:3px 5px}
.prompt-local{font-size:.63rem;letter-spacing:0;color:var(--prompt-muted);font-weight:400;margin-left:4px}
.prompt-local::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#739b82;margin-right:6px;vertical-align:middle}
.prompt-heading{min-width:0}.prompt-header-actions{display:flex;gap:7px;margin-left:auto}.prompt-header-actions button{display:flex;align-items:center;gap:7px}
.prompt-header-actions button[aria-pressed=true]{background:var(--prompt-soft);border-color:#c8b7d4;color:var(--prompt-accent)}
.prompt-workspace{display:grid;grid-template-columns:326px minmax(0,1fr);gap:16px;padding:0 24px 20px;width:100%;flex:1;min-height:0}
.prompt-panel{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--prompt-surface);border:1px solid var(--prompt-line);border-radius:12px;overflow:hidden}
.prompt-tabs{display:flex;gap:4px;margin:0 18px;border-bottom:1px solid var(--prompt-line);flex-shrink:0}
.prompt-tabs button{flex:1;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;min-height:48px;color:var(--prompt-muted);font-size:.8rem}
.prompt-tabs button[aria-selected=true]{border-bottom-color:var(--prompt-accent);color:var(--prompt-ink);font-weight:650}
.prompt-tab-content{padding:19px 18px;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d1c8d8 transparent;overscroll-behavior:contain}
.prompt-script{display:flex;flex:1;flex-direction:column;gap:12px}
.prompt-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:20px}
.prompt-section-heading h2{margin:0;font-size:.77rem;font-weight:600}.prompt-section-heading [data-save-state]{font-size:.6rem;color:var(--prompt-muted)}
.prompt-script textarea{width:100%;flex:1;min-height:180px;resize:none;border:1px solid var(--prompt-line);border-radius:8px;padding:13px;font-size:.84rem;line-height:1.8;background:var(--prompt-field);color:var(--prompt-ink);scrollbar-width:thin}
.prompt-script textarea::placeholder{color:#968c9d}
.prompt-script-actions{display:flex;gap:6px}.prompt-script-actions button{flex:1;font-size:.67rem;min-height:34px;padding:6px}
.prompt-metrics{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--prompt-muted);font-size:.65rem;font-variant-numeric:tabular-nums}
.prompt-metrics strong{font-size:.78rem;font-weight:550;color:var(--prompt-ink)}
.prompt-field{display:grid;gap:7px;font-size:.7rem;color:var(--prompt-muted)}
select{width:100%;background:var(--prompt-surface);border:1px solid var(--prompt-line);border-radius:7px;color:var(--prompt-ink);min-height:38px;padding:7px 9px;font-size:.75rem}
.prompt-note{font-size:.67rem;line-height:1.65;color:var(--prompt-muted);margin:0}
details{border-top:1px solid var(--prompt-line);padding-top:13px}summary{cursor:pointer;font-size:.74rem;font-weight:550;min-height:24px;color:var(--prompt-ink)}
.prompt-detail-content{display:grid;gap:15px;margin-top:13px}.prompt-detail-content>p{font-size:.68rem;line-height:1.7;color:var(--prompt-muted);margin:0}
.prompt-shortcuts{margin:0;display:grid;gap:8px}.prompt-shortcuts>div{display:flex;justify-content:space-between;gap:12px;font-size:.67rem;color:var(--prompt-muted)}.prompt-shortcuts dd{margin:0}
kbd{font-family:inherit;font-size:.63rem;border:1px solid var(--prompt-line);border-radius:4px;padding:2px 4px;color:var(--prompt-ink)}
.prompt-settings{display:grid;gap:18px}.prompt-range{display:grid;gap:7px;font-size:.73rem}.prompt-range>span{display:flex;justify-content:space-between;align-items:center;gap:10px}.prompt-range output{color:var(--prompt-muted);font-size:.65rem;font-variant-numeric:tabular-nums}
input[type=range]{width:100%;accent-color:var(--prompt-accent);margin:0;min-height:25px}
.prompt-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.prompt-calibrate{font-size:.68rem;color:var(--prompt-accent);background:var(--prompt-soft);border-color:transparent}
.prompt-text-button{padding:0;min-height:22px;border:0;background:transparent;color:var(--prompt-accent);font-size:.66rem}
.prompt-align{display:flex;gap:5px;margin-top:-8px}.prompt-align button{flex:1;min-height:32px;padding:4px;font-size:.64rem}.prompt-align button[aria-pressed=true]{color:var(--prompt-accent);background:var(--prompt-soft);border-color:#c8b7d4}
.prompt-check{display:flex;align-items:center;gap:9px;font-size:.72rem;min-height:28px}.prompt-check input{accent-color:var(--prompt-accent);width:17px;height:17px;flex-shrink:0}
.prompt-mood-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.prompt-mood-grid button{display:flex;gap:8px;align-items:center;padding:6px 8px;min-height:39px;font-size:.67rem;text-align:left}.prompt-mood-grid button[aria-pressed=true]{outline:1px solid var(--prompt-accent);background:var(--prompt-soft)}
.prompt-mood-swatch{display:grid;place-items:center;min-width:27px;height:26px;border-radius:4px;background:var(--mood-bg);color:var(--mood-ink);font:600 12px/1 system-ui,sans-serif;box-shadow:inset 0 0 0 1px #00000010}
.prompt-color-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.prompt-color-field{display:grid;gap:7px;font-size:.68rem;color:var(--prompt-muted)}.prompt-color-field>span{display:flex;gap:5px;min-width:0}
.prompt-color-field input[type=color]{width:34px;height:36px;padding:2px;border:1px solid var(--prompt-line);border-radius:6px;background:var(--prompt-surface);cursor:pointer;flex-shrink:0}
.prompt-color-field input[type=text]{width:100%;min-width:0;height:36px;border:1px solid var(--prompt-line);border-radius:6px;padding:4px;background:var(--prompt-surface);color:var(--prompt-ink);font-size:.61rem}
.prompt-color-contrast{font-size:.66rem;color:#3d7b5a}.prompt-color-contrast.is-low-contrast{color:#b36836}

.prompt-player{--reader-bg:#111a28;--reader-text:#f2f5fa;--reader-muted:#bcc7d8;--reader-rule:#ffffff20;--reader-guide:#f2f5fa;position:relative;display:grid;grid-template-rows:36px minmax(0,1fr) 90px;background:var(--reader-bg);color:var(--reader-text);border:1px solid #273141;border-radius:12px;min-width:0;min-height:0;overflow:hidden;isolation:isolate}
.prompt-player-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 132px 0 18px;border-bottom:1px solid var(--reader-rule);font-size:.61rem;z-index:2;color:var(--reader-muted);white-space:nowrap;min-width:0}
.prompt-status{overflow:hidden;text-overflow:ellipsis}.prompt-status::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.5;margin-right:7px}.is-playing .prompt-status::before{background:#9dd3b0;opacity:1}
.prompt-time{display:flex;gap:6px;align-items:center;font-variant-numeric:tabular-nums;flex-shrink:0}.prompt-meta-divider{opacity:.4}
.prompt-reader{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--reader-rule) transparent;scroll-behavior:auto;overflow-anchor:none;position:relative;min-height:0;padding:0 30px;outline-offset:-3px}
.prompt-text{width:var(--text-width,64%);margin-left:calc((100% - var(--text-width,64%))*var(--text-offset,.5));font-size:var(--text-size,48px);line-height:var(--text-line,1.6);font-weight:450;letter-spacing:-.018em;color:var(--reader-text);overflow-wrap:anywhere;transform-origin:center center}
.prompt-text p{margin:0 0 1em;white-space:pre-wrap;color:inherit}.prompt-text p:last-child{margin-bottom:0}.prompt-player.is-mirrored .prompt-text{transform:scaleX(-1)}.prompt-player.is-serif .prompt-text{font-family:Georgia,"Times New Roman",serif}
.prompt-placeholder{font-size:.88em;font-weight:400;opacity:.78}.prompt-placeholder-small{font-size:.4em;line-height:1.7;opacity:.6;font-weight:400}
.prompt-reading-guide{position:absolute;top:var(--guide-top,35%);left:0;right:0;height:0;pointer-events:none;z-index:3}
.prompt-guide-line{position:absolute;top:0;left:29px;right:12px;height:1px;background:var(--reader-guide);opacity:.15}
.prompt-reading-guide[data-style=band] .prompt-guide-line{top:calc(var(--guide-height,77px)*-.5);height:var(--guide-height,77px);opacity:.065;border-block:1px solid var(--reader-guide)}
.prompt-guide-handle{position:absolute;left:0;top:-20px;display:grid;place-items:center;width:30px;height:40px;min-height:40px;border:0;border-radius:0;background:transparent;color:var(--reader-guide);padding:0;pointer-events:auto;touch-action:none;cursor:ns-resize;opacity:.65;font-size:36px;font-weight:300;line-height:1}
.prompt-guide-handle:hover,.prompt-guide-handle:focus-visible{opacity:1;background:color-mix(in srgb,var(--reader-guide) 8%,transparent)}
.prompt-countdown{position:absolute;inset:36px 0 90px;display:grid;place-items:center;background:color-mix(in srgb,var(--reader-bg) 90%,transparent);backdrop-filter:blur(4px);font-size:6rem;font-weight:550;color:var(--reader-text);z-index:6;font-variant-numeric:tabular-nums}
.prompt-transport{position:relative;z-index:5;border-top:1px solid var(--reader-rule);padding:5px 18px 10px;background:var(--reader-bg);display:grid;gap:3px;min-width:0}
.prompt-progress{display:flex;gap:12px;align-items:center;min-height:20px}.prompt-progress input{accent-color:var(--reader-muted);flex:1;min-width:0;min-height:20px}.prompt-progress output{font-size:.61rem;font-variant-numeric:tabular-nums;color:var(--reader-muted);width:36px;text-align:right}
.prompt-transport-row{display:flex;align-items:center;justify-content:center;gap:10px}.prompt-transport button{border-color:var(--reader-rule);background:transparent;color:var(--reader-muted);min-height:40px}.prompt-transport button:hover{background:color-mix(in srgb,var(--reader-muted) 10%,transparent)}
.prompt-icon-button{padding:0;width:40px;display:grid;place-items:center}.prompt-transport .prompt-play{min-width:160px;display:flex;align-items:center;justify-content:center;gap:9px;padding:8px 18px;background:#e8f1eb;border-color:#e8f1eb;color:#2c503b;font-size:.76rem}.prompt-transport .prompt-play:hover{background:#d7e8dd}
.prompt-speed-mini{display:flex;align-items:center;gap:6px}.prompt-speed-mini span{color:var(--reader-muted);font-size:.68rem;min-width:55px;text-align:center;font-variant-numeric:tabular-nums}.prompt-speed-mini button{padding:0;width:34px;font-size:1rem}
.prompt-quiet-button{position:absolute;z-index:8;top:0;right:10px;display:flex;align-items:center;gap:6px;min-height:35px;padding:4px 7px;border:0;background:transparent;color:var(--reader-muted);font-size:.59rem;opacity:.75}.prompt-quiet-button .tool-icon{width:14px;height:14px}.prompt-quiet-button:hover{background:color-mix(in srgb,var(--reader-muted) 8%,transparent);opacity:1}
.prompt-player.commands-hidden{grid-template-rows:0 minmax(0,1fr) 0}.commands-hidden .prompt-player-meta,.commands-hidden .prompt-transport{visibility:hidden;overflow:hidden;padding:0;border:0}.commands-hidden .prompt-quiet-button{top:auto;bottom:8px;background:var(--reader-bg);border:1px solid var(--reader-rule);border-radius:6px;opacity:.55}.commands-hidden .prompt-quiet-button:hover,.commands-hidden .prompt-quiet-button:focus-visible{opacity:1}.commands-hidden .prompt-countdown{inset:0}
.prompt-focus .prompt-panel{display:none}.prompt-focus .prompt-workspace{grid-template-columns:minmax(0,1fr);padding:0 12px 12px}.prompt-focus .prompt-header{padding:10px 14px}.prompt-focus .prompt-header nav,.prompt-focus .prompt-local{display:none}.prompt-focus .prompt-header h1{margin:0;font-size:1.05rem}
.prompt-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);padding:11px 16px;border-radius:8px;background:#352d3d;color:#fff;box-shadow:0 6px 28px #0002;font-size:.76rem;z-index:50;max-width:calc(100vw - 30px);line-height:1.6}

html[data-site-theme=dark]{--prompt-ink:#e4dfe9;--prompt-muted:#a69dab;--prompt-line:#39333f;--prompt-surface:#211d26;--prompt-field:#1b181f;--prompt-accent:#c1a4d5;--prompt-soft:#302638;--prompt-page:#19161e;color-scheme:dark}
html[data-site-theme=dark] .prompt-version{border-color:#554262}
html[data-site-theme=dark] .prompt-header-actions button[aria-pressed=true],html[data-site-theme=dark] .prompt-align button[aria-pressed=true]{border-color:#6c527d}
/* La palette du lecteur reste indépendante de la couleur de l’interface. */
html[data-site-theme] body.teleprompteur-v2{background:var(--prompt-page);color:var(--prompt-ink)}
html[data-site-theme] .teleprompteur-v2 .prompt-panel,html[data-site-theme] .teleprompteur-v2 select{background:var(--prompt-surface);color:var(--prompt-ink);border-color:var(--prompt-line)}
html[data-site-theme] .teleprompteur-v2 .prompt-script textarea{background:var(--prompt-field);color:var(--prompt-ink);border-color:var(--prompt-line)}
html[data-site-theme] .teleprompteur-v2 .prompt-player{background:var(--reader-bg);color:var(--reader-text)}
html[data-site-theme] .teleprompteur-v2 .prompt-text,html[data-site-theme] .teleprompteur-v2 .prompt-text p{color:var(--reader-text)}
@media(min-width:1700px){.prompt-workspace{grid-template-columns:350px minmax(0,1fr)}}
@media(max-width:1050px){.prompt-workspace{grid-template-columns:295px minmax(0,1fr);padding:0 16px 16px;gap:12px}.prompt-header{padding:15px 16px}.prompt-local{display:none}.prompt-player-meta{padding-left:12px}.prompt-time{display:none}.prompt-transport{padding-inline:12px}.prompt-transport-row{gap:7px}.prompt-transport .prompt-play{min-width:130px;padding-inline:10px}.prompt-speed-mini{gap:4px}.prompt-speed-mini span{min-width:49px;font-size:.62rem}}
@media(max-width:1000px){
  .teleprompteur-v2{height:auto;min-height:100dvh;overflow:visible}.prompt-header{padding:14px 12px;gap:8px}.prompt-header h1{font-size:1.1rem;gap:6px}.prompt-header nav{font-size:.58rem;gap:5px}.prompt-header-actions{gap:5px}.prompt-header-actions button{min-height:38px;padding:7px;font-size:.63rem}.prompt-header-actions button .tool-icon{width:16px;height:16px}.prompt-header-actions [data-fullscreen]>span:last-child{display:none}
  .prompt-workspace{display:flex;flex-direction:column;flex:none;padding:0 10px 16px;gap:12px}.prompt-player{order:0;height:66dvh;min-height:370px;flex-shrink:0;border-radius:10px}.prompt-panel{order:1;max-height:none;overflow:visible}.prompt-tabs{margin-inline:16px}.prompt-tab-content{padding:16px;overflow:visible}.prompt-script textarea{height:280px;flex:auto;min-height:200px;resize:vertical;font-size:16px}.prompt-script .prompt-field select{font-size:16px}.prompt-script-actions button,.prompt-align button{min-height:40px}.prompt-settings select{font-size:16px}
  .prompt-reader{padding-inline:26px}.prompt-text{font-size:var(--text-size,48px)}.prompt-transport{padding-inline:10px}.prompt-transport-row{gap:7px}.prompt-transport .prompt-play{min-width:0;flex:1;padding-inline:8px;font-size:.7rem}.prompt-speed-mini span{min-width:48px;font-size:.6rem}.prompt-speed-mini button{width:30px;min-height:40px}.prompt-icon-button{width:36px}.prompt-player-meta{font-size:.59rem}.prompt-quiet-button{right:6px}
  .prompt-focus{height:100dvh;min-height:320px;overflow:hidden}.prompt-focus .prompt-workspace{flex:1;min-height:0;padding:0 6px 6px}.prompt-focus .prompt-player{flex:1;height:auto;min-height:0}.prompt-focus .prompt-header{padding:8px 10px}.prompt-focus .prompt-header h1{font-size:.9rem}.prompt-focus .prompt-header-actions button{font-size:.6rem}
  .prompt-color-field input[type=color],.prompt-color-field input[type=text]{height:42px}.prompt-color-field input[type=text]{font-size:.72rem}.prompt-guide-handle{width:28px}
}
@media(max-width:370px){.prompt-version{display:none}.prompt-header-actions [data-focus-label]{display:none}.prompt-header nav{font-size:.53rem}.prompt-header-actions button{gap:4px}.prompt-speed-mini span{display:none}.prompt-transport-row{gap:6px}}
@media(max-height:580px) and (min-width:761px){.prompt-header{padding-block:10px}.prompt-header nav{display:none}.prompt-header h1{margin:0;font-size:1.1rem}.prompt-workspace{padding-bottom:10px}.prompt-player{grid-template-rows:32px minmax(0,1fr) 82px}.prompt-player.commands-hidden{grid-template-rows:0 minmax(0,1fr) 0}.prompt-script textarea{min-height:100px}.prompt-script .prompt-note,.prompt-script .prompt-preparation{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* V3 — bibliothèque et historique, sans empiéter sur la surface de lecture. */
.teleprompteur-v3 .prompt-tabs{gap:0;margin-inline:14px}.teleprompteur-v3 .prompt-tabs button{font-size:.71rem;padding-inline:5px}
.prompt-library-warning{flex-shrink:0;margin:12px 14px 0;padding:10px;border:1px solid #d6b994;border-radius:7px;background:#fff8ed;color:#78532b;font-size:.67rem;line-height:1.6}
.prompt-library{display:flex;flex:1;flex-direction:column;gap:13px;overflow:hidden;padding:18px 14px 14px}
.prompt-library-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.prompt-library-heading h2{font-size:.9rem;font-weight:600;margin:0}.prompt-library-heading p{font-size:.64rem;color:var(--prompt-muted);margin:4px 0 0}
button.prompt-new{background:var(--prompt-accent);color:var(--prompt-surface);border-color:var(--prompt-accent)}button.prompt-new:hover{filter:brightness(.93)}
.prompt-library input[type=search],.prompt-script-identity input{width:100%;min-width:0;background:var(--prompt-field);color:var(--prompt-ink);border:1px solid var(--prompt-line);border-radius:7px;padding:10px 11px;font-size:.74rem;min-height:38px}
.prompt-library input[type=search]::placeholder,.prompt-script-identity input::placeholder{color:var(--prompt-muted)}
.prompt-library-toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between}.prompt-library-views{display:flex;gap:5px}.prompt-library-views button{border:0;min-height:30px;padding:5px 8px;font-size:.65rem;color:var(--prompt-muted)}.prompt-library-views button[aria-pressed=true]{background:var(--prompt-soft);color:var(--prompt-accent)}
.prompt-library-toolbar select{width:auto;min-height:30px;max-width:100px;padding:4px 6px;font-size:.64rem;background:transparent;border-color:transparent}
.prompt-library-list{list-style:none;padding:0;margin:0;min-height:100px;flex:1;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px}
.prompt-library-item{margin:0;flex-shrink:0;min-width:0}.prompt-library-open{display:flex;flex-direction:column;align-items:flex-start;gap:7px;width:100%;text-align:left;padding:13px 12px;min-height:94px;border-radius:9px;font-weight:400}
.prompt-library-open strong{font-size:.8rem;font-weight:550;line-height:1.55;overflow-wrap:anywhere}.prompt-library-series{font-size:.58rem;text-transform:uppercase;letter-spacing:.065em;color:var(--prompt-muted);overflow-wrap:anywhere}.prompt-library-meta{font-size:.6rem;color:var(--prompt-muted);font-variant-numeric:tabular-nums}
.prompt-library-item.is-current .prompt-library-open{border-color:#ae96bf;background:var(--prompt-soft)}.prompt-library-item.is-current .prompt-library-series{color:var(--prompt-accent)}
.prompt-library-empty{padding:24px 8px;margin:0;color:var(--prompt-muted);font-size:.76rem;line-height:1.8}
.prompt-library-footer{display:grid;gap:7px;border-top:1px solid var(--prompt-line);padding-top:12px;margin-top:auto;flex-shrink:0}.prompt-library-footer button{min-height:35px;font-size:.69rem}.prompt-library-footer p{font-size:.59rem;line-height:1.5;color:var(--prompt-muted);text-align:center;margin:2px 0 0}
.prompt-script-identity{display:grid;gap:7px}.prompt-script-identity [data-script-title]{background:transparent;font-size:.87rem;font-weight:550;padding-block:8px}.prompt-script-identity [data-script-collection]{font-size:.68rem;min-height:32px;padding-block:6px}
.prompt-script-options{padding-top:10px}.prompt-script-options summary{font-size:.69rem;min-height:20px}.prompt-script-options-row{display:flex;gap:6px;margin-top:8px}.prompt-script-options-row button{flex:1;min-height:32px;font-size:.64rem;padding:5px}
.teleprompteur-v3 .prompt-preparation summary{font-size:.69rem}.teleprompteur-v3 .prompt-script{gap:10px}.teleprompteur-v3 .prompt-script>.prompt-note{font-size:.63rem}
.prompt-session{display:flex;align-items:center;gap:14px;min-width:0}.prompt-current-title{font-size:.63rem;color:var(--reader-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.prompt-session .prompt-status{font-size:.59rem;opacity:.8;flex-shrink:0}
.prompt-history-dialog{width:min(900px,calc(100vw - 36px));max-height:calc(100dvh - 44px);padding:22px;border:1px solid var(--prompt-line);border-radius:14px;background:var(--prompt-surface);color:var(--prompt-ink);box-shadow:0 24px 100px #0003}
.prompt-history-dialog::backdrop{background:#17111d88;backdrop-filter:blur(3px)}
.prompt-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.prompt-dialog-heading p{font-size:.62rem;letter-spacing:.07em;text-transform:uppercase;color:var(--prompt-accent);margin:0 0 6px}.prompt-dialog-heading h2{font-size:1.03rem;font-weight:600;line-height:1.6;margin:0;overflow-wrap:anywhere}.prompt-dialog-heading>button{min-width:36px;min-height:36px;font-size:1.2rem;padding:0}
.prompt-history-note{font-size:.7rem;line-height:1.8;color:var(--prompt-muted);margin:12px 0 18px}
.prompt-history-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;height:min(50dvh,430px);min-height:220px}
.prompt-history-sidebar{overflow-y:auto;scrollbar-width:thin}.prompt-history-sidebar ol{list-style:none;margin:0;padding:0;display:grid;gap:7px}.prompt-history-sidebar li{margin:0}.prompt-history-sidebar button{display:grid;gap:6px;width:100%;text-align:left;padding:11px 12px;font-size:.7rem;font-weight:400}.prompt-history-sidebar strong{font-weight:550}.prompt-history-sidebar span{font-size:.61rem;color:var(--prompt-muted)}.prompt-history-sidebar button[aria-pressed=true]{background:var(--prompt-soft);border-color:#b49cc4;color:var(--prompt-accent)}
.prompt-history-sidebar>p{color:var(--prompt-muted);font-size:.74rem;line-height:1.8;margin:0}
.prompt-history-preview{display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0}.prompt-history-preview>p{font-size:.63rem;color:var(--prompt-muted);margin:0;line-height:1.6;overflow-wrap:anywhere}
.prompt-history-preview textarea{flex:1;min-height:150px;width:100%;resize:none;border:1px solid var(--prompt-line);border-radius:8px;padding:15px;font-size:.83rem;line-height:1.9;color:var(--prompt-ink);background:var(--prompt-field)}
.prompt-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--prompt-line);padding-top:16px;margin-top:18px}.prompt-dialog-footer button{font-size:.71rem}
html[data-site-theme] .teleprompteur-v3 .prompt-library-open,html[data-site-theme] .teleprompteur-v3 .prompt-library input,html[data-site-theme] .teleprompteur-v3 .prompt-script-identity input{color:var(--prompt-ink)}
html[data-site-theme=dark] .prompt-library-warning{background:#37291b;color:#e9c99c;border-color:#69523a}
@media(max-width:1050px){.prompt-session .prompt-status{display:none}.prompt-current-title{max-width:200px}}
@media(max-width:1000px){.prompt-library{overflow:visible;min-height:500px}.prompt-library-list{max-height:420px;overflow-y:auto;flex:none}.prompt-script-identity input,.prompt-script-identity [data-script-title],.prompt-script-identity [data-script-collection],.prompt-library input[type=search]{font-size:16px;min-height:40px}.prompt-library-toolbar select{font-size:.75rem}.teleprompteur-v3 .prompt-tabs button{font-size:.8rem}.prompt-library-open{min-height:90px}.prompt-library-heading h2{font-size:1rem}.prompt-library-footer button{min-height:42px}.prompt-current-title{max-width:190px}}
@media(max-width:600px){.prompt-history-dialog{padding:16px;width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.prompt-history-layout{display:flex;flex-direction:column;height:auto;max-height:58dvh;min-height:0}.prompt-history-sidebar{max-height:130px;flex-shrink:0}.prompt-history-sidebar ol{display:flex;gap:7px;overflow-x:auto}.prompt-history-sidebar li{min-width:170px}.prompt-history-preview textarea{min-height:180px;font-size:16px}.prompt-history-preview{min-height:200px}.prompt-dialog-footer{flex-wrap:wrap;gap:8px}.prompt-dialog-footer button{flex:1;min-width:130px;min-height:42px}.prompt-dialog-heading h2{font-size:.9rem}.prompt-history-note{font-size:.65rem}.prompt-current-title{max-width:180px}}

/* V4 — reprises rapides et journal, dans le même espace de préparation. */
.teleprompteur-v4 .prompt-tabs{margin-inline:10px}.teleprompteur-v4 .prompt-tabs button{font-size:.66rem;padding-inline:4px}
.prompt-takes{display:flex;flex:1;flex-direction:column;gap:13px;padding:18px 14px;overflow-y:auto}
.prompt-take-count{font-size:.61rem;color:var(--prompt-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.prompt-passage-preview{margin:0;font-size:.69rem;line-height:1.75;color:var(--prompt-muted);border-left:2px solid #b69bc8;padding-left:10px;overflow-wrap:anywhere}
.prompt-takes>.prompt-new{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;min-height:40px}.prompt-takes>.prompt-new kbd{color:inherit;border-color:currentColor;opacity:.7}
.prompt-take-verdict{display:grid;grid-template-columns:1fr 1fr;gap:7px}.prompt-take-verdict button{font-size:.7rem;min-height:36px}.prompt-take-verdict kbd{margin-left:6px;opacity:.65}
.prompt-take-verdict button[aria-pressed=true]{border-color:#a38bb3;background:var(--prompt-soft);color:var(--prompt-accent)}
.prompt-take-journal-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--prompt-line);padding-top:17px;margin-top:3px}.prompt-take-journal-heading h3{margin:0;font-size:.71rem;font-weight:600}
.prompt-take-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}.prompt-take-list>li{border:1px solid var(--prompt-line);border-radius:9px;padding:12px;min-width:0;display:grid;gap:9px;background:var(--prompt-field)}
.prompt-take-list>li[data-verdict=keep]{border-color:#91aa98;box-shadow:inset 3px 0 #91aa98}.prompt-take-list>li[data-verdict=retry]{border-left:3px solid #c29b80}
.prompt-take-heading{display:flex;justify-content:space-between;align-items:center;gap:5px}.prompt-take-heading strong{font-size:.74rem;font-weight:600}.prompt-take-heading>span{font-size:.56rem;color:var(--prompt-muted);font-variant-numeric:tabular-nums}
.prompt-take-excerpt{font-size:.66rem;line-height:1.7;color:var(--prompt-muted);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.prompt-take-list select{font-size:.67rem;min-height:31px;padding:5px 8px}.prompt-take-list details{padding-top:8px}.prompt-take-list summary{font-size:.62rem;min-height:20px;color:var(--prompt-muted)}
.prompt-take-list textarea{width:100%;margin-top:8px;min-height:65px;padding:8px;border-radius:6px;border:1px solid var(--prompt-line);background:var(--prompt-surface);color:var(--prompt-ink);resize:vertical;font-size:.7rem;line-height:1.7}
.prompt-selection-button{text-align:left;align-self:flex-start;min-height:25px}.teleprompteur-v4 .prompt-script{gap:9px}
.teleprompteur-v4 .prompt-player{grid-template-rows:36px minmax(0,1fr) 124px}.teleprompteur-v4 .prompt-transport{display:flex;flex-direction:column;justify-content:space-between;gap:4px;padding-top:7px}
.prompt-retake-bar{display:flex;align-items:center;gap:10px;min-height:30px;min-width:0}.prompt-retake-bar>div{display:flex;gap:5px;margin-left:auto;flex-shrink:0}
.prompt-retake-bar button{font-size:.62rem;min-height:30px;padding:5px 9px;white-space:nowrap;color:var(--reader-muted);background:transparent;border:1px solid var(--reader-rule)}.prompt-retake-bar button:hover{background:color-mix(in srgb,var(--reader-muted) 9%,transparent)}
.prompt-retake-bar kbd{font-size:.52rem;color:inherit;border-color:var(--reader-rule);margin-left:5px}.prompt-scope{font-size:.61rem;color:var(--reader-muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}.prompt-attempt{font-size:.58rem;color:var(--reader-muted);opacity:.7;white-space:nowrap;font-variant-numeric:tabular-nums}
::highlight(prompt-phrase){background-color:#b79bd344;color:inherit}
.teleprompteur-v4 .prompt-player.commands-hidden{grid-template-rows:0 minmax(0,1fr) 0}
@media(max-width:1000px){.teleprompteur-v4 .prompt-tabs button{font-size:.74rem;min-height:48px}.prompt-takes{padding:16px;overflow:visible}.prompt-take-list{max-height:520px;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}.prompt-takes select,.prompt-take-list textarea{font-size:16px;min-height:40px}.prompt-take-list textarea{min-height:85px}.prompt-take-heading strong{font-size:.85rem}.prompt-take-heading>span{font-size:.65rem}.prompt-take-list summary{min-height:30px;font-size:.72rem}.prompt-take-excerpt{font-size:.75rem}.prompt-take-verdict button{min-height:42px}.prompt-retake-bar{gap:6px}.prompt-retake-bar button{min-height:34px;padding:5px 7px}.prompt-retake-bar kbd{display:none}.prompt-attempt{display:none}.prompt-scope{font-size:.57rem}.teleprompteur-v4 .prompt-selection-button{min-height:38px}}
@media(max-height:580px) and (min-width:1001px){.teleprompteur-v4 .prompt-player{grid-template-rows:32px minmax(0,1fr) 116px}}

.teleprompteur-v4 .prompt-countdown{bottom:124px}.teleprompteur-v4 .commands-hidden .prompt-countdown{inset:0}
@media(max-height:580px) and (min-width:1001px){.teleprompteur-v4 .prompt-countdown{bottom:116px}.teleprompteur-v4 .prompt-transport{padding-block:5px;gap:2px}.teleprompteur-v4 .commands-hidden .prompt-countdown{inset:0}}
