/* Mini's living caret: one canvas over the paper. It never takes pointer events or space. */
.mini-page .editor-split { position: relative; }
.mini-living-canvas { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; }
.mini-living-cloud { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; }
/* While the living caret is placed, the native caret (textarea or drawn layer) steps aside. */
html[data-living-caret="on"] .mini-page #editor { caret-color: transparent; }
html[data-living-caret="on"] .mini-page .bump-caret { opacity: 0 !important; }
/* While the caret is drawn as the highlight, the browser's own selection colour steps aside (the selection is unchanged). */
html[data-living-select="on"] #editor::selection { background: transparent; }
.mini-living-controls { display: grid; gap: 6px; }
.mini-living-controls > summary { color: var(--muted); cursor: pointer; padding: 2px 4px; }
.mini-cloud-sliders { flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.mini-cloud-sliders label { display: inline-flex; align-items: center; gap: 6px; }
.mini-cloud-sliders input[type=range] { width: 110px; }
.mini-cloud-sliders output { min-width: 3ch; font: .66rem/1 ui-monospace, Consolas, monospace; color: var(--muted); }
.mini-cloud-sliders button[aria-pressed=true] { outline: 2px solid currentColor; }
.mini-living-controls p { margin: 0 4px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.mini-living-controls kbd { font-size: .66rem; }
.mini-settings { display: inline-flex; align-items: center; justify-content: center; }
/* The caret gallery: one bar of real pictures per situation; the chosen one is ringed. Bars scroll sideways inside
   the palette, never the page. */
.mini-caret-gallery { display: grid; gap: 8px; min-width: 0; margin: 2px 0 4px; }
.mini-caret-gallery .gallery-row { display: grid; gap: 3px; min-width: 0; }
.mini-caret-gallery .gallery-title { margin: 0 4px; color: var(--muted); font-size: .7rem; }
.mini-caret-gallery .gallery-bar { display: flex; gap: 6px; min-width: 0; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.mini-caret-gallery .gallery-tile { flex: 0 0 auto; display: grid; justify-items: start; gap: 3px; width: 128px; padding: 3px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mini-caret-gallery .gallery-tile:hover { border-color: color-mix(in srgb, var(--muted, #888) 45%, transparent); }
.mini-caret-gallery .gallery-tile[aria-pressed="true"] { border-color: #8b6cf0; box-shadow: 0 0 0 1px #8b6cf055; background: #8b6cf014; color: inherit; }
.mini-caret-gallery .gallery-tile img { display: block; width: 120px; height: 50px; object-fit: cover; border-radius: 6px; background: var(--bump-paper, #fffdf6); }
.mini-caret-gallery .gallery-tile span { font-size: .68rem; line-height: 1.25; color: var(--muted); }
.mini-caret-gallery .gallery-tile[aria-pressed="true"] span { color: inherit; }
