/* Brandly reference system for the advanced editor only. Classic is untouched. */
:root[data-variant="glass"]
  :is(
    #project-view,
    .canvas-editor,
    .caption-controls,
    .insert-details,
    .er-select-popup
  ) {
  --eb-bg: #f1f0f5;
  --eb-paper: #fff;
  --eb-ink: #19171f;
  --eb-muted: #787287;
  --eb-control: #ebe9f1;
  --eb-control-hover: #e3e0eb;
  --eb-selected: #272330;
  --eb-on-selected: #fff;
  --eb-stage: #17141e;
  --eb-stage-muted: #c4bdcf;
  --eb-pink: #ed2678;
  --eb-soft-pink: #fae3ee;
  --eb-on-pink: #8b1c54;
  --eb-focus: #f5d2e5;
  --eb-on-focus: #5b1641;
  --eb-danger: #b7264d;
  --eb-gradient: linear-gradient(108deg, #fb9f43 0%, #f52777 48%, #9222c6 100%);
  --eb-shadow: 0 6px 23px #21142c08;
}
:root[data-variant="glass"][data-theme="dark"]
  :is(
    #project-view,
    .canvas-editor,
    .caption-controls,
    .insert-details,
    .er-select-popup
  ) {
  --eb-bg: #100e16;
  --eb-paper: #1d1828;
  --eb-ink: #f1eefb;
  --eb-muted: #aaa2bd;
  --eb-control: #2b2538;
  --eb-control-hover: #373043;
  --eb-selected: #eee9f8;
  --eb-on-selected: #211b2c;
  --eb-stage: #0a090e;
  --eb-stage-muted: #b8afc8;
  --eb-soft-pink: #422039;
  --eb-on-pink: #ffc4e4;
  --eb-focus: #543049;
  --eb-on-focus: #ffe8f6;
  --eb-danger: #ffa0c0;
  --eb-shadow: 0 5px 20px #00000014;
}
:root[data-variant="glass"] #project-view {
  color: var(--eb-ink);
  padding-top: 5px;
  max-width: 1150px;
  margin: 0 auto;
}
:root[data-variant="glass"]
  #project-view
  :is(.edit-panel, .player-wrap, .progress-panel) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-image: none;
}
:root[data-variant="glass"] #project-view .project-heading {
  gap: 16px;
  margin: 14px 0 24px;
  align-items: center;
}
:root[data-variant="glass"] #project-view .project-heading h1 {
  font-family: var(--er-font-ui, system-ui, sans-serif);
  font-size: 30px;
  font-weight: 780;
  line-height: 1.15;
  letter-spacing: -0.9px;
  margin: 0;
  max-width: 800px;
}
:root[data-variant="glass"] #project-view .project-heading .status-pill {
  font-family: var(--er-font-ui, system-ui, sans-serif);
  background: var(--eb-control);
  color: var(--eb-ink);
  font-size: 12px;
  font-weight: 650;
  padding: 8px 13px;
  border-radius: 20px;
}
:root[data-variant="glass"] #project-view .editor-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(400px, 1.1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}
:root[data-variant="glass"] #project-view .player-wrap {
  position: sticky;
  top: 24px;
  background: var(--eb-stage);
  border-radius: 26px;
  padding: 20px 20px 18px;
  box-shadow: none;
  border: 0;
  overflow: hidden;
}
:root[data-variant="glass"] #project-view .player-wrap #player {
  display: block;
  width: min(100%, 34.875svh, 310px);
  height: auto;
  max-height: none;
  aspect-ratio: 9/16;
  margin: 0 auto;
  object-fit: contain;
  background: #09080d;
  border-radius: 13px;
  border: 0;
  box-shadow: none;
}
:root[data-variant="glass"] #project-view .player-wrap #video-info {
  font-family: var(--er-font-ui, system-ui, sans-serif);
  color: var(--eb-stage-muted);
  font-size: 12px !important;
  font-weight: 450;
  margin-top: 12px;
  line-height: 1.45;
}
:root[data-variant="glass"] #project-view .player-wrap #download {
  min-height: 48px;
  border-radius: 25px;
  padding: 6px 7px 6px 19px;
  margin-top: 15px;
  background: #fff;
  color: #19171f !important;
  font-family: var(--er-font-ui, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 750;
  box-shadow: none;
}
:root[data-variant="glass"] #project-view .player-wrap #download > span {
  display: grid;
  place-items: center;
  min-width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--eb-gradient);
  color: white;
  font-size: 19px;
}
:root[data-variant="glass"] #project-view .project-card-moments {
  gap: 8px;
  margin: 12px 0 0;
}
:root[data-variant="glass"] #project-view .project-card-moments button {
  background: #ffffff12;
  color: #eee8f5;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
}
:root[data-variant="glass"] #project-view .edit-panel {
  padding: 24px;
  background: var(--eb-paper);
  color: var(--eb-ink);
  border-radius: 26px;
  border: 0;
  box-shadow: var(--eb-shadow);
  font-family: var(--er-font-ui, system-ui, sans-serif);
}
:root[data-variant="glass"] #project-view .canvas-open-button {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 24px;
  border: 0;
  border-radius: 26px;
  min-height: 52px;
  padding: 14px 63px 14px 20px;
  text-align: left;
  background: var(--eb-ink);
  color: var(--eb-paper);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 750;
  box-shadow: none;
}
:root[data-variant="glass"] #project-view .canvas-open-button::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 35px;
  height: 35px;
  transform: translateY(-50%);
  background: var(--eb-gradient);
  border-radius: 50%;
}
:root[data-variant="glass"] #project-view .editor-panel-heading {
  margin: 0 0 12px;
  gap: 12px;
}
:root[data-variant="glass"] #project-view .editor-panel-heading h2 {
  font-size: 22px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin: 0;
}
:root[data-variant="glass"] #project-view #edit-dirty {
  font-size: 12px;
  font-weight: 550;
  color: var(--eb-muted);
}
:root[data-variant="glass"] #project-view .editor-quick-actions {
  gap: 10px;
  margin-bottom: 17px;
}
:root[data-variant="glass"] #project-view .editor-quick-actions .edit-check {
  min-height: 44px;
  font-size: 14px;
  font-weight: 550;
  gap: 8px;
  color: var(--eb-ink);
}
:root[data-variant="glass"] #project-view #editor-cut-shortcut {
  min-height: 40px;
  border-radius: 21px;
  padding: 10px 12px;
  background: var(--eb-control);
  color: var(--eb-ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}
:root[data-variant="glass"] #project-view .editor-tabs {
  gap: 4px;
  padding: 5px;
  background: var(--eb-control);
  border-radius: 22px;
  margin-bottom: 23px;
}
:root[data-variant="glass"] #project-view .editor-tabs button {
  min-width: 0;
  min-height: 38px;
  border-radius: 18px;
  padding: 9px 5px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
  color: var(--eb-muted);
  background: transparent;
  box-shadow: none;
}
:root[data-variant="glass"]
  #project-view
  .editor-tabs
  button[aria-selected="true"] {
  background: var(--eb-selected);
  color: var(--eb-on-selected);
}
:root[data-variant="glass"] #project-view :is(.title-label, .control-label) {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--eb-ink);
  margin-top: 19px;
  margin-bottom: 9px;
}
:root[data-variant="glass"] #project-view #panel-text > .title-label {
  margin-top: 0;
}
:root[data-variant="glass"]
  #project-view
  :is(input[type="text"], .er-select-trigger) {
  min-height: 47px;
  height: auto;
  padding: 12px 13px;
  background: var(--eb-control);
  color: var(--eb-ink);
  border: 0;
  border-radius: 13px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: none;
}
:root[data-variant="glass"] #project-view input[type="text"]::placeholder {
  color: var(--eb-muted);
  font-weight: 450;
}
:root[data-variant="glass"]
  #project-view
  .er-select-trigger[aria-expanded="true"] {
  background: var(--eb-control-hover);
  color: var(--eb-ink);
}
:root[data-variant="glass"] #project-view .er-select-arrow {
  font-size: 20px;
  color: var(--eb-muted);
}
:root[data-variant="glass"] #project-view :is(.effect-switch, .edit-check) {
  font-size: 14px;
  line-height: 1.4;
  min-height: 49px;
  color: var(--eb-ink);
}
:root[data-variant="glass"]
  #project-view
  :is(.effect-switch, .switch-row)
  .switch {
  background: var(--eb-control);
  height: 24px;
  width: 40px;
  padding: 3px;
}
:root[data-variant="glass"]
  #project-view
  :is(.effect-switch, .switch-row)
  .switch::after {
  height: 18px;
  width: 18px;
  background: var(--eb-paper);
}
:root[data-variant="glass"]
  #project-view
  :is(.effect-switch, .switch-row)
  input:checked
  + .switch {
  background: #292430;
}
:root[data-variant="glass"][data-theme="dark"]
  #project-view
  :is(.effect-switch, .switch-row)
  input:checked
  + .switch {
  background: #f0eaf8;
}
:root[data-variant="glass"]
  #project-view
  :is(.effect-switch, .switch-row)
  input:checked
  + .switch::after {
  transform: translateX(16px);
  background: #fff;
}
:root[data-variant="glass"][data-theme="dark"]
  #project-view
  :is(.effect-switch, .switch-row)
  input:checked
  + .switch::after {
  background: #292430;
}
:root[data-variant="glass"] #project-view .editor-save {
  position: static;
  background: none;
  padding: 0;
  margin-top: 24px;
}
:root[data-variant="glass"] #project-view .editor-save .primary {
  min-height: 52px;
  border-radius: 26px;
  padding: 7px 8px 7px 20px;
  background: var(--eb-ink);
  color: var(--eb-paper) !important;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 750;
}
:root[data-variant="glass"] #project-view .editor-save .primary > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--eb-gradient);
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}
:root[data-variant="glass"] #project-view .editor-look-preview {
  background: #17141e;
  border: 0;
  box-shadow: none;
  border-radius: 13px;
  margin: 22px auto;
}
:root[data-variant="glass"] #project-view .editor-look-preview .look-label {
  background: #17141ee8;
  border-radius: 7px;
  color: #d9d3e2;
  font-family: var(--er-font-ui, system-ui, sans-serif);
  font-size: 10px;
  letter-spacing: 0;
  padding: 7px 9px;
}
:root[data-variant="glass"]
  #project-view
  :is(.word-modes, .color-tuning, .editorial-draft) {
  background: var(--eb-control);
  color: var(--eb-ink);
  border: 0;
  box-shadow: none;
  border-radius: 16px;
}
:root[data-variant="glass"] #project-view .color-tuning {
  padding: 0 13px 10px;
  margin-top: 18px;
}
:root[data-variant="glass"]
  #project-view
  :is(.color-tuning, .manual-cards, .editorial-draft)
  summary {
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  min-height: 47px;
  line-height: 1.35;
  padding: 15px 0;
  cursor: pointer;
}
:root[data-variant="glass"] #project-view .range-label {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
}
:root[data-variant="glass"] #project-view .words-header {
  margin-top: 16px;
  gap: 8px;
}
:root[data-variant="glass"] #project-view .words-header h3 {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}
:root[data-variant="glass"] #project-view .words-help {
  font-size: 13px;
  line-height: 1.5;
  margin: 5px 0 13px;
  color: var(--eb-muted);
}
:root[data-variant="glass"] #project-view .word-modes {
  padding: 4px;
  gap: 4px;
}
:root[data-variant="glass"] #project-view .word-modes button {
  min-height: 42px;
  padding: 10px 9px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  border-radius: 12px;
  color: var(--eb-muted);
}
:root[data-variant="glass"]
  #project-view
  .word-modes
  button[aria-pressed="true"] {
  background: var(--eb-paper);
  color: var(--eb-ink);
}
:root[data-variant="glass"] #project-view .words {
  gap: 7px;
  padding: 2px;
  max-height: 250px;
}
:root[data-variant="glass"] #project-view .word {
  border: 0;
  background: var(--eb-control);
  color: var(--eb-ink);
  border-radius: 10px;
  min-height: 43px;
  padding: 9px 10px;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
:root[data-variant="glass"] #project-view .word.removed {
  background: var(--eb-soft-pink);
  color: var(--eb-on-pink);
}
:root[data-variant="glass"] #project-view .word.auto-removed {
  background: var(--eb-control-hover);
  color: var(--eb-muted);
}
:root[data-variant="glass"] #project-view .word-state {
  background: var(--eb-paper);
  color: inherit;
  font-size: 9px;
  font-weight: 650;
  border-radius: 5px;
  padding: 3px 4px;
}
:root[data-variant="glass"] #project-view .word.edited:not(.removed) {
  background: var(--eb-soft-pink);
  color: var(--eb-on-pink);
}
:root[data-variant="glass"] #project-view #edit-summary {
  font-size: 12px;
  line-height: 1.4;
  color: var(--eb-muted);
  margin-top: 14px;
}
:root[data-variant="glass"]
  #project-view
  :is(.caption-save-style, .draft-apply, .retry-project) {
  min-height: 44px;
  padding: 12px 15px;
  border: 0;
  border-radius: 22px;
  background: var(--eb-control);
  color: var(--eb-ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 650;
  box-shadow: none;
}
:root[data-variant="glass"]
  #project-view
  :is(.manual-card-row, .editorial-draft) {
  background: var(--eb-control);
  color: var(--eb-ink);
  border: 0;
  border-radius: 13px;
  padding: 13px;
}
:root[data-variant="glass"]
  #project-view
  :is(.manual-card-row, .editorial-draft)
  p {
  font-size: 13px;
  line-height: 1.5;
}
:root[data-variant="glass"]
  #project-view
  :is(.project-warnings, .inline-error) {
  border: 0;
  box-shadow: none;
  border-radius: 14px;
  font-family: var(--er-font-ui, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.5;
  padding: 13px 15px;
}
:root[data-variant="glass"] #project-view .project-warnings {
  background: var(--eb-control);
  color: var(--eb-muted);
}
/* Caption controls share the same opaque wells and clear type. Rendered video text is excluded. */
:root[data-variant="glass"] .caption-controls {
  font-family: var(--er-font-ui, system-ui, sans-serif);
  color: var(--eb-ink);
  margin-top: 21px;
}
:root[data-variant="glass"] .caption-controls .caption-control-label {
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 20px 0 10px;
  color: var(--eb-ink);
}
:root[data-variant="glass"]
  .caption-controls
  > .caption-control-label:first-child {
  margin-top: 0;
}
:root[data-variant="glass"] .caption-controls .er-select-trigger {
  background: var(--eb-control);
  color: var(--eb-ink);
  min-height: 47px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border-radius: 13px;
  padding: 12px 13px;
  border: 0;
  box-shadow: none;
}
:root[data-variant="glass"]
  .caption-controls
  .er-select-trigger[aria-expanded="true"] {
  background: var(--eb-control-hover);
}
:root[data-variant="glass"] .caption-color-pair {
  gap: 17px;
  margin-top: 3px;
}
:root[data-variant="glass"] .caption-controls .caption-palette {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
:root[data-variant="glass"] .caption-controls .caption-swatch {
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  font-size: 11px;
  box-shadow: none;
}
:root[data-variant="glass"] .caption-controls .caption-swatch[data-color=""] {
  grid-column: span 1;
  background: var(--eb-control);
  color: var(--eb-ink);
}
:root[data-variant="glass"]
  .caption-controls
  .caption-swatch[aria-pressed="true"]::after {
  border-radius: 50%;
  width: 17px;
  height: 17px;
  right: 3px;
  bottom: 3px;
  background: #25212d;
  color: #fff;
  font-size: 10px;
}
:root[data-variant="glass"]
  .caption-controls
  .caption-swatch[data-color=""][aria-pressed="true"]::after {
  right: 3px;
  bottom: 3px;
}
:root[data-variant="glass"] .caption-controls .caption-hex-row {
  padding-left: 10px;
  gap: 7px;
  min-height: 44px;
  border-radius: 12px;
  background: var(--eb-control);
}
:root[data-variant="glass"] .caption-controls .caption-hex-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--eb-muted);
}
:root[data-variant="glass"]
  .caption-controls
  .caption-hex-row
  input[type="text"] {
  min-height: 44px;
  height: 44px;
  padding: 8px 7px 8px 0;
  background: transparent;
  color: var(--eb-ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
  border: 0;
  box-shadow: none;
}
:root[data-variant="glass"] .caption-controls .caption-advanced {
  margin-top: 19px;
  background: var(--eb-control);
  border-radius: 16px;
  padding: 0 13px 14px;
}
:root[data-variant="glass"] .caption-controls .caption-advanced:not([open]) {
  padding-bottom: 0;
}
:root[data-variant="glass"] .caption-controls .caption-advanced > summary {
  min-height: 49px;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--eb-ink);
  font-family: inherit;
}
:root[data-variant="glass"] .caption-controls .caption-style-grid {
  gap: 8px;
}
:root[data-variant="glass"] .caption-controls .caption-style-choice {
  padding: 4px;
  border-radius: 12px;
  background: var(--eb-paper);
  color: var(--eb-ink);
  border: 0;
  box-shadow: none;
}
:root[data-variant="glass"]
  .caption-controls
  .caption-style-choice[aria-pressed="true"] {
  background: var(--eb-selected);
  color: var(--eb-on-selected);
}
:root[data-variant="glass"] .caption-controls .caption-style-sample {
  height: 58px;
  background: #24202d;
  border-radius: 9px;
  font-size: 12px;
}
:root[data-variant="glass"] .caption-controls .caption-style-name {
  min-height: 34px;
  padding: 7px 3px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}
:root[data-variant="glass"] .caption-controls .caption-positions {
  padding: 4px;
  gap: 4px;
  background: var(--eb-paper);
  border-radius: 19px;
}
:root[data-variant="glass"] .caption-controls .caption-positions button {
  min-height: 39px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--eb-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 5px;
}
:root[data-variant="glass"]
  .caption-controls
  .caption-positions
  button[aria-pressed="true"] {
  background: var(--eb-selected);
  color: var(--eb-on-selected);
}
:root[data-variant="glass"] .caption-controls .caption-presets {
  gap: 8px;
  margin-top: 19px;
}
:root[data-variant="glass"]
  .caption-controls
  .caption-presets
  .er-select-trigger {
  min-height: 43px;
  border-radius: 22px;
  padding: 11px 12px;
  font-size: 12px;
  background: var(--eb-control);
}
:root[data-variant="glass"] .caption-controls .caption-save-style {
  min-height: 43px;
  border: 0;
  border-radius: 22px;
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 650;
  background: var(--eb-control);
  color: var(--eb-ink);
}
:root[data-variant="glass"] .caption-controls .caption-delete-style {
  min-height: 40px;
  border-radius: 20px;
  background: var(--eb-soft-pink);
  color: var(--eb-on-pink);
  font-size: 12px;
}
:root[data-variant="glass"] .caption-controls .caption-status {
  font-size: 12px;
  line-height: 1.45;
  color: var(--eb-muted);
}
/* Portal menus deliberately use opaque text planes, not the rejected glass glow. */
:root[data-variant="glass"] .er-select-popup {
  background: var(--eb-paper);
  background-image: none;
  color: var(--eb-ink);
  border: 0;
  border-radius: 18px;
  padding: 8px;
  gap: 8px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 12px 36px #160c2529;
  font-family: var(--er-font-ui, system-ui, sans-serif);
}
:root[data-variant="glass"] .er-select-popup .er-select-option {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  min-height: 46px;
  padding: 12px 13px;
  border-radius: 11px;
  color: var(--eb-ink);
  background: transparent;
}
:root[data-variant="glass"]
  .er-select-popup
  .er-select-option[aria-selected="true"] {
  background: var(--eb-control);
  color: var(--eb-ink);
}
:root[data-variant="glass"] .er-select-popup .er-select-option.is-active {
  background: var(--eb-selected);
  color: var(--eb-on-selected);
}
/* Own-media disclosure: a compact neutral card, never a competing hero. */
:root[data-variant="glass"] .insert-details {
  background: var(--eb-control);
  color: var(--eb-ink);
  border: 0;
  border-radius: 16px;
  margin: 17px 0;
  padding: 0 13px;
  font-family: var(--er-font-ui, system-ui, sans-serif);
  box-shadow: none;
}
:root[data-variant="glass"] .insert-details summary {
  min-height: 50px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 650;
  gap: 8px;
}
:root[data-variant="glass"] .insert-details .insert-count {
  background: var(--eb-paper);
  color: var(--eb-muted);
  font-size: 11px;
  border-radius: 10px;
  padding: 3px 7px;
}
:root[data-variant="glass"] .insert-details .insert-body {
  gap: 12px;
  padding: 0 0 14px;
}
:root[data-variant="glass"] .insert-details .insert-item {
  background: var(--eb-paper);
  color: var(--eb-ink);
  border-radius: 14px;
  padding: 13px;
  gap: 12px;
}
:root[data-variant="glass"] .insert-details .insert-head {
  gap: 11px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}
:root[data-variant="glass"] .insert-details .insert-head :is(video, img) {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--eb-stage);
}
:root[data-variant="glass"] .insert-details .insert-head strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}
:root[data-variant="glass"] .insert-details .insert-head .insert-remove {
  min-width: 40px;
  min-height: 40px;
  background: var(--eb-control);
  color: var(--eb-muted);
  font-size: 18px;
  border-radius: 50%;
  padding: 7px;
}
:root[data-variant="glass"] .insert-details .insert-field label {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}
:root[data-variant="glass"] .insert-details .insert-options {
  gap: 10px;
}
:root[data-variant="glass"] .insert-details .er-select-trigger {
  min-height: 44px;
  padding: 11px 10px;
  font-size: 12px;
  border-radius: 12px;
  background: var(--eb-control);
  color: var(--eb-ink);
  border: 0;
  box-shadow: none;
}
:root[data-variant="glass"] .insert-details .insert-add {
  min-height: 45px;
  padding: 12px 15px;
  background: var(--eb-selected);
  color: var(--eb-on-selected);
  border-radius: 23px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
:root[data-variant="glass"] .insert-details .insert-feedback {
  font-size: 12px;
  line-height: 1.4;
  color: var(--eb-muted);
}
/* Full-screen live editor. Exported elements retain their authoritative geometry. */
:root[data-variant="glass"] dialog.canvas-editor {
  background: var(--eb-bg);
  color: var(--eb-ink);
  background-image: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: 0;
}
:root[data-variant="glass"] .canvas-editor .ce-header {
  background: var(--eb-bg);
  background-image: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: calc(16px + env(safe-area-inset-top)) 28px 15px;
  gap: 20px;
}
:root[data-variant="glass"] .canvas-editor .ce-header h2 {
  font-family: var(--er-font-ui, system-ui, sans-serif);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 780;
  letter-spacing: -0.7px;
}
:root[data-variant="glass"] .canvas-editor .ce-header p {
  font-family: var(--er-font-ui, system-ui, sans-serif);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 450;
  color: var(--eb-muted);
  margin-top: 5px;
}
:root[data-variant="glass"] .canvas-editor #ce-close {
  font-family: var(--er-font-ui, system-ui, sans-serif);
  min-height: 42px;
  padding: 11px 16px;
  border: 0;
  border-radius: 22px;
  background: var(--eb-paper);
  color: var(--eb-ink);
  font-size: 14px;
  font-weight: 650;
  box-shadow: var(--eb-shadow);
}
:root[data-variant="glass"] .canvas-editor .ce-layout {
  grid-template-columns: minmax(330px, 1fr) minmax(350px, 0.94fr);
  max-width: 1130px;
  gap: 24px;
  padding: 12px 28px calc(28px + env(safe-area-inset-bottom));
}
:root[data-variant="glass"] .canvas-editor .ce-view {
  background: var(--eb-stage);
  border-radius: 26px;
  padding: 20px;
  top: 101px;
  overflow: hidden;
}
:root[data-variant="glass"] .canvas-editor .ce-frame {
  width: min(100%, 35svh, 350px);
  aspect-ratio: 9/16;
  border-radius: 12px;
  box-shadow: none;
  border: 0;
  background: #09080d;
}
:root[data-variant="glass"] .canvas-editor .ce-transport {
  gap: 12px;
  margin: 14px auto 0;
}
:root[data-variant="glass"] .canvas-editor #ce-play {
  background: #ffffff14;
  color: #fff;
  min-width: 43px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  font-size: 23px;
}
:root[data-variant="glass"] .canvas-editor .ce-transport output {
  font-family: var(--er-font-ui, system-ui, sans-serif);
  font-size: 12px;
  font-weight: 450;
  color: var(--eb-stage-muted);
}
:root[data-variant="glass"] .canvas-editor .ce-transport input {
  accent-color: #f52777;
}
:root[data-variant="glass"] .canvas-editor .ce-tools {
  font-family: var(--er-font-ui, system-ui, sans-serif);
  background: var(--eb-paper);
  background-image: none;
  color: var(--eb-ink);
  padding: 24px;
  border: 0;
  border-radius: 25px;
  box-shadow: var(--eb-shadow);
  min-width: 0;
}
:root[data-variant="glass"] .canvas-editor .ce-tools-heading h3 {
  font-family: inherit;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.4px;
  line-height: 1.25;
}
:root[data-variant="glass"] .canvas-editor #ce-undo {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--eb-muted);
  min-height: 42px;
  padding: 10px 0 10px 10px;
}
:root[data-variant="glass"] .canvas-editor .ce-hint {
  font-family: inherit;
  font-size: 14px;
  font-weight: 450;
  color: var(--eb-muted);
  line-height: 1.45;
  margin: 7px 0 18px;
}
:root[data-variant="glass"] .canvas-editor .ce-add {
  margin: 13px 0 19px;
}
:root[data-variant="glass"] .canvas-editor #ce-add-toggle {
  min-width: 130px;
  min-height: 44px;
  border: 0;
  border-radius: 23px;
  padding: 12px 17px;
  background: var(--eb-control);
  color: var(--eb-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 650;
}
:root[data-variant="glass"] .canvas-editor .ce-add-menu {
  top: 51px;
  left: 0;
  padding: 8px;
  gap: 8px;
  border: 0;
  border-radius: 17px;
  background: var(--eb-paper);
  color: var(--eb-ink);
  box-shadow: 0 10px 30px #170e2524;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-variant="glass"] .canvas-editor .ce-add-menu button {
  min-height: 47px;
  border: 0;
  border-radius: 11px;
  padding: 12px 14px;
  background: var(--eb-control);
  color: var(--eb-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 550;
}
:root[data-variant="glass"] .canvas-editor .ce-selection {
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
  line-height: 1.4;
  color: var(--eb-ink);
  margin: 18px 0 13px;
}
:root[data-variant="glass"] .canvas-editor :is(.control-label, #ce-text-label) {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 14px 0 8px;
  color: var(--eb-ink);
}
:root[data-variant="glass"] .canvas-editor #ce-text {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  background: var(--eb-control);
  color: var(--eb-ink);
  padding: 12px 13px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: none;
}
:root[data-variant="glass"] .canvas-editor .ce-card-kinds {
  padding: 4px;
  gap: 4px;
  border-radius: 18px;
  background: var(--eb-control);
  margin: 12px 0;
}
:root[data-variant="glass"] .canvas-editor .ce-card-kinds button {
  min-height: 38px;
  padding: 9px 6px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--eb-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}
:root[data-variant="glass"]
  .canvas-editor
  .ce-card-kinds
  button[aria-pressed="true"] {
  background: var(--eb-selected);
  color: var(--eb-on-selected);
}
:root[data-variant="glass"] .canvas-editor .ce-selection-actions {
  gap: 8px;
  margin: 14px 0;
}
:root[data-variant="glass"] .canvas-editor .ce-selection-actions button {
  min-height: 43px;
  border: 0;
  border-radius: 22px;
  padding: 11px 13px;
  background: var(--eb-control);
  color: var(--eb-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}
:root[data-variant="glass"] .canvas-editor #ce-remove {
  background: var(--eb-soft-pink);
  color: var(--eb-on-pink);
}
:root[data-variant="glass"] .canvas-editor .ce-timeline {
  margin-top: 24px;
}
:root[data-variant="glass"] .canvas-editor .ce-track-row {
  gap: 11px;
  margin-bottom: 10px;
}
:root[data-variant="glass"] .canvas-editor .ce-track-label {
  flex-basis: 45px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--eb-muted);
}
:root[data-variant="glass"] .canvas-editor .ce-track {
  height: 48px;
  background: var(--eb-control);
  border-radius: 11px;
}
:root[data-variant="glass"] .canvas-editor .ce-block {
  top: 4px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 10px 9px;
  background: var(--eb-control-hover);
  color: var(--eb-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}
:root[data-variant="glass"] .canvas-editor .ce-block[data-ce-key="caption"] {
  background: var(--eb-selected);
  color: var(--eb-on-selected);
}
:root[data-variant="glass"] .canvas-editor .ce-block[data-ce-key^="card-"] {
  background: var(--eb-soft-pink);
  color: var(--eb-on-pink);
}
:root[data-variant="glass"] .canvas-editor .ce-block[aria-pressed="true"] {
  background: var(--eb-selected);
  color: var(--eb-on-selected);
}
:root[data-variant="glass"] .canvas-editor .ce-key-hint {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  color: var(--eb-muted);
  margin: 15px 0 0;
}
:root[data-variant="glass"] .canvas-editor .ce-save {
  margin-top: 24px;
}
:root[data-variant="glass"] .canvas-editor #ce-save {
  position: relative;
  min-height: 54px;
  border: 0;
  border-radius: 28px;
  padding: 15px 60px 15px 20px;
  background: var(--eb-ink);
  color: var(--eb-paper) !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  box-shadow: none;
}
:root[data-variant="glass"] .canvas-editor #ce-save::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 35px;
  height: 35px;
  transform: translateY(-50%);
  background: var(--eb-gradient);
  border-radius: 50%;
}
:root[data-variant="glass"] .canvas-editor :is(.ce-loading, #ce-upload-status) {
  font-family: var(--er-font-ui, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--eb-muted);
}
:root[data-variant="glass"] .canvas-editor .ce-error {
  font-family: var(--er-font-ui, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}
/* Focus is a filled state, never an underline, halo, or field outline. */
:root[data-variant="glass"]
  #project-view
  :is(button, input[type="text"], summary):focus-visible,
:root[data-variant="glass"]
  .caption-controls
  :is(button, input, summary):focus-visible,
:root[data-variant="glass"]
  .insert-details
  :is(button, input, summary):focus-visible,
:root[data-variant="glass"]
  .canvas-editor
  .ce-tools
  :is(button, input):focus-visible,
:root[data-variant="glass"] .canvas-editor #ce-close:focus-visible {
  outline: none;
  box-shadow: none;
  background: var(--eb-focus);
  color: var(--eb-on-focus) !important;
}
:root[data-variant="glass"] #project-view #download:focus-visible {
  background: #f7d8e8;
  color: #40152c !important;
  outline: none;
  box-shadow: none;
}
:root[data-variant="glass"] .canvas-editor #ce-play:focus-visible {
  background: #f7d8e8;
  color: #40152c;
  outline: none;
  box-shadow: none;
}
:root[data-variant="glass"] .er-select-popup .er-select-option:focus-visible {
  background: var(--eb-selected);
  color: var(--eb-on-selected);
  outline: none;
  box-shadow: none;
}
@media (max-width: 850px) {
  :root[data-variant="glass"] #project-view .editor-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  :root[data-variant="glass"] #project-view .player-wrap {
    position: static;
  }
  :root[data-variant="glass"] .canvas-editor .ce-layout {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-view {
    position: static;
  }
}
@media (max-width: 640px) {
  :root[data-variant="glass"] #project-view {
    padding-top: 0;
  }
  :root[data-variant="glass"] #project-view .project-heading {
    padding-top: 22px;
    margin: 0 0 19px;
    align-items: flex-start;
    gap: 12px;
  }
  :root[data-variant="glass"] #project-view .project-heading h1 {
    font-size: 25px;
    line-height: 1.2;
    font-weight: 780;
    letter-spacing: -0.7px;
    margin: 0;
    max-width: 245px;
  }
  :root[data-variant="glass"] #project-view .project-heading .status-pill {
    margin-top: 2px;
    max-width: 90px;
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1.3;
  }
  :root[data-variant="glass"] #project-view .player-wrap {
    padding: 14px;
    border-radius: 24px;
  }
  :root[data-variant="glass"] #project-view .player-wrap #player {
    width: min(100%, 29.25svh, 270px);
    border-radius: 11px;
  }
  :root[data-variant="glass"] #project-view .player-wrap #video-info {
    margin-top: 10px;
    font-size: 11px !important;
  }
  :root[data-variant="glass"] #project-view .player-wrap #download {
    margin-top: 12px;
    min-height: 46px;
    font-size: 14px;
    padding: 5px 6px 5px 17px;
  }
  :root[data-variant="glass"] #project-view .player-wrap #download > span {
    min-width: 34px;
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  :root[data-variant="glass"] #project-view .edit-panel {
    padding: 20px;
    border-radius: 24px;
  }
  :root[data-variant="glass"] #project-view .canvas-open-button {
    font-size: 16px;
    min-height: 52px;
    margin-bottom: 24px;
  }
  :root[data-variant="glass"] #project-view .editor-panel-heading h2 {
    font-size: 22px;
  }
  :root[data-variant="glass"] #project-view .editor-quick-actions {
    gap: 8px;
    margin-bottom: 17px;
  }
  :root[data-variant="glass"] #project-view .editor-quick-actions .edit-check {
    font-size: 13px;
  }
  :root[data-variant="glass"] #project-view #editor-cut-shortcut {
    font-size: 11px;
    max-width: 175px;
    padding: 10px 11px;
  }
  :root[data-variant="glass"] #project-view .editor-tabs {
    gap: 3px;
    padding: 4px;
    margin-bottom: 22px;
    border-radius: 21px;
  }
  :root[data-variant="glass"] #project-view .editor-tabs button {
    font-size: 11px;
    padding: 10px 3px;
    min-height: 38px;
    border-radius: 17px;
  }
  :root[data-variant="glass"]
    #project-view
    :is(input[type="text"], .er-select-trigger) {
    font-size: 16px;
    min-height: 47px;
    border-radius: 13px;
  }
  :root[data-variant="glass"] .caption-color-pair {
    gap: 13px;
  }
  :root[data-variant="glass"] .caption-controls .caption-control-label {
    font-size: 13px;
    line-height: 1.3;
    margin-top: 18px;
  }
  :root[data-variant="glass"] .caption-controls .caption-palette {
    gap: 6px;
  }
  :root[data-variant="glass"] .caption-controls .caption-swatch {
    height: 39px;
    min-height: 39px;
    border-radius: 10px;
  }
  :root[data-variant="glass"]
    .caption-controls
    .caption-hex-row
    input[type="text"] {
    font-size: 14px;
    min-height: 44px;
    height: 44px;
  }
  :root[data-variant="glass"] .caption-controls .caption-advanced {
    padding: 0 11px 13px;
    border-radius: 16px;
  }
  :root[data-variant="glass"] .caption-controls .caption-advanced:not([open]) {
    padding-bottom: 0;
  }
  :root[data-variant="glass"] .caption-controls .caption-advanced > summary {
    font-size: 13px;
    line-height: 1.4;
    padding: 15px 0;
  }
  :root[data-variant="glass"] .caption-controls .caption-style-grid {
    gap: 6px;
  }
  :root[data-variant="glass"] .caption-controls .caption-style-name {
    font-size: 9px;
    padding: 6px 1px;
    gap: 2px;
  }
  :root[data-variant="glass"] .caption-controls .caption-style-sample {
    height: 54px;
    font-size: 10px;
  }
  :root[data-variant="glass"]
    .caption-controls
    .caption-presets
    .er-select-trigger {
    font-size: 12px;
    min-height: 43px;
  }
  :root[data-variant="glass"] .caption-controls .caption-save-style {
    font-size: 12px;
    padding: 11px 12px;
  }
  :root[data-variant="glass"] .caption-controls .caption-positions button {
    font-size: 11px;
  }
  :root[data-variant="glass"] .insert-details {
    padding: 0 12px;
  }
  :root[data-variant="glass"] .insert-details .insert-head {
    font-size: 13px;
    gap: 9px;
  }
  :root[data-variant="glass"] .insert-details .insert-head strong {
    font-size: 13px;
  }
  :root[data-variant="glass"] .insert-details .insert-options {
    gap: 8px;
  }
  :root[data-variant="glass"] .insert-details .er-select-trigger {
    font-size: 12px;
    padding: 11px 10px;
    min-height: 44px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-header {
    padding: calc(14px + env(safe-area-inset-top)) 18px 13px;
    gap: 15px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-header h2 {
    font-size: 21px;
    letter-spacing: -0.5px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-header p {
    font-size: 11px;
    max-width: 63vw;
  }
  :root[data-variant="glass"] .canvas-editor #ce-close {
    font-size: 13px;
    min-height: 40px;
    padding: 10px 14px;
    min-width: 75px;
    border-radius: 21px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-layout {
    display: flex;
    flex-direction: column;
    gap: 19px;
    padding: 6px 16px calc(24px + env(safe-area-inset-bottom));
  }
  :root[data-variant="glass"] .canvas-editor .ce-view {
    padding: 15px 14px;
    border-radius: 24px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-frame {
    width: min(100%, 24.75svh, 270px);
    border-radius: 11px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-transport {
    gap: 11px;
    margin-top: 13px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-transport output {
    font-size: 11px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-tools {
    padding: 20px;
    border-radius: 24px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-tools-heading h3 {
    font-size: 20px;
    font-weight: 750;
  }
  :root[data-variant="glass"] .canvas-editor #ce-undo {
    font-size: 12px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-hint {
    font-size: 13px;
    line-height: 1.5;
  }
  :root[data-variant="glass"] .canvas-editor #ce-add-toggle {
    min-height: 43px;
    font-size: 13px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-selection {
    font-size: 14px;
    line-height: 1.4;
  }
  :root[data-variant="glass"] .canvas-editor #ce-text {
    font-size: 16px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-card-kinds button {
    font-size: 12px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-track-label {
    font-size: 10px;
    flex-basis: 42px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-track-row {
    gap: 8px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-block {
    font-size: 11px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-selection-actions button {
    font-size: 12px;
    padding: 11px;
  }
  :root[data-variant="glass"] .canvas-editor #ce-save {
    font-size: 16px;
    min-height: 54px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-variant="glass"] #project-view *,
  :root[data-variant="glass"] .canvas-editor *,
  :root[data-variant="glass"] .caption-controls * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* Verified reference typography: display face on the three principal headings only. */
:root[data-variant="glass"] #project-view .project-heading h1,
:root[data-variant="glass"] #project-view .editor-panel-heading h2,
:root[data-variant="glass"] .canvas-editor .ce-header h2 {
  font-family: var(--er-font-display, var(--er-font-ui, system-ui, sans-serif));
}
/* The actual tracks live immediately after the player in DOM order. */
:root[data-variant="glass"] .canvas-editor .ce-view .ce-timeline {
  margin-top: 18px;
}
:root[data-variant="glass"] .canvas-editor .ce-view .ce-track-row {
  gap: 9px;
  margin-bottom: 8px;
}
:root[data-variant="glass"] .canvas-editor .ce-view .ce-track-label {
  flex-basis: 43px;
  color: var(--eb-stage-muted);
  font-size: 10px;
  font-weight: 550;
}
:root[data-variant="glass"] .canvas-editor .ce-view .ce-track {
  height: 40px;
  border-radius: 9px;
  background: #ffffff10;
}
:root[data-variant="glass"] .canvas-editor .ce-view .ce-track::after {
  background: #f52777;
  opacity: 0.9;
}
:root[data-variant="glass"] .canvas-editor .ce-view .ce-block {
  top: 3px;
  height: 34px;
  padding: 8px;
  border-radius: 7px;
  background: #393141;
  color: #f1eaf8;
  font-size: 11px;
}
:root[data-variant="glass"]
  .canvas-editor
  .ce-view
  .ce-block[data-ce-key="caption"] {
  background: #eee7f5;
  color: #28212f;
}
:root[data-variant="glass"]
  .canvas-editor
  .ce-view
  .ce-block[data-ce-key^="card-"] {
  background: #4b273b;
  color: #ffd2e9;
}
:root[data-variant="glass"]
  .canvas-editor
  .ce-view
  .ce-block[aria-pressed="true"] {
  background: #f4dfec;
  color: #4e1f3a;
}
:root[data-variant="glass"] .canvas-editor .ce-view .ce-block:focus-visible {
  background: #f4dfec;
  color: #4e1f3a;
  outline: none;
  box-shadow: none;
}
:root[data-variant="glass"] .canvas-editor .ce-tools-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
:root[data-variant="glass"] .canvas-editor .ce-tools-heading h3 {
  flex: 1;
  min-width: 0;
}
:root[data-variant="glass"] .canvas-editor .ce-tools-heading .ce-add {
  margin: 0;
  flex-shrink: 0;
}
:root[data-variant="glass"] .canvas-editor .ce-tools-heading #ce-add-toggle {
  min-width: 0;
  white-space: nowrap;
}
:root[data-variant="glass"] .canvas-editor .ce-tools-heading .ce-add-menu {
  top: 48px;
  left: auto;
  right: 0;
}
:root[data-variant="glass"] .canvas-editor .ce-tools-heading #ce-undo {
  padding-left: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  :root[data-variant="glass"] .canvas-editor .ce-tools {
    padding: 0;
    background: transparent;
    background-image: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
  }
  :root[data-variant="glass"] .canvas-editor .ce-tools-heading {
    gap: 9px;
    min-height: 42px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-tools-heading h3 {
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.3px;
    font-weight: 700;
  }
  :root[data-variant="glass"] .canvas-editor .ce-tools-heading #ce-add-toggle {
    font-size: 12px;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 21px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-tools-heading #ce-undo {
    font-size: 11px;
    min-height: 40px;
    padding: 9px 0;
  }
  :root[data-variant="glass"] .canvas-editor :is(.ce-hint, .ce-key-hint) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    margin: 0;
    padding: 0;
  }
  :root[data-variant="glass"] .canvas-editor .ce-view .ce-timeline {
    margin-top: 17px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-view .ce-track-row:last-child {
    margin-bottom: 0;
  }
  :root[data-variant="glass"] .canvas-editor .ce-view .ce-track-label {
    font-size: 9px;
    flex-basis: 39px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-view .ce-block {
    font-size: 10px;
  }
  :root[data-variant="glass"] .canvas-editor .ce-selection {
    font-size: 14px;
    margin: 17px 0 12px;
    line-height: 1.4;
  }
  :root[data-variant="glass"] .canvas-editor .ce-save {
    margin-top: 20px;
  }
}
:root[data-variant="glass"] .canvas-editor .ce-header > div {
  min-width: 0;
  flex: 1;
}
:root[data-variant="glass"] .canvas-editor .ce-header p {
  max-width: 100%;
}
:root[data-variant="glass"] .canvas-editor #ce-close {
  flex-shrink: 0;
}
