/* =========================================================
   Vamriko - LOGO TO INTRO STUDIO
   LARGE PROFESSIONAL VIDEO PREVIEW
   CSS ONLY UPGRADE
   ========================================================= */
.logo-studio {
    --studio-bg:#070910;
    --panel:#0d1220;
    --panel2:#101728;
    --panel3:#080c15;
    --border:rgba(255,255,255,.085);
    --border2:rgba(129,120,255,.38);
    --purple:#8178ff;
    --purple2:#635bff;
    --text:#f4f6ff;
    --muted:#858fa7;
    display:grid;
    /* Give the center preview much more room */
    grid-template-columns:270px minmax(600px,1fr) 270px;
    gap:16px;
    padding:16px;
    min-height:900px;
    border:1px solid var(--border);
    border-radius:22px;
    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(99,91,255,.15),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            #090d17,
            #05070d
        );
    box-shadow:
        0 35px 100px rgba(0,0,0,.42),
        inset 0 1px rgba(255,255,255,.025);
}
.logo-studio *,
.logo-studio *::before,
.logo-studio *::after {
    box-sizing:border-box;
}
/* =========================================================
   SIDEBARS
   ========================================================= */
.studio-sidebar {
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:12px;
}
/* =========================================================
   PANELS
   ========================================================= */
.studio-panel {
    border:1px solid var(--border);
    border-radius:16px;
    background:
        linear-gradient(
            180deg,
            rgba(16,23,40,.98),
            rgba(8,12,21,.98)
        );
    box-shadow:
        0 15px 45px rgba(0,0,0,.2);
    overflow:hidden;
}
.studio-panel-title {
    min-height:45px;
    display:flex;
    align-items:center;
    gap:8px;
    padding:0 15px;
    border-bottom:1px solid var(--border);
    color:#cbd2e5;
    font-size:11px;
    font-weight:850;
    letter-spacing:.1em;
    text-transform:uppercase;
}
.studio-panel-title .panel-dot {
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--purple);
    box-shadow:
        0 0 12px rgba(129,120,255,.8);
}
.studio-panel-body {
    padding:14px;
}
/* =========================================================
   MAIN PREVIEW AREA
   ========================================================= */
.studio-main {
    min-width:0;
    display:flex;
    flex-direction:column;
    /* IMPORTANT:
       center column becomes the visual focus */
    width:100%;
}
/* =========================================================
   LARGE VIDEO PLAYER
   ========================================================= */
.studio-preview-shell {
    position:relative;
    width:100%;
    /*
       Large player:
       desktop = approximately 16:9
    */
    aspect-ratio:16 / 9;
    min-height:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    border:1px solid var(--border);
    border-radius:18px;
    overflow:hidden;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(99,91,255,.11),
            transparent 42%
        ),
        #02040a;
    box-shadow:
        0 20px 60px rgba(0,0,0,.28),
        inset 0 1px rgba(255,255,255,.025);
}
.studio-preview-shell.fullscreen {
    background:#000;
}
/* =========================================================
   VIDEO CANVAS CONTAINER
   ========================================================= */
.studio-preview {
    position:relative;
    width:100%;
    height:100%;
    min-height:0;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
/* =========================================================
   CANVAS
   ========================================================= */
#introCanvas {
    display:block;
    /*
       Fill the available player area
       while preserving the actual video ratio.
    */
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    border-radius:5px;
    background:#02040a;
    box-shadow:
        0 25px 80px rgba(0,0,0,.55),
        0 0 70px rgba(99,91,255,.08);
    transform-origin:center center;
    transition:
        transform .15s ease;
}
/* =========================================================
   PLAYER TOP HUD
   ========================================================= */
.preview-top {
    position:absolute;
    left:16px;
    right:16px;
    top:16px;
    z-index:5;
    display:flex;
    justify-content:space-between;
    pointer-events:none;
}
.preview-badge {
    padding:7px 10px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(12px);
    color:#b7bfd3;
    font-size:9px;
    font-weight:850;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.preview-time {
    padding:7px 10px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(12px);
    color:#e5e9f5;
    font:
        700 11px
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;
}
/* =========================================================
   PLAYER CONTROLS OVERLAY
   ========================================================= */
.preview-bottom {
    position:absolute;
    left:16px;
    right:16px;
    bottom:16px;
    z-index:5;
    display:flex;
    align-items:center;
    gap:7px;
    pointer-events:auto;
}
.preview-tool {
    width:36px;
    height:34px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.09);
    border-radius:8px;
    background:rgba(0,0,0,.52);
    backdrop-filter:blur(12px);
    color:#d9def0;
    cursor:pointer;
    transition:.16s ease;
}
.preview-tool:hover {
    border-color:var(--border2);
    background:
        rgba(129,120,255,.14);
    transform:translateY(-1px);
}
.preview-spacer {
    flex:1;
}
/* =========================================================
   TRANSPORT
   ========================================================= */
.studio-transport {
    display:flex;
    align-items:center;
    gap:7px;
    margin-top:12px;
}
.studio-btn {
    min-height:38px;
    padding:0 12px;
    border:1px solid var(--border);
    border-radius:9px;
    background:
        rgba(255,255,255,.035);
    color:#dce2f2;
    font:inherit;
    font-size:11px;
    font-weight:780;
    cursor:pointer;
    transition:.16s ease;
}
.studio-btn:hover {
    transform:translateY(-1px);
    border-color:var(--border2);
    background:
        rgba(129,120,255,.09);
}
.studio-btn.primary {
    border-color:
        rgba(129,120,255,.5);
    background:
        linear-gradient(
            135deg,
            var(--purple2),
            var(--purple)
        );
    color:#fff;
    box-shadow:
        0 8px 25px rgba(99,91,255,.22);
}
.studio-btn.danger {
    color:#ffb5bd;
}
.studio-spacer {
    flex:1;
}
.studio-select {
    min-height:38px;
    padding:0 10px;
    border:1px solid var(--border);
    border-radius:9px;
    background:#080c15;
    color:#dce2f2;
    font:inherit;
    font-size:11px;
    outline:none;
}
/* =========================================================
   FIELDS
   ========================================================= */
.studio-field {
    margin-bottom:13px;
}
.studio-field:last-child {
    margin-bottom:0;
}
.studio-field label {
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-bottom:7px;
    color:#aeb7ca;
    font-size:10px;
    font-weight:780;
}
.studio-value {
    color:#737e96;
    font:
        600 10px
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;
}
.studio-field input[type="text"],
.studio-field input[type="number"],
.studio-field select,
.studio-field textarea {
    width:100%;
    min-height:37px;
    padding:0 10px;
    border:1px solid var(--border);
    border-radius:8px;
    outline:none;
    background:#080c15;
    color:#e9edfa;
    font:inherit;
    font-size:11px;
}
.studio-field textarea {
    padding:9px 10px;
    min-height:70px;
    resize:vertical;
}
.studio-field input:focus,
.studio-field select:focus,
.studio-field textarea:focus {
    border-color:
        rgba(129,120,255,.58);
    box-shadow:
        0 0 0 3px
        rgba(129,120,255,.08);
}
.studio-field input[type="range"] {
    width:100%;
    accent-color:var(--purple);
}
/* =========================================================
   GRIDS
   ========================================================= */
.studio-grid-2 {
    display:grid;
    grid-template-columns:
        1fr 1fr;
    gap:8px;
}
.studio-grid-3 {
    display:grid;
    grid-template-columns:
        1fr 1fr 1fr;
    gap:7px;
}
/* =========================================================
   COLOR
   ========================================================= */
.color-row {
    display:grid;
    grid-template-columns:
        1fr 42px;
    gap:7px;
}
.color-row input[type="color"] {
    width:42px;
    height:37px;
    padding:3px;
    border:1px solid var(--border);
    border-radius:8px;
    background:#080c15;
    cursor:pointer;
}
/* =========================================================
   LOGO UPLOAD
   ========================================================= */
.logo-upload {
    position:relative;
    display:block;
    padding:18px 12px;
    border:
        1px dashed
        rgba(129,120,255,.38);
    border-radius:11px;
    background:
        rgba(129,120,255,.035);
    text-align:center;
    cursor:pointer;
}
.logo-upload:hover {
    border-color:
        rgba(129,120,255,.75);
    background:
        rgba(129,120,255,.075);
}
.logo-upload strong {
    display:block;
    color:#e7eaf6;
    font-size:12px;
}
.logo-upload small {
    display:block;
    margin-top:5px;
    color:#737d94;
    font-size:9px;
}
.logo-upload input {
    display:none;
}
/* =========================================================
   DIVIDERS / TITLES
   ========================================================= */
.studio-divider {
    height:1px;
    margin:14px 0;
    background:
        rgba(255,255,255,.06);
}
.studio-section-title {
    margin-bottom:11px;
    color:#777f96;
    font-size:9px;
    font-weight:850;
    letter-spacing:.09em;
    text-transform:uppercase;
}
/* =========================================================
   TABS
   ========================================================= */
.studio-tabs {
    display:grid;
    grid-template-columns:
        repeat(3,1fr);
    gap:5px;
    margin-bottom:11px;
}
.studio-tab {
    min-height:32px;
    border:1px solid var(--border);
    border-radius:7px;
    background:#080c15;
    color:#7f89a0;
    font-size:9px;
    font-weight:800;
    cursor:pointer;
}
.studio-tab.active {
    color:#fff;
    border-color:
        rgba(129,120,255,.48);
    background:
        rgba(129,120,255,.12);
}
/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
    margin-top:12px;
    padding:13px;
    border:1px solid var(--border);
    border-radius:15px;
    background:
        linear-gradient(
            180deg,
            #0d1220,
            #080c14
        );
}
.timeline-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;
}
.timeline-header strong {
    color:#dce2f0;
    font-size:11px;
}
.timeline-header span {
    color:#727c93;
    font:
        10px
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;
}
.timeline-ruler {
    position:relative;
    height:17px;
    color:#656f85;
    font:
        9px
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;
}
.timeline-ruler span {
    position:absolute;
    transform:
        translateX(-50%);
}
.timeline-track {
    position:relative;
    height:88px;
    border:1px solid
        rgba(255,255,255,.06);
    border-radius:9px;
    overflow:hidden;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,.025) 0,
            rgba(255,255,255,.025) 1px,
            transparent 1px,
            transparent 10%
        ),
        #070a12;
    cursor:pointer;
    touch-action:none;
}
.timeline-row {
    position:absolute;
    left:0;
    right:0;
    height:39px;
}
.timeline-row.logo {
    top:4px;
}
.timeline-row.text {
    top:45px;
}
.timeline-label {
    position:absolute;
    left:5px;
    top:5px;
    z-index:2;
    color:#626d83;
    font-size:8px;
    font-weight:800;
    pointer-events:none;
}
.timeline-block {
    position:absolute;
    top:5px;
    bottom:5px;
    display:flex;
    align-items:center;
    padding:0 10px;
    border:1px solid
        rgba(129,120,255,.38);
    border-radius:6px;
    background:
        linear-gradient(
            90deg,
            rgba(99,91,255,.25),
            rgba(129,120,255,.08)
        );
    color:#bfc5d8;
    font-size:9px;
    font-weight:800;
    overflow:hidden;
    white-space:nowrap;
}
.timeline-block.text-block {
    border-color:
        rgba(76,188,255,.35);
    background:
        linear-gradient(
            90deg,
            rgba(76,188,255,.18),
            rgba(76,188,255,.06)
        );
}
.timeline-progress {
    position:absolute;
    inset:0 auto 0 0;
    width:0;
    background:
        linear-gradient(
            90deg,
            rgba(99,91,255,.12),
            rgba(129,120,255,.04)
        );
    pointer-events:none;
}
.timeline-playhead {
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    width:2px;
    background:#b4adff;
    box-shadow:
        0 0 15px
        rgba(129,120,255,.9);
    z-index:10;
    pointer-events:none;
}
.timeline-playhead::before {
    content:"";
    position:absolute;
    top:-1px;
    left:50%;
    width:9px;
    height:9px;
    border-radius:50%;
    transform:
        translateX(-50%);
    background:#c5c0ff;
    box-shadow:
        0 0 15px
        rgba(129,120,255,.9);
}
/* =========================================================
   ACTIONS
   ========================================================= */
.studio-actions {
    display:flex;
    gap:7px;
    margin-top:11px;
}
.studio-actions .studio-btn {
    flex:1;
}
/* =========================================================
   PRESETS
   ========================================================= */
.badge {
    display:inline-flex;
    padding:4px 7px;
    border:
        1px solid
        rgba(129,120,255,.25);
    border-radius:6px;
    background:
        rgba(129,120,255,.06);
    color:#9e97ff;
    font-size:8px;
    font-weight:850;
    letter-spacing:.07em;
    text-transform:uppercase;
}
.preset-grid {
    display:grid;
    grid-template-columns:
        1fr 1fr;
    gap:7px;
}
.preset {
    min-height:58px;
    padding:9px;
    border:1px solid var(--border);
    border-radius:9px;
    background:#080c15;
    color:#adb5c8;
    text-align:left;
    cursor:pointer;
    transition:.16s ease;
}
.preset:hover {
    border-color:var(--border2);
    background:
        rgba(129,120,255,.07);
}
.preset strong {
    display:block;
    color:#dce1ef;
    font-size:9px;
}
.preset small {
    display:block;
    margin-top:4px;
    color:#69748c;
    font-size:8px;
}
/* =========================================================
   RANGE
   ========================================================= */
.range-row {
    display:grid;
    grid-template-columns:
        1fr 48px;
    gap:8px;
    align-items:center;
}
.range-number {
    width:48px !important;
    min-height:32px !important;
    padding:0 6px !important;
    text-align:center;
}
/* =========================================================
   STATUS
   ========================================================= */
.studio-status {
    margin-top:9px;
    min-height:18px;
    color:#747e95;
    font-size:9px;
}
/* =========================================================
   LARGE DESKTOP
   ========================================================= */
@media(min-width:1400px) {
    .logo-studio {
        grid-template-columns:
            290px
            minmax(700px,1fr)
            290px;
        gap:18px;
        padding:18px;
    }
    .studio-preview-shell {
        padding:20px;
        border-radius:20px;
    }
}
/* =========================================================
   LAPTOP
   ========================================================= */
@media(max-width:1250px) {
    .logo-studio {
        grid-template-columns:
            250px
            minmax(500px,1fr)
            250px;
        gap:12px;
    }
}
/* =========================================================
   TABLET
   ========================================================= */
@media(max-width:1050px) {
    .logo-studio {
        display:grid;
        grid-template-columns:1fr;
        min-height:auto;
    }
    .studio-main {
        order:-1;
    }
    .studio-preview-shell {
        /*
           Keep a real video-player shape
           instead of a tiny square.
        */
        width:100%;
        aspect-ratio:16 / 9;
        min-height:420px;
    }
    .studio-sidebar {
        display:grid;
        grid-template-columns:
            1fr 1fr;
        gap:12px;
    }
}
/* =========================================================
   MOBILE
   ========================================================= */
@media(max-width:700px) {
    .logo-studio {
        display:flex;
        flex-direction:column;
        padding:7px;
        gap:10px;
        border-radius:15px;
    }
    .studio-main {
        width:100%;
        order:-1;
    }
    .studio-preview-shell {
        /*
           Mobile player:
           wide enough to be readable
           without taking the entire screen.
        */
        width:100%;
        aspect-ratio:16 / 9;
        min-height:0;
        padding:7px;
        border-radius:13px;
    }
    .studio-preview {
        width:100%;
        height:100%;
    }
    #introCanvas {
        width:100%;
        height:100%;
        max-width:100%;
        max-height:100%;
        border-radius:4px;
    }
    .preview-top {
        left:9px;
        right:9px;
        top:9px;
    }
    .preview-bottom {
        left:9px;
        right:9px;
        bottom:9px;
    }
    .preview-badge {
        padding:5px 7px;
        font-size:7px;
    }
    .preview-time {
        padding:5px 7px;
        font-size:9px;
    }
    .preview-tool {
        width:32px;
        height:30px;
    }
    .studio-transport {
        flex-wrap:wrap;
    }
    .studio-spacer {
        display:none;
    }
    .studio-select {
        flex:1;
    }
    .studio-sidebar {
        display:flex;
        flex-direction:column;
    }
    .studio-actions {
        flex-direction:column;
    }
}
/* =========================================================
   SMALL MOBILE
   ========================================================= */
@media(max-width:420px) {
    .logo-studio {
        padding:5px;
        border-radius:12px;
    }
    .studio-preview-shell {
        aspect-ratio:16 / 9;
        padding:5px;
        border-radius:10px;
    }
    .preview-top {
        left:6px;
        right:6px;
        top:6px;
    }
    .preview-bottom {
        left:6px;
        right:6px;
        bottom:6px;
    }
    .preview-badge {
        display:none;
    }
    .preview-time {
        font-size:8px;
    }
}
/* =========================================================
   FULLSCREEN PLAYER
   ========================================================= */
.studio-preview-shell:fullscreen {
    width:100vw;
    height:100vh;
    max-width:none;
    max-height:none;
    aspect-ratio:auto;
    padding:30px;
    border:0;
    border-radius:0;
    background:#000;
}
.studio-preview-shell:fullscreen .studio-preview {
    width:100%;
    height:100%;
}
.studio-preview-shell:fullscreen #introCanvas {
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
}
/* ============================================================
   Vamriko_INTERACTIVE_STYLE_V1
   ============================================================ */
.interactive-canvas {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.interactive-canvas.dragging {
    cursor: grabbing;
}
.interactive-selected {
    outline: 1px solid rgba(129, 120, 255, 0.8);
    box-shadow:
        0 0 0 2px rgba(99, 91, 255, 0.18),
        0 0 28px rgba(99, 91, 255, 0.18);
}
/* Hide legacy Neon Effects UI without removing its JavaScript dependencies */
#neonEffectsStudio {
  display: none !important;
}
/* =========================================================
   LOGO TO INTRO - HORIZONTAL VIDEO EDITOR LAYOUT
   Safe CSS-only layout override
   ========================================================= */
.logo-studio {
  width: min(100% - 32px, 1680px);
  margin: 24px auto 40px;
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(560px, 1fr) minmax(230px, 280px);
  gap: 16px;
  align-items: start;
}
/* Left and right inspector panels */
.logo-studio > .studio-sidebar {
  min-width: 0;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Center editing area */
.logo-studio > .studio-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: 12px;
  align-items: stretch;
}
/* Keep the preview prominent */
.logo-studio > .studio-main > .studio-preview-shell {
  width: 100%;
  min-width: 0;
  min-height: 420px;
  padding: 16px;
  border: 1px solid rgba(118, 160, 255, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(77, 116, 255, 0.14), transparent 58%),
    rgba(7, 11, 23, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
/* The real visual stage: keep a video-like 16:9 area */
.logo-studio > .studio-main > .studio-preview-shell > .studio-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #050814;
}
/* Avoid a canvas/image becoming wider than the stage */
.logo-studio .studio-preview canvas,
.logo-studio .studio-preview video,
.logo-studio .studio-preview img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}
/* Playback controls directly below preview */
.logo-studio > .studio-main > .studio-transport {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(12, 17, 32, 0.82);
}
/* Full-width timeline in the center editor */
.logo-studio > .studio-main > .timeline {
  min-width: 0;
  min-height: 142px;
  padding: 14px 16px;
  border: 1px solid rgba(118, 160, 255, 0.2);
  border-radius: 14px;
  overflow-x: auto;
  background: rgba(7, 11, 23, 0.84);
}
/* Bottom project actions */
.logo-studio > .studio-main > .studio-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}
.logo-studio > .studio-main > .studio-status {
  text-align: center;
  min-height: 22px;
}
/* Keep legacy UI hidden: JavaScript still remains intact */
#neonEffectsStudio {
  display: none !important;
}
/* Tablet: sidebars become narrower */
@media (max-width: 1180px) {
  .logo-studio {
    width: min(100% - 24px, 1180px);
    grid-template-columns: minmax(205px, 240px) minmax(440px, 1fr) minmax(205px, 240px);
    gap: 12px;
  }
  .logo-studio > .studio-main > .studio-preview-shell {
    min-height: 340px;
  }
  .logo-studio > .studio-main > .studio-preview-shell > .studio-preview {
    min-height: 280px;
  }
}
/* Narrow screens: stack controls safely below the preview */
@media (max-width: 900px) {
  .logo-studio {
    grid-template-columns: 1fr;
  }
  .logo-studio > .studio-sidebar {
    max-height: none;
    overflow: visible;
  }
  .logo-studio > .studio-main {
    grid-row: 1;
  }
  .logo-studio > .studio-sidebar:first-of-type {
    grid-row: 2;
  }
  .logo-studio > .studio-sidebar:last-of-type {
    grid-row: 3;
  }
  .logo-studio > .studio-main > .studio-preview-shell > .studio-preview {
    min-height: 0;
  }
}
/* =========================================================
   LOGO TO INTRO - WIDER DESKTOP EDITOR REFINEMENT
   ========================================================= */
.logo-studio {
  width: calc(100% - 48px) !important;
  max-width: 1820px !important;
  grid-template-columns: 250px minmax(680px, 1fr) 250px !important;
}
/* Let the center preview win the available horizontal space */
.logo-studio > .studio-main {
  min-width: 680px;
}
/* Make the visual workspace taller and more prominent */
.logo-studio > .studio-main > .studio-preview-shell {
  min-height: 500px;
}
.logo-studio > .studio-main > .studio-preview-shell > .studio-preview {
  min-height: 420px;
}
/* Keep the preview content centered and contained */
.logo-studio > .studio-main > .studio-preview-shell > .studio-preview canvas {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/* On common laptop widths, preserve a useful central preview */
@media (max-width: 1360px) {
  .logo-studio {
    width: calc(100% - 32px) !important;
    grid-template-columns: 225px minmax(560px, 1fr) 225px !important;
  }
  .logo-studio > .studio-main {
    min-width: 0;
  }
  .logo-studio > .studio-main > .studio-preview-shell {
    min-height: 420px;
  }
  .logo-studio > .studio-main > .studio-preview-shell > .studio-preview {
    min-height: 350px;
  }
}
/* Center the desktop editor visually */
@media (min-width: 901px) {
  .logo-studio {
    position: relative;
    left: -55px;
  }
}
/* =========================================================
   TRUE DESKTOP CENTERING - overrides previous left shift
   ========================================================= */
@media (min-width: 901px) {
  .logo-studio {
    position: static !important;
    left: auto !important;
    right: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* Use the 3-column video-editor layout only when the viewport is wide enough */
@media (max-width: 1100px) {
  .logo-studio {
    width: min(100% - 24px, 960px) !important;
    grid-template-columns: 1fr !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .logo-studio > .studio-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0 !important;
  }
  .logo-studio > .studio-sidebar:first-of-type {
    grid-column: 1;
    grid-row: 2;
  }
  .logo-studio > .studio-sidebar:last-of-type {
    grid-column: 1;
    grid-row: 3;
  }
  .logo-studio > .studio-sidebar {
    max-height: none;
    overflow: visible;
  }
  .logo-studio > .studio-main > .studio-preview-shell {
    min-height: 0;
  }
  .logo-studio > .studio-main > .studio-preview-shell > .studio-preview {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}
/* Vamriko logo treatment: purple T mark + white wordmark */
.studio-brand-logo {
  gap: 12px !important;
  color: #ffffff !important;
  font-family: Inter, Arial, sans-serif;
  font-weight: 900 !important;
  letter-spacing: -0.7px !important;
}
.studio-brand-mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  font-size: 25px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ad7dff 0%, #7b45ff 52%, #6132e8 100%) !important;
  box-shadow:
    0 7px 18px rgba(111, 65, 255, 0.36),
    inset 0 1px 1px rgba(255, 255, 255, 0.27) !important;
}
.studio-brand-word {
  color: #f8f7ff;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255,255,255,0.16);
}
/* Preserve the compact header on small screens */
@media (max-width: 560px) {
  .studio-brand-mark {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 20px !important;
  }
  .studio-brand-word {
    font-size: 22px;
  }
}
/* =========================================================
   Vamriko STUDIO BRANDING
   ========================================================= */
.studio-brand {
  width: calc(100% - 48px);
  max-width: 1820px;
  margin: 22px auto 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 10px 16px;
  border: 1px solid rgba(118, 160, 255, 0.18);
  border-radius: 14px;
  background: rgba(10, 15, 30, 0.76);
}
.studio-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f4f6ff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.studio-brand-logo:hover {
  color: #a99cff;
}
.studio-brand-mark {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, #8f78ff, #5a55ff);
  box-shadow: 0 0 18px rgba(128, 105, 255, 0.48);
}
.studio-brand-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.12);
}
.studio-brand-title {
  display: grid;
  gap: 2px;
}
.studio-brand-title strong {
  color: #ffffff;
  font-size: 14px;
}
.studio-brand-title small {
  color: rgba(218, 224, 255, 0.62);
  font-size: 11px;
}
@media (max-width: 1100px) {
  .studio-brand {
    width: calc(100% - 24px);
  }
}
@media (max-width: 560px) {
  .studio-brand {
    align-items: flex-start;
  }
  .studio-brand-divider {
    display: none;
  }
  .studio-brand-title small {
    display: none;
  }
}
/* =========================================================
   SHOW ALL STUDIO CONTROLS - no clipped sidebar panels
   Use normal page scrolling instead of hidden inner scrolling.
   ========================================================= */
@media (min-width: 901px) {
  .logo-studio > .studio-sidebar {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }
  .logo-studio > .studio-main {
    align-self: start;
  }
}
/* Keep the action buttons completely visible and easy to reach */
.logo-studio > .studio-main > .studio-actions {
  position: sticky;
  bottom: 12px;
  z-index: 8;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(118, 160, 255, 0.20);
  border-radius: 14px;
  background: rgba(8, 12, 27, 0.94);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.24);
}
/* Preview sound button */
.preview-sound-tool {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  min-width: 74px;
  padding-inline: 9px !important;
}
.preview-sound-icon {
  font-size: 14px;
  line-height: 1;
}
.preview-sound-label {
  font-size: 11px;
  font-weight: 700;
}
.preview-sound-tool.is-muted {
  opacity: 0.58;
  color: rgba(255,255,255,0.6);
}
.preview-sound-tool.is-muted .preview-sound-icon {
  filter: grayscale(1);
}
