.app-layout {
    display: flex;
    height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.sidebar-header h1 {
    font-size: var(--font-size-lg);
    letter-spacing: -0.01em;
}

.sidebar-header .subtitle {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-md);
    overflow-y: auto;
}

.sidebar-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--color-border);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/* ── Sidebar Steps ── */
.nav-step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: default;
    transition: background var(--transition-fast);
    margin-bottom: var(--space-xs);
    user-select: none;
}

.nav-step.clickable {
    cursor: pointer;
}

.nav-step.clickable:hover {
    background: var(--color-surface-hover);
}

.nav-step.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.nav-step.locked {
    opacity: 0.4;
}

.nav-step .step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 600;
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.nav-step.active .step-number {
    background: var(--color-primary);
    color: white;
}

.nav-step.completed .step-number {
    background: var(--color-success);
    color: white;
}

.nav-step .step-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* ── Sidebar Groups ── */
.nav-divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-sm) 0;
}

.nav-group-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    padding: var(--space-xs) var(--space-md);
    margin-bottom: var(--space-xs);
}

.nav-step .step-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.nav-step.active .step-icon {
    color: var(--color-primary);
}

.nav-step .step-icon svg {
    width: 18px;
    height: 18px;
}

/* ── Main Content ── */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-xl);
    min-width: 0;
}

.view-header {
    margin-bottom: var(--space-xl);
}

.view-header h2 {
    margin-bottom: var(--space-xs);
}

.view-header p {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.breadcrumb span {
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-text);
}
