/* Multi-dashboard workspaces */
.ws-root {
    --ws-accent: #7c6cff;
    --ws-bg: #0b0d14;
    --ws-panel: rgba(255, 255, 255, 0.04);
    --ws-border: rgba(255, 255, 255, 0.08);
    min-height: 100vh;
    background: var(--ws-bg);
    color: #e8eaef;
    font-family: 'Inter', system-ui, sans-serif;
}

.ws-shell { max-width: 1280px; margin: 0 auto; padding: 1.5rem; }
.ws-header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.ws-eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: #8b93a7; margin-bottom: 0.25rem; }
.ws-header h1 { font-size: 1.5rem; font-weight: 700; }
.ws-subtitle { color: #8b93a7; font-size: 0.875rem; margin-top: 0.25rem; }
.ws-toolbar { display: flex; gap: 0.5rem; align-items: center; }

.ws-grid { display: grid; gap: 1rem; }
.ws-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ws-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ws-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .ws-grid-2, .ws-grid-3, .ws-grid-4 { grid-template-columns: 1fr; }
}

.ws-panel {
    background: var(--ws-panel);
    border: 1px solid var(--ws-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.ws-panel h3 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; color: #c5cad6; }

.ws-stat { padding: 0.75rem; border-radius: 10px; background: rgba(0,0,0,0.2); }
.ws-stat-label { display: block; font-size: 0.7rem; color: #8b93a7; text-transform: uppercase; letter-spacing: 0.06em; }
.ws-stat-value { display: block; font-size: 1.35rem; font-weight: 700; margin-top: 0.25rem; }
.ws-stat-delta { font-size: 0.75rem; }
.ws-stat-delta.up { color: #4ade80; }
.ws-stat-delta.down { color: #f87171; }

.ws-bar-chart { display: flex; align-items: flex-end; gap: 0.5rem; height: 120px; padding-top: 0.5rem; }
.ws-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; height: 100%; }
.ws-bar { width: 100%; border-radius: 4px 4px 0 0; min-height: 4px; margin-top: auto; }
.ws-bar-col span { font-size: 0.65rem; color: #8b93a7; }

.ws-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.ws-table th, .ws-table td { padding: 0.5rem 0.6rem; text-align: left; border-bottom: 1px solid var(--ws-border); }
.ws-table th { color: #8b93a7; font-weight: 500; }

.ws-badge { display: inline-block; padding: 0.15rem 0.45rem; border-radius: 999px; font-size: 0.7rem; }
.ws-badge-default { background: rgba(255,255,255,0.08); }
.ws-badge-success { background: rgba(74,222,128,0.15); color: #4ade80; }
.ws-badge-warn { background: rgba(251,191,36,0.15); color: #fbbf24; }
.ws-badge-danger { background: rgba(248,113,113,0.15); color: #f87171; }

.ws-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.ws-kanban-col { background: rgba(0,0,0,0.25); border-radius: 10px; padding: 0.75rem; min-height: 200px; }
.ws-kanban-col h4 { font-size: 0.75rem; color: #8b93a7; margin-bottom: 0.5rem; }
.ws-card { background: var(--ws-panel); border: 1px solid var(--ws-border); border-radius: 8px; padding: 0.6rem; margin-bottom: 0.5rem; font-size: 0.8rem; }

.ws-log { font-family: ui-monospace, monospace; font-size: 0.72rem; line-height: 1.5; max-height: 280px; overflow: auto; }
.ws-log div { padding: 0.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }

/* Per-type accents */
.ws-type-saas-analytics { --ws-accent: #6366f1; }
.ws-type-crypto-portfolio { --ws-accent: #f59e0b; --ws-bg: #0a0f0a; }
.ws-type-ecommerce-admin { --ws-accent: #ec4899; }
.ws-type-discord-bot-analytics { --ws-accent: #5865f2; }
.ws-type-social-growth { --ws-accent: #06b6d4; }
.ws-type-server-monitoring { --ws-accent: #22c55e; --ws-bg: #060a08; }
.ws-type-ai-usage { --ws-accent: #a855f7; }
.ws-type-finance-tracker { --ws-accent: #10b981; }
.ws-type-game-stats { --ws-accent: #ef4444; }
.ws-type-marketing-campaigns { --ws-accent: #f97316; }
.ws-type-iot-devices { --ws-accent: #14b8a6; }
.ws-type-streaming-stats { --ws-accent: #9146ff; }
.ws-type-task-board { --ws-accent: #3b82f6; }
.ws-type-api-monitoring { --ws-accent: #0ea5e9; }
.ws-type-cybersecurity-logs { --ws-accent: #dc2626; --ws-bg: #0d0606; }

/* Hub */
.hub-page { min-height: 100vh; padding: 2rem; max-width: 1200px; margin: 0 auto; }
.hub-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.hub-card { padding: 1.25rem; cursor: pointer; transition: transform 0.15s, border-color 0.15s; }
.hub-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.hub-card-type { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.hub-card h3 { margin: 0.35rem 0; font-size: 1rem; }
.hub-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.45; }
.hub-empty { text-align: center; padding: 3rem 1rem; }
.type-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; max-height: 60vh; overflow: auto; }
.type-option { padding: 0.85rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: rgba(255,255,255,0.02); }
.type-option:hover, .type-option.selected { border-color: var(--primary); background: rgba(124,108,255,0.08); }
.type-option strong { display: block; font-size: 0.85rem; }
.type-option span { font-size: 0.72rem; color: var(--text-secondary); }
