.terminal-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top center, rgba(80, 92, 130, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(43, 220, 101, 0.08), transparent 26%),
        var(--bg);
}

.terminal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 76px;
    display: grid;
    grid-template-columns: 280px 1fr 420px;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 8, 10, 0.86);
    backdrop-filter: blur(24px);
}

.terminal-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--green), var(--blue));
    color: #020403;
    font-weight: 900;
}

.terminal-brand strong {
    display: block;
    font-size: 15px;
    letter-spacing: -0.04em;
}

.terminal-brand span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.terminal-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.terminal-nav a {
    min-width: 92px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    font-weight: 900;
}

.terminal-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.terminal-nav a.active {
    color: #050607;
    background: var(--text);
}

.terminal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.search-box {
    width: 250px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.logout-pill,
.save-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    font-weight: 900;
}

.save-pill {
    background: var(--green);
    color: #031006;
    border: none;
}

.terminal-main {
    width: min(1680px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 56px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 0;
    font-size: 38px;
    letter-spacing: -0.06em;
}

.session-panel {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.session-panel strong {
    display: block;
    font-size: 13px;
}

.session-panel small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 18px rgba(43, 220, 101, 0.85);
}

.image-mark {
    overflow: hidden;
    padding: 0;
}

.image-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 1180px) {
    .terminal-header {
        grid-template-columns: 1fr;
        height: auto;
        padding: 18px;
    }

    .terminal-nav {
        justify-self: stretch;
        overflow-x: auto;
    }

    .terminal-actions {
        justify-content: space-between;
    }

    .search-box {
        width: 100%;
    }
}