.board-hub-page {
    min-height: 100vh;
    padding: 16px;
}

.hub-main {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.hub-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hub-header h1 {
    margin: 0 0 2px;
    font-size: 1.45rem;
}

.hub-header p {
    margin: 0;
    color: var(--text-sub);
    font-size: 0.92rem;
}

.hub-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.stat-card h2 {
    margin: 0 0 6px;
    font-size: 0.85rem;
    color: var(--text-sub);
    font-weight: 600;
}

.stat-card strong {
    font-size: 1.8rem;
    color: var(--primary);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hub-section {
    padding: 14px;
    min-height: 220px;
}

.hub-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hub-section h2 {
    margin: 0;
    font-size: 1rem;
}

.hub-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 2px;
}

.hub-list-wide {
    max-height: 420px;
}

.hub-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hub-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.hub-item-title {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
}

.hub-item-sub {
    color: var(--text-sub);
    font-size: 0.82rem;
    line-height: 1.45;
}

.hub-item-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hub-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid var(--border);
}

.hub-chip-active {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.14);
}

.hub-chip-ended {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.14);
}

.hub-chip-readonly {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.14);
}

.hub-chip-writable {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(96, 165, 250, 0.14);
}

.hub-empty {
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 18px;
    color: var(--text-sub);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 1100px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }

    .hub-list,
    .hub-list-wide {
        max-height: 360px;
    }
}

@media (max-width: 760px) {
    .board-hub-page {
        padding: 10px;
    }

    .hub-header {
        flex-direction: column;
        align-items: stretch;
    }

    .hub-header-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .hub-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
