/* ── WealthMeadow Hub Dashboard ───────────────────────────────────────────── */

:root {
    --green:    #5F7148;
    --green-l:  #7F9660;
    --blue:     #2563EB;
    --purple:   #9333EA;
    --wm-parent:#9A7A3E;
    --wm-parent-soft:#F0E5CE;
    --wm-parent-dark:#3A3830;
    --bg:       #f4f2ed;
    --card:     #ffffff;
    --surface:  #f8f7f3;
    --text:     #191d18;
    --muted:    #686c63;
    --border:   #d8d3c8;
    --radius:   10px;
    --shadow:   0 1px 3px rgba(0,0,0,.06), 0 10px 24px rgba(42,36,24,.07);
}

[data-theme="dark"] {
    --bg:     #151514;
    --card:   #20201d;
    --surface:#262620;
    --text:   #ece8de;
    --muted:  #aaa59a;
    --border: #3a3834;
    --wm-parent:#c0a166;
    --wm-parent-soft:#352f22;
    --wm-parent-dark:#2c2b25;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Top nav ── */
.wm-topnav {
    background: #141914;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 -2px 0 var(--wm-parent);
}

.wm-topnav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.wm-topnav-brand strong { font-weight: 800; }

.wm-app-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--wm-parent);
}
.wm-app-mark svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.wm-app-mark-wealth { color: #d6b66c; }
.wm-app-mark-budget { color: var(--green); }
.wm-app-mark-invest { color: var(--blue); }
.wm-app-mark-retire { color: var(--purple); }

.wm-topnav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wm-upgrade-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 7px;
    letter-spacing: 0.01em;
    transition: opacity 0.15s;
}
.wm-upgrade-btn:hover { opacity: 0.88; }

.wm-theme-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #fff;
    transition: background 0.15s;
}
.wm-theme-btn:hover { background: rgba(255,255,255,0.16); }

/* Avatar + dropdown */
.wm-user-wrap { position: relative; }

.wm-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--wm-parent-dark);
    border: 2px solid rgba(255,255,255,0.20);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}
.wm-avatar:hover { border-color: rgba(255,255,255,0.5); }

.wm-user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #1e2618;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    min-width: 190px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    padding: 6px 0;
    display: none;
    z-index: 200;
}
.wm-user-menu.open { display: block; }

.wm-user-name {
    padding: 10px 14px 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.wm-user-plan {
    padding: 2px 14px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 4px;
}
.wm-user-plan.premium { color: #f5c542; }
.wm-user-plan.free    { color: var(--muted); }

.wm-user-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: background 0.12s;
}
.wm-user-menu a:hover { background: rgba(255,255,255,0.07); color: #fff; }

.wm-signout {
    display: block;
    width: 100%;
    font: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #f87171 !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 4px;
}
.wm-signout:hover { background: rgba(248,113,113,0.10) !important; }

/* ── Main ── */
.wm-main {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 40px 24px 60px;
    display: flex;
    flex-direction: column;
}

.wm-welcome {
    display: none;
    margin-bottom: 32px;
}
.wm-welcome h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.wm-welcome p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ── App cards grid ── */
.wm-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    order: 1;
    margin-bottom: 24px;
}

.wm-app-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.wm-plan-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.wm-plan-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 11px;
    border-radius: 9px;
    background: var(--surface);
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.wm-plan-row:hover,
.wm-plan-row:focus-visible {
    border-color: var(--wm-parent);
    background: var(--card);
    outline: none;
    transform: translateY(-1px);
}

.wm-plan-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wm-plan-row-head strong {
    color: var(--text);
    font-weight: 800;
}

.wm-plan-row-head span {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--card);
    color: var(--muted);
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wm-plan-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wm-plan-links a,
.wm-plan-links span {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: var(--card);
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none;
}

.wm-plan-links a:hover {
    color: var(--text);
    border-color: var(--wm-parent);
}

.wm-plan-more {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.wm-app-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.wm-app-card-action.secondary {
    color: var(--muted);
    font-size: .78rem;
}

/* Clickable cards — raised at rest, depressed on click */
.wm-app-card--clickable {
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.07), 0 6px 20px rgba(0,0,0,.07);
    transform: translateY(0);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.wm-app-card--clickable:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.10), 0 10px 28px rgba(0,0,0,.09);
    transform: translateY(-2px);
}
.wm-app-card--clickable:active {
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    transform: translateY(1px);
    transition: box-shadow 0.06s ease, transform 0.06s ease;
}

/* Colour accent bar at top of each card */
.wm-app-card--budget::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green); }
.wm-app-card--invest::before  { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); }
.wm-app-card--retire::before  { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--purple); }

.wm-app-card.locked {
    opacity: 0.82;
}

.wm-app-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wm-app-card-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wm-app-card-icon-wrap.budget { background: rgba(74,92,51,0.12); }
.wm-app-card-icon-wrap.invest { background: rgba(37,99,235,0.10); }
.wm-app-card-icon-wrap.retire { background: rgba(147,51,234,0.10); }
.wm-app-card-icon-wrap .wm-app-mark {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
}
.wm-app-card-icon-wrap .wm-app-mark svg {
    width: 22px;
    height: 22px;
}

.wm-app-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.wm-app-card-status {
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 2px;
}
.wm-app-card-status.active { color: #16a34a; }
.wm-app-card-status.locked { color: var(--muted); }

.wm-app-card-empty {
    flex: 1;
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

.wm-locked-msg {
    flex: 1;
}
.wm-locked-msg p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Launch buttons */
.wm-launch-btn {
    display: block;
    text-align: center;
    padding: 11px 16px;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s, filter 0.15s;
    margin-top: auto;
}

.wm-launch-btn.budget { background: var(--green);  color: #fff; }
.wm-launch-btn.invest { background: var(--blue);   color: #fff; }
.wm-launch-btn.retire { background: var(--purple); color: #fff; }
.wm-launch-btn.locked {
    background: var(--border);
    color: var(--muted);
    cursor: default;
}

.wm-launch-btn.budget:hover { opacity: 0.88; }
.wm-launch-btn.invest:hover  { opacity: 0.88; }
.wm-launch-btn.retire:hover  { opacity: 0.88; }

/* ── People section ── */
.wm-people-section {
    background: var(--card); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px;
    box-shadow: var(--shadow);
    order: 3;
}
.wm-people-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 16px;
}
.wm-people-title { font-size: 1rem; font-weight: 700; margin: 0 0 3px; }
.wm-people-hint  { font-size: .8rem; color: var(--muted); margin: 0; }

.wm-people-empty {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 24px 16px; text-align: center; color: var(--muted); font-size: .88rem;
}
.wm-people-empty-icon { font-size: 2rem; }
.wm-people-empty strong { color: var(--text); font-size: .95rem; }

.wm-people-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}

.wm-people-section-compact {
    padding: 16px 20px;
    margin-bottom: 0;
}
.wm-people-section-compact .wm-people-header {
    align-items: center;
    margin-bottom: 12px;
}
.wm-people-section-compact .wm-people-hint {
    display: none;
}
.wm-people-section-compact .person-card-name {
    font-size: .88rem;
    font-weight: 700;
}

/* ── Needs person notice ── */
.wm-needs-person {
    margin-top: 10px; font-size: .78rem; color: var(--muted);
    padding: 8px 12px; background: var(--bg); border-radius: 6px; text-align: center;
}
.wm-needs-people-btn { pointer-events: none; }

/* ── Buttons used in the people section (match people.css) ── */
.wm-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 8px; font-size: .875rem; font-weight: 600;
    border: none; cursor: pointer; text-decoration: none; transition: background .15s, opacity .15s;
}
.wm-btn-primary  { background: var(--wm-parent-dark); color: #fff; }
.wm-btn-primary:hover  { filter: brightness(.9); }
.wm-btn-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.wm-btn-secondary:hover { filter: brightness(.95); }
.wm-btn-danger   { background: #dc2626; color: #fff; }
.wm-btn-danger:hover { opacity: .88; }
.wm-btn-sm { padding: 5px 12px; font-size: .78rem; }
.wm-btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-cancel { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .875rem; padding: 8px 12px; }
.btn-cancel:hover { color: var(--text); }
.btn-close  { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); line-height: 1; padding: 4px; }
.btn-close:hover { color: var(--text); }

/* ── Footer ── */
.wm-footer {
    background: #141914;
    padding: 16px 24px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
}
.wm-footer a { color: rgba(255,255,255,0.5); text-decoration: none; margin: 0 10px; }
.wm-footer a:hover { color: #fff; }

/* ── Modals (shared with people.js) ── */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 200;
    align-items: center; justify-content: center; padding: 16px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.modal-overlay.show { display: flex; }
.modal {
    background: var(--card); border-radius: var(--radius);
    padding: 24px; width: 100%; max-width: 520px;
    box-shadow: 0 12px 40px rgba(0,0,0,.18); max-height: 90vh; overflow-y: auto;
}
.modal-wide { max-width: 680px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title  { margin: 0; font-size: 1.1rem; font-weight: 700; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: .82rem; font-weight: 600; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.wm-check-inline { display: inline-flex; align-items: center; gap: 8px; }
.wm-check-inline input { width: auto; }
.req { color: #dc2626; }
.field-note { font-size: .77rem; color: var(--muted); }
.person-location-note { margin: -7px 0 14px; }
.modal input[type="text"],
.modal input[type="number"],
.modal select {
    width: 100%; padding: 9px 12px; border: 1.5px solid var(--border);
    border-radius: 8px; font-size: .875rem; background: var(--card); color: var(--text);
    outline: none; transition: border-color .15s;
}
.modal input:focus, .modal select:focus { border-color: var(--wm-parent); }

/* Person cards inside dashboard */
.wm-people-grid .person-card--clickable:hover { border-color: rgba(154,122,62,.55); }

.wm-people-grid .person-card {
    background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px;
    padding: 14px 16px; transition: border-color .15s;
}
.wm-people-grid .person-card:hover { border-color: rgba(154,122,62,.55); }
.wm-people-grid .person-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.wm-people-grid .person-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--wm-parent-dark); color: #fff;
    font-weight: 700; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wm-people-grid .person-card-info { flex: 1; min-width: 0; }
.wm-people-grid .person-card-name { font-weight: 600; font-size: .9rem; }
.wm-people-grid .person-card-age  { font-size: .76rem; color: var(--muted); }
.wm-people-grid .person-card-actions { display: flex; gap: 6px; }
.wm-people-grid .person-card-details { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.wm-people-grid .person-detail-row { display: flex; gap: 8px; font-size: .78rem; }
.wm-people-grid .person-detail-label { color: var(--muted); min-width: 64px; }
.wm-people-grid .person-retire-incomplete {
    margin-top: 6px;
    padding: 5px 8px;
    border: 1px solid rgba(217,119,6,.32);
    border-radius: 7px;
    background: rgba(217,119,6,.08);
    color: var(--warning);
    font-size: .74rem;
    line-height: 1.35;
}
.wm-people-grid .person-prog-preview { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.wm-people-grid .person-prog-name { font-size: .74rem; color: var(--muted); margin-bottom: 4px; }
.wm-people-grid .person-prog-svg  { width: 100%; height: 52px; display: block; }

.wm-people-section-compact .wm-people-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wm-people-section-compact .wm-people-grid .person-card {
    width: auto;
    min-width: 118px;
    padding: 9px 12px;
}
.wm-people-section-compact .wm-people-grid .person-card-top {
    margin-bottom: 0;
}
.wm-people-section-compact .wm-people-grid .person-avatar,
.wm-people-section-compact .wm-people-grid .person-card-age,
.wm-people-section-compact .wm-people-grid .person-card-details,
.wm-people-section-compact .wm-people-grid .person-prog-preview {
    display: none;
}

/* Career progression picker styles */
.prog-picker { border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.prog-tabs   { display: flex; border-bottom: 1.5px solid var(--border); background: var(--bg); }
.prog-tab    { flex: 1; padding: 8px; font-size: .8rem; font-weight: 600; background: none; border: none; cursor: pointer; color: var(--muted); }
.prog-tab-active { color: var(--wm-parent-dark); border-bottom: 2px solid var(--wm-parent); background: var(--card); }
.prog-tab-pane  { padding: 10px; max-height: 200px; overflow-y: auto; }
.prog-list      { display: flex; flex-direction: column; gap: 6px; }
.prog-item      { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--bg); }
.prog-item-selected { border-color: var(--wm-parent); background: var(--wm-parent-soft); }
.prog-item-info { flex: 1; min-width: 0; }
.prog-item-name { font-weight: 600; font-size: .85rem; }
.prog-item-desc { font-size: .75rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-select-btn { background: var(--wm-parent-dark); color: #fff; border: none; border-radius: 6px; padding: 5px 12px; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.prog-select-btn:hover { filter: brightness(.9); }
.prog-empty { font-size: .82rem; color: var(--muted); padding: 8px 0; }
.prog-mini-preview { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.prog-preview-title { font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.prog-preview-svg   { width: 100%; height: 170px; display: block; cursor: crosshair; touch-action: none; }
.prog-preview-stages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stage-pill { font-size: .72rem; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 2px 10px; color: var(--muted); }
.pp-curve-line { stroke: var(--wm-parent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.pp-dot { fill: var(--wm-parent); stroke: #fff; stroke-width: 2.5; cursor: grab; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.pp-dot:active { cursor: grabbing; }
.pp-dot-label { fill: var(--text); font-size: 12px; font-weight: 700; pointer-events: none; }
.work-schedule-panel { margin-top: 14px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg); padding: 12px; }
.work-schedule-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.work-schedule-list { display: grid; gap: 8px; }
.work-stage-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(90px, 1fr) minmax(110px, 1fr) auto; gap: 10px; align-items: end; }
.work-stage-empty { color: var(--muted); font-size: .84rem; }
.pe-canvas-wrap { position: relative; border: 1.5px solid var(--border); border-radius: 10px; background: var(--card); overflow: hidden; margin-bottom: 4px; }
.pe-svg { width: 100%; height: 200px; display: block; }
.pe-hint { font-size: .78rem; color: var(--muted); margin: 4px 0 10px; }
.pe-point-editor { background: var(--surface); border: 1.5px solid var(--wm-parent); border-radius: 10px; padding: 12px 14px; margin-bottom: 4px; }

/* ── Economic Assumptions card ── */
.wm-assumptions-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--wm-parent);
    order: 2;
}
.wm-assumptions-title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 14px;
}
.wm-assumptions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.wm-assumption-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wm-assumption-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text);
}
.wm-assumption-field {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wm-assumption-input {
    width: 72px;
    padding: 5px 8px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    text-align: right;
    transition: border-color .15s;
}
.wm-assumption-input:focus {
    outline: none;
    border-color: var(--wm-parent);
}
.wm-assumption-select {
    padding: 5px 8px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: .875rem;
    color: var(--text);
    background: var(--bg);
    cursor: pointer;
    transition: border-color .15s;
}
.wm-assumption-select:focus {
    outline: none;
    border-color: var(--wm-parent);
}
.wm-assumption-unit {
    font-size: .85rem;
    color: var(--muted);
}
.wm-assumption-saved {
    font-size: .78rem;
    color: var(--wm-parent);
    font-weight: 600;
    opacity: 0;
    transition: opacity .2s;
}
.wm-assumption-saved.visible { opacity: 1; }
.wm-assumption-hint {
    font-size: .75rem;
    color: var(--muted);
    margin: 0;
    max-width: 280px;
    line-height: 1.4;
}
.wm-assumption-sources {
    max-width: none;
    margin-top: 14px;
    line-height: 1.5;
}

/* Toast */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: #1e293b; color: #fff; padding: 10px 20px; border-radius: 8px;
    font-size: .875rem; z-index: 300; opacity: 0; transition: all .25s;
    white-space: nowrap; pointer-events: none;
}
.toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error   { background: #dc2626; }
.toast-success { background: #16a34a; }

/* ── Responsive ── */
@media (max-width: 800px) {
    .wm-app-grid { grid-template-columns: 1fr; }
    .wm-people-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .wm-main { padding: 24px 16px 48px; }
    .wm-topnav { padding: 0 16px; }
    .wm-upgrade-btn { display: none; }
    .work-stage-row { grid-template-columns: 1fr 1fr; }
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal {
        max-width: 100%;
        max-height: calc(100dvh - env(safe-area-inset-bottom, 0px));
        border-radius: 20px 20px 0 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 22px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .modal-actions {
        position: sticky;
        bottom: 0;
        z-index: 2;
        flex-wrap: wrap;
        padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
        background: var(--card);
    }
    .modal-actions > * { flex: 1 1 130px; }
}

/* WealthMeadow dashboard workspace */
body {
    background-color: #f8f6ef;
    background-image: url('images/backgrounds/wealthmeadow/wealthmeadow-landscape-desktop.webp');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
}
.wm-main { max-width: 1320px; padding: clamp(46px, 7vh, 82px) 32px 56px; }
.wm-welcome { display: block; margin: 0 0 28px; text-align: left; }
.wm-welcome-kicker { display: block; margin-bottom: 10px; color: #806826; font: 800 12px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.wm-welcome h1 { color: #173d31; font: 600 46px/1.1 Cambria, Georgia, 'Times New Roman', serif; letter-spacing: 0; }
.wm-welcome p { max-width: 570px; margin-top: 12px; color: #456055; font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-default-plans { margin-bottom: 22px; }
.wm-dashboard-section-head { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin: 0 0 14px; }
.wm-dashboard-section-head h2 { margin: 4px 0 0; color: #173d31; font: 800 22px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-dashboard-section-head > p { max-width: 350px; margin: 0; color: #52685e; font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; text-align: right; }
.wm-default-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wm-default-plan { min-height: 224px; display: flex; flex-direction: column; padding: 24px; border: 1px solid rgba(23,61,49,.18); border-radius: 8px; background: rgba(255,254,250,.97); box-shadow: 0 12px 28px rgba(28,48,33,.10); color: #173d31; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.wm-default-plan:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(28,48,33,.16); }
.wm-default-plan--budget { border-top: 3px solid #8a793d; }
.wm-default-plan--invest { border-top: 3px solid #2f6f70; }
.wm-default-plan--retire { border-top: 3px solid #684a73; }
.wm-default-plan.is-locked { opacity: .82; }
.wm-default-plan-top { display: flex; align-items: center; gap: 10px; color: #52685e; font: 800 13px/1.35 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-default-plan-top .wm-app-mark { width: 30px; height: 30px; border-radius: 6px; background: transparent; border: 0; }
.wm-default-plan strong { margin-top: 22px; color: #173d31; font: 600 26px/1.22 Cambria, Georgia, 'Times New Roman', serif; }
.wm-default-plan p { margin: 10px 0 20px; color: #456055; font: 14px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-default-plan-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: #315847; font: 800 14px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-default-plan--budget .wm-default-plan-action { color: #806826; }
.wm-default-plan--invest .wm-default-plan-action { color: #2f6f70; }
.wm-default-plan--retire .wm-default-plan-action { color: #684a73; }
.wm-default-plan-action b { font-size: 22px; font-weight: 400; }
.wm-assumptions-card { display: flex; flex-wrap: wrap; align-items: end; gap: 22px 34px; margin: 0 0 22px; padding: 20px 24px; border: 1px solid rgba(23,61,49,.16); border-top: 3px solid #b18735; border-radius: 8px; background: rgba(255,254,250,.97); box-shadow: 0 12px 28px rgba(28,48,33,.10); }
.wm-assumptions-title { flex: 0 0 100%; margin: 0; color: #173d31; font: 800 18px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 0; text-transform: none; }
.wm-assumptions-row { flex: 1 1 auto; gap: 26px; }
.wm-assumption-item { min-width: 185px; }
.wm-assumption-label { color: #315847; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.wm-assumption-input { background: #fffefa; border-color: rgba(23,61,49,.24); }
.wm-assumption-sources { flex: 1 0 100%; margin: 0; max-width: 740px; }
.wm-people-section { margin: 0 0 22px; padding: 26px; border: 1px solid rgba(23,61,49,.16); border-radius: 8px; background: rgba(255,254,250,.97); box-shadow: 0 12px 28px rgba(28,48,33,.10); }
.wm-people-section .wm-people-title { color: #173d31; font: 600 30px/1.2 Cambria, Georgia, 'Times New Roman', serif; }
.wm-people-section .wm-people-hint { color: #52685e; }
.wm-section-heading, .wm-plan-inventory-grid { display: none; }
.wm-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 58px; padding: 16px clamp(24px, 6vw, 104px); border-top: 1px solid rgba(23,61,49,.14); background: #fffefa; color: #6b756f; font: 12px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-footer a,
.wm-footer [aria-current="page"] { padding: 0 10px; color: #52685e; text-decoration: none; border-right: 1px solid rgba(23,61,49,.14); }
.wm-footer a:last-child { border-right: 0; }
.wm-footer > :last-child { border-right: 0; }
.wm-footer [aria-current="page"] { color: #173d31; font-weight: 800; }
.wm-footer a:hover { color: #806826; }
[data-theme="dark"] body { background-color: #0b151d; background-image: url('images/backgrounds/wealthmeadow/wealthmeadow-landscape-desktop-dark.webp'); }
[data-theme="dark"] .wm-welcome h1, [data-theme="dark"] .wm-dashboard-section-head h2, [data-theme="dark"] .wm-default-plan strong, [data-theme="dark"] .wm-assumptions-title, [data-theme="dark"] .wm-people-section .wm-people-title { color: #f5f7f3; }
[data-theme="dark"] .wm-welcome p, [data-theme="dark"] .wm-dashboard-section-head > p, [data-theme="dark"] .wm-default-plan p, [data-theme="dark"] .wm-people-section .wm-people-hint { color: #c7d3d2; }
[data-theme="dark"] .wm-default-plan, [data-theme="dark"] .wm-assumptions-card, [data-theme="dark"] .wm-people-section { background: rgba(12,25,34,.96); border-color: rgba(224,239,236,.20); box-shadow: 0 18px 40px rgba(0,0,0,.34); }
[data-theme="dark"] .wm-assumption-input { background: #101e28; border-color: rgba(224,239,236,.28); color: #f5f7f3; }
[data-theme="dark"] .wm-footer { border-color: rgba(224,239,236,.14); background: #0d1720; color: #b8c8c7; }
[data-theme="dark"] .wm-footer a,
[data-theme="dark"] .wm-footer [aria-current="page"] { color: #d6e4e2; border-color: rgba(224,239,236,.16); }
@media (max-width: 800px) { .wm-default-plan-grid { grid-template-columns: 1fr; } .wm-dashboard-section-head { align-items: flex-start; flex-direction: column; } .wm-dashboard-section-head > p { text-align: left; } }

/* Hub overview refresh */
.wm-topnav[hidden] { display: none !important; }

.wm-main {
    max-width: 1180px;
    padding-top: 34px;
}

.wm-welcome {
    display: block;
    margin-bottom: 26px;
    padding: 26px 28px;
    border: 1px solid color-mix(in srgb, var(--wm-parent) 35%, var(--border));
    border-radius: 14px;
    background:
        radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--wm-parent) 18%, transparent), transparent 36%),
        linear-gradient(135deg, var(--card), color-mix(in srgb, var(--wm-parent-soft) 55%, var(--card)));
    box-shadow: var(--shadow);
}

.wm-welcome-kicker,
.wm-section-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--wm-parent);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.wm-section-heading {
    order: 1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 13px;
}
.wm-section-heading h2 { font-size: 1.08rem; letter-spacing: -.015em; }
.wm-section-heading p {
    max-width: 430px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.45;
    text-align: right;
}

.wm-app-grid { margin-bottom: 26px; }
.wm-app-card { min-height: 265px; padding-bottom: 18px; }
.wm-app-card-empty {
    padding: 14px;
    border-radius: 8px;
    background: var(--surface);
    font-style: normal;
}
.wm-app-card-empty strong,
.wm-app-card-empty span { display: block; }
.wm-app-card-empty strong { color: var(--text); font-size: .82rem; }
.wm-app-card-empty span { margin-top: 5px; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.wm-app-card-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-size: .76rem;
    font-weight: 750;
}
.wm-app-card-action span { font-size: 1rem; transition: transform .15s ease; }
.wm-app-card--clickable:hover .wm-app-card-action span { transform: translateX(3px); }

.wm-people-section { order: 3; padding: 22px 24px; }
.wm-people-title { font-size: 1.08rem; font-weight: 800; }
.wm-people-grid { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.wm-people-grid .person-card {
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--card), var(--surface));
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.wm-people-grid .person-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.wm-people-grid .person-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--wm-parent), var(--wm-parent-dark));
    font-size: 1.15rem;
    font-weight: 800;
}
.wm-people-grid .person-card-name { font-size: 1rem; font-weight: 800; }
.wm-people-grid .person-profile-status {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 800;
    white-space: nowrap;
}
.wm-people-grid .person-profile-status.complete { background: rgba(22,163,74,.1); color: #15803d; }
.wm-people-grid .person-profile-status.needs-attention { background: rgba(217,119,6,.1); color: #b45309; }
.wm-people-grid .person-card-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.wm-people-grid .person-card-highlights span {
    padding: 9px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--wm-parent-soft) 55%, var(--surface));
}
.wm-people-grid .person-card-highlights small,
.wm-people-grid .person-card-highlights strong { display: block; }
.wm-people-grid .person-card-highlights small { color: var(--muted); font-size: .62rem; }
.wm-people-grid .person-card-highlights strong { margin-top: 2px; color: var(--text); font-size: .8rem; }
.wm-people-grid .person-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 16px;
    padding-top: 12px;
}
.wm-people-grid .person-detail-row { justify-content: space-between; font-size: .75rem; }
.wm-people-grid .person-detail-val { text-align: right; font-weight: 650; }
.wm-people-grid .person-retire-incomplete { grid-column: 1 / -1; }
.wm-people-grid .person-card-cta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--wm-parent);
    font-size: .72rem;
    font-weight: 800;
}
.wm-assumptions-card { order: 2; }

@media (max-width: 800px) {
    .wm-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .wm-section-heading p { text-align: left; }
    .wm-people-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .wm-welcome { padding: 20px; }
    .wm-people-grid .person-card-highlights,
    .wm-people-grid .person-card-details { grid-template-columns: 1fr; }
}

/* WealthMeadow hub workspace */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wm-main {
    width: 100%;
    max-width: none;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(250px, 290px) minmax(620px, 1fr) minmax(280px, 330px);
    grid-template-areas:
        "welcome welcome welcome"
        "people plans attention"
        "assumptions activity connections";
    grid-template-rows: auto minmax(278px, auto) minmax(198px, auto);
    gap: 16px;
    align-content: center;
    padding: 22px clamp(24px, 3.5vw, 68px) 24px;
}

.wm-welcome {
    grid-area: welcome;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 0 2px 2px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-align: left;
}
.wm-welcome h1 {
    margin: 0;
    color: #fff;
    font: 700 30px/1.15 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0;
    text-shadow: 0 2px 14px rgba(6, 28, 22, .72);
}
.wm-welcome p { margin: 3px 0 0; color: #fff; font-size: 13px; font-weight: 550; line-height: 1.4; text-shadow: 0 2px 12px rgba(6, 28, 22, .78); }
.wm-welcome time { padding-bottom: 3px; color: #fff; font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; text-shadow: 0 2px 12px rgba(6, 28, 22, .78); }

.wm-default-plans,
.wm-people-section,
.wm-assumptions-card,
.wm-hub-activity,
.wm-hub-attention,
.wm-hub-connections {
    margin: 0;
    border: 1px solid rgba(23, 61, 49, .18);
    border-radius: 8px;
    background: rgba(255, 254, 250, .95);
    box-shadow: 0 12px 30px rgba(18, 42, 31, .11);
    backdrop-filter: blur(8px);
}

.wm-default-plans { grid-area: plans; padding: 22px 24px 0; overflow: hidden; }
.wm-dashboard-section-head { align-items: start; margin-bottom: 12px; }
.wm-dashboard-section-head h2,
.wm-hub-panel-heading h2,
.wm-people-section .wm-people-title,
.wm-assumptions-title {
    margin: 2px 0 0;
    color: #173d31;
    font: 700 20px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0;
}
.wm-dashboard-section-head > p { max-width: 270px; color: #52685e; font-size: 12px; line-height: 1.45; }
.wm-section-kicker { margin-bottom: 2px; color: #806826; font-size: 11px; letter-spacing: .08em; }

.wm-default-plan-grid { height: calc(100% - 58px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.wm-default-plan {
    min-height: 0;
    padding: 16px 20px 18px;
    border: 0;
    border-left: 1px solid rgba(23, 61, 49, .12);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}
.wm-default-plan:first-child { border-left: 0; padding-left: 0; }
.wm-default-plan:last-child { padding-right: 0; }
.wm-default-plan:hover { transform: none; background: rgba(23, 61, 49, .035); box-shadow: none; }
.wm-default-plan-top { gap: 10px; color: #52685e; }
.wm-default-plan-top .wm-app-mark { width: 35px; height: 35px; }
.wm-default-plan-top > span { display: grid; gap: 1px; }
.wm-default-plan-top b { color: #173d31; font-size: 14px; }
.wm-default-plan-top small { color: #6c7d75; font-size: 10px; font-weight: 650; text-transform: uppercase; }
.wm-default-plan-top i { margin-left: auto; color: #61736b; font-size: 18px; font-style: normal; font-weight: 400; }
.wm-default-plan strong {
    margin-top: 15px;
    color: #173d31;
    font: 650 17px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wm-default-plan > p { margin: 12px 0 0; font-size: 13px; }
.wm-plan-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin: 14px 0 0; }
.wm-plan-metrics--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wm-plan-metrics div { min-width: 0; }
.wm-plan-metrics dt { color: #65766e; font-size: 10px; line-height: 1.3; }
.wm-plan-metrics dd { margin: 3px 0 0; color: #173d31; font-size: 16px; font-weight: 750; line-height: 1.2; font-variant-numeric: tabular-nums; }
.wm-plan-metrics dd.is-negative { color: #a43b32; }

.wm-people-section { grid-area: people; padding: 18px; overflow: hidden; }
.wm-people-header { align-items: start; margin-bottom: 10px; }
.wm-people-header .wm-btn { padding: 8px 10px; font-size: 13px; }
.wm-people-hint { max-width: 190px; margin-top: 3px; font-size: 12px; line-height: 1.35; }
.wm-people-grid { display: grid; grid-template-columns: 1fr; gap: 8px; max-height: 220px; overflow: auto; padding-right: 2px; }
.wm-people-grid .person-card { padding: 11px 12px; border-radius: 7px; background: rgba(248, 247, 242, .8); box-shadow: none; }
.wm-people-grid .person-card:hover { transform: none; box-shadow: none; }
.wm-people-grid .person-card-top { margin: 0; }
.wm-people-grid .person-avatar { width: 38px; height: 38px; border-radius: 50%; font-size: 14px; }
.wm-people-grid .person-card-name { font-size: 15px; }
.wm-people-grid .person-card-age { display: block; font-size: 12px; }
.wm-people-grid .person-profile-status { padding: 4px 7px; font-size: 11px; }
.wm-people-grid .person-profile-status.complete,
.wm-people-grid .person-card-highlights { display: none; }
.wm-people-grid .person-card-details,
.wm-people-grid .person-prog-preview,
.wm-people-grid .person-card-cta { display: none; }

.wm-assumptions-card { grid-area: assumptions; display: block; padding: 18px; }
.wm-rail-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wm-fixed-currency { color: #52685e; font-size: 11px; font-weight: 700; }
.wm-assumptions-row { display: grid; gap: 10px; }
.wm-assumption-item { min-width: 0; }
.wm-assumption-label { display: block; margin-bottom: 4px; font-size: 10px; letter-spacing: .04em; }
.wm-assumption-field { display: flex; align-items: center; }
.wm-assumption-input { width: 74px; padding: 7px 9px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wm-assumption-unit { font-size: 10px; }
.wm-assumption-hint { margin-top: 3px; font-size: 11px; line-height: 1.4; }
.wm-assumption-item[style] { display: none !important; }
.wm-assumption-sources { margin-top: 10px; font-size: 11px; }

.wm-hub-activity { grid-area: activity; padding: 18px 22px; overflow: hidden; }
.wm-hub-attention { grid-area: attention; padding: 16px 18px; overflow: hidden; }
.wm-hub-connections { grid-area: connections; padding: 18px 20px; overflow: hidden; }
.wm-hub-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.wm-hub-panel-heading a { color: #315847; font-size: 11px; font-weight: 700; text-decoration: none; }
.wm-activity-table,
.wm-plan-activity-list,
.wm-attention-list,
.wm-connection-list { border-top: 1px solid rgba(23, 61, 49, .12); }
.wm-activity-row { display: grid; grid-template-columns: 62px minmax(130px, 1.4fr) minmax(110px, 1fr) 88px; gap: 12px; align-items: center; min-height: 34px; border-bottom: 1px solid rgba(23, 61, 49, .09); color: #2f493f; font-size: 11px; text-decoration: none; }
.wm-activity-row:hover { background: rgba(23, 61, 49, .035); }
.wm-activity-row time,
.wm-activity-row span { color: #65766e; }
.wm-activity-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-activity-row b { color: #173d31; text-align: right; font-variant-numeric: tabular-nums; }
.wm-plan-activity-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 40px; border-bottom: 1px solid rgba(23, 61, 49, .09); }
.wm-plan-activity-row .wm-app-mark { width: 30px; height: 30px; }
.wm-plan-activity-row div { display: grid; }
.wm-plan-activity-row strong { color: #173d31; font-size: 12px; }
.wm-plan-activity-row span,
.wm-plan-activity-row time { color: #65766e; font-size: 10px; }
.wm-hub-empty { display: grid; gap: 4px; padding: 20px 0; color: #65766e; font-size: 12px; }
.wm-hub-empty strong { color: #173d31; }

.wm-attention-row { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 61px; padding: 9px 0; border: 0; border-bottom: 1px solid rgba(23, 61, 49, .1); background: transparent; color: #173d31; text-align: left; text-decoration: none; cursor: pointer; }
.wm-attention-row .wm-app-mark { width: 31px; height: 31px; }
.wm-attention-row > span { display: grid; gap: 3px; }
.wm-attention-row strong { font-size: 14px; }
.wm-attention-row small { color: #65766e; font-size: 12px; line-height: 1.35; }
.wm-attention-row > b { color: #61736b; font-size: 17px; font-weight: 400; }
.wm-attention-settled { display: flex; gap: 10px; align-items: center; padding: 18px 0; }
.wm-attention-settled > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(44, 110, 72, .12); color: #2c6e48; }
.wm-attention-settled div { display: grid; gap: 3px; }
.wm-attention-settled strong { color: #173d31; font-size: 12px; }
.wm-attention-settled small { color: #65766e; font-size: 10px; }

.wm-connection-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(23, 61, 49, .09); color: #52685e; font-size: 11px; }
.wm-connection-list b { color: #8a793d; font-weight: 500; }
.wm-connection-list strong { color: #8a4b3d; font-size: 10px; }
.wm-connection-list strong.is-linked { color: #2c6e48; }

.wm-section-heading,
.wm-plan-inventory-grid { display: none !important; }
.wm-footer { flex: 0 0 auto; min-height: 48px; padding-top: 10px; padding-bottom: 10px; font-size: 13px; }

[data-theme="dark"] .wm-welcome h1 { color: #f5f7f3; }
[data-theme="dark"] .wm-welcome p,
[data-theme="dark"] .wm-welcome time { color: #d1dcda; }
[data-theme="dark"] .wm-default-plans,
[data-theme="dark"] .wm-people-section,
[data-theme="dark"] .wm-assumptions-card,
[data-theme="dark"] .wm-hub-activity,
[data-theme="dark"] .wm-hub-attention,
[data-theme="dark"] .wm-hub-connections { background: rgba(12, 25, 34, .94); border-color: rgba(224, 239, 236, .18); box-shadow: 0 16px 34px rgba(0, 0, 0, .30); }
[data-theme="dark"] .wm-dashboard-section-head h2,
[data-theme="dark"] .wm-hub-panel-heading h2,
[data-theme="dark"] .wm-people-section .wm-people-title,
[data-theme="dark"] .wm-assumptions-title,
[data-theme="dark"] .wm-default-plan strong,
[data-theme="dark"] .wm-default-plan-top b,
[data-theme="dark"] .wm-plan-metrics dd,
[data-theme="dark"] .wm-plan-activity-row strong,
[data-theme="dark"] .wm-attention-row,
[data-theme="dark"] .wm-attention-settled strong,
[data-theme="dark"] .wm-activity-row b { color: #f5f7f3; }
[data-theme="dark"] .wm-default-plan,
[data-theme="dark"] .wm-plan-activity-row,
[data-theme="dark"] .wm-attention-row,
[data-theme="dark"] .wm-connection-list > div,
[data-theme="dark"] .wm-activity-row { border-color: rgba(224, 239, 236, .11); }
[data-theme="dark"] .wm-people-grid .person-card { background: rgba(255, 255, 255, .04); }
[data-theme="dark"] .wm-section-kicker { color: #d9bd69; }
[data-theme="dark"] .wm-dashboard-section-head > p,
[data-theme="dark"] .wm-people-hint,
[data-theme="dark"] .wm-fixed-currency,
[data-theme="dark"] .wm-default-plan-top,
[data-theme="dark"] .wm-default-plan-top small,
[data-theme="dark"] .wm-plan-metrics dt,
[data-theme="dark"] .wm-plan-activity-row span,
[data-theme="dark"] .wm-plan-activity-row time,
[data-theme="dark"] .wm-attention-row small,
[data-theme="dark"] .wm-connection-list > div,
[data-theme="dark"] .wm-assumption-label,
[data-theme="dark"] .wm-assumption-hint,
[data-theme="dark"] .wm-assumption-unit { color: #b9c8c4; }
[data-theme="dark"] .wm-default-plan:hover { background: rgba(255, 255, 255, .035); }
[data-theme="dark"] .wm-people-grid .person-profile-status { background: rgba(69, 166, 103, .16); color: #88d39f; }

@media (max-width: 1180px) {
    .wm-main { grid-template-columns: 250px minmax(560px, 1fr) 280px; padding-left: 18px; padding-right: 18px; }
    .wm-default-plans { padding-left: 18px; padding-right: 18px; }
    .wm-default-plan { padding-left: 14px; padding-right: 14px; }
}

/* Transactions Preview */
.wm-transactions-main {
    max-width: 1180px;
}

.wm-transactions-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0 18px;
}

.wm-transactions-hero h1 {
    margin: 4px 0 8px;
    color: var(--text);
}

.wm-transactions-hero p,
.wm-card-head p,
.wm-muted {
    color: var(--muted);
}

.wm-transactions-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.wm-review-notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(169, 134, 63, 0.32);
    border-radius: 16px;
    background: rgba(252, 244, 218, 0.92);
    color: #5d4a1e;
    font-weight: 700;
}

[data-theme="dark"] .wm-review-notice {
    background: rgba(169, 134, 63, 0.18);
    color: #f4dfaa;
}

.wm-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.wm-card-head h2 {
    margin: 0 0 4px;
}

.wm-card-head p {
    margin: 0;
    line-height: 1.5;
}

.wm-connections-list {
    display: grid;
    gap: 10px;
}

.wm-connection-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.wm-connection-row div {
    display: grid;
    gap: 2px;
}

.wm-connection-row span {
    color: var(--muted);
    font-size: 0.9rem;
}

.wm-transactions-table-card {
    margin-top: 18px;
}

.wm-transactions-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.wm-transactions-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
}

.wm-transactions-table th,
.wm-transactions-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    font-size: 0.9rem;
}

.wm-transactions-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wm-transactions-table tr:last-child td {
    border-bottom: 0;
}

.wm-transactions-table .amount-negative {
    color: #b45309;
    font-weight: 800;
}

.wm-transactions-table .amount-positive {
    color: #047857;
    font-weight: 800;
}

.wm-raw-row td {
    padding-top: 0;
    background: var(--surface-soft);
}

.wm-raw-row details {
    padding: 6px 0 10px;
}

.wm-raw-row summary {
    cursor: pointer;
    color: var(--muted);
    font-weight: 700;
}

.wm-raw-row pre {
    max-height: 320px;
    overflow: auto;
    margin: 10px 0 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(28, 35, 22, 0.06);
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

[data-theme="dark"] .wm-raw-row pre {
    background: rgba(255, 255, 255, 0.06);
}

.wm-app-card--transactions .wm-app-card-icon-wrap.transactions {
    background: rgba(169, 134, 63, 0.14);
    color: #7a6029;
    font-weight: 900;
    font-size: 1.45rem;
}

@media (max-width: 760px) {
    .wm-transactions-hero,
    .wm-card-head,
    .wm-connection-row {
        align-items: stretch;
        flex-direction: column;
    }

    .wm-transactions-actions {
        justify-content: stretch;
    }

    .wm-transactions-actions .wm-btn,
    .wm-connection-row .wm-btn {
        width: 100%;
        justify-content: center;
    }

    .wm-review-notice {
        border-radius: 14px;
    }
}

/* ── Dashboard desktop application shell (2026-07-26, Step 1) ────────────── */
:root {
    --wm-shell-evergreen: #244836;
    --wm-shell-evergreen-deep: #17372b;
    --wm-shell-gold: #c3a24d;
    --wm-shell-ivory: #f7f3ea;
    --wm-shell-card: #fcfbf8;
    --wm-shell-text: #1d2721;
    --wm-shell-muted: #68726c;
    --wm-shell-border: #ddd7ca;
    --wm-shell-sidebar-width: 240px;
}

body.wm-dashboard-page {
    min-width: 1180px;
    display: block;
    background-color: var(--wm-shell-ivory);
    background-image: none;
    color: var(--wm-shell-text);
}

[data-theme="dark"] body.wm-dashboard-page {
    background-color: #101a18;
    background-image: none;
}

.wm-dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--wm-shell-sidebar-width) minmax(0, 1fr);
    background: var(--wm-shell-ivory);
}

[data-theme="dark"] .wm-dashboard-shell {
    background: #101a18;
}

.wm-dashboard-sidebar {
    position: sticky;
    top: 0;
    z-index: 110;
    height: 100vh;
    overflow-y: auto;
    padding: 20px 14px;
    border-right: 1px solid rgba(255, 255, 255, .09);
    background:
        radial-gradient(circle at 15% 3%, rgba(195, 162, 77, .16), transparent 27%),
        linear-gradient(180deg, #1d4535 0%, var(--wm-shell-evergreen-deep) 100%);
    color: #f7f3ea;
}

.wm-dashboard-brand {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 2px 3px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.wm-dashboard-brand img {
    display: block;
    width: 206px;
    max-width: 100%;
    height: auto;
}

.wm-dashboard-primary-nav {
    padding-top: 11px;
}

.wm-dashboard-nav-group {
    margin-top: 18px;
}

.wm-dashboard-nav-group h2 {
    margin: 0 10px 7px;
    color: rgba(247, 243, 234, .72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.wm-dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 2px 0;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.wm-dashboard-nav-item:hover {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.wm-dashboard-nav-item > span:not(.wm-app-mark) {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.wm-dashboard-nav-item small {
    color: rgba(247, 243, 234, .7);
    font-size: 11px;
    font-weight: 500;
}

.wm-dashboard-nav-item .wm-app-mark {
    width: 23px;
    height: 23px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: currentColor;
}

.wm-dashboard-nav-item .wm-app-mark svg {
    width: 20px;
    height: 20px;
}

.wm-dashboard-nav-account .wm-dashboard-account-avatar {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border: 1px solid rgba(255, 255, 255, .2);
}

.wm-dashboard-sidebar-signout {
    margin: 0;
}

.wm-dashboard-sidebar-signout .wm-dashboard-nav-item {
    width: 100%;
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, .9);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.wm-dashboard-sidebar-signout .wm-dashboard-nav-item:hover {
    border-color: rgba(245, 164, 164, .22);
    background: rgba(162, 55, 55, .16);
}

.wm-dashboard-nav-item--budget .wm-app-mark { color: #c6d7ad; }
.wm-dashboard-nav-item--invest .wm-app-mark { color: #8cc9ca; }
.wm-dashboard-nav-item--retire .wm-app-mark { color: #c8aed0; }

.wm-dashboard-product-navigation {
    min-width: 0;
    align-self: stretch;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.wm-dashboard-utility.has-product-navigation .wm-dashboard-utility-heading {
    flex: 0 0 auto;
    margin-right: 10px;
    padding-right: 18px;
    border-right: 1px solid var(--wm-shell-border);
}

.wm-dashboard-section-nav {
    min-width: 0;
    align-self: stretch;
    display: flex;
    align-items: stretch;
    gap: 2px;
}

.wm-dashboard-section-link {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 2px solid transparent;
    overflow: hidden;
    color: var(--wm-shell-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-dashboard-section-link:hover,
.wm-dashboard-section-link.is-active,
.wm-dashboard-section-link[aria-current="page"] {
    color: var(--wm-shell-evergreen);
}

.wm-dashboard-section-link.is-active,
.wm-dashboard-section-link[aria-current="page"] {
    border-bottom-color: var(--wm-shell-gold);
}

.wm-dashboard-section-badge {
    display: inline-grid;
    min-width: 19px;
    height: 19px;
    margin-left: 5px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    background: #1f5a45;
    color: #fff;
    font-size: .65rem;
    font-weight: 850;
    line-height: 1;
}

.wm-dashboard-responsive-menu {
    position: relative;
    display: none;
    flex: 0 0 auto;
}

.wm-dashboard-responsive-menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--wm-shell-border);
    border-radius: 7px;
    background: var(--wm-shell-card);
    color: var(--wm-shell-muted);
    font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    list-style: none;
    white-space: nowrap;
    cursor: pointer;
}

.wm-dashboard-responsive-menu > summary::-webkit-details-marker { display: none; }
.wm-dashboard-responsive-menu > summary:hover,
.wm-dashboard-responsive-menu[open] > summary,
.wm-dashboard-responsive-menu.is-active > summary {
    border-color: color-mix(in srgb, var(--wm-shell-evergreen) 38%, var(--wm-shell-border));
    color: var(--wm-shell-evergreen);
}

.wm-dashboard-responsive-menu > summary:focus-visible {
    outline: 3px solid #d8b85f;
    outline-offset: 2px;
}

.wm-dashboard-responsive-menu-popover {
    position: absolute;
    z-index: 160;
    top: calc(100% + 7px);
    right: 0;
    display: grid;
    min-width: 168px;
    padding: 6px;
    border: 1px solid var(--wm-shell-border);
    border-radius: 9px;
    background: var(--wm-shell-card);
    box-shadow: 0 12px 26px rgba(23, 45, 37, .18);
}

.wm-dashboard-responsive-menu-popover a {
    display: block;
    padding: 9px 10px;
    border-radius: 5px;
    color: var(--wm-shell-muted);
    font: 700 12px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

.wm-dashboard-responsive-menu-popover a:hover,
.wm-dashboard-responsive-menu-popover a[aria-current="page"] {
    background: color-mix(in srgb, var(--wm-shell-evergreen) 8%, var(--wm-shell-card));
    color: var(--wm-shell-evergreen);
}

.wm-dashboard-section-more {
    align-self: stretch;
}

.wm-dashboard-section-more > summary {
    height: 100%;
    padding: 0 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
}

.wm-dashboard-section-more > summary:hover,
.wm-dashboard-section-more[open] > summary,
.wm-dashboard-section-more.is-active > summary {
    border-color: var(--wm-shell-gold);
    background: transparent;
}

.wm-dashboard-actions-more > summary {
    min-width: 32px;
    padding: 0 7px;
    font-size: 16px;
    letter-spacing: .05em;
}

.wm-dashboard-context-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-left: 0;
}

.wm-dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--wm-shell-border);
}

.wm-dashboard-header-action {
    appearance: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--wm-shell-border);
    border-radius: 7px;
    background: var(--wm-shell-card);
    color: var(--wm-shell-muted);
    box-shadow: none;
    font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.wm-dashboard-header-action > span:not(.wm-app-mark) {
    overflow: hidden;
    max-width: 170px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-dashboard-header-action:hover {
    border-color: color-mix(in srgb, var(--wm-shell-evergreen) 38%, var(--wm-shell-border));
    background: color-mix(in srgb, var(--wm-shell-evergreen) 7%, var(--wm-shell-card));
    color: var(--wm-shell-evergreen);
}

.wm-dashboard-header-action .wm-app-mark {
    width: 14px;
    height: 14px;
    color: currentColor;
}

.wm-dashboard-header-action--compound {
    gap: 0;
    padding: 0;
}

.wm-dashboard-header-action--compound a {
    overflow: hidden;
    max-width: 170px;
    padding: 0 9px;
    color: inherit;
    line-height: 30px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-dashboard-header-action--compound button,
.wm-dashboard-header-action--compound .wm-dashboard-header-action-secondary {
    align-self: stretch;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--wm-shell-border);
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.wm-dashboard-header-action--select {
    max-width: 180px;
    padding-right: 28px;
}

.wm-dashboard-header-action:focus-visible,
.wm-dashboard-header-action a:focus-visible,
.wm-dashboard-header-action button:focus-visible {
    outline: 3px solid #d8b85f;
    outline-offset: 2px;
}

.wm-dashboard-context-links a {
    color: var(--wm-shell-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.wm-dashboard-context-links a:hover {
    color: var(--wm-shell-evergreen);
    text-decoration: underline;
}

.wm-dashboard-workspace-selector {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wm-dashboard-workspace-selector label {
    color: var(--wm-shell-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wm-dashboard-workspace-selector select {
    width: clamp(180px, 23vw, 340px);
    min-width: 0;
    height: 34px;
    padding: 0 28px 0 8px;
    border: 1px solid var(--wm-shell-border);
    border-radius: 7px;
    background: var(--wm-shell-card);
    color: var(--wm-shell-text);
    font: 650 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-overflow: ellipsis;
}

.wm-dashboard-workspace-selector select:focus-visible,
.wm-dashboard-section-link:focus-visible,
.wm-dashboard-context-links a:focus-visible {
    outline: 3px solid #d8b85f;
    outline-offset: 2px;
}

.wm-dashboard-workspace-selector option {
    background: var(--wm-shell-card);
    color: var(--wm-shell-text);
}

[data-theme="dark"] .wm-dashboard-utility.has-product-navigation .wm-dashboard-utility-heading {
    border-right-color: #34443f;
}

[data-theme="dark"] .wm-dashboard-section-link,
[data-theme="dark"] .wm-dashboard-context-links a,
[data-theme="dark"] .wm-dashboard-workspace-selector label {
    color: #b9c8c4;
}

[data-theme="dark"] .wm-dashboard-section-link:hover,
[data-theme="dark"] .wm-dashboard-section-link.is-active,
[data-theme="dark"] .wm-dashboard-section-link[aria-current="page"],
[data-theme="dark"] .wm-dashboard-context-links a:hover {
    color: #f5e6b0;
}

[data-theme="dark"] .wm-dashboard-workspace-selector select,
[data-theme="dark"] .wm-dashboard-workspace-selector option {
    border-color: #465851;
    background: #1b2a27;
    color: #f5f7f3;
}

.wm-dashboard-frame {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wm-dashboard-frame > .wm-footer {
    margin-top: auto;
}

.wm-dashboard-utility {
    position: sticky;
    top: 0;
    z-index: 105;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 0 26px;
    border-bottom: 1px solid var(--wm-shell-border);
    background: rgba(252, 251, 248, .96);
    box-shadow: 0 2px 14px rgba(39, 47, 40, .04);
    backdrop-filter: blur(12px);
}

.wm-dashboard-utility-heading {
    min-width: 0;
    margin-right: auto;
}

.wm-dashboard-utility-heading h1,
.wm-dashboard-utility-label {
    margin: 0;
    overflow: hidden;
    color: var(--wm-shell-text);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-dashboard-utility form {
    margin: 0;
}

.wm-dashboard-utility-link,
.wm-dashboard-account,
.wm-dashboard-signout,
.wm-dashboard-theme {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #4c5851;
    font: 650 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.wm-dashboard-utility-link:hover,
.wm-dashboard-account:hover,
.wm-dashboard-signout:hover,
.wm-dashboard-theme:hover {
    border-color: #dfd9cd;
    background: #f4f0e7;
    color: var(--wm-shell-evergreen);
}

.wm-dashboard-utility-link .wm-app-mark,
.wm-dashboard-signout .wm-app-mark {
    width: 19px;
    height: 19px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: currentColor;
}

.wm-dashboard-utility-link .wm-app-mark svg,
.wm-dashboard-signout .wm-app-mark svg {
    width: 17px;
    height: 17px;
}

.wm-dashboard-theme {
    width: 38px;
    padding: 7px;
}

.wm-dashboard-theme-icon {
    display: block;
    width: 18px;
    height: 18px;
}

.wm-dashboard-theme-icon--sun,
[data-theme="dark"] .wm-dashboard-theme-icon--moon {
    display: none;
}

[data-theme="dark"] .wm-dashboard-theme-icon--sun {
    display: block;
}

.wm-dashboard-account {
    margin-left: 4px;
    padding-right: 13px;
    border-left: 1px solid var(--wm-shell-border);
    border-radius: 0 8px 8px 0;
}

.wm-dashboard-account-avatar {
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--wm-shell-gold), #9b762c);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.wm-dashboard-signout {
    padding-right: 4px;
}

.wm-dashboard-stage {
    min-width: 0;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.wm-dashboard-page .wm-main {
    min-width: 0;
    gap: 16px;
    align-content: start;
    padding: 18px 24px 18px;
}

body.wm-dashboard-page .wm-welcome {
    padding: 4px 2px 8px;
}

body.wm-dashboard-page .wm-welcome h1 {
    color: var(--wm-shell-text);
    text-shadow: none;
}

body.wm-dashboard-page .wm-welcome p,
body.wm-dashboard-page .wm-welcome time {
    color: var(--wm-shell-muted);
    text-shadow: none;
}

body.wm-dashboard-page .wm-default-plans,
body.wm-dashboard-page .wm-people-section,
body.wm-dashboard-page .wm-assumptions-card,
body.wm-dashboard-page .wm-hub-activity,
body.wm-dashboard-page .wm-hub-attention,
body.wm-dashboard-page .wm-hub-connections {
    border-color: var(--wm-shell-border);
    background: rgba(252, 251, 248, .97);
    box-shadow: 0 8px 24px rgba(39, 47, 40, .06);
    backdrop-filter: none;
}

body.wm-dashboard-page .wm-assumptions-card {
    scroll-margin-top: 80px;
}

body.wm-dashboard-page .wm-footer {
    margin-top: auto;
    padding-left: 26px;
    padding-right: 26px;
    border-color: var(--wm-shell-border);
    background: var(--wm-shell-card);
}

.wm-dashboard-nav-item:focus-visible,
.wm-dashboard-brand:focus-visible,
.wm-dashboard-utility a:focus-visible,
.wm-dashboard-utility button:focus-visible {
    outline: 3px solid #d8b85f;
    outline-offset: 2px;
}

[data-theme="dark"] .wm-dashboard-utility {
    border-color: #34443f;
    background: rgba(20, 31, 29, .96);
    box-shadow: 0 2px 16px rgba(0, 0, 0, .18);
}

[data-theme="dark"] .wm-dashboard-utility-heading h1,
[data-theme="dark"] .wm-dashboard-utility-label {
    color: #f5f7f3;
}

[data-theme="dark"] .wm-dashboard-utility-link,
[data-theme="dark"] .wm-dashboard-account,
[data-theme="dark"] .wm-dashboard-signout,
[data-theme="dark"] .wm-dashboard-theme {
    color: #d7e0dc;
}

[data-theme="dark"] .wm-dashboard-utility-link:hover,
[data-theme="dark"] .wm-dashboard-account:hover,
[data-theme="dark"] .wm-dashboard-signout:hover,
[data-theme="dark"] .wm-dashboard-theme:hover {
    border-color: #465851;
    background: #21322e;
    color: #f5e6b0;
}

[data-theme="dark"] .wm-dashboard-account {
    border-left-color: #34443f;
}

[data-theme="dark"] body.wm-dashboard-page .wm-welcome h1 {
    color: #f5f7f3;
}

[data-theme="dark"] body.wm-dashboard-page .wm-welcome p,
[data-theme="dark"] body.wm-dashboard-page .wm-welcome time {
    color: #b9c8c4;
}

[data-theme="dark"] body.wm-dashboard-page .wm-footer {
    border-color: #34443f;
    background: #141f1d;
}

@media (max-width: 1350px) {
    :root { --wm-shell-sidebar-width: 224px; }

    .wm-dashboard-sidebar { padding-left: 11px; padding-right: 11px; }
    .wm-dashboard-brand img { width: 194px; }
    .wm-dashboard-utility { padding-left: 18px; padding-right: 18px; }

    body.wm-dashboard-page .wm-main {
        grid-template-columns: minmax(205px, .76fr) minmax(500px, 2fr) minmax(225px, .84fr);
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ── Financial ecosystem overview (2026-07-26, Step 2) ───────────────────── */
.wm-ecosystem-overview {
    grid-area: plans;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--wm-shell-border);
    border-radius: 9px;
    background: rgba(252, 251, 248, .98);
    box-shadow: 0 8px 24px rgba(39, 47, 40, .06);
}

.wm-ecosystem-heading {
    padding: 14px 18px 11px;
}

.wm-ecosystem-heading h2 {
    margin: 2px 0 0;
    color: #173d31;
    font: 700 20px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wm-ecosystem-heading p {
    margin: 4px 0 0;
    color: #65766e;
    font-size: 13px;
    line-height: 1.4;
}

.wm-ecosystem-layout {
    min-height: 215px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid rgba(23, 61, 49, .11);
}

.wm-ecosystem-map {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 14px 18px;
    background-color: #dfe7d7;
    background-image:
        linear-gradient(180deg, rgba(252, 251, 248, .22), rgba(36, 72, 54, .12)),
        url('images/backgrounds/wealthmeadow/wealthmeadow-dashboard-overview-light.png');
    background-repeat: no-repeat;
    background-position: center 62%;
    background-size: cover;
}

.wm-ecosystem-flow {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
}

.wm-ecosystem-node {
    min-width: 0;
    min-height: 101px;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-content: start;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(23, 61, 49, .16);
    border-radius: 8px;
    background: rgba(252, 251, 248, .95);
    color: #22392f;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.wm-ecosystem-node:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(39, 47, 40, .08);
}

.wm-ecosystem-node > span:not(.wm-app-mark) {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.wm-ecosystem-node .wm-app-mark,
.wm-ecosystem-counts .wm-app-mark,
.wm-ecosystem-shared > .wm-app-mark {
    width: 31px;
    height: 31px;
    border: 0;
    border-radius: 7px;
}

.wm-ecosystem-node .wm-app-mark svg,
.wm-ecosystem-counts .wm-app-mark svg,
.wm-ecosystem-shared > .wm-app-mark svg {
    width: 19px;
    height: 19px;
}

.wm-ecosystem-node strong {
    color: #173d31;
    font-size: 15px;
    line-height: 1.2;
}

.wm-ecosystem-node small {
    min-height: 32px;
    color: #617169;
    font-size: 12px;
    line-height: 1.35;
}

.wm-ecosystem-node b {
    overflow: hidden;
    color: #40574d;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-ecosystem-node--budget { border-color: rgba(138, 121, 61, .38); }
.wm-ecosystem-node--invest { border-color: rgba(47, 111, 112, .38); }
.wm-ecosystem-node--retire { border-color: rgba(104, 74, 115, .38); }

.wm-ecosystem-node--budget .wm-app-mark {
    background: rgba(138, 121, 61, .12);
    color: #716128;
}

.wm-ecosystem-node--invest .wm-app-mark {
    background: rgba(47, 111, 112, .12);
    color: #2f6f70;
}

.wm-ecosystem-node--retire .wm-app-mark {
    background: rgba(104, 74, 115, .12);
    color: #684a73;
}

.wm-ecosystem-node.is-locked {
    background: rgba(247, 243, 234, .92);
}

.wm-ecosystem-arrow {
    color: #385a4c;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 1px 2px rgba(252, 251, 248, .9);
}

.wm-ecosystem-shared {
    position: relative;
    width: min(520px, 78%);
    min-height: 58px;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    justify-self: center;
    padding: 9px 11px;
    border: 1px dashed rgba(36, 72, 54, .34);
    border-radius: 8px;
    background: rgba(252, 251, 248, .95);
}

.wm-ecosystem-shared::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    height: 15px;
    border-left: 1px dashed rgba(36, 72, 54, .35);
}

.wm-ecosystem-shared > .wm-app-mark {
    background: rgba(195, 162, 77, .15);
    color: #8c6c21;
}

.wm-ecosystem-shared > span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.wm-ecosystem-shared strong {
    color: #244836;
    font-size: 13px;
}

.wm-ecosystem-shared small {
    color: #68776f;
    font-size: 11px;
    line-height: 1.3;
}

.wm-ecosystem-shared nav {
    display: grid;
    gap: 3px;
    padding-left: 8px;
    border-left: 1px solid rgba(23, 61, 49, .12);
}

.wm-ecosystem-shared nav a {
    color: #315847;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
}

.wm-ecosystem-shared nav a:hover {
    color: #8a793d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wm-ecosystem-counts {
    display: grid;
    align-content: center;
    padding: 9px 13px;
    border-left: 1px solid rgba(23, 61, 49, .11);
    background: rgba(247, 243, 234, .46);
}

.wm-ecosystem-counts > a {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 47px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(23, 61, 49, .09);
    color: #244836;
    text-decoration: none;
}

.wm-ecosystem-counts > a:last-child {
    border-bottom: 0;
}

.wm-ecosystem-counts > a:hover small {
    color: #806826;
}

.wm-ecosystem-counts .wm-app-mark {
    background: transparent;
}

.wm-ecosystem-counts .wm-app-mark-budget { color: #8a793d; }
.wm-ecosystem-counts .wm-app-mark-invest { color: #2f6f70; }
.wm-ecosystem-counts .wm-app-mark-retire { color: #684a73; }
.wm-ecosystem-counts .wm-app-mark-people { color: #806826; }

.wm-ecosystem-counts span:not(.wm-app-mark) {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.wm-ecosystem-counts strong {
    color: #173d31;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.wm-ecosystem-counts small {
    color: #65766e;
    font-size: 8px;
    line-height: 1.25;
}

.wm-ecosystem-node:focus-visible,
.wm-ecosystem-shared a:focus-visible,
.wm-ecosystem-counts a:focus-visible {
    outline: 3px solid #d8b85f;
    outline-offset: 2px;
}

[data-theme="dark"] .wm-ecosystem-overview {
    border-color: rgba(224, 239, 236, .18);
    background: rgba(12, 25, 34, .94);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .3);
}

[data-theme="dark"] .wm-ecosystem-heading h2,
[data-theme="dark"] .wm-ecosystem-node strong,
[data-theme="dark"] .wm-ecosystem-counts strong {
    color: #f5f7f3;
}

[data-theme="dark"] .wm-ecosystem-heading p,
[data-theme="dark"] .wm-ecosystem-node small,
[data-theme="dark"] .wm-ecosystem-node b,
[data-theme="dark"] .wm-ecosystem-shared small,
[data-theme="dark"] .wm-ecosystem-counts small {
    color: #b9c8c4;
}

[data-theme="dark"] .wm-ecosystem-layout {
    border-color: rgba(224, 239, 236, .11);
}

[data-theme="dark"] .wm-ecosystem-map {
    background-color: #101d2f;
    background-image:
        linear-gradient(180deg, rgba(8, 18, 29, .12), rgba(8, 20, 25, .34)),
        url('images/backgrounds/wealthmeadow/wealthmeadow-dashboard-overview-dark.png');
}

[data-theme="dark"] .wm-ecosystem-node,
[data-theme="dark"] .wm-ecosystem-shared {
    background: rgba(17, 31, 39, .9);
}

[data-theme="dark"] .wm-ecosystem-arrow {
    color: #dce7e2;
    text-shadow: 0 1px 3px rgba(3, 9, 14, .9);
}

[data-theme="dark"] .wm-ecosystem-node--budget { border-color: rgba(190, 170, 98, .42); }
[data-theme="dark"] .wm-ecosystem-node--invest { border-color: rgba(106, 178, 179, .42); }
[data-theme="dark"] .wm-ecosystem-node--retire { border-color: rgba(177, 139, 190, .42); }

[data-theme="dark"] .wm-ecosystem-node--budget .wm-app-mark {
    background: rgba(190, 170, 98, .13);
    color: #d8c47c;
}

[data-theme="dark"] .wm-ecosystem-node--invest .wm-app-mark {
    background: rgba(106, 178, 179, .13);
    color: #88c8c9;
}

[data-theme="dark"] .wm-ecosystem-node--retire .wm-app-mark {
    background: rgba(177, 139, 190, .13);
    color: #c8a8d2;
}

[data-theme="dark"] .wm-ecosystem-shared {
    border-color: rgba(224, 239, 236, .24);
}

[data-theme="dark"] .wm-ecosystem-shared::before {
    border-color: rgba(224, 239, 236, .24);
}

[data-theme="dark"] .wm-ecosystem-shared strong,
[data-theme="dark"] .wm-ecosystem-shared nav a {
    color: #e5d393;
}

[data-theme="dark"] .wm-ecosystem-shared nav,
[data-theme="dark"] .wm-ecosystem-counts,
[data-theme="dark"] .wm-ecosystem-counts > a {
    border-color: rgba(224, 239, 236, .11);
}

[data-theme="dark"] .wm-ecosystem-counts {
    background: rgba(0, 0, 0, .09);
}

@media (max-width: 1350px) {
    .wm-ecosystem-layout { grid-template-columns: minmax(0, 1fr); }
    .wm-ecosystem-map { padding-left: 12px; padding-right: 12px; }
    .wm-ecosystem-node { padding-left: 8px; padding-right: 8px; }
    .wm-ecosystem-shared { width: min(350px, 84%); }
    .wm-ecosystem-counts { padding-left: 9px; padding-right: 9px; }
}

/* ── Dashboard content hierarchy (2026-07-26, Step 3) ────────────────────── */
body.wm-dashboard-page .wm-main {
    grid-template-columns: minmax(0, 2.45fr) minmax(300px, .9fr);
    grid-template-areas: none;
    grid-template-rows: auto;
    gap: 16px;
}

.wm-hub-attention,
.wm-ecosystem-overview,
.wm-plan-inventory,
.wm-people-section,
.wm-assumptions-card { grid-area: auto; }

.wm-hub-attention { grid-column: 1 / -1; }
.wm-ecosystem-overview,
.wm-plan-inventory { grid-column: 1; }
.wm-people-section,
.wm-assumptions-card { grid-column: 2; }
.wm-people-section { order: 0; }

.wm-plan-inventory {
    min-width: 0;
    padding: 18px 18px 16px;
    border: 1px solid var(--wm-shell-border);
    border-radius: 9px;
    background: rgba(252, 251, 248, .98);
    box-shadow: 0 8px 24px rgba(39, 47, 40, .06);
}

.wm-plan-inventory .wm-section-heading {
    display: flex !important;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 13px;
}

.wm-plan-inventory .wm-section-heading h2 {
    margin: 2px 0 0;
    color: #173d31;
    font: 700 20px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wm-plan-inventory .wm-section-heading p {
    max-width: 260px;
    margin: 0;
    color: #65766e;
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
}

.wm-plan-inventory-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.wm-plan-inventory .wm-app-card {
    min-width: 0;
    min-height: 0;
    gap: 11px;
    padding: 15px 14px 13px;
    border-color: rgba(23, 61, 49, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .48);
    box-shadow: none;
}

.wm-plan-inventory .wm-app-card::before {
    height: 3px;
}

.wm-plan-inventory .wm-app-card--budget::before { background: #8a793d; }
.wm-plan-inventory .wm-app-card--invest::before { background: #2f6f70; }
.wm-plan-inventory .wm-app-card--retire::before { background: #684a73; }
.wm-plan-inventory .wm-app-card--transactions { display: none !important; }

.wm-plan-inventory .wm-app-card-header {
    gap: 9px;
}

.wm-plan-inventory .wm-app-card-icon-wrap {
    width: 35px;
    height: 35px;
    border-radius: 7px;
}

.wm-plan-inventory .wm-app-card-icon-wrap.budget {
    background: rgba(138, 121, 61, .12);
}

.wm-plan-inventory .wm-app-card-icon-wrap.invest {
    background: rgba(47, 111, 112, .12);
}

.wm-plan-inventory .wm-app-card-icon-wrap.retire {
    background: rgba(104, 74, 115, .12);
}

.wm-plan-inventory .wm-app-card-icon-wrap .wm-app-mark {
    width: 27px;
    height: 27px;
}

.wm-plan-inventory .wm-app-card-icon-wrap .wm-app-mark svg {
    width: 18px;
    height: 18px;
}

.wm-plan-inventory .wm-app-card-icon-wrap.budget .wm-app-mark { color: #716128; }
.wm-plan-inventory .wm-app-card-icon-wrap.invest .wm-app-mark { color: #2f6f70; }
.wm-plan-inventory .wm-app-card-icon-wrap.retire .wm-app-mark { color: #684a73; }

.wm-plan-inventory .wm-app-card-name {
    color: #173d31;
    font-size: 15px;
}

.wm-plan-inventory .wm-app-card-status {
    margin-top: 1px;
    color: #6b7a72;
    font-size: 11px;
}

.wm-plan-inventory .wm-plan-list {
    gap: 7px;
}

.wm-plan-inventory .wm-plan-row {
    gap: 4px;
    padding: 8px 9px;
    border: 1px solid rgba(23, 61, 49, .08);
    border-radius: 7px;
    background: rgba(247, 243, 234, .62);
}

.wm-plan-inventory .wm-plan-row:hover,
.wm-plan-inventory .wm-plan-row:focus-visible {
    border-color: rgba(36, 72, 54, .38);
    background: #fffefa;
    transform: none;
}

.wm-plan-inventory .wm-plan-row-head strong {
    min-width: 0;
    overflow: hidden;
    color: #22392f;
    font-size: 14px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-plan-inventory .wm-plan-row-head > span {
    padding: 2px 6px;
    background: rgba(195, 162, 77, .14);
    color: #735b22;
    font-size: 10px;
}

.wm-plan-inventory .wm-plan-links {
    gap: 3px;
}

.wm-plan-inventory .wm-plan-links a,
.wm-plan-inventory .wm-plan-links span {
    max-width: 100%;
    overflow: hidden;
    padding: 2px 5px;
    border-color: rgba(23, 61, 49, .1);
    border-radius: 5px;
    background: rgba(252, 251, 248, .82);
    color: #68776f;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-plan-inventory .wm-plan-updated {
    color: #77837d;
    font-size: 11px;
    line-height: 1.3;
}

.wm-plan-inventory .wm-plan-more {
    padding: 4px 2px;
    color: #68776f;
    font-size: 11px;
}

.wm-plan-inventory .wm-app-card-empty {
    padding: 10px;
}

.wm-plan-inventory .wm-app-card-empty strong {
    font-size: 13px;
}

.wm-plan-inventory .wm-app-card-empty span,
.wm-plan-inventory .wm-locked-msg p {
    font-size: 11px;
    line-height: 1.4;
}

.wm-plan-inventory .wm-app-card-actions {
    padding-top: 8px;
    border-color: rgba(23, 61, 49, .1);
}

.wm-plan-inventory .wm-app-card-action {
    padding-top: 0;
    border: 0;
    color: #315847;
    font-size: 12px;
}

.wm-plan-inventory .wm-app-card-action:hover {
    color: #806826;
}

body.wm-dashboard-page .wm-people-section,
body.wm-dashboard-page .wm-assumptions-card {
    align-self: start;
}

body.wm-dashboard-page .wm-people-section {
    min-height: 0;
}

body.wm-dashboard-page .wm-people-grid {
    max-height: 245px;
}

body.wm-dashboard-page .wm-hub-attention {
    min-height: 0;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

body.wm-dashboard-page .wm-hub-attention .wm-hub-panel-heading {
    margin: 0;
}

body.wm-dashboard-page .wm-attention-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
    border-top: 0;
}

body.wm-dashboard-page .wm-attention-row {
    min-height: 64px;
    padding: 10px;
    border: 1px solid rgba(23, 61, 49, .11);
    border-radius: 7px;
    background: rgba(247, 243, 234, .48);
}

body.wm-dashboard-page .wm-attention-row:hover {
    border-color: rgba(36, 72, 54, .3);
    background: rgba(247, 243, 234, .8);
}

[data-theme="dark"] .wm-plan-inventory {
    border-color: rgba(224, 239, 236, .18);
    background: rgba(12, 25, 34, .94);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .3);
}

[data-theme="dark"] .wm-plan-inventory .wm-section-heading h2,
[data-theme="dark"] .wm-plan-inventory .wm-app-card-name,
[data-theme="dark"] .wm-plan-inventory .wm-plan-row-head strong {
    color: #f5f7f3;
}

[data-theme="dark"] .wm-plan-inventory .wm-section-heading p,
[data-theme="dark"] .wm-plan-inventory .wm-app-card-status,
[data-theme="dark"] .wm-plan-inventory .wm-plan-more,
[data-theme="dark"] .wm-plan-inventory .wm-app-card-empty span,
[data-theme="dark"] .wm-plan-inventory .wm-locked-msg p {
    color: #b9c8c4;
}

[data-theme="dark"] .wm-plan-inventory .wm-app-card {
    border-color: rgba(224, 239, 236, .12);
    background: rgba(255, 255, 255, .025);
}

[data-theme="dark"] .wm-plan-inventory .wm-plan-row {
    border-color: rgba(224, 239, 236, .08);
    background: rgba(255, 255, 255, .035);
}

[data-theme="dark"] .wm-plan-inventory .wm-plan-row:hover,
[data-theme="dark"] .wm-plan-inventory .wm-plan-row:focus-visible {
    border-color: rgba(224, 239, 236, .24);
    background: rgba(255, 255, 255, .06);
}

[data-theme="dark"] .wm-plan-inventory .wm-plan-row-head > span {
    background: rgba(195, 162, 77, .16);
    color: #e5d393;
}

[data-theme="dark"] .wm-plan-inventory .wm-plan-links a,
[data-theme="dark"] .wm-plan-inventory .wm-plan-links span {
    border-color: rgba(224, 239, 236, .1);
    background: rgba(255, 255, 255, .035);
    color: #b9c8c4;
}

[data-theme="dark"] .wm-plan-inventory .wm-plan-updated {
    color: #9fb0ab;
}

[data-theme="dark"] body.wm-dashboard-page .wm-attention-row {
    border-color: rgba(224, 239, 236, .1);
    background: rgba(255, 255, 255, .025);
}

[data-theme="dark"] body.wm-dashboard-page .wm-attention-row:hover {
    border-color: rgba(224, 239, 236, .22);
    background: rgba(255, 255, 255, .045);
}

[data-theme="dark"] body.wm-dashboard-page .wm-attention-settled {
    border-color: rgba(91, 185, 122, .2);
    background: rgba(91, 185, 122, .07);
}

@media (max-width: 1350px) {
    body.wm-dashboard-page .wm-main {
        grid-template-columns: minmax(0, 2.2fr) minmax(260px, .9fr);
    }

    .wm-plan-inventory {
        padding-left: 14px;
        padding-right: 14px;
    }

    .wm-plan-inventory-grid {
        gap: 8px;
    }

    .wm-plan-inventory .wm-app-card {
        padding-left: 11px;
        padding-right: 11px;
    }
}

/* Dashboard redesign Step 4: shared assumptions review and editor */

.wm-dashboard-nav-item.is-active,
.wm-dashboard-nav-item[aria-current="page"] {
    border-color: rgba(216, 184, 95, .46);
    background: rgba(255, 255, 255, .11);
    color: #fff;
}

.wm-dashboard-nav-item.is-active small,
.wm-dashboard-nav-item[aria-current="page"] small {
    color: rgba(247, 243, 234, .78);
}

.wm-assumptions-edit-link {
    color: #315847;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.wm-assumptions-edit-link:hover {
    color: #806826;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wm-assumptions-summary {
    display: grid;
    gap: 0;
    margin: 0;
}

.wm-assumptions-summary > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(23, 61, 49, .09);
}

.wm-assumptions-summary > div:last-child {
    border-bottom: 0;
}

.wm-assumptions-summary dt {
    color: #52685e;
    font-size: 13px;
    font-weight: 650;
}

.wm-assumptions-summary dd {
    margin: 0;
    color: #173d31;
    font-size: 15px;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.wm-assumptions-summary dd span {
    display: block;
    margin-top: 2px;
    color: #77837d;
    font-size: 11px;
    font-weight: 600;
}

body.wm-dashboard-page.wm-assumptions-page .wm-main {
    width: min(100%, 1180px);
    max-width: none;
    display: block;
    margin: 0 auto;
    padding: 42px 46px 56px;
}

.wm-assumptions-page-header {
    margin-bottom: 24px;
}

.wm-assumptions-page-header > div {
    max-width: 760px;
}

.wm-assumptions-back {
    display: inline-flex;
    margin-bottom: 28px;
    color: #52685e;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.wm-assumptions-back:hover {
    color: #806826;
}

.wm-assumptions-page-header h1 {
    margin: 6px 0 8px;
    color: var(--wm-shell-text);
    font: 650 34px/1.18 Cambria, Georgia, "Times New Roman", serif;
}

.wm-assumptions-page-header p {
    margin: 0;
    color: var(--wm-shell-muted);
    font-size: 14px;
    line-height: 1.6;
}

.wm-assumptions-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 18px;
    align-items: start;
}

.wm-assumptions-editor,
.wm-assumptions-context {
    border: 1px solid var(--wm-shell-border);
    border-radius: 10px;
    background: var(--wm-shell-card);
    box-shadow: 0 8px 24px rgba(39, 47, 40, .06);
}

.wm-assumptions-editor {
    padding: 28px 30px;
}

.wm-assumptions-editor-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--wm-shell-border);
}

.wm-assumptions-editor-heading h2,
.wm-assumptions-context h2 {
    margin: 0;
    color: #173d31;
    font-size: 18px;
    line-height: 1.3;
}

.wm-assumptions-editor-heading p {
    max-width: 600px;
    margin: 6px 0 0;
    color: #66736d;
    font-size: 12px;
    line-height: 1.55;
}

.wm-assumptions-save-status {
    min-width: 94px;
    color: #52685e;
    font-size: 11px;
    font-weight: 750;
    text-align: right;
}

.wm-assumptions-save-status.is-saved {
    color: #2f7048;
}

.wm-assumptions-save-status.is-error {
    min-width: 190px;
    color: #9f342f;
}

.wm-assumptions-editor-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 26px 0 30px;
}

.wm-assumptions-editor-field {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(23, 61, 49, .12);
    border-radius: 9px;
    background: #faf8f2;
}

.wm-assumptions-editor-field label {
    display: block;
    margin-bottom: 10px;
    color: #315847;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wm-assumptions-editor-input {
    display: flex;
    align-items: center;
    gap: 9px;
}

.wm-assumptions-editor-input input {
    width: 112px;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #c9c6bc;
    border-radius: 7px;
    background: #fff;
    color: #173d31;
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.wm-assumptions-editor-input input:focus {
    outline: 3px solid rgba(195, 162, 77, .3);
    outline-offset: 2px;
    border-color: #a18131;
}

.wm-assumptions-editor-input span {
    color: #66736d;
    font-size: 11px;
    font-weight: 700;
}

.wm-assumptions-editor-field p {
    margin: 10px 0 0;
    color: #77837d;
    font-size: 10px;
    line-height: 1.5;
}

.wm-assumptions-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--wm-shell-border);
}

.wm-assumptions-editor-actions p {
    margin: 0;
    color: #77837d;
    font-size: 10px;
}

.wm-assumptions-editor-actions .wm-btn {
    min-width: 128px;
}

.wm-assumptions-editor-actions .wm-btn:disabled {
    opacity: .58;
    cursor: wait;
}

.wm-assumptions-context {
    padding: 24px;
    border-top: 3px solid var(--wm-shell-gold);
}

.wm-assumptions-context h2 {
    margin-top: 7px;
}

.wm-assumptions-context strong {
    display: block;
    margin-top: 5px;
    color: #806826;
    font-size: 13px;
}

.wm-assumptions-context p {
    margin: 18px 0 0;
    color: #66736d;
    font-size: 11px;
    line-height: 1.65;
}

[data-theme="dark"] .wm-assumptions-edit-link,
[data-theme="dark"] .wm-assumptions-back {
    color: #d9bd69;
}

[data-theme="dark"] .wm-assumptions-summary > div {
    border-color: rgba(224, 239, 236, .1);
}

[data-theme="dark"] .wm-assumptions-summary dt,
[data-theme="dark"] .wm-assumptions-summary dd span {
    color: #b9c8c4;
}

[data-theme="dark"] .wm-assumptions-summary dd,
[data-theme="dark"] .wm-assumptions-page-header h1,
[data-theme="dark"] .wm-assumptions-editor-heading h2,
[data-theme="dark"] .wm-assumptions-context h2 {
    color: #f5f7f3;
}

[data-theme="dark"] .wm-assumptions-page-header p,
[data-theme="dark"] .wm-assumptions-editor-heading p,
[data-theme="dark"] .wm-assumptions-editor-field p,
[data-theme="dark"] .wm-assumptions-editor-actions p,
[data-theme="dark"] .wm-assumptions-context p,
[data-theme="dark"] .wm-assumptions-editor-input span {
    color: #b9c8c4;
}

[data-theme="dark"] .wm-assumptions-editor,
[data-theme="dark"] .wm-assumptions-context {
    border-color: #34443f;
    background: #172622;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

[data-theme="dark"] .wm-assumptions-editor-heading,
[data-theme="dark"] .wm-assumptions-editor-actions {
    border-color: #34443f;
}

[data-theme="dark"] .wm-assumptions-editor-field {
    border-color: rgba(224, 239, 236, .11);
    background: #1c2d29;
}

[data-theme="dark"] .wm-assumptions-editor-field label {
    color: #d5e0dc;
}

[data-theme="dark"] .wm-assumptions-editor-input input {
    border-color: #465851;
    background: #101c19;
    color: #f5f7f3;
}

@media (max-width: 1100px) {
    body.wm-dashboard-page.wm-assumptions-page .wm-main {
        padding-left: 28px;
        padding-right: 28px;
    }

    .wm-assumptions-workspace {
        grid-template-columns: minmax(0, 1fr) 245px;
    }

    .wm-assumptions-editor-fields {
        grid-template-columns: 1fr;
    }
}

/* Dashboard redesign Step 6: consistent keyboard focus */

body.wm-dashboard-page a:focus-visible,
body.wm-dashboard-page button:focus-visible,
body.wm-dashboard-page input:focus-visible,
body.wm-dashboard-page select:focus-visible,
body.wm-dashboard-page textarea:focus-visible,
body.wm-dashboard-page [tabindex]:focus-visible {
    outline: 3px solid #8a6b1f;
    outline-offset: 2px;
}

[data-theme="dark"] body.wm-dashboard-page a:focus-visible,
[data-theme="dark"] body.wm-dashboard-page button:focus-visible,
[data-theme="dark"] body.wm-dashboard-page input:focus-visible,
[data-theme="dark"] body.wm-dashboard-page select:focus-visible,
[data-theme="dark"] body.wm-dashboard-page textarea:focus-visible,
[data-theme="dark"] body.wm-dashboard-page [tabindex]:focus-visible {
    outline-color: #f0d77f;
}
.wm-connection-attention-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 12px 20px 0;
    padding: 11px 14px;
    border: 1px solid color-mix(in srgb, var(--wm-danger, #a43b32) 36%, var(--wm-border, #d9d2c1));
    border-left: 4px solid var(--wm-danger, #a43b32);
    border-radius: 10px;
    background: var(--wm-card, #fffdf8);
    color: var(--wm-text, #17392e);
    font-size: .84rem;
    line-height: 1.4;
}
.wm-connection-attention-banner a { color: var(--wm-green, #174f3c); font-weight: 800; white-space: nowrap; }
@media (max-width: 700px) {
    .wm-connection-attention-banner { align-items: flex-start; flex-direction: column; margin-inline: 12px; }
}
