/* 
   SplitNickPro Master Stylesheet
   Themes: Modern (Default), CRT Retro
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=VT323&display=swap');

:root {
    /* Premium SplitNickPro Palette */
    --primary: hsl(195, 100%, 50%);    /* High-Energy Cyan */
    --primary-bright: hsl(195, 100%, 65%);
    --primary-dim: hsla(195, 100%, 50%, 0.1);
    --primary-glow: hsla(195, 100%, 50%, 0.35);
    
    --accent: hsl(355, 90%, 55%);     /* Tech Red */
    --accent-glow: hsla(355, 90%, 55%, 0.4);
    
    --success: hsl(145, 100%, 50%);   /* Matrix Green */
    --warning: hsl(45, 100%, 55%);    /* Warning Amber */
    --danger: hsl(0, 100%, 60%);      /* Error Crimson */
    
    --bg-deep: hsl(230, 35%, 3%);
    --bg-panel: hsla(230, 30%, 6%, 0.85);
    --bg-glass: hsla(230, 30%, 10%, 0.7);
    
    --border-light: hsla(0, 0%, 100%, 0.08);
    --border-glow: hsla(195, 100%, 50%, 0.25);
    --border-accent: hsla(355, 90%, 55%, 0.25);
    
    --text-high: hsla(0, 0%, 100%, 0.95);
    --text-med: hsla(0, 0%, 100%, 0.7);
    --text-low: hsla(0, 0%, 100%, 0.4);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-accent: 'Rajdhani', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --panel-blur: blur(30px) saturate(150%);
    --panel-shadow: 0 15px 50px hsla(230, 40%, 0%, 0.7), inset 0 1px 0 hsla(0, 0%, 100%, 0.05);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-crt {
    --primary: #00ff41;
    --primary-hover: #00cc33;
    --accent: #00ff41;
    --success: #00ff41;
    --warning: #ffb000;
    --danger: #ff0000;
    --bg: #000000;
    --sidebar-bg: #000000;
    --card-bg: rgba(0, 255, 65, 0.02);
    --glass: rgba(0, 255, 65, 0.05);
    --border: rgba(0, 255, 65, 0.4);
    --text: #00ff41;
    --text-muted: rgba(0, 255, 65, 0.7);
    --panel-blur: none;
    --font-main: 'VT323', monospace;
    --crt-glow: 0 0 8px rgba(0, 255, 65, 0.5);
    --bg-image: none;
}

/* CRT EFFECTS */
.theme-crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 9999;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}

.theme-crt::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 9998;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.1; }
    50% { opacity: 0.15; }
    100% { opacity: 0.1; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-accent);
    background: radial-gradient(ellipse at 20% 20%, hsl(230, 45%, 12%) 0%, var(--bg-deep) 70%);
    color: var(--text-high);
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 340px 1fr 0px;
    transition: grid-template-columns 0.4s var(--ease-out-expo);
}

body.sidebar-collapsed {
    grid-template-columns: 100px 1fr 0px;
}

body.has-parts {
    grid-template-columns: 340px 1fr 340px; /* 320px + 20px margin */
}

body.has-parts.sidebar-collapsed {
    grid-template-columns: 100px 1fr 340px;
}

body.has-parts.parts-collapsed {
    grid-template-columns: 340px 1fr 90px; /* 70px + 20px margin */
}

body.has-parts.sidebar-collapsed.parts-collapsed {
    grid-template-columns: 100px 1fr 90px;
}

/* === VIEWPORT HUD FRAME === */
#viewer-container { 
    grid-column: 2;
    flex: 1;
    margin: 20px;
    background: black;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    border: 1px solid var(--border-light);
    box-shadow: var(--panel-shadow);
}

#viewer-container::before {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 100px hsla(0, 0%, 0%, 0.8);
    pointer-events: none;
    z-index: 5;
}

/* Cinematic HUD Elements */
.hud-bracket {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary);
    pointer-events: none;
    z-index: 10;
    opacity: 0.6;
    transition: all 0.5s var(--ease-out-expo);
    box-shadow: 0 0 15px var(--primary-glow);
}

.hud-bracket.top-left { top: 30px; left: 30px; border-right: none; border-bottom: none; }
.hud-bracket.top-right { top: 30px; right: 30px; border-left: none; border-bottom: none; }
.hud-bracket.bottom-left { bottom: 30px; left: 30px; border-right: none; border-top: none; }
.hud-bracket.bottom-right { bottom: 30px; right: 30px; border-left: none; border-top: none; }

.hud-overlay {
    position: absolute;
    top: 40px;
    right: 40px;
    background: var(--bg-glass);
    backdrop-filter: var(--panel-blur);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    z-index: 15;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--panel-shadow);
}

.hud-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
}

.hud-label { color: var(--text-low); text-transform: uppercase; }
.hud-val { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }

.render-stats {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 15;
}

.stats-card {
    background: var(--bg-glass);
    backdrop-filter: var(--panel-blur);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-med);
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--panel-shadow);
}

/* Background Grid & FX */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(hsla(195, 100%, 50%, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, hsla(195, 100%, 50%, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), hsla(195, 100%, 50%, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

/* Global Tint for Icons in CRT mode */
.theme-crt i, .theme-crt .icon-btn i {
    color: var(--primary) !important;
    text-shadow: var(--crt-glow);
}

.theme-crt img.history-thumbnail {
    filter: sepia(1) hue-rotate(90deg) brightness(0.8) contrast(1.2);
}

/* Existing Logic & Layout */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.switch .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-muted);
    transition: .3s;
    border-radius: 50%;
}
.switch input:checked + .slider {
    background-color: var(--primary);
    border-color: var(--primary);
}
.switch input:checked + .slider:before {
    transform: translateX(16px);
    background-color: white;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

#sidebar {
    width: 320px;
    height: calc(100% - 40px);
    margin: 20px 0 20px 20px;
    background: var(--bg-panel);
    backdrop-filter: var(--panel-blur);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    grid-column: 1;
    z-index: 100;
    transition: all 0.5s var(--ease-out-expo);
    box-shadow: var(--panel-shadow);
    position: relative;
    overflow: hidden;
}

#sidebar.collapsed {
    width: 80px;
    margin-right: -10px;
}

#sidebar.collapsed .logo h1,
#sidebar.collapsed .nav-back-link span,
#sidebar.collapsed .section-title,
#sidebar.collapsed .history-info,
#sidebar.collapsed .upload-card p,
#sidebar.collapsed .upload-card span,
#sidebar.collapsed .btn span {
    display: none;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    background: hsla(0, 0%, 100%, 0.02);
}

/* === UPLOAD CARD MODERNIZATION === */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.upload-card {
    background: var(--primary-dim);
    border: 2px dashed var(--border-glow);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-card:hover {
    background: hsla(195, 100%, 50%, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-dim);
    transform: translateY(-2px);
}

.upload-card i {
    font-size: 2.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.upload-card p {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-high);
}

.upload-card span {
    font-size: 0.65rem;
    color: var(--text-low);
}

@media (max-width: 768px) {
    body { grid-template-columns: 1fr !important; }
    #sidebar {
        position: fixed; left: -100%; top: 0; bottom: 0; width: 280px; z-index: 2500;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }
    body.sidebar-open #sidebar { left: 0; }
    #viewer-container { width: 100vw; }
    #right-sidebar { z-index: 1500; width: 90%; right: 5%; left: 5%; bottom: 2rem; top: auto; height: 60vh; max-height: 500px; }
    #right-sidebar.collapsed { bottom: -100%; transform: none; }
    .render-stats { top: 0.8rem; left: 0.8rem; }
    .render-stats .stats-card { font-size: 0.6rem; padding: 0.4rem 0.7rem; min-width: 140px; border-radius: 10px; }
    .view-controls { left: 0.5rem; bottom: 5.5rem; scale: 0.85; transform-origin: bottom left; }
    #controls-info { display: none !important; }
    #log-console { width: calc(100% - 2rem); left: 1rem; bottom: 5rem; }
}

#sidebar.collapsed .logo span,
#right-sidebar.collapsed .logo h1 { display: none; }

.sidebar-shortcuts { display: none; }
#sidebar.collapsed .sidebar-shortcuts { display: flex; flex-direction: column; gap: 1rem; padding: 0; align-items: center; margin-top: 0; opacity: 1; transition: opacity 0.3s; }

.shortcut-btn {
    width: 44px; height: 44px; border-radius: 12px; background: var(--glass);
    border: 1px solid var(--border); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer; transition: 0.3s; position: relative;
}
.shortcut-btn:hover { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 0 15px var(--primary); }
.shortcut-btn[title]::after {
    content: attr(title); position: absolute; left: 60px; background: var(--bg);
    padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.7rem;
    white-space: nowrap; opacity: 0; pointer-events: none; transition: 0.2s; border: 1px solid var(--border);
}
.shortcut-btn:hover::after { opacity: 1; left: 55px; }

#sidebar.collapsed .splits-config { display: none; }
.splits-config { width: 100%; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 0.5rem; }
.splits-config-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.6; }
.splits-config-row { display: flex; align-items: center; gap: 1rem; }
.splits-config input[type="range"] { flex: 1; height: 4px; appearance: none; -webkit-appearance: none; background: rgba(255, 255, 255, 0.1); border-radius: 2px; outline: none; }
.splits-config input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; cursor: pointer; box-shadow: 0 0 10px var(--primary); }
.splits-config input[type="number"] { width: 50px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 6px; color: var(--primary); font-size: 0.8rem; text-align: center; padding: 0.2rem; font-family: monospace; }

#close-log-mobile { display: none; }
@media (max-width: 1000px) {
    #close-log-mobile { display: block !important; }
    #close-log-desktop { display: none !important; }
    .viewport-hud { top: 5rem !important; bottom: auto !important; left: 50% !important; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 1rem; }
}

/* Sidebar grid overrides handled at top of file */

#sidebar.collapsed .sidebar-header { flex-direction: column; gap: 1.5rem; padding: 1.2rem 0.5rem; align-items: center; position: relative; }
#sidebar.collapsed #sidebar-toggle-icon { transform: none; margin: 0; }
#sidebar.collapsed .header-actions { position: absolute; right: 0.5rem; top: 1.2rem; z-index: 10; flex-direction: column; align-items: flex-end; }
#sidebar.collapsed .logo { justify-content: center; width: 100%; }
#sidebar.collapsed .actions-horizontal { display: none !important; }
.btn-outline { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; padding: 0; }
#sidebar.collapsed #crt-toggle-btn { display: none !important; }
#sidebar-pin-btn.active { background: var(--primary) !important; color: white !important; border-color: var(--primary) !important; box-shadow: 0 0 12px var(--primary); }
#sidebar.collapsed #sidebar-pin-btn { background: transparent !important; color: var(--text-muted) !important; border: 1px solid var(--border) !important; box-shadow: none !important; }
#sidebar.collapsed #sidebar-pin-btn:hover { background: var(--primary) !important; color: white !important; border-color: var(--primary) !important; }
#sidebar.collapsed #sidebar-toggle-icon { transform: rotate(180deg); margin: 0; }
#sidebar.collapsed .logo { justify-content: center; }
#sidebar.collapsed .upload-card { padding: 1.5rem 0.5rem; border-radius: 12px; }
#sidebar.collapsed .upload-card i { margin-bottom: 0; }
#sidebar.collapsed .btn { padding: 0.8rem 0; border-radius: 10px; }
#sidebar.collapsed .btn i { margin: 0; }
#sidebar.collapsed .history-item { padding: 0.8rem 0.5rem; justify-content: center; }
#sidebar.collapsed .history-item i { margin: 0; }
#sidebar.collapsed .history-actions { display: none; }
#sidebar.collapsed .sidebar-content { padding: 1rem 0.5rem; }
#sidebar-toggle-icon { transition: transform 0.3s; }
#sidebar.collapsed #sidebar-toggle-icon { transform: rotate(90deg); }
#collapse-icon { transition: transform 0.3s; }
#right-sidebar.collapsed #collapse-icon { transform: rotate(-90deg); }

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-high);
    transition: all 0.3s;
}

.logo i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.logo h1 { 
    font-family: var(--font-heading);
    font-size: 1.2rem; 
    font-weight: 800; 
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--primary-glow);
    background: linear-gradient(to bottom, var(--text-high), var(--text-med));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo:hover {
    transform: scale(1.02);
}

.logo:hover i {
    filter: drop-shadow(0 0 8px var(--primary));
}


.sidebar-content { flex: 1; padding: 1.2rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; }

.upload-card {
    background: var(--bg-glass);
    border: 1px dashed var(--border-light);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--primary-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.upload-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.upload-card:hover::before {
    opacity: 0.3;
}

.upload-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    display: block;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.upload-card p {
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.upload-card span {
    font-size: 0.75rem;
    color: var(--text-low);
}

.upload-card input { display: none; }

.primary-actions { display: flex; flex-direction: column; gap: 0.8rem; }
/* === PREMIUM BUTTONS === */
.btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s var(--ease-out-expo);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary), #2563eb); 
    color: white; 
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, hsla(0, 0%, 100%, 0.2) 50%, transparent 60%);
    transform: translateX(-150%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after {
    transform: translateX(150%);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), hsl(355, 90%, 40%));
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    background: hsla(230, 25%, 10%, 0.3);
    border: 1px solid var(--border-light);
    color: var(--text-med);
}

.btn-outline:hover {
    background: var(--bg-glass);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px var(--primary-dim);
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-title span {
    font-family: var(--font-mono);
}

#history-list, #shared-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-item:hover {
    background: hsla(0, 0%, 100%, 0.05);
    border-color: var(--primary-glow);
    transform: translateX(4px);
}

.history-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: hsla(230, 25%, 5%, 0.4);
    border: 1px solid var(--border-light);
    flex-shrink: 0;
    transition: 0.3s;
}

.history-item:hover .history-thumbnail {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-high);
    margin-bottom: 0.1rem;
}

.history-info p {
    font-size: 0.7rem;
    color: var(--text-low);
}


.part-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px; padding: 0.8rem 1rem; margin-bottom: 0.6rem; animation: slideIn 0.3s ease-out forwards; position: relative; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
.layer-dot { display: none; width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.2); box-shadow: 0 0 8px rgba(0,0,0,0.4); cursor: pointer; transition: transform 0.2s; }
.layer-dot:hover { transform: scale(1.15); box-shadow: 0 0 12px rgba(0,0,0,0.6); }
#right-sidebar.collapsed .layer-dot { display: block; }
#right-sidebar.collapsed .select-checkbox { display: none !important; }
#right-sidebar.collapsed .slice-controls { display: none !important; }
.part-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.part-header h3 { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.part-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.75rem; color: var(--text-muted); }

#viewer-container { 
    position: relative; 
    background: radial-gradient(circle at center, hsl(230, 30%, 15%) 0%, hsl(230, 40%, 3%) 100%); 
    width: 100%; height: 100%; 
    border: 5px solid var(--pokedex-metal);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

#viewer-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(18, 16, 16, 0.1) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    z-index: 5;
}
#viewer-canvas { width: 100%; height: 100%; display: block; }

.overlay-panel { position: absolute; background: rgba(0, 0, 0, 0.6); backdrop-filter: var(--panel-blur); border: 1px solid var(--border); padding: 1.2rem 1.5rem; border-radius: 20px; z-index: 50; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.status-overlay { top: 2rem; left: 2rem; display: none; flex-direction: column; align-items: flex-start; gap: 1rem; min-width: 250px; }
.progress-container { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden; margin-top: 0.5rem; }
.progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.3s ease; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.recommendation-panel { bottom: calc(7rem + 350px); left: 2rem; display: none; max-width: 300px; border-left: 4px solid var(--warning); }
.render-stats { position: absolute; top: 2rem; left: 2rem; display: flex; flex-direction: column; gap: 0.8rem; z-index: 100; }
.stats-card {
    background: var(--bg-panel);
    backdrop-filter: var(--panel-blur);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 1rem;
    font-family: var(--font-mono);
    box-shadow: var(--panel-shadow);
    min-width: 200px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.stats-header span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    color: var(--text-med);
}

.stat-row .val {
    color: var(--primary);
    font-weight: 600;
}

.led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    transition: 0.3s;
}

.led-offline { color: #555; background: #555; }
.led-online { color: var(--success); background: var(--success); }

/* Scanner Effect */
.scanner-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    display: none;
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--primary-glow), var(--primary), var(--primary-glow), transparent);
    opacity: 0.4;
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0% { top: -10%; }
    50% { top: 90%; }
    100% { top: -10%; }
}
/* === CINEMATIC LOADER === */
#main-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: all 0.8s var(--ease-out-expo);
}

#main-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-ring {
    width: 120px;
    height: 120px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: ring-spin 1s var(--ease-out-expo) infinite;
    position: relative;
    box-shadow: 0 0 30px var(--primary-glow);
}

.loader-ring::before {
    content: '';
    position: absolute;
    inset: -15px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    opacity: 0.3;
}

.loader-ring::after {
    content: '';
    position: absolute;
    inset: 15px;
    border: 2px solid var(--border-light);
    border-bottom-color: var(--accent);
    border-radius: 50%;
    animation: ring-spin 2s linear infinite reverse;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 15px var(--primary-glow);
    animation: pulse-op 2s infinite;
}

@keyframes pulse-op {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 200; }
.modal { background: #111; border: 1px solid var(--border); width: 90%; max-width: 500px; border-radius: 24px; padding: 2.5rem; position: relative; }
.modal-header { margin-bottom: 2rem; }
.modal-header h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.modal-header p { color: var(--text-muted); font-size: 0.9rem; }
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.input-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.input-item input { width: 100%; background: var(--glass); border: 1px solid var(--border); padding: 0.8rem; border-radius: 12px; color: white; font-family: inherit; }

/* === LOG CONSOLE MODERNIZATION === */
#log-console {
    position: absolute;
    bottom: 60px;
    left: 40px;
    width: 400px;
    max-height: 380px;
    background: var(--bg-panel);
    backdrop-filter: var(--panel-blur);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-med);
    z-index: 100;
    display: none;
    box-shadow: var(--panel-shadow);
    overflow: hidden;
}

.log-entry {
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    border-left: 2px solid transparent;
    padding-left: 8px;
}

.log-entry.success { border-left-color: var(--success); }
.log-entry.error { border-left-color: var(--danger); }
.log-entry.warning { border-left-color: var(--warning); }

.log-time {
    color: var(--text-low);
    font-size: 0.6rem;
    min-width: 65px;
}

.log-msg { flex: 1; }

.icon-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; color: var(--text-muted); }
.icon-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.icon-btn.active { background: var(--success); color: #fff; border-color: var(--success); }

.action-btn { background: var(--glass); color: white; border: 1px solid var(--border); padding: 0.8rem 1.2rem; border-radius: 12px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 0.6rem; font-family: inherit; font-size: 0.9rem; font-weight: 500; }
.action-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.action-btn.active { background: rgba(99, 102, 241, 0.2); border-color: var(--primary); color: var(--primary); }

.view-controls { display: flex; background: var(--glass); border: 1px solid var(--border); border-radius: 12px; padding: 0.3rem; gap: 0.3rem; backdrop-filter: var(--panel-blur); }
.view-controls .action-btn { padding: 0.5rem 0.8rem; border-radius: 8px; background: transparent; border: none; font-size: 0.8rem; }
.view-controls .action-btn:hover { background: var(--glass); }

#right-sidebar {
    position: relative;
    height: calc(100vh - 40px);
    margin: 20px;
    margin-left: 0;
    width: auto;
    background: var(--bg-panel);
    backdrop-filter: var(--panel-blur);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    grid-column: 3;
    z-index: 100;
    box-shadow: var(--panel-shadow);
    transition: all 0.4s var(--ease-out-expo);
}

#right-sidebar.collapsed {
    width: 70px;
    margin: 20px;
    margin-left: 0;
    opacity: 1;
    pointer-events: auto;
    overflow: hidden;
}

#right-sidebar.collapsed .bulk-controls,
#right-sidebar.collapsed .sidebar-content,
#right-sidebar.collapsed .logo h1,
#right-sidebar.collapsed .sidebar-header + div {
    display: none !important;
}

#right-sidebar.collapsed .sidebar-header {
    flex-direction: column;
    padding: 1rem 0.5rem;
    gap: 1.5rem;
}

#right-sidebar.collapsed .logo {
    justify-content: center;
}

body.has-parts #right-sidebar {
    display: flex;
}

.part-card {
    background: hsla(0, 0%, 100%, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s;
}

.part-card:hover {
    background: hsla(0, 0%, 100%, 0.05);
    border-color: var(--primary-glow);
}

.part-header h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    font-family: var(--font-heading);
}

.bulk-controls {
    padding: 1.2rem;
    background: hsla(230, 25%, 5%, 0.4);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bulk-row { display: flex; gap: 0.5rem; justify-content: center; }
.bulk-btn { flex: 1; padding: 0.5rem; font-size: 0.75rem; border-radius: 8px; background: var(--glass); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.bulk-btn:hover { background: rgba(255, 255, 255, 0.1); color: white; border-color: var(--primary); }
.bulk-btn.danger:hover { color: var(--danger); border-color: var(--danger); background: rgba(239, 68, 68, 0.1); }
.bulk-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.part-card { position: relative; transition: transform 0.2s, background 0.2s; }
.part-card.invalid { animation: flashRed 0.8s ease-in-out infinite alternate; }
@keyframes flashRed { from { background: rgba(255, 255, 255, 0.03); border-color: var(--border); } to { background: rgba(239, 68, 68, 0.2); border-color: var(--danger); box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); } }
.select-checkbox { position: absolute; top: 0.5rem; left: 0.5rem; width: 18px; height: 18px; border-radius: 4px; background: var(--glass); border: 1px solid var(--border); cursor: pointer; display: none; align-items: center; justify-content: center; transition: 0.2s; }
body.select-mode .select-checkbox { display: flex; }
.select-checkbox.checked { background: var(--primary); border-color: var(--primary); }
.select-checkbox i { display: none; font-size: 0.6rem; color: white; }
.select-checkbox.checked i { display: block; }

.group-actions-bar { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: none; gap: 1rem; background: rgba(13, 13, 13, 0.85); backdrop-filter: blur(20px); padding: 0.8rem 1.5rem; border-radius: 50px; border: 1px solid var(--primary); z-index: 200; box-shadow: 0 10px 40px rgba(0,0,0,0.5); animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes slideUp { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
body.select-mode .group-actions-bar { display: flex; }
#right-sidebar .sidebar-content { opacity: 1; transition: opacity 0.3s 0.1s; }
#right-sidebar.collapsed .sidebar-content { opacity: 1; pointer-events: auto; }
body.has-parts #right-sidebar { display: flex; }
body.parts-collapsed #right-sidebar { border-left: none; }

.mobile-nav { display: none; }
@media (max-width: 1000px) {
    body { grid-template-columns: 1fr !important; }
    #sidebar { position: fixed; left: -280px; top: 0; bottom: 0; width: 280px; z-index: 2500; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
    #sidebar.open { left: 0; }
    #sidebar.collapsed { width: 280px; }
    #right-sidebar { position: fixed; right: -280px; top: 0; bottom: 0; width: 280px; height: 100vh; margin: 0; background: var(--sidebar-bg); backdrop-filter: blur(25px); border-left: 1px solid var(--border); border-radius: 0; z-index: 2000; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
    #right-sidebar.open { right: 0; }
    #right-sidebar.collapsed { right: 0; left: auto; width: 60px; height: auto; top: auto; bottom: 6rem; max-height: 60vh; border-left: 1px solid var(--border); border-right: none; border-radius: 16px 0 0 16px; background: rgba(13, 13, 13, 0.85); backdrop-filter: blur(25px); overflow-y: auto; }
    #right-sidebar.collapsed .sidebar-header { padding: 0.8rem 0.4rem; gap: 0.8rem; }
    #right-sidebar.collapsed .sidebar-content { padding: 0.3rem; gap: 0.2rem; }
    #right-sidebar.collapsed .part-card { height: 24px; padding: 0.3rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
    .group-actions-bar { bottom: 7.5rem; width: 90%; justify-content: space-around; }

    /* Enhanced Mobile Nav */
    .mobile-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0;
        background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(30px);
        border-top: 1px solid var(--border);
        padding: 0.6rem 0.4rem; padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
        border-radius: 0; z-index: 1000;
        box-shadow: 0 -5px 30px rgba(0,0,0,0.5);
        width: 100%; justify-content: space-around;
    }
    .mobile-nav .nav-btn {
        display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
        min-width: 48px; padding: 0.4rem 0.5rem; border-radius: 10px;
        transition: all 0.2s;
    }
    .mobile-nav .nav-btn i { font-size: 1.1rem; }
    .mobile-nav .nav-btn::after {
        content: attr(title); font-size: 0.55rem;
        color: var(--text-muted); letter-spacing: 0.3px;
        white-space: nowrap; opacity: 0.7;
    }
    .mobile-nav .nav-btn:active, .mobile-nav .nav-btn.active {
        background: rgba(99, 102, 241, 0.15); color: var(--primary);
    }
    .mobile-nav .nav-btn.active::after { color: var(--primary); opacity: 1; }
    .mobile-nav .nav-btn.active i { color: var(--primary); }

    #log-console { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100% !important; height: 100vh !important; border: none; border-radius: 0; z-index: 3000; margin: 0; background: rgba(0,0,0,0.95); backdrop-filter: blur(40px); display: none; }
    #log-console.active { display: block; }
    .viewport-hud { top: 3.5rem !important; bottom: auto !important; left: 50% !important; transform: translateX(-50%); width: 95%; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
    .viewport-hud > * { pointer-events: auto; }
    #sidebar-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 1500; display: none; opacity: 0; transition: opacity 0.3s; }
    #sidebar-overlay.active { display: block; opacity: 1; }
    #log-btn, .sidebar-shortcuts { display: none !important; }

    /* Mobile: bottom view controls positioning */
    .view-controls { bottom: 4.5rem !important; left: 0.5rem !important; scale: 0.85; transform-origin: bottom left; gap: 0.2rem; }
    .view-controls .action-btn { padding: 0.4rem 0.6rem; font-size: 0.7rem; }
    .view-controls .action-btn span { display: none; }

    /* Stats card compact on mobile */
    .render-stats { top: 0.6rem; left: 0.6rem; }
    .render-stats .stats-card { font-size: 0.6rem; padding: 0.4rem 0.6rem; min-width: 130px; border-radius: 10px; }
    #stats-restore-btn { top: 0.5rem !important; right: 0.5rem !important; width: 34px !important; height: 34px !important; }

    /* Mobile bottom view btn group */
    #viewer-container > div:last-of-type { bottom: 4.5rem !important; right: 0.5rem !important; }
    #viewer-container > div:last-of-type .action-btn { padding: 0.4rem 0.6rem; font-size: 0.7rem; border-radius: 8px; }
    #viewer-container > div:last-of-type .action-btn span { display: none; }

    /* Status overlay mobile */
    .status-overlay { width: 90% !important; max-width: 280px; left: 50% !important; transform: translateX(-50%); top: 3rem !important; border-radius: 16px; }

    #controls-info { display: none !important; }
}

.pwa-install-banner { position: fixed; bottom: 2rem; right: -450px; left: auto; transform: none; width: 320px; background: rgba(13, 13, 13, 0.95); backdrop-filter: blur(30px); border: 1px solid rgba(99, 102, 241, 0.4); border-radius: 20px; padding: 1.2rem 1.5rem; z-index: 10000; display: flex; align-items: center; gap: 1rem; transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.15); }
.pwa-install-banner.visible { right: 2rem; }
@media (max-width: 1000px) { .pwa-install-banner { left: 50%; right: auto; transform: translateX(-50%); width: 95%; max-width: 450px; bottom: auto; top: -200px; opacity: 0; pointer-events: none; } .pwa-install-banner.visible { top: 1.5rem; bottom: auto; opacity: 1; pointer-events: auto; } }
.pwa-install-banner .pwa-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pwa-install-banner .pwa-icon i { font-size: 1.4rem; color: white; }
.pwa-install-banner .pwa-text { flex: 1; min-width: 0; }
.pwa-install-banner .pwa-text h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; color: white; }
.pwa-install-banner .pwa-text p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; }
.pwa-install-banner .pwa-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.pwa-install-banner .pwa-btn { padding: 0.5rem 1rem; border-radius: 10px; border: none; font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.pwa-install-banner .pwa-btn.install { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }
.pwa-install-banner .pwa-btn.install:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); }
.pwa-install-banner .pwa-btn.dismiss { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border); }
.pwa-install-banner .pwa-btn.dismiss:hover { background: rgba(255, 255, 255, 0.1); color: white; }

.pwa-update-toast { position: fixed; top: -80px; left: 50%; transform: translateX(-50%); background: rgba(16, 185, 129, 0.15); backdrop-filter: blur(20px); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: 14px; padding: 0.8rem 1.5rem; z-index: 10001; display: flex; align-items: center; gap: 1rem; transition: top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); font-size: 0.85rem; }
.pwa-update-toast.visible { top: 1.5rem; }
.pwa-update-toast button { background: var(--success); color: white; border: none; padding: 0.4rem 1rem; border-radius: 8px; font-family: inherit; font-weight: 600; cursor: pointer; transition: 0.2s; }
.pwa-update-toast button:hover { filter: brightness(1.1); }

@media (display-mode: standalone) { body { padding-top: env(safe-area-inset-top); } .mobile-nav { padding-bottom: calc(0.6rem + env(safe-area-inset-bottom)); } }
@media (max-width: 1000px) and (orientation: landscape) { .mobile-nav { padding: 0.3rem 0.4rem; } .mobile-nav .nav-btn { padding: 0.2rem 0.4rem; } .mobile-nav .nav-btn::after { display: none; } #sidebar, #right-sidebar { width: 220px; } #sidebar { left: -220px; } #right-sidebar { right: -220px; } }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 6px; cursor: pointer; background: rgba(255, 255, 255, 0.1); border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.05); }
input[type=range]::-webkit-slider-thumb { height: 18px; width: 18px; border-radius: 50%; background: var(--primary); cursor: pointer; -webkit-appearance: none; margin-top: -7px; box-shadow: 0 0 10px var(--primary); border: 2px solid white; transition: transform 0.2s; }

/* Recursive Slice Controls */
.slice-controls {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    animation: slideDown 0.3s ease-out forwards;
}

.slice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    text-transform: uppercase;
}

.slice-header i {
    cursor: pointer;
    opacity: 0.5;
    transition: 0.2s;
}

.slice-header i:hover {
    opacity: 1;
    color: var(--danger);
}

.slice-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.slice-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slice-row label {
    flex: 1;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.val-badge {
    min-width: 24px;
    text-align: center;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--glass);
    padding: 2px 6px;
    border-radius: 4px;
}

.switch.small {
    width: 32px;
    height: 18px;
}

.switch.small .slider:before {
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
}

.switch.small input:checked + .slider:before {
    transform: translateX(14px);
}

.btn.small {
    padding: 0.6rem;
    font-size: 0.8rem;
    border-radius: 8px;
    gap: 0.5rem;
}
