/* ==================== HOME HUB — v38 Redesign ==================== */

/* ── SECTION LABELS — SF Pro, small caps, ruled line ── */
.section-label {
    font-family: var(--font-sf);
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.section-label::after {
    content: ''; flex: 1; height: 1px;
}
.section-label.blue { color: var(--apple-blue); }
.section-label.blue::after { background: linear-gradient(90deg, rgba(0,122,255,0.2), transparent); }
.section-label.red { color: var(--apple-red); }
.section-label.red::after { background: linear-gradient(90deg, rgba(255,59,48,0.2), transparent); }
.section-label-badge {
    font-weight: 500; color: var(--text-tertiary);
    letter-spacing: 0.02em; font-size: 10px; margin-left: 4px;
}

/* ── HOME HERO — Floating greeting on wallpaper ── */
.home-hero {
    position: relative;
    padding: 48px 0 32px;
}
.hero-greeting {
    font-family: var(--font-ny-xl);
    font-size: 44px;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.06;
    color: var(--text-primary);
    margin: 0 0 8px;
}
.hero-sub {
    font-family: var(--font-sf);
    font-size: 16px;
    font-weight: 450;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
    max-width: 520px;
}
.hero-sub strong { color: var(--apple-green); font-weight: 600; }

/* Subtle accent line after greeting */
.home-hero::after {
    content: '';
    display: block;
    width: 36px;
    height: 2.5px;
    background: var(--apple-blue);
    border-radius: 2px;
    margin-top: 24px;
    opacity: 0.5;
}

/* Ambient Weather — positioned top-right of home hero */
.ambient-weather {
    position: absolute;
    top: 48px;
    right: 0;
    z-index: 3;
    text-align: right;
    cursor: default;
}
.ambient-weather:hover { transform: none; }
.ambient-weather-temp {
    font-family: var(--font-sf);
    font-size: 48px;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}
.ambient-weather-desc {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.01em;
    margin-top: 2px;
}
.ambient-weather-emoji {
    font-size: 32px;
    display: block;
    margin: 4px 0 4px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
    animation: weatherBreathe 6s ease-in-out infinite;
}
.ambient-weather:hover .ambient-weather-emoji {
    transform: scale(1.08);
}
@keyframes weatherBreathe { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }

/* ═══════════════════════════════════════
   COMMAND CENTER — The Homepage Widget
   ═══════════════════════════════════════ */
.command-center {
    background: linear-gradient(145deg, #1c1c1e 0%, #2c2c2e 50%, #1a1a1c 100%);
    border-radius: 28px;
    corner-shape: squircle;
    padding: 32px 36px 28px;
    margin-bottom: 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}
.command-center:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 56px rgba(0,0,0,0.2);
}

/* Subtle noise texture overlay */
.command-center::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: inherit;
}

/* ── Top Row: Date + Clock ── */
.cc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

/* Date (left) */
.cc-day-name {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cc-date-sub {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    letter-spacing: -0.01em;
}

/* Clock (right) */
.cc-clock {
    text-align: right;
}
.cc-time {
    font-size: 48px;
    font-weight: 200;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,0.9);
}
.cc-time-ampm {
    font-size: 20px;
    font-weight: 500;
    margin-left: 4px;
    opacity: 0.5;
}
.cc-weather {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.3);
    margin-top: 4px;
}

/* ── Divider ── */
.cc-divider {
    height: 0.5px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 20px;
}

/* ── Bottom Row: 4-Column Utility Strip ── */
.cc-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.cc-col-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.cc-col-icon {
    font-size: 12px;
    font-weight: 800;
}
.cc-col-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}
.cc-col-value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: var(--mono-ls-medium);
    color: #fff;
}
.cc-col-sub {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.3);
    margin-top: 2px;
}

/* ── Command Center Mobile ── */
@media (max-width: 768px) {
    .command-center {
        padding: 24px 22px 22px;
        border-radius: 22px;
    }
    .cc-day-name { font-size: 32px; }
    .cc-date-sub { font-size: 16px; }
    .cc-time { font-size: 32px; }
    .cc-time-ampm { font-size: 14px; }
    .cc-strip {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .cc-col-value { font-size: 16px; }
}

@media (max-width: 480px) {
    .command-center { padding: 20px 18px 18px; }
    .cc-top { flex-direction: column; gap: 12px; }
    .cc-clock { text-align: left; }
    .cc-day-name { font-size: 28px; }
    .cc-time { font-size: 28px; }
}

/* ── COMING UP — Editorial Hero ── */
.coming-up-hero {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border: 0.5px solid rgba(255,255,255,0.55);
    border-radius: var(--r-xl); corner-shape: squircle;
    padding: 22px 26px 16px;
    margin-bottom: 28px;
    overflow: hidden;
}

.cu-headline {
    font-family: var(--font-ny-lg);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.25;
    margin: 4px 0 4px;
    letter-spacing: -0.015em;
}
.cu-sub {
    font-family: var(--font-sf);
    font-size: 13px;
    font-weight: 450;
    color: var(--text-tertiary);
    line-height: 1.4;
    margin: 0 0 16px;
}

/* Today / Tomorrow cards */
.cu-today-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.cu-day-card { border-radius: 12px; corner-shape: squircle; padding: 16px 18px; position: relative; overflow: hidden; }
.cu-day-card.today {
    background: linear-gradient(140deg, rgba(0,122,255,0.06), rgba(90,200,250,0.04));
    border: 1px solid rgba(0,122,255,0.08);
}
.cu-day-card.tomorrow {
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.45);
}
.cu-day-tag {
    display: flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 10px;
}
.cu-day-tag.today { color: var(--apple-blue); }
.cu-day-tag.tomorrow { color: var(--text-tertiary); }
.cu-day-tag-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cu-day-tag.today .cu-day-tag-dot { background: var(--apple-blue); box-shadow: 0 0 8px rgba(0,122,255,0.35); }
.cu-day-tag.tomorrow .cu-day-tag-dot { background: var(--text-quaternary); }

.cu-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.cu-item-icon {
    width: 28px; height: 28px; border-radius: 8px; corner-shape: squircle;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cu-item-icon .material-symbols-outlined { font-size: 14px; color: white; }
.cu-item-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cu-item-badge {
    font-size: 11px; font-weight: 600; flex-shrink: 0;
    padding: 2px 8px; border-radius: 6px;
}
.cu-item-badge.bill { color: var(--apple-orange); background: rgba(255,149,0,0.08); }
.cu-item-badge.income { color: var(--apple-green); font-feature-settings: 'tnum' 1; }
.cu-item-badge.event { color: var(--apple-blue); background: rgba(0,122,255,0.08); }
.cu-item-badge.holiday { color: var(--apple-red); background: rgba(255,59,48,0.08); }
.cu-empty { font-family: var(--font-ny-sm); font-style: italic; font-size: 15px; color: var(--text-tertiary); padding: 8px 0; }

/* Timeline */
.cu-timeline-section { border-top: 0.5px solid rgba(0,0,0,0.04); padding-top: 6px; }
.cu-timeline-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0 10px;
}
.cu-timeline-title {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-quaternary);
}
.cu-timeline-outlook {
    font-size: 12px; font-weight: 500; color: var(--text-tertiary);
}
.cu-timeline-outlook strong.green { color: var(--apple-green); }
.cu-timeline-outlook strong.orange { color: var(--apple-orange); }

.cu-timeline {
    display: flex; gap: 8px; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
    padding-bottom: 6px;
}
.cu-timeline::-webkit-scrollbar { display: none; }

.tl-card {
    flex-shrink: 0; width: 76px; padding: 12px 8px;
    border-radius: 14px; corner-shape: squircle;
    background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.04);
    text-align: center; cursor: pointer; transition: all 0.2s ease;
}
.tl-card:hover { background: rgba(0,122,255,0.04); border-color: rgba(0,122,255,0.08); transform: translateY(-2px); }
.tl-card.has-income { background: rgba(52,199,89,0.04); border-color: rgba(52,199,89,0.1); }
.tl-card.has-event { background: rgba(0,122,255,0.03); border-color: rgba(0,122,255,0.06); }
.tl-day { font-size: 11px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; }
.tl-date { font-size: 14px; font-weight: 700; margin: 2px 0 8px; }
.tl-dots { display: flex; justify-content: center; gap: 4px; margin-bottom: 6px; min-height: 10px; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; }
.tl-dot.bill { background: var(--apple-orange); }
.tl-dot.income { background: var(--apple-green); }
.tl-dot.event { background: var(--apple-blue); }
.tl-dot.holiday { background: var(--apple-red); }
.tl-summary { font-size: 10px; font-weight: 600; color: var(--text-tertiary); }
.tl-summary.income { color: var(--apple-green); }
.tl-summary.event { color: var(--apple-blue); }

/* Action row */
.cu-action-row {
    display: flex; gap: 6px; padding-top: 10px;
    border-top: 0.5px solid rgba(0,0,0,0.04);
    margin-top: 6px;
}
.rw-btn {
    font-family: var(--font-sf); font-size: 13px; font-weight: 600;
    color: var(--apple-blue);
    background: rgba(0,122,255,0.06); border: 1px solid rgba(0,122,255,0.08);
    padding: 6px 14px; border-radius: 100px; corner-shape: squircle;
    cursor: pointer; transition: all 0.2s var(--spring);
    display: flex; align-items: center; gap: 4px;
}
.rw-btn:hover { background: rgba(0,122,255,0.12); }
.rw-btn:active { transform: scale(0.95); }
.rw-btn .material-symbols-outlined { font-size: 15px; }

/* ── HEADLINES — Open Editorial ── */
.news-editorial {
    margin-bottom: 28px;
}
.news-ed-header {
    margin-bottom: 16px;
}
.news-ed-rule {
    height: 3px;
    background: linear-gradient(90deg, #FF3B30, #FF6B6B, #FF3B30);
    border-radius: 2px;
    opacity: 0.7;
    margin-bottom: 12px;
}
.news-ed-masthead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.news-ed-label {
    font-family: var(--font-ny-lg);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.news-ed-source {
    font-family: var(--font-sf);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
}

/* ═══════════════════════════════════════
   HEADLINES — Hero + Sidebar Layout
   ═══════════════════════════════════════ */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-height: 0;
}

/* Hero story (left) */
.news-hero {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background: var(--surface-2);
    min-height: 260px;
    transition: opacity 0.15s ease;
    cursor: pointer;
}
.news-hero:hover { opacity: 0.85; }

.news-hero-media {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.news-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-hero-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.news-hero-text {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    z-index: 1;
}
.news-hero-headline {
    font-family: var(--font-ny-lg, Georgia, serif);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.news-hero-meta {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
}

/* Sidebar stories (right stack) */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}
.news-side-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.15s ease;
    padding: 4px 0;
    cursor: pointer;
}
.news-side-item:hover { opacity: 0.7; }

.news-side-thumb {
    width: 88px;
    height: 66px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-2);
}
.news-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-side-text { flex: 1; min-width: 0; }
.news-side-headline {
    font-family: var(--font-editorial, var(--font-sf));
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}
.news-side-meta {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
}

/* Mobile — stack vertically */
@media (max-width: 640px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .news-hero { min-height: 200px; }
    .news-hero-headline { font-size: 18px; }
    .news-side-thumb { width: 72px; height: 54px; border-radius: 8px; }
    .news-side-headline { font-size: 13px; }
}

/* ═══════════════════════════════════════
   NEWS READER MODAL (v46.3)
   ═══════════════════════════════════════ */

.nr-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.nr-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
.nr-backdrop {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nr-card {
    position: relative;
    width: 90%; max-width: 560px; max-height: 85vh;
    background: var(--surface-1);
    border-radius: 24px;
    overflow: hidden;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 0.5px rgba(0,0,0,0.06);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nr-overlay.visible .nr-card {
    transform: translateY(0) scale(1);
}

.nr-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 20px 0;
}
.nr-source-pill {
    display: flex; align-items: center; gap: 8px;
}
.nr-source-name {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--system-red);
}
.nr-source-time {
    font-size: 11px; font-weight: 550;
    color: var(--text-tertiary);
}
.nr-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.06); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s;
}
.nr-close:hover { background: rgba(0,0,0,0.1); }
.nr-close .material-symbols-outlined { font-size: 18px; color: var(--text-tertiary); }

.nr-hero-img {
    margin: 16px 20px 0;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--surface-2);
}
.nr-hero-img img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}

.nr-body {
    padding: 20px 24px 28px;
}
.nr-headline {
    font-family: var(--font-ny-lg, Georgia, serif);
    font-size: 24px; font-weight: 700;
    line-height: 1.3; letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 14px;
}
.nr-description {
    font-family: var(--font-sf);
    font-size: 15px; font-weight: 450;
    line-height: 1.65; color: var(--text-secondary);
    margin: 0 0 20px;
}
.nr-read-more {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 14px; font-weight: 650;
    color: var(--system-blue);
    text-decoration: none;
    padding: 10px 18px;
    background: rgba(0, 122, 255, 0.06);
    border-radius: 12px;
    transition: background 0.15s;
}
.nr-read-more:hover {
    background: rgba(0, 122, 255, 0.12);
}

/* Mobile — bottom sheet style */
@media (max-width: 600px) {
    .nr-overlay { align-items: flex-end; }
    .nr-card {
        width: 100%; max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 90vh;
        transform: translateY(100%);
    }
    .nr-overlay.visible .nr-card { transform: translateY(0); }
    .nr-headline { font-size: 20px; }
    .nr-hero-img { margin: 12px 16px 0; border-radius: 12px; }
    .nr-body { padding: 16px 20px 24px; }
}


/* ── QUICK ACTIONS — Horizontal strip ── */
.quick-actions-strip {
    display: flex; gap: 8px; margin-bottom: 28px;
    overflow-x: auto; scrollbar-width: none; padding: 2px 0;
}
.quick-actions-strip::-webkit-scrollbar { display: none; }
.qa-btn {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 0.5px solid rgba(255,255,255,0.5);
    border-radius: 14px; corner-shape: squircle;
    cursor: pointer; transition: all 0.2s ease;
    font-family: var(--font-sf);
}
.qa-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.qa-btn:active { transform: scale(0.96); }
.qa-icon {
    width: 32px; height: 32px; border-radius: 9px; corner-shape: squircle;
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.qa-icon .material-symbols-outlined { font-size: 17px; }
.qa-label { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }

/* ── BOTTOM GRID — 3 columns: Notes, Pinned, Payoff ── */
.home-bottom-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 16px; margin-bottom: 40px;
}
.card-glass {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border: 0.5px solid rgba(255,255,255,0.5);
    border-radius: var(--r-xl); corner-shape: squircle;
    padding: 20px;
    transition: transform 0.2s ease;
}
.card-glass:hover { transform: translateY(-2px); }
.card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.card-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }

/* Quick Notes — Paper texture */
.w-notes {
    background: #FAFAFC;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 0.5px 0 rgba(255,255,255,0.6) inset, 0 2px 8px rgba(0,0,0,0.03), 0 8px 24px -4px rgba(0,0,0,0.04);
    border-radius: var(--r-xl); corner-shape: squircle;
    padding: 0; overflow: hidden;
    transition: transform 0.3s var(--spring), box-shadow 0.3s ease;
    position: relative;
}
.w-notes:hover { transform: translateY(-3px); box-shadow: 0 0.5px 0 rgba(255,255,255,0.6) inset, 0 4px 12px rgba(0,0,0,0.05), 0 16px 40px -4px rgba(0,0,0,0.07); }
.w-notes::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0;
}
.notes-strip { height: 5px; background: linear-gradient(90deg, #FFCC00, #FFB300); opacity: 0.5; }
.notes-body { padding: 16px 20px 20px; position: relative; z-index: 1; }
.notes-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.notes-add {
    width: 26px; height: 26px;
    border: 1.5px solid rgba(0,0,0,0.06);
    border-radius: var(--r-xs); corner-shape: squircle;
    background: var(--glass-bg-thick); color: var(--text-tertiary);
    font-size: 18px; font-weight: 400; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s var(--spring);
}
.notes-add:hover { border-color: var(--apple-blue); color: var(--apple-blue); transform: scale(1.08); }
.w-notes .note { padding: 9px 0; border-bottom: 1px dashed rgba(0,0,0,0.04); cursor: pointer; transition: opacity 0.15s; }
.w-notes .note:last-child { border-bottom: none; }
.w-notes .note:hover { opacity: 0.65; }
.w-notes .note-text { font-family: var(--font-notes); font-size: 17px; font-weight: 400; color: var(--text-primary); line-height: 1.35; }
.w-notes .note-text .pin { font-family: var(--font-sf); font-size: 11px; margin-right: 3px; }
.w-notes .note-meta { font-family: var(--font-sf); font-size: 10px; color: var(--text-quaternary); font-weight: 500; margin-top: 1px; display: flex; justify-content: space-between; align-items: center; }
.w-notes .note-menu { background: none; border: none; padding: 0; cursor: pointer; opacity: 0; transition: opacity 0.15s; color: var(--text-quaternary); }
.w-notes .note-menu .material-symbols-outlined { font-size: 14px; }
.w-notes .note:hover .note-menu { opacity: 1; }
.note-empty { text-align: center; padding: 16px 0; }

/* Pinned items */
.pi { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: var(--r-xs); corner-shape: squircle; cursor: pointer; transition: background 0.15s ease; }
.pi:hover { background: rgba(0,0,0,0.02); }
.pi-icon { width: 32px; height: 32px; border-radius: 10px; corner-shape: squircle; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pi-icon .material-symbols-outlined { font-size: 15px; color: white; }
.pi-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s; }
.pi:hover .pi-name { color: var(--apple-blue); }
.pi-source { font-size: 11px; color: var(--text-quaternary); font-weight: 400; flex-shrink: 0; }

/* Payoff card */
.po-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.po-link { font-family: var(--font-sf); font-size: 13px; font-weight: 600; color: var(--apple-blue); background: none; border: none; cursor: pointer; transition: opacity 0.15s; }
.po-link:hover { opacity: 0.65; }
.po-body { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.po-ring { width: 54px; height: 54px; position: relative; flex-shrink: 0; }
.po-ring svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.po-ring-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.po-amount { font-family: var(--font-mono); font-size: 28px; font-weight: 600; letter-spacing: var(--mono-ls-large); font-variant-numeric: tabular-nums; }
.po-sub { font-size: 12px; color: var(--text-tertiary); font-weight: 400; margin-top: 2px; }
.po-row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 0.5px solid rgba(0,0,0,0.04); }
.po-row-name { font-size: 13px; color: var(--text-secondary); font-weight: 400; }
.po-row-val { font-size: 13px; font-weight: 600; font-feature-settings: 'tnum' 1; }

/* ── WIDGET GRID (legacy — kept for any remaining widgets) ── */
.wgrid { display: grid; gap: 20px; margin-top: 20px; margin-bottom: 24px; }
.wgrid.c2 { grid-template-columns: 1fr 1fr; gap: 20px; }
.widget { padding: 20px; border-radius: 20px; }

/* Widget title (legacy — still used by some widgets) */
.wtitle {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-sf); font-size: 15px; font-weight: 600;
    color: var(--text-primary); letter-spacing: -0.01em;
}
.wtitle-icon {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wtitle-icon .material-symbols-outlined { font-size: 16px; color: #fff; }
.wtitle-badge {
    font-size: 11px; font-weight: 500; color: var(--text-tertiary);
    background: var(--glass-bg-thin); padding: 2px 8px; border-radius: 6px;
    margin-left: auto;
}
.wtitle-action {
    background: none; border: none; cursor: pointer;
    opacity: 0.4; transition: opacity 0.15s;
}
.wtitle-action:hover { opacity: 1; }

/* Joint Funding strip (kept for Money Overview reference) */
.funding {
    margin-bottom: 20px;
    border-radius: var(--r-lg); corner-shape: squircle;
    padding: 16px 20px;
    display: flex; align-items: center; gap: 16px;
    cursor: pointer; transition: transform 0.3s var(--spring);
}
.funding:hover { transform: translateY(-2px); }
.funding-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.funding-info { min-width: 0; }
.funding-status-badge {
    font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
    padding: 2px 9px; border-radius: 100px;
    background: color-mix(in srgb, currentColor 8%, transparent);
}
.funding-sub { font-size: 12px; color: var(--text-tertiary); font-weight: 400; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funding-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.funding-num {
    font-family: var(--font-ny-lg); font-size: 22px; font-weight: 400;
    letter-spacing: -0.02em; font-feature-settings: 'tnum' 1; line-height: 1;
}
.funding-of { font-size: 11px; color: var(--text-tertiary); text-align: right; font-weight: 400; }
.funding-bar { width: 72px; height: 4px; background: rgba(0,0,0,0.04); border-radius: 100px; overflow: hidden; }
.funding-bar-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--apple-green), var(--apple-teal)); transition: width 1s cubic-bezier(0.4,0,0,1); }
.funding-chevron { color: var(--text-quaternary); transition: all 0.25s var(--spring); display: flex; }
.funding:hover .funding-chevron { color: var(--text-secondary); transform: translateX(3px); }
.funding-chevron .material-symbols-outlined { font-size: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .home-hero { padding: 24px 0 16px; }
    .hero-greeting { font-size: 32px; }
    .ambient-weather { top: 0; right: 0; }
    .ambient-weather-emoji { font-size: 28px; }
    .ambient-weather-temp { font-size: 28px; }
    .hmc-splits { gap: 10px; }
    .hmc-hero-value { font-size: 24px; }
    .cu-today-grid { grid-template-columns: 1fr; }
    .cu-headline { font-size: 19px; }
    .tl-card { width: 68px; padding: 10px 6px; }
    .home-bottom-grid { grid-template-columns: 1fr 1fr; }
    .wgrid.c2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .home-bottom-grid { grid-template-columns: 1fr; }
    .hmc-inner { flex-direction: column; }
    .hmc-date {
        flex-direction: row;
        gap: 8px;
        padding: 12px 20px;
        border-right: none;
        border-bottom: 0.5px solid rgba(0,0,0,0.04);
    }
    .hmc-day-num { font-size: 24px; }
    .hmc-chevron { display: none; }
}


/* ═══════════════════════════════════════════
   "GOT PAID?" ENTRY CARD
   ═══════════════════════════════════════════ */

.gp-entry-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(52,199,89,0.08), rgba(48,176,199,0.06));
    border: 1px solid rgba(52,199,89,0.15);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.gp-entry-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(52,199,89,0.1);
}
.gp-entry-card:active { transform: scale(0.98); }
.gp-entry-icon {
    width: 40px; height: 40px;
    border-radius: 12px; corner-shape: squircle;
    background: linear-gradient(135deg, rgba(52,199,89,0.12), rgba(48,176,199,0.10));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.gp-entry-icon .material-symbols-outlined {
    font-size: 20px; color: var(--system-green);
}
.gp-entry-title {
    font-size: 16px; font-weight: 700;
    color: var(--text-primary);
}
.gp-entry-sub {
    font-size: 12px; font-weight: 500;
    color: var(--text-tertiary); margin-top: 1px;
}
.gp-entry-arrow {
    font-size: 14px; color: var(--text-quaternary);
    margin-left: auto;
}


/* ═══ "Got Paid" Wizard — macOS-aligned ═══ */

.gpw-dialog {
    width: min(480px, calc(100vw - 48px));
}

.gpw-body {
    padding: 12px 24px 24px;
}

/* Person selector */
.gpw-person-row {
    display: flex; gap: 10px;
}
.gpw-person-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; flex: 1; justify-content: center;
    background: rgba(0,0,0,0.02);
    border: 2px solid transparent;
    border-radius: 16px;
    corner-shape: squircle;
    cursor: pointer; transition: all 0.15s;
    font-family: var(--font-sf); font-size: 15px; font-weight: 650;
    color: var(--text-secondary);
}
.gpw-person-btn.active {
    background: rgba(52,199,89,0.06);
    border-color: var(--system-green);
    color: var(--text-primary);
}
.gpw-person-btn .hb-avatar {
    transition: box-shadow 0.15s;
}
.gpw-person-btn.active .hb-avatar {
    box-shadow: 0 0 0 2px var(--system-green), 0 1px 4px rgba(52,199,89,0.2);
}

/* Amount input — large, clean */
.gpw-amount-row {
    display: flex; align-items: center;
}
.gpw-dollar {
    font-family: var(--font-mono); font-size: 28px; font-weight: 700;
    color: var(--text-quaternary); margin-right: 4px;
}
.gpw-amount-input {
    font-family: var(--font-mono); font-size: 36px; font-weight: 750;
    color: var(--text-primary); background: none; border: none; outline: none;
    width: 100%; letter-spacing: -0.005em;
    -moz-appearance: textfield;
}
.gpw-amount-input::placeholder { color: var(--text-quaternary); }
.gpw-amount-input::-webkit-outer-spin-button,
.gpw-amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Tags — pill shape */
.gpw-tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gpw-tag {
    font-family: var(--font-sf); font-size: 13px; font-weight: 650;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1.5px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.02); color: var(--text-secondary);
    cursor: pointer; transition: all 0.15s;
}
.gpw-tag:hover { background: rgba(0,0,0,0.04); }
.gpw-tag.active {
    background: var(--system-blue); border-color: var(--system-blue); color: white;
}

/* ── Step 2 ── */

/* Income pill */
.gpw-income-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; margin-bottom: 14px;
    background: rgba(52,199,89,0.05);
    border-radius: 16px;
    border: 1px solid rgba(52,199,89,0.10);
}
.gpw-pill-label { font-size: 14px; font-weight: 550; color: var(--text-secondary); }
.gpw-pill-amount { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--system-green); margin-left: auto; }

/* Status bar */
.gpw-status {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; margin-bottom: 14px;
    background: rgba(0,0,0,0.02);
    border-radius: 14px;
    border-left: 3px solid var(--system-blue);
}
.gpw-status-title { font-size: 14px; font-weight: 650; color: var(--text-primary); }
.gpw-status-sub { font-size: 12px; font-weight: 500; color: var(--text-tertiary); margin-top: 2px; }

/* Section label */
.gpw-section-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--text-quaternary); margin-bottom: 6px;
}

/* Context row */
.gpw-context-row { display: flex; gap: 10px; margin-bottom: 14px; }
.gpw-context-item {
    flex: 1; background: rgba(0,0,0,0.02);
    border-radius: 14px; padding: 14px 16px;
}
.gpw-context-val {
    font-family: var(--font-mono); font-size: 16px; font-weight: 700;
    color: var(--text-primary); letter-spacing: -0.005em;
}
.gpw-context-of { font-size: 12px; font-weight: 550; color: var(--text-tertiary); }
.gpw-context-sub { font-size: 11px; font-weight: 500; color: var(--text-tertiary); margin-top: 2px; }
.gpw-mini-bar { height: 3px; background: rgba(0,0,0,0.04); border-radius: 100px; margin-top: 8px; overflow: hidden; }
.gpw-mini-fill { height: 100%; border-radius: 100px; transition: width 0.4s ease; }

/* Bills */
.gpw-context-section { margin-bottom: 14px; }
.gpw-bill-row {
    display: flex; align-items: center; gap: 6px; padding: 7px 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.04);
}
.gpw-bill-name { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; }
.gpw-bill-meta { font-size: 11px; font-weight: 500; color: var(--text-tertiary); }
.gpw-bill-amt { font-family: var(--font-mono); font-size: 13px; font-weight: 650; color: var(--text-primary); }
.gpw-bill-more { font-size: 11px; font-weight: 550; color: var(--text-tertiary); padding: 5px 0; }

/* ═══ Split Card ═══ */
.gpw-split-card {
    background: white;
    border-radius: 20px;
    padding: 20px 22px; margin-bottom: 18px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.03), 0 0 0 0.5px rgba(0,0,0,0.03);
}
.gpw-split-row { display: flex; align-items: center; margin-bottom: 20px; }
.gpw-split-col { flex: 1; text-align: center; }
.gpw-split-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--text-tertiary); margin-bottom: 4px;
}
.gpw-split-val {
    font-family: var(--font-mono); font-size: 26px; font-weight: 750;
    letter-spacing: -0.01em; line-height: 1.1;
}
.gpw-split-val.transfer { color: var(--system-blue); }
.gpw-split-val.keep { color: var(--system-green); }
.gpw-split-pct {
    font-family: var(--font-mono); font-size: 11px; font-weight: 650;
    color: var(--text-quaternary); margin-top: 3px;
}
.gpw-split-arrow {
    width: 32px; text-align: center; font-size: 16px; color: var(--text-quaternary);
    margin-top: 14px;
}

/* ═══ macOS-Style Slider ═══ */
.gpw-slider-wrap { margin-bottom: 14px; padding: 0 2px; }

.gpw-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 4px;
    border-radius: 100px;
    background: rgba(0,0,0,0.08);
    outline: none; cursor: pointer;
    position: relative;
}
/* Track fill — uses a gradient trick */
.gpw-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 100px;
    background: linear-gradient(to right,
        var(--system-blue) 0%,
        var(--system-blue) var(--fill, 50%),
        rgba(0,0,0,0.08) var(--fill, 50%),
        rgba(0,0,0,0.08) 100%);
}
/* Thumb — macOS-style white circle with subtle shadow */
.gpw-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: white;
    border: 0.5px solid rgba(0,0,0,0.04);
    box-shadow: 0 0.5px 1px rgba(0,0,0,0.1),
                0 1px 3px rgba(0,0,0,0.08),
                0 2px 8px rgba(0,0,0,0.06);
    cursor: grab;
    margin-top: -9px;
    transition: box-shadow 0.15s;
}
.gpw-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0.5px 1px rgba(0,0,0,0.12),
                0 1px 4px rgba(0,0,0,0.10),
                0 3px 10px rgba(0,0,0,0.08);
}
.gpw-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    box-shadow: 0 0.5px 1px rgba(0,0,0,0.14),
                0 2px 6px rgba(0,0,0,0.12),
                0 4px 14px rgba(0,0,0,0.08);
}

/* Firefox */
.gpw-slider::-moz-range-track {
    height: 4px; border-radius: 100px;
    background: rgba(0,0,0,0.08);
}
.gpw-slider::-moz-range-progress {
    height: 4px; border-radius: 100px;
    background: var(--system-blue);
}
.gpw-slider::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: white; border: 0.5px solid rgba(0,0,0,0.04);
    box-shadow: 0 0.5px 1px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.06);
    cursor: grab;
}

.gpw-slider-labels { display: flex; justify-content: space-between; margin-top: 6px; }
.gpw-slider-labels span {
    font-size: 10px; font-weight: 600; color: var(--text-quaternary);
    text-transform: uppercase; letter-spacing: 0.03em;
}

/* Presets — full pill shape */
.gpw-preset-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.gpw-preset {
    font-family: var(--font-sf); font-size: 12px; font-weight: 650;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1.5px solid rgba(0,0,0,0.08); background: rgba(0,0,0,0.02);
    color: var(--text-secondary); cursor: pointer; transition: all 0.12s;
}
.gpw-preset:hover { background: rgba(0,0,0,0.05); }

/* ═══ Action Buttons — bigger, rounder ═══ */
.gpw-confirm {
    font-family: var(--font-sf); font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 24px;
    border-radius: 16px;
    corner-shape: squircle;
    border: none;
    background: var(--system-blue); color: white; width: 100%;
    cursor: pointer; transition: all 0.15s;
    margin-bottom: 8px;
}
.gpw-confirm:hover { opacity: 0.92; }
.gpw-confirm:active { transform: scale(0.98); }
.gpw-confirm .material-symbols-outlined { font-size: 18px; }

.gpw-skip {
    font-family: var(--font-sf); font-size: 13px; font-weight: 600;
    color: var(--text-tertiary); background: none; border: none;
    cursor: pointer; width: 100%; padding: 10px; text-align: center;
    border-radius: 12px;
}
.gpw-skip:hover { color: var(--text-secondary); background: rgba(0,0,0,0.02); }

/* ─── Mobile ─── */
@media (max-width: 600px) {
    .gpw-amount-input { font-size: 28px; }
    .gpw-split-val { font-size: 22px; }
    .gpw-context-val { font-size: 14px; }
    .gpw-confirm { padding: 14px 20px; font-size: 15px; }
}
