/* ===== Executive Dashboard (rich composition) ===== */
.dash2 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: start; }
.dash2 > * { min-width: 0; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-4 { grid-column: span 4; }

/* Greeting header */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-head .greet { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.dash-head .greet b { color: var(--text); }
.dash-head .sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.dash-head .today { font-size: 12px; color: var(--text-3); font-weight: 600; text-align: right; }
.dash-head .today .d { display: block; font-size: 15px; color: var(--text); letter-spacing: -.01em; }

/* KPI delta icon variants reuse .kpi / .delta from app.css */
.kpi__ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; background: var(--surface-2); color: var(--text-2); }

/* ===== Railway pipeline map ===== */
.railmap { background: #0F0F0F; border: 1px solid #000; border-radius: 22px; padding: 26px 26px 22px; position: relative; overflow: hidden; }
.railmap::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 26px 26px; }
.railmap .rm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; position: relative; z-index: 2; }
.railmap .rm-head h3 { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.railmap .rm-head h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.railmap .rm-head .mut { color: #7A7A7A; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.rm-track { display: flex; align-items: flex-start; gap: 0; position: relative; z-index: 2; overflow-x: auto; padding: 6px 2px 4px; }
.rm-station { flex: 1 1 0; min-width: 92px; display: flex; flex-direction: column; align-items: center; position: relative; }
.rm-station .line { position: absolute; top: 13px; left: 50%; right: -50%; height: 3px; background: #333; z-index: 0; }
.rm-station:last-child .line { display: none; }
.rm-station .line.lit { background: linear-gradient(90deg, var(--lime), #333); }
.rm-node { width: 28px; height: 28px; border-radius: 50%; background: #1A1A1A; border: 3px solid #444; display: grid; place-items: center; position: relative; z-index: 1; transition: transform .15s ease, border-color .2s ease; }
.rm-node.active { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(223,255,0,.12); }
.rm-node .pip { width: 7px; height: 7px; border-radius: 50%; background: #555; }
.rm-node.active .pip { background: var(--lime); }
.rm-station:hover .rm-node { transform: scale(1.12); }
.rm-count { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 700; color: #fff; margin-top: 12px; line-height: 1; }
.rm-count.zero { color: #4A4A4A; }
.rm-block { margin-top: 8px; background: var(--railway-orange, #FF7A00); color: #111; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; text-align: center; white-space: nowrap; }
.rm-block.won { background: var(--lime); }
.rm-foot { display: flex; align-items: center; gap: 16px; margin-top: 20px; position: relative; z-index: 2; }
.rm-siding { display: flex; align-items: center; gap: 8px; color: #8A8A8A; font-size: 12px; font-weight: 600; }
.rm-siding .b { color: #fff; font-family: 'JetBrains Mono', monospace; background: #262626; padding: 2px 8px; border-radius: 5px; }
.rm-siding .sq { width: 9px; height: 9px; border-radius: 2px; background: var(--hot); }

/* ===== Top prospects ===== */
.prospects { display: flex; flex-direction: column; gap: 12px; }
.prospect { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.prospect:hover { border-color: var(--border-strong); box-shadow: 0 8px 30px rgba(17,17,17,.06); transform: translateY(-2px); }
.prospect .avatar { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; }
.prospect .pmid { min-width: 0; }
.prospect .pname { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.prospect .pmeta { font-size: 11px; color: var(--text-3); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.prospect .summary { margin-top: 9px; font-size: 12.5px; line-height: 1.5; color: var(--text); background: color-mix(in srgb, var(--accent-soft) 60%, transparent); border-left: 3px solid var(--cold); padding: 8px 12px; border-radius: 8px; }
.prospect .summary.pending { color: var(--text-3); font-style: italic; border-left-color: var(--border-strong); display: flex; align-items: center; gap: 8px; }
.prospect .summary .ai { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cold); display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; }
.prospect .pright { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.score-pill { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; padding: 4px 11px; border-radius: 9px; background: var(--surface-2); color: var(--text); }
.score-pill.hot { background: var(--lime); color: #111; }
.spin { width: 12px; height: 12px; border: 2px solid var(--border-strong); border-top-color: var(--cold); border-radius: 50%; display: inline-block; animation: dashspin .7s linear infinite; }
@keyframes dashspin { to { transform: rotate(360deg); } }

/* ===== Trend line ===== */
.trend-wrap { position: relative; }
.trend-svg { width: 100%; height: 150px; display: block; overflow: visible; }
.trend-legend { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); margin-top: 6px; }

/* ===== Weekly calendar strip ===== */
.calstrip { display: flex; gap: 6px; }
.calday { flex: 1; border: 1px solid var(--border); border-radius: 12px; padding: 10px 4px; text-align: center; cursor: pointer; transition: background-color .18s ease, border-color .18s ease; position: relative; }
.calday:hover { background: var(--surface-2); }
.calday.sel { background: var(--lime); border-color: var(--lime); }
.calday.sel .cw, .calday.sel .cd { color: #111; }
.calday .cw { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; }
.calday .cd { font-size: 17px; font-weight: 700; margin-top: 3px; }
.calday .cdot { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; }
.calday .cdot i { width: 5px; height: 5px; border-radius: 50%; }
.cdot .t { background: var(--warm); } .cdot .v { background: var(--cold); }
.calday.sel .cdot i { outline: 1px solid rgba(17,17,17,.25); }
.agenda { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; max-height: 230px; min-height: 90px; overflow-y: auto; }
.agenda-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--border-strong); cursor: pointer; transition: background-color .15s ease; }
.agenda-item:hover { background: var(--accent-soft); }
.agenda-item.visit { border-left-color: var(--cold); }
.agenda-item.task { border-left-color: var(--warm); }
.agenda-item.overdue { border-left-color: var(--hot); }
.agenda-item .ai-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; background: var(--surface); color: var(--text-2); flex: none; }
.agenda-item .at { font-size: 13px; font-weight: 600; }
.agenda-item .am { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.agenda-item .atime { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===== Activity feed ===== */
.actfeed { display: flex; flex-direction: column; }
.actrow { position: relative; padding: 0 0 18px 26px; }
.actrow::before { content: ''; position: absolute; left: 8px; top: 4px; bottom: -4px; width: 2px; background: var(--border); }
.actrow:last-child::before { display: none; }
.actrow .adot { position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); display: grid; place-items: center; font-size: 6px; }
.actrow.email .adot { border-color: var(--cold); color: var(--cold); }
.actrow.whatsapp .adot { border-color: #25D366; color: #25D366; }
.actrow.call .adot { border-color: var(--warm); color: var(--warm); }
.actrow .atitle { font-size: 13px; font-weight: 600; }
.actrow .abody { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.actrow .ameta { font-size: 11px; color: var(--text-3); margin-top: 3px; }

.card-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.link-more { font-size: 12px; color: var(--text-3); font-weight: 600; cursor: pointer; }
.link-more:hover { color: var(--text); }

@media (max-width: 1100px) {
  .span-8, .span-4 { grid-column: span 12; }
}
