/* ───────────────────────── B. DASHBOARD PAGE (keep) ───────────────────────── */

/* Page scroll model — the content area scrolls as one page; the Awareness caption pins inside it.
   Same :has() pattern Calendar / My Book use to take over #page-content. */
#app-main:has(#view-dashboard.active) { height: 100vh; }
#page-content:has(#view-dashboard.active) {
  padding: 0; min-height: 0; overflow-y: auto; background-image: none;
  background: var(--dash-ground) radial-gradient(720px 260px at 0% 0%, rgba(13,148,136,.09), transparent 70%) no-repeat;
  scrollbar-width: thin; scrollbar-color: #c9d8d4 transparent;
}
#view-dashboard.active { display: flex; flex-direction: column; gap: 20px; padding: 24px 28px 0; background: transparent; min-height: 0; }

/* Skinned internal scrollers (Today body, Awareness bodies) — thumb paints on hover only */
.ck-dash-scroll { scrollbar-width: thin; scrollbar-color: #c9d8d4 transparent; }
.ck-dash-scroll::-webkit-scrollbar { width: 10px; }
.ck-dash-scroll::-webkit-scrollbar-track { background: transparent; }
.ck-dash-scroll::-webkit-scrollbar-thumb { background: transparent; border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }
.ck-dash-scroll:hover::-webkit-scrollbar-thumb { background: #c9d8d4; }

/* Shared card language (My Book / Calendar) */
.ck-dash-card { background: #fff; border: 1px solid var(--card-border); border-radius: 16px; box-shadow: 0 2px 6px rgba(13,60,54,.05); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.ck-dash-card-head { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--hairline-soft); flex-shrink: 0; }
.ck-dash-card-icon { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; background: #e6f5f3; color: var(--accent); }
.ck-dash-card-icon i { font-size: 14px; }
.ck-dash-card-title { color: var(--ink); font-size: 13px; font-weight: 600; }
.ck-dash-card-count { color: var(--ink-4); font-size: 11px; font-variant-numeric: tabular-nums; }
.ck-dash-card-link { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.ck-dash-card-link i { font-size: 13px; }
.ck-dash-caption { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); }

/* ── ZONE 1: greeting + Active Leads | Today ── */
.ck-dash-zone1 { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(400px, 560px); gap: 16px; align-items: stretch; }
.ck-dash-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; position: relative; }
.ck-dash-left-mark { position: absolute; left: -24px; bottom: -40px; width: 220px; height: 220px; opacity: .045; pointer-events: none; }

.ck-dash-greeting { display: flex; align-items: flex-start; padding: 6px 6px 26px; min-width: 0; }
.ck-dash-greeting-inner { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ck-dash-greeting-text { font-size: clamp(32px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.ck-dash-greeting-name { color: var(--accent); }
.ck-dash-greeting-rule { display: flex; align-items: center; gap: 6px; padding-left: 2px; }
.ck-dash-greeting-rule span { height: 3px; border-radius: 2px; width: 6px; background: #d6ece9; }
.ck-dash-greeting-rule span:first-child { width: 28px; background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.ck-dash-greeting-rule span:nth-child(2) { background: #99e3dc; }

.ck-al { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff, #f6fbfa); border: 1px solid var(--card-border); border-radius: 16px; box-shadow: 0 2px 6px rgba(13,60,54,.05); padding: 18px 20px 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.ck-al::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; background: linear-gradient(180deg, #2dd4bf, #0d9488); border-radius: 0 2px 2px 0; }
.ck-al-mark { position: absolute; right: -14px; top: -14px; width: 96px; height: 96px; opacity: .07; pointer-events: none; }
.ck-al-head { display: flex; align-items: center; gap: 8px; }
.ck-al-figure { display: flex; align-items: baseline; gap: 10px; }
.ck-al-num { font-size: 52px; font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ck-al-word { font-size: 14px; color: var(--ink-3); font-weight: 500; }
/* Active Leads states — same card, same footer; only the figure block changes */
.ck-al-state { display: none; } .ck-al[data-state="has"] .ck-al-state.has, .ck-al[data-state="never"] .ck-al-state.never, .ck-al[data-state="zero"] .ck-al-state.zero { display: flex; }
.ck-al-state.never { flex-direction: column; gap: 6px; padding: 4px 0 2px; }
.ck-al-title { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.ck-al-help { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; text-wrap: pretty; max-width: 34ch; }
.ck-al-state.zero { flex-direction: column; gap: 8px; }
.ck-al-state.zero .ck-al-num { color: var(--ink-4); }
.ck-al-foot { border-top: 1px solid #e3ecea; padding-top: 10px; display: flex; position: relative; }
.ck-al-foot .ck-dash-card-link { margin-left: 0; }

/* Today — one vertical timeline; the body is the bounded scroller */
.ck-td-body { flex: 0 0 auto; overflow-y: auto; padding: 8px 8px 12px; height: clamp(360px, calc(100vh - 262px), 440px); }
.ck-td-section { padding: 6px 10px; }
.ck-td-allday { display: flex; align-items: center; gap: 8px; margin: 0 8px 6px; padding: 7px 12px; border-radius: 999px; background: linear-gradient(180deg, #fff, #EEF1F4); box-shadow: inset 0 0 0 1px rgba(100,116,139,.35); }
.ck-td-allday-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; flex-shrink: 0; }
.ck-td-allday-name { font-size: 12px; font-weight: 600; color: var(--ink); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-td-allday-tag { font-size: 9px; font-weight: 800; letter-spacing: .06em; color: var(--ink-3); }
.ck-td-divider { height: 1px; background: var(--hairline-soft); margin: 8px 10px 6px; }
.ck-td-rail { position: relative; }
.ck-td-rail::before { content: ''; position: absolute; left: 83px; top: 6px; bottom: 6px; width: 2px; background: #e2e8f0; border-radius: 1px; }
.ck-td-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; }
.ck-td-time { width: 58px; flex: 0 0 58px; text-align: right; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.ck-td-pipwrap { width: 16px; flex: 0 0 16px; display: flex; justify-content: center; }
.ck-td-pip { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.ck-td-row.pres .ck-td-pip { background: #0d9488; } .ck-td-row.pres .ck-td-tag { color: #0f6e56; }
.ck-td-row.fu   .ck-td-pip { background: #7d76c4; } .ck-td-row.fu   .ck-td-tag { color: #7d76c4; }
.ck-td-row.personal .ck-td-pip { background: #fff; outline: 2px solid #94a3b8; outline-offset: -1px; } .ck-td-row.personal .ck-td-tag { color: #64748b; }
.ck-td-main { flex: 1 1 0; min-width: 96px; }
.ck-td-name { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.ck-td-sub { font-size: 11px; color: var(--ink-5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ck-td-tag { font-weight: 700; letter-spacing: .04em; }
.ck-td-row.is-past .ck-td-name { color: var(--ink-3); } .ck-td-row.is-past .ck-td-time { color: var(--ink-4); } .ck-td-row.is-past .ck-td-tag { color: var(--ink-4); }
.ck-td-row.is-hist .ck-td-name, .ck-td-row.is-hist .ck-td-time, .ck-td-row.is-hist .ck-td-tag { color: var(--ink-5); } .ck-td-row.is-hist .ck-td-pip { background: #cbd5e1; }
/* History states — canceled: dimmed + struck through + quiet "Canceled" note. Rescheduled original: dimmed + "Moved to …" note, NO strike. */
.ck-td-row.is-hist .ck-td-pip { background: #e2e8f0; outline: none; }
.ck-td-row.is-canceled .ck-td-name { text-decoration: line-through; text-decoration-color: #cbd5e1; }
.ck-td-note { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 500; white-space: nowrap; flex-shrink: 0; color: var(--ink-5); }
.ck-td-note i { font-size: 12px; }
/* Same-start overlap: second row leaves the time column blank so both sit under one time marker */
.ck-td-row.is-grouped .ck-td-time { visibility: hidden; }
.ck-td-row.is-now { background: var(--accent-lt); box-shadow: inset 0 0 0 1px rgba(13,148,136,.35); }
.ck-td-chip { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.ck-td-chip.showed { background: #FAEEDA; color: #BA7517; } .ck-td-chip.closed { background: #EAF3DE; color: #3B6D11; }
.ck-td-chip.noshow { background: #FCEBEB; color: #A32D2D; } .ck-td-chip.quiet { background: #F4F4FA; color: #5b53a6; }
.ck-td-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px 32px; }
.ck-td-empty i { font-size: 28px; color: #cbd5e1; } .ck-td-empty-title { font-size: 14px; font-weight: 600; color: #475569; }
.ck-td-empty-help { font-size: 12.5px; color: var(--ink-4); line-height: 1.5; max-width: 30ch; text-wrap: pretty; }
.ck-td-now { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 10px; margin: 2px 0; }
.ck-td-now-time { width: 58px; flex: 0 0 58px; text-align: right; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.ck-td-now-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(13,148,136,.18); }
.ck-td-now-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ck-td-now-line { flex: 1; height: 1px; background: var(--accent); opacity: .5; }

/* ── ZONE 2: Awareness ── the zone is a full page; the caption pins at the top of the content area */
.ck-aw { display: flex; flex-direction: column; min-height: 100vh; }
.ck-aw-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 18px 2px 12px; margin: 0 -4px; }
.ck-aw-head .ck-dash-caption { font-size: 11px; color: var(--ink-3); }
.ck-aw-head-rule { flex: 1; height: 1px; background: #d6dfe7; }
.ck-aw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; align-items: start; padding-bottom: 24px; }
/* Each child grows to its OWN content and caps at the workspace height; overflow scrolls inside that child only */
.ck-aw-card { max-height: calc(100vh - 80px); }
.ck-aw-body { flex: 1 1 auto; min-height: 160px; overflow-y: auto; }
.ck-aw-row { display: flex; align-items: center; gap: 11px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--hairline-soft); color: inherit; text-decoration: none; }
.ck-aw-row:hover { background: #f8fafc; }
.ck-aw-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: #f1f5f9; color: #64748b; }
.ck-aw-icon i { font-size: 14px; }
/* The only warm tone in Awareness: explicit, agent-logged Policy Attention */
.ck-aw-row.tone-attention .ck-aw-icon { background: #FAEEDA; color: #BA7517; } .ck-aw-row.tone-attention .ck-aw-kind-label { color: #b45309; }
.ck-aw-kind-label { font-weight: 600; color: var(--ink-3); }
.ck-aw-title-row { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.ck-aw-status { font-size: 10.5px; color: var(--ink-4); white-space: nowrap; flex-shrink: 0; }          /* current Lead status / No show / Missed */
.ck-aw-stage { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: var(--ink-4); white-space: nowrap; flex-shrink: 0; }  /* Policy stage */
.ck-aw-origin { display: inline-flex; align-items: center; align-self: center; height: 16px; padding: 0 6px; border-radius: 999px; background: #F4F4FA; color: #5b53a6; font-size: 9.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; flex-shrink: 0; }  /* Referral / Beneficiary */
.ck-aw-clear { width: 24px; height: 24px; flex: 0 0 24px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: #cbd5e1; cursor: pointer; font-size: 14px; }
.ck-aw-clear:hover { background: #f1f5f9; color: var(--ink-3); }
.ck-aw-chevron { font-size: 14px; color: #cbd5e1; flex-shrink: 0; }
.ck-aw-foot { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--hairline-soft); flex-shrink: 0; min-height: 38px; }
.ck-aw-foot .ck-dash-card-link { margin-left: 0; }
.ck-aw-clearall { margin-left: auto; border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 500; color: var(--ink-4); cursor: pointer; padding: 3px 6px; border-radius: 6px; }
.ck-aw-clearall:hover { color: var(--ink-3); background: #f1f5f9; }
.ck-aw-confirm-text { flex: 1; min-width: 0; font-size: 11.5px; color: #475569; line-height: 1.4; }
.ck-aw-keep { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; padding: 3px 6px; border-radius: 6px; } .ck-aw-keep:hover { background: #f1f5f9; }
.ck-aw-confirm { border: 0; background: #e6f5f3; font: inherit; font-size: 12px; font-weight: 600; color: var(--accent-dk); cursor: pointer; padding: 3px 9px; border-radius: 6px; } .ck-aw-confirm:hover { background: #d3eeea; }
/* Awareness helper — repo ck-info-help primitive (main.css) in My Book's white variant, dropping below the sticky caption */
.ck-aw-help { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; flex: 0 0 14px; color: var(--ink-4); cursor: help; }
.ck-aw-help:hover { color: var(--accent); }
.ck-aw-help .ck-info-help__icon { font-size: 12px; }
.ck-aw-help .ck-info-help__tip { top: calc(100% + 8px); left: 0; right: auto; bottom: auto; transform: none; width: min(300px, calc(100vw - 32px)); background: #fff; color: #334155; border: 1px solid var(--card-border); box-shadow: 0 8px 24px rgba(15,23,42,.14); }
.ck-aw-main { flex: 1; min-width: 0; }
.ck-aw-title { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-aw-kind { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-aw-when { font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.ck-aw-empty { height: 100%; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 22px 28px; }
.ck-aw-empty i { font-size: 24px; color: #cbd5e1; margin-bottom: 4px; }
.ck-aw-empty-title { font-size: 13px; font-weight: 600; color: #475569; }
.ck-aw-empty-help { font-size: 12px; color: var(--ink-4); line-height: 1.5; max-width: 30ch; text-wrap: pretty; }

/* Narrow: Zone 1 stacks */
@media (max-width: 1060px) { .ck-dash-zone1 { grid-template-columns: minmax(0, 1fr); } }