/* === THEME VARIABLES === */
:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16162a;
    --bg-card: #22223a;
    --bg-hover: #2a2a4a;
    --bg-input: #2a2a4a;
    --border: #2a2a4a;
    --border-hover: #3a3a5a;
    --text-primary: #fff;
    --text-secondary: #e0e0e0;
    --text-body: #bbb;
    --text-muted: #aaa;
    --text-dim: #888;
    --text-faint: #666;
    --text-ghost: #555;
    --text-disabled: #444;
    --accent: #2D8CFF;
    --accent-hover: #1a7ae8;
    --accent-bg: #2D8CFF20;
    --accent-border: #2D8CFF40;
    --green: #00B67A;
    --green-bg: rgba(0,182,122,0.1);
    --green-border: rgba(0,182,122,0.3);
    --orange: #FF6B35;
    --yellow: #FFB800;
    --red: #FF4444;
    --purple: #7B2FBE;
    --purple-light: #B07EFF;
    --purple-bg: #7B2FBE10;
    --purple-border: #7B2FBE30;
    --purple-badge-bg: #7B2FBE30;
    --cos-mini-border: #1a1a2e;
    --scrollbar-thumb: #3a3a5a;
    --scrollbar-hover: #4a4a6a;
    --noise-dot: #444;
    --avatar-bg: #2a2a4a;
    --avatar-text: #999;
}

[data-theme="light"] {
    --bg-primary: #f5f5f8;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #e8e8f0;
    --bg-input: #eeeef4;
    --border: #dddde5;
    --border-hover: #ccccdd;
    --text-primary: #111;
    --text-secondary: #222;
    --text-body: #444;
    --text-muted: #555;
    --text-dim: #777;
    --text-faint: #999;
    --text-ghost: #aaa;
    --text-disabled: #ccc;
    --accent: #0b5cff;
    --accent-hover: #0044cc;
    --accent-bg: #0b5cff15;
    --accent-border: #0b5cff30;
    --green-bg: rgba(0,182,122,0.08);
    --green-border: rgba(0,182,122,0.25);
    --purple-bg: #7B2FBE08;
    --purple-border: #7B2FBE25;
    --purple-badge-bg: #7B2FBE18;
    --cos-mini-border: #ffffff;
    --scrollbar-thumb: #ccc;
    --scrollbar-hover: #aaa;
    --noise-dot: #ccc;
    --avatar-bg: #e0e0ea;
    --avatar-text: #666;
}

/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary); color: var(--text-secondary);
    overflow: hidden; height: 100vh;
    transition: background 0.3s, color 0.3s;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }

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

/* === TOP BAR === */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    height: 48px; padding: 0 16px;
    background: var(--bg-secondary); border-bottom: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s;
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.topbar-center { flex: 1; display: flex; justify-content: center; }
.search-bar {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-input); border-radius: 6px; padding: 6px 12px; width: 360px;
    transition: background 0.3s;
}
.search-bar input {
    background: none; border: none; color: var(--text-dim); font-size: 13px; width: 100%; outline: none;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.avatar-small {
    width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; color: #fff;
}
.cos-indicator {
    display: flex; align-items: center; gap: 4px;
    background: var(--green-bg); border: 1px solid var(--green-border);
    border-radius: 12px; padding: 3px 10px 3px 6px;
    transition: background 0.3s, border-color 0.3s;
}
.cos-label { font-size: 11px; color: var(--green); font-weight: 500; }

/* Theme Toggle */
.theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-dim); transition: all 0.2s;
}
.theme-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* === LAYOUT === */
.main-layout { display: flex; flex: 1; overflow: hidden; }

/* === SIDEBAR === */
.sidebar {
    width: 240px; background: var(--bg-secondary); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; overflow-y: auto;
    transition: background 0.3s, border-color 0.3s;
}
.sidebar-nav { padding: 12px 8px; border-bottom: 1px solid var(--border); }
.nav-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    border-radius: 6px; font-size: 13px; color: var(--text-dim); cursor: pointer;
    transition: all 0.15s;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--accent-bg); color: var(--accent); }
.nav-item svg { flex-shrink: 0; }
.badge {
    margin-left: auto; background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 10px;
}
.badge.urgent { background: var(--orange); }

.sidebar-section { padding: 12px 8px; }
.section-header { font-size: 11px; font-weight: 600; color: var(--text-faint); padding: 4px 12px; letter-spacing: 0.5px; }
.channel-item {
    display: flex; align-items: center; gap: 8px; padding: 5px 12px;
    border-radius: 6px; font-size: 13px; color: var(--text-dim); cursor: pointer;
}
.channel-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.channel-hash { color: var(--text-faint); font-weight: 600; }
.dot-indicator { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; }
.dot-indicator.priority { background: var(--orange); }
.dot-indicator.delegated { background: var(--purple); }
.dot-indicator.noise { background: var(--noise-dot); }
.avatar-xs {
    width: 22px; height: 22px; border-radius: 50%; background: var(--avatar-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 600; color: var(--avatar-text); flex-shrink: 0;
}

/* === CONTENT === */
.content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.view { display: none; flex-direction: column; flex: 1; padding: 0; }
.view.active { display: flex; }

.view-header {
    padding: 24px 32px 16px; border-bottom: 1px solid var(--border);
    background: var(--bg-primary); position: sticky; top: 0; z-index: 10;
    transition: background 0.3s, border-color 0.3s;
}
.view-header h2 { font-size: 22px; font-weight: 600; color: var(--text-primary); }
.view-subtitle { font-size: 13px; color: var(--text-dim); margin-top: 2px; display: block; }
.view-meta { font-size: 11px; color: var(--text-faint); margin-top: 4px; display: block; }

/* === BUTTONS === */
.btn-primary {
    background: var(--accent); color: #fff; border: none; border-radius: 6px;
    padding: 6px 14px; font-size: 12px; font-weight: 500;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
    background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border-hover);
    border-radius: 6px; padding: 6px 14px; font-size: 12px; font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover { background: var(--bg-hover); }
.btn-ghost {
    background: none; color: var(--text-dim); border: 1px solid var(--border-hover);
    border-radius: 6px; padding: 6px 14px; font-size: 12px;
    transition: background 0.15s;
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-text { background: none; border: none; color: var(--accent); font-size: 12px; padding: 2px 6px; }
.btn-text:hover { text-decoration: underline; }
.btn-text.approve { color: var(--green); }
.btn-text.flag { color: var(--orange); }
.btn-sm { padding: 4px 10px; font-size: 11px; }
.card-actions { display: flex; gap: 8px; margin-top: 10px; }

/* === CATCH-UP VIEW === */
.briefing-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    padding: 20px 32px;
}
.stat-card {
    background: var(--bg-card); border-radius: 10px; padding: 16px;
    text-align: center; border: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s;
}
.stat-card.urgent { border-color: #FF6B3540; background: #FF6B3510; }
.stat-card.meeting { border-color: #2D8CFF40; background: #2D8CFF10; }
.stat-card.delegated { border-color: #7B2FBE40; background: #7B2FBE10; }
[data-theme="light"] .stat-card.urgent { background: #FF6B3508; }
[data-theme="light"] .stat-card.meeting { background: #2D8CFF08; }
[data-theme="light"] .stat-card.delegated { background: #7B2FBE08; }
.stat-number { font-size: 28px; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.briefing-section { padding: 16px 32px; }
.briefing-section h3 { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.briefing-card {
    display: flex; gap: 12px; padding: 14px 16px;
    background: var(--bg-card); border-radius: 10px; margin-bottom: 10px;
    border: 1px solid var(--border); transition: border-color 0.15s, background 0.3s;
}
.briefing-card:hover { border-color: var(--border-hover); }
.briefing-card.meeting-bridge { border-left: 3px solid var(--accent); }
.card-left { display: flex; align-items: flex-start; padding-top: 2px; }
.priority-dot { width: 10px; height: 10px; border-radius: 50%; }
.priority-dot.high { background: var(--orange); }
.priority-dot.medium { background: var(--yellow); }
.card-body { flex: 1; }
.card-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.card-channel { font-size: 12px; color: var(--accent); font-weight: 500; }
.card-time { font-size: 11px; color: var(--text-faint); }
.card-sender { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.card-preview { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.card-meta-line { font-size: 11px; color: var(--text-faint); margin-top: 6px; }

/* CoS Handled */
.cos-handled-list { display: flex; flex-direction: column; gap: 8px; }
.cos-handled-item {
    display: flex; gap: 10px; padding: 12px 14px;
    background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border);
    border-left: 3px solid var(--purple);
    transition: background 0.3s, border-color 0.3s;
}
.cos-badge {
    background: var(--purple-badge-bg); color: var(--purple-light); font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 4px; white-space: nowrap; align-self: flex-start;
}
.cos-badge.route { background: #FF6B3530; color: #FF8F60; }
[data-theme="light"] .cos-badge.route { background: #FF6B3518; }
.cos-handled-body { flex: 1; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.cos-handled-channel { color: var(--accent); font-weight: 500; }
.cos-handled-actions { display: flex; gap: 8px; margin-top: 8px; }

/* === PRIORITY FEED === */
.filter-bar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.filter-chip {
    background: var(--bg-input); color: var(--text-dim); border: 1px solid var(--border-hover);
    border-radius: 16px; padding: 4px 14px; font-size: 12px;
    transition: background 0.15s;
}
.filter-chip.active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-border); }
.filter-chip:hover { background: var(--bg-hover); color: var(--text-primary); }

.feed-list { padding: 16px 32px; }
.feed-item {
    display: flex; gap: 12px; padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.feed-priority { width: 4px; flex-shrink: 0; }
.priority-bar { width: 4px; height: 100%; border-radius: 2px; }
.priority-bar.high { background: var(--orange); }
.priority-bar.medium { background: var(--yellow); }
.priority-bar.low { background: var(--noise-dot); }
.feed-body { flex: 1; }
.feed-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.feed-sender { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.feed-channel { font-size: 12px; color: var(--text-faint); }
.feed-time { font-size: 11px; color: var(--text-ghost); margin-left: auto; }
.feed-content { font-size: 13px; color: var(--text-body); line-height: 1.5; }
.feed-reason {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: var(--accent); margin-top: 8px; opacity: 0.8;
}
.feed-noise {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 0; font-size: 12px; color: var(--text-faint);
    border-top: 1px solid var(--border); margin-top: 8px;
}

/* === ACTION QUEUE === */
.action-list { padding: 16px 32px; }
.action-item {
    display: flex; gap: 16px; padding: 18px 16px;
    background: var(--bg-card); border-radius: 10px; margin-bottom: 12px;
    border: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s;
}
.action-item.blocking { border-left: 4px solid var(--red); }
.action-item.decision { border-left: 4px solid var(--yellow); }
.action-item.followup { border-left: 4px solid var(--orange); }
.action-item.meeting-action { border-left: 4px solid var(--accent); }
.action-number {
    width: 32px; height: 32px; border-radius: 50%; background: var(--bg-input);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: var(--text-primary); flex-shrink: 0;
}
.action-body { flex: 1; }
.action-tag {
    display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px;
    border-radius: 4px; margin-bottom: 6px; letter-spacing: 0.5px;
}
.action-tag.blocking { background: #FF444430; color: #FF6666; }
.action-tag.decision { background: #FFB80030; color: #cc9500; }
.action-tag.followup { background: #FF6B3530; color: #FF8F60; }
.action-tag.meeting { background: #2D8CFF30; color: #0066dd; }
[data-theme="light"] .action-tag.blocking { background: #FF444415; color: #cc0000; }
[data-theme="light"] .action-tag.decision { background: #FFB80015; color: #996e00; }
[data-theme="light"] .action-tag.followup { background: #FF6B3515; color: #cc4400; }
[data-theme="light"] .action-tag.meeting { background: #2D8CFF15; color: #0055cc; }
.action-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.action-detail { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.action-source { display: flex; gap: 12px; margin-top: 8px; }
.source-chat { font-size: 11px; color: var(--accent); }
.source-meeting { font-size: 11px; color: var(--text-dim); }
.action-buttons { display: flex; gap: 8px; margin-top: 12px; }

/* === DELEGATION SETTINGS === */
.delegation-content { padding: 16px 32px; overflow-y: auto; }
.delegation-status-card {
    background: var(--bg-card); border-radius: 12px; padding: 20px;
    border: 1px solid var(--border); margin-bottom: 20px;
    transition: background 0.3s, border-color 0.3s;
}
.delegation-status-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.delegation-status-header h3 { font-size: 16px; color: var(--text-primary); }

/* Toggle */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0; background: var(--border-hover); border-radius: 24px;
    cursor: pointer; transition: 0.2s;
}
.toggle-slider::before {
    content: ''; position: absolute; width: 18px; height: 18px;
    left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

.delegation-mode { margin-bottom: 16px; }
.mode-label { font-size: 12px; color: var(--text-dim); display: block; margin-bottom: 8px; }
.mode-options { display: flex; gap: 8px; }
.mode-btn {
    background: var(--bg-input); border: 1px solid var(--border-hover); color: var(--text-dim);
    padding: 6px 16px; border-radius: 6px; font-size: 12px;
    transition: background 0.15s;
}
.mode-btn.active { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.mode-btn.disabled { opacity: 0.4; cursor: not-allowed; }

.delegation-stats-row { display: flex; gap: 24px; }
.del-stat { text-align: center; }
.del-stat-num { font-size: 22px; font-weight: 700; color: var(--text-primary); display: block; }
.del-stat-label { font-size: 11px; color: var(--text-dim); }

.delegation-section { margin-bottom: 20px; }
.delegation-section h3 { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }

.ooo-card { background: var(--bg-card); border-radius: 10px; padding: 14px; border: 1px solid var(--border); transition: background 0.3s; }
.ooo-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ooo-row:last-child { border-bottom: none; }
.ooo-label { font-size: 13px; color: var(--text-dim); }
.ooo-value { font-size: 13px; color: var(--text-muted); }
.active-status { color: var(--green); font-weight: 500; }

.context-card { background: var(--bg-card); border-radius: 10px; padding: 14px; border: 1px solid var(--border); transition: background 0.3s; }
.context-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.context-item:last-of-type { border-bottom: none; }
.context-icon { font-size: 18px; }
.context-body { flex: 1; }
.context-body strong { font-size: 13px; color: var(--text-muted); display: block; }
.context-body p { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.add-context { margin-top: 10px; width: 100%; }

.scope-list { background: var(--bg-card); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; transition: background 0.3s; }
.scope-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.scope-item:last-child { border-bottom: none; }
.scope-channel { font-size: 13px; color: var(--text-muted); }
.scope-permission { font-size: 11px; padding: 2px 10px; border-radius: 10px; }
.scope-permission.auto { background: #00B67A20; color: var(--green); }
.scope-permission.draft { background: #FFB80020; color: #cc9500; }
.scope-permission.disabled { background: #44444420; color: var(--text-faint); }
[data-theme="light"] .scope-permission.auto { background: #00B67A12; }
[data-theme="light"] .scope-permission.draft { background: #FFB80012; color: #996e00; }

.trust-card { background: var(--bg-card); border-radius: 10px; padding: 14px; border: 1px solid var(--border); transition: background 0.3s; }
.trust-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.trust-row:last-child { border-bottom: none; }
.trust-label { font-size: 13px; color: var(--text-dim); display: block; margin-bottom: 6px; }
.trust-slider { display: flex; align-items: center; gap: 10px; }
.trust-slider input[type="range"] { flex: 1; accent-color: var(--accent); }
.trust-value { font-size: 14px; font-weight: 600; color: var(--accent); }
.trust-hint { font-size: 11px; color: var(--text-faint); display: block; margin-top: 4px; }
.trust-value-text { font-size: 13px; color: var(--text-muted); }

/* === CHANNEL CHAT VIEW === */
.channel-header { position: relative; }
.channel-cos-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--purple-light); margin-top: 6px;
}

.chat-messages { flex: 1; overflow-y: auto; padding: 16px 32px; }
.message-group { }
.message-date {
    text-align: center; font-size: 12px; color: var(--text-faint);
    padding: 16px 0 12px; position: relative;
}
.message-date::before, .message-date::after {
    content: ''; position: absolute; top: 50%; height: 1px; background: var(--border); width: calc(50% - 40px);
}
.message-date::before { left: 0; }
.message-date::after { right: 0; }

.message { display: flex; gap: 10px; padding: 8px 0; }
.avatar-sm {
    width: 32px; height: 32px; border-radius: 50%; background: var(--avatar-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; color: var(--avatar-text); flex-shrink: 0;
}
.message-body { flex: 1; }
.message-header { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.message-sender { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.message-time { font-size: 11px; color: var(--text-ghost); }
.message-text { font-size: 13px; color: var(--text-body); line-height: 1.5; }

/* CoS Messages */
.cos-message {
    background: var(--purple-bg); border-radius: 10px; padding: 12px;
    border: 1px solid var(--purple-border); margin: 4px 0;
    transition: background 0.3s, border-color 0.3s;
}
.cos-message.routed {
    background: #FF6B3508; border-color: #FF6B3530;
}
[data-theme="light"] .cos-message.routed { background: #FF6B3506; border-color: #FF6B3520; }
.cos-avatar { background: var(--accent); color: #fff; position: relative; }
.cos-mini-badge {
    position: absolute; bottom: -2px; right: -2px;
    background: var(--purple); color: #fff; font-size: 8px;
    width: 14px; height: 14px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--cos-mini-border);
}
.cos-attribution {
    font-size: 11px; color: var(--purple-light); font-weight: 500;
    background: var(--purple-badge-bg); padding: 1px 8px; border-radius: 10px;
}
.cos-confidence { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.confidence-bar {
    width: 80px; height: 4px; background: var(--bg-input); border-radius: 2px; overflow: hidden;
}
.confidence-fill { display: block; height: 100%; background: var(--green); border-radius: 2px; }
.confidence-label { font-size: 11px; color: var(--text-faint); }
.cos-routed-to {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--orange); margin-top: 8px; font-weight: 500;
}

/* Chat Input */
.chat-input { padding: 12px 32px 16px; border-top: 1px solid var(--border); }
.chat-input-bar {
    display: flex; align-items: center;
    background: var(--bg-card); border: 1px solid var(--border-hover); border-radius: 10px;
    padding: 8px 12px; transition: background 0.3s, border-color 0.3s;
}
.chat-input-bar input {
    flex: 1; background: none; border: none; color: var(--text-muted); font-size: 13px; outline: none;
}
.send-btn {
    background: var(--accent); border: none; border-radius: 6px;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
}
.send-btn:hover { background: var(--accent-hover); }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.view.active { animation: fadeIn 0.2s ease-out; }
.briefing-card, .feed-item, .action-item, .cos-handled-item { animation: fadeIn 0.3s ease-out backwards; }
.briefing-card:nth-child(1) { animation-delay: 0.05s; }
.briefing-card:nth-child(2) { animation-delay: 0.1s; }
.briefing-card:nth-child(3) { animation-delay: 0.15s; }
.feed-item:nth-child(1) { animation-delay: 0.05s; }
.feed-item:nth-child(2) { animation-delay: 0.1s; }
.feed-item:nth-child(3) { animation-delay: 0.15s; }
.feed-item:nth-child(4) { animation-delay: 0.2s; }
.action-item:nth-child(1) { animation-delay: 0.05s; }
.action-item:nth-child(2) { animation-delay: 0.1s; }
.action-item:nth-child(3) { animation-delay: 0.15s; }
.action-item:nth-child(4) { animation-delay: 0.2s; }
.action-item:nth-child(5) { animation-delay: 0.25s; }
