/* Keep the dashboard controls aligned without their old minimum widths wrapping. */
.dashboard-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:16px;padding:13px 16px}.dashboard-toolbar>.segmented{height:46px;padding:4px;align-items:center;white-space:nowrap}.dashboard-toolbar>.segmented button{padding:9px 12px;min-height:36px;height:36px;gap:8px;font-size:13px;white-space:nowrap}.dashboard-toolbar>.refined-filters{display:grid;grid-template-columns:minmax(0,1.14fr) repeat(3,minmax(0,1fr));width:100%;min-width:0;gap:9px;align-items:center}.dashboard-toolbar .filter-picker{min-width:0;width:100%}.dashboard-toolbar .control-trigger{height:46px;min-height:46px;padding:11px 12px;font-size:12px;gap:9px}.dashboard-toolbar .control-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.6}.dashboard-toolbar .control-label .nexo-icon,.dashboard-toolbar .control-label .bank-logo{margin-right:6px;vertical-align:middle}.dashboard-toolbar .control-chevron,.dashboard-toolbar .period-indicator{flex-shrink:0}
/* Four equal compact cards; the detail arrow finishes close to the lower edge. */
.summary-stats{align-items:stretch;gap:20px}.summary-stats>.summary-card{display:flex;flex-direction:column;min-height:164px;padding:18px 20px 10px;height:auto}.summary-stats .summary-top{min-height:42px;gap:10px;flex-wrap:nowrap;font-size:13px}.summary-stats .summary-icon{width:42px;height:42px;flex-basis:42px;border-radius:13px}.summary-stats .summary-icon svg{width:26px;height:26px}.summary-stats .summary-value{font-size:26px;line-height:1.25;margin:15px 0 4px;font-weight:550}.summary-stats .summary-details{margin-top:auto}.summary-stats .summary-details summary{height:24px;width:30px;margin:0 auto;padding:0}.summary-stats .summary-details summary .nexo-icon{width:18px;height:18px}.summary-stats .summary-details[open] p{margin:9px 0 0}.summary-stats .summary-planned .summary-top{gap:10px;flex-wrap:nowrap}.summary-stats .summary-top strong{font-size:13px;font-weight:550;margin-left:auto}.summary-stats .summary-track{height:7px;min-height:7px;margin: auto 0 10px}.summary-stats .summary-budget{font-size:11px;margin:0;line-height:1.5}.summary-stats .summary-budget b{font-size:11px;font-weight:450}.summary-stats .summary-budget>div{gap:3px}
@media(max-width:1250px) and (min-width:801px){.dashboard-toolbar{gap:12px;padding:12px}.dashboard-toolbar>.segmented button{padding:9px 10px;font-size:12px;gap:7px}.dashboard-toolbar .control-trigger{padding:10px;font-size:11px}.dashboard-toolbar>.refined-filters{gap:7px}.summary-stats{gap:13px}.summary-stats>.summary-card{padding:17px 15px 10px}.summary-stats .summary-top{font-size:12px;gap:8px}.summary-stats .summary-icon{width:38px;height:38px;flex-basis:38px}.summary-stats .summary-value{font-size:25px}.summary-stats .summary-top strong{font-size:12px}.summary-stats .summary-planned .summary-top{flex-wrap:wrap}}
@media(max-width:1100px) and (min-width:801px){.dashboard-toolbar{grid-template-columns:minmax(0,1fr)}.dashboard-toolbar>.segmented{justify-self:start}.dashboard-toolbar .control-trigger{font-size:12px}}
@media(max-width:800px){.dashboard-toolbar{grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}.dashboard-toolbar>.segmented{justify-self:start;max-width:100%;height:44px}.dashboard-toolbar>.segmented button{font-size:12px;padding:8px 10px;height:34px;min-height:34px;gap:6px}.dashboard-toolbar>.refined-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dashboard-toolbar .control-trigger{height:44px;min-height:44px;font-size:12px;padding:10px 11px}.summary-stats{gap:13px}.summary-stats>.summary-card{min-height:158px;padding:15px 14px 9px}.summary-stats .summary-top{font-size:12px;gap:8px;min-height:36px;flex-wrap:nowrap}.summary-stats .summary-icon{width:36px;height:36px;flex-basis:36px;border-radius:11px}.summary-stats .summary-icon svg{width:23px;height:23px}.summary-stats .summary-value{font-size:24px;margin-top:14px}.summary-stats .summary-top strong{font-size:12px}.summary-stats .summary-planned .summary-top{flex-wrap:wrap;gap:5px 8px}.summary-stats .summary-track{margin-top:auto;margin-bottom:9px}.summary-stats .summary-budget,.summary-stats .summary-budget b{font-size:10px}}

/* Four visible category rows; further categories scroll inside the panel. */
.category-expense-list{--category-row-height:54px;max-height:calc(var(--category-row-height) * 4);overflow-y:auto;overscroll-behavior:contain;min-width:0;scrollbar-width:none}.category-expense-list>.list-row{height:var(--category-row-height);min-height:var(--category-row-height);box-sizing:border-box;padding:10px 0;gap:12px}.category-expense-list .inline-category{min-width:0;line-height:1.4}.category-expense-list .inline-category>.nexo-icon{flex-shrink:0}.category-expense-list .inline-category>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.category-expense-list .amount{flex-shrink:0}.category-expense-list:focus-visible{outline:2px solid #bfd0df;outline-offset:4px;border-radius:8px}

@media (min-width: 801px) {
 .overview-intro .dashboard-toolbar > .refined-filters {
  grid-template-columns: minmax(0,1.14fr) repeat(2,minmax(0,1fr)) minmax(176px,1fr);
 }
}

/* Desktop financial filters: leading icon and single-line value. */
:is(.desktop-filter-icon,.desktop-filter-arrow) {
 display:none!important;
}
@media (min-width:801px) {
 #app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  min-width:0;
 }
 #app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker {
  width:100%;
  min-width:0;
 }
 #app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > .control-trigger {
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr) 12px;
  align-content:center;
  align-items:center;
  column-gap:7px;
  width:100%;
  min-width:0;
  color:var(--text-primary);
 }
 #app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > .control-trigger:is(:hover,[aria-expanded="true"]),
 #app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker[open] > .control-trigger {
  background:#eef1f4!important;
 }
 #app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > .control-trigger > .desktop-filter-icon {
  display:grid!important;
  place-items:center;
  grid-area:1 / 1;
  color:var(--text-secondary);
 }
 #app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > .control-trigger > .desktop-filter-icon .nexo-icon {
  width:16px;
  height:16px;
 }
 #app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > .control-trigger > .control-label {
  display:block;
  grid-area:1 / 2;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  line-height:1.4;
  padding:0;
 }
 #app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > .control-trigger > .control-label > :is(.nexo-icon,.bank-logo),
 #app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > .control-trigger > .period-indicator {
  display:none!important;
 }
 #app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > .control-trigger > .control-chevron {
  grid-area:1 / 3;
  justify-self:center;
 }
 #app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > .control-trigger > .desktop-filter-arrow {
  display:block!important;
 }
 #app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > .control-trigger:focus-visible {
  outline:2px solid #7e98b2!important;
  outline-offset:2px;
 }
 #app#app#app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) .refined-filters > .filter-picker > .control-menu {
  border-radius:var(--nexo-action-radius)!important;
 }
}

@media (min-width:801px) {
 #app .transaction-tools > .toolbar > .refined-filters {
  flex:1 1 0;
 }
 #app#app .dashboard-toolbar {
  grid-template-columns:minmax(0,clamp(205px,32%,365px)) minmax(0,1fr)!important;
  gap:12px;
  align-items:center;
 }
 #app#app .dashboard-toolbar > .segmented {
  display:flex;
  width:100%;
  grid-area:1 / 1;
 }
 #app#app .dashboard-toolbar > .segmented > button {
  flex:1 1 auto;
  padding-inline:clamp(4px,.55vw,10px)!important;
  gap:5px;
 }
 #app#app .dashboard-toolbar > .refined-filters {
  grid-area:1 / 2;
 }
 #app#app :is(.dashboard-toolbar,.transaction-tools > .toolbar) > .refined-filters {
  --shared-filter-surface:var(--control-glass);
  --shared-filter-border:var(--control-glass-border);
  --shared-filter-inset:var(--control-glass-inset);
 }
 html body #app#app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker.filter-picker.filter-picker.filter-picker > summary.control-trigger.control-trigger {
  box-sizing:border-box;
  height:var(--tx-filter-height,var(--option-height))!important;
  min-height:var(--tx-filter-height,var(--option-height))!important;
  max-height:var(--tx-filter-height,var(--option-height))!important;
  padding:0 8px!important;
  gap:0 6px!important;
  border:1px solid var(--shared-filter-border,var(--option-border))!important;
  border-radius:999px!important;
  background:var(--shared-filter-surface,#fff)!important;
  box-shadow:var(--shared-filter-inset,none)!important;
 }
 html body #app#app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker.filter-picker.filter-picker.filter-picker:is(:hover,[open],:focus-within) > summary.control-trigger.control-trigger {
  background:var(--shared-filter-surface,#fff)!important;
  border-color:#8c9baa!important;
  box-shadow:var(--shared-filter-inset,none)!important;
 }
 html body #app#app#app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > .control-menu :is(.control-options button,.control-menu-footer > button) {
  border-radius:var(--nexo-action-radius)!important;
  box-shadow:none!important;
 }
 html body #app#app#app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > .control-menu :is(.control-options button:hover,.control-menu-footer > button:hover) {
  background:var(--menu-selected,#e9ebee)!important;
  border:1px solid var(--menu-selected-border,#dce0e4)!important;
  color:var(--text-secondary)!important;
 }
}

/* Match the desktop financial filters in the projection account selector. */
@media (min-width:801px) {
 html body #app#app .projection-account-picker .filter-picker.filter-picker.filter-picker.filter-picker > summary.control-trigger.control-trigger {
  box-sizing:border-box;
  height:var(--option-height)!important;
  min-height:var(--option-height)!important;
  max-height:var(--option-height)!important;
  border:1px solid var(--control-glass-border)!important;
  border-radius:999px!important;
  background:var(--control-glass)!important;
  box-shadow:var(--control-glass-inset)!important;
 }
 html body #app#app .projection-account-picker .filter-picker.filter-picker.filter-picker.filter-picker:is(:hover,[open],:focus-within) > summary.control-trigger.control-trigger {
  border-color:#8c9baa!important;
  background:var(--control-glass)!important;
  box-shadow:var(--control-glass-inset)!important;
 }
}


/* Approved calendar geometry and light palette. */
html body :is(#app#app#app#app#app#app,#modal#modal#modal#modal#modal#modal,#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog)
 :is(.period-menu:has(.period-months),.date-picker > .date-menu) {
 --calendar-highlight:#eaf1f6;
 --calendar-outline:#8aa2b7;
 --calendar-ink:#58768e;
 border-radius:25px!important;
 border-width:1px!important;
}
html body :is(#app#app#app#app#app#app,#modal#modal#modal#modal#modal#modal,#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog)
 .filter-picker[open] > .period-menu:has(.period-months) {
 box-sizing:border-box;
 aspect-ratio:1;
 display:grid!important;
 grid-template-rows:auto minmax(min-content,1fr) auto;
 align-content:start;
}
html body :is(.period-menu .period-months,.date-menu .date-days) {
 align-content:center;
 justify-items:center;
}
html body :is(#app#app#app#app#app#app,#modal#modal#modal#modal#modal#modal,#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog)
 :is(.period-menu .period-months > button,.date-menu .date-days > button[data-date-value]) {
 box-sizing:border-box!important;
 width:min(44px,100%)!important;
 height:auto!important;
 aspect-ratio:1;
 min-width:0!important;
 min-height:0!important;
 padding:0!important;
 justify-self:center;
 align-self:center;
 border-radius:13px!important;
 background:transparent!important;
 border:1px solid transparent!important;
 color:var(--calendar-ink,#58768e)!important;
 box-shadow:none!important;
}
html body :is(#app#app#app#app#app#app,#modal#modal#modal#modal#modal#modal,#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog)
 :is(.period-months > button,.date-days > button[data-date-value]):is(:hover,[aria-pressed="true"],.is-current) {
 background:var(--calendar-highlight,#eaf1f6)!important;
}
html body :is(#app#app#app#app#app#app,#modal#modal#modal#modal#modal#modal,#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog)
 :is(.period-months > button,.date-days > button[data-date-value]):is([aria-pressed="true"],.is-current) {
 border-color:var(--calendar-outline,#8aa2b7)!important;
 color:var(--text-primary)!important;
 font-weight:500;
}

@media (max-width:800px) {
 html body #app .overview-intro .dashboard-toolbar > .refined-filters {
  display:none!important;
 }
 #app .mobile-transactions .mobile-tx-months {
  touch-action:pan-x pan-y pinch-zoom;
 }
 #app .cashflow-plot .cashflow-hit-grid,
 #app .cashflow-plot .cashflow-hit-grid > button {
  touch-action:pan-y pinch-zoom!important;
 }
}

/* White financial filters with the shared selector ink accent. */
@media (min-width:801px) {
 html body #app#app#app#app#app .transaction-tools > .toolbar,
 html body #app#app#app#app#app .projection-account-picker .universal-picker,
 html body #app#app#app#app#app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker {
  --financial-filter-accent:#687D90;
 }
 html body #app#app#app#app#app .projection-account-picker .universal-picker > summary.control-trigger.control-trigger,
 html body #app#app#app#app#app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > summary.control-trigger.control-trigger {
  background:#fff!important;
  border-radius:var(--nexo-action-radius)!important;
  box-shadow:none!important;
 }
 html body #app#app#app#app#app .projection-account-picker .universal-picker[open] > summary.control-trigger.control-trigger,
 html body #app#app#app#app#app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker[open] > summary.control-trigger.control-trigger {
  border-color:color-mix(in srgb,var(--financial-filter-accent) 70%,#dbe5ee)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--financial-filter-accent) 20%,transparent)!important;
 }
 html body #app#app#app#app#app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker > .control-menu {
  border-radius:var(--nexo-action-radius)!important;
 }
 html body #app#app#app#app#app .projection-account-picker .universal-picker .control-options button[aria-checked="true"],
 html body #app#app#app#app#app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker .control-options button[aria-checked="true"] {
  background:#fff!important;
  border:1px solid color-mix(in srgb,var(--financial-filter-accent) 35%,#dbe5ee)!important;
  box-shadow:none!important;
 }
 html body #app#app#app#app#app .projection-account-picker .universal-picker .control-options button[aria-checked="false"]:is(:hover,:focus-visible),
 html body #app#app#app#app#app :is(.dashboard-toolbar,.analytics-toolbar,.transaction-tools > .toolbar) > .refined-filters > .filter-picker .control-options button[aria-checked="false"]:is(:hover,:focus-visible) {
  background:#eaf1f6!important;
  border-color:var(--menu-selected-border,#d8e4ee)!important;
 }
}

/* Match the transaction search to the adjacent filter controls. */
@media (min-width:801px) {
 html body #app#app#app .transaction-tools > .toolbar > input#search#search,
 html body #app#app#app#app#app .transaction-tools > .toolbar > .refined-filters > .filter-picker > summary.control-trigger.control-trigger {
  background-color:#fff!important;
  border-radius:var(--nexo-action-radius)!important;
 }
 html body #app#app#app .transaction-tools > .toolbar > input#search#search:focus {
  border-color:color-mix(in srgb,var(--financial-filter-accent) 70%,#dbe5ee)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--financial-filter-accent) 20%,transparent)!important;
 }
}

@media (min-width:801px) {
 html body #app#app#app#app#app .projection-account-picker .universal-picker .control-options button {
  border-radius:var(--nexo-action-radius)!important;
 }
}

@media (min-width:801px) {
 html body #app#app#app#app#app :is(.dashboard-toolbar,.analytics-toolbar) > .refined-filters > .filter-picker > :is(summary.control-trigger.control-trigger,.control-menu),
 html body #app#app#app#app#app .transaction-tools > .toolbar > .refined-filters > .filter-picker > .control-menu,
 html body #app#app#app#app#app .projection-account-picker .universal-picker > .control-menu {
  border-radius:25px!important;
 }
}

/* Match the desktop controls inside the mobile filter sheet. */
@media (max-width:800px) {
 html body #mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog #mobile-filters-form .universal-picker > summary.control-trigger {
  min-height:45px!important;
  background:#fff!important;
  border:1px solid var(--control-glass-border,#ccdbe7)!important;
  border-radius:var(--nexo-action-radius,15px)!important;
  box-shadow:none!important;
  color:var(--text-primary)!important;
 }
 html body #mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog #mobile-filters-form .universal-picker[open] > summary.control-trigger {
  border-color:color-mix(in srgb,#687d90 70%,#dbe5ee)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,#687d90 20%,transparent)!important;
 }
 html body #mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog #mobile-filters-form .universal-picker > .control-menu:not(.date-menu) {
  background:var(--control-glass)!important;
  border-radius:25px!important;
  -webkit-backdrop-filter:blur(24px) saturate(1.65)!important;
  backdrop-filter:blur(24px) saturate(1.65)!important;
 }
 html body #mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog #mobile-filters-form .control-options button {
  border-radius:var(--nexo-action-radius,15px)!important;
 }
 html body #mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog#mobile-filters-dialog #mobile-filters-form .control-options button[aria-checked="true"] {
  background:#fff!important;
  border:1px solid color-mix(in srgb,#687d90 35%,#dbe5ee)!important;
  box-shadow:none!important;
 }
 #mobile-filters-form .universal-picker > summary .control-label > .nexo-icon {
  width:16px;
  height:16px;
  flex:0 0 16px;
  color:var(--text-secondary);
 }
}

@media (max-width:800px) {
 html body #app#app#app#app#app .projection-account-picker .universal-picker > summary.control-trigger.control-trigger {
  background:#fff!important;
  border:1px solid var(--control-glass-border,#ccdbe7)!important;
  border-radius:var(--nexo-action-radius,15px)!important;
  box-shadow:none!important;
  color:var(--option-ink,#687d90)!important;
 }
 html body #app#app#app#app#app .projection-account-picker .universal-picker:is([open],:focus-within) > summary.control-trigger.control-trigger {
  border-color:color-mix(in srgb,#687d90 70%,#dbe5ee)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,#687d90 20%,transparent)!important;
 }
}
