/* ────────────────────────────────────────────────────────────────────────
 * ASCENT — Phase 10 CSS split (2026-08-20, PARALLEL_DEV_PLAN.md).
 *
 * WARNING -- READ BEFORE TOUCHING <link> TAGS IN Ascent_Dashboard.html --
 * This file is one of twelve pieces of what used to be a single 2,142-line
 * <style> block inside Ascent_Dashboard.html. The split is a byte-exact,
 * order-preserving cut -- verified by concatenating all twelve files back
 * together and diffing against the original block (identical, zero bytes
 * different). That means the CSS cascade today is unchanged from before
 * the split, PROVIDED the <link rel="stylesheet"> tags for these files
 * stay in the exact order listed in ARCHITECTURE.md's "File split in
 * Phase 10" section.
 *
 * Several rules across these files reuse the same class name with a
 * different definition in a different file (this was already true inside
 * the single original block -- see this repo's shell-duplicate-and-
 * agent-cards.css for the clearest example). Same-specificity CSS
 * resolves by *source order*: whichever rule loads last wins. Reordering
 * these <link> tags -- alphabetizing them, "cleaning up" the <head>,
 * inserting a new file in the middle -- can silently flip which rule
 * wins, with no error and no obvious symptom beyond something looking
 * subtly wrong on one tab. If you add new CSS, prefer appending a new
 * file at the END of the <link> list over inserting into this sequence.
 * ──────────────────────────────────────────────────────────────────────── */

/* Source: original Ascent_Dashboard.html lines 58-657 (pre-split). */
/* The dashboard shell (.app/.sidebar/.main), tab chrome, cards, stat cards, grid, agent status pills, digest banner, list items, badges, dashboard sections, approval queue, market snapshot/trends widget, leads/listings/market tabs, mobile bottom nav, agent nav sub-items, agent detail header, queue items, checklist, and timeline. Almost all of this is shared UI, with one small Quinn-specific run ("POST CARDS") interleaved inside it -- left in place rather than pulled out, because extracting it would mean reordering it relative to the shared rules immediately before and after it in this same file. */

  /* ── LAYOUT ──────────────────────────────────────────────── */
  .app { display: flex; flex: 1; height: 100vh; overflow: hidden; }

  /* ── SIDEBAR ─────────────────────────────────────────────── */
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar);
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
  }
  .sidebar-logo {
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .logo-mark {
    width: 28px; height: 28px;
    background: var(--coral);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 900; color: white;
    flex-shrink: 0;
  }
  .logo-text { font-size: 14px; font-weight: 800; color: var(--white); letter-spacing: 0.02em; }
  .logo-sub { font-size: 13px; color: #888890; font-weight: 500; }

  .agent-info {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
  }
  .agent-name { font-size: 15px; font-weight: 700; color: var(--white); }
  .agent-brok { font-size: 14px; color: var(--dim); }
  .agent-plan {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--coral);
    background: rgba(232,96,60,0.1);
    border: 1px solid rgba(232,96,60,0.2);
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-block;
  }

  nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
  .nav-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaaaae;
    padding: 0 8px;
    margin: 14px 0 6px;
  }
  .nav-label:first-child { margin-top: 0; }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 7px;
    cursor: pointer;
    color: var(--dim);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    transition: all 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    text-decoration: none;
  }
  .nav-item:hover { background: var(--card); color: var(--text); }
  .nav-item.active { background: rgba(232,96,60,0.12); color: var(--coral); font-weight: 600; }
  .nav-icon { font-size: 17px; flex-shrink: 0; width: 18px; text-align: center; }
  .nav-icon-dt {
    width: 26px; height: 26px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
  }
  .nav-icon-dt.coral { background: #FDE7E2; color: #D85A30; }
  .nav-icon-dt.teal  { background: #EAF7F5; color: #009580; }
  .agent-detail-avatar i { font-size: 26px; color: #fff; }
  .nav-badge {
    margin-left: auto;
    background: var(--coral);
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
  }

  .sidebar-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    color: #aaaaae;
  }
  .status-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    margin-right: 5px;
    box-shadow: 0 0 6px var(--green);
  }

  /* ── MAIN ────────────────────────────────────────────────── */
  .main {
    margin-left: var(--sidebar);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }

  .topbar {
    background: var(--mid);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }
  .topbar-title { font-size: 17px; font-weight: 700; color: var(--white); }
  .topbar-date { font-size: 14px; font-weight: 500; color: var(--dim); margin-left: 12px; }
  .topbar-right { display: flex; align-items: center; gap: 14px; }
  .topbar-user { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 100px; }
  .topbar-user-info { text-align: right; }
  .topbar-user-name { font-size: 14px; font-weight: 700; color: var(--white); line-height: 1.2; }
  .topbar-user-brok { font-size: 13px; color: var(--dim); line-height: 1.2; }
  .topbar-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 13.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: 0.02em; }
  .topbar-btn {
    background: var(--coral);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
  }

  .content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    scrollbar-gutter: stable;
  }

  /* ── TABS ────────────────────────────────────────────────── */
  .tab-pane { display: none; }
  .tab-pane.active { display: block; }

  /* ── CARDS ───────────────────────────────────────────────── */
  .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
  }
  .card-head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .card-title { font-size: 13.5px; font-weight: 700; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; border-left: 3px solid var(--coral); padding-left: 9px; }
  .card-body { padding: 16px; }

  /* ── STAT CARDS ──────────────────────────────────────────── */
  .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
  .stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    border-top: 3px solid var(--border);
  }
  .stat-card:nth-child(1),
  .stat-card:nth-child(2),
  .stat-card:nth-child(3),
  .stat-card:nth-child(4) { border-top-color: var(--coral); }
  .stat-val { font-size: 28px; font-weight: 900; color: var(--white); line-height: 1; margin-bottom: 4px; }
  .stat-label { font-size: 13.5px; color: var(--dim); font-weight: 500; }
  .stat-change { font-size: 13.5px; font-weight: 600; margin-top: 4px; }
  .up { color: var(--green); }
  .down { color: var(--coral); }

  /* ── GRID ────────────────────────────────────────────────── */
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
  .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }

  /* ── AGENT STATUS PILLS ──────────────────────────────────── */
  .agents-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .agent-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 12px 5px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
  }
  .pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 var(--green);
    animation: pulse 2s infinite;
    flex-shrink: 0;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(10,158,138,0.5); }
    70% { box-shadow: 0 0 0 6px rgba(10,158,138,0); }
    100% { box-shadow: 0 0 0 0 rgba(10,158,138,0); }
  }
  .agent-card-status .pulse {
    animation: pulse-white 2s infinite;
  }
  @keyframes pulse-white {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
    70% { box-shadow: 0 0 0 5px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  }
  /* 2026-09-11: the ti-loader-2 Tabler icon is used all over the app
     (Riley's "Loading transactions...", Listings' comps loader, Quinn's
     "Connecting...", Settings' save-in-progress button, etc.) as a loading
     spinner, but almost none of those call sites ever applied a spin
     animation to it -- it just sat there as a static, motionless glyph.
     One global rule here fixes every existing and future usage at once
     instead of patching each call site's inline style individually. */
  .ti-loader-2 {
    display: inline-block;
    animation: shell-spin 0.8s linear infinite;
  }
  @keyframes shell-spin {
    to { transform: rotate(360deg); }
  }
  /* Lone Wolf connection indicator (Riley tab header) — pulsing teal dot when
     connected, solid red dot otherwise. Reuses .pulse's existing keyframe for
     the connected state rather than defining a second animation. */
  .lw-indicator {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 800;
    padding: 4px 10px; border-radius: 12px;
  }
  .lw-indicator.lw-connected { background: var(--teal-100); color: var(--teal-600); }
  .lw-indicator.lw-disconnected { background: #fde7e2; color: #c53f2e; }
  .lw-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #c53f2e;
    flex-shrink: 0;
  }
  .lw-dot.pulse {
    background: var(--green);
    box-shadow: 0 0 0 0 var(--green);
  }

  /* ── DIGEST BANNER ───────────────────────────────────────── */
  .digest {
    background: linear-gradient(135deg, rgba(232,96,60,0.12) 0%, rgba(232,96,60,0.04) 100%);
    border: 1px solid rgba(232,96,60,0.25);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
  }
  .digest-label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); margin-bottom: 6px; }
  .digest-text { font-size: 14px; color: var(--text); line-height: 1.6; }

  /* ── LIST ITEMS ──────────────────────────────────────────── */
  .list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .list-item:last-child { border-bottom: none; }
  .list-avatar {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--card-hi);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }
  .list-main { flex: 1; }
  .list-name { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
  .list-sub { font-size: 14px; color: var(--dim); }
  .list-right { text-align: right; flex-shrink: 0; }
  .list-time { font-size: 13.5px; color: var(--dim); margin-bottom: 4px; }

  /* ── BADGES ──────────────────────────────────────────────── */
  .badge {
    font-size: 13px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
  }
  .badge-hot { background: rgba(232,96,60,0.15); color: var(--coral); border: 1px solid rgba(232,96,60,0.3); }
  .badge-warm { background: var(--coral-50); color: var(--coral-500); border: 1px solid var(--coral-200); }
  .badge-cold { background: var(--card-hi); color: var(--dim); border: 1px solid var(--border); }
  .badge-active { background: #fff; color: #009580; border: 1px solid rgba(0,149,128,0.35); }
  .badge-pending { background: var(--coral-50); color: var(--coral-500); border: 1px solid var(--coral-200); }
  .badge-sold { background: rgba(75,142,240,0.12); color: var(--blue); border: 1px solid rgba(75,142,240,0.25); }

  /* ── DASHBOARD SECTIONS ─────────────────────────────────── */
  .dash-section { border-radius: 12px; padding: 14px 14px 10px; margin-bottom: 0; }
  /* 2026-09-19: flattened from a coral tint to white, and from flat gray
     to white, respectively -- Mark: "match the Today tab/page formatting
     to this", meaning Morgan's Market Research page's new white-card look
     (Concept 1 -- Seller Concierge Match). Both are used only in #tab-today
     (confirmed via grep before changing), so this is safe as a direct edit,
     not a scoped override like the .card/.card-title changes below. The
     "needs attention" cue for Needs Your Review now comes from its
     .card-title being coral (see #tab-today .card-title), same as every
     other section here, instead of a tinted card shell. */
  .dash-section--action { background: #FAFAFB; border: 1px solid var(--border); }
  .dash-section--leads { background: #ffffff; border: 1px solid var(--border); }
  /* Market Trends depth pass (2026-09-09, Mark: "let's go with option a"
     from the mockup exchange) -- was a flat gray box, the one section
     that hadn't picked up the shadow/hover-lift language the rest of the
     redesign uses; now a white card matching .approval-item/.dash-lr-row.
     Scoped to this class, not .mt-view-btn's shared base below --
     .dash-section--market only appears on the Dashboard's own Market
     Trends widget; Morgan's Marketing > Market Research page renders its
     own version through separate mm-prefixed markup in js/morgan.js and
     is untouched here. */
  .dash-section--market { background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(20,20,24,0.06), 0 1px 2px rgba(20,20,24,0.04); transition: box-shadow .18s ease, transform .18s ease; }
  .dash-section--market:hover { box-shadow: 0 10px 24px rgba(20,20,24,0.10), 0 3px 8px rgba(20,20,24,0.06); transform: translateY(-2px); }
  /* One-line headline above the table (2026-09-09) -- same idea as the
     Morning Digest card. Built from MT_DATA[area].summary's first
     sentence via js/shared/market-trends.js's mtInsightSentence(), so it
     can't drift from the Summary view's own text. */
  .mt-insight { background: #fdece5; border: 1px solid #f2c9b8; border-radius: 8px; padding: 9px 11px; font-size: 13.5px; color: #8a3f22; line-height: 1.45; margin-bottom: 10px; }
  /* Table's Change column header (2026-09-09) -- was a bare cell; the
     red/teal triangles read as decoration without a label. */
  .mt-change-hd { text-align: center; width: 72px; }

  /* ── APPROVAL QUEUE ──────────────────────────────────────── */
  /* Depth pass (2026-09-09, Mark: reference screenshot -- "give it real
     depth -- soft shadows and hover-lift on cards", "use the updated style
     for the icons, the rings, and the 'review' button" while keeping the
     current icon glyphs). Soft resting shadow + a slightly stronger one on
     hover, paired with a small upward translate, is the same depth
     language applied to the new Listing Readiness rows below so the two
     sections read as one consistent style. */
  .approval-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    box-shadow: 0 1px 3px rgba(20,20,24,0.06), 0 1px 2px rgba(20,20,24,0.04);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
  }
  .approval-item:hover {
    box-shadow: 0 10px 24px rgba(20,20,24,0.10), 0 3px 8px rgba(20,20,24,0.06);
    transform: translateY(-2px);
  }
  .approval-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  /* Solid-fill + white glyph (was a light-tint background with a coral
     glyph) -- same envelope/megaphone/clipboard icons as before, just the
     updated, higher-contrast badge treatment from the reference. */
  .approval-icon.coral { background: var(--coral); color: #fff; box-shadow: 0 2px 6px rgba(216,90,48,0.28); }
  .approval-icon.teal  { background: var(--teal-500); color: #fff; box-shadow: 0 2px 6px rgba(0,149,128,0.28); }
  /* Narrow-window fix (2026-09-09, Mark screenshot -- title/sub text was
     being squeezed down to a ~2-word-wide column when this card's row
     narrows, e.g. the two-column dashboard grid on a mid-size window,
     below the 768px mobile breakpoint that stacks .grid-2 to one column.
     flex-basis:180px plus flex-wrap on .approval-item above means the
     Review/View button now wraps down onto its own line, below the
     title/sub text, once there isn't enough room for all three -- instead
     of everything staying on one line and the text column getting crushed
     to fit. min-width:0 lets it actually shrink instead of overflowing. */
  .approval-main { flex: 1 1 180px; min-width: 0; }
  .approval-title { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
  .approval-sub { font-size: 13.5px; color: var(--dim); }
  .approval-actions { display: flex; gap: 8px; flex-shrink: 0; margin-left: auto; }
  .btn-approve { background: var(--green); color: var(--dark); border: none; padding: 5px 12px; border-radius: 5px; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
  .btn-edit { background: var(--card); color: var(--text); border: 1px solid var(--border); padding: 5px 12px; border-radius: 5px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
  /* Dashboard-only "Review"/"View" button (separate from .btn-approve,
     which Quinn/Riley/Casey's own approval buttons still use elsewhere) --
     coral pill matching the reference, instead of the flat teal rectangle
     .btn-approve renders. */
  .approval-review-btn { background: var(--coral); color: #fff; border: none; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; box-shadow: 0 2px 6px rgba(216,90,48,0.28); transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease; }
  .approval-review-btn:hover { background: var(--coral-600, #c04e28); box-shadow: 0 4px 10px rgba(216,90,48,0.34); transform: translateY(-1px); }

  /* ── MARKET SNAPSHOT ─────────────────────────────────────── */
  .market-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
  .market-row:last-child { border-bottom: none; }
  .market-area { color: var(--text); font-weight: 500; }
  .market-price { color: var(--white); font-weight: 700; }
  .market-change { font-size: 13.5px; font-weight: 600; }

  /* ── MARKET TRENDS WIDGET ───────────────────────────────── */
  .mt-area-btn { padding:4px 10px; font-size:13px; font-weight:600; border-radius:100px; border:1px solid var(--border); background:var(--card); color:var(--dim); cursor:pointer; font-family:inherit; transition:all .15s; white-space:nowrap; }
  .mt-area-btn.active { background:rgba(219,90,48,.12); color:var(--coral); border-color:rgba(219,90,48,.35); }
  .mt-view-btn { width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;font-size:17px;border:1px solid rgba(0,0,0,0.13);background:#f0f0f4;color:var(--dim);cursor:pointer;border-radius:8px;transition:all .15s;padding:0; }
  .mt-view-btn.active { background:#FDE7E2;color:#D85A30;border-color:rgba(216,90,48,0.30); }
  .mt-view-btn:hover:not(.active) { background:#e8e8ec; }
  .mt-table { width:100%; border-collapse:collapse; font-size:13.5px; }
  .mt-table th { font-size:11.5px; font-weight:700; letter-spacing:.06em; color:#aaaaae; text-align:left; padding:4px 0 6px; border-bottom:1px solid var(--border); }
  .mt-table th:not(:first-child) { text-align:right; }
  .mt-table td { padding:6px 0; border-bottom:1px solid var(--border); color:var(--text); vertical-align:middle; }
  .mt-table td:not(:first-child) { text-align:right; font-weight:700; color:var(--white); }
  .mt-table tr:last-child td { border-bottom:none; }
  .mt-pending { display:flex;align-items:center;justify-content:center;height:120px;font-size:13.5px;color:#aaaaae;flex-direction:column;gap:6px; }
  /* 2026-10-15 (Mark): coral bar icon for "Data coming soon" (replaces the
     multicolor 📊 emoji) and a small coral spinner for loading states. */
  .mt-pending-icon { display:inline-flex;align-items:flex-end;gap:3px;height:22px; }
  .mt-pending-icon i { display:block;width:6px;border-radius:2px 2px 1px 1px; }
  .mt-pending-icon i:nth-child(1) { height:10px;background:var(--coral-200,#F9B8A6); }
  .mt-pending-icon i:nth-child(2) { height:16px;background:var(--coral-300,#F38A6E); }
  .mt-pending-icon i:nth-child(3) { height:22px;background:var(--coral-500,#D85A30); }
  .asc-spin { display:inline-block;width:18px;height:18px;border-radius:50%;border:2.5px solid var(--coral-100,#FCD1C7);border-top-color:var(--coral-500,#D85A30);animation:shell-spin .8s linear infinite;box-sizing:border-box; }
  .mm-kpi-loading { text-align:center;background:var(--coral-50,#FDE7E2);border:1px solid var(--coral-100,#FCD1C7);border-radius:9px;padding:13px 4px; }
  .mm-kpi-loading .asc-spin { margin:4px 0; vertical-align:top; }
  .mm-kpi-loading .mm-kpi-label { font-size:11.5px;font-weight:800;letter-spacing:.07em;color:#5B616B;text-transform:uppercase;margin-top:5px; }
  /* Dashboard-only icon restyle (2026-09-09, Mark: "keep the monochrome
     icons that let you switch between table view, chart view, and
     summary. But making them orange with white icons to match the
     'needs your review' icons"). Same solid-coral-bg + white-glyph
     treatment as .approval-icon.coral -- keeps the same icon glyphs
     (ti-table/ti-chart-bar/ti-file-text), just recolors them. All three
     buttons get the same coral fill (matching Needs Your Review's
     uniform icon color); active vs. inactive moves from "gray vs.
     coral" to full-strength vs. muted opacity, so the selected view is
     still obvious. Scoped under .dash-section--market so Morgan's own
     Marketing > Market Research page (js/morgan.js's separate
     mm-view-btn markup, sharing only the base .mt-view-btn class) is
     unaffected. */
  .dash-section--market .mt-view-btn { background: var(--coral); color: #fff; border: none; box-shadow: 0 2px 6px rgba(216,90,48,0.22); opacity: .5; }
  .dash-section--market .mt-view-btn.active { opacity: 1; box-shadow: 0 2px 8px rgba(216,90,48,0.35); }
  .dash-section--market .mt-view-btn:hover:not(.active) { opacity: .75; background: var(--coral); }

  /* ── SHARED FILTER PILLS ─────────────────────────────────── */
  .filter-pills { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
  .filter-pill {
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--dim);
    cursor: pointer;
  }
  .filter-pill.active { background: rgba(232,96,60,0.12); color: var(--coral); border-color: rgba(232,96,60,0.3); }

  /* ── LISTINGS TAB ────────────────────────────────────────── */
  .listing-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
  }
  .listing-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }
  .listing-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .listing-address { font-size: 14px; font-weight: 700; color: var(--white); }
  .listing-price { font-size: 16px; font-weight: 900; color: var(--coral); }
  .listing-body { padding: 14px 16px; }
  .listing-stats { display: flex; gap: 20px; margin-bottom: 12px; }
  .listing-stat { font-size: 14px; color: var(--dim); }
  .listing-stat strong { color: var(--white); }
  .listing-note { font-size: 14px; color: var(--text); font-style: italic; background: var(--card-hi); padding: 8px 12px; border-radius: 6px; border-left: 3px solid var(--coral); }

  /* ── MARKET TAB ──────────────────────────────────────────── */
  .alert-banner {
    background: rgba(232,96,60,0.08);
    border: 1px solid rgba(232,96,60,0.25);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text);
  }
  .alert-label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); margin-bottom: 4px; }

  /* ── MOBILE BOTTOM NAV ───────────────────────────────────── */
  .mobile-nav {
    display: none;
    background: var(--mid);
    border-top: 1px solid var(--border);
    padding: 8px 0 env(safe-area-inset-bottom);
  }
  /* 2026-11-24: 7 workflows don't fit across a phone, and the row used to push the
     whole page wider than the screen. It now scrolls sideways inside the bar, and
     spreads out evenly when there's room. */
  .mobile-nav-inner { display: flex; justify-content: space-around; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mobile-nav-inner::-webkit-scrollbar { display: none; }
  .mobile-nav-inner > .mobile-nav-btn { flex: 1 0 auto; white-space: nowrap; min-height: 52px; justify-content: center; padding: 6px 10px; }
  .mobile-nav-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 12px;
    background: none; border: none; cursor: pointer; font-family: inherit;
    color: var(--dim); font-size: 13px; font-weight: 600;
  }
  .mobile-nav-btn.active { color: var(--coral); }
  .mobile-nav-icon { font-size: 20px; }

  /* ── AGENT NAV SUB-ITEMS ─────────────────────────────────── */
  .nav-sub { padding-left: 28px !important; font-size: 14px !important; }
  .nav-chevron { margin-left: auto; font-size: 13.5px; color: var(--dim); transition: transform 0.2s ease; display: inline-block; }
  .nav-chevron.collapsed { transform: rotate(-90deg); }
  .agents-submenu { overflow: hidden; max-height: 520px; transition: max-height 0.25s ease; display:flex; flex-direction:column; }
  .agents-submenu.collapsed { max-height: 0; }
  #nav-casey { order:99; }
  .agent-grid > .agent-card.agent-card-casey { order:99; }

  /* ── AGENT DETAIL HEADER ─────────────────────────────────── */
  .agent-detail-header {
    background: linear-gradient(135deg, var(--coral-500) 0%, var(--coral-300) 100%);
    border: 1px solid var(--coral-500);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .agent-detail-header.teal {
    background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-700) 100%);
    border: 1px solid var(--teal-700);
  }
  .agent-detail-avatar {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
  }
  .agent-detail-avatar svg { color:#fff; stroke:currentColor; }
  .agent-detail-name { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 3px; }
  .agent-detail-role { font-size: 14px; color: rgba(255,255,255,0.82); margin-bottom: 10px; line-height: 1.55; max-width: 420px; }
  .agent-detail-kpis { display: flex; gap: 20px; flex-wrap: wrap; }
  .agent-kpi { font-size: 14px; color: rgba(255,255,255,0.72); }
  .agent-kpi strong { color: #fff; font-weight: 700; }

  /* ── QUEUE ITEMS ─────────────────────────────────────────── */
  .queue-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .queue-item:last-child { border-bottom: none; }
  .queue-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
  .queue-main { flex: 1; }
  .queue-title { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
  .queue-sub { font-size: 14px; color: var(--dim); line-height: 1.5; }
  .queue-time { font-size: 13.5px; color: var(--dim); flex-shrink: 0; white-space: nowrap; }

  /* ── POST CARDS (Quinn) ──────────────────────────────────── */
  .post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
  }
  .post-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
  .post-card-inner { display: flex; gap: 14px; align-items: flex-start; }
  .post-thumb {
    width: 80px; height: 80px; border-radius: 8px; flex-shrink: 0;
    background: var(--card-hi); border: 1px solid var(--border);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
  }
  .post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .post-thumb-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #e0e0e4 0%, #d0d0d6 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; color: #aaaaae; font-size: 20px;
  }
  .post-thumb-placeholder span { font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #aaaaae; }
  .post-platform { font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
  .post-caption { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 10px; }
  .post-actions { display: flex; gap: 8px; }

  /* ── CHECKLIST ───────────────────────────────────────────── */
  .check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }
  .check-item:last-child { border-bottom: none; }
  .check-done { color: var(--green); font-size: 15px; flex-shrink: 0; }
  .check-pending { color: var(--dim); font-size: 15px; flex-shrink: 0; }
  .check-label { flex: 1; color: var(--text); }
  .check-label.done { text-decoration: line-through; color: var(--dim); }
  .check-date { font-size: 13.5px; color: var(--dim); flex-shrink: 0; }

  /* ── TIMELINE ────────────────────────────────────────────── */
  .timeline { position: relative; padding-left: 20px; }
  .timeline::before {
    content: '';
    position: absolute;
    left: 6px; top: 8px; bottom: 8px;
    width: 2px;
    background: var(--border);
  }
  .timeline-item { position: relative; padding-bottom: 18px; }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -14px; top: 4px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
  }
  .timeline-item.done::before { background: var(--green); }
  .timeline-item.current::before { background: var(--coral); box-shadow: 0 0 0 3px rgba(232,96,58,0.2); }
  .timeline-event { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
  .timeline-item.done .timeline-event { color: var(--dim); font-weight: 500; text-decoration: line-through; }
  .timeline-date { font-size: 13.5px; color: var(--dim); }


  /* ── ASCENT CONFIRM DIALOG ──────────────────────────────────────
   * Shared "are you sure?" mini-dialog for full-screen composer/builder
   * overlays (Quinn's post composer, the Flier Builder modal, and any
   * future one) -- shown when the user clicks the dim backdrop outside
   * the modal card, instead of closing immediately. Injected/removed by
   * JS (ascentShowCloseConfirm() in js/quinn.js) rather than static
   * markup, so it never sits in the DOM when not needed. Deliberately
   * NOT a native confirm() -- this app avoids those everywhere else
   * (see js/mail.js's "never a native confirm() dialog" convention).
   */
  .ascent-confirm-overlay { position:fixed; inset:0; z-index:9200; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(17,17,20,.32); }
  .ascent-confirm-card { width:min(380px,100%); background:#fff; border-radius:14px; box-shadow:0 20px 60px rgba(17,17,20,.32); padding:20px; }
  .ascent-confirm-title { font-size:15px; font-weight:800; color:var(--ink); margin-bottom:6px; }
  .ascent-confirm-body { font-size:14px; color:var(--dim); line-height:1.5; margin-bottom:16px; }
  .ascent-confirm-actions { display:flex; flex-direction:column; gap:8px; }
  .ascent-confirm-btn { width:100%; padding:10px 14px; border-radius:8px; font-size:14px; font-weight:800; font-family:inherit; cursor:pointer; border:1px solid transparent; transition:opacity .15s; }
  .ascent-confirm-btn:hover { opacity:.88; }
  .ascent-confirm-btn.keep { background:#fff; border-color:var(--border); color:var(--ink); }
  .ascent-confirm-btn.save { background:var(--teal-100); border-color:var(--teal-500); color:var(--teal-600); }
  .ascent-confirm-btn.discard { background:#fff; border-color:var(--coral-200); color:var(--coral); }

/* Local-preview "not signed in" banner (2026-10-26). Shown only on
   127.0.0.1/localhost when the dashboard is running on its placeholder dev
   profile, so a lapsed local login can't masquerade as broken data loading. */
.ascent-local-auth-banner{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:9000;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 32px);padding:10px 14px;border-radius:10px;background:var(--coral-200);border:1px solid var(--coral-300);color:var(--ink);font-size:14px;font-weight:600;line-height:1.4;box-shadow:0 8px 24px rgba(17,17,20,.18)}
.ascent-local-auth-banner i{color:var(--coral-500);font-size:16px;flex:none}
.ascent-local-auth-banner a{color:var(--ink);text-decoration:underline;font-weight:800;white-space:nowrap}
/* Market data loading bar (2026-11-25) */
.mt-progress { position: relative; width: min(220px, 70%); height: 6px; border-radius: 999px; background: var(--coral-50, #FDF1EE); overflow: hidden; }
.mt-progress-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--coral-500, #D85A30); transition: width .3s ease; }
.mt-progress.is-indet .mt-progress-fill { animation: mt-progress-slide 1.2s ease-in-out infinite; }
@keyframes mt-progress-slide { 0% { left: -35%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .mt-progress.is-indet .mt-progress-fill { animation: none; left: 0; } }
.mt-progress-txt { font-size: 13px; color: var(--slate, #6B645E); margin-top: 8px; font-variant-numeric: tabular-nums; }
