@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Compat aliases for dark-theme var names used in page modules ── */
:root {
  --muted:        var(--text-muted);
  --dim:          var(--text-light);
  --blue:         var(--accent);
  --blue-strong:  var(--accent-dark);
  --panel-strong: var(--surface);
  --bg-elevated:  var(--surface);
}

:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --border: #e2e6ea;
    --border-light: #f0f2f5;
    --text: #1a2230;
    --text-muted: #6b7585;
    --text-light: #9aa3ae;
    --accent: #1e6bb8;
    --accent-light: #e8f0fb;
    --accent-dark: #154f8a;
    --green: #15803d;
    --green-bg: #dcfce7;
    --amber: #b45309;
    --amber-bg: #fef3c7;
    --red: #c0392b;
    --red-bg: #fdecea;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 1px 4px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --c-ideation: #6366f1;
    --c-ideation-bg: #eef2ff;
    --c-development: #f59e0b;
    --c-development-bg: #fffbeb;
    --c-production: #3b82f6;
    --c-production-bg: #eff6ff;
    --c-launch: #22c55e;
    --c-launch-bg: #f0fdf4;
    --dept-compliance: #8b5cf6;
    --dept-manufacturing: #3b82f6;
    --dept-supply-chain: #f59e0b;
    --dept-design: #ec4899;
    --dept-marketing: #22c55e;
    --dept-sales: #ef4444;
    --dept-quality: #0d9488;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    transition: padding-right 0.25s ease;
  }
  body.veronica-open { padding-right: 300px; }

  /* ========== APP SHELL ========== */
  #app { display: block; }

  .header {
    background: #0d2240; color: white; padding: 0 24px;
    display: flex; align-items: center; height: 58px; gap: 12px;
    position: sticky; top: 0; z-index: 200;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    transition: padding-right 0.25s ease;
  }
  body.veronica-open .header { padding-right: calc(24px + 300px); }
  .header-logo { height: 22px; width: auto; object-fit: contain; display: block; }
  .header-logo-fallback { display: none; font-size: 18px; font-weight: 800; letter-spacing: .06em; color: #fff; }
  .header-logo-fallback span { color: #00AE42; }
  .header-divider { width: 1px; height: 20px; background: rgba(255,255,255,.2); margin: 0 4px; }
  .header-brand { font-weight: 600; font-size: 15px; letter-spacing: -0.2px; color: rgba(255,255,255,.85); }
  .header-spacer { flex: 1; }
  .header-meta { font-size: 11px; opacity: 0.45; white-space: nowrap; }

  /* ========== SKELETON ========== */
  @keyframes shimmer {
    0% { background-position: -600px 0; }
    100% { background-position: 600px 0; }
  }
  .skeleton {
    background: linear-gradient(90deg, #f0f2f5 25%, #e4e8ed 50%, #f0f2f5 75%);
    background-size: 600px 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm);
  }
  .skeleton-card { height: 100px; border-radius: var(--radius); }
  .skeleton-gantt { height: 320px; border-radius: var(--radius); }

  /* ========== BREADCRUMB ========== */
  .breadcrumb-bar {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
  }
  .bc-sep { color: var(--border); font-size: 14px; }
  .bc-link {
    color: var(--accent); cursor: pointer; font-weight: 500;
    background: none; border: none; padding: 0; font-size: 12px;
    font-family: inherit;
  }
  .bc-link:hover { text-decoration: underline; }
  .bc-current { color: var(--text); font-weight: 600; }

  /* ========== MAIN ========== */
  .main { padding: 28px 24px; max-width: 1400px; margin: 0 auto; }

  /* ========== KPI ========== */
  .kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
  @media(max-width:900px){.kpi-grid{grid-template-columns:repeat(2,1fr);}}
  .kpi-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 22px 22px 18px; position: relative; overflow: hidden;
    transition: box-shadow .2s, transform .2s;
  }
  .kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
  .kpi-card::before { content:''; position:absolute; top:0;left:0;right:0; height:3px; background:var(--kpi-color,var(--accent)); }
  .kpi-label { font-size:11px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.6px; margin-bottom:10px; }
  .kpi-value { font-size:32px; font-weight:800; color:var(--text); letter-spacing:-1px; line-height:1; margin-bottom:6px; }
  .kpi-sub { font-size:12px; color:var(--text-muted); margin-bottom:10px; }
  .kpi-progress-wrap { background:#eef1f4; border-radius:100px; height:5px; overflow:hidden; margin-top:6px; }
  .kpi-progress-fill { height:100%; border-radius:100px; background:var(--kpi-color,var(--accent)); transition:width .6s cubic-bezier(.4,0,.2,1); }

  /* ========== SECTION HEADERS ========== */
  .section-header { display:flex; align-items:flex-end; gap:12px; margin-bottom:16px; background:#e8eaed; padding:10px 16px; border-radius:var(--radius); border-bottom:1px solid var(--border); }
  .section-title { font-size:17px; font-weight:700; color:var(--text); letter-spacing:-0.3px; }
  .section-sub { font-size:12px; color:var(--text-muted); margin-bottom:1px; }

  /* ========== GANTT ========== */
  .gantt-section {
    background: var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    box-shadow:var(--shadow); margin-bottom:28px; overflow:hidden;
  }
  .gantt-section-header {
    padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #e8eaed;
  }
  .gantt-legend { display:flex; gap:14px; margin-left:auto; flex-wrap:wrap; }
  .gantt-legend-item { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--text-muted); font-weight:500; }
  .gantt-legend-dot { width:10px; height:10px; border-radius:3px; flex-shrink:0; }
  .gantt-legend-dashed { width:18px; height:10px; border-radius:3px; border:2px dashed #94a3b8; }
  .gantt-scroll-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .gantt-inner { min-width:800px; }
  .gantt-months-row {
    display:flex; align-items:center; padding:10px 22px 8px;
    border-bottom:1px solid var(--border-light); background:#fafbfc;
  }
  .gantt-name-col { width:240px; min-width:240px; font-size:11px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; }
  .gantt-months-track { flex:1; display:flex; position:relative; }
  .gantt-month-label { font-size:10px; color:var(--text-muted); font-weight:500; text-align:left; padding-left:4px; pointer-events:none; }
  .gantt-row {
    display:flex; align-items:center; padding:0 22px; height:44px;
    border-bottom:1px solid var(--border-light); transition:background .1s;
  }
  .gantt-row:last-child { border-bottom:none; }
  .gantt-row:nth-child(even) { background:#fafbfc; }
  .gantt-row:hover { background:var(--accent-light) !important; }
  .gantt-row.clickable { cursor:pointer; }
  .gantt-row-name { width:240px; min-width:240px; padding-right:10px; display:flex; align-items:center; gap:7px; }
  .gantt-status-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
  .dot-on-track { background:var(--green); }
  .dot-at-risk { background:#f59e0b; }
  .dot-delayed { background:var(--red); }
  .gantt-row-label { font-size:12px; font-weight:500; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .gantt-row-line-tag { font-size:10px; color:var(--text-light); white-space:nowrap; }
  .gantt-row-arrow { font-size:16px; color:var(--text-light); flex-shrink:0; margin-left:2px; transition:transform .15s,color .15s; line-height:1; }
  .gantt-row.clickable:hover .gantt-row-arrow { color:var(--accent); transform:translateX(3px); }
  .gantt-sku-count { font-size:10px; background:var(--accent-light); color:var(--accent); border-radius:100px; padding:1px 6px; font-weight:600; flex-shrink:0; white-space:nowrap; }
  .gantt-gate-warn { font-size:12px; flex-shrink:0; }
  .gantt-bars-track { flex:1; position:relative; height:28px; }
  .gantt-bar {
    position:absolute; height:18px; top:50%; transform:translateY(-50%);
    border-radius:4px; opacity:.9; transition:opacity .15s,filter .15s;
  }
  .gantt-bar:hover { opacity:1; filter:brightness(1.05); }
  .gantt-bar-solid { cursor:pointer; }
  .gantt-bar-ideation    { background:var(--c-ideation); }
  .gantt-bar-development { background:var(--c-development); }
  .gantt-bar-production  { background:var(--c-production); }
  .gantt-bar-launch      { background:var(--c-launch); }
  .gantt-bar-dashed-ideation    { background:transparent; border:2px dashed var(--c-ideation); }
  .gantt-bar-dashed-development { background:transparent; border:2px dashed var(--c-development); }
  .gantt-bar-dashed-production  { background:transparent; border:2px dashed var(--c-production); }
  .gantt-bar-dashed-launch      { background:transparent; border:2px dashed var(--c-launch); }
  .gantt-today-line { position:absolute; top:0; bottom:0; width:2px; background:#ef4444; z-index:10; pointer-events:none; }
  .gantt-today-label { position:absolute; top:-20px; transform:translateX(-50%); font-size:9px; font-weight:700; color:#ef4444; white-space:nowrap; letter-spacing:.3px; }
  .gantt-grid-line { position:absolute; top:0; bottom:0; width:1px; background:var(--border-light); pointer-events:none; }

  /* ========== LINE CARDS ========== */
  .cards-section { margin-bottom:28px; }
  .cards-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
  @media(max-width:900px){.cards-grid{grid-template-columns:repeat(2,1fr);}}
  @media(max-width:580px){.cards-grid{grid-template-columns:1fr;}}
  .line-card {
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    box-shadow:var(--shadow); overflow:hidden; transition:box-shadow .2s,transform .2s; cursor:pointer;
  }
  .line-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
  .line-card-top { height:4px; background:var(--line-color,var(--accent)); }
  .line-card-body { padding:18px 20px 16px; }
  .line-card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
  .line-card-name { font-size:15px; font-weight:700; color:var(--text); }
  .status-pill { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:100px; font-size:11px; font-weight:600; }
  .pill-on-track { background:var(--green-bg); color:var(--green); }
  .pill-at-risk { background:var(--amber-bg); color:var(--amber); }
  .pill-delayed { background:var(--red-bg); color:var(--red); }
  .line-card-row { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:8px; }
  .line-card-meta-label { font-size:11px; color:var(--text-muted); font-weight:500; text-transform:uppercase; letter-spacing:.4px; }
  .line-card-meta-value { font-size:12px; color:var(--text); font-weight:500; text-align:right; }
  .stage-badge { display:inline-block; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; }
  .stage-ideation    { background:var(--c-ideation-bg); color:var(--c-ideation); }
  .stage-development { background:var(--c-development-bg); color:#92400e; }
  .stage-production  { background:var(--c-production-bg); color:#1d4ed8; }
  .stage-launch      { background:var(--c-launch-bg); color:#15803d; }
  .line-card-footer { display:flex; align-items:center; justify-content:space-between; margin-top:14px; padding-top:12px; border-top:1px solid var(--border-light); }
  .line-card-owner { font-size:11px; color:var(--text-muted); }
  .view-details-btn { font-size:12px; font-weight:600; color:var(--accent); background:none; border:none; cursor:pointer; padding:0; font-family:inherit; transition:color .15s; display:flex; align-items:center; gap:4px; }
  .view-details-btn:hover { color:var(--accent-dark); }

  /* ========== NAVIGATION / VIEWS ========== */
  .view { display:none; }
  .view.active { display:block; opacity:1; }

  /* .back-btn removed - breadcrumbs handle navigation */

  /* ========== LINE SPLIT LAYOUT ========== */
  .line-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
  @media (max-width: 820px) {
    .line-split-layout { grid-template-columns: 1fr; }
  }
  .line-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }
  @media (max-width: 768px) {
    .line-two-col-grid { grid-template-columns: 1fr; }
  }
  .line-split-col-header {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-muted);
    margin-bottom: 12px; padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
  }

  /* ========== LINE PAGE ========== */
  .line-page-header {
    display:flex; align-items:center; gap:14px; margin-bottom:8px;
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    padding:18px 22px; box-shadow:var(--shadow);
  }
  .line-page-color-bar { width:5px; height:40px; border-radius:4px; flex-shrink:0; }
  .line-page-title { font-size:22px; font-weight:700; letter-spacing:-0.4px; }
  .line-page-stats { font-size:12px; color:var(--text-muted); margin-bottom:20px; padding:10px 22px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); }
  .line-groups-grid { display:block; width:100%; }
  @media(max-width:700px){.line-groups-grid{display:block;}}
  .line-group-card {
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    box-shadow:var(--shadow); overflow:hidden; cursor:pointer; transition:box-shadow .2s,transform .2s;
    border-left:4px solid transparent;
  }
  .line-group-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
  .line-group-card-body { padding:16px 18px; }
  .line-group-card-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
  .line-group-card-name { font-size:15px; font-weight:700; }
  .line-group-card-meta { display:flex; gap:12px; align-items:center; margin-bottom:10px; font-size:12px; color:var(--text-muted); }
  .line-mini-gantt { height:24px; position:relative; border-radius:4px; overflow:hidden; background:#f8f9fa; }
  .line-mini-bar { position:absolute; height:100%; border-radius:3px; opacity:.8; }
  .line-group-card-footer { display:flex; align-items:center; justify-content:space-between; margin-top:10px; padding-top:10px; border-top:1px solid var(--border-light); font-size:11px; color:var(--text-muted); }

  /* ========== GROUP DETAIL PAGE ========== */
  .group-header {
    display:flex; align-items:center; gap:14px; margin-bottom:20px;
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    padding:20px 22px; box-shadow:var(--shadow);
  }
  .group-color-bar { width:5px; height:52px; border-radius:4px; flex-shrink:0; }
  .group-header-body { flex:1; }
  .group-name-wrap { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
  .group-name-display {
    font-size:20px; font-weight:700; letter-spacing:-0.3px; cursor:pointer;
    border-bottom:2px dotted transparent; transition:border-color .15s;
  }
  .group-name-display:hover { border-bottom-color: var(--accent); }
  .group-name-input {
    font-size:20px; font-weight:700; letter-spacing:-0.3px; border:none;
    border-bottom:2px solid var(--accent); outline:none; font-family:inherit;
    background:transparent; display:none; width:100%;
  }
  .group-name-edit-icon { font-size:13px; color:var(--text-light); cursor:pointer; opacity:0; transition:opacity .15s; }
  .group-name-wrap:hover .group-name-edit-icon { opacity:1; }
  .group-meta-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .line-badge { display:inline-block; padding:2px 10px; border-radius:100px; font-size:11px; font-weight:600; color:white; }
  .group-header-right { display:flex; flex-direction:column; align-items:flex-end; gap:8px; flex-shrink:0; }
  .group-launch-date { font-size:12px; color:var(--text-muted); }
  .asana-link { font-size:12px; font-weight:600; color:var(--accent); text-decoration:none; display:flex; align-items:center; gap:4px; }
  .asana-link:hover { color:var(--accent-dark); }
  .asana-none { font-size:12px; color:var(--text-light); font-style:italic; }

  .detail-section {
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    box-shadow:var(--shadow); margin-bottom:20px; overflow:hidden;
  }
  .detail-section-header {
    padding:12px 20px; border-bottom:1px solid var(--border);
    font-size:11px; font-weight:700; color:var(--text-muted); text-transform:uppercase;
    letter-spacing:.6px; background:#e8eaed; display:flex; align-items:center; justify-content:space-between;
  }
  .detail-section-body { padding:16px 20px; }

  /* Completion bar */
  .completion-bar-wrap { padding:14px 20px; border-bottom:1px solid var(--border-light); }
  .completion-label { font-size:12px; color:var(--text-muted); margin-bottom:6px; }
  .completion-track { background:#eef1f4; border-radius:100px; height:8px; overflow:hidden; }
  .completion-fill { height:100%; border-radius:100px; transition:width .6s cubic-bezier(.4,0,.2,1); }

  /* Products table */
  .products-table { width:100%; border-collapse:collapse; font-size:12px; }
  .products-table th { text-align:left; padding:8px 12px; font-size:10px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; border-bottom:1.5px solid var(--border); background:var(--bg); }
  .products-table td { padding:10px 12px; border-bottom:1px solid var(--border-light); color:var(--text); vertical-align:middle; }
  .products-table tr:last-child td { border-bottom:none; }
  .products-table tr:hover td { background:#fafbfc; cursor:pointer; }

  /* Resources + Actions grid */
  .res-actions-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
  @media(max-width:640px){.res-actions-grid{grid-template-columns:1fr;}}
  .action-items { list-style:none; }
  .action-item { display:flex; align-items:flex-start; gap:10px; padding:10px 14px; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); margin-bottom:8px; font-size:12px; color:var(--text); }
  .action-item-icon { width:18px; height:18px; background:var(--amber-bg); color:var(--amber); border-radius:4px; display:flex; align-items:center; justify-content:center; font-size:10px; flex-shrink:0; margin-top:1px; }
  .resource-list { list-style:none; }
  .resource-item { display:flex; align-items:center; gap:10px; padding:9px 12px; border:1px solid var(--border-light); border-radius:var(--radius); margin-bottom:8px; font-size:12px; }
  .resource-icon { font-size:14px; flex-shrink:0; }
  .resource-link { color:var(--accent); text-decoration:none; font-weight:500; }
  .resource-link:hover { color:var(--accent-dark); text-decoration:underline; }
  .resource-none { color:var(--text-light); font-style:italic; }

  /* Mini Gantt */
  .mini-gantt-wrap { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); padding:16px; overflow-x:auto; }
  .mini-gantt-inner { min-width:400px; }
  .mini-gantt-row { display:flex; align-items:center; height:36px; }
  .mini-gantt-label { width:140px; min-width:140px; font-size:11px; font-weight:500; color:var(--text); padding-right:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .mini-gantt-track { flex:1; position:relative; height:18px; }
  .mini-gantt-bar { position:absolute; height:14px; top:50%; transform:translateY(-50%); border-radius:3px; opacity:.85; }
  .gantt-resize-handle { position:absolute; top:0; bottom:0; width:8px; cursor:ew-resize; z-index:10; }
  .gantt-resize-left { left:0; border-radius:3px 0 0 3px; }
  .gantt-resize-right { right:0; border-radius:0 3px 3px 0; }
  .gantt-drag-tooltip { position:fixed; background:#1e293b; color:#fff; font-size:11px; font-family:monospace; padding:4px 8px; border-radius:4px; pointer-events:none; z-index:9999; display:none; white-space:nowrap; }

  /* Department Milestones */
  .dept-milestones-scroll { display:flex; gap:12px; overflow-x:auto; padding-bottom:8px; }
  .dept-col { width:210px; min-width:210px; flex-shrink:0; }
  .dept-col-header { padding:8px 12px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:white; border-radius:6px 6px 0 0; display:flex; align-items:center; gap:6px; }
  .dept-col-body { border:1px solid var(--border); border-top:none; border-radius:0 0 6px 6px; padding:8px; background:var(--surface); }
  .milestone-card { background:#fafbfc; border:1px solid var(--border-light); border-radius:6px; padding:10px 12px; margin-bottom:8px; border-left-width:3px; border-left-style:solid; }
  .milestone-card:last-child { margin-bottom:0; }
  .milestone-name { font-size:12px; font-weight:600; margin-bottom:4px; display:flex; align-items:flex-start; gap:6px; flex-wrap:wrap; }
  .gate-badge { display:inline-block; padding:1px 5px; background:#fee2e2; color:#dc2626; border-radius:3px; font-size:9px; font-weight:700; letter-spacing:.3px; white-space:nowrap; flex-shrink:0; margin-top:1px; }
  .milestone-meta { font-size:11px; color:var(--text-muted); margin-bottom:4px; }
  .ms-status-pill { display:inline-block; padding:2px 7px; border-radius:100px; font-size:10px; font-weight:600; }
  .ms-complete   { background:var(--green-bg); color:var(--green); }
  .ms-in-progress{ background:#eff6ff; color:#1d4ed8; }
  .ms-not-started{ background:#f3f4f6; color:#6b7280; }
  .ms-blocked    { background:var(--red-bg); color:var(--red); }

  /* Product detail */
  .product-header { display:flex; align-items:center; gap:14px; margin-bottom:20px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px 22px; box-shadow:var(--shadow); }
  .sku-table { width:100%; border-collapse:collapse; font-size:12px; }
  .sku-table th { text-align:left; padding:8px 12px; font-size:10px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; border-bottom:1.5px solid var(--border); background:var(--bg); }
  .sku-table td { padding:10px 12px; border-bottom:1px solid var(--border-light); color:var(--text); vertical-align:middle; }
  .sku-table tr:last-child td { border-bottom:none; }

  /* Tooltip */
  .tooltip { position:fixed; background:#1a2230; color:white; padding:7px 11px; border-radius:6px; font-size:11px; pointer-events:none; z-index:9999; opacity:0; transition:opacity .15s; white-space:nowrap; box-shadow:0 2px 8px rgba(0,0,0,.2); }
  .tooltip.show { opacity:1; }

  /* ========== ASK VERONICA SIDEBAR ========== */
  #veronica-sidebar { display:none; }

  .veronica-toggle {
    position:fixed; bottom:24px; right:24px;
    background:#0d2240; color:white; border:none;
    padding:10px 18px; border-radius:100px; font-size:13px; font-weight:600;
    cursor:pointer; box-shadow:0 4px 16px rgba(0,0,0,.25);
    font-family:inherit; z-index:400; transition:background .15s;
  }
  .veronica-toggle:hover { background:#1a3a5f; }
  body.veronica-open .veronica-toggle { display:none; }

  .veronica-panel {
    position:fixed; top:0; right:0; bottom:0; width:300px;
    background:white; box-shadow:-4px 0 20px rgba(0,0,0,.1);
    display:flex; flex-direction:column; z-index:350;
    transform:translateX(300px); transition:transform 0.25s ease;
  }
  .veronica-panel.open { transform:translateX(0); }

  .veronica-header {
    background:#0d2240; color:white; padding:0 18px;
    height:58px; display:flex; align-items:center; justify-content:space-between;
    font-weight:600; font-size:14px; flex-shrink:0;
  }
  .veronica-header-left { display:flex; align-items:center; gap:8px; }
  .veronica-close-btn { background:none; border:none; color:rgba(255,255,255,.7); cursor:pointer; font-size:18px; padding:0; line-height:1; }
  .veronica-close-btn:hover { color:white; }

  .veronica-messages { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }
  .veronica-msg { max-width:88%; padding:9px 13px; border-radius:12px; font-size:13px; line-height:1.45; }
  .veronica-msg.user { background:#1e6bb8; color:white; align-self:flex-end; border-radius:12px 12px 2px 12px; }
  .veronica-msg.bot  { background:#f0f2f5; color:#1a2230; align-self:flex-start; border-radius:12px 12px 12px 2px; }

  .veronica-input-row { display:flex; gap:8px; padding:12px 14px; border-top:1px solid var(--border); flex-shrink:0; }
  .veronica-input-row textarea { flex:1; padding:9px 12px; border:1.5px solid var(--border); border-radius:var(--radius); font-size:13px; font-family:inherit; outline:none; resize:none; line-height:1.5; }
  .veronica-input-row textarea:focus { border-color:var(--accent); }
  .veronica-input-row button { padding:9px 14px; background:#0d2240; color:white; border:none; border-radius:var(--radius); font-size:14px; cursor:pointer; transition:background .15s; }
  .veronica-input-row button:hover { background:#1a3a5f; }

  /* Typing indicator */
  .v-typing span { animation: vblink 1.2s infinite; display: inline-block; }
  .v-typing span:nth-child(2) { animation-delay: 0.2s; }
  .v-typing span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes vblink { 0%,80%,100%{opacity:0} 40%{opacity:1} }

  /* Source chips */
  .v-sources { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
  .v-chip { font-size: 10px; padding: 2px 7px; background: #e8f0fb; color: #1e6bb8; border-radius: 10px; }

  /* Suggested action buttons */
  .v-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
  .v-action-btn { font-size: 11px; padding: 4px 10px; background: transparent; border: 1px solid #1e6bb8; color: #1e6bb8; border-radius: 6px; cursor: pointer; }
  .v-action-btn:hover { background: #e8f0fb; }

  /* Confirmation list */
  .v-confirm-list { margin-bottom: 10px; }
  .v-confirm-item { font-size: 12px; padding: 4px 0; border-bottom: 1px solid #f0f2f5; }
  .v-confirm-btn { padding: 8px 16px; background: #0d2240; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; }
  .v-confirm-btn:hover { background: #1e3a5f; }

  @media(max-width:767px){
    .veronica-panel { top:auto; width:100%; height:300px; transform:translateY(300px); box-shadow:0 -4px 20px rgba(0,0,0,.1); }
    .veronica-panel.open { transform:translateY(0); }
    body.veronica-open { padding-right:0 !important; padding-bottom:300px; }
    body.veronica-open .header { padding-right:24px !important; }
  }

  /* ========== QUEUE FLAG BADGE ========== */
  /* ── Actions full-page view ── */
  .actions-page-grid { display:grid; gap:20px; }
  .actions-group-section { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
  .actions-group-header {
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:14px 20px; cursor:pointer; transition:background .15s;
    border-bottom:1px solid rgba(255,255,255,.08); background:#1a2332;
  }
  .actions-group-header:hover { background:#1f2b3d; }
  .actions-group-name { font-size:14px; font-weight:700; color:#fff; }
  .actions-group-count { font-size:11px; font-weight:600; color:rgba(255,255,255,.7); background:rgba(255,255,255,.1); padding:2px 8px; border-radius:10px; }
  .queue-devgroup-select {
    font-size:11px; padding:3px 8px; border-radius:4px; border:1px solid var(--border);
    background:var(--bg); color:var(--text); font-family:inherit; cursor:pointer; max-width:220px;
  }
  .queue-devgroup-select:focus { border-color:#f59e0b; outline:none; }
  .queue-asana-project-tag {
    font-size:10px; color:var(--text-muted); background:rgba(59,130,246,.08);
    border:1px solid rgba(59,130,246,.15); padding:2px 7px; border-radius:4px;
    display:inline-block; margin-top:4px;
  }
  .actions-group-body { padding:12px 16px; display:flex; flex-direction:column; gap:10px; }
  .actions-group-body.collapsed { display:none; }
  .actions-entity-tag {
    font-size:10px; font-weight:600; color:var(--text-muted); background:rgba(255,255,255,.06);
    padding:2px 7px; border-radius:4px; margin-left:auto; white-space:nowrap;
  }
  .actions-summary-bar {
    display:flex; gap:16px; margin-bottom:20px; flex-wrap:wrap;
  }
  .actions-stat {
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    padding:12px 20px; min-width:120px; text-align:center;
  }
  .actions-stat-num { font-size:24px; font-weight:800; color:var(--green); }
  .actions-stat-label { font-size:11px; color:var(--text-muted); margin-top:2px; }
  .actions-filter-bar { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
  .actions-filter-btn {
    font-size:11px; font-weight:600; padding:5px 12px; border-radius:16px;
    border:1px solid var(--border); background:var(--surface); color:var(--text-muted);
    cursor:pointer; transition:all .15s;
  }
  .actions-filter-btn:hover { border-color:var(--text-muted); }
  .actions-filter-btn.active { background:var(--green); color:#fff; border-color:var(--green); }
  .actions-nav-badge {
    font-size:10px; font-weight:700; background:#f59e0b; color:#000;
    padding:1px 6px; border-radius:8px; margin-left:4px; vertical-align:middle;
  }

  .queue-flag-badge {
    display:inline-flex; align-items:center; gap:3px;
    background:#fef08a; color:#78350f; border:1px solid #fde047;
    font-size:11px; font-weight:700; padding:1px 7px; border-radius:100px;
    cursor:pointer; line-height:1.4; white-space:nowrap; flex-shrink:0;
    transition:background .15s,box-shadow .15s;
  }
  .queue-flag-badge:hover { background:#fde047; box-shadow:0 1px 4px rgba(0,0,0,.12); }

  /* ========== ACTION QUEUE PANEL ========== */
  .queue-panel-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:600; display:none;
  }
  .queue-panel-overlay.open { display:block; }

  .queue-panel {
    position:fixed; top:0; right:0; bottom:0; width:420px; max-width:100vw;
    background:white; box-shadow:-4px 0 28px rgba(0,0,0,.14);
    display:flex; flex-direction:column; z-index:610;
    transform:translateX(420px); transition:transform .25s ease;
  }
  .queue-panel.open { transform:translateX(0); }

  .queue-panel-header {
    background:#0d2240; color:white; padding:0 20px;
    height:58px; display:flex; align-items:center; justify-content:space-between;
    font-weight:600; font-size:14px; flex-shrink:0; gap:10px;
  }
  .queue-panel-close {
    background:none; border:none; color:rgba(255,255,255,.7); cursor:pointer;
    font-size:18px; padding:0; line-height:1; flex-shrink:0;
  }
  .queue-panel-close:hover { color:white; }

  .queue-panel-body { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; }

  .queue-item-card {
    background:#fafbfc; border:1px solid var(--border); border-radius:var(--radius);
    padding:14px 16px; border-left:4px solid transparent;
  }
  .queue-item-card.type-task        { border-left-color:#3b82f6; }
  .queue-item-card.type-key_decision { border-left-color:#f59e0b; }
  .queue-item-card.type-project_update { border-left-color:#10b981; }

  .queue-item-header { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
  .queue-type-badge {
    font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.4px;
    padding:2px 7px; border-radius:100px;
  }
  .badge-task           { background:#eff6ff; color:#1d4ed8; }
  .badge-key_decision   { background:#fffbeb; color:#92400e; }
  .badge-project_update { background:#f0fdf4; color:#15803d; }

  .queue-item-summary { font-size:13px; font-weight:600; color:var(--text); margin-bottom:6px; cursor:text; border-radius:4px; padding:4px 6px; margin:-4px -6px 6px -6px; transition:background .15s; }
  .queue-item-summary:hover { background:rgba(255,255,255,.04); }
  .queue-item-summary.editing { background:var(--bg); border:1px solid var(--amber); outline:none; cursor:text; white-space:pre-wrap; }
  .queue-item-summary.editing:hover { background:var(--bg); }
  .queue-item-meta { font-size:11px; color:var(--text-muted); margin-bottom:8px; }
  .queue-item-full {
    font-size:12px; color:var(--text); line-height:1.5;
    display:none; background:white; border:1px solid var(--border-light);
    border-radius:var(--radius-sm); padding:8px 10px; margin-bottom:8px;
  }
  .queue-item-full.expanded { display:block; }
  .queue-item-expand { font-size:11px; color:var(--accent); cursor:pointer; background:none; border:none; padding:0; font-family:inherit; margin-bottom:8px; }
  .queue-item-expand:hover { text-decoration:underline; }

  .queue-item-assignee-row { display:flex; gap:8px; margin-bottom:8px; align-items:center; }
  .queue-item-assignee-row label { font-size:11px; color:var(--text-muted); font-weight:500; white-space:nowrap; }
  .queue-item-assignee-row select,
  .queue-item-assignee-row input[type=date] {
    font-size:12px; border:1px solid var(--border); border-radius:var(--radius-sm);
    padding:4px 8px; font-family:inherit; flex:1;
  }

  .queue-item-actions { display:flex; gap:8px; flex-wrap:wrap; }
  .btn-accept {
    padding:6px 14px; background:#15803d; color:white; border:none;
    border-radius:var(--radius-sm); font-size:12px; font-weight:600;
    cursor:pointer; font-family:inherit; transition:background .15s;
  }
  .btn-accept:hover { background:#166534; }
  .btn-accept:disabled { opacity:.5; cursor:wait; }
  .btn-decline {
    padding:6px 14px; background:white; color:var(--red); border:1px solid var(--red);
    border-radius:var(--radius-sm); font-size:12px; font-weight:600;
    cursor:pointer; font-family:inherit; transition:background .15s;
  }
  .btn-decline:hover { background:var(--red-bg); }
  .btn-decline:disabled { opacity:.5; cursor:wait; }
  .queue-action-hint { font-size:10px; color:var(--text-muted); margin-top:4px; line-height:1.4; opacity:.65; }

  .queue-empty { text-align:center; padding:40px 20px; color:var(--text-muted); font-size:13px; }

  /* ========== SYNTHESIS PANEL ========== */
  .synth-toggle {
    position:fixed; bottom:76px; right:24px;
    background:#0d2240; color:white; border:none;
    padding:10px 18px; border-radius:100px; font-size:13px; font-weight:600;
    cursor:pointer; box-shadow:0 4px 16px rgba(0,0,0,.25);
    font-family:inherit; z-index:400; transition:background .15s;
  }
  .synth-toggle:hover { background:#1a3a5f; }

  .synth-panel {
    position:fixed; top:0; right:0; bottom:0; width:360px; max-width:100vw;
    background:white; box-shadow:-4px 0 20px rgba(0,0,0,.1);
    display:flex; flex-direction:column; z-index:420;
    transform:translateX(360px); transition:transform .25s ease;
  }
  .synth-panel.open { transform:translateX(0); }

  .synth-header {
    background:#0d2240; color:white; padding:0 18px;
    height:58px; display:flex; align-items:center; justify-content:space-between;
    font-weight:600; font-size:14px; flex-shrink:0;
  }
  .synth-close { background:none; border:none; color:rgba(255,255,255,.7); cursor:pointer; font-size:18px; padding:0; line-height:1; }
  .synth-close:hover { color:white; }

  .synth-body { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; }
  .synth-body label { font-size:12px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.4px; display:block; margin-bottom:4px; }
  .synth-body textarea {
    width:100%; padding:10px 12px; border:1.5px solid var(--border); border-radius:var(--radius);
    font-size:13px; font-family:inherit; resize:vertical; outline:none; line-height:1.5; min-height:140px;
  }
  .synth-body textarea:focus { border-color:var(--accent); }
  .synth-body select {
    width:100%; padding:8px 10px; border:1.5px solid var(--border); border-radius:var(--radius);
    font-size:13px; font-family:inherit; outline:none;
  }
  .synth-body select:focus { border-color:var(--accent); }
  .synth-submit {
    padding:10px 20px; background:#15803d; color:white; border:none;
    border-radius:var(--radius); font-size:14px; font-weight:600;
    cursor:pointer; font-family:inherit; transition:background .15s; width:100%;
  }
  .synth-submit:hover { background:#166534; }
  .synth-submit:disabled { opacity:.5; cursor:wait; }

  .synth-result {
    background:#f0fdf4; border:1px solid #86efac; border-radius:var(--radius);
    padding:14px; font-size:13px; display:none;
  }
  .synth-result.show { display:block; }
  .synth-result-title { font-weight:700; color:#15803d; margin-bottom:8px; }
  .synth-result-item { padding:4px 0; border-bottom:1px solid #dcfce7; font-size:12px; color:var(--text); }
  .synth-result-item:last-child { border-bottom:none; }
  .synth-view-queue {
    margin-top:10px; padding:8px 16px; background:white; color:#15803d;
    border:1px solid #15803d; border-radius:var(--radius-sm); font-size:12px;
    font-weight:600; cursor:pointer; font-family:inherit; width:100%;
  }
  .synth-view-queue:hover { background:#f0fdf4; }

  .synth-spinner { text-align:center; padding:20px; color:var(--text-muted); font-size:13px; display:none; }
  .synth-spinner.show { display:block; }

  /* ── Upcoming Launches Top Bar ── */
  .launches-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }
  .launch-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: box-shadow .15s;
  }
  .launch-card:hover { box-shadow: var(--shadow-md); }
  .launch-card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--c-launch);
  }
  .launch-card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--c-launch);
    margin-bottom: 4px;
  }
  .launch-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .launch-card-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
  }
  .launch-card-revenue {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
  }
  .launch-card-rev-label {
    font-size: 10px;
    color: var(--text-muted);
  }
  .launch-card-line-tag {
    position: absolute;
    top: 12px; right: 12px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent);
  }
  /* ── Launch date marker on gantt row ── */
  .gantt-launch-flag {
    position: absolute;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--c-launch);
    z-index: 10;
  }
  .gantt-launch-flag::after {
    content: '🚀';
    position: absolute;
    top: -2px;
    left: -8px;
    font-size: 11px;
    line-height: 1;
  }
  /* ── Milestone list in group detail ── */
  .ms-list { list-style: none; padding: 0; margin: 0; }
  .ms-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text);
  }
  .ms-item:last-child { border-bottom: none; }
  .ms-item-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .ms-item-name { flex: 1; }
  .ms-key-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    background: #fef3c7;
    color: #92400e;
    letter-spacing: .3px;
    white-space: nowrap;
  }
  .ms-item-gate {
    border-left: 3px solid #ef4444;
    background: #fef2f2;
    padding-left: 10px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 4px;
  }
  .ms-item-key {
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
    padding-left: 10px;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 4px;
  }
  .ms-item-regular {
    padding-left: 13px;
  }
  .ms-gate-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    background: #fdecea;
    color: var(--red);
    letter-spacing: .3px;
  }
  /* ── Dept columns in group page ── */
  .dept-milestones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
  }
  @media (max-width: 900px) {
    .dept-milestones-grid { grid-template-columns: repeat(2, 1fr); }
    .launches-bar { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .dept-milestones-grid { grid-template-columns: 1fr; }
    .launches-bar { grid-template-columns: 1fr; }
  }
  .dept-col {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
  }
  .dept-col-header {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
  }
  .dept-col-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  }

  /* ========== BRAND CATALOG ========== */
  .brand-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 12px;
  }
  @media(max-width:1200px){ .brand-cards-grid { grid-template-columns: repeat(3,1fr); } }
  @media(max-width:700px){ .brand-cards-grid { grid-template-columns: repeat(2,1fr); } }

  .brand-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .15s, transform .12s;
    box-shadow: var(--shadow);
    position: relative;
  }
  .brand-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .brand-card-accent { height: 4px; }
  .brand-card-body { padding: 14px 14px 12px; }
  .brand-card-name {
    font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text);
  }
  .brand-card-stats {
    display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px;
  }
  .brand-card-stat {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: var(--text-muted);
  }
  .brand-card-stat-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  }
  .brand-card-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 8px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .brand-card-revenue {
    font-size: 12px; font-weight: 700; color: var(--accent);
  }
  .brand-card-cta {
    font-size: 11px; color: var(--text-muted); font-weight: 500;
  }
  .brand-card-ideation {
    font-size: 10px; color: var(--text-light); font-style: italic; margin-top: 4px;
  }

  /* ── View: Brand page ── */
  .brand-page-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  .brand-page-accent { width: 5px; height: 40px; border-radius: 3px; flex-shrink: 0; }
  .brand-page-title { font-size: 22px; font-weight: 800; color: var(--text); }
  .brand-page-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

  .brand-lines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  @media(max-width:900px){ .brand-lines-grid { grid-template-columns: repeat(2,1fr); } }
  @media(max-width:600px){ .brand-lines-grid { grid-template-columns: 1fr; } }

  .brand-line-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: box-shadow .15s, transform .12s;
    box-shadow: var(--shadow);
    border-left: 3px solid var(--border);
  }
  .brand-line-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
  .brand-line-card-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
  .brand-line-card-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
  .brand-line-card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
  .brand-line-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 8px; border-top: 1px solid var(--border-light);
    font-size: 11px; color: var(--text-muted);
  }

  /* ── Product status badges ── */
  .ps-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 600;
    padding: 2px 7px; border-radius: 10px;
    white-space: nowrap;
  }
  .ps-active    { background: #dcfce7; color: #15803d; }
  .ps-in-pipeline { background: #dbeafe; color: #1d4ed8; }
  .ps-in-development { background: #fef3c7; color: #b45309; }
  .ps-prototype { background: #f3f4f6; color: #6b7280; }
  .ps-inactive  { background: #f1f5f9; color: #94a3b8; }
  .ps-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  }
  .ps-dot-active    { background: #15803d; }
  .ps-dot-pipeline  { background: #1d4ed8; }
  .ps-dot-dev       { background: #b45309; }
  .ps-dot-prototype { background: #9ca3af; }

  /* ── Catalog line product grid ── */
  .catalog-section-group { margin-bottom: 20px; }
  .catalog-section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: var(--text-muted);
    margin-bottom: 8px; padding: 6px 10px;
    background: #e8eaed; border-bottom: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; gap: 8px;
  }
  .catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
  }
  .catalog-product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 12px;
    display: flex; flex-direction: column; gap: 4px;
  }
  .catalog-product-card.clickable { cursor: pointer; }
  .catalog-product-card.clickable:hover { box-shadow: var(--shadow); }
  .catalog-product-name { font-weight: 600; font-size: 12px; color: var(--text); }
  .catalog-product-meta { color: var(--text-muted); font-size: 11px; }
  .catalog-product-flags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }

  /* ── White Label Brands Section (removed – merged into Brands) ── */

  /* ── Line badge header ── */
  .line-badge-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 16px;
    background: #0d2240; border-radius: var(--radius);
    padding: 16px 20px; box-shadow: var(--shadow);
  }
  .line-badge-img { max-height: 56px; max-width: 180px; object-fit: contain; filter: brightness(0) invert(1); }

  /* ── WL brand page header ── */
  .wl-brand-header-logo { max-height: 50px; max-width: 200px; object-fit: contain; }

  /* ── SKU pills on product page ── */
  .sku-sizes-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px 6px; }
  .sku-size-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent-light); color: var(--accent);
    border: 1px solid #c7d9f5; border-radius: 6px;
    padding: 6px 10px; font-size: 12px; font-weight: 600;
    position: relative;
  }
  .sku-size-pill img { width: 24px; height: 24px; object-fit: contain; border-radius: 3px; }
  .sku-region-tag {
    display: block; font-size: 9px; font-weight: 500; color: var(--text-muted);
    margin-top: 2px; text-transform: uppercase; letter-spacing: .3px;
  }

  /* ── Header nav buttons ── */
  .header-nav-btn {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8); border-radius: 6px; padding: 5px 12px;
    font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit;
    transition: background .15s, color .15s;
  }
  .header-nav-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }

  /* ── Activity Log ── */
  .activity-feed { display: flex; flex-direction: column; gap: 0; }
  .activity-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--border-light);
    position: relative;
  }
  .activity-item:last-child { border-bottom: none; }
  .activity-timeline-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
    margin-top: 4px; background: var(--accent);
  }
  .activity-body { flex: 1; min-width: 0; }
  .activity-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
  .activity-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
  .activity-source-badge {
    font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 100px;
    text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
  }
  .badge-synthesis      { background: #e0f2fe; color: #0369a1; }
  .badge-poms-synthesis { background: #ede9fe; color: #6d28d9; }
  .badge-gap-scan       { background: #fef9c3; color: #854d0e; }
  .badge-manual         { background: #dcfce7; color: #15803d; }
  .badge-default        { background: var(--border-light); color: var(--text-muted); }
  .activity-actor { font-size: 11px; font-weight: 600; color: var(--text); }
  .activity-summary { font-size: 13px; color: var(--text); line-height: 1.45; }
  .activity-entity { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
  .activity-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 13px; }
  .activity-load-more { display: block; margin: 16px auto 0; background: none; border: 1px solid var(--border);
    border-radius: 6px; padding: 7px 20px; font-size: 13px; color: var(--accent); cursor: pointer;
    font-family: inherit; transition: background .15s; }
  .activity-load-more:hover { background: var(--accent-light); }

  /* Activity page filters */
  .activity-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
  .activity-filter-select {
    background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
    padding: 6px 10px; font-size: 13px; color: var(--text); font-family: inherit; cursor: pointer;
  }

  /* ========== GROUP PAGE UPGRADES ========== */
  .group-countdown { text-align:right; flex-shrink:0; }
  .group-countdown-days { font-size:36px; font-weight:800; line-height:1; }
  .group-countdown-label { font-size:11px; color:var(--text-muted); }
  .group-countdown-date { font-size:12px; color:var(--text-muted); margin-top:2px; }
  .group-strategy-tags { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
  .strategy-tag { padding:3px 10px; border-radius:100px; font-size:11px; font-weight:500; background:#f0f2f5; color:#4b5563; border:1px solid var(--border); }
  .strategy-tag-blue { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
  .strategy-tag-amber { background:#fffbeb; color:#92400e; border-color:#fde68a; }
  .group-desc-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px 20px; margin-bottom:16px; box-shadow:var(--shadow); }
  .group-desc-label { font-size:10px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.6px; margin-bottom:8px; }
  .group-desc-text { font-size:13px; color:var(--text); line-height:1.6; }
  .blockers-panel { background:#fffbeb; border:1.5px solid #fde68a; border-radius:var(--radius); padding:14px 18px; margin-bottom:16px; }
  .blockers-panel-title { font-size:13px; font-weight:700; color:#92400e; margin-bottom:10px; }
  .blockers-list { list-style:disc; padding-left:18px; }
  .blockers-list li { font-size:12px; color:#78350f; margin-bottom:4px; line-height:1.5; }
  .group-kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; padding:16px 20px; }
  @media(max-width:900px){ .group-kpi-grid { grid-template-columns:repeat(2,1fr); } }
  .group-kpi-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:14px 16px; position:relative; overflow:hidden; }
  .group-kpi-card::before { content:''; position:absolute; top:0;left:0;right:0; height:3px; background:var(--gkpi-color,var(--accent)); }
  .group-kpi-label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--text-muted); margin-bottom:8px; }
  .group-kpi-value { font-size:22px; font-weight:800; color:var(--text); letter-spacing:-0.5px; line-height:1.2; }
  .group-kpi-sub { font-size:11px; color:var(--text-muted); margin-top:4px; }
  .group-kpi-progress { background:#eef1f4; border-radius:100px; height:4px; overflow:hidden; margin-top:8px; }
  .group-kpi-progress-fill { height:100%; border-radius:100px; transition:width .4s; }
  .group-kpi-blocks { font-size:18px; letter-spacing:2px; margin-bottom:2px; }
  .dept-actions-section { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:20px; overflow:hidden; }
  .dept-actions-header { padding:14px 20px; border-bottom:1px solid var(--border-light); font-size:14px; font-weight:700; color:var(--text); display:flex; align-items:center; gap:8px; }
  .dept-actions-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; padding:16px 20px; }
  @media(max-width:900px){ .dept-actions-grid { grid-template-columns:repeat(2,1fr); } }
  @media(max-width:600px){ .dept-actions-grid { grid-template-columns:1fr; } }
  .dept-action-card { background:#fafbfc; border:1px solid var(--border); border-radius:var(--radius); padding:12px 14px; }
  .dept-action-card-header { display:flex; align-items:center; gap:6px; margin-bottom:10px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; }
  .dept-action-task { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; padding:7px 10px; border-radius:6px; margin-bottom:6px; font-size:12px; line-height:1.4; }
  .dept-action-task-gate { background:#fef2f2; border-left:3px solid #ef4444; }
  .dept-action-task-key { background:#fffbeb; border-left:3px solid #f59e0b; }
  .dept-action-task-regular { background:transparent; padding-left:13px; }
  .dept-action-task-name { font-weight:500; flex:1; }
  .dept-action-badge-gate { font-size:9px; font-weight:700; padding:2px 5px; background:#fdecea; color:#c0392b; border-radius:3px; white-space:nowrap; flex-shrink:0; }
  .dept-action-badge-key { font-size:9px; font-weight:700; padding:2px 5px; background:#fef3c7; color:#92400e; border-radius:3px; white-space:nowrap; flex-shrink:0; }
  .dept-action-task-meta { font-size:10px; color:var(--text-muted); margin-top:2px; }
  .resources-bar-section { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:20px; padding:16px 20px; }
  .resources-bar-header { font-size:14px; font-weight:700; color:var(--text); margin-bottom:12px; display:flex; align-items:center; gap:8px; }
  .resources-bar-btns { display:flex; gap:10px; flex-wrap:wrap; }
  .resources-bar-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; background:var(--accent-light); color:var(--accent); border:1px solid #c7d9f5; border-radius:var(--radius); font-size:13px; font-weight:600; text-decoration:none; transition:background .15s; }
  .resources-bar-btn:hover { background:#d4e5fa; }

  /* ========== LINE PAGE UPGRADES ========== */
  .line-logo-square { width:72px; height:72px; border-radius:10px; background:#f0f2f5; display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; }
  .line-logo-square img { max-width:56px; max-height:56px; object-fit:contain; }
  .line-header-body { flex:1; min-width:0; }
  .line-header-title { font-size:22px; font-weight:800; letter-spacing:-0.4px; margin-bottom:4px; }
  .line-header-sub { font-size:13px; color:var(--text-muted); }
  .line-all-live { color:var(--green); font-weight:600; }
  .line-kpi-row { display:flex; flex-wrap:nowrap; gap:12px; margin-bottom:20px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .line-kpi-grid-2col { display:flex; flex-wrap:nowrap; gap:12px; margin-bottom:20px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .line-kpi-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px 20px; box-shadow:var(--shadow); text-align:center; flex:1; min-width:140px; }
  .line-kpi-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--text-muted); margin-bottom:8px; }
  .line-kpi-value { font-size:28px; font-weight:800; letter-spacing:-0.5px; color:var(--accent); }
  .line-kpi-sub { font-size:12px; color:var(--text-muted); margin-top:4px; }
  .product-gallery-section { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:20px; overflow:hidden; }
  .product-gallery-header { padding:14px 20px; border-bottom:1px solid var(--border-light); font-size:14px; font-weight:700; color:var(--text); display:flex; align-items:center; gap:8px; }
  .product-gallery-scroll { display:flex; gap:14px; padding:16px 20px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .product-gallery-card { width:140px; min-width:140px; background:#fafbfc; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; cursor:pointer; transition:box-shadow .15s,transform .12s; flex-shrink:0; }
  .product-gallery-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
  .product-gallery-img { height:110px; background:#e8ecf0; display:flex; align-items:center; justify-content:center; font-size:32px; overflow:hidden; }
  .product-gallery-img img { width:100%; height:100%; object-fit:contain; }
  .product-gallery-info { padding:8px 10px 10px; }
  .product-gallery-name { font-size:12px; font-weight:600; color:var(--text); margin-bottom:3px; line-height:1.3; }
  .product-gallery-skus { font-size:10px; color:var(--text-muted); }

  /* ========== PRODUCT PAGE UPGRADES ========== */
  .product-header-img-wrap { width:220px; min-width:220px; background:#f0f2f5; display:flex; align-items:center; justify-content:center; flex-direction:column; padding:12px; flex-shrink:0; position:relative; border-right:1px solid var(--border-light); }
  .product-header-img-wrap img { max-width:200px; max-height:180px; object-fit:contain; width:100%; height:100%; }
  .product-no-image-badge { font-size:9px; font-weight:600; background:#fef3c7; color:#92400e; padding:2px 6px; border-radius:3px; margin-top:8px; white-space:nowrap; }
  .product-header-body { flex:1; padding:20px 24px; min-width:0; }
  .product-header-name { font-size:24px; font-weight:800; letter-spacing:-0.5px; margin-bottom:8px; }
  .product-header-badges { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
  .product-header-desc { font-size:13px; color:var(--text-muted); line-height:1.6; margin-bottom:14px; max-width:600px; }
  .product-header-stats { display:flex; gap:24px; flex-wrap:wrap; }
  .product-stat-value { font-size:20px; font-weight:800; }
  .product-stat-label { font-size:10px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; margin-top:2px; }
  .status-badges-row { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-bottom:16px; }
  @media(max-width:900px){ .status-badges-row { grid-template-columns:repeat(3,1fr); } }
  @media(max-width:600px){ .status-badges-row { grid-template-columns:repeat(2,1fr); } }
  .status-badge-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:12px 14px; box-shadow:var(--shadow); }
  .status-badge-label { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--text-muted); margin-bottom:6px; }
  .status-badge-value { font-size:12px; font-weight:600; line-height:1.4; }
  .sbv-ok { color:var(--green); }
  .sbv-warn { color:var(--amber); }
  .sbv-miss { color:var(--red); }
  .sbv-info { color:#1d4ed8; font-weight:600; }
  .rev-metrics-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px; }
  @media(max-width:900px){ .rev-metrics-row { grid-template-columns:repeat(2,1fr); } }
  .rev-metric-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px 18px; box-shadow:var(--shadow); }
  .rev-metric-label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--text-muted); margin-bottom:6px; }
  .rev-metric-value { font-size:22px; font-weight:800; letter-spacing:-0.5px; }
  .rev-metric-sub { font-size:11px; color:var(--text-muted); margin-top:3px; }
  .market-bars-section { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px 20px; box-shadow:var(--shadow); margin-bottom:16px; overflow:hidden; }
  .market-bars-title { font-size:14px; font-weight:700; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
  .market-bar-row { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
  .market-bar-label { width:110px; font-size:12px; color:var(--text); flex-shrink:0; }
  .market-bar-track { flex:1; background:#eef1f4; border-radius:100px; height:10px; overflow:hidden; }
  .market-bar-fill { height:100%; border-radius:100px; background:#5b6cf8; transition:width .4s; }
  .market-bar-pct { width:40px; text-align:right; font-size:12px; font-weight:600; flex-shrink:0; }
  .market-bar-amount { width:55px; text-align:right; font-size:11px; color:var(--text-muted); flex-shrink:0; }
  .data-gaps-panel { background:#fff8f8; border:1.5px solid #fecaca; border-radius:var(--radius); padding:14px 18px; margin-bottom:16px; }
  .data-gaps-title { font-size:13px; font-weight:700; color:#c0392b; margin-bottom:10px; }
  .data-gaps-list { list-style:disc; padding-left:18px; }
  .data-gaps-list li { font-size:12px; color:#7f1d1d; margin-bottom:3px; }
  .monthly-trend-section { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px 20px; box-shadow:var(--shadow); margin-bottom:16px; }
  .monthly-trend-title { font-size:14px; font-weight:700; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
  .monthly-trend-chart { display:flex; gap:6px; align-items:flex-end; background:#f0f5ff; border-radius:var(--radius); padding:16px 12px 0; height:160px; }
  .monthly-bar-col { display:flex; flex-direction:column; align-items:center; flex:1; height:100%; justify-content:flex-end; }
  .monthly-bar-fill { background:#5b6cf8; border-radius:3px 3px 0 0; width:80%; min-height:4px; }
  .monthly-bar-label { font-size:10px; color:var(--text-muted); margin-top:6px; padding-bottom:8px; white-space:nowrap; }
  .rma-section { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px 20px; box-shadow:var(--shadow); margin-bottom:16px; }
  .rma-title { font-size:14px; font-weight:700; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
  .rma-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--border-light); font-size:13px; }
  .rma-row:last-child { border-bottom:none; }
  .rma-value { font-weight:700; }

  /* ========== DRAG-AND-DROP IMAGE UPLOAD ========== */
  .drop-zone { position:relative; }
  .drop-zone.drag-over { outline:2px dashed #1e6bb8; outline-offset:2px; border-radius:var(--radius); }
  .drop-overlay { display:none; position:absolute; inset:0; background:rgba(30,107,184,0.12); border-radius:inherit; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:#1e6bb8; pointer-events:none; z-index:10; }
  .drop-zone.drag-over .drop-overlay { display:flex; }
  .drop-spinner { width:18px; height:18px; border:2px solid #e2e6ea; border-top-color:#1e6bb8; border-radius:50%; animation:spin .6s linear infinite; }
  @keyframes spin { to { transform:rotate(360deg); } }
  .upload-toast { position:fixed; bottom:24px; right:24px; padding:10px 18px; border-radius:8px; font-size:13px; font-weight:600; z-index:9999; box-shadow:0 4px 16px rgba(0,0,0,0.15); animation:fadeIn .2s ease; }
  .upload-toast.success { background:#dcfce7; color:#15803d; border:1px solid #bbf7d0; }
  .upload-toast.error { background:#fdecea; color:#c0392b; border:1px solid #fecaca; }
  @keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

  /* ===== MEETING OPERATING SYSTEM ===== */
  .meeting-start-btn { background:#5b64f5 !important; color:white !important; border:none; font-weight:600; }
  .meeting-start-btn:hover { background:#4a53e0 !important; }
  .mos-modal { background:#1a1d2e; border:1px solid #2d3154; border-radius:14px; padding:28px; width:520px; max-width:95vw; }
  .mos-modal-title { font-size:18px; font-weight:700; margin-bottom:20px; }
  .mos-meeting-types { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:20px; }
  .mos-meeting-type { background:#252840; border:2px solid #2d3154; border-radius:10px; padding:16px; cursor:pointer; transition:all 0.15s; }
  .mos-meeting-type:hover { border-color:#5b64f5; }
  .mos-meeting-type.mos-selected { border-color:#5b64f5; background:#1e2356; }
  .mos-mtype-name { font-size:14px; font-weight:700; margin-bottom:4px; color:#e2e8f0; }
  .mos-mtype-desc { font-size:11px; color:#64748b; line-height:1.4; }
  .mos-mtype-day { font-size:11px; color:#5b64f5; font-weight:600; margin-top:6px; }
  .mos-field-row { display:flex; gap:12px; margin-bottom:16px; align-items:center; }
  .mos-field-label { font-size:12px; color:#64748b; width:80px; flex-shrink:0; }
  .mos-field-input { background:#252840; border:1px solid #2d3154; border-radius:7px; padding:7px 12px; color:#e2e8f0; font-size:13px; flex:1; }
  .mos-attendee-chips { display:flex; flex-wrap:wrap; gap:6px; flex:1; }
  .mos-chip { background:#252840; border:1px solid #2d3154; border-radius:20px; padding:4px 10px; font-size:12px; color:#cbd5e1; display:flex; align-items:center; gap:5px; }
  .mos-chip-x { color:#475569; cursor:pointer; font-size:10px; }
  .mos-chip-x:hover { color:#ef4444; }
  .mos-chip-add { background:transparent; border:1px dashed #3d4468; color:#64748b; cursor:pointer; }
  .mos-modal-footer { display:flex; gap:10px; justify-content:flex-end; margin-top:20px; }
  .mos-btn-cancel { background:transparent; border:1px solid #2d3154; color:#64748b; padding:8px 16px; border-radius:7px; cursor:pointer; font-size:13px; }
  .mos-btn-primary { background:#5b64f5; color:white; border:none; padding:8px 20px; border-radius:7px; font-weight:600; cursor:pointer; font-size:13px; }
  .mos-btn-secondary { background:#252840; border:1px solid #2d3154; color:#cbd5e1; padding:7px 14px; border-radius:7px; font-size:13px; cursor:pointer; }
  .mos-btn-ready { background:#10b981; color:white; border:none; padding:7px 16px; border-radius:7px; font-weight:600; font-size:13px; cursor:pointer; }
  .mos-review-header { background:#1a1d2e; border-bottom:1px solid #2d3154; padding:14px 24px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
  .mos-review-title { font-size:16px; font-weight:700; }
  .mos-review-meta { font-size:12px; color:#64748b; }
  .mos-review-actions { margin-left:auto; display:flex; gap:8px; }
  .mos-review-body { padding:20px 24px; display:flex; flex-direction:column; gap:16px; max-height:calc(100vh - 140px); overflow-y:auto; }
  .mos-group-card { background:#1a1d2e; border:1px solid #2d3154; border-radius:10px; overflow:hidden; }
  .mos-group-card-header { padding:12px 16px; display:flex; align-items:center; gap:12px; background:#1e2235; border-bottom:1px solid #2d3154; }
  .mos-group-name { font-weight:700; font-size:14px; }
  .mos-group-launch { font-size:12px; color:#64748b; }
  .mos-badge { font-size:11px; font-weight:600; padding:2px 8px; border-radius:20px; }
  .mos-badge-launched { background:#1e3a2f; color:#34d399; }
  .mos-badge-today { background:#3b1a1a; color:#f87171; }
  .mos-badge-urgent { background:#3b2a0a; color:#fbbf24; }
  .mos-badge-normal { background:#1e2a3b; color:#60a5fa; }
  .mos-badge-risk { background:#3b1a1a; color:#f87171; }
  .mos-group-card-items { padding:12px 16px; display:flex; flex-direction:column; gap:10px; }
  .mos-agenda-item { display:flex; flex-direction:column; gap:4px; }
  .mos-agenda-items { display:flex; flex-direction:column; gap:8px; }
  .mos-item-header { display:flex; align-items:center; gap:8px; }
  .mos-item-tag { font-size:10px; font-weight:600; padding:2px 7px; border-radius:4px; flex-shrink:0; }
  .mos-tag-carry { background:#1e2a3b; color:#60a5fa; }
  .mos-tag-pro { background:#251e3b; color:#a78bfa; }
  .mos-tag-new { background:#1e3a2f; color:#34d399; }
  .mos-tag-airtable { background:#3b2a0a; color:#fbbf24; }
  .mos-item-check { width:16px; height:16px; accent-color:#5b64f5; cursor:pointer; flex-shrink:0; }
  .mos-item-text { font-size:13px; color:#cbd5e1; flex:1; }
  .mos-item-text-input { background:transparent; border:none; outline:none; color:#cbd5e1; font-size:13px; font-family:inherit; flex:1; cursor:text; min-width:0; }
  .mos-item-text-input:focus { color:#e2e8f0; border-bottom:1px solid #5b64f5; }
  .mos-item-note-row { display:flex; align-items:center; gap:8px; padding-left:24px; }
  .mos-item-note { background:#252840; border:1px solid #2d3154; border-radius:6px; padding:5px 10px; color:#94a3b8; font-size:12px; flex:1; font-family:inherit; resize:none; height:30px; transition:border-color 0.15s, height 0.15s; }
  .mos-item-note:focus { outline:none; border-color:#5b64f5; height:50px; color:#e2e8f0; }
  .mos-item-note::placeholder { color:#475569; }
  .mos-item-img-btn, .mos-item-at-btn { background:none; border:1px solid #2d3154; border-radius:6px; color:#475569; padding:4px 8px; cursor:pointer; font-size:12px; transition:all 0.15s; }
  .mos-item-img-btn:hover, .mos-item-at-btn:hover { border-color:#5b64f5; color:#5b64f5; }
  .mos-add-item-btn { background:none; border:1px dashed #2d3154; border-radius:7px; color:#475569; padding:7px 12px; cursor:pointer; font-size:12px; text-align:left; transition:all 0.15s; }
  .mos-add-item-btn:hover { border-color:#5b64f5; color:#5b64f5; }
  .mos-complete-group-btn { background:#10b981; color:white; border:none; padding:9px 20px; border-radius:7px; font-weight:700; font-size:13px; cursor:pointer; align-self:flex-end; margin-top:8px; }
  .mos-meeting-nav { background:#1a1d2e; border-bottom:1px solid #2d3154; padding:10px 24px; display:flex; align-items:center; }
  .mos-nav-prev, .mos-nav-next { background:#252840; border:1px solid #2d3154; color:#94a3b8; padding:6px 14px; border-radius:7px; cursor:pointer; font-size:12px; transition:all 0.15s; white-space:nowrap; }
  .mos-nav-prev:hover, .mos-nav-next:hover { border-color:#5b64f5; color:#e2e8f0; }
  .mos-meeting-progress { flex:1; text-align:center; }
  .mos-progress-label { font-size:12px; color:#64748b; margin-bottom:4px; }
  .mos-progress-bar { background:#252840; border-radius:4px; height:4px; width:200px; margin:0 auto; }
  .mos-progress-fill { background:#5b64f5; height:100%; border-radius:4px; transition:width 0.3s; }
  .mos-meeting-body { display:flex; height:calc(100vh - 112px); }
  .mos-meeting-main { flex:1; overflow-y:auto; padding:20px 24px; }
  .mos-group-hero { margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid #2d3154; }
  .mos-hero-title { font-size:22px; font-weight:800; letter-spacing:-0.5px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
  .mos-hero-products { font-size:12px; color:#64748b; margin-top:4px; }
  .mos-hero-meta { display:flex; gap:16px; margin-top:8px; flex-wrap:wrap; }
  .mos-hero-stat { font-size:12px; }
  .mos-hero-stat span { color:#64748b; }
  .mos-asana-panel { width:280px; flex-shrink:0; background:#1a1d2e; border-left:1px solid #2d3154; display:flex; flex-direction:column; }
  .mos-asana-header { padding:12px 16px; border-bottom:1px solid #2d3154; font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:space-between; }
  .mos-asana-stage { font-size:11px; color:#64748b; font-weight:400; }
  .mos-asana-tasks { flex:1; overflow-y:auto; padding:10px 14px; display:flex; flex-direction:column; gap:6px; }
  .mos-asana-task { display:flex; align-items:flex-start; gap:8px; padding:7px 0; border-bottom:1px solid #1e2235; }
  .mos-asana-task:last-child { border-bottom:none; }
  .mos-asana-task-check { margin-top:2px; accent-color:#5b64f5; cursor:pointer; }
  .mos-asana-task-name { font-size:12px; color:#cbd5e1; line-height:1.3; }
  .mos-asana-task-name.mos-task-done { text-decoration:line-through; color:#475569; }
  .mos-asana-task-meta { font-size:11px; color:#475569; margin-top:2px; }
  .mos-due-today { color:#f87171 !important; }
  .mos-asana-add { padding:12px 14px; border-top:1px solid #2d3154; }
  .mos-asana-add-title { font-size:11px; color:#64748b; margin-bottom:8px; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; }
  .mos-asana-field { background:#252840; border:1px solid #2d3154; border-radius:6px; padding:5px 8px; color:#e2e8f0; font-size:12px; width:100%; font-family:inherit; margin-bottom:6px; box-sizing:border-box; }
  .mos-asana-field:focus { outline:none; border-color:#5b64f5; }
  .mos-asana-stage-select { background:#252840; border:1px solid #2d3154; border-radius:6px; padding:5px 8px; color:#94a3b8; font-size:11px; width:100%; font-family:inherit; margin-bottom:6px; }
  .mos-btn-asana-add { background:#5b64f5; color:white; border:none; padding:6px 12px; border-radius:6px; font-size:12px; font-weight:600; cursor:pointer; width:100%; }
  .mos-review-section { margin-bottom:20px; }
  .mos-review-section-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.8px; color:#64748b; margin-bottom:10px; padding-bottom:6px; border-bottom:1px solid #2d3154; }
  .mos-review-item { background:#1a1d2e; border:1px solid #2d3154; border-radius:8px; padding:12px 14px; margin-bottom:8px; }
  .mos-review-item-text { font-size:13px; color:#e2e8f0; margin-bottom:6px; }
  .mos-review-item-dest { font-size:11px; color:#64748b; }
  .mos-review-item-actions { display:flex; gap:6px; margin-top:8px; }
  .mos-btn-xs { font-size:11px; padding:3px 10px; border-radius:5px; cursor:pointer; border:1px solid #2d3154; background:#252840; color:#94a3b8; }
  .mos-btn-xs:hover { border-color:#5b64f5; color:#5b64f5; }
  .mos-btn-xs-skip { border-color:#3b1a1a !important; color:#f87171 !important; }
  .mos-flag-item { background:#1a1d2e; border:1px solid #fbbf24; border-left:3px solid #fbbf24; border-radius:8px; padding:12px 14px; margin-bottom:8px; }
  .mos-flag-text { font-size:13px; color:#fbbf24; margin-bottom:8px; }
  .mos-flag-classify { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
  .mos-classify-label { font-size:11px; color:#64748b; }
  .mos-btn-classify { font-size:11px; padding:4px 10px; border-radius:5px; cursor:pointer; border:1px solid #2d3154; background:#252840; color:#94a3b8; transition:all 0.15s; }
  .mos-btn-classify:hover { background:#5b64f5; border-color:#5b64f5; color:white; }
  .mos-bridge-item { font-size:12px; color:#94a3b8; padding:6px 0; border-bottom:1px solid #1e2235; }
  .mos-bridge-item:last-child { border-bottom:none; }
  .mos-meeting-row { background:#1a1d2e; border:1px solid #2d3154; border-radius:8px; padding:14px 16px; margin-bottom:8px; display:flex; align-items:center; gap:16px; cursor:pointer; transition:border-color 0.15s; flex-wrap:wrap; }
  .mos-meeting-row:hover { border-color:#5b64f5; }
  .mos-meeting-row-date { font-weight:700; font-size:14px; width:120px; flex-shrink:0; }
  .mos-meeting-row-meta { flex:1; display:flex; gap:16px; flex-wrap:wrap; }
  .mos-meeting-row-stat { font-size:12px; color:#64748b; }
  .mos-meeting-row-leader { font-size:12px; color:#64748b; }
  .mos-transcript-badge { font-size:11px; background:#1e2a3b; color:#60a5fa; padding:2px 8px; border-radius:4px; }
  .mos-meeting-row-arrow { color:#2d3154; font-size:16px; }
  .mos-mtab { padding:7px 16px; border-radius:7px; cursor:pointer; font-size:13px; color:#64748b; border:1px solid transparent; transition:all 0.15s; }
  .mos-mtab.active { background:#252840; color:#e2e8f0; border-color:#2d3154; }
  /* ===== END MEETING OS ===== */

/* ── Header + page compat for router/pages introduced after v2 snapshot ── */
/* ── Header nav for modular router (a tags behave like v2 header-nav-btn buttons) ── */
.header-nav-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

a.header-nav-btn {
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
}

a.header-nav-btn.is-active,
a.header-nav-btn:focus {
  background: rgba(255,255,255,0.22) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.4) !important;
}

/* ── App shell — no right padding (dev branch had padding-right: 392px for sidebar) ── */
.app-shell {
  min-height: 100vh;
  padding: 0;
}

.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

.page-stack { display:flex; flex-direction:column; gap:16px; }
.stack, .stack-md, .stack-lg { display:flex; flex-direction:column; }
.stack { gap:12px; }
.stack-md { gap:16px; }
.stack-lg { gap:20px; }
.breadcrumbs { display:flex; align-items:center; gap:8px; color:var(--text-muted); font-size:14px; font-weight:600; flex-wrap:wrap; margin-bottom:18px; }
.breadcrumbs a { color:var(--accent-dark); text-decoration:none; font-weight:600; }
.breadcrumbs span { color:var(--text-light); }
.hero-card {
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:22px 24px;
}
.hero-card h2 { margin:6px 0 8px; font-size:30px; line-height:1.1; letter-spacing:-0.03em; color:var(--text); }
.hero-card p { margin:0; color:var(--text-muted); }
.topbar-eyebrow { font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--accent-dark); }
.metrics-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; }
.cards-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.two-col { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.linkish { color:var(--accent-dark); text-decoration:none; font-weight:700; }
.linkish:hover { text-decoration:underline; }
.muted { color:var(--text-muted); }
.resource-hub-card { border:1px solid var(--border); border-radius:16px; padding:16px; background:#fbfbfc; }
.resource-hub-card__meta { margin-bottom:12px; }
.resource-hub-card__title { font-size:16px; font-weight:800; color:var(--text); margin-bottom:4px; }
@media (max-width: 900px) {
  .header { height:auto; min-height:58px; flex-wrap:wrap; gap:12px; }
  .header-nav-row { width:100%; flex-wrap:wrap; }
  .two-col { grid-template-columns:1fr; }
}

/* ── Page module compatibility layer ── */
.panel { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:20px; }
.section-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.tag-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pill, .badge {
  display:inline-flex; align-items:center; gap:6px; min-height:28px; padding:0 10px;
  border-radius:999px; border:1px solid var(--border); background:#f6f7f9; color:var(--text-muted);
  font-size:12px; font-weight:700; line-height:1;
}
.badge.blue { background:#e8f1ff; color:#1d4ed8; border-color:#cfe0ff; }
.badge.green { background:#eaf9ef; color:#15803d; border-color:#c9efd6; }
.badge.gray { background:#f3f4f6; color:#4b5563; border-color:#e5e7eb; }
.badge.purple { background:#f3e8ff; color:#7c3aed; border-color:#e9d5ff; }
.badge.amber { background:#fff7e6; color:#b45309; border-color:#fde68a; }
.btn, .btn-secondary, .error-state__button {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:36px; padding:0 14px; border-radius:10px; border:1px solid transparent;
  font-size:13px; font-weight:700; cursor:pointer; text-decoration:none;
}
.btn { background:#0d2240; color:#fff; }
.btn-secondary, .error-state__button { background:#fff; color:#0d2240; border-color:var(--border); }
.btn-danger { background:#b91c1c; color:#fff; }
.metric-card {
  background:var(--surface); border:1px solid var(--border); border-radius:18px;
  box-shadow:var(--shadow); padding:18px;
}
.metric-card__label { font-size:12px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.08em; }
.metric-card__value { margin-top:10px; font-size:30px; font-weight:800; letter-spacing:-0.04em; color:var(--text); }
.metric-card__sub { margin-top:8px; font-size:13px; color:var(--text-muted); }
.hero-meta, .hero-stats-grid { display:flex; align-items:stretch; gap:12px; flex-wrap:wrap; }
.mini-stat, .stat-box {
  min-width:110px; background:#f8fafc; border:1px solid var(--border); border-radius:14px; padding:12px 14px;
}
.mini-stat-label, .stat-box-label { font-size:11px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.08em; }
.mini-stat-value, .stat-box-value { margin-top:6px; font-size:24px; font-weight:800; color:var(--text); }
.empty-state, .error-state {
  border:1px dashed var(--border); border-radius:16px; background:#fafbfc; padding:18px; color:var(--text-muted);
}
.skeleton-block { background:linear-gradient(90deg,#eef1f4 25%,#f7f8fa 50%,#eef1f4 75%); background-size:200% 100%; border-radius:10px; animation:skeleton-shimmer 1.2s linear infinite; }
@keyframes skeleton-shimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }
.table-wrap { overflow:auto; border:1px solid var(--border); border-radius:16px; }
.data-table { width:100%; border-collapse:collapse; background:#fff; }
.data-table th, .data-table td { padding:12px 14px; border-bottom:1px solid var(--border-light); text-align:left; vertical-align:top; }
.data-table th:first-child, .data-table td:first-child { padding-left:18px; }
.data-table th:last-child,  .data-table td:last-child  { padding-right:18px; }
.data-table th { background:#f8fafc; font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.progress-bar { width:100%; height:10px; background:#e9edf3; border-radius:999px; overflow:hidden; }
.progress-bar span { display:block; height:100%; background:linear-gradient(90deg,#00AE42,#34d399); border-radius:999px; }
.kv-list { display:flex; flex-direction:column; gap:10px; }
.kv-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--border-light); }
.readiness-grid, .item-grid, .product-gallery-grid { display:grid; gap:12px; }
.readiness-row, .item-card {
  display:flex; align-items:center; gap:10px; background:#fbfbfc; border:1px solid var(--border); border-radius:14px; padding:12px 14px;
}
.item-grid { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.product-gallery-grid, .cards-grid { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.product-gallery-card { display:flex; flex-direction:column; background:#fff; border:1px solid var(--border); border-radius:18px; overflow:hidden; text-decoration:none; color:inherit; box-shadow:var(--shadow); }
.product-gallery-card-media { aspect-ratio:1/1; background:#f8fafc; display:grid; place-items:center; }
.product-gallery-card-media img, .table-thumb { width:100%; height:100%; object-fit:cover; display:block; }
.product-gallery-card-body { padding:14px; }
.product-gallery-card-name { font-weight:800; color:var(--text); }
.product-gallery-card-meta { margin-top:6px; font-size:13px; color:var(--text-muted); }
.product-gallery-card-placeholder, .table-thumb--placeholder, .product-hero-image-placeholder { color:var(--text-light); background:#f3f4f6; }
.table-thumb, .table-thumb--placeholder { width:48px; height:48px; border-radius:10px; overflow:hidden; display:grid; place-items:center; }
.attention-scope-card { border-color:#fde68a; background:#fffdf5; }
.attention-pill-row { display:flex; gap:8px; flex-wrap:wrap; }
.attention-pill { display:inline-flex; align-items:center; padding:8px 12px; border-radius:999px; background:#fff7e6; color:#92400e; text-decoration:none; font-weight:700; }
.attention-pill--muted { background:#f3f4f6; color:#6b7280; }
.brand-card { background:#fff; border:1px solid var(--border); border-radius:18px; padding:18px; box-shadow:var(--shadow); }
.brand-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.brand-card-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.brand-hero-image, .brand-hero-image--placeholder { width:220px; height:140px; border-radius:18px; border:1px solid var(--border); background:#f8fafc; object-fit:contain; display:grid; place-items:center; font-weight:800; color:var(--text-light); }
.editable-date { display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.editable-date-icon { opacity:.45; }
.compact-date-input, .form-input, .form-select, .form-textarea {
  width:100%; min-height:38px; padding:8px 10px; border-radius:10px; border:1px solid var(--border); background:#fff; color:var(--text);
}
.veronica-context { display:flex; gap:8px; flex-wrap:wrap; }
.topbar__eyebrow { font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); }
.analytics-chart-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.analytics-filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 12px 0; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 58px; background: var(--bg); z-index: 25;
}
.analytics-filter-bar select {
  padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 13px;
}
.analytics-summary { cursor:pointer; font-weight:800; color:var(--text); list-style:none; }
.analytics-summary::-webkit-details-marker { display:none; }
.analytics-stats-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; margin-bottom:20px; }
.projects-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.project-card { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:18px; box-shadow:var(--shadow); cursor:pointer; }
.project-card:hover { box-shadow:var(--shadow-md); transform:translateY(-1px); }
.project-card__head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.project-card__title { font-size:18px; font-weight:800; color:var(--text); margin-bottom:4px; }
.project-card__meta { display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--text-muted); }
.pricing-block + .pricing-block { margin-top: 18px; }
.pricing-sort { background:none; border:none; padding:0; font:inherit; color:inherit; cursor:pointer; font-weight:700; }
.pricing-cell-flag { background:#fff7e6; }
@media (max-width: 900px) {
  .projects-grid { grid-template-columns:1fr; }
}

/* ── Additional pipeline/meetings compat ── */
.content { padding:28px 24px; max-width:1400px; margin:0 auto; width:100%; }
.filter-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.filter-row input, .filter-row select {
  min-height:40px; padding:0 12px; border-radius:10px; border:1px solid var(--border);
  background:#fff; color:var(--text); min-width:180px;
}
.split-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr); gap:16px; }
.launch-list, .meeting-group-list, .activity-list, .queue-list { display:flex; flex-direction:column; gap:12px; }
.launch-card, .meeting-group-item, .activity-item, .queue-card {
  display:block; width:100%; text-align:left; background:#fff; border:1px solid var(--border);
  border-radius:16px; padding:16px; box-shadow:var(--shadow);
}
.launch-card-head, .activity-item-top, .queue-card-top, .queue-card-actions, .queue-card-meta { display:flex; gap:12px; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; }
.activity-item-summary { margin-top:10px; color:var(--text); line-height:1.55; }
.activity-item-meta { display:flex; gap:10px; flex-wrap:wrap; color:var(--text-muted); font-size:13px; }
.brands-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media(max-width:900px){ .brands-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:580px){ .brands-grid { grid-template-columns:1fr; } }
.meetings-shell { display:grid; grid-template-columns:minmax(280px,360px) minmax(0,1fr); gap:16px; }
.meeting-group-item.is-active { border-color:#0d2240; box-shadow:0 0 0 2px rgba(13,34,64,.08); }
.meeting-note { min-height:180px; width:100%; }
.gantt-table { position:relative; overflow:auto; border:1px solid var(--border); border-radius:16px; background:#fff; }
.gantt-table-axis { position:relative; height:42px; min-width:960px; border-bottom:1px solid var(--border-light); background:#f8fafc; }
.gantt-axis-month { position:absolute; top:10px; transform:translateX(-50%); font-size:11px; color:var(--text-muted); }
.gantt-axis-line { position:absolute; top:0; bottom:0; width:1px; background:#eef2f7; }
.gantt-table-rows { min-width:960px; }
.gantt-row-compact { display:grid; grid-template-columns:360px minmax(0,1fr); gap:14px; padding:12px 14px; border-bottom:1px solid var(--border-light); align-items:center; }
.gantt-row-compact-label { display:flex; gap:10px; align-items:center; min-width:0; }
.gantt-row-compact-arrow { color:var(--text-light); font-size:22px; line-height:1; }
.gantt-row-compact-label-main { min-width:0; }
.gantt-row-compact-name { display:block; font-weight:800; }
.gantt-row-compact-meta { margin-top:4px; color:var(--text-muted); font-size:13px; }
.gantt-row-compact-track { position:relative; height:24px; border-radius:999px; background:#f3f4f6; overflow:hidden; }
.gantt-stage-bar { position:absolute; top:5px; height:14px; border-radius:999px; }
.gantt-stage-bar--ideation { background:#c7d2fe; }
.gantt-stage-bar--development { background:#93c5fd; }
.gantt-stage-bar--production { background:#86efac; }
.gantt-stage-bar--launch { background:#fcd34d; }
.gantt-stage-bar--pending { background:#d1d5db; }
.gantt-today, .gantt-today-line { position:absolute; top:0; bottom:0; width:2px; background:#ef4444; }
.gantt-today span { position:absolute; top:4px; left:6px; font-size:11px; font-weight:700; color:#b91c1c; background:#fff; padding:2px 6px; border-radius:999px; border:1px solid #fecaca; }
.metric-card-label { font-size:12px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.08em; }
.metric-card-value { margin-top:8px; font-size:32px; font-weight:800; color:var(--text); }
.metric-card-sub { margin-top:8px; color:var(--text-muted); font-size:13px; }
.kpi-placeholder { display:inline-block; width:120px; height:28px; border-radius:999px; background:linear-gradient(90deg,#eef1f4 25%,#f7f8fa 50%,#eef1f4 75%); background-size:200% 100%; animation:skeleton-shimmer 1.2s linear infinite; }
.revenue-ready { color:var(--accent); }
.is-loading { color:var(--text-light); }
.mono { font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; }
@media (max-width: 1100px) {
  .split-grid, .meetings-shell, .gantt-row-compact { grid-template-columns:1fr; }
  .gantt-row-compact-track { min-height:24px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PDOS Phase 4 — Activity, Intelligence & Upcoming sections
   All structural colors use CSS variables from :root; only the three new
   badge color classes (.badge.teal, .badge.orange, .badge.green-light) use
   direct hex values to match the existing .badge color pattern.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page stack gap (ensures uniform 18px spacing between all top-level els) */
.page-stack { display: grid; gap: 18px; }

/* ── New badge color classes (match .badge.green / .badge.red etc. pattern) */
.badge.teal        { color: #2dd4bf; background: rgba(45,212,191,0.12); border-color: rgba(45,212,191,0.26); }
.badge.orange      { color: #fb923c; background: rgba(251,146,60,0.12);  border-color: rgba(251,146,60,0.26); }
.badge.green-light { color: #86efac; background: rgba(134,239,172,0.12); border-color: rgba(134,239,172,0.26); }

/* ── Event badge (inline-style from getBadgeStyle, common shape) ──────────── */
.pdos-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── PDOS section shell ──────────────────────────────────────────────────── */
.pdos-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pdos-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.pdos-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.pdos-section-count {
  font-size: 12px;
  color: var(--muted);
  background: rgba(148,163,184,0.1);
  padding: 2px 9px;
  border-radius: 999px;
}
.pdos-section-body { /* children own their padding */ }
.pdos-loading { padding: 20px; color: var(--dim); font-size: 13px; }
.pdos-empty   { padding: 24px 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* ── Action Queue ──────────────────────────────────────────────────────── */
.pdos-queue-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
}
.pdos-queue-row:last-child { border-bottom: none; }
.pdos-queue-text { flex: 1; font-size: 13px; color: var(--text); line-height: 1.4; min-width: 0; }

/* ── Key Decision cards ──────────────────────────────────────────────────── */
.pdos-kd-card {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.pdos-kd-card:last-child { border-bottom: none; }
.pdos-kd-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 10px;
}
.pdos-kd-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Updates rows ──────────────────────────────────────────────────────── */
.pdos-update-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
}
.pdos-update-row:last-child { border-bottom: none; }
.pdos-update-row.is-muted   { opacity: 0.5; font-size: 0.875em; }
.pdos-update-icon { flex-shrink: 0; font-size: 14px; margin-top: 1px; line-height: 1; }
.pdos-update-text { flex: 1; font-size: 13px; color: var(--text); line-height: 1.4; min-width: 0; }
.pdos-update-time { font-size: 11px; color: var(--dim); white-space: nowrap; flex-shrink: 0; margin-top: 1px; }

/* ── Activity log timeline ──────────────────────────────────────────────── */
.pdos-log-entry {
  display: flex;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.pdos-log-entry:last-child { border-bottom: none; }
.pdos-log-entry.is-muted   { opacity: 0.45; }
.pdos-log-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 5px;
}
.pdos-log-body   { flex: 1; min-width: 0; }
.pdos-log-header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 5px; }
.pdos-log-text   { font-size: 13px; color: var(--text); line-height: 1.45; }
.pdos-log-chips  { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }

/* Micro-chips shared across sections */
.pdos-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(96,165,250,0.1);
  color: var(--blue);
  border: 1px solid rgba(96,165,250,0.2);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdos-time-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(148,163,184,0.08);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pdos-actor-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(148,163,184,0.1);
  color: var(--muted);
}

/* ── Intelligence cards ──────────────────────────────────────────────────── */
.pdos-intel-card  { /* padding set inline per context (16px 20px) */ }
.pdos-intel-text  { font-size: 13px; color: var(--text); line-height: 1.65; margin-bottom: 10px; }
.pdos-intel-meta  { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pdos-intel-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pdos-btn-approve {
  padding: 7px 14px;
  font-size: 12px;
  background: rgba(74,222,128,0.14);
  border-color: rgba(74,222,128,0.3);
  color: var(--green);
}
.pdos-reject-form {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.pdos-reject-input {
  flex: 1;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
}
.pdos-reject-input:focus { outline: none; border-color: rgba(96,165,250,0.5); }
.pdos-conf-green { color: var(--green); font-size: 12px; font-weight: 600; }
.pdos-conf-amber { color: var(--amber); font-size: 12px; font-weight: 600; }
.pdos-conf-gray  { color: var(--muted); font-size: 12px; font-weight: 600; }
.pdos-conf-val   { /* color from specific conf class */ }

/* ── Intelligence info banner ──────────────────────────────────────────── */
.pdos-intel-banner {
  padding: 12px 20px;
  font-size: 12px;
  color: var(--blue);
  background: rgba(96,165,250,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.5;
}

/* ── Intelligence tab bar ──────────────────────────────────────────────── */
.intel-tab-row {
  display: flex;
  gap: 2px;
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--border);
}
.intel-tab {
  padding: 7px 18px;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
  position: relative;
  bottom: -1px;
}
.intel-tab.is-active {
  color: var(--text);
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-bottom-color: transparent;
}

/* ── Upcoming cards ──────────────────────────────────────────────────────── */
.pdos-upc-card {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.pdos-upc-card:last-child { border-bottom: none; }
.pdos-upc-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.pdos-upc-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }

/* ── "Show older" load-more button ──────────────────────────────────────── */
.pdos-load-more {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}
.pdos-load-more:hover { background: rgba(148,163,184,0.06); color: var(--text); }

/* ── Activity page tab toggle ──────────────────────────────────────────── */
.pdos-tab-row {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(15,23,42,0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
}
.pdos-tab {
  padding: 8px 20px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pdos-tab.is-active { background: rgba(96,165,250,0.16); color: var(--text); font-weight: 700; }

/* ── PDOS Activity filter row ──────────────────────────────────────────── */
.pdos-activity-filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 140px 140px;
  gap: 10px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pdos-activity-filters { grid-template-columns: 1fr 1fr; }
  .pdos-log-header        { gap: 4px; }
  .pdos-kd-meta, .pdos-intel-meta, .pdos-upc-meta { gap: 5px; }
  .pdos-intel-actions     { gap: 8px; }
  .pdos-reject-form       { flex-direction: column; }
  .pdos-reject-input      { width: 100%; }
}
@media (max-width: 600px) {
  .pdos-activity-filters  { grid-template-columns: 1fr; }
  .pdos-section-header    { flex-direction: column; align-items: flex-start; }
  .pdos-tab               { padding: 8px 14px; font-size: 12px; }
}
