/* Display preferences and interactive charts. Navigation control sizes stay intact. */
.experience-home-toolbar { display: flex; justify-content: flex-end; margin: -14px 0 4px; }
.experience-home-toolbar .ghost-button { background: transparent; border: 0; }
.experience-home-layout { display: flex; flex-direction: column; gap: 20px; width: 100%; min-width: 0; }
.experience-home-card { min-width: 0; order: var(--card-order); }
.experience-home-card[hidden], #experienceHomeEmpty[hidden] { display: none !important; }
.experience-home-card > .net-worth-panel { height: 100%; }
.experience-home-card > .side-insights { height: 100%; }
.experience-home-card.home-cash > .section-head { margin-top: 10px; }
.experience-home-card.home-activity > .table-panel, .experience-home-card.home-allocation > .table-panel { height: 100%; }
.experience-home-layout.experience-home-default { display: grid; grid-template-columns: minmax(0, 2.12fr) minmax(0, 1fr); align-items: stretch; }
.experience-home-default .home-balance { grid-column: 1; grid-row: 1; order: 0; }
.experience-home-default .home-insights { grid-column: 2; grid-row: 1; order: 1; }
.experience-home-default .home-cash { grid-column: 1 / -1; grid-row: 2; order: 2; }
.experience-home-default .home-calendar { grid-column: 1 / -1; grid-row: 3; order: 3; }
.experience-home-default .home-activity { grid-column: 1; grid-row: 4; order: 4; }
.experience-home-default .home-allocation { grid-column: 2; grid-row: 4; order: 5; }
.experience-private-amount { font: inherit; color: inherit; white-space: inherit; }
body.amounts-hidden .experience-private-value { display: none !important; }
body.amounts-hidden .experience-private-amount::after { content: "••••"; letter-spacing: 1px; white-space: nowrap; }
.experience-eye-button { flex-shrink: 0; }
.experience-chart-private-note { display: none; }
body.amounts-hidden #netWorthChart { visibility: hidden; }
body.amounts-hidden .experience-chart-private-note { display: grid; position: absolute; inset: 40px 0 42px; place-items: center; font-size: 13px; font-weight: 650; color: var(--muted); }
.experience-trend-wrap { position: relative; display: grid !important; grid-template-rows: auto minmax(130px, 1fr) auto auto; height: 235px; margin-top: 24px; text-align: center; }
.experience-trend-wrap canvas { display: block; height: 100%; width: 100%; min-height: 130px; touch-action: pan-y; cursor: crosshair; border-radius: 10px; }
.experience-trend-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #65625d; font-size: 12px; font-weight: 650; }
.experience-period-switch { display: flex; border-radius: 18px; background: #f4f3f1; padding: 3px; gap: 2px; }
.experience-period-switch button { border: 0; border-radius: 15px; background: transparent; min-width: 36px; min-height: 30px; color: #76726c; font-size: 12px; font-weight: 650; padding: 5px 9px; }
.experience-period-switch button.selected { background: white; color: #534437; box-shadow: 0 2px 5px #183a2510; }
.experience-trend-value { display: block; min-height: 20px; margin-top: 5px; color: #554539; font-size: 12px; font-weight: 650; }
.experience-chart-help { display: block; margin-top: 1px; color: #95928c; font-size: 10px; font-weight: 500; }
.allocation-legend-row[role="button"] { cursor: pointer; border-radius: 10px; padding: 5px; margin: -5px; }
.allocation-legend-row[role="button"]:hover { background: #f7f4ef; }
.allocation-legend-row[role="button"]:focus-visible { outline: 3px solid #43c59780; outline-offset: 4px; }
.experience-allocation-accounts { display: grid; gap: 8px; }
.experience-allocation-account { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px 12px; border: 0; border-radius: 15px; background: #f8f7f5; color: var(--ink); text-align: left; }
.experience-allocation-account > span:first-child { display: grid; gap: 5px; flex: 1; min-width: 0; }
.experience-allocation-account strong { font-size: 14px; overflow-wrap: anywhere; }
.experience-allocation-account small { font-size: 11px; color: var(--muted); }
.experience-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.experience-settings-grid h2 { margin-top: 0; }
.experience-setting-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 14px; font-weight: 650; }
.experience-setting-label select { min-height: 42px; padding: 8px 12px; border-radius: 13px; border: 1px solid #e8e6e3; background: white; }
.experience-switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.experience-switch > span { display: grid; gap: 5px; }
.experience-switch strong { font-size: 14px; }
.experience-switch small { line-height: 1.65; font-size: 12px; color: var(--muted); font-weight: 500; }
.experience-switch input, .experience-card-setting input { accent-color: #8d7a4f; width: 19px; height: 19px; flex-shrink: 0; }
.experience-card-settings { display: grid; gap: 3px; margin: 15px 0; }
.experience-card-setting { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #ebe9e6; }
.experience-card-setting label { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.experience-card-setting > div { display: flex; gap: 5px; }
.experience-card-setting button { min-width: 36px; min-height: 36px; padding: 5px 8px; border: 0; background: #f4f2ef; }
.experience-card-setting button:disabled { opacity: .35; cursor: default; }
.experience-large-text { font-size: 17px; }
.experience-large-text .section-kicker, .experience-large-text .metric-label, .experience-large-text .insight-panel .section-kicker, .experience-large-text .form-field { font-size: 15px; }
.experience-large-text .activity-name, .experience-large-text .data-title, .experience-large-text .experience-allocation-account strong { font-size: 16px; }
.experience-large-text .muted, .experience-large-text .metric-foot, .experience-large-text .data-sub { font-size: 13px; }
.experience-large-text .net-worth-panel > .section-kicker { font-size: 22px; }
.experience-no-motion *, .experience-no-motion *::before, .experience-no-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@keyframes experience-confirm { 0% { box-shadow: 0 0 0 0 #43c59744; } 60% { box-shadow: 0 0 0 7px #43c59700; } 100% { box-shadow: 0 7px 25px #0b1a121f; } }
.experience-save-feedback { animation: experience-confirm .55s ease-out; }
@media (max-width: 1000px) {
  .experience-home-layout.experience-home-default { display: flex; }
  .experience-home-default .experience-home-card { order: var(--card-order); }
  .experience-home-card > .side-insights { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .experience-settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .experience-home-toolbar { margin: -10px 0 -5px; }
  .experience-home-toolbar button { font-size: 11px; min-height: 30px; }
  .experience-home-layout { gap: 20px; }
  .experience-home-card > .net-worth-panel { padding-top: 10px; }
  .experience-home-card.home-activity > .table-panel, .experience-home-card.home-allocation > .table-panel { padding: 0; box-shadow: none; background: transparent; }
  .experience-home-card.home-activity .section-head, .experience-home-card.home-allocation .section-head { margin-top: 6px; }
  .experience-home-card.home-cash > .section-head { margin-top: 5px; }
  .experience-trend-wrap { height: 225px; margin-top: 22px; }
  .experience-trend-wrap canvas { min-height: 120px; }
  .experience-trend-controls { font-size: 11px; }
  .experience-settings-grid { gap: 16px; }
  .experience-allocation-account { padding: 13px 9px; gap: 8px; }
  .experience-allocation-account > strong { font-size: 13px; }
  .experience-large-text .net-worth-panel > .section-kicker { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .experience-save-feedback { animation: none !important; } }
