@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;1,400&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0d0d0d;
    --surface: #161616;
    --surface2: #1e1e1e;
    --surface3: #272727;
    --border: #2c2c2c;
    --border2: #3c3c3c;
    --text: #e4e1da;
    --text2: #9a9690;
    --text3: #5c5a56;
    --accent: #e8a020;
    --accent2: #c07010;
    --accent-dim: rgba(232,160,32,0.10);
    --accent-glow: 0 0 16px rgba(232,160,32,0.25);
    --red: #e05050;
    --green: #50b878;
    --topbar-h: 54px;
    --secondary-h: 40px;
    --r: 7px;
    --r-sm: 4px;
    --ease: cubic-bezier(0.16,1,0.3,1);
    --ease-std: cubic-bezier(0.4,0,0.2,1);
    --font-main: 'Outfit', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

[data-theme="light"] {
    --bg: #c9c6be;
    --surface: #c0bdb5;
    --surface2: #d4d1c8;
    --surface3: #b8b5ad;
    --border: #aaa79f;
    --border2: #96938c;
    --text: #0f0e0c;
    --text2: #3e3c39;
    --text3: #7a7874;
    --accent: #d88820;
    --accent-dim: rgba(216,136,32,0.12);
    --accent-glow: 0 0 16px rgba(216,136,32,0.25);
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 12px;
    transition: background .35s var(--ease), color .35s var(--ease);
}

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
    }

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.primary-topbar {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    animation: slideDown .45s var(--ease) both;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text);
    flex-shrink: 0;
    user-select: none;
}

    .logo svg {
        width: 22px;
        height: 22px;
        color: var(--accent);
    }

    .logo span {
        color: var(--accent);
    }

.nav-tabs {
    display: flex;
    gap: 2px;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 3px;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--text2);
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-main);
    transition: all .2s var(--ease);
}

    .nav-tab svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }

    .nav-tab:hover {
        color: var(--text);
    }

    .nav-tab.active {
        background: var(--surface2);
        color: var(--accent);
        box-shadow: 0 1px 6px rgba(0,0,0,.25);
    }

    .nav-tab.locked {
        opacity: 0.5;
        cursor: not-allowed;
    }

        .nav-tab.locked:hover {
            color: var(--text2);
        }

.topbar-search {
    flex: 1;
    max-width: 280px;
    position: relative;
}

    .topbar-search svg {
        position: absolute;
        left: 9px;
        top: 50%;
        transform: translateY(-50%);
        width: 13px;
        height: 13px;
        color: var(--text3);
        pointer-events: none;
    }

    .topbar-search input {
        width: 100%;
        padding: 6px 10px 6px 30px;
        background: var(--surface3);
        border: 1px solid var(--border);
        border-radius: var(--r-sm);
        color: var(--text);
        font-family: var(--font-mono);
        font-size: 12px;
        outline: none;
        transition: border-color .2s;
    }

        .topbar-search input::placeholder {
            color: var(--text3);
        }

        .topbar-search input:focus {
            border-color: var(--accent);
        }

.icon-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface3);
    color: var(--text2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s var(--ease);
    flex-shrink: 0;
}

    .icon-btn svg {
        width: 14px;
        height: 14px;
    }

    .icon-btn:hover {
        color: var(--text);
        border-color: var(--border2);
        background: var(--surface2);
    }

.btn-new {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    background: var(--accent);
    color: #0d0d0d;
    border: none;
    border-radius: var(--r-sm);
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s var(--ease);
    flex-shrink: 0;
}

    .btn-new svg {
        width: 13px;
        height: 13px;
    }

    .btn-new:hover {
        filter: brightness(1.12);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(232,160,32,.3);
    }

    .btn-new:active {
        transform: translateY(0);
    }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}
