@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/space-grotesk-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/space-grotesk-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/space-grotesk-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/space-grotesk-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sarabun';
    src: url('../assets/fonts/sarabun-latin-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Sarabun';
    src: url('../assets/fonts/sarabun-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Sarabun';
    src: url('../assets/fonts/sarabun-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Sarabun';
    src: url('../assets/fonts/sarabun-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Sarabun';
    src: url('../assets/fonts/sarabun-thai-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Sarabun';
    src: url('../assets/fonts/sarabun-thai-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Sarabun';
    src: url('../assets/fonts/sarabun-thai-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Sarabun';
    src: url('../assets/fonts/sarabun-thai-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
    --bg-dark: #0a0a0f;
    --bg-editor: #1e1e2e;
    --bg-terminal: #0c0c14;
    --bg-doc: #e8e8e8;
    --bg-spreadsheet: #ffffff;
    --bg-slide: #ffffff;
    --bg-premiere: #232323;
    --accent-blue: #4fc3f7;
    --accent-green: #66bb6a;
    --accent-purple: #ab47bc;
    --accent-orange: #ff9800;
    --accent-red: #ef5350;
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --text-code: #c5c8c6;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Sarabun', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-display);
    background: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: default;
}

img {
    display: block;
    max-width: 100%;
}

button {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

input {
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

ul,
ol {
    list-style: none;
}

.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(ellipse at 50% 40%, #354373 0%, #2a3660 40%, #222d52 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity;
}

.boot-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.boot-logo {
    height: 48px;
    width: auto;
}

.boot-spinner-ring {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(255, 255, 255, 0.6);
    border-right-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: bootSpin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.boot-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
    font-weight: 400;
}

@media (max-width: 767px) {
    .boot-logo {
        height: 36px;
    }

    .boot-spinner-ring {
        width: 28px;
        height: 28px;
    }
}

.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
    display: none;
}

.welcome-overlay.active {
    display: block;
}

.demo-fullscreen {
    position: absolute;
    inset: 0;
    background: #0a0a1a;
    overflow: hidden;
}

.demo-wallpaper,
.desktop-wallpaper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #06060c;
}

.demo-icons {
    position: absolute;
    top: 28px;
    left: 28px;
    display: grid;
    grid-template-rows: repeat(5, auto);
    gap: 8px;
    z-index: 2;
}

.demo-icon {
    width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px 6px;
    border-radius: 8px;
    transition: box-shadow 0.15s ease, background 0.15s ease;
}

.demo-icon span:first-child {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-mono);
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
    line-height: 1;
}

.demo-icon-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-family: var(--font-display);
}

.demo-icon.highlight {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5), 0 0 16px rgba(99, 102, 241, 0.2);
}

.demo-taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(20, 20, 40, 0.9);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    padding: 0 12px;
    z-index: 2;
}

.demo-taskbar-start {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.demo-taskbar-apps {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.demo-taskbar-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.15s ease, background 0.15s ease;
}

.demo-taskbar-btn.highlight {
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5), 0 0 12px rgba(99, 102, 241, 0.3);
}

.demo-taskbar-tray {
    width: 60px;
    height: 28px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

.demo-cursor {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 20;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.demo-window {
    position: absolute;
    top: 8%;
    left: 18%;
    width: 50%;
    height: 65%;
    background: #1e1e2e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: scale(0.9);
    z-index: 3;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.45s ease;
}

.demo-window-bar {
    height: 28px;
    background: #217346;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    flex-shrink: 0;
}

.demo-window-title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-display);
}

.demo-window-controls {
    display: flex;
    gap: 0;
    margin-left: auto;
}

.demo-window-ctrl {
    width: 28px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
}

.demo-window-x {
    font-size: 13px;
}

.demo-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 5;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-family: var(--font-display);
}

.demo-window-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.demo-ss-formula-bar {
    height: 22px;
    background: #ffffff;
    border-bottom: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    padding: 0 6px;
    font-size: 10px;
    flex-shrink: 0;
}

.demo-ss-cell-ref {
    width: 32px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #d0d0d0;
    padding-right: 6px;
    margin-right: 6px;
    font-size: 9px;
}

.demo-ss-fx {
    padding: 0 4px;
    font-style: italic;
    color: #666;
    font-size: 9px;
    border-right: 1px solid #d0d0d0;
    margin-right: 6px;
}

.demo-ss-formula-input {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 9px;
    color: #333;
}

.demo-ss-grid {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-ss-col-headers {
    display: flex;
    height: 18px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.demo-ss-corner {
    width: 28px;
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    flex-shrink: 0;
}

.demo-ss-col-hdr {
    flex: 1;
    text-align: center;
    font-size: 9px;
    border: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: 500;
    background: #f5f5f5;
}

.demo-ss-row {
    display: flex;
    height: 20px;
    flex-shrink: 0;
}

.demo-ss-row-hdr {
    width: 28px;
    background: #f5f5f5;
    text-align: center;
    font-size: 9px;
    border: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    flex-shrink: 0;
}

.demo-ss-cell {
    flex: 1;
    border: 1px solid #e0e0e0;
    padding: 1px 4px;
    font-size: 10px;
    font-family: var(--font-mono);
    color: #333;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.demo-ss-cell.selected {
    border: 2px solid #217346;
    background: rgba(33, 115, 70, 0.06);
}

.demo-ss-cell.header-cell {
    background: #f5f5f5;
    font-weight: 600;
}

.welcome-notepad {
    position: absolute;
    right: 5%;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: fit-content;
    max-height: calc(100vh - 40px);
    width: 460px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 10;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.welcome-notepad.dragging {
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.welcome-notepad.resizing {
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.notepad-resize-grip {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    background: linear-gradient(-45deg,
        transparent 30%,
        rgba(0, 0, 0, 0.12) 30%, rgba(0, 0, 0, 0.12) 35%,
        transparent 35%, transparent 50%,
        rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.12) 55%,
        transparent 55%, transparent 70%,
        rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0.12) 75%,
        transparent 75%
    );
    z-index: 2;
    border-radius: 0 0 10px 0;
}

.notepad-bar {
    height: 36px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.notepad-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notepad-bar-icon {
    font-size: 14px;
}

.notepad-bar-title {
    font-size: 12px;
    color: #333;
    font-weight: 400;
}

.notepad-bar-right {
    display: flex;
    gap: 0;
}

.notepad-ctrl {
    width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    border-radius: 3px;
    cursor: default;
}

.notepad-x {
    font-size: 10px;
}

.notepad-x:hover {
    background: #e81123;
    color: #ffffff;
}

.notepad-menu {
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.notepad-menu span {
    padding: 2px 10px;
    font-size: 12px;
    color: #444;
    border-radius: 3px;
}

.notepad-lang-toggle {
    margin-left: auto;
    display: flex;
    gap: 2px;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 2px;
}

.notepad-lang-btn {
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    border-radius: 3px;
    font-family: var(--font-display);
    transition: all 0.15s ease;
}

.notepad-lang-btn:hover {
    color: #555;
}

.notepad-lang-btn.active {
    background: #ffffff;
    color: #6366f1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.notepad-content {
    padding: 28px 32px;
    flex: 1;
}

.notepad-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.notepad-step-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
    font-family: var(--font-display);
}

.notepad-step-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    font-family: var(--font-body);
    margin-bottom: 16px;
}

.notepad-step-hint {
    font-size: 12px;
    color: #999;
    font-style: italic;
    font-family: var(--font-body);
}

.notepad-footer {
    padding: 12px 20px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fafafa;
    flex-shrink: 0;
}

.notepad-progress {
    flex: 1;
    height: 3px;
    background: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}

.notepad-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notepad-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.notepad-btn:hover {
    background: #5558e6;
    transform: translateY(-1px);
}

.notepad-btn:active {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .welcome-notepad {
        right: 0;
        left: 0;
        margin: auto;
        width: 420px;
    }

    .demo-icons,
    .demo-badge {
        display: none;
    }
}

@media (max-width: 767px) {
    .welcome-notepad {
        right: 0;
        left: 0;
        top: auto;
        bottom: 0;
        margin: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 60vh;
        height: auto;
    }

    .notepad-step-title {
        font-size: 19px;
    }

    .notepad-content {
        padding: 20px;
    }

    .demo-icons {
        display: none;
    }

    .demo-icon span:first-child {
        width: 36px;
        height: 36px;
        font-size: 26px;
    }
}

.demo-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.demo-cta-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-display);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.3px;
    transition: transform 0.15s ease;
}

.demo-browser {
    position: absolute;
    top: 8%;
    left: 18%;
    width: 50%;
    height: 65%;
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: scale(0.9);
    z-index: 4;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.45s ease;
}

.demo-browser-bar {
    height: 32px;
    background: #2b2b3d;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 8px;
    flex-shrink: 0;
}

.demo-browser-dots {
    display: flex;
    gap: 5px;
}

.demo-browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.demo-browser-dots span:nth-child(1) { background: #ff5f56; }
.demo-browser-dots span:nth-child(2) { background: #ffbd2e; }
.demo-browser-dots span:nth-child(3) { background: #27c93f; }

.demo-browser-address {
    flex: 1;
    height: 22px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 11px;
    padding: 0 10px;
    font-size: 10px;
    color: #888;
    display: flex;
    align-items: center;
    font-family: var(--font-display);
}

.demo-browser-lock {
    font-size: 8px;
    margin-right: 4px;
}

.demo-browser-bar .demo-window-controls {
    margin-left: auto;
}

.demo-browser-body {
    flex: 1;
    background: #ffffff;
    overflow: hidden;
}

.demo-portfolio-hero {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 100%);
    padding: 14px 16px 12px;
}

.demo-portfolio-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.demo-portfolio-logo {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    margin-right: auto;
    font-family: var(--font-display);
}

.demo-portfolio-nav-link {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-display);
}

.demo-portfolio-heading {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    font-family: var(--font-display);
}

.demo-portfolio-sub {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-display);
}

.demo-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 12px;
}

.demo-portfolio-card {
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(8px);
}

.demo-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.demo-card-info {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.demo-card-info span:first-child {
    font-size: 8px;
    font-weight: 600;
    color: #333;
    font-family: var(--font-display);
}

.demo-card-tag {
    font-size: 7px;
    color: #888;
    font-family: var(--font-display);
}

.scene-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 15;
    pointer-events: none;
}

.scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.scene.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

.desktop-scene {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: none;
    flex-direction: column;
}

.desktop-scene.active {
    display: flex;
}

.desktop-icons {
    position: relative;
    flex: 1;
    z-index: 1;
    padding: 28px 24px;
    display: grid;
    grid-template-rows: repeat(auto-fill, 92px);
    grid-auto-flow: column;
    grid-auto-columns: 90px;
    gap: 6px 10px;
    align-content: start;
    overflow: hidden;
}

.desktop-icon {
    width: 84px;
    height: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 6px;
    transition: background 0.15s ease;
    user-select: none;
    will-change: transform;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.08);
}

.desktop-icon.dragging {
    z-index: 100;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
    background: rgba(255, 255, 255, 0.06);
}

.desktop-icon-img {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    line-height: 1;
}

.desktop-icon-label {
    font-size: 11px;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.desktop-taskbar {
    height: 48px;
    background: rgba(18, 18, 38, 0.88);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    padding: 0 12px;
    z-index: 2;
    position: relative;
}

.taskbar-start {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.taskbar-start:hover {
    background: rgba(255, 255, 255, 0.08);
}

.taskbar-start img {
    width: 24px;
    height: 24px;
}

.taskbar-apps {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.taskbar-app-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.15s ease;
    position: relative;
}

.taskbar-app-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.taskbar-tray {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.taskbar-tray-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.15s ease;
}

.taskbar-tray-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.taskbar-clock {
    height: 32px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    transition: background 0.15s ease;
}

.taskbar-clock:hover {
    background: rgba(255, 255, 255, 0.08);
}


.scene.windowed {
    opacity: 1;
    visibility: visible;
    z-index: 3;
    pointer-events: auto;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    background: var(--bg-dark);
    backdrop-filter: blur(8px);
    will-change: opacity;
}

.transition-overlay.active {
    opacity: 1;
}

.transition-overlay::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    top: -2px;
    animation: scanline 0.6s linear forwards;
    box-shadow: 0 0 12px var(--accent-blue), 0 0 24px rgba(79, 195, 247, 0.3);
}

.gimmick {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.gimmick:hover {
    filter: brightness(1.15);
}

.gimmick::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 200;
}

.gimmick:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ide-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.ide-panels {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.app-titlebar-vscode {
    background: #181825;
    color: rgba(255, 255, 255, 0.9);
}


.app-titlebar-vscode .win-ctrl {
    color: rgba(255, 255, 255, 0.6);
}

.app-titlebar-vscode .win-ctrl:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.editor-panel {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    background: var(--bg-editor);
    border-right: 1px solid #2a2a3c;
}

.editor-titlebar-legacy {
    display: none;
}

.window-dots {
    display: flex;
    gap: 6px;
    margin-right: 8px;
}

.dot-red,
.dot-yellow,
.dot-green {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.titlebar-text {
    font-size: 12px;
    color: #666;
    flex: 1;
    text-align: center;
}

.editor-tabs {
    height: 35px;
    background: #181825;
    display: flex;
    border-bottom: 1px solid #2a2a3c;
}

.editor-tab {
    padding: 8px 16px;
    font-size: 13px;
    color: #888;
    border-right: 1px solid #2a2a3c;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.editor-tab:hover {
    color: #ccc;
}

.editor-tab.active {
    background: var(--bg-editor);
    color: #e0e0e0;
    border-bottom: 2px solid var(--accent-blue);
}

.editor-tab-icon {
    font-size: 14px;
}

.editor-content {
    flex: 1;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    overflow: hidden;
    color: var(--text-code);
}

.editor-line {
    display: flex;
}

.line-number {
    width: 40px;
    text-align: right;
    color: #555;
    user-select: none;
    padding-right: 16px;
    flex-shrink: 0;
}

.line-code {
    flex: 1;
    white-space: pre;
}

.syntax-keyword {
    color: #c678dd;
}

.syntax-string {
    color: #98c379;
}

.syntax-tag {
    color: #e06c75;
}

.syntax-attr {
    color: #d19a66;
}

.syntax-value {
    color: #98c379;
}

.syntax-comment {
    color: #5c6370;
    font-style: italic;
}

.syntax-func {
    color: #61afef;
}

.syntax-punct {
    color: #abb2bf;
}

.editor-terminal {
    height: 120px;
    background: var(--bg-terminal);
    border-top: 1px solid #333;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #888;
    overflow: hidden;
}

.editor-terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-panel {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    background: #1a1a2e;
}

.browser-chrome {
    height: 52px;
    background: #2b2b3d;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.browser-dots {
    display: flex;
    gap: 6px;
    margin-right: 4px;
}

.browser-nav-btns {
    display: flex;
    gap: 4px;
    margin-right: 4px;
}

.browser-nav-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    border-radius: 4px;
    user-select: none;
}

.address-icon {
    margin-right: 6px;
    font-size: 10px;
}

.browser-address {
    flex: 1;
    height: 30px;
    background: #1a1a2e;
    border-radius: 15px;
    padding: 0 14px;
    font-size: 12.5px;
    color: #888;
    display: flex;
    align-items: center;
}

.browser-address-lock {
    margin-right: 6px;
    font-size: 10px;
    color: var(--accent-green);
}

.browser-toolbar {
    display: flex;
    gap: 6px;
    align-items: center;
}

.browser-toolbar-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.browser-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.deploy-btn {
    width: auto;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(102, 187, 106, 0.2);
    color: var(--accent-green);
}

.preview-content {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-hero {
    text-align: center;
    color: #ffffff;
}

.preview-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.preview-hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.preview-hero-subtitle {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 24px;
    line-height: 1.5;
}

.preview-hero-cta {
    display: inline-block;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

.preview-hero-cta:hover {
    background: rgba(255, 255, 255, 0.3);
}

.terminal-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--bg-terminal);
}

.terminal-tabs {
    display: flex;
    margin-left: 12px;
}

.terminal-tab {
    padding: 6px 16px;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.terminal-tab:hover {
    color: #ccc;
}

.terminal-tab.active {
    background: var(--bg-terminal);
    color: #e0e0e0;
}

.terminal-body {
    flex: 1;
    background: var(--bg-terminal);
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.8;
    overflow: hidden;
}

.terminal-line {
    margin-bottom: 2px;
}

.terminal-prompt {
    color: var(--accent-green);
}

.terminal-command {
    color: #e0e0e0;
}

.terminal-output {
    color: #888;
}

.terminal-success {
    color: var(--accent-green);
}

.terminal-error {
    color: var(--accent-red);
}

.terminal-warning {
    color: var(--accent-orange);
}

.terminal-info {
    color: var(--accent-blue);
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent-green);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

.terminal-progress {
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 8px 0;
    overflow: hidden;
}

.terminal-progress-fill {
    height: 100%;
    background: var(--accent-green);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.terminal-statusbar {
    height: 24px;
    background: #1a1a2e;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 11px;
    color: #666;
    align-items: center;
}

.statusbar-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.statusbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.statusbar-branch {
    color: #888;
}

.statusbar-sync {
    color: #666;
}

.statusbar-item {
    color: #888;
    cursor: default;
    transition: color 0.2s ease;
}

.statusbar-item:hover {
    color: #ccc;
}

.app-titlebar {
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    font-size: 12px;
    user-select: none;
    flex-shrink: 0;
}

.app-titlebar-word {
    background: #2b579a;
    color: rgba(255, 255, 255, 0.9);
}

.app-titlebar-excel {
    background: #217346;
    color: rgba(255, 255, 255, 0.9);
}

.app-titlebar-ppt {
    background: #b7472a;
    color: rgba(255, 255, 255, 0.9);
}

.app-titlebar-terminal {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.9);
}

.app-titlebar-premiere {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.9);
}

.app-titlebar-explorer {
    background: #f0f0f0;
    color: #333;
    border-bottom: 1px solid #d0d0d0;
}

.app-titlebar-explorer .app-titlebar-name {
    color: #333;
}

.app-titlebar-explorer .win-ctrl {
    color: #666;
}

.app-titlebar-explorer .win-ctrl:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}

.app-titlebar-explorer .win-close:hover {
    background: #e81123;
    color: #ffffff;
}

.app-titlebar-terminal .terminal-tabs {
    display: flex;
    margin-left: 4px;
}

.app-titlebar-terminal .terminal-tab {
    padding: 4px 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.app-titlebar-terminal .terminal-tab.active {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--accent-green);
}

.app-titlebar-terminal .terminal-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.premiere-project-name {
    color: rgba(255, 255, 255, 0.6);
}

.app-titlebar-terminal .win-ctrl,
.app-titlebar-premiere .win-ctrl {
    color: rgba(255, 255, 255, 0.6);
}

.app-titlebar-terminal .win-ctrl:hover,
.app-titlebar-premiere .win-ctrl:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.app-titlebar-left {
    display: flex;
    align-items: center;
    gap: 2px;
}


.app-titlebar-qat {
    display: flex;
    gap: 1px;
    margin-left: 4px;
}

.qat-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.15s ease;
}

.qat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.app-titlebar-name {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-titlebar-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.app-titlebar-search {
    padding: 3px 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin-right: 8px;
    white-space: nowrap;
}

.window-controls {
    display: flex;
}

.win-ctrl {
    width: 36px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.15s ease;
}

.win-ctrl:hover {
    background: rgba(255, 255, 255, 0.1);
}

.win-close:hover {
    background: #e81123;
    color: #ffffff;
}

.doc-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--bg-doc);
}

.doc-ribbon {
    background: #2b579a;
    color: #ffffff;
}

.doc-ribbon-tabs {
    display: flex;
    height: 32px;
}

.doc-ribbon-tab {
    padding: 0 18px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
}

.doc-ribbon-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.doc-ribbon-tab.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.doc-ribbon-tools {
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.doc-ribbon-btn {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 3px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.doc-ribbon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.doc-ribbon-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
}

.doc-ribbon-spacer {
    flex: 1;
}

.doc-font-select,
.doc-size-select {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 11px;
    font-family: inherit;
}

.doc-share-btn {
    background: rgba(255, 255, 255, 0.15);
    margin-left: auto;
}

.doc-ruler {
    height: 24px;
    background: #f0f0f0;
    border-bottom: 1px solid #d0d0d0;
}

.ruler-marks {
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 74px,
        #ccc 74px,
        #ccc 75px
    );
    margin: 0 72px;
}

.doc-canvas {
    flex: 1;
    background: var(--bg-doc);
    display: flex;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
}

.doc-page {
    width: 680px;
    min-height: 880px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    padding: 72px 72px 60px;
    font-family: var(--font-body);
    color: #333;
}

.doc-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.doc-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #888;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.doc-author {
    color: #2b579a;
}

.doc-date {
    color: #999;
}

.doc-paragraph {
    margin-bottom: 14px;
}

.doc-body {
    font-size: 13px;
    line-height: 1.8;
    color: #444;
}

.doc-body p {
    margin-bottom: 12px;
}

.doc-body h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 24px;
    margin-bottom: 12px;
}

.doc-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-top: 18px;
    margin-bottom: 8px;
}

.doc-body ul {
    margin-left: 20px;
    margin-bottom: 12px;
    list-style: disc;
}

.doc-body li {
    margin-bottom: 4px;
}

.doc-statusbar {
    height: 24px;
    background: #f5f5f5;
    border-top: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 11px;
    color: #888;
}

.doc-statusbar .statusbar-left {
    gap: 16px;
}

.doc-statusbar .statusbar-right {
    gap: 16px;
}

.spreadsheet-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--bg-spreadsheet);
}

.ss-ribbon {
    background: #217346;
    color: #ffffff;
}

.ss-ribbon-tabs {
    display: flex;
    height: 32px;
}

.ss-ribbon-tab {
    padding: 0 18px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
}

.ss-ribbon-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.ss-ribbon-tab.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.ss-ribbon-tools {
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.ss-ribbon-btn {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 3px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.ss-ribbon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ss-ribbon-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
}

.ss-ribbon-spacer {
    flex: 1;
}

.ss-share-btn {
    background: rgba(255, 255, 255, 0.15);
    margin-left: auto;
}

.ss-formula-bar {
    height: 28px;
    background: #ffffff;
    border-bottom: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 12px;
}

.ss-formula-label {
    width: 40px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #d0d0d0;
    padding-right: 8px;
    margin-right: 8px;
}

.ss-formula-fx {
    padding: 0 6px;
    font-style: italic;
    color: #666;
    font-size: 11px;
    border-right: 1px solid #d0d0d0;
    margin-right: 8px;
}

.ss-formula-input {
    flex: 1;
    padding: 0 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #333;
}

.ss-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.ss-grid-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ss-col-headers {
    display: flex;
    height: 22px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.ss-col-header-spacer {
    width: 40px;
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
}

.ss-col-header {
    flex: 1;
    text-align: center;
    font-size: 11px;
    border: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: 500;
    background: #f5f5f5;
}

.ss-row {
    display: flex;
    height: 24px;
    flex-shrink: 0;
}

.ss-row-header {
    width: 40px;
    background: #f5f5f5;
    text-align: center;
    font-size: 11px;
    border: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    flex-shrink: 0;
}

.ss-cell {
    flex: 1;
    border: 1px solid #e0e0e0;
    padding: 2px 6px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: #333;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.ss-cell.selected {
    border: 2px solid #217346;
    background: rgba(33, 115, 70, 0.05);
}

.ss-cell.header-cell {
    background: #f5f5f5;
    font-weight: 600;
}

.ss-cell.number {
    justify-content: flex-end;
}

.ss-corner-cell {
    width: 40px;
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    flex-shrink: 0;
}

.ss-chart-area {
    height: 200px;
    padding: 16px;
    background: #ffffff;
    border-top: 2px solid #e0e0e0;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    justify-content: center;
}

.ss-chart-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ss-chart-title {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 8px;
}

.ss-chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
}

.ss-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ss-bar {
    width: 48px;
    background: #217346;
    border-radius: 3px 3px 0 0;
    transition: height 1s ease;
}

.ss-bar:nth-child(even) {
    background: #2d9254;
}

.ss-bar-label {
    text-align: center;
    font-size: 10px;
    color: #666;
    margin-top: 4px;
}

.ss-tabs {
    display: flex;
    height: 28px;
    background: #f5f5f5;
    border-top: 1px solid #d0d0d0;
    flex-shrink: 0;
}

.ss-sheet-tab {
    padding: 4px 20px;
    font-size: 11px;
    border: 1px solid #d0d0d0;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.ss-sheet-tab:hover {
    background: #e8e8e8;
}

.ss-sheet-tab.active {
    background: #ffffff;
    color: #333;
    font-weight: 500;
}

.ss-new-tab {
    padding: 4px 12px;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.ss-new-tab:hover {
    color: #333;
}

.ss-statusbar {
    height: 22px;
    background: #217346;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    font-size: 11px;
    gap: 16px;
    flex-shrink: 0;
}

.ppt-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.ppt-ribbon {
    background: #b7472a;
    color: #ffffff;
}

.ppt-ribbon-tabs {
    display: flex;
    height: 32px;
}

.ppt-ribbon-tab {
    padding: 0 18px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
}

.ppt-ribbon-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.ppt-ribbon-tab.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.ppt-ribbon-tools {
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.ppt-ribbon-btn {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 3px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.ppt-ribbon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ppt-ribbon-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
}

.ppt-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.ppt-sidebar {
    width: 180px;
    background: #f3f3f3;
    padding: 12px;
    border-right: 1px solid #d0d0d0;
    overflow-y: auto;
    flex-shrink: 0;
}

.slide-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #ffffff;
    border: 2px solid transparent;
    margin-bottom: 8px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
    padding: 8px;
    transition: border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide-thumb:hover {
    border-color: #d0d0d0;
}

.slide-thumb.active {
    border-color: #b7472a;
}

.slide-thumb-content {
    width: 100%;
}

.thumb-title {
    font-size: 7px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

.thumb-subtitle {
    font-size: 5px;
    color: #888;
    text-align: center;
    margin-top: 2px;
}

.slide-thumb-number {
    font-size: 9px;
    color: #999;
    text-align: center;
    margin-top: 4px;
}

.ppt-canvas {
    flex: 1;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ppt-slide {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.slide-heading {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.slide-content {
    margin-top: 24px;
    width: 100%;
}

.slide-bullet {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.slide-bullet::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b7472a;
}

.slide-cta {
    margin-top: 32px;
    padding: 12px 32px;
    background: #b7472a;
    color: #ffffff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s ease;
}

.slide-cta:hover {
    background: #c95435;
}

.slide-watermark {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 11px;
    color: #ccc;
}

.slide-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b7472a, #e06c75, #b7472a);
}

.ppt-statusbar {
    height: 24px;
    background: #f5f5f5;
    border-top: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 11px;
    color: #888;
    flex-shrink: 0;
}

.premiere-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #111;
}

.premiere-titlebar-legacy {
    height: 28px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 11px;
    color: #888;
    gap: 8px;
    flex-shrink: 0;
}

.premiere-app-name {
    font-weight: 600;
    color: #aaa;
}

.premiere-title-sep {
    color: #555;
}

.premiere-project-name {
    color: #888;
}

.premiere-titlebar-spacer {
    flex: 1;
}

.premiere-menubar {
    height: 24px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 16px;
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

.premiere-menubar span {
    cursor: pointer;
    transition: color 0.2s ease;
}

.premiere-menubar span:hover {
    color: #ffffff;
}

.premiere-menu-spacer {
    flex: 1;
}

.premiere-export-btn {
    padding: 2px 12px;
    background: #3a6ea5;
    color: #ffffff;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.premiere-export-btn:hover {
    background: #4a7eb5;
}

.premiere-panels {
    flex: 1;
    display: flex;
    gap: 2px;
    background: #111;
    overflow: hidden;
}

.project-panel {
    width: 240px;
    background: var(--bg-premiere);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.panel-header {
    height: 28px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 11px;
    color: #999;
    border-bottom: 1px solid #111;
    flex-shrink: 0;
}

.panel-content {
    flex: 1;
    padding: 8px;
    overflow: hidden;
}

.project-item {
    padding: 4px 8px;
    font-size: 11px;
    color: #ccc;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.project-item:hover {
    background: #333;
}

.project-item-icon {
    width: 12px;
    color: #888;
    font-size: 10px;
    text-align: center;
    flex-shrink: 0;
}

.project-item-icon.video {
    color: #3a6ea5;
}

.project-item-icon.audio {
    color: #4e8a3e;
}

.project-item-icon.image {
    color: #8a5a3e;
}

.preview-monitor {
    flex: 1;
    background: var(--bg-premiere);
    display: flex;
    flex-direction: column;
}

.monitor-viewport {
    flex: 1;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.monitor-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #2d1b4e, #1a1a2e);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.monitor-text {
    position: absolute;
    text-align: center;
    color: #ffffff;
    z-index: 5;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.transport-controls {
    height: 36px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.transport-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    border-radius: 3px;
    font-size: 12px;
    transition: background 0.15s ease;
}

.transport-btn:hover {
    background: #444;
}

.transport-play {
    color: var(--accent-green);
    font-size: 16px;
}

.timecode {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-blue);
    margin: 0 12px;
    letter-spacing: 1px;
}

.effects-panel {
    width: 220px;
    background: var(--bg-premiere);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.effect-item {
    padding: 4px 8px;
    font-size: 11px;
    color: #ccc;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.effect-item:hover {
    background: #333;
}

.effect-category {
    margin-bottom: 8px;
}

.effect-cat-title {
    font-size: 11px;
    color: #999;
    padding: 4px 8px;
    font-weight: 500;
}

.premiere-timeline {
    height: 180px;
    background: #1e1e1e;
    border-top: 2px solid #333;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.timeline-header {
    height: 24px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.timeline-tools {
    display: flex;
    gap: 2px;
    padding: 0 8px;
    flex-shrink: 0;
}

.timeline-tool {
    width: 22px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #888;
    border-radius: 2px;
    cursor: pointer;
}

.timeline-tool.active {
    background: #444;
    color: #fff;
}

.timeline-tool:hover {
    color: #ccc;
}

.timeline-header-label {
    width: 60px;
    font-size: 10px;
    color: #888;
    padding: 0 8px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.timeline-ruler {
    flex: 1;
    position: relative;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 99px,
        #444 99px,
        #444 100px
    );
}

.timeline-ruler-mark {
    position: absolute;
    top: 0;
    font-size: 9px;
    color: #666;
    padding: 2px 4px;
}

.timeline-tracks {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.timeline-track {
    height: 28px;
    display: flex;
    border-bottom: 1px solid #2a2a2a;
}

.track-label {
    width: 60px;
    background: #252525;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 10px;
    color: #888;
    flex-shrink: 0;
    border-right: 1px solid #333;
}

.track-content {
    flex: 1;
    position: relative;
    background: #1a1a1a;
}

.track-clip {
    position: absolute;
    height: 22px;
    top: 3px;
    border-radius: 3px;
    font-size: 9px;
    display: flex;
    align-items: center;
    padding: 0 6px;
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.track-clip:hover {
    filter: brightness(1.2);
}

.track-clip.video {
    background: #3a6ea5;
}

.track-clip.audio {
    background: #4e8a3e;
}

.track-clip.title {
    background: #8a5a3e;
}

.track-clip.effect {
    background: #6a3ea5;
}

.timeline-playhead {
    position: absolute;
    top: 0;
    width: 2px;
    background: var(--accent-red);
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.timeline-playhead::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -5px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--accent-red);
}

.premiere-statusbar {
    height: 20px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 12px;
    font-size: 10px;
    color: #666;
    gap: 12px;
    flex-shrink: 0;
}

.thispc-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #ffffff;
}

.thispc-toolbar {
    height: 36px;
    background: #f8f8f8;
    border-bottom: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
}

.thispc-nav {
    display: flex;
    gap: 2px;
}

.thispc-nav-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #888;
    border-radius: 4px;
}

.thispc-nav-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.thispc-breadcrumb {
    flex: 1;
    height: 28px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
}

.thispc-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.thispc-sidebar {
    width: 200px;
    background: #f8f8f8;
    border-right: 1px solid #e0e0e0;
    padding: 8px 0;
    flex-shrink: 0;
    overflow-y: auto;
}

.thispc-sidebar-item {
    padding: 6px 16px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: background 0.15s ease;
}

.thispc-sidebar-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.thispc-sidebar-item.active {
    background: rgba(0, 120, 215, 0.08);
    color: #0078d7;
}

.thispc-content {
    flex: 1;
    padding: 16px 24px;
    overflow-y: auto;
}

.thispc-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    margin-top: 20px;
}

.thispc-section-title:first-child {
    margin-top: 0;
}

.thispc-drives {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.thispc-drive-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.thispc-drive-card:hover {
    background: rgba(0, 120, 215, 0.04);
    border-color: #0078d7;
}

.thispc-drive-icon {
    font-size: 28px;
    flex-shrink: 0;
}

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

.thispc-drive-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.thispc-drive-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.thispc-drive-fill {
    height: 100%;
    background: #0078d7;
    border-radius: 2px;
    width: 0%;
    transition: width 1.2s ease;
}

.thispc-drive-fill.warning {
    background: #d32f2f;
}

.thispc-drive-space {
    font-size: 11px;
    color: #888;
}

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

.thispc-sysinfo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f8f8;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.thispc-sysinfo-item:hover {
    background: #f0f0f0;
}

.thispc-sysinfo-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.thispc-sysinfo-label {
    font-size: 11px;
    color: #888;
    min-width: 60px;
}

.thispc-sysinfo-value {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.thispc-statusbar {
    height: 24px;
    background: #f0f0f0;
    border-top: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 11px;
    color: #888;
    flex-shrink: 0;
}

.explorer-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #ffffff;
}

.explorer-toolbar {
    height: 36px;
    background: #f8f8f8;
    border-bottom: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
}

.explorer-nav {
    display: flex;
    gap: 2px;
}

.explorer-nav-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #888;
    border-radius: 4px;
}

.explorer-nav-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.explorer-breadcrumb {
    flex: 1;
    height: 28px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
}

.explorer-ribbon {
    height: 40px;
    background: #f8f8f8;
    border-bottom: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
    overflow-x: auto;
}

.explorer-ribbon-btn {
    padding: 5px 10px;
    font-size: 11px;
    color: #555;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.explorer-ribbon-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.explorer-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.explorer-sidebar {
    width: 200px;
    background: #f8f8f8;
    border-right: 1px solid #e0e0e0;
    padding: 8px 0;
    flex-shrink: 0;
    overflow-y: auto;
}

.explorer-tree-item {
    padding: 5px 12px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: background 0.15s ease;
}

.explorer-tree-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.explorer-tree-item.active {
    background: rgba(0, 120, 215, 0.08);
    color: #0078d7;
}

.explorer-tree-item.indent {
    padding-left: 28px;
}

.explorer-tree-item.indent2 {
    padding-left: 44px;
}

.explorer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.explorer-file-header {
    display: flex;
    height: 28px;
    background: #f5f5f5;
    border-bottom: 1px solid #d0d0d0;
    align-items: center;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
}

.explorer-col-name {
    flex: 2;
}

.explorer-col-date {
    flex: 1;
}

.explorer-col-type {
    flex: 1;
}

.explorer-col-size {
    width: 80px;
    text-align: right;
}

.explorer-file-list {
    flex: 1;
    overflow-y: auto;
    padding: 2px 0;
}

.explorer-file-item {
    display: flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: background 0.12s ease;
}

.explorer-file-item:hover {
    background: rgba(0, 120, 215, 0.06);
}

.explorer-file-item.selected {
    background: rgba(0, 120, 215, 0.12);
    outline: 1px solid rgba(0, 120, 215, 0.3);
}

.explorer-file-icon {
    width: 20px;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 6px;
}

.explorer-file-name {
    flex: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explorer-file-item.renaming .explorer-file-name {
    border: 1px solid #0078d7;
    border-radius: 2px;
    padding: 0 4px;
    background: rgba(0, 120, 215, 0.04);
}

.explorer-file-date {
    flex: 1;
    color: #888;
    font-size: 11px;
}

.explorer-file-type {
    flex: 1;
    color: #888;
    font-size: 11px;
}

.explorer-file-size {
    width: 80px;
    text-align: right;
    color: #888;
    font-size: 11px;
}

.explorer-statusbar {
    height: 24px;
    background: #f0f0f0;
    border-top: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 11px;
    color: #888;
    gap: 16px;
    flex-shrink: 0;
}

.recbin-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #ffffff;
}

.recbin-toolbar {
    height: 40px;
    background: #f8f8f8;
    border-bottom: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.recbin-empty-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    background: #d32f2f;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    font-family: var(--font-display);
}

.recbin-empty-btn:hover {
    background: #b71c1c;
}

.recbin-empty-btn.pulse {
    animation: recbinPulse 0.6s ease infinite;
}

.recbin-restore-btn {
    padding: 5px 14px;
    font-size: 12px;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.recbin-restore-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.recbin-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.recbin-header {
    display: flex;
    height: 28px;
    background: #f5f5f5;
    border-bottom: 1px solid #d0d0d0;
    align-items: center;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
}

.recbin-col-name {
    flex: 2;
}

.recbin-col-loc {
    flex: 1.5;
}

.recbin-col-date {
    flex: 1;
}

.recbin-col-size {
    width: 80px;
    text-align: right;
}

.recbin-items {
    flex: 1;
    overflow-y: auto;
    padding: 2px 0;
}

.recbin-item {
    display: flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: background 0.12s ease, opacity 0.3s ease, transform 0.3s ease;
}

.recbin-item:hover {
    background: rgba(0, 120, 215, 0.06);
}

.recbin-item-icon {
    width: 20px;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 6px;
}

.recbin-item-name {
    flex: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recbin-item-loc {
    flex: 1.5;
    color: #888;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recbin-item-date {
    flex: 1;
    color: #888;
    font-size: 11px;
}

.recbin-item-size {
    width: 80px;
    text-align: right;
    color: #888;
    font-size: 11px;
}

.recbin-empty-state {
    position: absolute;
    inset: 28px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    background: #ffffff;
}

.recbin-empty-state.visible {
    opacity: 1;
}

.recbin-empty-icon {
    font-size: 64px;
    color: #d0d0d0;
    margin-bottom: 12px;
}

.recbin-empty-text {
    font-size: 14px;
    color: #999;
}

.recbin-statusbar {
    height: 24px;
    background: #f0f0f0;
    border-top: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 11px;
    color: #888;
    flex-shrink: 0;
}

.start-menu {
    position: absolute;
    bottom: 48px;
    left: 12px;
    width: 380px;
    max-height: calc(100vh - 60px);
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 12px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    z-index: 100;
    overflow-y: auto;
    transform: scale(0.95) translateY(8px);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom left;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.start-menu.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.start-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 12px;
}

.start-menu-logo {
    width: 32px;
    height: 32px;
}

.start-menu-header-text {
    display: flex;
    flex-direction: column;
}

.start-menu-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.start-menu-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.start-menu-search {
    margin: 0 16px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
}

.start-menu-search-icon {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.start-menu-search-input {
    flex: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-display);
}

.start-menu-section {
    padding: 0 16px 12px;
}

.start-menu-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 0 4px;
}

.start-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.start-menu-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-family: var(--font-display);
    transition: background 0.15s ease;
}

.start-menu-tile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-menu-tile span {
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-family: var(--font-mono);
    font-weight: 700;
}

.start-menu-tile div {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.2;
}

.start-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.start-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.15s ease;
}

.start-menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.start-menu-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 8px 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
}

.start-menu-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.15s ease;
}

.start-menu-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.line-modal {
    position: absolute;
    bottom: 48px;
    right: 16px;
    width: 320px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.06);
    z-index: 100;
    overflow: hidden;
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.line-modal.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.line-modal-header {
    background: #06C755;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.line-modal-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.line-modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.15s ease;
}

.line-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.line-modal-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.line-modal-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.line-modal-avatar img {
    width: 40px;
    height: 40px;
}

.line-modal-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.line-modal-id {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
}

.line-modal-msg {
    width: 100%;
    margin-bottom: 20px;
}

.line-modal-bubble {
    background: #E6F9EE;
    border-radius: 16px 16px 16px 4px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    text-align: left;
    font-family: var(--font-body);
}

.line-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #06C755;
    color: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-display);
    transition: background 0.15s ease;
}

.line-modal-btn:hover {
    background: #05a648;
}

@keyframes recbinPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(211, 47, 47, 0);
    }
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes scanline {
    0% {
        top: -2px;
    }
    100% {
        top: 100%;
    }
}

@keyframes typing-cursor {
    0%,
    100% {
        border-right-color: transparent;
    }
    50% {
        border-right-color: currentColor;
    }
}

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

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

@keyframes bootSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes barGrow {
    from {
        height: 0;
    }
}

@media (max-width: 1199px) {
    .ide-layout .editor-panel {
        flex: 0 0 100%;
    }

    .ide-layout .preview-panel {
        display: none;
    }

    .ppt-sidebar {
        display: none;
    }

    .premiere-layout .effects-panel {
        display: none;
    }

    .thispc-sidebar {
        display: none;
    }

    .explorer-sidebar {
        display: none;
    }

    .premiere-layout .project-panel {
        width: 180px;
    }

    .doc-page {
        width: 100%;
        padding: 48px;
    }

    .ppt-slide {
        padding: 32px;
    }

    .slide-heading {
        font-size: 28px;
    }

    .slide-subtitle {
        font-size: 16px;
    }

    .preview-hero-title {
        font-size: 26px;
    }

    .preview-hero-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .app-titlebar-qat,
    .app-titlebar-search {
        display: none;
    }

    .app-titlebar {
        height: 28px;
    }

    .win-ctrl {
        width: 28px;
        height: 24px;
        font-size: 11px;
    }

    .app-titlebar-name {
        font-size: 11px;
    }

    .editor-tabs {
        display: none;
    }

    .editor-terminal {
        display: none;
    }

    .terminal-tabs {
        display: none;
    }

    .doc-ribbon-tools {
        display: none;
    }

    .doc-ruler {
        display: none;
    }

    .doc-page {
        padding: 24px;
        min-height: auto;
    }

    .doc-title {
        font-size: 20px;
    }

    .ss-chart-area {
        display: none;
    }

    .ss-ribbon-tools {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .ppt-sidebar {
        display: none;
    }

    .ppt-ribbon-tools {
        display: none;
    }

    .premiere-layout .project-panel {
        display: none;
    }

    .premiere-layout .effects-panel {
        display: none;
    }

    .premiere-timeline {
        height: 120px;
    }

    .thispc-sidebar {
        display: none;
    }

    .thispc-drives {
        grid-template-columns: 1fr;
    }

    .thispc-sysinfo-grid {
        grid-template-columns: 1fr;
    }

    .explorer-sidebar {
        display: none;
    }

    .explorer-ribbon {
        overflow-x: auto;
    }

    .explorer-file-type {
        display: none;
    }

    .explorer-col-type {
        display: none;
    }

    .recbin-col-loc,
    .recbin-item-loc {
        display: none;
    }

    .desktop-icons {
        padding: 16px 12px;
        grid-template-rows: repeat(auto-fill, 80px);
        grid-auto-columns: 76px;
        gap: 4px 6px;
    }

    .desktop-icon {
        width: 72px;
        height: 72px;
    }

    .desktop-icon-img {
        width: 36px;
        height: 36px;
        font-size: 32px;
    }

    .desktop-icon-label {
        font-size: 10px;
    }

    .desktop-taskbar {
        height: 44px;
    }

    .taskbar-app-btn {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }

    .slide-heading {
        font-size: 22px;
    }

    .slide-subtitle {
        font-size: 14px;
    }

    .browser-chrome {
        height: 40px;
    }

    .browser-address {
        font-size: 11px;
        height: 26px;
    }

    .ppt-slide {
        padding: 20px;
    }

    .slide-cta {
        padding: 8px 20px;
        font-size: 12px;
    }

    .terminal-body {
        padding: 12px;
        font-size: 12px;
    }

    .doc-ribbon-tabs {
        overflow-x: auto;
    }

    .doc-canvas {
        padding: 12px;
    }

    .ss-formula-bar {
        font-size: 11px;
    }

    .premiere-menubar {
        font-size: 11px;
        gap: 10px;
        overflow-x: auto;
    }

    .timeline-track {
        height: 22px;
    }

    .track-clip {
        height: 16px;
        top: 3px;
        font-size: 8px;
    }

    .gimmick::after {
        font-size: 10px;
        padding: 4px 8px;
    }

    .start-menu {
        left: 0;
        right: 0;
        width: auto;
        max-width: 100%;
        margin: 0 8px;
        bottom: 44px;
        border-radius: 12px;
    }

    .line-modal {
        right: 8px;
        left: 8px;
        width: auto;
        bottom: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scene {
        transition: none;
    }

    .terminal-cursor {
        animation: none;
    }

    .transition-overlay {
        display: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
