/* ==========================================================================
   ManaRox Manga Creation Studio (tools.manarox.com/studio)
   Light Theme Only - Pure Vanilla CSS - Zero Third-Party CSS Frameworks
   ========================================================================== */

:root {
    --studio-bg: #f8fafc;
    --studio-panel: #ffffff;
    --studio-border: #e2e8f0;
    --studio-border-hover: #cbd5e1;
    --studio-text: #0f172a;
    --studio-text-muted: #64748b;
    --studio-text-subtle: #94a3b8;
    --studio-primary: #ff5656;
    --studio-primary-hover: #e04848;
    --studio-primary-light: #fff1f1;
    --studio-primary-shadow: rgba(255, 86, 86, 0.25);
    --studio-success: #10b981;
    --studio-warning: #f59e0b;
    --studio-danger: #ef4444;
    --studio-radius-sm: 6px;
    --studio-radius: 10px;
    --studio-radius-lg: 14px;
    --studio-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --studio-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --studio-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --studio-shadow-canvas: 0 12px 30px -5px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(203, 213, 225, 0.8);
}

/* Base resets & typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.studio-body {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    background-color: var(--studio-bg);
    color: var(--studio-text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    user-select: none;
}

/* Essential Visibility Utility */
.hidden {
    display: none !important;
}

.mobile-only-btn {
    display: none;
}

/* Custom Scrollbars */
.studio-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.studio-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.studio-scroll::-webkit-scrollbar-thumb {
    background: var(--studio-border);
    border-radius: 4px;
}
.studio-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--studio-text-subtle);
}

/* --------------------------------------------------------------------------
   Studio Top Navigation Bar
   -------------------------------------------------------------------------- */
.studio-topbar {
    height: 56px;
    background: var(--studio-panel);
    border-bottom: 1px solid var(--studio-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 50;
    flex-shrink: 0;
}

.studio-topbar-left, .studio-topbar-center, .studio-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    margin-right: 12px;
}
.studio-logo-badge {
    background: var(--studio-primary);
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 1.15rem;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    line-height: 1;
}
.studio-logo-title {
    font-family: 'Bangers', cursive;
    font-size: 1.25rem;
    color: var(--studio-text);
    letter-spacing: 0.03em;
}
.studio-logo-tag {
    font-size: 0.65rem;
    font-weight: 800;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.studio-divider-v {
    width: 1px;
    height: 24px;
    background: var(--studio-border);
    margin: 0 4px;
}

/* Tool buttons */
.studio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--studio-radius-sm);
    border: 1px solid var(--studio-border);
    background: var(--studio-panel);
    color: var(--studio-text);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.studio-btn:hover {
    background: var(--studio-bg);
    border-color: var(--studio-border-hover);
    color: var(--studio-text);
}
.studio-btn:active {
    transform: translateY(1px);
}
.studio-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.studio-btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
}

.studio-btn-primary {
    background: var(--studio-primary);
    border-color: var(--studio-primary);
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 2px 8px var(--studio-primary-shadow);
}
.studio-btn-primary:hover {
    background: var(--studio-primary-hover);
    border-color: var(--studio-primary-hover);
    color: #ffffff !important;
}

.studio-btn-subtle {
    border-color: transparent;
    background: transparent;
}
.studio-btn-subtle:hover {
    background: var(--studio-bg);
    border-color: var(--studio-border);
}

.studio-btn-danger {
    color: var(--studio-danger);
}
.studio-btn-danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

/* Status indicator badge */
.studio-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--studio-text-muted);
}
.studio-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--studio-success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* --------------------------------------------------------------------------
   Studio Workspace Layout
   -------------------------------------------------------------------------- */
.studio-main {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Left Icon Navigation Rail */
.studio-rail {
    width: 56px;
    background: var(--studio-panel);
    border-right: 1px solid var(--studio-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 6px;
    z-index: 30;
    flex-shrink: 0;
}

.rail-btn {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--studio-radius);
    border: none;
    background: transparent;
    color: var(--studio-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.65rem;
    font-weight: 700;
    gap: 2px;
}
.rail-btn:hover {
    background: #f1f5f9;
    color: var(--studio-text);
}
.rail-btn.active {
    background: var(--studio-primary-light);
    color: var(--studio-primary);
}
.rail-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}
.rail-btn.active svg {
    stroke: var(--studio-primary);
}

/* Left Drawer Tool Panel */
.studio-drawer {
    width: 300px;
    background: var(--studio-panel);
    border-right: 1px solid var(--studio-border);
    display: flex;
    flex-direction: column;
    z-index: 20;
    flex-shrink: 0;
    overflow: hidden;
    transition: width 0.2s ease, opacity 0.2s ease;
}
.studio-drawer.collapsed {
    width: 0;
    border-right: none;
    opacity: 0;
    pointer-events: none;
}
.studio-drawer-header {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--studio-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 299px;
}
.studio-drawer-title {
    font-family: 'Bangers', cursive;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    color: var(--studio-text);
    white-space: nowrap;
}
.studio-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-width: 299px;
}

/* Center Canvas Scroll Area */
.studio-canvas-area {
    flex: 1;
    background-color: #f1f5f9;
    background-image: radial-gradient(rgba(148, 163, 184, 0.45) 1.2px, transparent 0);
    background-size: 20px 20px;
    overflow: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 100px;
}

#manga-pages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    transition: transform 0.15s ease-out;
    transform-origin: top center;
}

.manga-page-wrapper {
    position: relative;
    background: #ffffff;
    box-shadow: var(--studio-shadow-canvas);
    border-radius: 4px;
    transition: box-shadow 0.2s ease, outline 0.15s ease;
}
.manga-page-wrapper.active-page {
    outline: 3px solid var(--studio-primary);
    outline-offset: 4px;
}

.page-indicator-badge {
    position: absolute;
    top: -28px;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--studio-border);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--studio-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: var(--studio-shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-indicator-badge.active {
    background: var(--studio-primary);
    border-color: var(--studio-primary);
    color: #ffffff;
}

.page-controls-row {
    position: absolute;
    top: -30px;
    right: 0;
    display: flex;
    gap: 4px;
}

/* Floating Zoom Bar */
.studio-zoom-bar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid var(--studio-border);
    border-radius: 9999px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--studio-shadow-md);
    z-index: 25;
}
.zoom-val {
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 44px;
    text-align: center;
    color: var(--studio-text);
}

/* Right Inspector / Layers Panel */
.studio-inspector {
    width: 300px;
    background: var(--studio-panel);
    border-left: 1px solid var(--studio-border);
    display: flex;
    flex-direction: column;
    z-index: 20;
    flex-shrink: 0;
    overflow: hidden;
}
.inspector-tab-header {
    height: 48px;
    border-bottom: 1px solid var(--studio-border);
    display: flex;
}
.inspector-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--studio-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}
.inspector-tab-btn:hover {
    color: var(--studio-text);
}
.inspector-tab-btn.active {
    color: var(--studio-primary);
    border-bottom-color: var(--studio-primary);
}
.inspector-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* --------------------------------------------------------------------------
   Inspector Sections & Form Controls
   -------------------------------------------------------------------------- */
.inspector-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--studio-border);
}
.inspector-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.inspector-label {
    display: block;
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--studio-text-muted);
    margin-bottom: 8px;
}
.inspector-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.inspector-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.studio-input {
    width: 100%;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-sm);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--studio-text);
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease;
}
.studio-input:focus {
    border-color: var(--studio-primary);
    box-shadow: 0 0 0 2px var(--studio-primary-light);
}

.studio-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--studio-text);
    background: #ffffff;
    resize: vertical;
    outline: none;
    font-family: inherit;
    line-height: 1.4;
}
.studio-textarea:focus {
    border-color: var(--studio-primary);
    box-shadow: 0 0 0 2px var(--studio-primary-light);
}

.studio-select {
    width: 100%;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-sm);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--studio-text);
    background: #ffffff;
    outline: none;
    cursor: pointer;
}
.studio-select:focus {
    border-color: var(--studio-primary);
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.color-picker-native {
    width: 32px;
    height: 32px;
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-sm);
    padding: 0;
    cursor: pointer;
    background: none;
}

.range-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.range-slider {
    flex: 1;
    accent-color: var(--studio-primary);
    cursor: pointer;
}
.range-val {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--studio-text-muted);
    min-width: 32px;
    text-align: right;
}

/* Empty State */
.inspector-empty {
    text-align: center;
    padding: 60px 16px;
    color: var(--studio-text-subtle);
}
.inspector-empty svg {
    margin: 0 auto 12px;
    stroke: var(--studio-border-hover);
}

/* --------------------------------------------------------------------------
   Layers Panel List
   -------------------------------------------------------------------------- */
.layers-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.layer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.8rem;
    font-weight: 700;
}
.layer-row:hover {
    background: #f8fafc;
    border-color: var(--studio-border-hover);
}
.layer-row.active {
    background: var(--studio-primary-light);
    border-color: var(--studio-primary);
    color: var(--studio-primary);
}
.layer-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.layer-action-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--studio-text-subtle);
    cursor: pointer;
    border-radius: 4px;
}
.layer-action-btn:hover {
    color: var(--studio-text);
    background: #e2e8f0;
}

/* --------------------------------------------------------------------------
   Library Grids (Bubbles, Expressions, Presets)
   -------------------------------------------------------------------------- */
.bubble-grid, .expression-grid, .panel-preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.library-item-card {
    padding: 8px;
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.library-item-card:hover {
    border-color: var(--studio-primary);
    box-shadow: 0 4px 10px rgba(255, 86, 86, 0.12);
    transform: translateY(-1px);
}
.library-item-preview {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--studio-radius-sm);
    background: #f8fafc;
    overflow: hidden;
}
.library-item-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--studio-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Export & Notice Modals
   -------------------------------------------------------------------------- */
.studio-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    opacity: 1;
    transition: opacity 0.2s ease;
}
.studio-modal-backdrop.hidden {
    display: none !important;
}

.studio-modal-card {
    background: #ffffff;
    border-radius: var(--studio-radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.studio-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--studio-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.studio-modal-title {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    color: var(--studio-text);
}
.studio-modal-body {
    padding: 24px;
    overflow-y: auto;
}
.studio-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--studio-border);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Progress bar inside export modal */
.progress-container {
    margin-top: 16px;
    background: #e2e8f0;
    border-radius: 9999px;
    height: 10px;
    overflow: hidden;
}
.progress-bar {
    background: var(--studio-primary);
    height: 100%;
    width: 0%;
    transition: width 0.2s ease;
}

/* Tooltip standard */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}
[data-tooltip]:hover::after {
    opacity: 1;
}

/* Temporary guide elements on canvas */
.canvas-guide-line {
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Studio SEO Drawer & Guide
   -------------------------------------------------------------------------- */
.studio-seo-drawer {
    position: fixed;
    top: 52px;
    right: 0;
    width: 480px;
    max-width: 90vw;
    height: calc(100vh - 52px);
    background: #ffffff;
    border-left: 1px solid var(--studio-border);
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    z-index: 1500;
    overflow-y: auto;
    padding: 28px;
    transition: transform 0.25s ease;
}

.studio-seo-drawer.hidden {
    display: block !important;
    transform: translateX(100%);
    pointer-events: none;
}

/* Text Alignment & Swatches & Screentones & Assets */
.align-btn-group {
    display: flex;
    gap: 4px;
    background: var(--studio-bg);
    padding: 3px;
    border-radius: var(--studio-radius-sm);
    border: 1px solid var(--studio-border);
}
.align-btn {
    flex: 1;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--studio-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}
.align-btn:hover {
    color: var(--studio-text);
    background: rgba(255,255,255,0.7);
}
.align-btn.active {
    background: #ffffff;
    color: var(--studio-primary);
    box-shadow: var(--studio-shadow-sm);
}

.swatch-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
.color-swatch-btn {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    border: 2px solid var(--studio-border);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.color-swatch-btn:hover {
    transform: scale(1.08);
    border-color: var(--studio-primary);
}

.screentone-grid, .uploaded-assets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.uploaded-asset-thumb {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: var(--studio-radius-sm);
}

.studio-seo-drawer h1 {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--studio-text);
}

.studio-seo-drawer h2 {
    font-size: 1.35rem;
    margin: 24px 0 8px;
    color: var(--studio-text);
}

.studio-seo-drawer p {
    font-size: 0.9rem;
    color: var(--studio-text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.studio-seo-drawer ul {
    padding-left: 20px;
    margin-bottom: 16px;
    color: var(--studio-text-muted);
    font-size: 0.875rem;
}

.studio-seo-drawer li {
    margin-bottom: 6px;
}

.studio-seo-drawer .faq-box {
    background: var(--studio-bg);
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.studio-seo-drawer .faq-q {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--studio-text);
    margin-bottom: 4px;
}

.studio-seo-drawer .faq-a {
    font-size: 0.85rem;
    color: var(--studio-text-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Studio Responsive Adaptations (Phone, Tablet, Desktop)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .studio-topbar-right span {
        display: none;
    }
    .studio-topbar-right .studio-btn {
        padding: 6px 10px;
    }
    .studio-inspector {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .mobile-only-btn {
        display: inline-flex;
    }

    .studio-topbar {
        padding: 0 8px;
    }
    .studio-logo-title, .studio-logo-tag {
        display: none;
    }
    .studio-logo {
        margin-right: 4px;
    }
    #autosave-status-text {
        display: none;
    }
    .studio-status-pill {
        padding: 4px 6px;
    }
    
    /* Rail stays compact */
    .studio-rail {
        width: 48px;
    }
    .rail-btn {
        width: 38px;
        height: 38px;
    }
    .rail-btn span {
        display: none;
    }

    /* Floating tool drawer so stage gets full canvas area */
    .studio-drawer {
        position: absolute;
        left: 48px;
        top: 0;
        bottom: 0;
        z-index: 45;
        width: calc(100vw - 48px);
        max-width: 320px;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        transition: width 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    }
    .studio-drawer.collapsed {
        width: 0 !important;
        min-width: 0 !important;
        box-shadow: none;
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
    }
    .studio-drawer.collapsed > * {
        min-width: 0;
    }

    /* Floating right inspector */
    .studio-inspector {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 45;
        width: 280px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.25s ease;
    }
    .studio-inspector.mobile-open {
        transform: translateX(0);
    }

    /* Bottom bar scrolling */
    .studio-bottombar {
        overflow-x: auto;
        padding: 0 8px;
        justify-content: flex-start;
        gap: 6px;
    }
    .studio-bottombar::-webkit-scrollbar {
        height: 0px;
    }
}
