/**
 * Project Command Center — Phase 6B
 */

.fo-projects-shell {
    display: flex;
    flex-direction: column;
    gap: var(--fo-space-md);
    min-height: 0;
}

.fo-projects-header-main {
    display: flex;
    gap: var(--fo-space-md);
    align-items: flex-start;
}

.fo-projects-header-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--fo-radius-lg, 12px);
    background: var(--fo-accent, #10b981);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.fo-projects-title {
    margin: 0;
    font-size: var(--fo-font-xl, 1.35rem);
    font-weight: 700;
}

.fo-projects-subtitle {
    margin: 0;
    opacity: 0.75;
    font-size: var(--fo-font-sm);
}

.fo-projects-header-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: var(--fo-font-sm);
    margin-top: 0.5rem;
}

.fo-projects-copilot {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--fo-radius-md, 8px);
    background: rgba(16, 185, 129, 0.08);
    font-size: var(--fo-font-sm);
}

.fo-projects-pinned {
    overflow-x: auto;
    flex-wrap: nowrap;
}

.fo-projects-tabbar {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--fo-border, rgba(255,255,255,0.1));
    overflow-x: auto;
}

.fo-projects-tabbar--mobile {
    position: sticky;
    bottom: 0;
    background: var(--fo-surface, #111);
    padding: 0.5rem;
    z-index: 20;
    border-top: 1px solid var(--fo-border, rgba(255,255,255,0.1));
    border-bottom: none;
}

.fo-projects-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.7;
    font-size: 0.75rem;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.fo-projects-tab--active {
    opacity: 1;
    border-bottom-color: var(--fo-accent, #10b981);
    color: var(--fo-accent, #10b981);
}

.fo-projects-main {
    flex: 1;
    min-height: 0;
    /* Single scrollport = shell .content-area (Phase 55). */
    overflow: visible;
}

.fo-projects-embedded-panel {
    padding: 0;
}

.fo-projects-shell--mobile .clickable-row {
    cursor: pointer;
}

.fo-drawer--bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    width: 100%;
}

@media (max-width: 768px) {
    .fo-projects-quick-actions {
        flex-wrap: wrap;
    }

    .fo-projects-header-metrics {
        font-size: 0.75rem;
    }
}
