.universe-workspace.is-portal-view .studio-hub {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.studio-hub-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}
.studio-live-button[hidden] { display: none !important; }

.studio-hub-header-actions .studio-icon-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(116, 153, 219, .24);
    border-radius: 50%;
    color: #eef2ff;
    background: rgba(19, 35, 69, .62);
    font: 700 1.45rem/1 system-ui, sans-serif;
    cursor: pointer;
}

.studio-mode-button svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.studio-hub-tasks {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 5px;
    align-content: start;
}

.studio-hub-prompt.studio-composer {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid rgba(116, 153, 219, .2);
    border-radius: 16px;
    background: rgba(24, 28, 42, .94);
}

.studio-composer-tools { display: contents; }

.studio-composer-attachments {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    padding: 2px 4px 6px;
}
.studio-composer-attachments[hidden] { display: none; }
.studio-draft-attachment { margin: 4px 0; }

.studio-composer-add-wrap { grid-column: 1; position: relative; width: 42px; height: 42px; }
.studio-composer-mic { grid-column: 2; }
.studio-hub-prompt.studio-composer textarea { grid-column: 3; }
.studio-composer > button[type="submit"] { grid-column: 4; }
.studio-composer select { grid-column: 5; }

.studio-hub-prompt.studio-composer:has(.studio-composer-add[hidden]) {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}
.studio-hub-prompt.studio-composer:has(.studio-composer-add[hidden]) .studio-composer-mic { grid-column: 1; }
.studio-hub-prompt.studio-composer:has(.studio-composer-add[hidden]) textarea { grid-column: 2; }
.studio-hub-prompt.studio-composer:has(.studio-composer-add[hidden]) > button[type="submit"] { grid-column: 3; }
.studio-hub-prompt.studio-composer:has(.studio-composer-add[hidden]) select { grid-column: 4; }

.studio-composer-add,
.studio-composer-mic,
.studio-composer > button[type="submit"] {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #eef4ff;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.studio-composer-add-wrap > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.studio-composer-add.has-image { background: var(--studio-preview) center / cover; box-shadow: inset 0 0 0 2px #92b6ff; }
.studio-composer-add.has-image span { opacity: 0; }
.studio-composer-add-menu[hidden] { display: none; }
.studio-composer-add-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 9px);
    z-index: 20;
    display: grid;
    gap: 4px;
    width: max-content;
    min-width: 190px;
    padding: 7px;
    border: 1px solid rgba(116, 153, 219, .24);
    border-radius: 13px;
    background: rgba(5, 11, 28, .96);
}
.studio-composer-add-menu button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    color: #eef4ff;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.studio-composer-add-menu button:hover { background: rgba(59, 88, 148, .34); }
.studio-composer-mic { font-size: 18px; }
.studio-hub-prompt.studio-composer .studio-composer-mic { padding: 0; border: 0; background: transparent; }
.studio-composer-mic.is-listening { color: #fff; background: #376bc1; box-shadow: 0 0 0 5px rgba(81, 132, 225, .18); }
.studio-hub-prompt.studio-composer .studio-composer-mic.is-listening { background: #376bc1; }

.studio-hub-prompt.studio-composer textarea {
    min-height: 44px;
    max-height: 120px;
    padding: 11px 6px;
    border: 0;
    background: transparent;
    resize: none;
    outline: none;
}

.studio-composer select {
    max-width: 145px;
    padding: 8px 25px 8px 10px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #cbd5e9;
    font: inherit;
}

.studio-composer > button[type="submit"] {
    background: transparent !important;
    color: #eef4ff !important;
    font-size: 22px;
}

.studio-composer > button[type="submit"]:disabled { opacity: .48; cursor: wait; }
.studio-composer-error { grid-column: 1 / -1; margin: 0 12px 5px; color: #ffb3a7; font-size: .85rem; }
.studio-draft-upload-error { margin-inline: 0; }

.studio-hub-task[role="button"] {
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.studio-task-status {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    vertical-align: middle;
}
.studio-task-status svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.studio-task-status.is-pending { color: #aeb8ca; }
.studio-task-status.is-success { color: #54d991; }
.studio-task-status.is-failed { color: #ff5f6d; }

.studio-hub-task .studio-task-prompt-preview {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 0;
    color: #c9d4e9;
    font-size: .88rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.studio-hub-task[role="button"]:hover,
.studio-hub-task[role="button"]:focus-visible {
    border-color: rgba(105, 161, 255, .7);
    background: rgba(31, 65, 122, .44);
    outline: none;
    transform: translateY(-1px);
}

.studio-hub-task > img {
    width: 104px;
    height: 72px;
    justify-self: end;
    border-radius: 10px;
    object-fit: cover;
}

.studio-task-modal[hidden] { display: none; }

.studio-task-modal {
    position: fixed;
    inset: 0;
    z-index: 2450;
    display: grid;
    place-items: center;
    padding: 20px;
}

.studio-task-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 25, .78);
    backdrop-filter: blur(7px);
}

.studio-task-modal > section {
    position: relative;
    width: min(880px, 100%);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: 26px;
    border: 1px solid rgba(115, 164, 255, .34);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(12, 25, 58, .98), rgba(7, 15, 38, .99));
    color: #f2f6ff;
    box-shadow: 0 24px 75px rgba(0, 0, 0, .48);
}

.studio-task-modal header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.studio-task-heading { min-width: 0; flex: 1; }
.studio-task-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}
.studio-task-header-button,
.studio-task-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid rgba(115, 164, 255, .32);
    border-radius: 12px;
    background: rgba(30, 65, 125, .6);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.studio-task-header-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.studio-task-modal h2 { margin: 0 0 6px; overflow-wrap: anywhere; }
.studio-task-meta, .studio-task-prompt { color: #b7c4e4; }
.studio-task-prompt { white-space: pre-wrap; overflow-wrap: anywhere; }
.studio-task-prompt:has(> section) { display: grid; gap: 14px; margin-top: 18px; }
.studio-task-prompt > section { padding: 15px 17px; border-radius: 14px; background: rgba(0,0,0,.22); }
.studio-task-prompt > section h3 { margin: 0 0 8px; color: #eef3ff; font-size: .86rem; }
.studio-task-prompt > section p { margin: 0; color: #b7c4e4; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.studio-task-prompt.is-speech-detail { gap: 15px; }
.studio-task-prompt.is-speech-detail > section { padding: 10px; background: transparent; }
.studio-task-prompt.is-speech-detail > section:first-child:not(:last-child) p { color: #9da8bd; font-size: .82rem; }
.studio-task-prompt.is-speech-detail > section:last-child { min-height: 200px; }
.studio-task-prompt.is-speech-detail > section:last-child p { color: #eef3ff; font-size: 1.15rem; line-height: 1.6; }

.studio-task-close {
    font-size: 25px;
    line-height: 1;
}

.studio-task-media { display: grid; gap: 18px; margin-top: 20px; }
.studio-task-submitted-images { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .24); }
.studio-task-submitted-images h3 { margin: 0; color: #cbd6ed; font-size: .9rem; }
.studio-task-submitted-images > div { display: flex; flex-wrap: wrap; gap: 10px; }
.studio-task-media .studio-task-submitted-images img { width: 112px; height: 84px; border-radius: 10px; object-fit: cover; cursor: zoom-in; }
.studio-task-media-item { display: grid; gap: 10px; }
.studio-task-media video,
.studio-task-media img {
    display: block;
    width: 100%;
    max-height: 62dvh;
    border-radius: 14px;
    background: #02050d;
    object-fit: contain;
}
.studio-task-media img { cursor: zoom-in; }
.studio-task-media audio { width: 100%; }
.studio-task-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    justify-self: center;
    min-width: 132px;
    margin: 8px 0 0;
}
.studio-task-retry svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.studio-task-media-actions { display: flex; justify-content: flex-end; gap: 10px; }
.studio-task-media-actions button,
.studio-task-media-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 15px;
    border: 1px solid rgba(118, 168, 255, .45);
    border-radius: 11px;
    background: rgba(32, 77, 150, .75);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.studio-task-media-actions .studio-task-icon-action {
    flex: 0 0 40px;
    width: 40px;
    min-height: 40px;
    padding: 0;
}
.studio-task-icon-action svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.universe-workspace.is-portal-view .universe-panel.image-draft-panel {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.universe-workspace.is-portal-view .universe-panel.universe-tool-panel {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.universe-workspace.is-portal-view .universe-panel.universe-tool-panel > .universe-panel-head {
    margin-bottom: 20px;
}

.universe-workspace.is-portal-view .universe-panel.universe-tool-panel > .universe-form {
    order: initial;
    grid-template-columns: minmax(0, 1fr);
    width: min(760px, 100%);
    margin: 0 auto;
}

.universe-workspace.is-portal-view .universe-panel.universe-tool-panel > .universe-result:not([hidden]) {
    width: min(760px, 100%);
    box-sizing: border-box;
    margin: 18px auto 0;
}

.universe-workspace.is-portal-view .image-draft-panel > .universe-panel-head {
    margin-bottom: 20px;
}

.universe-workspace.is-portal-view .universe-panel.image-draft-panel > .image-draft-form {
    order: initial;
    margin-top: 0;
}

.image-draft-form {
    grid-template-columns: minmax(0, 1fr);
    width: min(760px, 100%);
    margin-inline: auto;
    gap: 18px;
    padding: 4px 0 24px;
}

.image-draft-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 30px;
}

.image-draft-topbar label { display: flex; align-items: center; gap: 10px; color: #eef4ff; }
.image-draft-topbar select,
.image-draft-topbar input {
    box-sizing: border-box;
    min-height: 42px;
    border: 1px solid rgba(130, 166, 226, .25);
    border-radius: 10px;
    background: rgba(13, 24, 50, .78);
    color: #fff;
    font: inherit;
}
.image-draft-topbar select { padding: 8px 34px 8px 12px; }
.image-draft-topbar input { width: 76px; padding: 8px 10px; }

.image-draft-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 44px;
    color: #f2f6ff;
}
.image-draft-toggle-row input {
    appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 56px;
    height: 32px;
    margin: 0;
    border-radius: 999px;
    background: #3c4252;
    cursor: pointer;
    transition: background .16s ease;
}
.image-draft-toggle-row input::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    transition: transform .16s ease;
}
.image-draft-toggle-row input:checked { background: #32c96c; }
.image-draft-toggle-row input:checked::after { transform: translateX(24px); }

.image-draft-assistant { display: grid; gap: 10px; }
.image-draft-assistant[hidden], .image-draft-prompt-group[hidden] { display: none; }
.image-draft-commands,
.image-draft-quality {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: hidden;
    padding: 3px;
    border-radius: 999px;
    background: rgba(36, 40, 54, .92);
}
.image-draft-commands[hidden] { display: none; }
.image-draft-commands label,
.image-draft-quality label { cursor: pointer; }
.image-draft-commands input,
.image-draft-quality input { position: absolute; opacity: 0; pointer-events: none; }
.image-draft-commands span,
.image-draft-quality span {
    display: grid;
    place-items: center;
    min-height: 40px;
    border-radius: 999px;
    color: #e6ebf8;
}
.image-draft-commands span { font-size: 0; }
.image-draft-commands svg {
    display: block;
    width: 23px;
    height: 23px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.image-draft-commands input:checked + span,
.image-draft-quality input:checked + span { background: #696c79; color: #fff; }
.image-draft-quality { grid-template-columns: repeat(3, 1fr); }
.image-draft-quality span { padding: 0 8px; font-size: .88rem; }

.image-draft-preview {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(130, 166, 226, .28);
    border-radius: 16px;
    background: #080c16;
}
.image-draft-preview[hidden] { display: none; }
.image-draft-preview img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.image-draft-preview button {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.image-draft-prompt-group { position: relative; display: grid; }
.image-draft-prompt-group textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 220px;
    padding: 18px;
    border: 1px solid rgba(130, 166, 226, .23);
    border-radius: 16px;
    background: rgba(20, 25, 38, .88);
    color: #fff;
    font: inherit;
    resize: vertical;
}
.image-draft-prompt-group small { justify-self: end; margin: 8px 8px 0; color: #8994aa; }
.image-draft-actions { display: block; }
.image-draft-actions .universe-primary { width: 100%; min-height: 60px; border-radius: 14px; font-size: 1.08rem; }
.image-draft-standard[hidden] { display: none !important; }
.image-draft-mode { margin: 0; color: #fff; font-size: 1.18rem; }
.image-draft-window-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.image-draft-add-wrap { position: relative; }
.image-draft-add, .image-draft-close {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font: 300 2.15rem/1 system-ui, sans-serif;
    cursor: pointer;
}
.image-draft-close { font-size: 2rem; }
.image-draft-add-menu[hidden] { display: none; }
.image-draft-add-menu {
    position: absolute;
    z-index: 30;
    top: 50px;
    right: 0;
    display: grid;
    width: 285px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 28px;
    background: rgba(30, 30, 30, .98);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.image-draft-add-menu button {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 54px;
    padding: 9px 20px;
    border: 0;
    border-radius: 16px;
    color: #f2f2f2;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.image-draft-add-menu button:hover { background: rgba(255, 255, 255, .07); }
.image-draft-add-menu button span { width: 25px; font-size: 1.35rem; text-align: center; }
.image-draft-form .image-draft-toggle-row { min-height: 48px; }
.image-draft-form .image-draft-toggle-row input { background: #4c4e57; }
.image-draft-form .image-draft-toggle-row input:checked { background: #29cc63; }
.image-draft-form .image-draft-quality { background: rgba(27, 27, 33, .96); }
.image-draft-form .image-draft-quality input:checked + span { color: #111; background: #74767f; }
.image-draft-resolution { margin-top: -8px; }
.image-draft-form .image-draft-preview {
    justify-self: center;
    width: min(220px, 52%);
    border-color: rgba(255, 255, 255, .2);
    background: transparent;
}
.image-draft-form .image-draft-preview img { width: 100%; max-height: 360px; border-radius: 12px; object-fit: contain; }
.image-draft-form .image-draft-preview:has(.littleu-composer-thumbnail) { width: min(220px, 52%); height: auto; }
.image-draft-form .image-draft-preview .littleu-composer-thumbnail { width: 100%; height: auto; aspect-ratio: 9 / 16; }
.image-draft-form .image-draft-prompt-group textarea {
    min-height: 250px;
    padding: 26px;
    border-color: rgba(255, 255, 255, .24);
    background: rgba(29, 29, 29, .94);
    font-size: 1.05rem;
}
.image-draft-form .image-draft-actions .universe-primary {
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    background: rgba(29, 29, 29, .96);
}

.universe-workspace.is-portal-view .universe-panel.video-draft-panel {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: transparent;
}
.video-draft-form {
    grid-template-columns: minmax(0, 1fr);
    width: min(760px, 100%);
    margin-inline: auto;
    gap: 24px;
    padding: 2px 0 24px;
}
.video-draft-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.video-draft-request-card {
    display: grid;
    gap: 7px;
    width: min(290px, calc(100% - 64px));
    box-sizing: border-box;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(29, 29, 29, .58);
    backdrop-filter: blur(16px);
}
.video-draft-request-card span { color: #c8cdd2; }
.video-draft-request-card strong { color: #fff; font-size: 1.1rem; }
.video-draft-request-card small { color: #9da4aa; line-height: 1.35; }
.video-draft-add-wrap { position: relative; flex: 0 0 auto; }
.video-draft-add {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font: 300 2.25rem/1 system-ui, sans-serif;
    cursor: pointer;
}
.video-draft-add-menu[hidden] { display: none; }
.video-draft-add-menu {
    position: absolute;
    z-index: 30;
    top: -12px;
    right: 54px;
    display: grid;
    width: 285px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 28px;
    background: rgba(30, 30, 30, .98);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.video-draft-add-menu button {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 54px;
    padding: 9px 20px;
    border: 0;
    border-radius: 16px;
    color: #f2f2f2;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.video-draft-add-menu button:hover { background: rgba(255, 255, 255, .07); }
.video-draft-add-menu button span { width: 25px; color: #dde2e5; font-size: 1.35rem; text-align: center; }
.video-draft-prompt-group { position: relative; display: grid; }
.video-draft-prompt-group textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 250px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 17px;
    color: #fff;
    background: rgba(29, 29, 29, .66);
    backdrop-filter: blur(16px);
    font: inherit;
    font-size: 1.05rem;
    resize: vertical;
}
.video-draft-prompt-group small { justify-self: end; margin: 8px 8px 0; color: #8d929a; }
.video-draft-settings, .video-draft-negative {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(29, 29, 29, .54);
    backdrop-filter: blur(16px);
}
.video-draft-settings fieldset { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.video-draft-settings legend { margin-bottom: 8px; padding: 0; color: #d2d5d8; }
.video-draft-segments {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    overflow: hidden;
    padding: 3px;
    border-radius: 999px;
    background: rgba(27, 27, 33, .68);
}
.video-draft-segments label { min-width: 0; cursor: pointer; }
.video-draft-segments input { position: absolute; opacity: 0; pointer-events: none; }
.video-draft-segments span { display: grid; place-items: center; min-height: 41px; padding: 0 8px; border-radius: 999px; color: #f1f2f3; text-align: center; }
.video-draft-segments input:checked + span { color: #101112; background: #777c82; }
.video-draft-negative label { color: #d8dadd; font-size: 1.02rem; }
.video-draft-negative textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 92px;
    padding: 16px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: rgba(29, 29, 29, .62);
    font: inherit;
    resize: vertical;
}
.video-draft-negative textarea::placeholder { color: #69747c; }
.video-draft-negative small { color: #aeb2b6; }
.video-draft-actions { display: block; }
.video-draft-actions .universe-primary {
    width: 100%;
    min-height: 64px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 17px;
    color: #fff;
    background: rgba(29, 29, 29, .68);
    backdrop-filter: blur(16px);
    font-size: 1.12rem;
}
.video-draft-form > .studio-draft-attachment { justify-self: center; width: min(220px, 52%); }
.video-draft-form > .studio-draft-attachment .littleu-composer-thumbnail { aspect-ratio: 9 / 16; border-radius: 14px; }

.universe-workspace.is-portal-view .universe-panel.song-draft-panel { display:block; height:auto; min-height:0; overflow:visible; background:transparent; }
.song-draft-form { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; width:min(760px,100%); margin:0 auto; padding:2px 0 24px; }
.song-draft-header { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.song-draft-header h2 { margin:0; color:#fff; font-size:1.3rem; }
.song-draft-header>div { display:flex; gap:18px; }
.song-draft-add,.song-draft-close { width:44px; height:44px; padding:0; border:0; color:#fff; background:transparent; font:300 2.1rem/1 system-ui,sans-serif; cursor:pointer; }
.song-draft-field { display:grid; gap:9px; color:#bcc1ca; }
.song-draft-field input,.song-draft-field select,.song-draft-field textarea { box-sizing:border-box; width:100%; min-height:56px; padding:15px 17px; border:1px solid rgba(255,255,255,.16); border-radius:15px; color:#fff; background:rgba(29,29,29,.62); font:inherit; backdrop-filter:blur(16px); }
.song-draft-field textarea { min-height:105px; resize:vertical; }
.song-draft-form>.song-draft-field:first-of-type textarea { min-height:160px; font-size:1.05rem; }
.song-draft-lyrics textarea { min-height:240px; }
.song-draft-modes,.song-draft-duration { display:grid; gap:10px; margin:0; padding:0; border:0; }
.song-draft-modes legend,.song-draft-duration legend { color:#bcc1ca; }
.song-draft-modes>div,.song-draft-duration>div,.song-draft-segments { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; overflow:hidden; padding:3px; border-radius:999px; background:rgba(27,27,33,.68); }
.song-draft-modes input,.song-draft-duration input,.song-draft-segments input { position:absolute; opacity:0; pointer-events:none; }
.song-draft-modes label,.song-draft-duration label,.song-draft-segments label { cursor:pointer; }
.song-draft-modes span,.song-draft-duration span,.song-draft-segments span { display:grid; place-items:center; min-height:40px; padding:0 8px; border-radius:999px; color:#f2f2f3; text-align:center; }
.song-draft-modes input:checked+span,.song-draft-duration input:checked+span,.song-draft-segments input:checked+span { color:#111; background:rgba(116,118,127,.88); }
.song-draft-mode-help { margin:-8px 0 0; color:#aeb3bc; line-height:1.45; }
.song-draft-toggle { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:48px; color:#fff; font-size:1.05rem; }
.song-draft-toggle input { appearance:none; position:relative; width:58px; height:34px; margin:0; border-radius:999px; background:#4c4e57; cursor:pointer; }
.song-draft-toggle input::after { content:''; position:absolute; top:3px; left:3px; width:28px; height:28px; border-radius:50%; background:#fff; transition:transform .16s ease; }
.song-draft-toggle input:checked { background:#29cc63; }
.song-draft-toggle input:checked::after { transform:translateX(24px); }
.song-draft-advanced { padding:0; border:0; background:transparent; }
.song-draft-advanced summary { padding:4px 0 12px; color:#fff; font-size:1.2rem; cursor:pointer; }
.song-draft-advanced>div { display:grid; gap:16px; }
.song-draft-image { position:relative; justify-self:center; width:min(180px,46%); }
.song-draft-image img { display:block; width:100%; max-height:260px; border-radius:13px; object-fit:contain; }
.song-draft-image button { position:absolute; top:6px; right:6px; width:28px; height:28px; border:0; border-radius:50%; color:#fff; background:rgba(0,0,0,.8); cursor:pointer; }
.song-draft-submit { width:100%; min-height:62px; border:1px solid rgba(255,255,255,.22); border-radius:17px; color:#fff; background:rgba(29,29,29,.68); font-size:1.06rem; backdrop-filter:blur(16px); }
.song-draft-form [hidden] { display:none!important; }

.universe-workspace.is-portal-view .universe-panel.speech-draft-panel {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: rgba(0, 0, 0, .62);
}
.speech-draft-form {
    grid-template-columns: minmax(0, 1fr);
    width: min(760px, 100%);
    margin-inline: auto;
    gap: 24px;
    padding: 2px 0 24px;
}
.speech-draft-topbar { display: grid; grid-template-columns: auto minmax(150px, 1fr) auto; align-items: center; gap: 22px; }
.speech-draft-topbar select {
    min-width: 0;
    min-height: 44px;
    padding: 7px 30px 7px 4px;
    border: 0;
    color: #f2f2f2;
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
    cursor: pointer;
}
.speech-draft-topbar select option { color: #fff; background: #292929; }
.speech-draft-close {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font: 300 2rem/1 system-ui, sans-serif;
    cursor: pointer;
}
.speech-draft-field { position: relative; display: grid; }
.speech-draft-field textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 300px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 17px;
    color: #fff;
    background: rgba(29, 29, 29, .94);
    font: inherit;
    font-size: 1.02rem;
    resize: vertical;
}
.speech-draft-field textarea::placeholder { color: #707277; }
.speech-draft-field small { justify-self: end; margin: 8px 8px 0; color: #8d929a; }
.speech-draft-actions { display: block; }
.speech-draft-actions .universe-primary {
    width: 100%;
    min-height: 64px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 17px;
    color: #fff;
    background: rgba(29, 29, 29, .96);
    font-size: 1.12rem;
}

.studio-create-layout { grid-template-columns: minmax(0, 1fr); }
.studio-settings-column { position: static; }
.studio-settings-card { display: block; }
.studio-settings-card > * + * { margin-top: 18px; }

@media (max-width: 640px) {
    .studio-mode-button svg { width: 27px; height: 27px; }
    .studio-hub-prompt.studio-composer { grid-template-columns: auto auto minmax(0, 1fr) auto; border-radius: 16px; }
    .studio-composer select { grid-column: 3 / -1; grid-row: 2; max-width: none; width: 100%; }
    .studio-hub-prompt.studio-composer:has(.studio-composer-add[hidden]) { grid-template-columns: auto minmax(0, 1fr) auto; }
    .studio-hub-prompt.studio-composer:has(.studio-composer-add[hidden]) select { grid-column: 2 / -1; grid-row: 2; }
    .studio-hub-task > img { width: 78px; height: 58px; }
    .studio-task-modal { padding: 10px; }
    .studio-task-modal > section { max-height: calc(100dvh - 20px); padding: 20px 16px; border-radius: 16px; }
    .universe-workspace.is-portal-view .universe-panel.image-draft-panel { padding: 16px 14px; }
    .universe-workspace.is-portal-view .universe-panel.universe-tool-panel { padding: 16px 14px; }
    .universe-workspace.is-portal-view .universe-panel.universe-tool-panel > .universe-panel-head { margin-bottom: 16px; }
    .universe-workspace.is-portal-view .image-draft-panel > .universe-panel-head { margin-bottom: 16px; }
    .image-draft-form { gap: 14px; padding-bottom: 6px; }
    .image-draft-topbar { justify-content: space-between; gap: 12px; }
    .image-draft-topbar label { flex: 1 1 135px; }
    .image-draft-topbar select { flex: 1; }
    .image-draft-topbar input { flex: 1; min-width: 70px; }
    .image-draft-preview img { max-height: 300px; }
    .image-draft-prompt-group textarea { min-height: 180px; }
    .image-draft-actions .universe-primary { min-height: 54px; font-size: .96rem; }
    .image-draft-commands span { min-height: 38px; font-size: 1.1rem; }
    .image-draft-quality span { font-size: .78rem; }
    .universe-workspace.is-portal-view .universe-panel.video-draft-panel { padding: 16px 14px; }
    .video-draft-form { gap: 18px; padding-bottom: 6px; }
    .video-draft-request-card { padding: 16px; }
    .video-draft-add-menu { position: fixed; top: 108px; right: 18px; width: min(285px, calc(100vw - 36px)); }
    .video-draft-prompt-group textarea { min-height: 220px; padding: 20px; }
    .video-draft-settings, .video-draft-negative { padding: 16px; }
    .video-draft-segments span { min-height: 39px; padding-inline: 5px; font-size: .82rem; }
    .video-draft-actions .universe-primary { min-height: 58px; font-size: 1rem; }
    .universe-workspace.is-portal-view .universe-panel.speech-draft-panel { padding: 16px 14px; }
    .speech-draft-form { gap: 18px; padding-bottom: 6px; }
    .speech-draft-topbar { grid-template-columns: minmax(78px, auto) minmax(130px, 1fr) auto; gap: 10px; }
    .speech-draft-topbar select { font-size: .98rem; }
    .speech-draft-field textarea { min-height: 250px; padding: 20px; }
    .speech-draft-actions .universe-primary { min-height: 58px; font-size: 1rem; }
}
