/* Paper/export rules are deliberately shared: these are not preview-only overrides. */
.ll-sheet .ll-topline,.ll-sheet .ll-footer,.ll-sheet .ll-label,.ll-sheet .ll-stage-number,.ll-sheet .ll-stage-number small { color:var(--surface-muted); }
.ll-sheet .ll-empty { color:var(--surface-muted); }
.ll-sheet .ll-figure figcaption { background:rgba(var(--brand-ink-rgb),.93); color:white; max-height:38%; padding:1.4% 2%; }
.ll-sheet .ll-figure figcaption strong { font:650 1.15cqw/1.25 Arial,sans-serif; }
.ll-sheet .ll-figure figcaption small { font:400 1cqw/1.25 Arial,sans-serif; }
.ll-sheet.ll-template-cover .ll-cover-wash { background:linear-gradient(0deg,rgba(var(--brand-ink-rgb),.92),rgba(var(--brand-ink-rgb),.68)); }
.ll-sheet.ll-template-cover .ll-topline,.ll-sheet.ll-template-cover .ll-footer,.ll-sheet.ll-template-cover .ll-label { color:white; }
.ll-sheet-editable { transform:none !important; transition:none !important; }
.ll-sheet-editable .ll-title,.ll-sheet-editable .ll-narrative,.ll-sheet-editable .ll-figure { cursor:default; }
.ll-sheet-editable .ll-title:hover,.ll-sheet-editable .ll-narrative:hover { outline:0; }
.ll-sheet-editable .ll-selected { outline:1px solid var(--brand-ink) !important; }
.ll-sheet-editable .ll-text-editing { cursor:text; background:#fff; color:#232522; outline:2px solid var(--brand-ink) !important; }
.editor-selection-box,.editor-placement { position:absolute; pointer-events:none; border:1px solid var(--brand-ink); z-index:1000; box-sizing:border-box; }
.editor-placement { border-style:dashed; background:rgba(var(--brand-ink-rgb),.06); }
.editor-selection-box span { position:absolute; width:9px; height:9px; border:1px solid var(--brand-ink); background:white; pointer-events:auto; }
.editor-selection-box [data-editor-handle=nw] { left:-5px; top:-5px; cursor:nwse-resize; }
.editor-selection-box [data-editor-handle=ne] { right:-5px; top:-5px; cursor:nesw-resize; }
.editor-selection-box [data-editor-handle=sw] { left:-5px; bottom:-5px; cursor:nesw-resize; }
.editor-selection-box [data-editor-handle=se] { right:-5px; bottom:-5px; cursor:nwse-resize; }
[data-editor-tool^=add-] .ll-sheet,[data-editor-tool^=add-] .ll-overlay { cursor:crosshair; }
.editor-space-hand,.editor-space-hand *,.editor-panning,.editor-panning *,[data-editor-tool=hand],[data-editor-tool=hand] * { cursor:grab !important; }
.editor-panning,.editor-panning * { cursor:grabbing !important; }
.editor-page-controls { position:sticky; top:0; display:flex; align-items:center; flex-wrap:wrap; gap:8px; width:100%; padding:8px 0; margin:0 0 20px; background:var(--surface-recessed); color:var(--brand-ink); z-index:40; font:12px/1.4 Inter,Arial,sans-serif; }
.editor-page-controls button { border:1px solid var(--surface-focus); border-radius:4px; background:white; color:var(--brand-ink); min-height:30px; min-width:30px; }
.editor-page-controls input { width:52px; padding:4px; border:1px solid var(--surface-focus); border-radius:4px; background:white; }
.editor-scroll-hint { margin-left:10px; color:var(--surface-muted); font-size:11px; }
.editor-tool-status { margin-left:auto; font-size:11px; font-weight:650; }
.presentation-stage,.ll-bulk-studio .preview-ready>.preview-sheet-wrap { display:block !important; padding:12px 22px 40px !important; }
.presentation-stage,.preview-sheet-wrap { scrollbar-gutter:stable; }
.presentation-sheet,.ll-bulk-studio .slide-sheet { margin:0 auto; max-width:none !important; }
.ll-editor-toolbar.ll-studio-tools { gap:4px !important; }
.ll-editor-toolbar.ll-studio-tools > button { width:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:40px; padding:4px 2px; white-space:normal; border:1px solid transparent; }
.ll-editor-toolbar.ll-studio-tools > button.active { border-color:var(--brand-ink); background:var(--surface-selected); box-shadow:inset 3px 0 var(--brand-ink); }
.ll-editor-toolbar.ll-studio-tools > button b { font-size:17px; font-weight:600; }
.ll-editor-toolbar.ll-studio-tools > button span { font-size:9px; }
.editor-utility-tools { display:grid; width:100%; grid-template-columns:1fr 1fr; gap:3px; padding-top:7px; border-top:1px solid var(--surface-focus); }
.editor-utility-tools button { min-width:0; min-height:31px; padding:4px; }
.editor-utility-tools button b { font-size:18px; font-weight:600; }
.editor-utility-tools button span { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
.editor-utility-tools button.active { border-color:var(--brand-ink); box-shadow:inset 0 -2px var(--brand-ink); }
.editor-frame-fields { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.editor-frame-fields small { grid-column:1 / 3; color:var(--surface-muted); font-size:10px; }
.editor-frame-fields[hidden],.editor-colour-field[hidden],.ll-crop-control[hidden],.ll-font-control[hidden] { display:none !important; }
.editor-frame-fields input { min-width:0; }
.editor-overflow { padding:12px; margin:0 12px; font-size:12px; color:#7e3329; border:1px solid #a95146; background:#fff5ef; }
.editor-image-picker { width:min(630px,calc(100vw - 30px)); max-height:80svh; overflow:auto; border:1px solid var(--surface-focus); border-radius:9px; padding:22px; background:#fcfbf8; color:var(--brand-ink); }
.editor-image-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; margin:16px 0; }
.editor-image-choice { border:1px solid var(--surface-focus); border-radius:5px; background:white; color:var(--brand-ink); padding:8px; display:flex; flex-direction:column; gap:7px; text-align:left; }
.editor-image-choice img { width:100%; height:85px; object-fit:contain; }
.editor-image-choice span { font-size:12px; }
.editor-context-actions { display:flex; flex-wrap:wrap; gap:7px; padding:12px 18px; }
.editor-context-actions[hidden] { display:none; }
.editor-context-actions button { padding:7px 9px; background:white; color:var(--brand-ink); border:1px solid var(--surface-focus); border-radius:4px; font-size:11px; }
@media(min-width:901px) {
 .presentation-main.editor-properties-hidden:not(.is-focus),.ll-bulk-studio.editor-properties-hidden #preview-ready:not(.is-focus) { grid-template-columns:74px 210px minmax(0,1fr) !important; }
 .presentation-main.editor-properties-hidden>.ll-studio-inspector,.ll-bulk-studio.editor-properties-hidden #preview-ready>.ll-studio-inspector { display:none !important; }
}
@media(min-width:901px) and (max-width:1220px) {
 .presentation-main.editor-properties-hidden:not(.is-focus),.ll-bulk-studio.editor-properties-hidden #preview-ready:not(.is-focus) { grid-template-columns:67px 166px minmax(0,1fr) !important; }
}
@media(max-width:900px) {
 body .presentation-main.ll-inspector-overlay>.ll-studio-inspector,
 body .ll-bulk-studio.ll-inspector-overlay #preview-ready>.ll-studio-inspector {
  display:block !important; position:fixed; top:var(--editor-properties-top,150px) !important; right:0; bottom:0;
  width:min(320px,85vw); z-index:1100; overflow:auto; background:#fffdfa; box-shadow:-10px 0 30px rgba(var(--brand-ink-rgb),.2);
 }
}
@media(max-width:680px) {
 .presentation-top,.ll-bulk-studio-head { flex-wrap:wrap; }
 .ll-studio-head-copy { flex:1; min-width:100px; }
 .ll-studio-head-actions,.presentation-top-actions { width:100%; justify-content:flex-end; flex-wrap:wrap; }
}
.preview-ready:not(.ll-is-studio) .editor-page-controls { display:none; }
.ll-resize-handle { display:none !important; }
@media(max-width:680px) { .editor-scroll-hint { display:none; } .editor-page-controls { font-size:11px; gap:5px; } .presentation-stage,.ll-bulk-studio .preview-ready>.preview-sheet-wrap { padding:8px 10px 25px !important; } }
@media(prefers-reduced-motion:reduce) { .editor-selection-box,.editor-placement { transition:none; } }
