/* The composer (maquette compositions-editeur.html; compositions.md): full screen, add at the left, the page in the middle, settings at the right. */
.composer-body { margin: 0; overflow: hidden; background: var(--bg); }
.ce { --canvas: #e6eaf0; position: fixed; inset: 0; display: grid; grid-template-rows: auto 56px 1fr; background: var(--bg); color: var(--text); font-size: 14px; }
:root[data-theme="dark"] .ce { --canvas: #061120; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .ce { --canvas: #061120; } }
.ce .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top */
.ce-top { grid-row: 2; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--border); min-width: 0; }
.ce-name { font: inherit; font-size: 16px; font-weight: 500; color: var(--text); background: transparent; padding: 4px 8px; border-radius: var(--r); border: 1px solid transparent; width: 280px; min-width: 120px; }
.ce-name:hover { border-color: var(--border-strong); }
.ce-name:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-soft); }
.ce-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.ce-saved.failed { color: var(--danger-text); }
.ce-grow { flex: 1; }
.ce-vsep { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }
.icon-btn.lg { width: var(--h); height: var(--h); }
.ce-more { position: relative; }
.ce-banner { grid-row: 1; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--danger-bg); color: var(--danger-text); }
.ce-banner span { flex: 1; }

/* Menus */
.ce-menu { position: fixed; z-index: 30; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-float); padding: 4px; display: flex; flex-direction: column; }
.ce-menu.down { position: absolute; right: 0; top: calc(100% + 6px); }
.ce-menu[hidden] { display: none; }
.ce-menu button { display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; color: var(--text); padding: 8px 10px; border-radius: var(--r); cursor: pointer; text-align: left; white-space: nowrap; }
.ce-menu button:hover { background: var(--hover); }
.ce-menu button.danger { color: var(--danger-text); }
.ce-menu button.danger:hover { background: var(--danger-bg); }
.ce-menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }

/* Main grid */
.ce-main { grid-row: 3; display: grid; grid-template-columns: 76px 288px 1fr 312px; min-height: 0; }
.ce-main.no-panel { grid-template-columns: 76px 0 1fr 312px; }
.ce-main.no-panel .ce-panel { padding: 0; border: 0; overflow: hidden; }
.ce-rail { background: var(--surface); border-right: 1px solid var(--border); padding: 10px 6px; display: flex; flex-direction: column; gap: 4px; }
.ce-rail button { border: 0; background: none; color: var(--text-2); font: inherit; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; border-radius: var(--r); cursor: pointer; position: relative; }
.ce-rail button:hover { background: var(--hover); color: var(--text); }
.ce-rail button .i { width: 22px; height: 22px; }
.ce-rail button.on { background: var(--surface-2); color: var(--text); font-weight: 500; }
.ce-rail button.on::before { content: ""; position: absolute; left: -6px; top: 50%; width: 5px; height: 5px; margin-top: -3px; background: var(--brand); }

/* Left panel */
.ce-panel { background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ce-ph { font-size: 15px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; }
.ce-help { font-size: 12.5px; color: var(--text-3); margin: 0; }
.ce-error { font-size: 12.5px; color: var(--danger-text); margin: 0; }
.ce-grp { font-size: 12px; color: var(--text-3); margin: 4px 0 -4px; display: flex; justify-content: space-between; }
.ce .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ce .chip { height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--border-strong); background: var(--surface); font: inherit; font-size: 12.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ce .chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.ce-panel .field.search > .i { position: static; }
.ce-panel .field.search { flex-direction: row; align-items: center; gap: 8px; height: 34px; border: 1px solid var(--border-strong); border-radius: var(--r); padding: 0 10px; color: var(--text-3); background: var(--surface); }
.ce-panel .field.search input[type=search] { padding-left: 0; }
.ce-panel .field.search input { border: 0; outline: none; background: transparent; font: inherit; font-size: 13px; color: var(--text); flex: 1; min-width: 0; height: 100%; padding: 0; }
.ce-ttile { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; display: flex; justify-content: space-between; align-items: baseline; background: var(--surface); color: var(--text); font: inherit; cursor: grab; text-align: left; }
.ce-ttile:hover { border-color: var(--border-strong); background: var(--hover); }
.ce-ttile.title span { font-size: 26px; font-weight: 700; }
.ce-ttile.subtitle span { font-size: 19px; }
.ce-ttile.body span { font-size: 15px; }
.ce-ttile small { color: var(--text-3); font-size: 12px; font-family: "JetBrains Mono", monospace; }
.ce-tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ce-tthumb { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: var(--surface); padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; display: block; width: 100%; }
.ce-tthumb:hover { border-color: var(--focus); }
.ce-tthumb .mini { display: block; aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--surface-2); }
.ce-tthumb .mini.port { aspect-ratio: 9 / 16; }
.ce-tthumb b { display: block; font-weight: 400; font-size: 12px; padding: 5px 8px; color: var(--text-2); }
.ce-seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r); overflow: hidden; height: 32px; }
.ce-seg button { border: 0; border-right: 1px solid var(--border); background: var(--surface); padding: 0 12px; font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.ce-seg button:last-child { border-right: 0; }
.ce-seg button.on { background: var(--surface-2); color: var(--text); font-weight: 500; }
.ce-seg.full { display: flex; }
.ce-seg.full button { flex: 1; }
.ce-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ce-mthumb { aspect-ratio: 4 / 3; border-radius: var(--r); position: relative; overflow: hidden; border: 0; padding: 0; background: var(--surface-2); cursor: grab; }
.ce-mthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ce-mthumb .dur { position: absolute; right: 5px; bottom: 5px; background: rgba(0, 0, 0, .6); color: #fff; font: 500 10.5px "JetBrains Mono", monospace; padding: 1px 5px; border-radius: 3px; }
.ce-mthumb.used { outline: 2px solid var(--focus); outline-offset: -2px; }
.ce-mthumb:hover { outline: 2px solid var(--border-strong); outline-offset: -2px; }
.ce-replacing { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: var(--info-bg); color: var(--info-text); border-radius: var(--r); padding: 8px 10px; font-size: 13px; }
.ce-sgrid, .ce-igrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ce-shp, .ce-igrid button { aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--r); display: grid; place-items: center; color: var(--text-2); background: var(--surface); cursor: grab; padding: 0; }
.ce-shp:hover, .ce-igrid button:hover { background: var(--hover); color: var(--text); }
.ce-shp i { display: block; background: currentColor; }
.ce-shp .s-rect { width: 22px; height: 16px; }
.ce-shp .s-rounded { width: 22px; height: 16px; border-radius: 5px; }
.ce-shp .s-ellipse { width: 20px; height: 20px; border-radius: 50%; }
.ce-shp .s-pill { width: 24px; height: 12px; border-radius: 6px; }
.ce-shp .s-frame { width: 20px; height: 16px; background: none; border: 2px solid currentColor; }
.ce-shp .s-line { width: 22px; height: 2px; }
.ce-shp .arrow { display: grid; place-items: center; }
.ce-wrow { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px 12px; display: flex; gap: 10px; align-items: center; background: var(--surface); font: inherit; color: var(--text); cursor: grab; text-align: left; }
.ce-wrow:hover { background: var(--hover); }
.ce-wrow b { font-weight: 500; display: block; }
.ce-wrow small { display: block; color: var(--text-3); font-size: 12px; }
.ce-wrow .pastille { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #5a6b80; flex: none; }

/* Centre */
.ce-center { position: relative; background: var(--canvas); overflow: hidden; min-width: 0; }
.ce-scroll { position: absolute; inset: 0; overflow: auto; }
.ce-stage { position: relative; }
.ce-pagebox { position: absolute; box-shadow: 0 2px 10px rgba(11, 31, 58, .18); }
.ce-pagebox .cx-page { position: absolute; left: 0; top: 0; }
.ce-pagebox .cx-words[contenteditable="true"], .ce-pagebox .cx-words[contenteditable="plaintext-only"] { outline: none; cursor: text; caret-color: #3b82c4; }
.ce-pagebox .cx-el { cursor: move; }
.ce-overlay { position: absolute; inset: 0; pointer-events: none; }
.ce-sel { position: absolute; outline: 2px solid var(--focus); pointer-events: none; }
.ce-sel.locked { outline-style: dotted; }
.ce-sel.multi { outline-style: dashed; outline-width: 1px; }
.ce-sel.group { outline: 1px solid var(--focus); outline-offset: 6px; }
.ce-sel i { position: absolute; width: 12px; height: 12px; background: #fff; border: 2px solid var(--focus); border-radius: 2px; pointer-events: auto; }
.ce-sel .h-nw { left: -7px; top: -7px; cursor: nwse-resize; }
.ce-sel .h-ne { right: -7px; top: -7px; cursor: nesw-resize; }
.ce-sel .h-sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.ce-sel .h-se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.ce-sel .rot { position: absolute; left: 50%; bottom: -32px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--focus); pointer-events: auto; cursor: grab; }
.ce-guide { position: absolute; background: #e5398b; }
.ce-guide.v { width: 1px; }
.ce-guide.hz { height: 1px; }
.ce-marquee { position: absolute; border: 1px solid var(--focus); background: color-mix(in srgb, var(--focus) 12%, transparent); }
.ce-float { position: absolute; display: flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-float); white-space: nowrap; z-index: 3; pointer-events: auto; }
.ce-float .btn { height: 30px; border: 0; padding: 0 8px; font-size: 13px; font-weight: 400; background: none; color: var(--text); }
.ce-float .btn:hover { background: var(--hover); }
.ce-float .btn.del { color: var(--danger-text); }
.ce-float .btn.del:hover { background: var(--danger-bg); }
.ce-float .sep { width: 1px; background: var(--border); margin: 4px 2px; }
.ce-empty { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ce-empty[hidden] { display: none; }
.ce-empty .in { text-align: center; color: var(--text-2); pointer-events: auto; background: color-mix(in srgb, var(--surface) 92%, transparent); padding: 20px 28px; border-radius: var(--r-lg); }
.ce-empty b { display: block; font-size: 18px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.ce-empty .acts { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.ce-zoom { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px; box-shadow: var(--shadow-float); }
.ce-zoom .val { font: 500 12.5px "JetBrains Mono", monospace; min-width: 56px; text-align: center; color: var(--text-2); }

/* Right column */
.ce-side { background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ce-tabs { display: flex; gap: 22px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.ce-tabs button { border: 0; background: none; font: inherit; padding: 14px 0 12px; color: var(--text-2); position: relative; font-size: 14px; cursor: pointer; }
.ce-tabs button.on { color: var(--text); font-weight: 500; }
.ce-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); }
.ce-tabs small { font-size: 11.5px; color: var(--text-3); margin-left: 4px; }
.ce-sbody { padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; flex: 1; }
.ce-kind { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.ce-kind .k { width: 30px; height: 30px; border-radius: var(--r); background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); }
.ce-sec { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ce-sec > b { font-size: 12px; font-weight: 500; color: var(--text-3); }
.ce-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ce-label { width: 74px; color: var(--text-2); font-size: 13px; flex: none; }
.ce-label.wide { width: auto; flex: 1; }
.ce-select, .ce-input { height: 32px; border: 1px solid var(--border-strong); border-radius: var(--r); padding: 0 10px; flex: 1; min-width: 0; font: inherit; font-size: 13.5px; background: var(--surface); color: var(--text); }
.ce-select { appearance: none; background: var(--surface) var(--chevron) no-repeat right 8px center; padding-right: 28px; }
.ce-stepper { display: inline-flex; align-items: center; height: 32px; border: 1px solid var(--border-strong); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.ce-stepper button { width: 28px; height: 100%; border: 0; background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ce-stepper button:hover { background: var(--hover); color: var(--text); }
.ce-num { width: 52px; border: 0; background: transparent; font: 500 13px "JetBrains Mono", monospace; color: var(--text); text-align: right; padding: 0 2px; height: 100%; }
.ce-num:focus { outline: none; background: var(--accent-soft); }
.ce-stepper small { font: 12px "JetBrains Mono", monospace; color: var(--text-3); padding-right: 4px; min-width: 14px; }
.ce-sws { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-items: center; }
.ce-sw { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .14); display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--text-2); position: relative; }
.ce-sw.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus); }
.ce-sw.add { border: 1px dashed var(--border-strong); background: var(--surface); }
.ce-sw-gap { width: 6px; }
.ce-ibar { display: flex; gap: 3px; flex-wrap: wrap; }
.ce-ibar button, .ce-ibtn { width: 30px; height: 32px; border: 1px solid var(--border-strong); border-radius: var(--r); display: grid; place-items: center; color: var(--text-2); background: var(--surface); cursor: pointer; padding: 0; }
.ce-ibar button:hover, .ce-ibtn:hover { background: var(--hover); color: var(--text); }
.ce-ibar button.on, .ce-ibtn.on { background: var(--surface-2); color: var(--text); border-color: var(--text-3); }
.ce-slider { display: flex; align-items: center; gap: 8px; flex: 1; }
.ce-range { flex: 1; accent-color: var(--primary); min-width: 0; }
.ce-range-val { font: 500 12.5px "JetBrains Mono", monospace; color: var(--text-2); width: 44px; text-align: right; }
.ce input.ce-switch { border: 0; background-image: none; }
.ce input.ce-switch { appearance: none; width: 34px; height: 20px; border-radius: 10px; background: var(--border-strong); position: relative; flex: none; margin: 0 0 0 auto; cursor: pointer; }
.ce input.ce-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .12s; }
.ce input.ce-switch:checked { background: var(--primary); }
.ce input.ce-switch:checked::after { left: 16px; background: var(--primary-text); }
.ce-switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ce-fmts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ce-fmt, .ce-choice { border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 10px; display: flex; gap: 10px; align-items: center; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); cursor: pointer; text-align: left; }
.ce-fmt.on, .ce-choice.on { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.ce-fmt small, .ce-choice small { display: block; color: var(--text-3); font-size: 11.5px; }
.ce-fmt small { font-family: "JetBrains Mono", monospace; white-space: nowrap; font-size: 11px; }
.ce-fmt { padding: 10px 8px; gap: 8px; }
.shape-l { width: 26px; height: 16px; border: 2px solid var(--text-2); border-radius: 2px; flex: none; }
.shape-p { width: 14px; height: 24px; border: 2px solid var(--text-2); border-radius: 2px; flex: none; margin: 0 6px; }
.ce-custom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ce-custom[hidden] { display: none; }
.ce-media-row { display: flex; align-items: center; gap: 10px; }
.ce-media-thumb { width: 64px; height: 44px; border-radius: 4px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); flex: none; }
.ce-media-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.ce-media-name small { display: block; color: var(--text-3); font-size: 12px; }
.ce-ly { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: var(--r); font-size: 13.5px; }
.ce-ly:hover { background: var(--hover); }
.ce-ly.on { background: var(--selected); }
.ce-ly.over { box-shadow: inset 0 2px 0 var(--focus); }
.ce-ly.dragging { opacity: .5; }
.ce-ly .grip { color: var(--text-3); cursor: grab; display: grid; width: 16px; }
.ce-ly .th { width: 32px; height: 24px; border-radius: 3px; border: 1px solid var(--border); flex: none; display: grid; place-items: center; background: var(--surface-2); }
.ce-ly .nm { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 0; background: none; font: inherit; color: var(--text); text-align: left; padding: 4px 0; cursor: pointer; }
.ce-ly .ic { border: 0; background: none; color: var(--text-3); padding: 4px; border-radius: var(--r); cursor: pointer; display: grid; }
.ce-ly .ic:hover { background: var(--surface-2); color: var(--text); }
.ce-ly .ic.on { color: var(--text); }
.ce-ly.hid .nm, .ce-ly.hid .th { opacity: .45; }
.ce-ly.bg-row { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0; padding-top: 10px; }
.ce-ly.bg-row .nm { color: var(--text-2); }

/* Windows */
.ce-veil { position: fixed; inset: 0; background: var(--veil); display: grid; place-items: center; z-index: 20; }
.ce-modal { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; }
.ce-modal .modal-close { border: 0; background: none; cursor: pointer; }
.ce-modal .modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--border); }
.ce-modal .modal-foot .muted { margin-right: auto; color: var(--text-2); font-size: 13px; }
.ce-modal.wide { width: min(1180px, calc(100vw - 48px)); max-width: none; height: min(760px, calc(100vh - 48px)); }
.ce-start { display: grid; grid-template-columns: 300px 1fr; min-height: 0; flex: 1; }
.ce-start-left { padding: 20px 24px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.ce-start-left .push { margin-top: auto; }
.ce-start-right { padding: 20px 24px; background: var(--surface-2); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.ce-start-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.ce-bigrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.ce-bigrid .ce-break { grid-column: 2 / -1; }
.ce-bigrid .ce-tthumb b { font-size: 13px; color: var(--text); padding: 7px 10px; }
.ce-bigrid .blank { aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--text-2); border: 1.5px dashed var(--border-strong); border-radius: var(--r); background: var(--surface); margin: 6px; }
.ce-bigrid .blank.port { aspect-ratio: 9 / 16; }
.ce-bigrid .blank-tile { border-color: var(--border-strong); }
.ce-keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.ce-keys dd { margin: 0; color: var(--text-2); }
.ce-keys kbd { font: 12.5px "JetBrains Mono", monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }

/* Preview */
.ce-pv { position: fixed; inset: 0; background: #000; z-index: 25; }
.ce-pv-stage { position: absolute; inset: 0; }
.ce-pv .close-pv { position: absolute; top: 16px; right: 16px; z-index: 2; background: rgba(255, 255, 255, .14); color: #fff; border: 0; height: 34px; padding: 0 14px; border-radius: var(--r); font: inherit; font-size: 13px; display: flex; align-items: center; gap: 8px; cursor: pointer; }

.ce-toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 40; background: var(--primary); color: var(--primary-text); padding: 10px 16px; border-radius: var(--r-lg); box-shadow: var(--shadow-float); font-size: 13.5px; max-width: 640px; }

/* A computer only (rule 29) */
.ce-narrow { display: none; }
@media (max-width: 1099px) {
  .ce-top, .ce-main { display: none; }
  .ce-narrow { grid-row: 3; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; padding: 24px; text-align: center; }
  .ce-narrow b { font-size: 17px; font-weight: 500; }
}

/* Drawings of compositions in the back-office */
.composition-drawing { position: relative; overflow: hidden; background: var(--surface-2); }
.composition-stage { flex: 1; display: grid; place-items: center; background: #000; border-radius: var(--r-lg); padding: 16px; min-height: 320px; }
.composition-stage .composition-drawing { width: 100%; max-height: 100%; max-width: 100%; }
.ce-used { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--info-bg); color: var(--info-text); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
