:root {
  --studio-radius: 1.25rem; --studio-gap: .875rem;
  --chrome: color-mix(in srgb, var(--card) 70%, transparent); --chrome-solid: var(--card);
  --soft-fill: color-mix(in srgb, var(--card2) 76%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --danger: color-mix(in srgb, var(--accent2) 70%, var(--text));
  --shadow: 0 1.5rem 4rem color-mix(in srgb, var(--bg) 56%, transparent); color-scheme: dark light;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font: 1rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:active, .drop-zone:active { transform: scale(.97); transition: transform 100ms ease-out; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .drop-zone:focus-visible { outline: .16rem solid var(--accent); outline-offset: .16rem; }
.studio-bar { position: relative; z-index: var(--z-chrome); display: flex; align-items: center; min-height: 4rem; gap: .875rem; padding: .65rem 1.1rem; border-bottom: 1px solid var(--border); background: var(--card); }
.home-link { color: var(--muted); font-weight: 750; text-decoration: none; }
.builder-link { padding: .38rem .65rem; border: 1px solid var(--border); border-radius: 999rem; color: var(--muted); font-size: .72rem; font-weight: 780; text-decoration: none; }
.builder-link:hover, .builder-link:focus-visible { border-color: var(--accent); color: var(--text); }
.brand { display: flex; align-items: center; gap: .62rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .55rem; background: var(--accent); color: var(--bg); font-weight: 900; }
.bar-spacer { flex: 1; }
.toolbar-button, .icon-button, .delete-button, .icon-text-button { border: 1px solid var(--border); background: var(--card2); color: var(--text); cursor: pointer; }
.toolbar-button { padding: .54rem .84rem; border-radius: 999rem; font-size: .82rem; font-weight: 750; }
.boot-root { min-height: calc(100vh - 4rem); display: grid; place-items: center; padding: 1.25rem; }
.gate-panel { width: min(32rem, 100%); padding: 3rem 2rem; border: 1px solid var(--border); border-radius: 1.75rem; background: var(--card); text-align: center; box-shadow: var(--shadow); }
.gate-icon, .empty-preview > span { color: var(--accent); font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; }
.gate-panel h1, .panel-heading h1, .empty-preview h2, .inspector-heading h2, .image-picker h2 { margin: 0; line-height: 1.05; letter-spacing: -.02em; }
.gate-panel h1 { margin-top: .7rem; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.gate-panel p, .muted { color: var(--muted); }
.material-panel { border: 1px solid var(--border); border-top-color: color-mix(in srgb, white 18%, transparent); background: var(--chrome); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.studio-root { height: calc(100vh - 4rem); min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 10.25rem; }
.studio-grid { min-height: 0; display: grid; grid-template-columns: minmax(17rem, 21rem) minmax(30rem, 1fr) minmax(16rem, 19rem); gap: var(--studio-gap); padding: var(--studio-gap); overflow: hidden; }
.input-panel, .inspector-panel { min-height: 0; overflow-y: auto; border-radius: var(--studio-radius); padding: 1.05rem; }
.scroll-fade { -webkit-mask-image: linear-gradient(to bottom, transparent, black 1.1rem, black calc(100% - 1.1rem), transparent); mask-image: linear-gradient(to bottom, transparent, black 1.1rem, black calc(100% - 1.1rem), transparent); }
.panel-heading { margin: .25rem 0 1.2rem; }
.panel-heading h1 { margin-top: .16rem; font-size: clamp(1.55rem, 2vw, 2.1rem); }
.eyebrow { display: block; color: var(--accent); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.field-label { display: flex; flex: 1; flex-direction: column; gap: .35rem; margin-bottom: .85rem; color: var(--muted); font-size: .75rem; font-weight: 780; }
.field-label.compact { min-width: 8rem; margin-bottom: 0; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: .75rem; background: var(--card2); color: var(--text); padding: .68rem .72rem; font-size: .92rem; font-weight: 520; line-height: 1.45; }
textarea { min-height: 8.2rem; resize: vertical; }
.field-row, .presenter-fields { display: flex; align-items: flex-start; gap: .65rem; }
.presenter-fields { flex-wrap: wrap; margin: -.2rem 0 .9rem; }
.drop-zone { position: relative; display: grid; place-items: center; margin-bottom: .7rem; padding: 1rem; border: 1px dashed var(--border); border-radius: .9rem; background: var(--soft-fill); color: var(--muted); cursor: pointer; text-align: center; transition: border-color .32s ease, background .32s ease, opacity .24s ease; }
.drop-zone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop-zone input { position: absolute; width: .0625rem; height: .0625rem; opacity: 0; pointer-events: none; }
.drop-zone strong { color: var(--text); font-size: .84rem; }
.drop-zone small { font-size: .69rem; }
.drop-icon { color: var(--accent); font-size: 1.45rem; line-height: 1; }
.file-chips { display: flex; flex-wrap: wrap; gap: .38rem; margin-bottom: .75rem; }
.file-chip { display: inline-flex; max-width: 100%; align-items: center; gap: .4rem; padding: .3rem .34rem .3rem .58rem; border: 1px solid var(--border); border-radius: 999rem; background: var(--card2); font-size: .7rem; }
.file-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button { width: 1.25rem; height: 1.25rem; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border: 0; border-radius: .82rem; background: var(--accent); color: var(--bg); padding: .72rem 1rem; cursor: pointer; font-size: .84rem; font-weight: 850; }
.primary-button:disabled, button:disabled { cursor: default; opacity: .48; }
.generate-button { width: 100%; justify-content: space-between; }
.skip-mini { margin: .15rem 0 .8rem; }
.progress { margin-top: .8rem; }
.progress-track { height: .3rem; overflow: hidden; border-radius: 999rem; background: var(--card2); }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .36s cubic-bezier(.22, .8, .25, 1); }
.progress p, .status { margin: .4rem 0 0; color: var(--muted); font-size: .72rem; font-weight: 650; }
.mini-actions { display: flex; gap: .4rem; margin-top: .55rem; }
.mini-actions button { padding: .42rem .58rem; border: 1px solid var(--border); border-radius: .6rem; background: var(--card2); color: var(--text); cursor: pointer; font-size: .68rem; font-weight: 750; }
.mini-actions[hidden] { display: none; }
.status.is-error, .picker-state.is-error { color: var(--danger); }
.saved-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.icon-button, .delete-button { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 50%; font-size: .82rem; }
.deck-list { display: grid; gap: .42rem; margin-top: .65rem; }
.deck-row { display: flex; align-items: center; gap: .35rem; border: 1px solid var(--border); border-radius: .72rem; background: var(--card2); }
.deck-row > button:first-child { min-width: 0; flex: 1; padding: .58rem; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.deck-row strong, .deck-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-row strong { font-size: .74rem; }
.deck-row small { color: var(--muted); font-size: .64rem; }
.deck-row .delete-button { flex: 0 0 auto; margin-right: .25rem; }
.preview-column { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: var(--studio-radius); background: var(--card2); }
.preview-toolbar { position: static; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .9rem; border-right: 0; border-left: 0; }
.preview-toolbar strong { display: block; max-width: min(28rem, 35vw); overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.engine-badge { display: inline-block; margin-top: .18rem; color: var(--accent); font-size: .64rem; font-weight: 800; }
.engine-badge[hidden] { display: none; }
.preview-actions, .slide-controls { display: flex; align-items: center; gap: .38rem; }
.translate-control { display: inline-flex; align-items: center; gap: .25rem; }
.translate-control select { width: auto; min-height: 2.5rem; padding: .4rem .45rem; border-radius: .72rem; font-size: .7rem; }
.icon-text-button { min-height: 2.5rem; padding: .45rem .62rem; border-radius: .72rem; font-size: .75rem; font-weight: 750; }
.export-button, .present-button { white-space: nowrap; }
.export-menu { position: relative; }
.export-popover { position: absolute; z-index: var(--z-popover); top: calc(100% + .55rem); right: 0; width: min(18rem, 80vw); padding: .38rem; border-radius: .9rem; opacity: 0; transform: translateY(-.45rem) scale(.94); transform-origin: top right; box-shadow: 0 1.2rem 3.5rem color-mix(in srgb, var(--bg) 55%, transparent); transition: opacity .16s ease, transform .2s cubic-bezier(.2, .85, .3, 1); }
.export-popover.is-open { opacity: 1; transform: translateY(0) scale(1); }
.export-popover button { display: block; width: 100%; padding: .65rem .72rem; border: 0; border-radius: .62rem; background: transparent; color: var(--text); cursor: pointer; font-size: .75rem; font-weight: 700; text-align: left; }
.export-popover button:hover, .export-popover button:focus-visible { background: var(--accent-soft); }
.slide-controls { position: static; min-height: 3.25rem; overflow-x: auto; padding: .45rem .75rem; border-right: 0; border-left: 0; white-space: nowrap; }
.slide-controls label { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .68rem; }
.slide-controls select, .slide-controls button { width: auto; min-height: 2.3rem; margin: 0; padding: .38rem .6rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--card2); color: var(--text); font-size: .72rem; cursor: pointer; }
.preview-scroll { width: 100%; height: 100%; overflow: auto; padding-top: 7.6rem; }
.preview-host { min-width: 100%; min-height: 100%; display: grid; place-items: center; padding: 1.5rem; }
.empty-preview { max-width: 25rem; padding: 2rem; color: var(--muted); text-align: center; }
.empty-preview h2 { margin-top: .75rem; color: var(--text); font-size: clamp(1.25rem, 3vw, 1.8rem); }
.ppt-dom-stage { box-shadow: 0 1.4rem 4rem color-mix(in srgb, var(--bg) 48%, transparent); }
.ppt-box--skeleton { animation: skeleton-slide 1.4s linear infinite; }
@keyframes skeleton-slide { to { background-position-x: -200%; } }
.edit-hotspot { position: absolute; z-index: var(--z-content); padding: 0; border: 1px solid transparent; border-radius: .2rem; background: transparent; color: transparent; cursor: text; }
.edit-hotspot:hover, .edit-hotspot:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); outline: 0; }
.inline-slide-editor { position: absolute; z-index: var(--z-content-edit); min-height: 0; padding: .16rem; border: 2px solid var(--accent-border); border-radius: .25rem; background: color-mix(in srgb, white 94%, transparent); color: #111; box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .24); resize: none; }
.filmstrip { position: relative; z-index: var(--z-chrome); display: flex; align-items: center; gap: .75rem; overflow-x: auto; padding: .8rem 1rem; border-right: 0; border-bottom: 0; border-left: 0; }
.filmstrip-empty { color: var(--muted); font-size: .78rem; }
.thumb-wrap { position: relative; flex: 0 0 auto; }
.thumb { position: relative; z-index: var(--z-content); flex: 0 0 auto; padding: 0; touch-action: pan-y; border: .13rem solid transparent; border-radius: .55rem; background: transparent; cursor: grab; }
.thumb:active, .thumb.is-dragging { cursor: grabbing; }
.thumb.is-selected { border-color: var(--accent); }
.thumb.is-dragging { z-index: var(--z-drag); box-shadow: 0 1.25rem 3.4rem rgba(0, 0, 0, .62), 0 .35rem 1rem rgba(0, 0, 0, .38); }
.thumb-canvas { display: block; overflow: hidden; border-radius: .32rem; }
.thumb .ppt-dom-stage { box-shadow: none; pointer-events: none; }
.thumb small { position: absolute; right: .22rem; bottom: .16rem; min-width: 1.15rem; border-radius: 999rem; background: var(--card); color: var(--text); font-size: .58rem; font-weight: 850; }
.add-slide { flex: 0 0 auto; min-height: 2.5rem; border: 1px dashed var(--border); border-radius: .72rem; background: var(--card2); color: var(--muted); cursor: pointer; font-size: .7rem; }
.add-slide--between { position: absolute; z-index: var(--z-drag); top: 50%; left: -.7rem; width: 1.45rem; min-height: 3rem; padding: 0; opacity: 0; transform: translateY(-50%); }
.thumb-wrap:hover .add-slide--between, .add-slide--between:focus-visible { opacity: 1; }
.add-slide--end { display: grid; min-width: 7rem; align-self: stretch; place-items: center; padding: .35rem .7rem; }
.add-slide--end span { font-size: 1.2rem; line-height: 1; }
.inspector-heading { margin: .25rem 0 1rem; }
.inspector-heading h2 { margin-top: .15rem; font-size: clamp(1.4rem, 2vw, 1.9rem); }
.style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .42rem; }
.style-card { min-width: 0; padding: .42rem; border: 1px solid var(--border); border-radius: .72rem; background: var(--card2); color: var(--text); cursor: pointer; text-align: left; }
.style-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 .12rem var(--accent-soft); }
.style-card strong, .style-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.style-card strong { margin-top: .32rem; font-size: .69rem; }
.style-card small { color: var(--muted); font-size: .58rem; }
.style-preview { display: block; height: 2.8rem; overflow: hidden; padding: .42rem; border-radius: .42rem; color: #111; background: #fff; }
.style-preview i { display: block; margin-bottom: .27rem; font-size: .7rem; font-style: normal; font-weight: 800; }
.style-preview b { display: block; width: 72%; height: .16rem; margin-top: .18rem; background: currentColor; opacity: .52; }
.style-preview--office i { color: #1f497d; font-family: Calibri, sans-serif; }
.style-preview--aptos i { color: #0e2841; font-family: Aptos, sans-serif; }
.style-preview--navy { color: #fff; background: #1b2a4a; }
.style-preview--navy i { color: #fff; font-family: Georgia, serif; }
.inspector-section { display: grid; gap: .95rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.inspector-control { display: grid; gap: .38rem; margin: 0; color: var(--muted); font-size: .72rem; font-weight: 760; }
.inspector-control > span { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.inspector-control output { color: var(--text); font-variant-numeric: tabular-nums; }
.inspector-control input[type="range"] { height: 1.6rem; padding: 0; accent-color: var(--accent); }
.inspector-control select { font-family: inherit; }
.voice-section { gap: .72rem; }
.control-hint { margin-top: -.3rem; color: var(--muted); font-size: .64rem; line-height: 1.45; }
.accent-control input[type="color"] { width: 3rem; height: 2.25rem; padding: .2rem; }
.accent-control button, .reset-style, .clear-image-button, .inherit-style { min-height: 2.4rem; padding: .45rem .7rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--card2); color: var(--text); cursor: pointer; font-size: .72rem; }
.inherit-style { justify-self: start; min-height: 2rem; padding-block: .3rem; color: var(--muted); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--text); font-size: .76rem; cursor: pointer; }
.toggle-row small { color: var(--muted); }
.toggle-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-row i { position: relative; width: 2.65rem; height: 1.55rem; border-radius: 999rem; background: var(--card2); box-shadow: inset 0 0 0 1px var(--border); }
.toggle-row i::after { position: absolute; top: .2rem; left: .2rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--muted); content: ""; transition: left .18s ease; }
.toggle-row input:checked + i { background: var(--accent); }
.toggle-row input:checked + i::after { left: 1.3rem; background: var(--bg); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: .18rem; border: 1px solid var(--border); border-radius: .68rem; background: var(--card2); }
.segmented button { min-width: 0; padding: .42rem .18rem; border: 0; border-radius: .5rem; background: transparent; color: var(--muted); cursor: pointer; font-size: .62rem; }
.segmented button.is-selected { background: var(--card); color: var(--text); box-shadow: 0 .1rem .35rem color-mix(in srgb, var(--bg) 25%, transparent); }
.reset-style { width: 100%; margin-top: 1.1rem; }
.image-picker-root { position: fixed; z-index: var(--z-scrim); inset: 0; display: grid; place-items: center; padding: 1rem; }
.image-picker-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 74%, transparent); }
.image-picker { position: relative; width: min(58rem, 96vw); max-height: min(44rem, 90vh); overflow: auto; padding: 1rem; border-radius: 1.35rem; box-shadow: 0 2rem 6rem rgba(0, 0, 0, .55); }
.image-picker header, .image-search { display: flex; align-items: center; gap: .75rem; }
.image-picker header { justify-content: space-between; }
.image-picker h2 { margin-top: .15rem; font-size: clamp(1.35rem, 3vw, 2rem); }
.image-search { align-items: flex-end; margin-top: 1rem; }
.image-search .field-label { margin: 0; }
.clear-image-button { margin-top: .7rem; }
.image-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; min-height: 12rem; margin-top: 1rem; }
.image-choice { overflow: hidden; padding: 0; border: 1px solid var(--border); border-radius: .8rem; background: var(--card2); color: var(--text); cursor: pointer; text-align: left; }
.image-choice img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.image-choice span { display: block; padding: .45rem .55rem; color: var(--muted); font-size: .65rem; line-height: 1.35; }
.picker-state, .picker-loading { grid-column: 1 / -1; align-self: center; color: var(--muted); text-align: center; }
.picker-loading { display: grid; place-items: center; gap: .65rem; }
.picker-loading i { width: 2rem; height: 2rem; border: .2rem solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: picker-spin .8s linear infinite; }
@keyframes picker-spin { to { transform: rotate(360deg); } }
.ppt-presenter-root { position: fixed; z-index: var(--z-presenter); inset: 0; overflow: hidden; background: #000; color: #fff; isolation: isolate; touch-action: none; user-select: none; }
.ppt-presenter-root:focus { outline: 0; }
.ppt-present-viewport, .ppt-present-slides, .ppt-present-slide { position: absolute; inset: 0; overflow: hidden; }
.ppt-present-slide { display: grid; place-items: center; }
.ppt-present-slide .ppt-dom-stage { box-shadow: none; }
.ppt-present-blank { position: absolute; z-index: var(--z-present-blank); inset: 0; background: #000; }
.ppt-present-notes { position: absolute; z-index: var(--z-present-notes); top: 1rem; right: 1rem; bottom: 1rem; width: min(29rem, calc(100vw - 2rem)); overflow: auto; padding: 1.25rem; border-radius: 1.2rem; background: color-mix(in srgb, #101018 82%, transparent); color: #fff; box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .55); }
.ppt-present-notes[hidden], .ppt-present-blank[hidden] { display: none; }
.ppt-present-notes h2 { margin: 1.1rem 0 .6rem; font-size: 1.05rem; letter-spacing: -.01em; }
.ppt-present-meta { display: flex; gap: 1.5rem; padding-bottom: .85rem; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.ppt-present-meta span { display: grid; }
.ppt-present-meta small, .ppt-present-next small { color: rgba(255, 255, 255, .62); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ppt-present-meta strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.ppt-present-speaker { margin: .75rem 0 0; color: rgba(255, 255, 255, .7); font-size: .78rem; font-weight: 750; }
.ppt-present-script { color: rgba(255, 255, 255, .92); font-size: 1rem; line-height: 1.62; white-space: pre-wrap; }
.ppt-present-next { display: grid; gap: .18rem; margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.ppt-present-next strong { font-size: .88rem; }
.ppt-present-help { position: absolute; z-index: var(--z-present-help); bottom: .8rem; left: 50%; padding: .35rem .65rem; border-radius: 999rem; background: rgba(0, 0, 0, .58); font-size: .62rem; opacity: 0; transform: translateX(-50%); transition: opacity .2s ease; }
.ppt-presenter-root:hover .ppt-present-help { opacity: .72; }
.ppt-presenter-root.is-fullscreen-fallback .ppt-present-help { opacity: .85; }
.ppt-present-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 76rem) {
  .studio-grid { grid-template-columns: minmax(16rem, 19rem) minmax(28rem, 1fr); }
  .inspector-panel { position: relative; inset: auto; width: auto; box-shadow: var(--shadow); }
}
@media (max-width: 48rem) {
  body { overflow: auto; }
  .studio-bar { position: sticky; top: 0; }
  .studio-root { height: auto; display: block; }
  .studio-grid { display: flex; flex-direction: column; overflow: visible; padding: .65rem; }
  .input-panel { max-height: none; overflow: visible; }
  .preview-column { min-height: 34rem; order: 2; }
  .preview-toolbar { position: sticky; }
  .preview-actions .icon-text-button span { display: none; }
  .translate-control .icon-text-button { font-size: 0; }
  .translate-control .icon-text-button::after { font-size: .72rem; content: "↗"; }
  .export-popover { position: fixed; top: 4.5rem; right: .65rem; }
  .preview-scroll { padding-top: 7.2rem; }
  .inspector-panel { position: static; width: auto; max-height: none; order: 3; }
  .filmstrip { position: sticky; bottom: 0; height: 9rem; }
  .toolbar-button { display: none; }
  .home-link { font-size: .8rem; }
  .brand > span:last-child { display: none; }
  .builder-link { font-size: .66rem; }
  .image-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 28rem) {
  .studio-bar { padding-inline: .65rem; }
  .studio-grid { padding-inline: 0; }
  .input-panel, .preview-column, .inspector-panel { border-radius: 0; }
  .field-row { flex-direction: column; gap: 0; }
  .style-grid { grid-template-columns: 1fr; }
  .style-card { display: grid; grid-template-columns: 4.8rem 1fr; column-gap: .55rem; }
  .style-preview { grid-row: 1 / 3; }
  .preview-toolbar { align-items: flex-start; }
  .preview-toolbar strong { max-width: 7rem; }
  .export-button { padding-inline: .6rem; font-size: .68rem; }
  .translate-control { display: none; }
  .builder-link { display: none; }
  .present-button { padding-inline: .65rem; font-size: .68rem; }
  .ppt-present-notes { top: .5rem; right: .5rem; bottom: .5rem; width: calc(100vw - 1rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transform: none !important; transition: opacity .18s linear !important; }
  .export-popover { transform-origin: top right; }
  .ppt-present-help { left: .8rem; }
}
@media (prefers-reduced-transparency: reduce) {
  .material-panel { background: var(--chrome-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .image-picker-backdrop { background: var(--bg); }
  .inline-slide-editor { background: #fff; }
  .export-popover { background: var(--chrome-solid); }
  .ppt-present-notes { background: #101018; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ppt-present-help { background: #000; }
}
@media (prefers-contrast: more) {
  .material-panel { border: 2px solid var(--text); background: color-mix(in srgb, var(--card) 96%, var(--bg)); }
  input, select, textarea, .drop-zone, .style-card, .deck-row, .slide-controls button, .image-choice, .add-slide, .export-popover button { border-width: 2px; border-color: var(--text); }
  .edit-hotspot:hover, .edit-hotspot:focus-visible { border-width: 3px; }
  .export-popover button { border-style: solid; }
  .ppt-present-notes { border: 3px solid #fff; background: #000; }
  .ppt-present-meta, .ppt-present-next { border-color: #fff; }
}
