:root {
    --bg: #0f172a;
    --bg-elevated: #111827;
    --bg-card: #020617;
    --border-subtle: #1f2937;
    --accent: #f97316;
    --accent-soft: rgba(249,115,22,0.08);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --danger: #ef4444;
    --success: #22c55e;
    --text: var(--text-main);
    --text-color: var(--text-main);
}

.navbar {
    min-height: 72px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(to right, #020617, #111827);
    position: sticky;
    top: 0;
    z-index: 200;
    overflow: visible;
}

.navbar-left {
    min-width: 0;
    flex: 1 1 auto;
}

.navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.navbar-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
    min-width: 0;
}

.app-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--text-color);
    min-width: 0;
}

.app-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    flex: 0 0 auto;
}

.app-logo-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.app-logo-text {
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: .92rem;
    font-weight: 800;
    color: var(--text-main);
}

.app-logo-beta {
    font-size: .72rem;
    color: var(--text-muted);
}

.navbar-workspace {
    min-width: 0;
    width: 100%;
    max-width: 420px;
}

.navbar-logout {
    font-size: .8rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(15,23,42,0.7);
    color: var(--accent);
    text-decoration: none;
}

.layout {
    max-width: 1120px;
    margin: 1.5rem auto 2.5rem;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.page-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-title h1 {
    margin: 0;
    font-size: 1.35rem;
}

.page-title p {
    margin: .15rem 0 0;
    font-size: .85rem;
    color: var(--text-muted);
}