/* One scrolling editor. Its sample surfaces use the live chat renderer. */
html[data-settings-surface="classic-editor"] .classic-editor-fixed { position:relative; top:auto; background:transparent; }
html[data-settings-surface="classic-editor"] .classic-editor-final .classic-live-preview {
  height:282px; margin:8px 14px 16px; background:transparent;
  box-shadow:0 0 0 1px var(--page-line); color:var(--page-text);
}
html[data-settings-surface="classic-editor"] .classic-live-preview::before,
html[data-settings-surface="classic-editor"] .classic-live-preview::after { display:none; }
html[data-settings-surface="classic-editor"] .classic-preview-head {
  display:flex; justify-content:space-between; gap:12px; height:44px; color:var(--page-text);
}
html[data-settings-surface="classic-editor"] .classic-preview-head button {
  min-height:44px; color:inherit; background:color-mix(in srgb,var(--page-bg) 8%,transparent);
  border:1px solid var(--page-line); backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px);
}
html[data-settings-surface="classic-editor"] .classic-editor-tabs {
  position:relative; top:auto; background:transparent;
}
/* The preview and options move together, so no option sits under a pinned slab. */
html[data-settings-surface="classic-editor"] .classic-editor-content { padding-top:4px; }
html[data-settings-surface="classic-editor"] .classic-preview-composer {
  position:absolute;
  grid-template-columns:36px minmax(0,1fr) 36px 36px; gap:2px; height:48px;
  border-radius:26px; padding:2px 6px; color:var(--page-text);
  background:color-mix(in srgb,var(--page-bg) 7%,transparent) !important;
  backdrop-filter:blur(9px) saturate(1.1); -webkit-backdrop-filter:blur(9px) saturate(1.1);
}
html[data-settings-surface="classic-editor"] .classic-preview-composer :is(b,span,i,em) {
  position:relative; z-index:1; display:flex; align-items:center; justify-content:center;
  height:36px; width:auto; margin:0; padding:0; color:inherit; font-style:normal;
  background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none;
}
html[data-settings-surface="classic-editor"] .classic-preview-composer span { justify-content:flex-start; font-size:14px; opacity:.6; }
html[data-settings-surface="classic-editor"] .classic-preview-composer em { border-radius:50%; color:var(--page-bg); background:var(--page-text) !important; }
html[data-settings-surface="classic-editor"] .classic-preview-bubble.classic-prose { padding:12px 16px; border-radius:20px; }
/* Native translucent fallback keeps the same material if GPU refraction is unavailable. */
html[data-liquid-glass="true"] :is(#thread .chat-bubble,#thread .assistant-reply .body,.classic-preview-bubble):not([data-chat-glass="ready"]) {
  background:color-mix(in srgb,var(--page-bg) 8%,transparent) !important;
  backdrop-filter:blur(2px) saturate(1.1) !important; -webkit-backdrop-filter:blur(2px) saturate(1.1) !important;
  box-shadow:inset 0 1px 0 #ffffff38; isolation:isolate;
}
html[data-liquid-glass="true"] :is(#thread .chat-bubble,#thread .assistant-reply .body,.classic-preview-bubble) > .sh { visibility:hidden; }
html[data-liquid-glass="true"] .classic-preview-composer[data-chat-glass="ready"] {
  background:color-mix(in srgb,var(--page-bg) 7%,transparent) !important;
}
/* Keep one native scroll container when the keyboard appears as well. */
html.keyboard-open[data-settings-surface="classic-editor"] #settings .modal-body { display:block; overflow-y:auto; }
html.keyboard-open[data-settings-surface="classic-editor"] #settings .classic-editor-final { display:block; overflow:visible; }
html.keyboard-open[data-settings-surface="classic-editor"] .classic-editor-content { overflow:visible; }
html.keyboard-open[data-settings-surface="classic-editor"] .classic-editor-final .classic-live-preview { height:var(--editor-preview-height,180px); }
@media(max-height:600px) { html[data-settings-surface="classic-editor"] .classic-editor-final .classic-live-preview { height:252px; } }
