/* Temporary controls. All preview UI is scoped to this container. */
/* Keep picker controls stable while the page typography is previewed. */
#accent-preview { --font-display-weight: initial; --font-body-weight: initial; --font-ui-weight: initial; --font-code-weight: initial; --font-ui: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace; position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 15; font: .875rem/1.5 var(--font-ui); color: var(--ink); color-scheme: var(--panel-scheme); }
/* Leave room for the temporary launcher below the chat composer. */
.room-page #app { margin-bottom: calc(74px + env(safe-area-inset-bottom)); }
#accent-preview .accent-preview-toggle { display: flex; align-items: center; gap: 9px; min-height: 42px; margin-left: auto; padding: 9px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; box-shadow: 3px 3px 0 #0004; }
#accent-preview .accent-preview-dot { width: 13px; height: 13px; background: var(--accent); border: 1px solid var(--ink); }
#accent-preview .accent-preview-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(316px, calc(100vw - 36px)); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--paper); box-shadow: 5px 5px 0 #0004; }
#accent-preview .accent-preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#accent-preview h2 { margin: 0; font: 600 1rem var(--font-ui); letter-spacing: 0; }
#accent-preview p { margin: 8px 0 16px; font: .8125rem/1.5 var(--font-ui); color: var(--muted); }
#accent-preview .accent-preview-close { min-width: 32px; min-height: 32px; padding: 0; background: none; color: var(--ink); font: 1.4rem var(--font-ui); }
#accent-preview .accent-preview-swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
#accent-preview .accent-preview-swatches button { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 46px; padding: 10px 9px; border: 1px solid var(--field-border); font: .75rem var(--font-ui); }
#accent-preview .accent-preview-check { visibility: hidden; }
#accent-preview .accent-preview-swatches button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
#accent-preview .accent-preview-swatches button:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
#accent-preview .accent-preview-swatches button[aria-pressed="true"] .accent-preview-check { visibility: visible; }
#accent-preview label { margin: 18px 0 8px; font: inherit; }
#accent-preview .accent-preview-custom { display: flex; gap: 8px; }
#accent-preview input[type="color"] { flex: 0 0 46px; width: 46px; height: 46px; padding: 4px; cursor: pointer; }
#accent-preview input[type="text"] { font: inherit; }
#accent-preview input[aria-invalid="true"] { outline: 2px solid var(--error); }
#accent-preview .accent-preview-actions { display: flex; gap: 10px; margin-top: 14px; }
#accent-preview .accent-preview-actions button { flex: 1; min-height: 40px; padding: 8px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; }
#accent-preview .accent-preview-actions .accent-preview-copy { background: var(--accent); color: var(--on-accent); }
#accent-preview .accent-preview-status { min-height: 3em; margin-block: 12px; }
#accent-preview button:focus-visible, #accent-preview input:focus-visible { outline-color: var(--ink); }
