/* Studio is a separate origin. The Telegram shell does not load this file. */
html.v3-studio {
  color-scheme: dark;
  --bg: #111318;
  --surface: #1a1e26;
  --surface-alt: #222834;
  --sidebar: #15181f;
  --ink: #edf0f5;
  --muted: #a6afbf;
  --line: #333b49;
  --accent: #ffce75;
  --accent-dark: #f8bc54;
  --accent-soft: #332a21;
  --action-fill: #ffce75;
  --action-hover: #ffdc97;
  --green: #84dab6;
  --red: #ff9a9c;
  --studio-field: #14171e;
  --studio-raised: #242a35;
  --studio-focus: #a4c8ff;
  --studio-space: clamp(20px, 3.2vw, 48px);
  --studio-rail: clamp(202px, 17vw, 246px);
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

.v3-studio body { background: var(--bg); color: var(--ink); }
.v3-studio h1 { font-size: clamp(28px, 3.35vw, 44px); font-weight: 680; letter-spacing: -.042em; }
.v3-studio h2 { font-weight: 650; letter-spacing: -.028em; }
.v3-studio :is(button, a, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--studio-focus);
  outline-offset: 3px;
  scroll-margin-block: 84px 40px;
}

.v3-studio .studio-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  background: radial-gradient(ellipse at 50% 12%, #30261f 0, transparent 54%), var(--bg);
}
.v3-studio .studio-login-card {
  width: min(100%, 438px);
  padding: clamp(24px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 70px #08090d80;
}
.v3-studio .studio-wordmark { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 16px; font-weight: 700; }
.v3-studio .studio-wordmark img, .v3-studio .lfa-brand .lfa-logo {
  display: block;
  width: 61px;
  height: 37px;
  flex: 0 0 auto;
  padding: 5px 7px;
  object-fit: contain;
  border-radius: 8px;
  background: #f4f4f1;
}
.v3-studio .studio-login-card h1 { margin-bottom: 10px; }
.v3-studio .studio-login-card p { margin-bottom: 26px; color: var(--muted); line-height: 1.55; }
.v3-studio .studio-login-card .btn { width: 100%; }

.v3-studio :is(.sidebar, .topbar, .mobile-bottom-nav) { background: var(--sidebar); border-color: var(--line); }
.v3-studio .sidebar { padding: 22px 14px 14px; }
.v3-studio .sidebar nav { grid-template-columns: minmax(0, 1fr); min-height: 0; overflow-y: auto; padding: 4px 3px; }
.v3-studio .sidebar .lfa-brand { gap: 11px; margin: 0 1px 24px; padding: 4px; height: auto; }
.v3-studio .brand-product { color: var(--ink); font-size: 15px; letter-spacing: .03em; text-transform: none; }
.v3-studio .sidebar :is(.nav-item, .project-nav, .profile-card) {
  min-height: 43px;
  color: var(--muted);
  border-radius: 9px;
  font-size: 14px;
}
.v3-studio .sidebar .nav-caption { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px; padding-inline: 0; }
.v3-studio .sidebar .nav-caption > .nav-item { min-width: 0; width: 100%; }
.v3-studio .sidebar .nav-caption > .icon-btn { width: 44px; }
.v3-studio .sidebar :is(.nav-item:hover, .project-nav:hover, .profile-card:hover) {
  background: var(--studio-raised);
  color: var(--ink);
}
.v3-studio .sidebar :is(.nav-item.active, .project-nav.selected) {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}
.v3-studio .project-nav { gap: 10px; }
.v3-studio .project-nav > span:last-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-studio .project-dot { background: var(--accent); }
.v3-studio .sidebar .profile-card { background: var(--surface); border-color: var(--line); color: var(--ink); }
.v3-studio .sidebar-bottom { border-color: var(--line); }
.v3-studio .topbar { height: 64px; padding-inline: var(--studio-space); }
.v3-studio .breadcrumbs, .v3-studio .project-switcher { color: var(--muted); font-size: 13px; }
.v3-studio .breadcrumbs strong { color: var(--ink); }
.v3-studio .page { min-width: 0; }
.v3-studio .page main {
  max-width: 1520px;
  padding: clamp(24px, 3vw, 44px) var(--studio-space) 44px;
}
.v3-studio .page-heading { margin-bottom: 24px; gap: 16px; }
.v3-studio .page-heading .eyebrow { color: var(--muted); font-weight: 550; letter-spacing: .045em; }
.v3-studio .project-description-preview p { max-width: 66ch; color: var(--muted); }
.v3-studio .page-heading :is(.heading-actions, .project-title) { gap: 10px; }

.v3-studio .project-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 286px), 1fr)); gap: 16px; background: transparent; border: 0; }
.v3-studio .project-row {
  position: relative;
  min-width: 0;
  max-width: 520px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.v3-studio .project-open {
  display: flex;
  min-height: 176px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 19px 60px 19px 19px;
  border-radius: inherit;
  color: var(--ink);
}
.v3-studio .project-open:hover { background: var(--studio-raised); }
.v3-studio .project-open > div { min-width: 0; max-width: 100%; }
.v3-studio .project-open h2 { margin: 0; overflow-wrap: anywhere; }
.v3-studio .project-open p { margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.v3-studio .project-symbol { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.v3-studio .project-video-count {
  display: inline-flex; gap: 7px; align-items: center; margin-top: auto;
  color: var(--accent); font-size: 13px; font-weight: 650;
}
.v3-studio .project-row .project-settings { position: absolute; top: 16px; right: 16px; }
.v3-studio .project-list > .empty { grid-column: 1 / -1; }

.v3-studio .library-toolbar {
  display: grid;
  grid-template: "tools sort" auto "filters filters" auto / minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.v3-studio .library-tools { grid-area: tools; display: flex; min-width: 0; gap: 9px; }
.v3-studio .search { flex: 1; width: auto; min-width: 0; }
.v3-studio .search input { min-width: 0; width: 100%; }
.v3-studio .task-sort { grid-area: sort; margin: 0; align-self: stretch; }
.v3-studio .filter-tabs { grid-area: filters; justify-self: start; max-width: 100%; flex-wrap: wrap; }
.v3-studio :is(.task-sort, .filter-tabs, .view-switch) { background: var(--studio-field); border-color: var(--line); }
.v3-studio :is(.filter-tabs, .task-sort) button {
  min-height: 37px;
  color: var(--muted);
  font-size: 13px;
}
.v3-studio :is(.filter-tabs, .task-sort, .view-switch) :is(.active, [aria-pressed="true"]) {
  background: var(--accent-soft);
  color: var(--accent);
}
.v3-studio :is(.task-card, .list-footer, .empty, .settings-main, .editor-panel) {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.v3-studio .task-card { border: 1px solid var(--line); border-radius: 13px; box-shadow: none; }
.v3-studio .task-card:has(.task-link:hover) { border-color: #68758a; }
.v3-studio .task-card .task-link { min-width: 0; color: var(--ink); }
.v3-studio .task-card .task-info { min-width: 0; }
.v3-studio .task-card :is(h2, .task-action-label) { overflow-wrap: anywhere; }
.v3-studio .task-card .task-action-label { color: var(--accent); }
.v3-studio .task-rows.list-view .task-link { min-height: 80px; }
.v3-studio .task-info .task-added-date { color: var(--muted); }
.v3-studio .task-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 252px), 1fr)); gap: 15px; }
.v3-studio .task-grid.list-view { grid-template-columns: minmax(0, 1fr); }
.v3-studio .task-grid:not(.list-view) > .task-card:only-child { max-width: 420px; }
.v3-studio .status { color: var(--muted); }
.v3-studio .status.ready { color: var(--green); }
.v3-studio .status.processing { color: #a4c8ff; }
.v3-studio .status.pending { color: var(--accent); }
.v3-studio .status.failed { color: var(--red); }
.v3-studio .status > i { background: currentColor; }
.v3-studio .filter-tabs [data-task-count] { background: var(--studio-raised); color: var(--muted); }
.v3-studio .task-list, .v3-studio #task-list, .v3-studio .task-rows { background: transparent; border: 0; }
.v3-studio .task-thumb { background: var(--studio-raised); color: var(--muted); }
.v3-studio .task-details .status { background: var(--studio-raised); }
.v3-studio .task-details .status.ready { background: #223b35; }
.v3-studio .task-details .status.failed { background: #40272d; }
.v3-studio .analytics-platform-tabs button.selected { color: #201803; }
.v3-studio .list-footer { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }

.v3-studio .editor-heading { align-items: flex-start; gap: 14px; margin-bottom: 17px; }
.v3-studio .editor-title-row { gap: 10px; }
.v3-studio .editor-title-row h1 { font-size: clamp(24px, 2.45vw, 34px); overflow-wrap: anywhere; }
.v3-studio .section-tabs { margin: 0 0 18px; border-color: var(--line); }
.v3-studio .section-tabs .main-sections { gap: 6px; flex-wrap: wrap; }
.v3-studio .section-tabs button { min-height: 44px; margin: 0; padding: 8px 13px; color: var(--muted); border-radius: 8px 8px 0 0; font-size: 14px; }
.v3-studio .section-tabs button:hover { color: var(--ink); background: var(--studio-raised); }
.v3-studio .section-tabs button.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.v3-studio .editor-workspace > :is(.player-panel, .editor-panel) { min-width: 0; width: auto; }
.v3-studio .editor-panel { min-height: 0; padding: clamp(17px, 2.1vw, 27px); border: 1px solid var(--line); border-radius: 14px; }
.v3-studio .text-workspace > .editor-panel { width: min(100%, 900px); }
.v3-studio .editor-panel .editor-intro { margin-bottom: 16px; }
.v3-studio .studio-player-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 630;
}
.v3-studio .player-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.v3-studio .player-stage { min-height: 0; padding: 16px; border: 0; background: #0c0e13; }
.v3-studio .player-panel .video-canvas { width: min(100%, 264px); background: #0c0e13; border-radius: 9px; box-shadow: none; }
.v3-studio .player-panel video { max-height: 58vh; object-fit: contain; }
.v3-studio .media-loading { color: var(--muted); background: var(--studio-field); }
.v3-studio :is(.transcript, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  background: var(--studio-field);
  color: var(--ink);
  border-color: var(--line);
}
.v3-studio :is(input,textarea)::placeholder { color: var(--muted); opacity: 1; }
.v3-studio #transcript { min-height: 220px; padding: 14px 16px; font-size: 15px; line-height: 1.68; }
.v3-studio .editor-actionbar { border-color: var(--line); }
.v3-studio .editor-actionbar > .btn { min-height: 44px; }
.v3-studio :is(.draft-state, .text-footer, .accent-footer, .accent-hint) { color: var(--muted); }
.v3-studio .accent-modes button, .v3-studio .accent-word { color: var(--ink); }
.v3-studio .accent-word[aria-pressed="true"], .v3-studio .accent-layer mark {
  background: var(--accent); color: #201803;
}

.v3-studio .icon-btn { min-width: 40px; min-height: 40px; color: var(--muted); border-color: var(--line); }
.v3-studio .icon-btn:hover { background: var(--studio-raised); color: var(--ink); }
.v3-studio .btn { min-height: 42px; padding: 9px 14px; font-size: 14px; border-radius: 8px; }
.v3-studio .btn.primary { color: #201803; background: var(--action-fill); box-shadow: none; }
.v3-studio .btn.primary:hover:not(:disabled) { background: var(--action-hover); }
.v3-studio .btn.secondary { color: var(--ink); background: var(--studio-field); border-color: var(--line); }
.v3-studio .btn.secondary:hover:not(:disabled) { background: var(--studio-raised); }
.v3-studio .btn:disabled { opacity: .57; }
.v3-studio :is(dialog, .account-card, .settings-main, .preset, .suggestion, .prepare-step) {
  color: var(--ink); background: var(--surface); border-color: var(--line);
}
.v3-studio dialog::backdrop { background: #080a0dcc; }
.v3-studio .settings-layout { grid-template-columns: minmax(0, 1fr); max-width: 800px; }
.v3-studio .settings-main { border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; }
.v3-studio .settings-section { border-color: var(--line); }
.v3-studio .notice { color: #d3e2f7; background: #243248; border-color: #425676; }
.v3-studio .notice.error { color: #ffd2d4; background: #40272d; border-color: #6b3b44; }
.v3-studio .notice.success { color: #bcebd7; background: #223b35; border-color: #3c6053; }

.v3-studio :is([data-action="delete-task"], [data-action="delete-project"],
  .account-sessions-disclosure,
  .danger-section, .settings-aside) { display: none; }

@media (min-width: 801px) {
  .v3-studio .sidebar { width: var(--studio-rail); }
  .v3-studio .page { margin-left: var(--studio-rail); }
  .v3-studio .topbar-profile { display: none; }
}
@media (min-width: 1024px) {
  .v3-studio .editor-workspace.has-final-player {
    display: grid;
    grid-template-columns: minmax(260px, .76fr) minmax(0, 1.24fr);
    gap: clamp(16px, 2.2vw, 29px);
    align-items: start;
  }
  .v3-studio .player-panel { position: sticky; top: 80px; }
}
@media (max-width: 1023px) {
  .v3-studio .editor-workspace.has-final-player { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .v3-studio .player-panel { position: static; }
  .v3-studio .player-panel .video-canvas { width: min(100%, 200px); }
}
@media (max-width: 640px) {
  .v3-studio .page main { padding-bottom: 94px; }
  .v3-studio .library-toolbar { grid-template: "tools" auto "filters" auto "sort" auto / minmax(0, 1fr); }
  .v3-studio .editor-workspace { margin-inline: 0; }
  .v3-studio .section-tabs { margin-left: 0; margin-right: 0; padding-inline: 0; }
  .v3-studio .mobile-bottom-nav { display: flex; gap: 10px; justify-content: space-around; }
  .v3-studio .mobile-bottom-nav .bottom-nav-item { flex: 1; color: var(--muted); }
  .v3-studio .mobile-bottom-nav .bottom-nav-item.active { color: var(--accent); background: var(--accent-soft); }
}
@media (prefers-reduced-motion: reduce) {
  .v3-studio :is(.btn, .nav-item, .project-open, .task-link, .section-tabs button) { transition: none; }
}

/* Desktop spacing and control contrast are local to the Studio shell. */
.v3-studio .page main {
  margin-inline: auto;
  padding-top: clamp(24px, 2.8vw, 40px);
}
.v3-studio .page-heading h1 { line-height: 1.12; }
.v3-studio .page:has(.topbar .project-switcher) .page-heading .eyebrow { display: none; }
.v3-studio #task-list > .empty { border: 1px solid var(--line); border-radius: 14px; }
.v3-studio .page-heading p { max-width: 62ch; font-size: 15px; line-height: 1.55; }
.v3-studio .breadcrumbs { gap: 10px; min-width: 0; }
.v3-studio .topbar-actions { gap: 10px; flex: 0 0 auto; }
.v3-studio .project-switcher:hover { background: var(--studio-raised); }
.v3-studio .library-toolbar { padding: 14px; gap: 12px; }
.v3-studio .library-toolbar .search { min-height: 44px; }
.v3-studio .library-toolbar .search input { min-height: 44px; font-size: 14px; }
.v3-studio .filter-tabs button { padding-inline: 12px; min-height: 40px; }
.v3-studio .task-sort button { min-height: 44px; }
.v3-studio .task-rows.list-view .task-link { min-height: 86px; }
.v3-studio .task-rows.list-view .task-info h2 { font-size: 16px; }
.v3-studio .task-rows .task-link:focus-visible { outline-offset: -3px; }
.v3-studio .task-rows .task-link:hover { background: var(--studio-raised); }
.v3-studio .task-details .status { font-size: 12px; }

.v3-studio .editor-heading { margin-bottom: 14px; }
.v3-studio .editor-intro h2 { font-size: clamp(21px, 2vw, 27px); line-height: 1.2; }
.v3-studio .section-tabs .main-sections { gap: 5px; }
.v3-studio .section-tabs button:not(.active) { border-bottom-color: transparent; }
.v3-studio .player-panel .video-canvas { width: min(100%, 282px); }
.v3-studio #transcript {
  min-height: clamp(192px, 27vh, 336px);
  padding: 14px 16px;
  font-size: 16px;
}
.v3-studio #app .editor-workspace .editor-actionbar:not([hidden]) {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.v3-studio #app .editor-workspace .editor-actionbar .btn {
  min-height: 44px;
  padding: 9px 14px;
  gap: 8px;
  font-size: 14px;
  white-space: normal;
}
.v3-studio #app .editor-workspace .editor-actionbar .btn.primary {
  background: var(--action-fill);
  border-color: var(--action-fill);
  color: #201803;
}
.v3-studio #app .editor-workspace .editor-actionbar .btn.primary:hover:not(:disabled) {
  background: var(--action-hover);
  border-color: var(--action-hover);
}

.v3-studio dialog .modal-heading { padding-inline-end: 48px; }
.v3-studio dialog .modal-heading h2 { line-height: 1.19; overflow-wrap: anywhere; }
.v3-studio dialog > .modal-close {
  width: 44px;
  height: 44px;
  margin: 0;
}
.v3-studio dialog .modal-actions .btn { min-height: 44px; }
.v3-studio dialog #upload-file-status:empty,
.v3-studio dialog #modal-error:empty { display: none; }
.v3-studio .studio-upload-details { display: grid; gap: 12px; align-content: start; min-width: 0; }
.v3-studio .studio-upload-details > .automatic-option { margin-block: 0; }
.v3-studio #modal #upload-form .upload-actions .btn { min-height: 44px; }
.v3-studio .stars-card { background: var(--studio-field); }
.v3-studio .stars-card :is(h3, p) { line-height: 1.5; }
.v3-studio .stars-history :is(p, time) { font-size: 13px; }
.v3-studio .social-card { border-color: var(--line); align-content: start; }
.v3-studio .social-card .social-account { min-width: 0; }
.v3-studio .social-account strong,
.v3-studio .social-account p { overflow-wrap: anywhere; }

@media (min-width: 801px) {
  .v3-studio .desktop-project-title { display: none; }
  .v3-studio .topbar .project-switcher {
    display: inline-flex;
    max-width: min(38vw, 420px);
    padding: 8px 11px;
    color: var(--ink);
  }
  .v3-studio .topbar .project-switcher > span { min-width: 0; }
  .v3-studio .topbar .project-switcher > .icon { flex: 0 0 auto; }
}

@media (min-width: 940px) {
  .v3-studio #modal.upload-dialog:has(#upload-form) {
    width: min(880px, calc(100vw - 64px));
    max-height: calc(100dvh - 48px);
    padding: 24px;
  }
  .v3-studio #upload-form .upload-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 22px;
    align-items: start;
  }
  .v3-studio #upload-form #upload-design {
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--studio-field);
  }
  .v3-studio #upload-form .design-frame { margin: 0 auto 10px; }
  .v3-studio #upload-form .design-frame-canvas { width: min(100%, 145px); }
  .v3-studio #upload-form .preset-selector { margin: 8px auto 0; }
  .v3-studio #upload-form .upload-actions {
    position: sticky;
    bottom: -24px;
    z-index: 1;
    justify-content: flex-end;
    margin: 14px -24px -24px;
    padding: 12px 24px;
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
}

@media (max-width: 640px) {
  .v3-studio .page main { padding-inline: 16px; }
  .v3-studio .task-rows.list-view .task-info h2 { font-size: 14px; }
  .v3-studio .task-details .status { font-size: 11px; }
  .v3-studio .section-tabs .main-sections button { min-height: 48px; }
}

.v3-studio .editor-title-row {
  align-items: center;
  flex-wrap: nowrap;
}
.v3-studio .editor-title-row .rename-task {
  flex: 0 0 44px;
  min-height: 44px;
  margin: 0;
}
.v3-studio .workflow-progress {
  padding: 14px;
  background: var(--studio-field);
}
.v3-studio .workflow-progress-footer { gap: 8px 14px; }
.v3-studio .workflow-progress-footer p,
.v3-studio .automation-stages :is(span, small) { overflow-wrap: anywhere; }
.v3-studio .editor-panel .result-review .btn { min-height: 44px; }
.v3-studio #app .editor-workspace .player-panel .editor-actionbar:not([hidden]) {
  justify-content: stretch;
  margin: 0;
  padding: 14px 16px;
}
.v3-studio #app .player-panel .editor-actionbar > .btn { width: 100%; }
.v3-studio #app .player-panel .editor-actionbar .action-hint { width: 100%; }
.v3-studio .player-panel #owner-task-editor:not(:empty) { padding: 0 16px 14px; }

@media (max-width: 800px) {
  .v3-studio .studio-text-view > .player-panel { display: none; }
}
@media (max-width: 640px) {
  .v3-studio .editor-workspace:not(.studio-text-view) .player-panel .video-canvas {
    width: min(100%, 220px, 23vh);
    width: min(100%, 220px, 23dvh);
  }
  .v3-studio .editor-heading { gap: 9px; }
  .v3-studio .editor-heading > div { min-width: 0; }
  .v3-studio .section-tabs .main-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v3-studio .section-tabs .main-sections button {
    justify-content: flex-start;
    padding-inline: 8px;
    text-align: start;
    white-space: normal;
  }
}

.v3-studio .studio-subtitle-workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.v3-studio .studio-subtitle-workspace > .design-frame {
  width: 100%;
  margin: 0;
  align-self: start;
}
.v3-studio .studio-subtitle-workspace .design-frame-canvas {
  width: min(100%, 204px);
}
.v3-studio .studio-subtitle-workspace .design-settings { margin: 0; min-width: 0; }
.v3-studio .studio-subtitle-workspace .design-frame figcaption {
  max-width: 32ch;
  margin-inline: auto;
  line-height: 1.4;
}

.v3-studio .compact-presets { width: 100%; max-width: none; }
.v3-studio :is(.compact-presets .preset-carousel, .compact-presets .preset-colors) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
  padding: 3px;
  gap: 8px;
  overflow: visible;
  scroll-snap-type: none;
}
.v3-studio .compact-presets .preset-carousel {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 142px), 1fr));
}
.v3-studio .compact-presets .preset-card {
  padding: 0;
  border-radius: 9px;
  box-shadow: none;
}
.v3-studio .compact-presets .preset-card:not(.selected):hover { border-color: var(--muted); }
.v3-studio .compact-presets .preset-card.selected { background: var(--accent-soft); }
.v3-studio .compact-presets .preset-label {
  justify-content: flex-start;
  min-height: 44px;
  padding: 8px 10px;
  white-space: normal;
  text-align: start;
  font-size: 13px;
}
.v3-studio .compact-presets .preset-label .icon {
  display: block;
  margin-inline-start: auto;
}
.v3-studio .compact-presets .preset-palette { margin-top: 12px; }
.v3-studio .compact-presets .palette-label { display: block; }
.v3-studio .compact-presets .color-choice {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  justify-content: flex-start;
  text-align: start;
  white-space: normal;
}
.v3-studio .compact-presets .color-choice span { min-width: 0; overflow-wrap: anywhere; }
.v3-studio .compact-presets .color-choice :is(i, .icon) { flex-shrink: 0; }
.v3-studio .compact-presets .color-choice .icon { margin-inline-start: auto; }
.v3-studio .compact-presets .caption-alignment button {
  min-width: 0;
  min-height: 44px;
  white-space: normal;
}

@media (min-width: 1000px) {
  .v3-studio .studio-subtitle-workspace {
    grid-template-columns: minmax(160px, .75fr) minmax(0, 1.6fr);
    gap: clamp(20px, 2.2vw, 36px);
    align-items: start;
  }
  .v3-studio .studio-subtitle-workspace .design-frame-canvas {
    width: min(100%, 204px, 24vh);
    width: min(100%, 204px, 24dvh);
  }
  .v3-studio .studio-subtitle-workspace .design-settings {
    padding-inline-start: clamp(12px, 1.8vw, 26px);
    border-inline-start: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .v3-studio .studio-subtitle-workspace .design-frame-canvas {
    width: min(100%, 150px);
    height: auto;
  }
}
