/**
 * Home dashboard v3 — mockup-aligned command center
 */
body.zl-home-v3 {
    --zl-home-sidebar: rgba(15, 16, 20, 0.58);
    --zl-home-sidebar-border: rgba(255, 255, 255, 0.1);
    --zl-home-canvas: #f4f4f8;
    --zl-home-card: #ffffff;
    --zl-home-accent: #7da82a;
    --zl-home-accent-bright: #c9ff57;
    --zl-home-accent-soft: rgba(201, 255, 87, 0.18);
    --zl-home-accent-dim: rgba(125, 168, 42, 0.14);
    --zl-home-lime: #7da82a;
    --zl-home-lime-bright: #c9ff57;
}

body.zl-home-v3 .zl-atmosphere {
    display: none;
}

body.zl-home-v3 .dashboard {
    min-height: 100vh;
    background: var(--zl-home-canvas);
}

/* Sidebar chrome lives in design-system.css for all app pages */

body.zl-home-v3 .main-content {
    padding: 1.35rem 1.75rem 2rem !important;
    max-width: none !important;
    background: var(--zl-home-canvas);
}

/* ——— Header ——— */
.zl-home-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.zl-home-greeting-label {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
}

.zl-home-v3 .zl-home-top .zl-display {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.65rem);
    color: #1a1a1f;
}

.zl-home-v3 .zl-home-top .zl-display em {
    font-style: italic;
    color: var(--zl-home-accent);
}

.zl-home-tagline {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    color: #6b7280;
}

.zl-home-top-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.zl-home-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
    background: var(--zl-home-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.zl-home-date-pill:hover {
    background: rgba(201, 255, 87, 0.12);
    box-shadow: 0 4px 14px rgba(125, 168, 42, 0.12);
}

.zl-home-stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1.1rem;
    background: var(--zl-home-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.zl-home-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.zl-home-stat-item .num {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    color: #1a1a1f;
}

.zl-home-stat-item .lbl {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.zl-home-stat-sub {
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #9ca3af !important;
}

.zl-home-stat-divider {
    width: 1px;
    height: 2.5rem;
    background: rgba(0, 0, 0, 0.08);
}

.zl-home-theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--zl-home-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ——— Ask bar ——— */
.zl-home-ask {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem 0.85rem 1.15rem;
    margin-bottom: 1.5rem;
    background: var(--zl-home-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.zl-home-ask:hover {
    border-color: rgba(125, 168, 42, 0.35);
    box-shadow: 0 6px 28px rgba(125, 168, 42, 0.12);
}

.zl-home-ask-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--zl-home-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zl-home-accent);
    flex-shrink: 0;
}

.zl-home-ask-text {
    flex: 1;
    font-size: 1rem;
    color: #9ca3af;
}

.zl-home-ask-go {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9ff57, #7da82a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.zl-home-ask kbd {
    display: none;
}

/* ——— Grid ——— */
.zl-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    align-items: start;
}

.zl-home-card {
    background: var(--zl-home-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Life graph */
.zl-home-graph {
    grid-column: 1;
    grid-row: 1;
    padding: 1.1rem 1.25rem 1rem;
}

.zl-home-graph-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.zl-home-graph-head h2 {
    margin: 0;
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1f;
}

.zl-home-graph-sub {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

.zl-home-graph-head-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.zl-home-graph-range {
    display: inline-flex;
    padding: 3px;
    background: #f3f4f6;
    border-radius: 999px;
    gap: 2px;
}

.zl-home-graph-range button {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    cursor: pointer;
}

.zl-home-graph-range button.active {
    background: #fff;
    color: #7c3aed;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.zl-home-graph-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.zl-home-graph-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--zl-home-accent);
    text-decoration: none;
}

.zl-home-graph-link-life {
    font-weight: 700;
    color: #5b7c1a;
}

.zl-life-graph-zoom-hint {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: #3d5212;
    background: rgba(201, 255, 87, 0.25);
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(125, 168, 42, 0.35);
}

.zl-life-graph-zoom-hint:hover {
    background: rgba(201, 255, 87, 0.45);
}

.zl-life-graph-zoom-hint[hidden] {
    display: none !important;
}

.zl-home-graph-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.zl-life-graph-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.zl-life-graph-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 4px;
    background: #f3f4f6;
    border-radius: 999px;
}

.zl-life-graph-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.zl-life-graph-filter [data-lucide],
.zl-life-graph-filter svg {
    width: 14px;
    height: 14px;
}

.zl-life-graph-filter.active {
    background: #fff;
    color: #1a1a1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.zl-life-graph-date-wrap {
    position: relative;
}

.zl-life-graph-date-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.zl-life-graph-date-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    min-width: 140px;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.zl-life-graph-date-menu button {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.zl-life-graph-date-menu button:hover {
    background: rgba(201, 255, 87, 0.2);
}

/* Gradient wave */
.zl-life-graph-viz {
    position: relative;
    margin-bottom: 0.35rem;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #fafbff 0%, #f8fafc 100%);
    cursor: crosshair;
}

.zl-life-graph-viz::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.5;
    pointer-events: none;
}

.zl-life-graph-svg {
    display: block;
    width: 100%;
    height: 132px;
    pointer-events: auto;
}

.zl-life-graph-marker {
    pointer-events: all;
}

.zl-life-graph-area {
    fill: url(#zlLifeArea);
}

.zl-life-graph-line {
    fill: none;
    stroke: url(#zlLifeLine);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.zl-life-graph-drop {
    stroke: rgba(148, 163, 184, 0.45);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.zl-life-graph-marker {
    cursor: pointer;
    outline: none;
}

.zl-life-graph-marker .zl-life-graph-drop {
    opacity: 0.35;
    transition: opacity 0.2s;
}

.zl-life-graph-marker:hover .zl-life-graph-drop,
.zl-life-graph-marker.is-active .zl-life-graph-drop {
    opacity: 1;
}

.zl-life-graph-dot {
    fill: #fff;
    stroke: #c9ff57;
    stroke-width: 2.5;
    filter: url(#zlGemGlow);
    transition: transform 0.2s, stroke-width 0.2s;
}

.zl-life-graph-dot-glow {
    fill: rgba(201, 255, 87, 0.35);
    stroke: none;
    pointer-events: none;
}

.zl-life-graph-marker:hover .zl-life-graph-dot,
.zl-life-graph-marker.is-active .zl-life-graph-dot {
    transform: scale(1.15);
    stroke-width: 3;
}

.zl-life-graph-marker.is-active .zl-life-graph-dot-glow {
    fill: rgba(201, 255, 87, 0.55);
}

.zl-life-graph-axis {
    display: flex;
    justify-content: space-between;
    padding: 0 1.25rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #9ca3af;
    text-transform: uppercase;
}

.zl-home-graph-events {
    margin-top: 0.5rem;
    overflow: hidden;
}

.zl-life-graph-cards {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding: 0.25rem 0.15rem 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.zl-life-graph-cards::-webkit-scrollbar {
    height: 6px;
}

.zl-life-graph-cards::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.zl-life-card {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    padding: 0.75rem 0.75rem 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 176px;
}

.zl-life-card-wrap {
    flex: 0 0 140px;
    scroll-snap-align: start;
}

.zl-life-card-wrap.is-active .zl-life-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(125, 168, 42, 0.22);
    border-color: rgba(125, 168, 42, 0.45);
}

.zl-life-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.zl-life-card-pov {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7c3aed;
    background: rgba(167, 139, 250, 0.2);
    border-radius: 6px;
}

.zl-life-card--money {
    background: linear-gradient(180deg, #fffbeb 0%, #fff 50%);
}

.zl-life-card-amount {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: #1a1a1f;
    margin: 0.25rem 0;
}

.zl-life-card-time {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #9ca3af;
}

.zl-life-card-title {
    margin: 0.35rem 0 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1a1a1f;
}

/* Run — map */
.zl-life-card--run {
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 45%);
}

.zl-life-card-map {
    flex: 1;
    border-radius: 12px;
    background: linear-gradient(145deg, #dcfce7, #bbf7d0);
    padding: 0.35rem;
    min-height: 72px;
}

.zl-life-map-svg {
    width: 100%;
    height: 64px;
}

.zl-life-map-track {
    fill: none;
    stroke: #22c55e;
    stroke-width: 3;
    stroke-linecap: round;
}

.zl-life-map-dot {
    fill: #16a34a;
}

.zl-life-map-dot--end {
    fill: #c9ff57;
    stroke: #166534;
    stroke-width: 1;
}

.zl-life-card-stat {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: #6b7280;
}

.zl-life-card-stat-val {
    font-weight: 700;
    color: #ef4444;
}

/* Voice */
.zl-life-card--voice {
    background: linear-gradient(180deg, #faf5ff 0%, #fff 50%);
}

.zl-life-card-wave {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    min-height: 72px;
    padding: 0.25rem 0;
}

.zl-life-card-wave span {
    flex: 1;
    border-radius: 3px;
    background: linear-gradient(180deg, #a78bfa, #7c3aed);
    opacity: 0.85;
}

.zl-life-card-ring {
    align-self: center;
    margin-top: 0.35rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #e9d5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6d28d9;
}

/* Meal */
.zl-life-card--meal .zl-life-card-photo {
    flex: 1;
    min-height: 88px;
    border-radius: 12px;
    background: linear-gradient(145deg, #fed7aa 0%, #fdba74 40%, #f97316 100%);
}

.zl-life-card-loc {
    margin: 0.5rem 0 0;
    font-size: 0.72rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.zl-life-card-loc svg {
    width: 12px;
    height: 12px;
}

/* Focus */
.zl-life-card--focus {
    background: linear-gradient(180deg, #f5f3ff 0%, #fff 50%);
}

.zl-life-card-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    min-height: 80px;
}

.zl-life-card-bars span {
    flex: 1;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #c4b5fd, #7c3aed);
}

.zl-life-card-duration {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #5b21b6;
    text-align: center;
}

/* Walk */
.zl-life-card--walk .zl-life-card-sunset {
    flex: 1;
    min-height: 88px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fde68a 0%, #fb923c 35%, #a855f7 70%, #1e1b4b 100%);
}

.zl-life-card-ring--walk {
    border-color: #fcd34d;
    color: #b45309;
}

/* Journal */
.zl-life-card--journal {
    background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
}

.zl-life-card-quote {
    flex: 1;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #4b5563;
    font-style: italic;
}

.zl-life-card-more {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--zl-home-accent);
}

.zl-home-event-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem 0.45rem 0.45rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s;
}

.zl-home-event-chip:hover {
    background: #f3f4f6;
}

.zl-home-event-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4ff7a, #7da82a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Right rail — beside graph, visible without scroll */
.zl-home-rail {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 1rem;
}

.zl-home-insights {
    padding: 1rem 1.1rem;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.zl-home-insights-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(201, 255, 87, 0.2) 0%, rgba(255, 255, 255, 0) 55%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' opacity='0.12'%3E%3Cpath fill='%237da82a' d='M0 60 Q50 20 100 50 T200 40 V80 H0Z'/%3E%3C/svg%3E") bottom center / cover no-repeat;
    pointer-events: none;
}

.zl-home-insights-inner {
    position: relative;
    z-index: 1;
}

.zl-home-insights h3 {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.zl-home-insights p {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #374151;
}

.zl-home-mood {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1f;
}

.zl-home-mood span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #9ca3af;
}

.zl-home-focus {
    padding: 1rem 1.1rem;
}

.zl-home-focus h3 {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.zl-home-focus-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.zl-home-focus-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: conic-gradient(
        #7da82a 0deg 200deg,
        #c9ff57 200deg 280deg,
        #e5e7eb 280deg 360deg
    );
    position: relative;
    flex-shrink: 0;
}

.zl-home-focus-ring::after {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: var(--zl-home-card);
}

.zl-home-focus-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1f;
    line-height: 1.2;
}

.zl-home-focus-center small {
    font-size: 0.65rem;
    font-weight: 500;
    color: #9ca3af;
}

.zl-home-focus-legend {
    flex: 1;
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.7;
}

.zl-home-focus-legend strong {
    color: #1a1a1f;
    font-weight: 600;
}

/* Metrics row */
.zl-home-metrics {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.zl-home-metric {
    padding: 1.15rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.2s;
}

.zl-home-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.zl-home-metric-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.zl-home-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1f;
    line-height: 1.1;
}

.zl-home-metric-sub {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.zl-home-metric-delta {
    color: var(--zl-home-lime);
    font-weight: 600;
}

.zl-home-metric-bar {
    height: 4px;
    border-radius: 4px;
    background: #e5e7eb;
    margin-top: 0.65rem;
    overflow: hidden;
}

.zl-home-metric-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #c9ff57, #7da82a);
    border-radius: 4px;
}

.zl-home-metric-streak {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.zl-home-metric-streak i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--zl-home-lime);
    display: block;
}

.zl-home-metric-streak i.dim {
    background: #e5e7eb;
}

.zl-home-metric .zl-sparkline {
    margin-top: 0.5rem;
    width: 100%;
    height: 32px;
}

/* Bottom row */
.zl-home-bottom {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.85fr;
    gap: 1.25rem;
}

.zl-home-reflect {
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, #0f1410 0%, #1a2a14 45%, #2d4a22 100%);
    border: none;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.zl-home-reflect::before {
    content: '';
    position: absolute;
    right: -20%;
    bottom: -30%;
    width: 70%;
    height: 120%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpath fill='%23000' fill-opacity='0.25' d='M0 80 L80 60 L160 70 L240 40 L320 55 L400 30 L400 120 L0 120Z'/%3E%3C/svg%3E") bottom / cover no-repeat;
    opacity: 0.6;
}

.zl-home-reflect-inner {
    position: relative;
    z-index: 1;
}

.zl-home-reflect h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-serif, 'Instrument Serif', serif);
    font-size: 1.35rem;
    font-weight: 400;
}

.zl-home-reflect p {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    max-width: 28rem;
}

.zl-home-reflect-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a1f;
    background: #ffffff;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
}

.zl-home-memories {
    padding: 1.15rem 1.25rem;
}

.zl-home-memories h3 {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.zl-home-memories-scroll {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.zl-home-memory-card {
    flex: 0 0 100px;
    text-decoration: none;
    color: inherit;
}

.zl-home-memory-thumb {
    width: 100px;
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fde68a, #f97316);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.zl-home-memory-card span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zl-home-capture {
    padding: 1.15rem 1.25rem;
}

.zl-home-capture h3 {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.zl-home-capture-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.zl-home-capture-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.2s;
}

.zl-home-capture-btn:hover {
    background: #f3f4f6;
    color: #1a1a1f;
}

.zl-home-capture-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
}

.zl-home-goals-panel {
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .zl-home-grid {
        grid-template-columns: 1fr;
    }

    .zl-home-graph,
    .zl-home-rail {
        grid-column: 1;
        grid-row: auto;
    }

    .zl-home-rail {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .zl-home-rail .zl-home-insights,
    .zl-home-rail .zl-home-focus {
        flex: 1;
        min-width: 260px;
    }

    .zl-home-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .zl-home-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.zl-home-v3 .main-content {
        padding: 1.25rem 1rem 2rem !important;
    }

    .zl-home-metrics {
        grid-template-columns: 1fr;
    }

    .zl-home-top {
        flex-direction: column;
    }

    .zl-home-graph-head {
        flex-direction: column;
    }

    .zl-home-graph-head-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .zl-life-card {
        flex: 0 0 132px;
        min-height: 188px;
    }
}
