/* ============================================
   CXO Command Center - "Horizon" theme
   Top navigation (no side menu), gradient hero band, floating rounded cards.
   Loaded after app.css and cxo.css; overrides the shared SMIPL portal look.
   ============================================ */
:root {
    --cx-nav-h: 64px;
    --cx-bg: #f3f5fb;
    --cx-card: #ffffff;
    --cx-line: #e6e9f2;
    --cx-ink: #0b1430;
    --cx-text: #3a4462;
    --cx-muted: #6b7591;
    --cx-accent: #2f6fe4;
    --cx-accent-2: #7c3aed;
    --cx-grad: linear-gradient(115deg, #071a46 0%, #0c3a8a 45%, #3b2a9b 80%, #6d28d9 100%);
    --cx-radius: 18px;
    --cx-shadow: 0 1px 2px rgba(11,20,48,0.04), 0 8px 24px rgba(11,20,48,0.06);
    --cx-shadow-hover: 0 2px 4px rgba(11,20,48,0.05), 0 14px 34px rgba(11,20,48,0.10);
    --pla-accent: #2f6fe4;
    --pla-accent-hover: #1d4fb8;
    --pla-accent-soft: #edf3ff;
    --pla-line: #e6e9f2;
    --pla-line-soft: #f0f2f8;
    --exec-card: #ffffff;
    --exec-line: #e6e9f2;
    --exec-ink: #0b1430;
    --exec-muted: #6b7591;
}
body.dark-theme {
    --cx-bg: #070b19;
    --cx-card: #0e1530;
    --cx-line: #1c2647;
    --cx-ink: #eef2ff;
    --cx-text: #c3cbe6;
    --cx-muted: #8892b5;
    --cx-grad: linear-gradient(115deg, #040a1f 0%, #0a2257 50%, #2a1a6e 100%);
    --cx-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 10px 28px rgba(0,0,0,0.35);
    --pla-accent-soft: rgba(47,111,228,0.14);
    --pla-line: #1c2647;
    --pla-line-soft: #141d3b;
    --exec-card: #0e1530;
    --exec-line: #1c2647;
    --exec-ink: #eef2ff;
    --exec-muted: #8892b5;
}

html { font-size: 13.5px; }
body {
    background: var(--cx-bg) !important; color: var(--cx-text);
    font-family: "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, -apple-system, Roboto, sans-serif;
    letter-spacing: 0.005em;
}
body.dark-theme { color: var(--cx-text); }

/* ---------- top navigation ---------- */
.cx-top {
    position: sticky; top: 0; z-index: 1030; height: var(--cx-nav-h);
    background: rgba(6, 16, 46, 0.86); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cx-top-inner { height: 100%; max-width: 1680px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 18px; }
.cx-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.cx-brand img { height: 20px; filter: brightness(0) invert(1); }
.cx-brand-txt { color: #c8d3f5; font-size: 0.95rem; white-space: nowrap; padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.18); }
.cx-brand-txt strong { color: #fff; font-weight: 800; letter-spacing: 0.06em; }
.cx-tabs { display: flex; align-items: center; gap: 4px; }
.cx-tab {
    position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
    color: #b9c4e8; font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s;
}
.cx-tab .bi { font-size: 1rem; }
.cx-tab:hover { color: #fff; background: rgba(255,255,255,0.08); }
.cx-tab.active { color: #fff; background: linear-gradient(135deg, rgba(47,111,228,0.9), rgba(124,58,237,0.9)); box-shadow: 0 4px 14px rgba(47,111,228,0.35); }
.cx-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(255,255,255,0.18); color: #fff; font-size: 0.75rem; font-weight: 800; line-height: 20px; text-align: center; }
.cx-count.crit { background: #ef4444; }
.cx-ask {
    flex: 1; max-width: 520px; margin-left: auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
    border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); transition: background .15s, border-color .15s;
}
.cx-ask:focus-within { background: rgba(255,255,255,0.14); border-color: rgba(167,139,250,0.7); box-shadow: 0 0 0 3px rgba(124,58,237,0.25); }
.cx-ask .bi { color: #c4b5fd; }
.cx-ask input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font-size: 0.95rem; }
.cx-ask input::placeholder { color: #8f9bc4; }
.cx-ask kbd { background: rgba(255,255,255,0.12); color: #c8d3f5; font-size: 0.72rem; border-radius: 5px; }
.cx-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.cx-ask + .cx-actions { margin-left: 0; }
.cx-icon { width: 38px; height: 38px; border-radius: 11px; border: 0; background: transparent; color: #c8d3f5; display: inline-flex; align-items: center; justify-content: center; font-size: 1.08rem; }
.cx-icon:hover, .cx-icon.active { background: rgba(255,255,255,0.1); color: #fff; }
.cx-user { border: 0; background: transparent; padding: 0 0 0 4px; }
.cx-user .avatar { width: 36px; height: 36px; border-radius: 12px; font-size: 0.85rem; background: linear-gradient(135deg, #2f6fe4, #7c3aed); color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.18); }
.cx-demo { font-size: 0.68rem; font-weight: 800; letter-spacing: .1em; color: #fde68a; border: 1px solid rgba(253,230,138,0.45); padding: 3px 8px; border-radius: 8px; }
.cx-top .hdr-live { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.cx-top .hdr-live .dot { background: #34d399; }
.cx-top .hdr-live.off { background: rgba(255,255,255,0.06); color: #8f9bc4; }
.cx-mega { padding: 14px; grid-template-columns: repeat(2, minmax(210px, 1fr)); gap: 6px 18px; border-radius: 14px; border: 1px solid var(--cx-line); box-shadow: var(--cx-shadow-hover); }
.cx-mega.show { display: grid; }
.cx-mega-h { font-size: 0.72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-muted); padding: 2px 10px 6px; }
.cx-mega .dropdown-item { border-radius: 8px; padding: 7px 10px; display: flex; gap: 10px; align-items: center; }
.cx-mega .dropdown-item .bi { color: var(--cx-accent); }
.dropdown-menu { border-radius: 12px; border-color: var(--cx-line); box-shadow: var(--cx-shadow-hover); }
body.dark-theme .dropdown-menu { background: #0e1530; border-color: #1c2647; }
body.dark-theme .dropdown-item { color: #c3cbe6; }
body.dark-theme .dropdown-item:hover { background: #141d3b; color: #fff; }
@media (max-width: 1280px) { .cx-brand-txt { display: none; } .cx-ask kbd { display: none; } }
@media (max-width: 1100px) { .cx-tab span:not(.cx-count) { display: none; } .cx-tab { padding: 8px 11px; } }
@media (max-width: 760px) { .cx-ask { display: none; } .cx-demo { display: none; } }

/* ---------- hero band and page frame ---------- */
.cx-hero-bg { position: absolute; top: 0; left: 0; right: 0; height: 300px; background: var(--cx-grad); z-index: 0; pointer-events: none; }
.cx-hero-bg::after { content: ''; position: absolute; inset: 0;
    background: radial-gradient(900px 300px at 85% 10%, rgba(167,139,250,0.35), transparent 60%), radial-gradient(700px 260px at 10% 0%, rgba(56,189,248,0.22), transparent 60%); }
.cx-hero-bg::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, transparent, var(--cx-bg)); z-index: 1; }
.sidebar { display: none !important; }
.main-content { margin-left: 0 !important; position: relative; z-index: 1; min-height: calc(100vh - var(--cx-nav-h)); }
.main-content > .container-fluid { max-width: 1680px; margin: 0 auto; padding: 0.5rem 22px 2rem !important; }
.cx-crumbs { max-width: 1680px; margin: 0 auto; padding: 14px 22px 0; }
.cx-crumbs nav { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.cx-crumbs a { color: rgba(220,228,255,0.75); text-decoration: none; }
.cx-crumbs a:hover { color: #fff; }
.cx-crumbs .sep { color: rgba(220,228,255,0.45); font-size: 0.75rem; }
.cx-crumbs .current { color: #fff; font-weight: 600; }
.main-footer { border-top: 0 !important; color: var(--cx-muted) !important; background: transparent; }

/* page heads sit on the hero band: white text, glass tile */
.page-head { background: transparent !important; border: 0 !important; padding: 0.6rem 0 1.4rem !important; margin-bottom: 0.4rem !important; box-shadow: none !important; }
.page-head .page-title { color: #fff !important; font-size: 1.85rem; font-weight: 750; letter-spacing: -0.01em; }
.page-head .page-sub { color: rgba(220,228,255,0.82) !important; max-width: 900px; }
.page-head .ph-tile { background: rgba(255,255,255,0.12) !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.18); border-radius: 14px; backdrop-filter: blur(8px); }
.page-head .btn-light { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: #fff; }
.page-head .btn-light:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* executive overview hero (greeting) on the band */
.exec-hero h1 { color: #fff !important; font-size: 2rem; font-weight: 750; letter-spacing: -0.01em; }
.exec-hero .sub { color: rgba(220,228,255,0.85) !important; }
.exec-hero .clock .t { color: #fff !important; }
.exec-hero .clock .d { color: rgba(220,228,255,0.8) !important; }
.exec-hero .shift-bar { background: rgba(255,255,255,0.2) !important; }
.exec-hero .shift-bar > span { background: linear-gradient(90deg, #38bdf8, #a78bfa) !important; }
.exec-hero .demo-chip { background: rgba(253,230,138,0.18); color: #fde68a; }

/* ---------- cards ---------- */
.card, .exec-card, .stage, .act-band, .agent-card, .src-card, .kpi-chip, .ai-banner, .settings-card {
    border-radius: var(--cx-radius) !important; border: 1px solid var(--cx-line) !important; background: var(--cx-card) !important; box-shadow: var(--cx-shadow) !important;
}
.card-header { background: transparent !important; border-bottom-color: var(--cx-line) !important; border-radius: var(--cx-radius) var(--cx-radius) 0 0 !important; padding: 0.9rem 1.1rem; font-weight: 700; color: var(--cx-ink); }
.card-footer { background: transparent !important; border-top-color: var(--cx-line) !important; border-radius: 0 0 var(--cx-radius) var(--cx-radius) !important; }
.stage { transition: transform .18s, box-shadow .18s, border-color .18s; }
.stage:hover { transform: translateY(-3px); box-shadow: var(--cx-shadow-hover) !important; }
.stage.active { border-color: var(--cx-accent) !important; box-shadow: 0 0 0 3px rgba(47,111,228,0.15), var(--cx-shadow-hover) !important; }
.st-big { font-weight: 800 !important; letter-spacing: -0.02em; }
.act-band { padding: 1.2rem 1.3rem !important; }
.act-band::before { width: 100% !important; height: 4px !important; bottom: auto !important; background: linear-gradient(90deg, #ef4444, #f59e0b, #a78bfa) !important; }
.act-card { border-radius: 14px !important; }
.exec-card h3, .act-head h2 { letter-spacing: -0.01em; }

/* ---------- controls ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { background: linear-gradient(135deg, #2f6fe4, #5b3fd6); border: 0; box-shadow: 0 4px 12px rgba(47,111,228,0.28); }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg, #2560cc, #4c32c2); }
.btn-light { background: var(--cx-card); border: 1px solid var(--cx-line); color: var(--cx-ink); }
body.dark-theme .btn-light { background: #141d3b; border-color: #22305a; color: #dbe2ff; }
.form-control, .form-select { border-radius: 10px; border-color: var(--cx-line); }
body.dark-theme .form-control, body.dark-theme .form-select { background-color: #0b1229; border-color: #22305a; color: #e5eaff; }
.nav-tabs.settings-tabs .nav-link { border-radius: 10px 10px 0 0; }
.page-head + .nav-tabs, .page-head ~ .nav-tabs.settings-tabs { border-bottom-color: rgba(255,255,255,0.2); }
.page-head ~ .nav-tabs.settings-tabs .nav-link { color: rgba(220,228,255,0.85); }
.page-head ~ .nav-tabs.settings-tabs .nav-link.active { background: var(--cx-card); color: var(--cx-ink); border-color: var(--cx-line) var(--cx-line) transparent; }
.table { --bs-table-bg: transparent; color: var(--cx-text); }
.table thead th { color: var(--cx-muted); font-size: 0.78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; border-bottom-color: var(--cx-line); }
.table td { border-color: var(--cx-line); }
.modal-content { border-radius: 18px; border: 1px solid var(--cx-line); }
body.dark-theme .modal-content { background: #0e1530; color: #dbe2ff; }
.offcanvas.alert-drawer { border-left: 0; box-shadow: -20px 0 50px rgba(11,20,48,0.25); }
.toast-container { top: calc(var(--cx-nav-h) + 12px); }

/* ---------- CXO Assistant ---------- */
.as-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 18px; min-height: calc(100vh - 230px); }
@media (max-width: 992px) { .as-wrap { grid-template-columns: 1fr; } .as-side { display: none; } }
.as-side { padding: 1rem; }
.as-side h3 { font-size: 0.8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cx-muted); margin: 0.2rem 0 0.6rem; }
.as-conv { display: block; padding: 8px 10px; border-radius: 10px; color: var(--cx-text); text-decoration: none; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.as-conv:hover, .as-conv.active { background: var(--pla-accent-soft); color: var(--cx-ink); }
.as-agents { display: flex; flex-direction: column; gap: 6px; }
.as-agent { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--cx-text); }
.as-agent .dot { width: 8px; height: 8px; border-radius: 50%; }
.as-main { display: flex; flex-direction: column; overflow: hidden; }
.as-log { flex: 1; overflow-y: auto; padding: 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; min-height: 360px; max-height: calc(100vh - 330px); }
.as-msg { display: flex; gap: 12px; max-width: 920px; }
.as-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.as-av { width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.as-msg.bot .as-av { background: linear-gradient(135deg, #2f6fe4, #7c3aed); color: #fff; }
.as-msg.user .as-av { background: var(--pla-line-soft); color: var(--cx-ink); }
.as-bubble { padding: 0.8rem 1rem; border-radius: 16px; line-height: 1.55; font-size: 0.98rem; }
.as-msg.bot .as-bubble { background: var(--cx-card); border: 1px solid var(--cx-line); color: var(--cx-ink); border-top-left-radius: 6px; }
.as-msg.user .as-bubble { background: linear-gradient(135deg, #2f6fe4, #5b3fd6); color: #fff; border-top-right-radius: 6px; }
.as-bubble p { margin: 0 0 0.5rem; } .as-bubble p:last-child { margin-bottom: 0; }
.as-bubble ul { margin: 0.2rem 0 0.5rem; padding-left: 1.2rem; }
.as-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.as-tool { font-size: 0.75rem; padding: 2px 8px; border-radius: 8px; background: var(--pla-line-soft); color: var(--cx-muted); border: 1px solid var(--cx-line); }
.as-tool .bi { color: var(--cx-accent-2); }
.as-input { border-top: 1px solid var(--cx-line); padding: 0.9rem 1.1rem; display: flex; gap: 10px; align-items: flex-end; }
.as-input textarea { flex: 1; resize: none; border-radius: 14px; min-height: 48px; max-height: 160px; padding: 12px 14px; }
.as-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 1.6rem 1rem; }
.as-chip { border: 1px solid var(--cx-line); background: var(--cx-card); color: var(--cx-ink); border-radius: 999px; padding: 6px 12px; font-size: 0.88rem; cursor: pointer; }
.as-chip:hover { border-color: var(--cx-accent); color: var(--cx-accent); }
.as-typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cx-muted); margin-right: 3px; animation: asDot 1.2s infinite; }
.as-typing span:nth-child(2) { animation-delay: .2s; } .as-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes asDot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- To-Do ---------- */
.todo-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.todo-progress { height: 8px; border-radius: 4px; background: var(--cx-line); overflow: hidden; width: 220px; }
.todo-progress > span { display: block; height: 100%; background: linear-gradient(90deg, #10b981, #34d399); }
.todo-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: flex-start; padding: .85rem 1rem; border-bottom: 1px solid var(--cx-line); }
.todo-item:last-child { border-bottom: 0; }
.todo-item .form-check-input { width: 1.35rem; height: 1.35rem; margin-top: 2px; cursor: pointer; border-radius: 7px; }
.todo-item.done .td-title { text-decoration: line-through; color: var(--cx-muted); }
.td-title { font-weight: 700; color: var(--cx-ink); cursor: pointer; }
.td-sub { font-size: 0.86rem; color: var(--cx-muted); margin-top: 2px; }
.td-do { font-size: 0.9rem; margin-top: 4px; }
.td-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 0.8rem; color: var(--cx-muted); }
.carry { font-size: 0.72rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: rgba(239,68,68,0.1); color: #dc2626; }
.type-chip { font-size: 0.7rem; font-weight: 800; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; }
.type-RISK { background: rgba(100,116,139,0.12); color: #475569; }
.type-OPPORTUNITY { background: rgba(16,185,129,0.14); color: #047857; }
.type-REALTIME { background: rgba(239,68,68,0.12); color: #dc2626; }
.type-DATA { background: rgba(14,165,233,0.14); color: #0369a1; }
.type-SUPPLIER { background: rgba(249,115,22,0.14); color: #c2410c; }
.type-INFO { background: rgba(47,111,228,0.12); color: #2f6fe4; }
body.dark-theme .type-RISK { color: #cbd5e1; } body.dark-theme .type-OPPORTUNITY { color: #6ee7b7; } body.dark-theme .type-REALTIME { color: #fca5a5; }
body.dark-theme .type-DATA { color: #7dd3fc; } body.dark-theme .type-SUPPLIER { color: #fdba74; } body.dark-theme .type-INFO { color: #93c5fd; }
.sev-badge.sev-low { background: rgba(100,116,139,0.12); color: #64748b; }
.act-card.opp { border-top: 3px solid #10b981 !important; }
.act-card.low { border-top: 3px solid #94a3b8 !important; }
.alert-row.opp .ar-bar { background: #10b981; }
.alert-row.low .ar-bar { background: #94a3b8; }
.realtime-pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; margin-right: 5px; animation: cxoPulse 1.2s infinite; }

/* ---------- sign-in pages ---------- */
.auth-body { background: var(--cx-bg) !important; }
.auth-left { background: var(--cx-grad) !important; position: relative; overflow: hidden; }
.auth-left::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(700px 320px at 90% 0%, rgba(167,139,250,0.35), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(56,189,248,0.22), transparent 60%); }
.auth-left-inner { position: relative; z-index: 1; }
.auth-headline span { background: linear-gradient(90deg, #7dd3fc, #c4b5fd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-bar { background: linear-gradient(90deg, #38bdf8, #a78bfa) !important; }
.auth-card .btn-primary, .auth-right .btn-primary { background: linear-gradient(135deg, #2f6fe4, #7c3aed); border: 0; }

/* ---------- overview tabs (on the hero band) ---------- */
.ov-tabs { gap: 6px; margin: 0.2rem 0 1.1rem; border: 0; flex-wrap: wrap; }
.ov-tabs .nav-link { border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; color: rgba(225,232,255,0.9); background: rgba(255,255,255,0.08);
    padding: 7px 16px; font-weight: 600; backdrop-filter: blur(6px); }
.ov-tabs .nav-link:hover { background: rgba(255,255,255,0.16); color: #fff; }
.ov-tabs .nav-link.active { background: #fff; color: var(--cx-ink); border-color: #fff; box-shadow: 0 6px 18px rgba(11,20,48,0.18); }
body.dark-theme .ov-tabs .nav-link.active { background: #e8edff; color: #0b1430; }
.perf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.perf-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--cx-line); background: var(--cx-card); color: var(--cx-ink); border-radius: 999px;
    padding: 7px 14px; font-weight: 600; font-size: 0.92rem; box-shadow: var(--cx-shadow); }
.perf-pill.active { border-color: var(--cx-accent); box-shadow: 0 0 0 3px rgba(47,111,228,0.15); }

/* ---------- sub-tabs inside an overview tab ---------- */
.sub-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 1rem; border-radius: 14px; background: var(--cx-card); border: 1px solid var(--cx-line); box-shadow: var(--cx-shadow); }
.sub-tab { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--cx-muted); font-weight: 650; font-size: 0.95rem;
    padding: 7px 14px; border-radius: 10px; }
.sub-tab:hover { color: var(--cx-ink); background: var(--pla-line-soft); }
.sub-tab.active { color: #fff; background: linear-gradient(135deg, #2f6fe4, #5b3fd6); box-shadow: 0 4px 12px rgba(47,111,228,0.28); }
.sub-count { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 0.75rem; font-weight: 800; line-height: 20px; text-align: center;
    background: var(--pla-line-soft); color: var(--cx-ink); }
.sub-tab.active .sub-count { background: rgba(255,255,255,0.22); color: #fff; }
.sub-count.crit { background: #ef4444; color: #fff; }

/* ---------- value-chain cards: year / month / day actual vs budget or plan (as on the TV) ---------- */
.st-ms { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.st-m-head { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; }
.st-m-head .lbl { font-weight: 750; color: var(--cx-ink); text-transform: uppercase; letter-spacing: .06em; font-size: 0.72rem; }
.st-m-head .per { color: var(--cx-muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-m-head .pc { font-size: 0.74rem; padding: 1px 7px; }
.st-m-head .pc.none { color: var(--cx-muted); }
.st-m-nums { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; margin-top: 1px; }
.st-m-nums .act { font-size: 1.28rem; font-weight: 800; color: var(--cx-ink); letter-spacing: -0.01em; line-height: 1.15; }
.st-m-nums .tgt { font-size: 0.82rem; color: var(--cx-muted); font-weight: 600; }
.st-m-nums .tgt em { font-style: normal; font-weight: 500; }
.st-m-bar { position: relative; height: 6px; border-radius: 3px; background: var(--exec-line); margin-top: 4px; }
.st-m-bar > span { display: block; height: 100%; border-radius: 3px; }
.st-m-bar > i { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; border-radius: 1px; background: var(--cx-ink); opacity: .55; }
.st-delta { font-size: 0.78rem; font-weight: 650; color: var(--cx-muted); }
.st-delta.up::first-letter, .st-delta.down::first-letter { font-size: 0.7em; }
.st-soon { margin-top: 8px; font-size: 0.75rem; color: var(--cx-muted); border: 1px dashed var(--cx-line); border-radius: 8px; padding: 4px 8px; }
.st-soon i { margin-right: 3px; }
.stage .st-foot span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- coming soon: strip under the value chain and the "More areas" tab ---------- */
.soon-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.soon-strip:empty { display: none; }
.soon-head { font-size: 0.8rem; font-weight: 750; color: var(--cx-muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.soon-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px dashed var(--cx-line); background: var(--cx-card); color: var(--cx-ink);
    border-radius: 999px; padding: 5px 12px; font-size: 0.85rem; font-weight: 650; }
.soon-chip span { color: var(--cx-muted); font-weight: 500; font-size: 0.78rem; }
.soon-chip:hover { border-color: var(--cx-accent); }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.soon-card { border: 1px dashed var(--cx-line); border-radius: 14px; padding: 14px 16px; background: var(--cx-card); transition: box-shadow .3s, border-color .3s; }
.soon-card.flash { border-color: var(--cx-accent); box-shadow: 0 0 0 4px rgba(47,111,228,0.18); }
.soon-card .sc-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.soon-card .sc-head > div { flex: 1; min-width: 0; }
.soon-card h3 { font-size: 1.02rem; font-weight: 750; margin: 0; color: var(--cx-ink); }
.soon-card .sc-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
    background: var(--pla-line-soft); color: var(--cx-accent); flex: none; }
.soon-card .sc-sys { font-size: 0.8rem; color: var(--cx-muted); }
.soon-badge { flex: none; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px;
    background: var(--pla-line-soft); color: var(--cx-muted); }
.soon-card .sc-label { font-size: 0.72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--cx-muted); margin-top: 8px; }
.soon-card ul { margin: 4px 0 0; padding-left: 1.1rem; font-size: 0.88rem; color: var(--cx-ink); }
.soon-card .sc-need { font-size: 0.86rem; color: var(--cx-ink); margin-top: 3px; }
.soon-card .sc-status { font-size: 0.78rem; color: var(--cx-muted); margin-top: 8px; }

/* ---------- business cards (monthly: finance, after sales) ---------- */
.biz-head { font-size: 0.8rem; font-weight: 750; color: var(--cx-muted); text-transform: uppercase; letter-spacing: .06em; margin: 2px 0 8px; }
.stage-grid.biz { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.st-facts { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--exec-line); padding-top: 8px; }
.st-fact { display: flex; justify-content: space-between; gap: 8px; font-size: 0.82rem; color: var(--cx-muted); }
.st-fact strong { color: var(--cx-ink); font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-fact em { font-style: normal; font-weight: 500; color: var(--cx-muted); }

/* ---------- overview: compact, fits one screen (1366 x 768 and up) with little or no vertical scroll ---------- */
.st-delta.good { color: var(--st-good); }
.st-delta.bad { color: var(--st-crit); }
.ov-page .cx-crumbs { display: none; }
.ov-page .exec-hero { margin-bottom: .35rem; padding-top: .6rem; }
.ov-page .exec-hero h1 { font-size: 1.45rem; }
.ov-page .exec-hero .sub { font-size: 0.9rem; }
.ov-page .exec-hero .clock .t { font-size: 1.35rem; }
.ov-page .ov-tabs { margin: 0.1rem 0 0.6rem; }
.ov-page .ov-tabs .nav-link { padding: 5px 14px; font-size: 0.92rem; }
.ov-page .sub-tabs { margin-bottom: 0.6rem; }
.ov-page .sub-tab { padding: 5px 12px; font-size: 0.9rem; }
.ov-page .stage-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; margin-bottom: .65rem; }
@media (max-width: 1199px) { .ov-page .stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ov-page .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ov-page .stage-grid { grid-template-columns: 1fr; } }
.ov-page .stage { padding: .6rem .75rem .45rem; }
.ov-page .stage .st-top { margin-bottom: .35rem; }
.ov-page .stage .st-name { font-size: 0.74rem; }
.ov-page .stage .health { font-size: 0.72rem; }
.ov-page .st-ms { gap: 6px; }
.ov-page .st-m-head { font-size: 0.72rem; gap: 5px; }
.ov-page .st-m-head .lbl { font-size: 0.68rem; }
.ov-page .st-m-head .pc { font-size: 0.7rem; padding: 0 6px; }
.ov-page .st-m-nums { gap: 4px; margin-top: 0; }
.ov-page .st-m-nums .act { font-size: 1.05rem; }
.ov-page .st-m-nums .tgt { font-size: 0.74rem; }
.ov-page .st-m-bar { height: 5px; margin-top: 3px; }
.ov-page .st-m-bar > i { height: 10px; top: -2.5px; }
.ov-page .st-soon { margin-top: 6px; font-size: 0.7rem; padding: 1px 6px; border-radius: 6px; display: inline-block; }
.ov-page .stage .st-foot { margin-top: .35rem; font-size: 0.7rem; }
.ov-page .stage svg.spark, .ov-page .stage .spark { height: 26px !important; }
/* business row: finance and parts span two columns with their periods side by side; the coming-soon list fills the last column */
@media (min-width: 1200px) {
  .ov-page .stage.wide { grid-column: span 2; }
  .ov-page .stage.wide .st-ms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .ov-page .stage.wide .st-facts { flex-direction: row; flex-wrap: wrap; gap: 2px 18px; }
}
.ov-page .stage-grid.biz { margin-bottom: .3rem; }
.ov-page .st-facts { margin-top: 7px; padding-top: 6px; gap: 2px; }
.ov-page .st-fact { font-size: 0.74rem; }
.soon-card-mini { display: flex; flex-direction: column; gap: 4px; cursor: default; }
.soon-card-mini .st-top { margin-bottom: .2rem !important; }
.soon-card-mini .soon-chip { width: 100%; justify-content: flex-start; border-radius: 8px; padding: 3px 8px; font-size: 0.76rem; text-align: left; }
.soon-card-mini .soon-chip i { color: var(--cx-muted); }
.ov-page .soon-card-mini:hover { transform: none; }

/* ---------- value-chain KPI tiles (v2): accent, headline + ring, slim rows, area sparkline ---------- */
.ov-page .stage.vc { padding: 12px 14px 0; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; position: relative;
    border: 1px solid var(--cx-line); }
.ov-page .stage.vc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); opacity: .9; }
.ov-page .stage.vc.active { border-color: var(--c) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent), var(--cx-shadow-hover) !important; }
.vc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 0; }
.vc-icon { width: 28px; height: 28px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem;
    color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.vc-name { font-weight: 750; font-size: .86rem; color: var(--cx-ink); text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.vc-src { color: var(--cx-muted); font-size: .8rem; opacity: .7; cursor: help; }
.vc-demo { font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: 1px 6px; border-radius: 6px; background: #fef3c7; color: #92400e; }
.vc-pill { font-size: .7rem; font-weight: 750; padding: 2px 8px; border-radius: 999px; white-space: nowrap; text-transform: none; }
.vc-pill.ok { background: var(--st-good-bg); color: var(--st-good); }
.vc-pill.warn { background: var(--st-warn-bg); color: var(--st-warn); }
.vc-pill.crit { background: rgba(220,38,38,.1); color: var(--st-crit); }
.vc-hero { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.vc-hero-txt { min-width: 0; }
.vc-cap { font-size: .7rem; color: var(--cx-muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-big { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; color: var(--cx-ink); line-height: 1.15; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.vc-of { font-size: .76rem; color: var(--cx-muted); font-variant-numeric: tabular-nums; }
.vc-ring { flex: none; }
.vc-ring .trk { fill: none; stroke: var(--exec-line); stroke-width: 6; }
.vc-ring .arc { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.vc-ring text { font-size: 12.5px; font-weight: 800; fill: var(--cx-ink); font-family: inherit; }
.vc-row { margin-top: 6px; }
.vc-row-top { display: flex; align-items: baseline; gap: 6px; font-size: .74rem; font-variant-numeric: tabular-nums; }
.vc-row-top .lbl { color: var(--cx-muted); font-weight: 650; white-space: nowrap; }
.vc-row-top .nums { flex: 1; text-align: right; color: var(--cx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-row-top .nums b { color: var(--cx-ink); font-weight: 750; }
.vc-row-top .pc { min-width: 38px; text-align: right; font-weight: 800; }
.pc.ok, .vc-fact em.ok { color: var(--st-good); } .pc.warn, .vc-fact em.warn { color: var(--st-warn); } .pc.crit, .vc-fact em.crit { color: var(--st-crit); } .pc.none { color: var(--cx-muted); }
.vc-bar { position: relative; height: 4px; border-radius: 2px; background: var(--exec-line); margin-top: 3px; }
.vc-bar > span { display: block; height: 100%; border-radius: 2px; background: var(--cx-muted); }
.vc-bar > span.ok { background: var(--st-good); } .vc-bar > span.warn { background: var(--st-warn-fill); } .vc-bar > span.crit { background: var(--st-crit); }
.vc-bar > i { position: absolute; top: -3px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: var(--cx-ink); opacity: .45; }
.vc-delta { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 750; padding: 0 6px 0 2px; border-radius: 999px; background: var(--pla-line-soft); color: var(--cx-muted); }
.vc-delta i { font-size: 1.05rem; line-height: 1; }
.vc-delta.good { color: var(--st-good); background: var(--st-good-bg); } .vc-delta.bad { color: var(--st-crit); background: rgba(220,38,38,.1); }
.vc-line { display: flex; align-items: center; gap: 8px; font-size: .76rem; padding: 7px 0 2px; border-top: 1px dashed var(--cx-line); }
.vc-line .lbl { color: var(--cx-muted); font-weight: 650; }
.vc-line .v { flex: 1; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.vc-line .v b { font-size: 1.02rem; color: var(--cx-ink); }
.vc-line .per { color: var(--cx-muted); font-size: .7rem; }
.vc-note { margin-top: 7px; font-size: .7rem; color: var(--cx-muted); display: flex; align-items: center; gap: 5px; }
.vc-spark { display: block; width: calc(100% + 28px); margin: auto -14px 0; height: 40px; }
.vc-spark.empty { height: 12px; }
.ov-page .stage.vc .vc-spark { margin-top: auto; padding-top: 6px; }
/* wide business tiles: headline | rows | facts */
.vc-wide { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.vc-wide .vc-hero { margin-bottom: 0; }
.vc-wide .vc-row:first-child { margin-top: 0; }
.vc-facts { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--cx-line); padding-left: 14px; }
.vc-fact { display: flex; flex-direction: column; line-height: 1.2; }
.vc-fact .lbl { font-size: .68rem; color: var(--cx-muted); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.vc-fact .v { font-size: .95rem; font-weight: 800; color: var(--cx-ink); font-variant-numeric: tabular-nums; }
.vc-fact em { font-style: normal; font-size: .7rem; font-weight: 650; }
@media (max-width: 1199px) { .vc-wide { grid-template-columns: 1fr 1fr; } .vc-facts { grid-column: span 2; border-left: 0; padding-left: 0; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; } }
/* coming soon tile */
.ov-page .stage.vc.soon-card-mini { padding-bottom: 12px; gap: 5px; background: linear-gradient(180deg, var(--cx-card), var(--pla-line-soft)); }
.ov-page .stage.vc.soon-card-mini::before { background: #94a3b8; }
.vc-all { font-size: .78rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.soon-card-mini .soon-chip { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid var(--cx-line); background: var(--cx-card);
    border-radius: 10px; padding: 5px 10px; font-size: .78rem; font-weight: 650; color: var(--cx-ink); text-align: left; }
.soon-card-mini .soon-chip span { flex: 1; }
.soon-card-mini .soon-chip i { color: var(--cx-muted); }
.soon-card-mini .soon-chip .go { font-size: .7rem; opacity: .5; }
.soon-card-mini .soon-chip:hover { border-color: var(--cx-accent); }
.soon-card-mini .soon-chip:hover .go { opacity: 1; color: var(--cx-accent); }
body.dark-theme .vc-demo { background: rgba(253,230,138,.15); color: #fde68a; }

/* ---------- overview header: slim context line and a single tab bar ---------- */
.ov-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 10px; color: #fff; flex-wrap: wrap; }
.ov-ctx { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.ov-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.ov-meta { font-size: .88rem; color: rgba(220,228,255,.85); }
.ov-meta .demo-chip { background: rgba(253,230,138,0.18); color: #fde68a; }
.ov-clock { display: flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap; }
.ov-clock .t { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ov-clock .d { font-size: .85rem; color: rgba(220,228,255,.85); }
.ov-clock .shift-bar { width: 90px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; display: inline-block; }
.ov-clock .shift-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #38bdf8, #a78bfa); }
.ov-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin: 0 0 14px; padding: 5px; border: 1px solid var(--cx-line); border-radius: 14px;
    background: var(--cx-card); box-shadow: var(--cx-shadow); }
.ov-nav .nav-link { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 10px; padding: 7px 14px; font-size: .9rem; font-weight: 650;
    color: var(--cx-muted); background: transparent; position: relative; }
.ov-nav .nav-link i { font-size: 1rem; }
.ov-nav .nav-link:hover { color: var(--cx-ink); background: var(--pla-line-soft); }
.ov-nav .nav-link.active { color: var(--cx-accent); background: color-mix(in srgb, var(--cx-accent) 9%, transparent); }
.ov-nav .nav-link.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -6px; height: 3px; border-radius: 3px; background: var(--cx-accent); }
.ov-nav .nv-sep { width: 1px; height: 22px; background: var(--cx-line); margin: 0 6px; }
.nv-count { min-width: 20px; height: 19px; padding: 0 6px; border-radius: 10px; font-size: .72rem; font-weight: 800; line-height: 19px; text-align: center;
    background: var(--pla-line-soft); color: var(--cx-ink); }
.nv-count.crit { background: #ef4444; color: #fff; }
.ov-nav .nav-link.active .nv-count:not(.crit) { background: color-mix(in srgb, var(--cx-accent) 16%, transparent); color: var(--cx-accent); }
.ov-page .exec-hero, .ov-page .sub-tabs, .ov-page .ov-tabs { display: none; }
/* ---------- period rows: Year -> Month -> Day ---------- */
.vc-ps { display: flex; flex-direction: column; gap: 9px; }
.vc-p-head { display: flex; align-items: center; gap: 6px; font-size: .72rem; }
.vc-p-head .lbl { font-weight: 800; color: var(--cx-ink); text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; }
.vc-p-head .per { color: var(--cx-muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-p-head .pc { font-weight: 800; font-size: .78rem; padding: 0 7px; border-radius: 999px; }
.vc-p-head .pc.ok { background: var(--st-good-bg); } .vc-p-head .pc.warn { background: var(--st-warn-bg); } .vc-p-head .pc.crit { background: rgba(220,38,38,.1); }
.vc-p-nums { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; font-variant-numeric: tabular-nums; margin-top: 1px; }
.vc-p-nums b { font-size: 1.12rem; font-weight: 800; color: var(--cx-ink); letter-spacing: -.01em; }
.vc-p-nums span { font-size: .74rem; color: var(--cx-muted); }
.vc-p-note { font-size: .66rem; color: var(--cx-muted); margin-top: 2px; }
.vc-demo.sm { font-size: .58rem; padding: 0 5px; }
.vc-wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) !important; }
.vc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .74rem; color: var(--cx-muted); margin: 2px 2px 8px; }
.vc-legend b { color: var(--cx-ink); }
.lg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.lg-dot.ok { background: var(--st-good); } .lg-dot.warn { background: var(--st-warn-fill); } .lg-dot.crit { background: var(--st-crit); }
.lg-tick { display: inline-block; width: 2px; height: 10px; background: var(--cx-ink); opacity: .45; margin-right: 6px; vertical-align: middle; }

/* ---------- "As of" date (view a past day) ---------- */
.ov-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ov-asof { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 12px; background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: .85rem; }
.ov-asof label { font-weight: 650; margin: 0; color: rgba(220,228,255,.9); }
.ov-asof input[type=date] { border: 0; border-radius: 8px; padding: 3px 8px; font-size: .85rem; font-weight: 650; color: var(--cx-ink); background: #fff; color-scheme: light; }
.ov-asof .ao-step { border: 0; background: transparent; color: #fff; padding: 2px 6px; border-radius: 8px; }
.ov-asof .ao-step:hover:not(:disabled) { background: rgba(255,255,255,.15); }
.ov-asof .ao-step:disabled { opacity: .35; }
.ov-asof .ao-live { border: 0; border-radius: 8px; padding: 3px 10px; font-size: .8rem; font-weight: 750; background: #22c55e; color: #fff; }
.asof-chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; background: #fde68a; color: #78350f; font-weight: 750; font-size: .8rem; }
body.ov-historic .stage.vc { box-shadow: 0 0 0 2px rgba(253,230,138,.55), var(--cx-shadow) !important; }

/* tile titles: full name, status underneath; legend above the cards */
.vc-head { align-items: flex-start; }
.vc-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vc-titles .vc-name { white-space: normal; overflow: visible; text-transform: none; font-size: .92rem; line-height: 1.2; flex: none; }
.vc-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vc-head .vc-icon { margin-top: 1px; }
.vc-head .vc-src, .vc-head .vc-all { margin-top: 3px; }
.vc-legend { margin: 0 2px 10px; padding: 6px 12px; border-radius: 10px; background: var(--cx-card); border: 1px solid var(--cx-line); width: fit-content; }

/* ---------- Today's To-Do: priority board ---------- */
.ov-page .act-band { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.ov-page .act-band::before { display: none !important; }
.ov-page .act-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ov-page .act-head h2 { font-size: 1.15rem; font-weight: 800; color: var(--cx-ink); margin: 0; }
.td-subtitle { font-size: .8rem; font-weight: 500; color: var(--cx-muted); margin-left: 8px; }
.ov-page .act-head .counts { display: flex; align-items: center; gap: 8px; }
.td-stat { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--cx-card); border: 1px solid var(--cx-line); color: var(--cx-muted); }
.td-stat.done i { color: var(--st-good); }
.td-stat.live { color: var(--st-crit); }
.td-open { font-size: .82rem; font-weight: 700; text-decoration: none; padding: 5px 12px; border-radius: 999px; background: var(--cx-accent); color: #fff !important; }
.td-open:hover { filter: brightness(1.08); }
.td-board { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1199px) { .td-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .td-board { grid-template-columns: 1fr; } }
.td-col { background: color-mix(in srgb, var(--cx-card) 55%, var(--pla-line-soft)); border: 1px solid var(--cx-line); border-radius: 16px; padding: 10px; min-width: 0; }
.td-col header { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; }
.td-col header h3 { font-size: .92rem; font-weight: 800; margin: 0; color: var(--cx-ink); line-height: 1.1; }
.td-col header small { font-size: .72rem; color: var(--cx-muted); }
.td-col header > div { flex: 1; }
.td-ic { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.td-n { min-width: 26px; height: 24px; padding: 0 8px; border-radius: 999px; font-size: .78rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; background: var(--tc); color: #fff; }
.td-critical { --tc: #e5484d; } .td-warning { --tc: #e8a317; } .td-opportunity { --tc: #16a34a; } .td-low { --tc: #64748b; }
.td-list { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; padding-right: 2px; }
.td-card { position: relative; background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: 12px; padding: 10px 12px 9px 14px; cursor: pointer;
    box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: transform .15s, box-shadow .15s, border-color .15s; }
.td-card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tc); }
.td-card:hover, .td-card:focus { transform: translateY(-2px); box-shadow: var(--cx-shadow-hover); border-color: color-mix(in srgb, var(--tc) 45%, var(--cx-line)); outline: 0; }
.td-meta { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--cx-muted); margin-bottom: 4px; }
.td-dom { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--cx-ink); }
.td-dom i { color: var(--tc); }
.td-ago { margin-left: auto; white-space: nowrap; }
.td-tag { font-size: .64rem; font-weight: 800; padding: 1px 6px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em; }
.td-tag.live { background: rgba(229,72,77,.12); color: #c62f35; } .td-tag.data { background: rgba(47,111,228,.1); color: var(--cx-accent); }
.td-tag.sup { background: rgba(124,58,237,.1); color: #7c3aed; } .td-tag.demo { background: #fef3c7; color: #92400e; }
.td-title { font-size: .9rem; font-weight: 700; color: var(--cx-ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-do { display: flex; gap: 6px; margin-top: 6px; font-size: .78rem; color: var(--cx-muted); line-height: 1.35; }
.td-do i { color: var(--tc); flex: none; margin-top: 1px; }
.td-do span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .72rem; color: var(--cx-muted); }
.td-av { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #2f6fe4, #7c3aed); }
.td-owner { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--cx-ink); }
.td-empty { font-size: .8rem; color: var(--cx-muted); text-align: center; padding: 18px 8px; border: 1px dashed var(--cx-line); border-radius: 12px; }
.td-empty i { color: var(--st-good); margin-right: 5px; }
body.dark-theme .td-col { background: rgba(255,255,255,.03); }
body.dark-theme .td-tag.demo { background: rgba(253,230,138,.15); color: #fde68a; }
.ov-page .act-head { background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: 14px; padding: 8px 10px 8px 16px; box-shadow: var(--cx-shadow); }

/* ---------- Top 5 decisions (value chain tab) ---------- */
.top-dec { margin: 2px 0 12px; }
.top-dec header { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; }
.top-dec h3 { font-size: .95rem; font-weight: 800; color: var(--cx-ink); margin: 0; display: flex; align-items: center; gap: 8px; }
.top-dec h3 i { color: #e5484d; }
.top-dec header a { font-size: .8rem; font-weight: 700; text-decoration: none; }
.top-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1199px) { .top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .top-grid { grid-template-columns: 1fr; } }
.top-card { position: relative; display: flex; gap: 10px; background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: 14px; padding: 10px 12px; cursor: pointer;
    box-shadow: var(--cx-shadow); transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
.top-card:hover, .top-card:focus { transform: translateY(-2px); box-shadow: var(--cx-shadow-hover); border-color: color-mix(in srgb, var(--tc) 45%, var(--cx-line)); outline: 0; }
.top-rank { flex: none; width: 26px; height: 26px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem;
    color: #fff; background: var(--tc); }
.top-body { min-width: 0; flex: 1; }
.top-lvl { margin-left: auto; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--tc); }
.top-card .td-title { font-size: .84rem; }
.top-card .td-do { font-size: .74rem; }
/* ---------- AI insights: clickable rows ---------- */
.insight.clickable { cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.insight.clickable:hover, .insight.clickable:focus { border-color: var(--cx-accent); background: color-mix(in srgb, var(--cx-accent) 4%, var(--cx-card)); outline: 0; transform: translateX(2px); }
.insight .ins-go { color: var(--cx-muted); margin-left: 8px; align-self: center; }
.insight.clickable:hover .ins-go { color: var(--cx-accent); }

/* ---------- interactive sparklines ---------- */
.vc-sw { position: relative; margin: auto -14px 0; width: calc(100% + 28px); padding-top: 6px; cursor: crosshair; }
.vc-sw .vc-spark { width: 100%; margin: 0; display: block; height: 40px; }
.vc-sw.anim .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: vcDraw 1.4s cubic-bezier(.4,0,.2,1) .15s forwards; }
.vc-sw.anim .area { opacity: 0; animation: vcFade .8s ease 1s forwards; }
@keyframes vcDraw { to { stroke-dashoffset: 0; } }
@keyframes vcFade { to { opacity: 1; } }
.vc-dot, .vc-hdot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--c); pointer-events: none; }
.vc-plot { position: relative; height: 40px; }
.vc-dot { margin-left: -6px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); animation: vcPulse 2s ease-out infinite; }
@keyframes vcPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.vc-hdot { display: none; border: 2px solid #fff; width: 10px; height: 10px; margin: -5px 0 0 -5px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.vc-vline { display: none; position: absolute; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--c) 50%, transparent); pointer-events: none; }
.vc-tip { display: none; position: absolute; bottom: calc(100% + 2px); transform: translateX(-50%); white-space: nowrap; pointer-events: none; z-index: 5;
    background: #0f172a; color: #fff; font-size: .72rem; padding: 4px 8px; border-radius: 8px; box-shadow: 0 6px 16px rgba(15,23,42,.25); }
.vc-tip span:first-child { color: #cbd5e1; margin-right: 6px; }
.vc-tip .up { color: #4ade80; margin-left: 4px; } .vc-tip .down { color: #f87171; margin-left: 4px; }
.vc-sw.hover .vc-hdot, .vc-sw.hover .vc-vline, .vc-sw.hover .vc-tip { display: block; }
.vc-sw.hover .vc-dot { opacity: .35; }
.ov-page .stage.vc .vc-sw .vc-spark { padding: 0 !important; margin: 0 !important; width: 100%; }
.ov-page .stage.vc .vc-sw { margin-top: auto; }
