:root {
    --bg-page: #04060c;
    --bg-stage: #05070d;
    --bg-panel: rgba(10, 13, 20, 0.96);
    --bg-soft: rgba(255, 255, 255, 0.06);
    --bg-softer: rgba(255, 255, 255, 0.04);
    --border-soft: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text-main: #f5f1e5;
    --text-soft: rgba(245, 241, 229, 0.72);
    --text-muted: rgba(245, 241, 229, 0.44);
    --text-dark: #11141a;
    --accent: #ef6d45;
    --accent-soft: rgba(239, 109, 69, 0.18);
    --accent-strong: #ff855f;
    --success: #32bb98;
    --danger: #e06969;
    --shadow-deep: 0 36px 90px rgba(0, 0, 0, 0.42);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.18);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --tp-bg: #05070d;
    --tp-text: #f6f0d8;
    --tp-size: 46px;
    --tp-margin: 18%;
    --tp-align: center;
    --tp-scale-x: 1;
    --tp-scale-y: 1;
    --tp-read-tail: 112vh;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(239, 109, 69, 0.14), transparent 24%),
        radial-gradient(circle at bottom right, rgba(39, 58, 92, 0.2), transparent 26%),
        linear-gradient(180deg, #060810 0%, #04060c 100%);
    color: var(--text-main);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    border: 0;
    outline: none;
}

button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    transform: none !important;
}

a {
    color: inherit;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-card {
    width: min(520px, 100%);
    padding: 36px;
    border-radius: 28px;
    border: 1px solid var(--border-soft);
    background: linear-gradient(180deg, rgba(18, 23, 35, 0.92), rgba(10, 13, 20, 0.96));
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(18px);
}

.login-card--dense {
    padding: 40px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-signal {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 0 0 8px rgba(239, 109, 69, 0.14);
}

.login-title {
    margin: 24px 0 12px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 0.98;
}

.login-copy,
.panel-copy {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.field-stack {
    display: grid;
    gap: 10px;
}

.field-stack label,
.mini-label,
.toolbar-label,
.dock-label {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus,
.script-canvas--editor:focus {
    border-color: rgba(239, 109, 69, 0.66);
    box-shadow: 0 0 0 4px rgba(239, 109, 69, 0.14);
}

.field-textarea {
    min-height: 180px;
    resize: vertical;
}

.field-textarea--tall {
    min-height: 230px;
}

.field-color {
    width: 100%;
    min-height: 56px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.field-color--compact {
    min-height: 48px;
    border-radius: 14px;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.dock-button,
.corner-button,
.segmented button {
    border: none;
    border-radius: 999px;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
}

.primary-button {
    background: var(--accent);
    color: #fff6f1;
    font-weight: 800;
    padding: 14px 22px;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-weight: 700;
    padding: 12px 18px;
}

.ghost-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    font-weight: 700;
    padding: 12px 16px;
}

.icon-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 24px;
    line-height: 1;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.dock-button:hover,
.corner-button:hover,
.segmented button:hover {
    transform: translateY(-1px);
}

.login-actions,
.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.status-strip {
    min-height: 22px;
    color: var(--text-soft);
    font-size: 13px;
}

.status-strip.is-error {
    color: var(--danger);
}

.status-strip.is-success {
    color: var(--success);
}

.status-strip--floating {
    position: absolute;
    left: 50%;
    bottom: 122px;
    transform: translateX(-50%);
    z-index: 5;
    width: min(580px, calc(100vw - 56px));
    text-align: center;
    padding: 0 20px;
    pointer-events: none;
}

.status-strip--floating:empty {
    display: none;
}

.app-shell,
.app-shell--immersive,
.immersive-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

.app-shell--immersive,
.immersive-shell {
    height: 100vh;
    height: 100dvh;
}

.immersive-shell {
    padding: 0;
}

.teleprompter-stage {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--tp-bg);
}

.teleprompter-stage--hero {
    background: var(--tp-bg);
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 26px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.teleprompter-stage.is-fullscreen,
.teleprompter-stage:fullscreen,
.teleprompter-stage:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
}

.teleprompter-toolbar {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    width: min(calc(100vw - 28px), 1180px);
    display: flex;
    justify-content: center;
    pointer-events: none;
    overflow: visible;
}

.magic-dock {
    position: relative;
    pointer-events: auto;
    display: inline-flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 26px;
    background: rgba(7, 10, 15, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow-soft);
    max-width: 100%;
    overflow: visible;
}

.dock-icon-button {
    position: relative;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    transform-origin: center bottom;
    transition:
        transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        opacity var(--transition),
        box-shadow var(--transition);
}

.dock-speed-control,
.dock-quick-control {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.dock-icon-button::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(6px);
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(8, 10, 16, 0.92);
    color: #fff8f2;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}

.dock-icon-button:hover::after,
.dock-icon-button:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dock-icon-button:hover,
.dock-icon-button:focus-visible {
    transform: translateY(-10px) scale(1.16);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

@supports selector(.magic-dock:has(.dock-icon-button:hover)) {
    .magic-dock:has(.dock-icon-button:hover) .dock-icon-button {
        transform: translateY(2px) scale(0.92);
        opacity: 0.84;
    }

    .magic-dock:has(.dock-icon-button:hover) .dock-icon-button:hover {
        transform: translateY(-12px) scale(1.2);
        opacity: 1;
    }

    .magic-dock:has(.dock-icon-button:hover) .dock-icon-button:has(+ .dock-icon-button:hover),
    .magic-dock:has(.dock-icon-button:hover) .dock-icon-button:hover + .dock-icon-button {
        transform: translateY(-4px) scale(1.04);
        opacity: 0.94;
    }
}

.dock-icon-button.is-active,
.dock-icon-button[aria-pressed="true"] {
    background: #fff2eb;
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.16);
}

.dock-speed-badge,
.dock-quick-badge {
    position: absolute;
    right: -3px;
    bottom: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 245, 238, 0.98);
    color: #161a22;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.dock-color-swatch {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: #ffffff;
}

.dock-popover {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 16px);
    transform: translateX(-50%);
    width: 220px;
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(16, 20, 28, 0.98), rgba(10, 13, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(24px);
    pointer-events: auto;
}

.dock-popover__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dock-popover__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
}

.dock-popover__value {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
}

.dock-range--compact {
    margin: 0;
}

.dock-icon-button--glass {
    background:
        linear-gradient(180deg, rgba(36, 42, 54, 0.98), rgba(19, 23, 31, 0.98));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 22px rgba(0, 0, 0, 0.2);
}

.dock-icon-button--accent {
    background: rgba(239, 109, 69, 0.92);
    color: #fff8f2;
    border-color: rgba(255, 183, 160, 0.3);
}

.dock-icon-button:disabled {
    opacity: 0.36;
    transform: none !important;
    box-shadow: none;
}

.teleprompter-stage.is-fullscreen #openPanelBtn,
.teleprompter-stage:fullscreen #openPanelBtn,
.teleprompter-stage:-webkit-full-screen #openPanelBtn {
    display: none !important;
}
.wizard-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(7, 9, 14, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(246, 240, 216, 0.84);
    backdrop-filter: blur(16px);
    font-size: 12px;
    font-weight: 700;
}
.wizard-step.is-active {
    background: rgba(239, 109, 69, 0.18);
    border-color: rgba(239, 109, 69, 0.32);
    color: #fff3ed;
}

.teleprompter-fade {
    position: absolute;
    left: 0;
    right: 0;
    height: 24%;
    pointer-events: none;
    z-index: 2;
}

.teleprompter-fade.top {
    top: 0;
    background: linear-gradient(180deg, var(--tp-bg) 10%, rgba(5, 7, 13, 0) 100%);
}

.teleprompter-fade.bottom {
    bottom: 0;
    background: linear-gradient(0deg, var(--tp-bg) 10%, rgba(5, 7, 13, 0) 100%);
}

.teleprompter-centerline {
    position: absolute;
    top: 50%;
    left: 12%;
    right: 12%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(239, 109, 69, 0.84), transparent);
    pointer-events: none;
    z-index: 3;
}

.teleprompter-viewport {
    position: absolute;
    inset: 0;
    overflow: auto;
}

.teleprompter-viewport--full {
    padding: 18vh 0 26vh;
}

.teleprompter-stage[data-mode="read"] .teleprompter-viewport--full {
    padding: 60vh 0 0;
}

.teleprompter-viewport::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.script-canvas {
    width: 100%;
    min-height: 100%;
    padding-inline: var(--tp-margin);
    text-align: var(--tp-align);
    color: var(--tp-text);
    font-size: var(--tp-size);
    line-height: 1.54;
    font-weight: 500;
    transform: scaleX(var(--tp-scale-x)) scaleY(var(--tp-scale-y));
    transform-origin: center center;
    outline: none;
}

.script-canvas p,
.script-canvas li,
.script-canvas blockquote,
.script-canvas h1,
.script-canvas h2,
.script-canvas h3,
.script-canvas div {
    margin: 0 0 1em;
}

.script-canvas ul,
.script-canvas ol {
    padding-left: 1.4em;
}

.script-canvas strong {
    color: inherit;
    font-weight: 700;
}

.script-canvas--editor {
    position: relative;
    z-index: 1;
}

.script-canvas--editor:empty::before {
    content: attr(data-placeholder);
    color: rgba(246, 240, 216, 0.42);
}

.script-canvas--output {
    display: none;
    position: relative;
    z-index: 1;
}

.teleprompter-stage[data-mode="read"] .script-canvas--editor {
    display: none;
}

.teleprompter-stage[data-mode="read"] .script-canvas--output {
    display: block;
}

.teleprompter-stage[data-mode="read"] .script-canvas--output::after {
    content: '';
    display: block;
    height: var(--tp-read-tail);
}

.teleprompter-block {
    opacity: 0.32;
    transition: opacity var(--transition), transform var(--transition), color var(--transition);
}

.teleprompter-block.is-passed {
    opacity: 0.16;
    color: rgba(246, 240, 216, 0.42);
}

.teleprompter-block.is-next {
    opacity: 0.7;
    color: rgba(255, 254, 247, 0.9);
}

.teleprompter-block.is-active {
    opacity: 1;
    color: #fffef7;
    transform: translateY(-1px);
}

.teleprompter-word {
    color: inherit;
    opacity: 0.34;
    transition: color var(--transition), opacity var(--transition), text-shadow var(--transition);
}

.teleprompter-block.is-passed .teleprompter-word,
.teleprompter-block.is-next .teleprompter-word {
    opacity: inherit;
}

.teleprompter-word.is-spoken {
    opacity: 1;
    color: color-mix(in srgb, var(--tp-text) 78%, #ef6d45 22%);
}

.teleprompter-word.is-current {
    opacity: 1;
    color: #fffef7;
    text-shadow: 0 0 20px rgba(255, 254, 247, 0.14);
}

.segmented button.is-active {
    background: #fff2eb;
    color: var(--text-dark);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.dock-range {
    width: 100%;
    accent-color: var(--accent);
}

.dock-value {
    min-width: 68px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 800;
}

.control-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(1120px, calc(100vw - 40px));
    max-height: calc(100vh - 56px);
    transform: translate(-50%, -50%);
    z-index: 30;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
    padding: 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(9, 12, 18, 0.98), rgba(11, 15, 22, 0.99));
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(24px);
    overflow: hidden;
}

.control-panel__header,
.panel-section__header,
.wizard-header,
.wizard-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.control-panel__title,
.wizard-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.05;
}

.control-panel__body {
    min-height: 0;
    overflow: hidden;
}

.control-panel__grid {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 18px;
}

.control-panel__column {
    min-height: 0;
    display: grid;
    gap: 16px;
    align-content: start;
    overflow: auto;
    padding-right: 4px;
}

.panel-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-section--fill {
    min-height: 100%;
    grid-template-rows: auto minmax(0, 1fr);
}

.panel-section--grid,
.wizard-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-heading {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.panel-section__header--full {
    grid-column: 1 / -1;
}

.project-list,
.logs-list {
    display: grid;
    gap: 12px;
}

.project-list {
    max-height: 34vh;
    overflow: auto;
    align-content: start;
}

.project-list--full {
    max-height: none;
    min-height: 0;
}

.project-item,
.log-item,
.analysis-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    gap: 8px;
    color: inherit;
    text-align: left;
}

.project-item.is-active {
    background: rgba(239, 109, 69, 0.16);
    border-color: rgba(239, 109, 69, 0.3);
}

.project-item-title {
    font-size: 18px;
    font-weight: 800;
}

.project-item-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--text-soft);
    font-size: 12px;
}

.segmented {
    display: inline-grid;
    gap: 6px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.segmented--full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented button {
    background: transparent;
    color: var(--text-soft);
    padding: 11px 12px;
    font-weight: 800;
}

.transcript-surface {
    min-height: 110px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    line-height: 1.55;
}

.log-item.is-error {
    border-color: rgba(224, 105, 105, 0.3);
}

.log-item.is-warning {
    border-color: rgba(239, 166, 84, 0.28);
}

.log-item.is-info {
    border-color: rgba(50, 187, 152, 0.22);
}

.mini-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
}

.panel-backdrop,
.wizard-modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 4, 8, 0.56);
    backdrop-filter: blur(4px);
}

.panel-backdrop {
    z-index: 25;
}

.wizard-modal {
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
}

.wizard-card {
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    display: grid;
    gap: 18px;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(11, 15, 23, 0.98), rgba(13, 18, 28, 1));
    box-shadow: var(--shadow-deep);
}

.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wizard-panel {
    display: grid;
    gap: 14px;
}

.wizard-grid-span {
    grid-column: 1 / -1;
}

.wizard-footer__actions {
    display: flex;
    gap: 10px;
}

.empty-state {
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 18px;
    color: var(--text-soft);
    line-height: 1.5;
}

@media (max-width: 980px) {
    .immersive-shell {
        padding: 0;
    }

    .teleprompter-stage {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .control-panel {
        width: min(calc(100vw - 24px), 980px);
        max-height: calc(100vh - 28px);
        padding: 20px;
    }

    .control-panel__grid,
    .panel-section--grid,
    .wizard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .login-card,
    .wizard-card {
        border-radius: 22px;
    }

    .teleprompter-toolbar {
        bottom: max(10px, env(safe-area-inset-bottom));
        width: calc(100vw - 18px);
    }

    .magic-dock {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        padding: 8px 10px;
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .magic-dock::-webkit-scrollbar {
        display: none;
    }

    .dock-icon-button {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .dock-speed-badge,
    .dock-quick-badge {
        right: -2px;
        bottom: -3px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        font-size: 9px;
    }

    .dock-color-swatch {
        right: 3px;
        bottom: 3px;
        width: 13px;
        height: 13px;
    }

    .dock-popover {
        width: min(220px, calc(100vw - 36px));
    }

    .material-symbols-rounded {
        font-size: 24px;
    }

    .teleprompter-viewport--full {
        padding: 18vh 0 30vh;
    }

    .script-canvas {
        font-size: calc(var(--tp-size) * 0.8);
        padding-inline: 10%;
    }

    .status-strip--floating {
        bottom: 92px;
        width: calc(100vw - 40px);
    }

    .control-panel {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 18px);
        padding: 18px;
        border-radius: 24px;
    }

    .control-panel__header,
    .wizard-header,
    .wizard-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar-actions,
    .wizard-footer__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .toolbar-actions > *,
    .wizard-footer__actions > * {
        flex: 1 1 auto;
    }
}
