/* home-catchup.css — "Catch Me Up" by Mo
   ─────────────────────────────────────────────────────────────────────────
   Centered 70vw / 80vh modal triggered from the "Continue Where You Left
   Off" card header. Brand-green gradient header with Mo's portrait, animated
   loading state with rotating thinking messages + Mo float + skeleton,
   AI-narrated speech bubble, 2x2 card grid (Right now), delta cards
   (Since you were last here), branded footer with Regenerate.

   DESIGN INVARIANTS:
   • Audience 40+ — generous spacing, large readable fonts, clean visual
     hierarchy. Nothing requires squinting.
   • 10-20 second read — content density tuned to that, not more.
   • Brand: EFF green (#1E6332 → #2F8542) for primary, beige (#F4F0E9) for
     warm accents, white cards, soft shadows. Same palette as the rest of
     the app.
   • Stagger reveal animation when content loads (subtle, not flashy).
   • Full dark theme support.
   • Mobile (≤768px) goes full-screen, cards stack to 1 column.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Trigger button (mounted into #hcuButtonSlot in the home card) ──── */
.hcu-btn-slot {
    display: inline-flex;
    align-items: center;
}

.hn-card-header-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hcu-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 8px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1E6332 0%, #2F8542 100%);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 12px rgba(30, 99, 50, 0.32), inset 0 1px 0 rgba(255,255,255,0.15);
    position: relative;
    /* Allow Mo's head to poke out above the pill — overflow visible
       (was hidden for the shimmer). The shimmer now lives on a separate
       ::after element clipped via clip-path so it doesn't bleed out. */
    overflow: visible;
}
.hcu-trigger-btn::after {
    /* Subtle shimmer that drifts on hover. Clipped to the pill shape so
       it doesn't escape now that the button has overflow: visible. */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.55s ease;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(white, white);
            mask-image: linear-gradient(white, white);
}
.hcu-trigger-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30, 99, 50, 0.42); filter: brightness(1.06); }
.hcu-trigger-btn:hover::after { transform: translateX(100%); }
.hcu-trigger-btn:active { transform: translateY(0); filter: brightness(0.96); }

/* Traditional ✨ AI sparkles badge — circular white-tinted badge sitting
   flush at the left of the pill. Same shape rhythm as elsewhere in the
   app where the AI brand mark appears. */
.hcu-trigger-icon-badge {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.hcu-trigger-icon-badge i {
    color: #fff;
    /* Subtle scale-pulse on the badge icon for an "alive" feel */
    animation: hcuTriggerIconPulse 3s ease-in-out infinite;
}
@keyframes hcuTriggerIconPulse {
    0%, 100% { transform: scale(1)    rotate(0deg);  }
    50%      { transform: scale(1.12) rotate(8deg);  }
}
.hcu-trigger-btn:hover .hcu-trigger-icon-badge {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.5);
}

.hcu-trigger-label { white-space: nowrap; }

.hcu-trigger-spark {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    animation: hcuSparkTwinkle 2.8s ease-in-out infinite;
}
@keyframes hcuSparkTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg);    opacity: 0.85; }
    50%      { transform: scale(1.15) rotate(8deg); opacity: 1; }
}

/* ── Overlay + modal shell ───────────────────────────────────────────── */
.hcu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px) saturate(110%);
    z-index: 10500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.hcu-overlay.show { opacity: 1; pointer-events: auto; }

.hcu-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    width: 70vw;
    max-width: 1100px;
    height: 80vh;
    max-height: 880px;
    background: #fafbfc;
    z-index: 10501;
    border-radius: 18px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.32), 0 8px 24px rgba(0,0,0,0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.hcu-modal.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Impersonation banner offset (32px banner at top of viewport) */
body.impersonating .hcu-modal { top: calc(50% + 16px); }

/* ── Header — brand-green gradient with Mo portrait ─────────────────── */
.hcu-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #1E6332 0%, #214A3E 60%, #2F8542 100%);
    color: #fff;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.hcu-modal-header::after {
    /* soft radial highlight on the right */
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
    pointer-events: none;
}

/* Mo's portrait used to live here — removed per design feedback. The
   small sparkles icon below replaces it as a low-key brand mark, and
   full-body Mo gets the spotlight in the body's speech bubble. The icon
   gently twinkles so the header doesn't feel inert. */
.hcu-modal-header-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 1;
}
.hcu-modal-header-icon i {
    animation: hcuHeaderSparkle 3.5s ease-in-out infinite;
    transform-origin: center;
}
@keyframes hcuHeaderSparkle {
    0%, 70%, 100% { transform: scale(1) rotate(0); opacity: 1; }
    80%           { transform: scale(1.18) rotate(12deg); opacity: 0.92; }
    90%           { transform: scale(0.95) rotate(-4deg); opacity: 1; }
}

.hcu-modal-titlewrap { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hcu-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.15;
}
.hcu-modal-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.86);
    margin-top: 4px;
    line-height: 1.35;
    font-weight: 500;
}
.hcu-modal-subtitle:empty { display: none; }

.hcu-header-btn,
.hcu-header-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    font-size: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.hcu-header-btn:hover  { background: rgba(255,255,255,0.28); }
.hcu-header-btn.spinning i { animation: hcuRotate 0.8s linear infinite; }
.hcu-header-close:hover { background: rgba(255,255,255,0.28); transform: rotate(90deg); }
@keyframes hcuRotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ── Body — scrollable content area ─────────────────────────────────── */
.hcu-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 24px 18px;
    background: #f7f8fa;
    /* Subtle paper-like texture — barely-visible dot grid + warm beige tint
       so the body has visual interest without being noisy. */
    background-image:
        radial-gradient(circle at 1px 1px, rgba(30, 99, 50, 0.04) 1px, transparent 0),
        linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%);
    background-size: 22px 22px, 100% 100%;
}

/* ── Loading state — Mo + animated rings + rotating thinking phrases ── */
.hcu-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 18px 12px;
    text-align: center;
}

.hcu-loading-mo-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hcu-loading-mo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid rgba(30, 99, 50, 0.15);
    box-shadow: 0 8px 22px rgba(30, 99, 50, 0.22);
    animation: hcuMoBob 2.4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.hcu-loading-mo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes hcuMoBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.hcu-loading-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(30, 99, 50, 0.35);
    animation: hcuRingPulse 2.4s ease-out infinite;
}
.hcu-loading-ring-1 { width: 100%; height: 100%; animation-delay: 0s;   }
.hcu-loading-ring-2 { width: 100%; height: 100%; animation-delay: 1.2s; }
@keyframes hcuRingPulse {
    0%   { transform: scale(0.7); opacity: 0.75; }
    100% { transform: scale(1.6); opacity: 0;    }
}

.hcu-loading-phrase {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e5e1da;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 15px;
    font-weight: 600;
    color: #214A3E;
    transition: opacity 0.18s ease;
}
.hcu-loading-phrase i { color: #1E6332; font-size: 14px; }
.hcu-loading-phrase span { letter-spacing: -0.1px; }

.hcu-loading-dots {
    display: flex;
    gap: 6px;
    margin-top: 14px;
}
.hcu-loading-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1E6332;
    opacity: 0.4;
    animation: hcuDotPulse 1.4s ease-in-out infinite;
}
.hcu-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.hcu-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes hcuDotPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.85); }
    50%      { opacity: 1;   transform: scale(1.1);  }
}

.hcu-loading-skeleton {
    margin-top: 28px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hcu-skel {
    background: linear-gradient(90deg, #ecedef 0%, #f7f7f8 50%, #ecedef 100%);
    background-size: 200% 100%;
    border-radius: 12px;
    animation: hcuSkelShimmer 1.6s ease-in-out infinite;
}
.hcu-skel-bubble { height: 60px; }
.hcu-skel-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hcu-skel-card   { height: 130px; }
@keyframes hcuSkelShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Mo speech bubble (intro narrator) ──────────────────────────────── */
.hcu-mo-bubble {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #F4F0E9 0%, #ffffff 100%);
    border: 1px solid #e5e1da;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(30, 99, 50, 0.06);
    position: relative;
}

/* Full-body Mo variant — Mo stands OUTSIDE the speech bubble on the left,
   delivering the briefing. The outer .hcu-mo-bubble-fullbody is a bare
   layout container (no background); the actual speech bubble styling
   lives on the inner .hcu-mo-bubble-body, with a tail pointing left
   toward Mo. This gives a proper "Mo is talking" comic-style read. */
.hcu-mo-bubble-fullbody {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 140px;
    overflow: visible;
    position: relative;
}
/* Inner body becomes the actual speech bubble */
.hcu-mo-bubble-fullbody .hcu-mo-bubble-body {
    flex: 1;
    min-width: 0;
    background: linear-gradient(135deg, #F4F0E9 0%, #ffffff 100%);
    border: 1px solid #e5e1da;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(30, 99, 50, 0.06);
    position: relative;
}
/* Speech-bubble tail pointing LEFT toward Mo. Drawn as two stacked
   triangles (outer border + inner fill) so the tail's edge matches the
   bubble's 1px border without breaking the line. */
.hcu-mo-bubble-fullbody .hcu-mo-bubble-body::before,
.hcu-mo-bubble-fullbody .hcu-mo-bubble-body::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    transform: translateY(-50%);
    border-style: solid;
    pointer-events: none;
}
.hcu-mo-bubble-fullbody .hcu-mo-bubble-body::before {
    /* Border-color triangle (matches bubble border) */
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #e5e1da transparent transparent;
}
.hcu-mo-bubble-fullbody .hcu-mo-bubble-body::after {
    /* Fill triangle, 1px inside the border so they overlap cleanly */
    left: -9px;
    border-width: 9px 9px 9px 0;
    border-color: transparent #F4F0E9 transparent transparent;
}
.hcu-mo-bubble-fullbody-img {
    width: 124px;
    height: 140px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Subtle radial spotlight behind Mo — no border-radius so the halo
       is a soft glow rather than a hard clip. */
    background: radial-gradient(ellipse at 50% 55%, rgba(30, 99, 50, 0.14) 0%, transparent 65%);
}
.hcu-mo-bubble-fullbody-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(30, 99, 50, 0.22));
    animation: hcuMoStandBob 5s ease-in-out infinite;
    transform-origin: 50% 100%;
}
@keyframes hcuMoStandBob {
    0%, 100% { transform: translateY(0)    rotate(0); }
    50%      { transform: translateY(-3px) rotate(-1deg); }
}

.hcu-mo-bubble-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(30, 99, 50, 0.18);
    box-shadow: 0 2px 6px rgba(30, 99, 50, 0.2);
    background: #fff;
}
.hcu-mo-bubble-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hcu-mo-bubble-body { flex: 1; min-width: 0; }
.hcu-mo-bubble-name {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #1E6332;
    margin-bottom: 4px;
}
.hcu-mo-bubble-text {
    font-size: 16px;
    line-height: 1.55;
    color: #1f2937;
    font-weight: 500;
}

/* ── Portfolio at a glance — 4-tile KPI strip ───────────────────────
   Sits between Mo's bubble and the Briefing bullets. Each tile is a
   real, scannable number: portfolio breadth, pipeline value, monthly
   funding pace (with trend %), and YTD net + average claim size. */
.hcu-pf-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}
@media (max-width: 980px) {
    .hcu-pf-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .hcu-pf-strip { grid-template-columns: 1fr; }
}

.hcu-pf-tile {
    background: #fff;
    border: 1px solid #e5e1da;
    border-radius: 12px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
}
/* Top accent bar — matches the icon-tile's gradient so each KPI reads
   as one coordinated unit instead of an icon orbiting a generic card. */
.hcu-pf-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(90deg, #d1d5db, #9ca3af);
}
.hcu-pf-tile-portfolio::before { background: linear-gradient(90deg, #6d28d9, #8b5cf6); }
.hcu-pf-tile-pipeline::before  { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.hcu-pf-tile-mtd::before       { background: linear-gradient(90deg, #1E6332, #2F8542); }
.hcu-pf-tile-ytd::before       { background: linear-gradient(90deg, #15803d, #22c55e); }
.hcu-pf-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(30, 99, 50, 0.12);
    border-color: #d4ccbb;
}

.hcu-pf-tile-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.hcu-pf-tile-portfolio .hcu-pf-tile-icon { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.hcu-pf-tile-pipeline  .hcu-pf-tile-icon { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.hcu-pf-tile-mtd       .hcu-pf-tile-icon { background: linear-gradient(135deg, #1E6332, #2F8542); }
.hcu-pf-tile-ytd       .hcu-pf-tile-icon { background: linear-gradient(135deg, #15803d, #22c55e); }

.hcu-pf-tile-body { flex: 1; min-width: 0; }
.hcu-pf-tile-value {
    font-size: 19px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.3px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
/* Money-tile values render in brand green for instant pattern recognition
   against the rest of the modal. Non-money tiles (Total Claims / Pipeline
   count) stay neutral so they're not over-emphasized. */
.hcu-pf-tile-mtd .hcu-pf-tile-value,
.hcu-pf-tile-ytd .hcu-pf-tile-value { color: #1E6332; }
.hcu-pf-tile-sub {
    font-size: 13px;
    font-weight: 700;        /* bold — pipeline $ amount sits next to count */
    color: #1E6332;          /* brand green — money side of pipeline tile */
    letter-spacing: 0;
}
.hcu-pf-tile-label {
    font-size: 11.5px;
    color: #4b5563;            /* darker than the old #6b7280 — easier to read */
    margin-top: 2px;
    line-height: 1.35;
    font-weight: 500;
}
.hcu-pf-tile-trend {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.1px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 2px;
    background: #f3f4f6;
    color: #4b5563;
}
.hcu-pf-tile-trend.up   { background: #dcfce7; color: #166534; }
.hcu-pf-tile-trend.down { background: #fee2e2; color: #991b1b; }
.hcu-pf-tile-trend i    { font-size: 9px; }

/* ── Mo's Briefing — empowered bullet cards ──────────────────────
   Each highlight is its own subtle card row: green left accent bar,
   thematic icon picked by keyword heuristic, brand-green-bold $ amounts,
   small hover lift. Reads as scannable richness, not a flat bullet list. */
.hcu-section-highlights { margin-bottom: 24px; }
.hcu-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hcu-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px 12px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #e5e1da;
    border-left: 4px solid #1E6332;
    border-radius: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
}
.hcu-highlight:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 14px rgba(30, 99, 50, 0.1);
    border-left-color: #2F8542;
}
.hcu-highlight-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-top: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
    /* Default fallback — gets overridden by .hcu-hl-{category} below */
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

/* ── Briefing-bullet category color palette ──────────────────────────
   Each bullet's icon-tile is colored by inferred topic so the briefing
   reads as a palette of distinct categories, not a sea of beige. */
.hcu-hl-money     .hcu-highlight-icon { background: linear-gradient(135deg, #1E6332, #2F8542); box-shadow: 0 3px 8px rgba(30, 99, 50, 0.28); }
.hcu-hl-top       .hcu-highlight-icon { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 3px 8px rgba(217, 119, 6, 0.28); }
.hcu-hl-attention .hcu-highlight-icon { background: linear-gradient(135deg, #dc2626, #ef4444); box-shadow: 0 3px 8px rgba(220, 38, 38, 0.28); }
.hcu-hl-insurance .hcu-highlight-icon { background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 3px 8px rgba(37, 99, 235, 0.28); }
.hcu-hl-location  .hcu-highlight-icon { background: linear-gradient(135deg, #6d28d9, #8b5cf6); box-shadow: 0 3px 8px rgba(109, 40, 217, 0.28); }
.hcu-hl-recent    .hcu-highlight-icon { background: linear-gradient(135deg, #C19A6B, #d4a878); box-shadow: 0 3px 8px rgba(193, 154, 107, 0.28); }
.hcu-hl-comms     .hcu-highlight-icon { background: linear-gradient(135deg, #0891b2, #22d3ee); box-shadow: 0 3px 8px rgba(8, 145, 178, 0.28); }
.hcu-hl-time      .hcu-highlight-icon { background: linear-gradient(135deg, #0d9488, #14b8a6); box-shadow: 0 3px 8px rgba(13, 148, 136, 0.28); }
.hcu-hl-pipeline  .hcu-highlight-icon { background: linear-gradient(135deg, #1d4ed8, #3b82f6); box-shadow: 0 3px 8px rgba(29, 78, 216, 0.28); }

/* The accent bar's color matches the icon category, so each row reads as
   "of one piece" rather than a green-accented row with a colored icon. */
.hcu-hl-money     { border-left-color: #1E6332; }
.hcu-hl-top       { border-left-color: #d97706; }
.hcu-hl-attention { border-left-color: #dc2626; }
.hcu-hl-insurance { border-left-color: #2563eb; }
.hcu-hl-location  { border-left-color: #6d28d9; }
.hcu-hl-recent    { border-left-color: #C19A6B; }
.hcu-hl-comms     { border-left-color: #0891b2; }
.hcu-hl-time      { border-left-color: #0d9488; }
.hcu-hl-pipeline  { border-left-color: #1d4ed8; }
.hcu-highlight-text {
    flex: 1;
    min-width: 0;
    font-size: 14.5px;
    color: #1f2937;
    line-height: 1.55;
    font-weight: 500;
}

/* Brand-green-bold $ amounts and trend percentages — applied via
   _escWithAmounts() to all AI-generated text (intro, briefing bullets,
   narrator, footer) so the eye locks onto the real numbers. */
.hcu-amt {
    color: #1E6332;
    font-weight: 800;
    letter-spacing: -0.1px;
    font-variant-numeric: tabular-nums;
}
.hcu-amt-pct {
    color: #1E6332;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ── Section wrapper ────────────────────────────────────────────────── */
.hcu-section { margin-bottom: 26px; }
.hcu-section:last-child { margin-bottom: 10px; }

.hcu-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #1E6332;
    margin-bottom: 14px;
    padding-bottom: 10px;
    position: relative;
}
/* Brand-green gradient underline that fades into transparency — adds weight
   to the section heads without feeling heavy. */
.hcu-section-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #1E6332 0%, #2F8542 50%, transparent 100%);
    border-radius: 2px;
}
.hcu-section-head i {
    font-size: 13px;
    color: #2F8542;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, #F4F0E9, #E8DFD0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hcu-since-anchor {
    margin-left: auto;
    background: #F4F0E9;
    color: #6b5d44;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    border: 1px solid #e8dfd0;
    /* Position above the underline accent so they don't clash */
    position: relative;
    z-index: 1;
}

.hcu-section-narrator {
    font-size: 14px;
    color: #374151;          /* darker — was #475569 */
    line-height: 1.55;
    margin-bottom: 12px;
}
.hcu-section-footer {
    font-size: 13.5px;
    color: #4b5563;          /* darker — was #6b7280 */
    margin-top: 12px;
    padding-left: 4px;
    line-height: 1.45;
}

/* ── Card grid (Section 1 + delta cards) — adapts to card count ─────
   Only the cards that have something to say render, so we tune the layout
   per count so 1 card never looks lonely and 3 cards never look unbalanced.
*/
.hcu-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
/* 1 card → full-width spotlight (so the single thing that needs attention
   becomes the visual focus instead of looking lonely in a half-width tile) */
.hcu-card-grid.hcu-card-grid--1 {
    grid-template-columns: 1fr;
}
/* 2 cards → 1 + 1 side-by-side (default) */
.hcu-card-grid.hcu-card-grid--2 {
    grid-template-columns: 1fr 1fr;
}
/* 3 cards → 3 across on wide, with the last card spanning both columns
   when the grid wraps to 2-col on narrower modal widths. */
.hcu-card-grid.hcu-card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}
/* 4 cards → 2 × 2 */
.hcu-card-grid.hcu-card-grid--4 {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 980px) {
    .hcu-card-grid.hcu-card-grid--3 {
        grid-template-columns: 1fr 1fr;
    }
    .hcu-card-grid.hcu-card-grid--3 > .hcu-card:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hcu-card-grid,
    .hcu-card-grid-delta { grid-template-columns: 1fr; }
    .hcu-card-grid.hcu-card-grid--3 > .hcu-card:nth-child(3) {
        grid-column: auto;
    }
}

.hcu-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}
.hcu-card.has-action {
    cursor: pointer;
}
.hcu-card.has-action:hover,
.hcu-card.has-action:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(30, 99, 50, 0.14);
    border-color: #1E6332;
    outline: none;
}
.hcu-card.has-action:hover .hcu-card-arrow { transform: translateX(3px); color: #1E6332; }

.hcu-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 10px;
}
.hcu-card-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
/* Color schemes per variant */
.hcu-card-attention      .hcu-card-icon { background: linear-gradient(135deg, #dc2626, #f59e0b); box-shadow: 0 4px 10px rgba(220, 38, 38, 0.28); }
/* High-priority pulse — when 5+ claims need attention, the card itself
   gets a subtle red ring pulse so it visually "calls out" without being
   alarming. Pause on hover so the user can read it calmly. */
.hcu-card-attention.high-priority {
    animation: hcuAttnPulse 2.4s ease-in-out infinite;
}
.hcu-card-attention.high-priority:hover { animation: none; }
@keyframes hcuAttnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    50%      { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.10); }
}
.hcu-card-funded         .hcu-card-icon { background: linear-gradient(135deg, #1E6332, #2F8542); box-shadow: 0 4px 10px rgba(30, 99, 50, 0.32); }
.hcu-card-messages       .hcu-card-icon { background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28); }
.hcu-card-time-sensitive .hcu-card-icon { background: linear-gradient(135deg, #C19A6B, #d4a878); box-shadow: 0 4px 10px rgba(193, 154, 107, 0.32); }
.hcu-card-delta          .hcu-card-icon { background: linear-gradient(135deg, #6d28d9, #8b5cf6); box-shadow: 0 4px 10px rgba(109, 40, 217, 0.28); }
.hcu-card-quiet          .hcu-card-icon { background: linear-gradient(135deg, #6b7280, #9ca3af); }

/* Cards with zero counts → de-emphasize icon a touch so eye goes to actionable */
.hcu-card:not(.has-action) .hcu-card-icon { filter: saturate(0.45); opacity: 0.85; }

.hcu-card-title-wrap { flex: 1; min-width: 0; }
.hcu-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.1px;
    line-height: 1.25;
}
.hcu-card-sub {
    font-size: 13px;
    color: #4b5563;          /* darker for 40+ readability — was #6b7280 */
    margin-top: 2px;
    line-height: 1.4;
}
.hcu-card-sub strong {
    color: #1f2937;
    font-weight: 800;
    font-size: 14px;
}
.hcu-card-arrow {
    color: #d1d5db;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.hcu-card-body { font-size: 13.5px; }

.hcu-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hcu-card-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    color: #1f2937;          /* darker — was #374151 */
    font-weight: 500;
    line-height: 1.4;
    font-size: 13.5px;
}
.hcu-card-list li .hcu-li-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}
.hcu-card-list li .hcu-li-amt {
    color: #1E6332;          /* brand green — was #15803d */
    font-weight: 800;        /* bolder so the eye lands on it */
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.hcu-card-time-sensitive .hcu-card-list li .hcu-li-amt {
    color: #b45309;          /* caramel for time pressure stays */
}

.hcu-card-empty {
    color: #6b7280;          /* darker — was #9ca3af */
    font-style: italic;
    font-size: 13px;
    padding: 4px 0;
}

/* ── Delta cards (Section 2) — slightly more compact ──────────────── */
.hcu-card-delta .hcu-card-head {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
}

/* ── "All caught up" positive empty state ───────────────────────────
   Shown when there's nothing to surface in either section — every card
   filtered out (no attention, no funded this week, no unread, no expiring,
   no since-last-visit delta). Mo gets the spotlight; the tone is calm
   and positive, not apologetic.
*/
.hcu-allcaught {
    text-align: center;
    padding: 36px 24px 26px;
    background: linear-gradient(180deg, #ffffff 0%, #F4F0E9 100%);
    border: 1px solid #e8dfd0;
    border-radius: 16px;
    margin: 0 0 14px;
    position: relative;
    overflow: hidden;
}
.hcu-allcaught::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 99, 50, 0.06) 0%, transparent 65%);
    pointer-events: none;
}
.hcu-allcaught-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #1E6332;
    box-shadow: 0 6px 18px rgba(30, 99, 50, 0.18);
    position: relative;
    z-index: 1;
}
.hcu-allcaught-title {
    font-size: 22px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.hcu-allcaught-sub {
    font-size: 15px;
    color: #475569;
    line-height: 1.55;
    max-width: 460px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── First-time empty state ─────────────────────────────────────────── */
.hcu-empty-firsttime {
    text-align: center;
    padding: 14px 8px 6px;
}
.hcu-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F4F0E9, #E8DFD0);
    color: #1E6332;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 14px rgba(30, 99, 50, 0.12);
}
.hcu-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}
.hcu-empty-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}
.hcu-empty-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1.5px solid #d4ccbb;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all 0.18s ease;
}
.hcu-empty-btn:hover {
    border-color: #1E6332;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 99, 50, 0.12);
}
.hcu-empty-btn > i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #F4F0E9;
    color: #1E6332;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.hcu-empty-btn.primary { border-color: #1E6332; background: linear-gradient(135deg, #1E6332, #2F8542); color: #fff; }
.hcu-empty-btn.primary > i { background: rgba(255,255,255,0.22); color: #fff; }
.hcu-empty-btn.primary:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(30, 99, 50, 0.32); }
.hcu-empty-btn-title { font-size: 14px; font-weight: 700; line-height: 1.25; }
.hcu-empty-btn-sub   { font-size: 12px; opacity: 0.85; margin-top: 2px; }

/* ── Footer (regenerate + meta) ──────────────────────────────────────── */
.hcu-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 12px 4px 2px;
    border-top: 1px solid #e5e7eb;
    font-size: 12.5px;
    color: #6b7280;          /* darker — was #9ca3af */
}
.hcu-foot-meta { display: inline-flex; align-items: center; gap: 6px; }
.hcu-foot-meta i { color: #1E6332; font-size: 11px; }

.hcu-footer-regen {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #d4ccbb;
    border-radius: 999px;
    background: #fff;
    color: #1E6332;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.18s ease;
}
.hcu-footer-regen:hover {
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
    border-color: #1E6332;
    box-shadow: 0 2px 8px rgba(30, 99, 50, 0.28);
}
.hcu-footer-regen i { font-size: 11px; transition: transform 0.3s ease; }
.hcu-footer-regen:hover i { transform: rotate(180deg); }

/* ── Stagger reveal animation on content load ──────────────────────────
   IMPORTANT: only hide the actual content sections by default — NEVER the
   loading state. A previous version used `.hcu-modal-body > *` which also
   hid the spinner/skeleton and produced an empty white screen during load. */
.hcu-modal-body > .hcu-mo-bubble,
.hcu-modal-body > .hcu-section,
.hcu-modal-body > .hcu-empty-firsttime,
.hcu-modal-body > .hcu-modal-foot {
    opacity: 0;
    transform: translateY(8px);
}
.hcu-modal-body.hcu-revealed .hcu-mo-bubble,
.hcu-modal-body.hcu-revealed .hcu-section,
.hcu-modal-body.hcu-revealed .hcu-empty-firsttime,
.hcu-modal-body.hcu-revealed .hcu-modal-foot {
    animation: hcuReveal 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hcu-modal-body.hcu-revealed .hcu-mo-bubble        { animation-delay: 0.05s; }
.hcu-modal-body.hcu-revealed .hcu-section-1        { animation-delay: 0.18s; }
.hcu-modal-body.hcu-revealed .hcu-section-2        { animation-delay: 0.30s; }
.hcu-modal-body.hcu-revealed .hcu-empty-firsttime  { animation-delay: 0.15s; }
.hcu-modal-body.hcu-revealed .hcu-modal-foot       { animation-delay: 0.42s; }

@keyframes hcuReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Per-card stagger inside the grid (children of .hcu-section-1) */
.hcu-modal-body.hcu-revealed .hcu-section-1 .hcu-card,
.hcu-modal-body.hcu-revealed .hcu-section-2 .hcu-card {
    animation: hcuReveal 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}
.hcu-modal-body.hcu-revealed .hcu-section-1 .hcu-card:nth-child(1) { animation-delay: 0.22s; }
.hcu-modal-body.hcu-revealed .hcu-section-1 .hcu-card:nth-child(2) { animation-delay: 0.27s; }
.hcu-modal-body.hcu-revealed .hcu-section-1 .hcu-card:nth-child(3) { animation-delay: 0.32s; }
.hcu-modal-body.hcu-revealed .hcu-section-1 .hcu-card:nth-child(4) { animation-delay: 0.37s; }
.hcu-modal-body.hcu-revealed .hcu-section-2 .hcu-card:nth-child(1) { animation-delay: 0.34s; }
.hcu-modal-body.hcu-revealed .hcu-section-2 .hcu-card:nth-child(2) { animation-delay: 0.39s; }
.hcu-modal-body.hcu-revealed .hcu-section-2 .hcu-card:nth-child(3) { animation-delay: 0.44s; }
.hcu-modal-body.hcu-revealed .hcu-section-2 .hcu-card:nth-child(4) { animation-delay: 0.49s; }

@media (prefers-reduced-motion: reduce) {
    .hcu-modal-body > .hcu-mo-bubble,
    .hcu-modal-body > .hcu-section,
    .hcu-modal-body > .hcu-empty-firsttime,
    .hcu-modal-body > .hcu-modal-foot { opacity: 1; transform: none; }
    .hcu-modal-body.hcu-revealed .hcu-mo-bubble,
    .hcu-modal-body.hcu-revealed .hcu-section,
    .hcu-modal-body.hcu-revealed .hcu-empty-firsttime,
    .hcu-modal-body.hcu-revealed .hcu-modal-foot,
    .hcu-modal-body.hcu-revealed .hcu-card {
        animation: none !important;
    }
    .hcu-loading-mo,
    .hcu-loading-ring,
    .hcu-loading-dots span,
    .hcu-modal-header-icon i,
    .hcu-trigger-spark,
    .hcu-trigger-icon-badge i,
    .hcu-skel,
    .hcu-card-attention.high-priority,
    .hcu-mo-bubble-fullbody-img img {
        animation: none !important;
    }
}

/* ── Mobile — full-screen modal, cards stack ─────────────────────────── */
@media (max-width: 768px) {
    .hcu-modal {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }
    .hcu-modal.show { transform: none; }
    body.impersonating .hcu-modal {
        top: 32px;
        height: calc(100vh - 32px);
    }
    .hcu-modal-header { padding: 14px 16px; gap: 10px; }
    .hcu-modal-mo { width: 44px; height: 44px; }
    .hcu-modal-title { font-size: 18px; }
    .hcu-modal-subtitle { font-size: 12px; }
    .hcu-modal-body { padding: 16px 14px 14px; }
    .hcu-loading-mo-wrap { width: 100px; height: 100px; }
    .hcu-loading-mo { width: 72px; height: 72px; }
    .hcu-loading-phrase { font-size: 13px; padding: 9px 14px; }
    .hcu-mo-bubble { padding: 14px; gap: 12px; }
    .hcu-mo-bubble-avatar { width: 42px; height: 42px; }
    .hcu-mo-bubble-text { font-size: 14.5px; }
    /* Full-body Mo gets smaller on mobile so the bubble stays compact */
    .hcu-mo-bubble-fullbody { padding: 12px 14px 12px 10px; gap: 12px; min-height: 100px; }
    .hcu-mo-bubble-fullbody-img { width: 90px; height: 100px; }
    .hcu-since-anchor { font-size: 10px; padding: 2px 8px; }
    .hcu-allcaught { padding: 28px 16px 22px; }
    .hcu-allcaught-icon { width: 64px; height: 64px; font-size: 24px; }
    .hcu-allcaught-title { font-size: 18px; }
    .hcu-allcaught-sub { font-size: 14px; }

    /* Trigger button on mobile — smaller padding so it fits the narrow header */
    .hcu-trigger-btn { font-size: 12px; padding: 5px 11px 5px 5px; gap: 6px; }
    .hcu-trigger-mo { width: 24px; height: 24px; }
}

/* ── Dark theme ─────────────────────────────────────────────────────── */
body.dark-theme .hcu-modal { background: var(--theme-bg, #1a1d23); }
body.dark-theme .hcu-modal-body { background: var(--theme-bg, #1a1d23); }
body.dark-theme .hcu-mo-bubble {
    background: linear-gradient(135deg, var(--theme-surface, #232830) 0%, var(--theme-surface-alt, #2a2f38) 100%);
    border-color: var(--theme-border, #353a44);
}
body.dark-theme .hcu-mo-bubble-text { color: var(--theme-text, #e5e7eb); }
body.dark-theme .hcu-section-narrator { color: var(--theme-text-muted, #9ca3af); }
body.dark-theme .hcu-section-footer  { color: var(--theme-text-muted, #9ca3af); }
body.dark-theme .hcu-card {
    background: var(--theme-surface, #232830);
    border-color: var(--theme-border, #353a44);
}
body.dark-theme .hcu-card-title  { color: var(--theme-text, #e5e7eb); }
body.dark-theme .hcu-card-sub    { color: var(--theme-text-muted, #9ca3af); }
body.dark-theme .hcu-card-sub strong { color: var(--theme-text, #e5e7eb); }
body.dark-theme .hcu-card-head   { border-bottom-color: var(--theme-border, #353a44); }
body.dark-theme .hcu-card-list li { color: var(--theme-text, #e5e7eb); }
body.dark-theme .hcu-card-empty   { color: var(--theme-text-muted, #6b7280); }
body.dark-theme .hcu-since-anchor {
    background: var(--theme-surface-alt, #2a2f38);
    color: var(--theme-text-muted, #9ca3af);
    border-color: var(--theme-border, #353a44);
}
body.dark-theme .hcu-modal-foot   { border-top-color: var(--theme-border, #353a44); color: var(--theme-text-muted, #9ca3af); }
body.dark-theme .hcu-footer-regen { background: var(--theme-surface, #232830); border-color: var(--theme-border, #353a44); color: #6ee7b7; }
body.dark-theme .hcu-loading-phrase {
    background: var(--theme-surface, #232830);
    border-color: var(--theme-border, #353a44);
    color: #e5e7eb;
}
body.dark-theme .hcu-loading-phrase i { color: #6ee7b7; }
body.dark-theme .hcu-skel {
    background: linear-gradient(90deg, #2a2f38 0%, #353a44 50%, #2a2f38 100%);
}
body.dark-theme .hcu-empty-icon {
    background: linear-gradient(135deg, var(--theme-surface, #232830), var(--theme-surface-alt, #2a2f38));
    color: #6ee7b7;
}
body.dark-theme .hcu-empty-title { color: var(--theme-text, #e5e7eb); }
body.dark-theme .hcu-empty-btn   { background: var(--theme-surface, #232830); border-color: var(--theme-border, #353a44); color: var(--theme-text, #e5e7eb); }
body.dark-theme .hcu-empty-btn > i { background: var(--theme-surface-alt, #2a2f38); color: #6ee7b7; }
body.dark-theme .hcu-pf-tile   { background: var(--theme-surface, #232830); border-color: var(--theme-border, #353a44); }
body.dark-theme .hcu-pf-tile-value { color: var(--theme-text, #e5e7eb); }
body.dark-theme .hcu-pf-tile-sub   { color: var(--theme-text-muted, #9ca3af); }
body.dark-theme .hcu-pf-tile-label { color: var(--theme-text-muted, #9ca3af); }
body.dark-theme .hcu-pf-tile-trend { background: var(--theme-surface-alt, #2a2f38); color: var(--theme-text-muted, #9ca3af); }
body.dark-theme .hcu-pf-tile-trend.up   { background: rgba(34, 197, 94, 0.18); color: #6ee7b7; }
body.dark-theme .hcu-pf-tile-trend.down { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
body.dark-theme .hcu-highlight {
    background: linear-gradient(135deg, var(--theme-surface, #232830) 0%, var(--theme-surface-alt, #2a2f38) 100%);
    border-color: var(--theme-border, #353a44);
    border-left-color: #6ee7b7;
}
body.dark-theme .hcu-highlight:hover { border-left-color: #a7f3d0; }
body.dark-theme .hcu-highlight-icon {
    background: linear-gradient(135deg, var(--theme-surface-alt, #2a2f38), var(--theme-bg, #1a1d23));
    color: #6ee7b7;
}
body.dark-theme .hcu-highlight-text { color: var(--theme-text, #e5e7eb); }
body.dark-theme .hcu-amt,
body.dark-theme .hcu-amt-pct { color: #6ee7b7; }
body.dark-theme .hcu-pf-tile-mtd .hcu-pf-tile-value,
body.dark-theme .hcu-pf-tile-ytd .hcu-pf-tile-value { color: #6ee7b7; }
body.dark-theme .hcu-allcaught   { background: linear-gradient(180deg, var(--theme-surface, #232830) 0%, var(--theme-surface-alt, #2a2f38) 100%); border-color: var(--theme-border, #353a44); }
body.dark-theme .hcu-allcaught-icon { background: var(--theme-surface, #232830); color: #6ee7b7; }
body.dark-theme .hcu-allcaught-title { color: var(--theme-text, #e5e7eb); }
body.dark-theme .hcu-allcaught-sub   { color: var(--theme-text-muted, #9ca3af); }
