.live-operator,
.live-view {
  --live-ink: var(--cm-ink, #123948);
  --live-muted: var(--cm-muted, #536b76);
  --live-line: var(--cm-border, #dfe7e9);
  --live-primary: var(--cm-primary, #003b4d);
  --live-surface: #fff;
  --live-soft: #f4f7f7;
  color: var(--live-ink);
}
.live-operator [hidden],
.live-view [hidden] { display: none !important; }
.live-page { padding-top: clamp(14px, 2.2vw, 26px); }
.live-operator { max-width: 1320px; margin: 0 auto; }
.live-operator .editor-library {
  --ed-ink: var(--live-ink);
  --ed-border: var(--live-line);
  --ed-muted: var(--live-muted);
  --ed-primary: var(--live-primary);
  --ed-subtle: var(--live-soft);
}
.live-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.live-head h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.036em; margin: .4rem 0 0; overflow-wrap: anywhere; }
.live-head-actions { display: flex; align-items: center; flex: 0 0 auto; flex-wrap: wrap; gap: .5rem; }
.live-head .live-kicker { margin-top: .9rem; }
.live-kicker { color: var(--live-muted); font-size: .74rem; font-weight: 750; letter-spacing: .115em; text-transform: uppercase; }
.live-pill { align-self: center; flex: none; display: inline-flex; gap: .42rem; align-items: center; max-width: 13rem; border: 1px solid var(--live-line); border-radius: 100px; background: var(--live-surface); color: var(--live-muted); padding: .34rem .68rem; font-size: .84rem; font-weight: 750; }
.live-pill::before { content: ''; width: .47rem; height: .47rem; border-radius: 50%; background: currentColor; flex: none; }
.live-pill[data-live="true"] { color: #116747; border-color: #b3dfca; background: #effaf4; }
.live-panel { background: var(--live-surface); border: 1px solid var(--live-line); border-radius: .95rem; padding: 1.12rem; box-shadow: 0 1px 1px #172c3410; min-width: 0; }
.live-panel h2 { font-size: 1.05rem; margin: 0 0 .65rem; }
.live-prep { margin-top: .9rem; padding: clamp(1rem, 3vw, 1.6rem); }
.live-prep p { max-width: 54ch; }
.live-prep p + p { margin-top: .38rem; }
.live-active { display: grid; gap: .9rem; margin-top: .9rem; }
.live-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.live-monitor { display: grid; align-content: start; }
.live-monitor > p { overflow-wrap: anywhere; margin: .54rem 0 0; }
.live-muted { color: var(--live-muted); font-size: .92rem; line-height: 1.5; }
.live-frame { width: 100%; isolation: isolate; min-width: 0; overflow: hidden; border-radius: .46rem; background: #111b21; color: #c6d0d4; aspect-ratio: var(--live-ratio, 16/9); display: grid; place-items: center; }
.live-monitor-empty { font-size: .86rem; text-align: center; padding: .5rem; }
.live-control-grid .live-frame .slide-stage { border-radius: 0; }
.live-operator-note { border-left: .22rem solid #ba5928; background: #fff3e9; color: #673416; border-radius: .24rem; font-size: .88rem; line-height: 1.5; padding: .4rem .53rem; white-space: pre-wrap; }
.live-controls {
  position: sticky; top: 58px; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem 1.15rem; padding: .64rem .8rem; flex-wrap: wrap;
  box-shadow: 0 3px 12px #142e3711;
}
.live-core-actions {
  display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(10rem, 1.45fr) minmax(7rem, 1fr);
  align-items: center; gap: .48rem;
}
.live-core-actions .live-btn { min-height: 44px; }
.live-core-actions .live-primary { min-height: 48px; font-size: 1rem; font-weight: 760; }
.live-actions { display: flex; align-items: center; gap: .48rem; flex-wrap: wrap; }
.live-btn { min-height: 2.45rem; border: 1px solid var(--live-line); border-radius: .5rem; background: var(--live-surface); color: var(--live-ink); display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .52rem .73rem; font: inherit; font-size: .9rem; font-weight: 680; line-height: 1.22; cursor: pointer; text-decoration: none; }
.live-btn:visited { color: var(--live-ink); }
.live-btn:hover { background: var(--live-soft); }
.live-btn:focus-visible, .live-field:focus-visible { outline: 2px solid #227c9a; outline-offset: 3px; }
.live-btn:disabled { cursor: default; opacity: .5; }
.live-primary, .live-primary:visited { background: var(--live-primary); border-color: transparent; color: #fff; }
.live-primary:hover:not(:disabled) { background: var(--live-primary); filter: brightness(1.16); }
.live-quiet { border: 0; background: transparent; padding: .2rem 0; min-height: 1.7rem; color: var(--live-muted); }
.live-quiet:hover { background: transparent; text-decoration: underline; }
.live-danger { color: #922e30; }
.live-danger:hover { color: #792223; background: #fff2f2; border-color: #ebc9c9; }
.live-btn[aria-pressed="true"] { color: #fff; background: #263740; border-color: #263740; }
.live-field { display: block; min-height: 2.45rem; padding: .47rem .57rem; border-radius: .48rem; border: 1px solid var(--live-line); background: var(--live-soft); color: var(--live-ink); font: inherit; font-size: .9rem; }
.live-jump { flex: 1 1 22rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; position: relative; gap: .45rem; min-width: 0; max-width: 30rem; }
.live-jump-trigger { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .6rem; row-gap: .15rem; text-align: left; padding-block: .36rem; }
.live-jump-trigger::after { content: ''; grid-area: 1/2/3/3; width: .42rem; height: .42rem; margin: 0 .15rem .22rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.live-jump-trigger[aria-expanded="true"]::after { transform: rotate(225deg); margin-bottom: -.2rem; }
.live-jump-summary { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--live-muted); font-size: .77rem; font-weight: 500; }
.live-jump-gallery { gap: .5rem; }
.live-jump-grid-icon { width: .82rem; height: .82rem; flex: none; border: 1px solid currentColor; border-radius: .14rem; background: linear-gradient(currentColor, currentColor) center/1px 100% no-repeat, linear-gradient(currentColor, currentColor) center/100% 1px no-repeat; }
.live-jump-dropdown { position: absolute; z-index: 8; inset-inline: 0; top: calc(100% + .33rem); background: var(--live-surface); border: 1px solid var(--live-line); border-radius: .65rem; box-shadow: 0 .55rem 1.5rem #001c3040; padding: .2rem; }
.live-jump-dropdown[data-above="true"] { top: auto; bottom: calc(100% + .33rem); }
.live-jump-choices { display: grid; align-content: start; gap: .26rem; padding: .24rem; overflow: auto; overscroll-behavior: contain; }
.live-jump-dropdown .live-jump-choices { max-height: min(22rem, 48dvh, var(--picker-list-height, 48dvh)); }
.live-jump-choice { display: grid; grid-template-columns: clamp(5rem, 13vw, 6rem) minmax(0, 1fr); align-items: center; gap: .55rem; padding: .3rem; min-width: 0; border: 1px solid transparent; border-radius: .46rem; background: var(--live-surface); color: var(--live-ink); font: inherit; text-align: left; cursor: pointer; }
.live-jump-choice:hover:not(:disabled), .live-jump-choice[aria-current="true"] { background: var(--live-soft); border-color: var(--live-line); }
.live-jump-choice[aria-current="true"] { box-shadow: inset 0 0 0 1px var(--live-muted); }
.live-jump-choice:focus-visible { outline: 2px solid #227c9a; outline-offset: 1px; }
.live-jump-choice:disabled { cursor: default; opacity: .55; }
.live-jump-preview { container-type: inline-size; display: grid; place-items: center; aspect-ratio: 16/9; min-width: 0; overflow: hidden; border-radius: .25rem; background: #17262b; box-shadow: 0 0 0 1px var(--live-line); }
.live-jump-preview .slide-stage { width: min(100%, calc(56.25cqw * var(--picker-ratio, 1.778))); pointer-events: none; }
.live-jump-meta { display: flex; align-items: center; gap: .4rem; min-width: 0; line-height: 1.22; }
.live-jump-number, .live-jump-current { flex: none; font-size: .71rem; font-weight: 750; padding: .22rem .32rem; background: var(--live-soft); border: 1px solid var(--live-line); color: var(--live-muted); border-radius: .28rem; }
.live-jump-number { min-width: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.live-jump-current { margin-inline-start: auto; background: var(--live-surface); color: var(--live-ink); }
.live-jump-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-width: 0; overflow: hidden; overflow-wrap: anywhere; font-size: .86rem; font-weight: 670; }
.live-shortcuts { margin: 0; font-size: .82rem; white-space: nowrap; }
.live-edition-link { justify-self: start; margin-top: .45rem; text-decoration: underline; text-underline-offset: .15em; }
.live-changes > p { margin: -.15rem 0 .7rem; }
.live-interlude { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; padding: .62rem .72rem; border-radius: .5rem; background: #fff4e6; border: 1px solid #e9c698; color: #643b1b; }
.live-interlude p { margin: 0; font-size: .9rem; font-weight: 700; overflow-wrap: anywhere; }
.live-edit-dialog { width: min(40rem, calc(100% - 1.4rem)); max-height: 90dvh; max-height: 90svh; padding: clamp(.9rem, 4vw, 1.35rem); border: 1px solid var(--live-line); border-radius: .9rem; background: var(--live-surface); color: var(--live-ink); box-shadow: 0 16px 64px #00283255; }
.live-edit-dialog::backdrop { background: #0a232a8f; }
.live-edit-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.live-edit-head h2 { margin: 0; font-size: clamp(1.18rem, 3.8vw, 1.55rem); }
.live-edit-dialog > .live-muted { margin: .42rem 0 .9rem; }
.live-jump-dialog { width: min(72rem, calc(100% - 1.4rem)); overflow: hidden; }
.live-jump-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.live-jump-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(8.5rem, 22vw, 12.3rem)), 1fr)); gap: .56rem; }
.live-jump-grid .live-jump-choice { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(2.1rem, auto); align-items: start; padding: .36rem; gap: .35rem; border-color: var(--live-line); }
.live-jump-grid .live-jump-meta { align-self: center; flex-wrap: wrap; }
.live-jump-grid .live-jump-title { flex: 1 1 4rem; }
.live-edit-body, .live-edit-form { display: grid; gap: .7rem; }
.live-edit-form > .live-btn { justify-self: start; }
.live-edit-field { display: grid; gap: .26rem; color: var(--live-muted); font-size: .87rem; font-weight: 700; }
.live-edit-field .live-field { width: 100%; }
.live-edit-field textarea { resize: vertical; }
.live-edit-choice { display: flex; align-items: start; gap: .44rem; font-size: .87rem; }
.live-edit-choice input { accent-color: var(--live-primary); margin-top: .15rem; }
.live-edit-body p, .live-edit-form p { margin: 0; }
.live-edit-frame { width: min(100%, 27rem, calc(36dvh * var(--live-ratio, 1.778))); max-width: 100%; justify-self: center; }
.live-edit-actions { justify-content: end; }
.live-edit-preview-nav { justify-content: center; }
.live-edit-status, .live-edit-warning { margin: .65rem 0 0; padding: .55rem .64rem; border-radius: .4rem; background: var(--live-soft); color: var(--live-muted); font-size: .86rem; }
.live-edit-status[data-error="true"], .live-edit-warning { background: #fff4e6; color: #643b1b; }
.live-edit-arrange {
  --arrange-pad: clamp(.9rem, 2vw, 1.5rem);
  width: min(77rem, calc(100% - 1.4rem));
  max-height: calc(100dvh - 1.4rem);
  padding: 0;
  overflow: hidden;
}
.live-edit-arrange[open] { display: grid; grid-template-rows: auto auto minmax(0,1fr) auto auto; }
.live-edit-arrange > .live-edit-head { padding: var(--arrange-pad) var(--arrange-pad) 0; }
.live-edit-arrange .live-btn { touch-action: manipulation; }
.live-edit-arrange > .live-muted { margin: .28rem var(--arrange-pad) .75rem; }
.live-edit-arrange > .live-edit-body { display: block; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.live-edit-arrange .live-edit-form {
  grid-template-columns: minmax(0,2.2fr) minmax(16rem,1fr);
  align-items: start; gap: 1.1rem;
  padding: .25rem var(--arrange-pad) var(--arrange-pad);
}
.live-arrange-preview { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.live-arrange-preview h3 { margin: 0; font-size: .94rem; }
.live-arrange-preview > p { font-size: .83rem; }
.live-edit-arrange .live-arrange-preview .live-edit-frame {
  width: min(100%, calc(60dvh * var(--live-ratio, 1.778)));
  justify-self: start;
  margin-top: .27rem;
  box-shadow: 0 0 0 1px var(--live-line), 0 .4rem 1.4rem #00172325;
}
.live-arrange-outline {
  position: absolute; z-index: 1; pointer-events: none;
  outline: 2px solid #1687ab; outline-offset: -2px;
  box-shadow: inset 0 0 0 3px #fff;
}
.live-arrange-inspector { display: grid; align-content: start; gap: .68rem; min-width: 0; padding: .8rem; border: 1px solid var(--live-line); border-radius: .65rem; }
.live-arrange-inspector select { min-width: 0; }
.live-arrange-positions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
.live-arrange-reset { justify-self: start; }
.live-arrange-reset:disabled { text-decoration: none; }
.live-edit-arrange > .live-edit-status { margin: .1rem var(--arrange-pad) .55rem; }
.live-arrange-footer {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .68rem var(--arrange-pad);
  border-top: 1px solid var(--live-line);
}
.live-arrange-footer .live-muted { font-size: .83rem; }
.live-arrange-footer .live-primary { white-space: nowrap; }
@media (max-width: 690px) {
  .live-edit-arrange .live-edit-form { grid-template-columns: minmax(0,1fr); gap: .8rem; }
  .live-edit-arrange .live-edit-head .live-btn { min-height: 44px; padding-inline: .35rem; }
  .live-arrange-inspector { padding: .7rem; }
  .live-arrange-footer .live-primary { min-height: 44px; }
}
.live-extra { min-width: 0; }
.live-tabs { display: flex; align-items: end; gap: .22rem; padding: 0 .55rem; border-bottom: 1px solid var(--live-line); }
.live-tabs .live-tab { background: transparent; border: 0; border-radius: .45rem .45rem 0 0; color: var(--live-muted); position: relative; min-height: 42px; }
.live-tabs .live-tab:hover { background: var(--live-soft); }
.live-tabs .live-tab[aria-selected="true"] { color: var(--live-ink); box-shadow: inset 0 -2px var(--cm-accent, #dd753e); font-weight: 750; }
.live-extra > .live-panel { border-top: 0; border-radius: 0 0 .95rem .95rem; }
.live-extra > .live-control-grid { margin-top: .65rem; }
.live-publishing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 170px); gap: 1rem; align-items: start; }
.live-publishing p { margin: 0 0 .7rem; }
.live-output {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(12rem, 1.12fr) auto;
  align-items: center;
  gap: .45rem 1.1rem;
}
.live-output-intro h2 { margin: 0 0 .15rem; font-size: 1.17rem; }
.live-output-intro p { font-size: .88rem; }
.live-output-feedback { grid-column: 1/-1; margin: 0; color: var(--live-muted); line-height: 1.42; font-size: .86rem; }
.live-output-feedback[data-warning="true"] { color: #724522; }
.live-display-picker { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.live-display-picker legend { padding: 0; font-size: .86rem; font-weight: 720; margin-bottom: .25rem; }
.live-display-picker .live-muted { font-size: .83rem; }
.live-display-picker .live-field { flex: 1; min-width: min(100%, 6rem); max-width: 100%; }
.live-monitor-detect { min-height: 1.95rem; padding: .38rem .53rem; font-size: .83rem; }
.live-projection-actions { justify-content: end; }
.live-projection-actions .live-primary { min-height: 44px; }
.live-visibility { grid-column: 1/-1; background: #f1f8f8; padding: .78rem .88rem; border-radius: .5rem; border: 1px solid #d4e6e9; }
.live-visibility[data-attention="true"] { border-color: #e9c698; background: #fff7eb; }
.live-visibility-count { display: block; font-size: .96rem; margin-bottom: .2rem; }
.live-visibility .live-visibility-current { margin-bottom: .4rem; line-height: 1.35; }
.live-visibility .live-muted { margin-bottom: .2rem; font-size: .85rem; }
.live-visibility .live-btn { font-size: .87rem; text-decoration: underline; text-underline-offset: .15em; }
.live-share { min-width: 0; }
.live-link { width: 100%; margin-bottom: .6rem; }
.live-qr-group { text-align: center; }
.live-qr { display: block; width: min(100%, 170px); height: auto; margin: auto; border-radius: .36rem; background: #fff; }
.live-alert { margin: 0 0 1rem; padding: .65rem .8rem; border: 1px solid #e9c698; background: #fff6e7; color: #644116; border-radius: .5rem; font-size: .91rem; }
.live-footnote { margin: 0; }
.live-operator:fullscreen, .live-operator.live-expanded {
  width: 100%; height: 100%; max-width: none; margin: 0; padding: clamp(.85rem, 3vw, 1.8rem);
  background: var(--cm-bg); overflow: auto; overscroll-behavior: contain;
}
.live-operator.live-expanded { position: fixed; inset: 0; z-index: 15; }
.app-shell:has(.live-expanded) :is(.app-nav,.app-topbar) { display: none; }
.live-operator:is(:fullscreen,.live-expanded) .live-controls { top: 0; }
.live-operator:is(:fullscreen,.live-expanded) .live-frame {
  width: min(100%, calc(45dvh * var(--live-ratio, 16/9))); justify-self: center;
}
.live-view { margin: 0; min-height: 100dvh; }
.live-announcer { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.live-public { background: #f5f7f7; padding: clamp(.95rem, 4vw, 2rem); font-size: 1rem; }
.live-view-head { max-width: 46rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding-bottom: .95rem; }
.live-view-head h1 { font-size: clamp(1.32rem, 4vw, 1.75rem); margin: 0; line-height: 1.24; overflow-wrap: anywhere; }
.live-public-content { max-width: 46rem; margin: 0 auto; }
.live-public-slide, .live-public .live-view-status { background: #fff; border: 1px solid var(--live-line); border-radius: .95rem; padding: clamp(1rem, 4vw, 2.35rem); }
.live-public-slide h2 { font-size: clamp(1.55rem, 5vw, 2.5rem); line-height: 1.1; margin: .48rem 0 .82rem; letter-spacing: -.026em; overflow-wrap: anywhere; }
.live-slide-text { font-size: clamp(1.14rem, 4vw, 1.45rem); line-height: 1.54; letter-spacing: normal; white-space: pre-wrap; overflow-wrap: anywhere; margin: .68rem 0; }
.live-public .live-kicker { margin: 0; }
.live-public .live-view-status { color: var(--live-muted); font-size: 1rem; }
.live-public .live-view-status > h2 { margin: 0; font-size: clamp(1.25rem, 5vw, 1.65rem); color: var(--live-ink); }
.live-public .live-view-status > p { max-width: 45ch; margin: .46rem 0 0; line-height: 1.5; }
.live-mobile-toolbar { display: flex; align-items: start; justify-content: space-between; gap: .5rem .7rem; flex-wrap: wrap; }
.live-mobile-meta { min-width: min(100%, 9rem); flex: 1 1 10rem; }
.live-mobile-modes { display: inline-flex; flex: none; gap: .22rem; margin: 0; padding: .18rem; border: 1px solid var(--live-line); border-radius: .7rem; background: var(--live-soft); }
.live-mobile-mode { min-height: 44px; padding: .35rem .58rem; border-color: transparent; font-size: .9rem; }
.live-mobile-mode[aria-pressed="true"] { color: #fff; background: var(--live-primary); border-color: var(--live-primary); }
.live-public:has(.live-public-slide--image) { padding-inline: clamp(.45rem, 2vw, 1.25rem); }
.live-public:has(.live-public-slide--image) .live-view-head { padding: 0 .35rem .5rem; }
.live-public-content:has(.live-public-slide--image) { max-width: 64rem; }
.live-public .live-public-slide--image { background: transparent; border: 0; padding: 0; }
.live-public-slide--image .live-mobile-toolbar { padding: 0 .35rem .5rem; align-items: center; }
.live-public-slide--image .live-mobile-meta { min-width: 0; }
.live-public-slide--image h2 { margin: .12rem 0 0; font-size: clamp(1rem, 4vw, 1.35rem); font-weight: 760; }
.live-mobile-media { display: grid; justify-items: center; margin: 0; }
.live-mobile-original { display: block; width: 100%; height: auto; max-height: clamp(13rem, calc(100dvh - 10rem), 68rem); object-fit: contain; }
.live-mobile-stage { width: min(100%, calc(clamp(13rem, 100dvh - 10rem, 68rem) * var(--live-ratio, 1.778))); }
.live-mobile-layout { display: flex; min-height: 44px; margin: .55rem auto 0; font-size: .86rem; }
.live-projection { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow: hidden; background: #000; color: #fff; font-family: system-ui, sans-serif; }
.live-projection-frame { width: min(100vw, calc(100dvh * var(--live-ratio, 1.77778))); max-height: 100dvh; }
.live-projection-frame > .slide-stage { border: 0; border-radius: 0; box-shadow: none; }
.live-projection .live-view-status { text-align: center; color: #b9c5cc; padding: .5rem; }
.live-fullscreen, .live-fullscreen:visited { position: absolute; right: 1rem; top: 1rem; z-index: 2; color: #fff; background: #111a21da; border-color: #71909f; opacity: .84; }
.live-fullscreen:hover, .live-fullscreen:focus-visible { opacity: 1; color: #fff; background: #111a21; }
.live-projection:fullscreen .live-fullscreen:not(:hover):not(:focus-visible) { opacity: 0; }
@media (display-mode: fullscreen) {
  .live-fullscreen:not(:hover):not(:focus-visible) { opacity: 0; }
}
.live-projection .live-fullscreen[data-mismatch="true"] { opacity: .92; }
.live-projector-status { position: absolute; right: 1rem; top: 4rem; z-index: 2; padding: .6rem .7rem; max-width: min(48ch, calc(100vw - 2rem)); border: 1px solid #71909f; border-radius: .4rem; background: #111a21ed; color: #fff; font-size: .85rem; line-height: 1.4; }
.live-projector-status p { margin: 0; color: inherit; }
.live-projector-status .live-btn { margin-top: .45rem; }
.live-reconnecting { background: #fdeac9; border: 1px solid #d9a45e; color: #54300d; font-size: .83rem; margin: .8rem auto; padding: .36rem .7rem; border-radius: .35rem; max-width: 46rem; }
.live-projection .live-reconnecting { position: absolute; bottom: .5rem; left: .5rem; margin: 0; opacity: .88; }
.live-projection.live-black .live-reconnecting { display: none; }
@media (max-width: 760px) {
  .live-output { grid-template-columns: minmax(0, 1fr) auto; }
  .live-display-picker { grid-row: 2; grid-column: 1/-1; }
  .live-projection-actions { grid-row: 1; grid-column: 2; }
  .live-publishing { grid-template-columns: minmax(0, 1fr) minmax(88px, .4fr); }
}
@media (max-width: 620px) {
  .live-head { display: grid; gap: .65rem; }
  .live-head-actions { flex-wrap: wrap; }
  .live-head-actions .live-btn { min-height: 42px; }
  .live-head-actions .live-danger { margin-inline-start: auto; }
  .live-output { padding: .82rem; }
  .live-output-intro p { max-width: 19ch; }
  .live-projection-actions { flex-direction: column; align-items: end; gap: .12rem; }
  .live-control-grid { grid-template-columns: minmax(0, 1fr); }
  .live-monitor { padding: .85rem; }
  .live-controls { position: static; padding: .55rem .68rem; }
  .live-shortcuts { display: none; }
  .live-tabs { padding-inline: .15rem; }
  .live-tabs .live-tab { padding: .38rem .45rem; }
  .live-active, .live-operator:is(:fullscreen,.live-expanded) .live-active { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
  .live-core-actions {
    position: fixed; inset: auto 0 0; z-index: 7;
    padding: .55rem max(.65rem, env(safe-area-inset-right)) calc(.55rem + env(safe-area-inset-bottom)) max(.65rem, env(safe-area-inset-left));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: stretch;
    background: var(--live-surface); border-top: 1px solid var(--live-line); box-shadow: 0 -4px 20px #102f3620;
  }
  .live-core-actions .live-btn { min-width: 0; padding: .4rem; }
}
@media (max-width: 395px) {
  .live-publishing { grid-template-columns: minmax(0, 1fr); }
}

.live-pdf-action { justify-self: start; }
