:root {
    --phase4-primary: #16324f;
    --phase4-primary-2: #1f4e79;
    --phase4-accent: #2f80ed;
    --phase4-bg: #f5f7fb;
    --phase4-sidebar-width: 280px;
}

body.phase4-app {
    background: var(--phase4-bg);
    color: #172033;
}

.phase4-topbar {
    background: var(--phase4-primary);
}

.phase4-env-development {
    border-bottom: 4px solid #dc3545;
}

.phase4-env-staging {
    border-bottom: 4px solid #198754;
}

.phase4-env-production {
    border-bottom: 4px solid var(--phase4-accent);
}

.phase4-shell {
    display: flex;
    min-height: calc(100vh - 112px);
}

.phase4-sidebar {
    width: var(--phase4-sidebar-width);
    min-height: calc(100vh - 60px);
}

.phase4-content {
    min-width: 0;
}

.phase4-nav-section {
    color: #6c757d;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin: 1rem 0 .4rem;
    text-transform: uppercase;
}

.phase4-nav-link {
    align-items: center;
    border-radius: .6rem;
    color: #263447;
    display: flex;
    font-weight: 500;
    padding: .65rem .8rem;
    text-decoration: none;
}

.phase4-nav-link:hover,
.phase4-nav-link:focus {
    background: #eef4ff;
    color: var(--phase4-primary-2);
}

.phase4-footer {
    background: #fff;
}

.phase4-login-body {
    background: radial-gradient(circle at top left, #eaf2ff 0, #f5f7fb 35%, #ffffff 100%);
}

.phase4-login-card {
    border-radius: 1rem;
}

.phase4-brand-mark {
    align-items: center;
    background: var(--phase4-primary);
    border-radius: .9rem;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    height: 3rem;
    justify-content: center;
    letter-spacing: .03em;
    width: 3rem;
}

.card {
    border-radius: .9rem;
}

.phase4-icon-tile {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: #e8f1ff;
    color: var(--phase4-primary);
    flex: 0 0 auto;
}

.phase4-nav-note {
    line-height: 1.35;
}

.phase4-workspace-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: .9rem;
    padding: 1rem;
    background: #fff;
    height: 100%;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.phase4-workspace-card:hover,
.phase4-workspace-card:focus {
    background: #f8fbff;
    border-color: #b7cff5;
    transform: translateY(-1px);
}

.phase4-workspace-badge {
    align-items: center;
    background: #e8f1ff;
    border-radius: .75rem;
    color: var(--phase4-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .75rem;
    font-weight: 700;
    justify-content: center;
    min-height: 2.6rem;
    min-width: 3.2rem;
    padding: .35rem .55rem;
    text-align: center;
}
