/* My Finance Records · V15.0.5 · delivered icon alignment layer */
/*
 * This file is the final visual layer after legacy interaction CSS and ships under a new V15.0.5 URL.
 * Strong selectors remain intentional so future legacy declarations cannot
 * recreate the build icon or widen icon/label spacing.
 */

/* Keep the build badge text-only and compact. */
html body #buildBadge {
  background-image:none !important;
}
html body #buildBadge::before,
html body #buildBadge::after {
  content:none !important;
  display:none !important;
  width:0 !important;
  height:0 !important;
  margin:0 !important;
  background:none !important;
  -webkit-mask-image:none !important;
  mask-image:none !important;
}

/* Keep shared icon + label controls compact without changing their hit areas. */
html body .button {
  gap:4px !important;
}
html body #addAccountButton,
html body #addSavingsGoalButton,
html body #quickAddExpense,
html body .topbar-add-button,
html body [data-pc-add],
html body [data-pc-full-add],
html body .button:has(> .toolbar-icon) {
  gap:4px !important;
}

/* Center the Dashboard utility/customize icon inside its existing square hit area. */
html body #customizeDashboardButton[data-dashboard-toolbar-action],
html body .topbar-actions > button:not(.cloud-sync-toolbar-button):not(.topbar-add-button) {
  display:inline-grid !important;
  place-items:center !important;
  padding-inline:0 !important;
  text-align:center !important;
}
html body #customizeDashboardButton[data-dashboard-toolbar-action]::before {
  margin:0 !important;
  justify-self:center !important;
  align-self:center !important;
}
html body .topbar-actions > button:not(.cloud-sync-toolbar-button):not(.topbar-add-button) > :is(svg,img,.toolbar-icon) {
  margin:0 !important;
  justify-self:center !important;
  align-self:center !important;
}

/* V15.0.5 header hotfix: optical centering for the asymmetric widget glyph. */
html body #customizeDashboardButton[data-dashboard-toolbar-action]::before {
  transform:translateY(1px) !important;
  transform-origin:center !important;
}

/* V15.1.0 desktop toolbar height normalization. */
@media (min-width:851px) {
  html body .topbar-actions > .cloud-sync-toolbar-button,
  html body #customizeDashboardButton[data-dashboard-toolbar-action],
  html body .topbar-actions .topbar-history-button,
  html body .topbar-actions .topbar-add-button,
  html body .topbar-actions .topbar-tools-trigger {
    box-sizing:border-box !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
  }
  html body .topbar-actions .month-navigator {
    box-sizing:border-box !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    padding-block:1px !important;
    align-items:center !important;
  }
}

/* V15.2.2 sidebar nav alignment: Insights follows the same horizontal padding as peer items. */
@media (min-width:851px) {
  html body .sidebar.desktop-open .insights-nav-button,
  html body .sidebar.sidebar-pinned .insights-nav-button {
    padding-inline-start:10px !important;
  }
}
@media (max-width:850px) {
  html body .sidebar .insights-nav-button {
    padding-inline-start:12px !important;
  }
}

/* V15.2.2 sidebar brand: full product name with a compact, stable pin control. */
@media (min-width:851px) {
  html body .sidebar.desktop-open .sidebar-close-button,
  html body .sidebar.sidebar-pinned .sidebar-close-button {
    box-sizing:border-box !important;
    width:28px !important;
    min-width:28px !important;
    max-width:28px !important;
    height:28px !important;
    min-height:28px !important;
    max-height:28px !important;
    top:15px !important;
  }
  html body .sidebar.desktop-open .sidebar-close-button :is(.sidebar-pin-icon,.sidebar-unpin-icon),
  html body .sidebar.sidebar-pinned .sidebar-close-button :is(.sidebar-pin-icon,.sidebar-unpin-icon) {
    width:14px !important;
    height:14px !important;
  }
  html body .sidebar.desktop-open .brand,
  html body .sidebar.sidebar-pinned .brand {
    left:52px !important;
    right:8px !important;
    min-width:0 !important;
    height:42px !important;
  }
  html body .sidebar.desktop-open .brand strong,
  html body .sidebar.sidebar-pinned .brand strong {
    display:block !important;
    max-width:100% !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
    font-size:1rem !important;
    line-height:1.1 !important;
    font-weight:850 !important;
    letter-spacing:-.015em !important;
  }
}

@media (max-width:850px) {
  html body .sidebar .brand strong {
    white-space:nowrap !important;
    font-size:1rem !important;
  }
}

/* Exact sidebar typography requested for every expanded desktop and mobile label. */
html body .sidebar .nav-label {
  font-size:.6875rem !important;
}

/* V15.2.3 · More tools uses the user's exact uploaded 50px PNG artwork. */
html body #topbarToolsPanel :is(#themeToggleButton,#quickEntryMenuButton,#customizeDashboardMenuButton,#globalSearchButton,#productivityCenterButton) .toolbar-icon {
  width:20px !important;
  min-width:20px !important;
  height:20px !important;
  flex:0 0 20px !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:20px 20px !important;
}
html body #topbarToolsPanel :is(#themeToggleButton,#quickEntryMenuButton,#customizeDashboardMenuButton,#globalSearchButton,#productivityCenterButton) .toolbar-icon > svg {
  opacity:0 !important;
}

/* Philippine time has separate artwork for the resolved day/night appearance. */
html[data-theme-preference="system"][data-theme="dark"] body #themeToggleButton .toolbar-icon {
  background-image:url("./icons/more-tools-theme-ph-dark.png") !important;
}
html[data-theme-preference="system"][data-theme="light"] body #themeToggleButton .toolbar-icon {
  background-image:url("./icons/more-tools-theme-ph-light.png") !important;
}
html[data-theme-preference="dark"] body #themeToggleButton .toolbar-icon {
  background-image:url("./icons/more-tools-theme-dark.png") !important;
}
html[data-theme-preference="light"] body #themeToggleButton .toolbar-icon {
  background-image:url("./icons/more-tools-theme-light.png") !important;
}

/* Remaining More tools icons switch to the user's matching dark/light artwork. */
html[data-theme="dark"] body #quickEntryMenuButton .toolbar-icon {
  background-image:url("./icons/more-tools-quick-add-dark.png") !important;
}
html[data-theme="light"] body #quickEntryMenuButton .toolbar-icon {
  background-image:url("./icons/more-tools-quick-add-light.png") !important;
}
html[data-theme="dark"] body #customizeDashboardMenuButton .toolbar-icon {
  background-image:url("./icons/more-tools-customize-dark.png") !important;
}
html[data-theme="light"] body #customizeDashboardMenuButton .toolbar-icon {
  background-image:url("./icons/more-tools-customize-light.png") !important;
}
html[data-theme="dark"] body #globalSearchButton .toolbar-icon {
  background-image:url("./icons/more-tools-search-dark.png") !important;
}
html[data-theme="light"] body #globalSearchButton .toolbar-icon {
  background-image:url("./icons/more-tools-search-light.png") !important;
}
html[data-theme="dark"] body #productivityCenterButton .toolbar-icon {
  background-image:url("./icons/more-tools-quick-actions-dark.png") !important;
}
html[data-theme="light"] body #productivityCenterButton .toolbar-icon {
  background-image:url("./icons/more-tools-quick-actions-light.png") !important;
}

/* V15.2.3 · Finance monthly-save button uses the exact uploaded saved/unsaved artwork. */
html body .button-saved,
html body .button-saved:hover,
html body .button-saved:focus-visible,
html body .button-saved:active,
html body .button-saved.active,
html body .button-saved.active:hover {
  width:34px !important;
  min-width:34px !important;
  height:34px !important;
  min-height:34px !important;
  padding:0 !important;
  border-color:transparent !important;
  border-radius:var(--talaan-control-radius) !important;
  background:transparent !important;
  color:inherit !important;
  box-shadow:none !important;
}
html body .button-saved {
  transform:scale(1);
  transform-origin:center;
  transition:transform .22s cubic-bezier(.34,1.56,.64,1) !important;
  will-change:transform;
}
html body .button-saved:active {
  transform:scale(.82) !important;
  transition-duration:.07s !important;
}
html body .button-saved .saved-icon-container {
  width:30px !important;
  min-width:30px !important;
  height:30px !important;
  flex:0 0 30px !important;
  border:0 !important;
  border-radius:0 !important;
  background-image:url("./icons/finance-save-unsaved-r2.png") !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:30px 30px !important;
}
html body .button-saved.active .saved-icon-container {
  background-image:url("./icons/finance-save-saved-r2.png") !important;
}
html body .button-saved .saved-icon {
  opacity:0 !important;
}
html body .button-saved .saved-button-text {
  display:none !important;
}
@media (prefers-reduced-motion: reduce) {
  html body .button-saved {
    transition:none !important;
  }
  html body .button-saved:active {
    transform:none !important;
  }
}

/* V15.2.3 · Finance legend markers use the supplied scalloped silhouette. */
html body #money .legend > .legend-item .legend-dot {
  border-radius:0 !important;
  -webkit-mask-image:url("./icons/finance-legend-shape.png");
  mask-image:url("./icons/finance-legend-shape.png");
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
}

/* V15.2.4 · Finance Spend keeps its existing small icon dimensions and uses the exact supplied receipt artwork. */
html body #money .account-card-actions .account-spend-button > svg {
  background-image:url("./icons/finance-spend-light.png") !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:contain !important;
  stroke:transparent !important;
  fill:transparent !important;
}
html[data-theme="dark"] body #money .account-card-actions .account-spend-button > svg {
  background-image:url("./icons/finance-spend-dark.png") !important;
}
html[data-theme="light"] body #money .account-card-actions .account-spend-button > svg {
  background-image:url("./icons/finance-spend-light.png") !important;
}

/* V15.2.4-r4 · Finance completion hearts use the exact clean uploaded artwork without changing size or layout. */
html body #money .first-half-complete-icon {
  content:url("./icons/heart-smile-light-r4.png") !important;
}
html[data-theme="dark"] body #money .first-half-complete-icon {
  content:url("./icons/heart-smile-dark-r4.png") !important;
}
html[data-theme="light"] body #money .first-half-complete-icon {
  content:url("./icons/heart-smile-light-r4.png") !important;
}

/* V15.2.4 · More tools appearance is one compact icon + Auto/Light/Dark label. */
html body #themeToggleButton > span:last-child > strong {
  display:none !important;
}
html body #themeToggleText {
  display:inline-grid !important;
  align-items:center !important;
  margin:0 !important;
  color:var(--text) !important;
  font-size:0 !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
}
html body #themeToggleText::after {
  color:inherit;
  font-size:.72rem;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
}
html[data-theme-preference="system"] body #themeToggleText::after {
  content:"Auto";
}
html[data-theme-preference="light"] body #themeToggleText::after {
  content:"Light";
}
html[data-theme-preference="dark"] body #themeToggleText::after {
  content:"Dark";
}

/* V15.2.4 · Desktop month selector uses the clean, flat More tools visual language. */
@media (min-width:851px) {
  html body .topbar-actions .month-navigator {
    display:flex !important;
    gap:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    background-image:none !important;
    box-shadow:none !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
    overflow:visible !important;
  }

  html body .topbar-actions .month-navigator > .month-nav-button,
  html body .topbar-actions .month-navigator > .month-control {
    box-sizing:border-box !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    margin:0 !important;
    border:1px solid var(--line) !important;
    border-radius:0 !important;
    background:var(--surface) !important;
    background-image:none !important;
    box-shadow:none !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  html body .topbar-actions .month-navigator > #previousMonthButton {
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
    padding:0 !important;
    border-inline-end:0 !important;
    border-radius:var(--talaan-control-radius) 0 0 var(--talaan-control-radius) !important;
  }

  html body .topbar-actions .month-navigator > .month-control {
    width:190px !important;
    padding:0 !important;
    border-inline-end:0 !important;
  }

  html body .topbar-actions .month-navigator > #nextMonthButton {
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
    padding:0 !important;
    border-radius:0 var(--talaan-control-radius) var(--talaan-control-radius) 0 !important;
  }

  html body .topbar-actions .month-navigator .month-display-button {
    box-sizing:border-box !important;
    width:100% !important;
    height:36px !important;
    min-height:36px !important;
    padding:4px 10px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  html body .topbar-actions .month-navigator > .month-nav-button:not(:disabled):hover,
  html body .topbar-actions .month-navigator .month-display-button:not(:disabled):hover {
    background:var(--surface-soft) !important;
  }

  html body .topbar-actions .month-navigator > .month-current-button {
    box-sizing:border-box !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    margin-inline-start:8px !important;
    padding-inline:10px !important;
    border:1px solid var(--line) !important;
    border-radius:var(--talaan-control-radius) !important;
    background:var(--surface) !important;
    background-image:none !important;
    box-shadow:none !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  html body .topbar-actions .month-navigator > .month-status-chip {
    box-sizing:border-box !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    margin-inline-start:8px !important;
    border-radius:var(--talaan-control-radius) !important;
  }

  html body .topbar-actions .month-display-label {
    color:var(--muted) !important;
    font-size:.61rem !important;
    font-weight:750 !important;
  }

  html body .topbar-actions .month-display-value {
    color:var(--text) !important;
    font-size:.76rem !important;
    font-weight:800 !important;
  }
}

/* V15.2.4-r3 · Final network-first More tools Appearance geometry. */
html body #topbarToolsPanel #themeToggleButton.topbar-tools-item.theme-toggle-button {
  box-sizing:border-box !important;
  width:100% !important;
  min-width:0 !important;
  height:38px !important;
  min-height:38px !important;
  max-height:38px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  justify-items:start !important;
  place-items:center start !important;
  gap:6px !important;
  padding:6px 10px !important;
  text-align:left !important;
}
html body #topbarToolsPanel #themeToggleButton > .toolbar-icon {
  width:20px !important;
  min-width:20px !important;
  max-width:20px !important;
  height:20px !important;
  min-height:20px !important;
  max-height:20px !important;
  flex:0 0 20px !important;
  margin:0 !important;
  align-self:center !important;
}
html body #topbarToolsPanel #themeToggleButton > span:last-child {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:auto !important;
  min-width:0 !important;
  height:20px !important;
  min-height:20px !important;
  margin:0 !important;
  padding:0 !important;
  text-align:left !important;
}
html body #topbarToolsPanel #themeToggleText {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:auto !important;
  height:20px !important;
  min-height:20px !important;
  margin:0 !important;
  padding:0 !important;
  line-height:20px !important;
  text-align:left !important;
}

/* V15.2.28 · Phone More tools rows keep their labels inside the 35px contract. */
@media (max-width:700px) {
  html body #topbarToolsPanel > .topbar-tools-item {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:35px !important;
    min-height:35px !important;
    max-height:35px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    padding:3px 8px !important;
    overflow:hidden !important;
  }

  html body #topbarToolsPanel #themeToggleButton.topbar-tools-item.theme-toggle-button {
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:35px !important;
    min-height:35px !important;
    max-height:35px !important;
    padding:3px 8px !important;
  }

  html body #topbarToolsPanel > .topbar-tools-item > .toolbar-icon {
    width:20px !important;
    min-width:20px !important;
    max-width:20px !important;
    height:20px !important;
    min-height:20px !important;
    max-height:20px !important;
    flex:0 0 20px !important;
  }

  html body #topbarToolsPanel > .topbar-tools-item > span:last-child {
    min-width:0 !important;
    max-width:100% !important;
    display:block !important;
  }
}

/* V15.2.5-r3 · Available Money uses universal 35px scalloped account badges without cropping. */
html body #money #moneyAccounts .account-card-icon {
  --available-account-badge-fill:color-mix(in srgb,var(--surface-soft) 82%,var(--primary) 18%);
  box-sizing:border-box !important;
  width:35px !important;
  min-width:35px !important;
  max-width:35px !important;
  height:35px !important;
  min-height:35px !important;
  max-height:35px !important;
  flex:0 0 35px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:var(--available-account-badge-fill) !important;
  display:inline-grid !important;
  place-items:center !important;
  overflow:hidden !important;
  -webkit-mask-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAEVQTFRFAAAA3+/v4+fu4+ft4+ju4ufs4+bt3+fs5Oft4uft5+fv4+fs4+bs59/v5Ojt5Ofv4+bt5OTv5OTq4ufs4ubt3+Tv4+jsMCIv+AAAABd0Uk5TABC//89g/2Cf/yD//yCPn+8wMP//MK9rXdHQAAABiklEQVR4nK2WUXODIAyAQVa03ebV7v//we1ha3tWh8UWUFBJELxrnjySjyQkQSjZLPRlCKWU0PsWZKeWJSFZl4zkdn+UwZBd7z4xBkEmgkmMmSHFpOUC7NNC5EBb34wxQfaN2U3pDlcfYQtjCeMlds0iZW0MucCsORHK0cd5iRyv0HIwn9KSS2QPEoYxegiDxkBQBE3baSBSdEHACG8AEnYRDExXLii6mEukumBd4snYb9QRceH3ziGn8/HPuE5iaLIPF5tGUspIhhMg/UMjb49kJ0TfITTZiREupEbe43nPmEYj2ZbrbwjMRBbrFltnufWQCzEecjqT2VJqJtpgjpi35XpIrdeWCcUpWmTE1vrSTCwcsWg6PhLPv6iBl6iAwKrfoK2OQGXqIfqCjc2lh5Q1FyODZaXX7C/GdTGP3WI2+9kv6d8pl11tneY3H1GxZV0gGS4++6mjkPGqLsaNTozJ0w/QYxOpYrSxlcjJo0Ns8+L0hmjxuR+ZHCOCLyX1CPj6xlWve1ytyRMuvYMzfn/h6gAAAABJRU5ErkJggg==") !important;
  mask-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAEVQTFRFAAAA3+/v4+fu4+ft4+ju4ufs4+bt3+fs5Oft4uft5+fv4+fs4+bs59/v5Ojt5Ofv4+bt5OTv5OTq4ufs4ubt3+Tv4+jsMCIv+AAAABd0Uk5TABC//89g/2Cf/yD//yCPn+8wMP//MK9rXdHQAAABiklEQVR4nK2WUXODIAyAQVa03ebV7v//we1ha3tWh8UWUFBJELxrnjySjyQkQSjZLPRlCKWU0PsWZKeWJSFZl4zkdn+UwZBd7z4xBkEmgkmMmSHFpOUC7NNC5EBb34wxQfaN2U3pDlcfYQtjCeMlds0iZW0MucCsORHK0cd5iRyv0HIwn9KSS2QPEoYxegiDxkBQBE3baSBSdEHACG8AEnYRDExXLii6mEukumBd4snYb9QRceH3ziGn8/HPuE5iaLIPF5tGUspIhhMg/UMjb49kJ0TfITTZiREupEbe43nPmEYj2ZbrbwjMRBbrFltnufWQCzEecjqT2VJqJtpgjpi35XpIrdeWCcUpWmTE1vrSTCwcsWg6PhLPv6iBl6iAwKrfoK2OQGXqIfqCjc2lh5Q1FyODZaXX7C/GdTGP3WI2+9kv6d8pl11tneY3H1GxZV0gGS4++6mjkPGqLsaNTozJ0w/QYxOpYrSxlcjJo0Ns8+L0hmjxuR+ZHCOCLyX1CPj6xlWve1ytyRMuvYMzfn/h6gAAAABJRU5ErkJggg==") !important;
  -webkit-mask-repeat:no-repeat !important;
  mask-repeat:no-repeat !important;
  -webkit-mask-position:center !important;
  mask-position:center !important;
  -webkit-mask-size:100% 100% !important;
  mask-size:100% 100% !important;
}
html body #money #moneyAccounts .account-card-icon > img {
  width:29px !important;
  max-width:29px !important;
  height:29px !important;
  max-height:29px !important;
  object-fit:contain !important;
  object-position:center !important;
  border-radius:0 !important;
}

/* Current uploaded account artwork: extend each logo's own badge color through the outer scallop. */
html body #money #moneyAccounts .account-card-icon:has(> img[alt="Wallet icon" i]) { --available-account-badge-fill:#ffffff; }
html body #money #moneyAccounts .account-card-icon:has(> img[alt="UnionBank icon" i]) { --available-account-badge-fill:#f58220; }
html body #money #moneyAccounts .account-card-icon:has(> img[alt="RCBC icon" i]) { --available-account-badge-fill:#4b9bd4; }
html body #money #moneyAccounts .account-card-icon:has(> img[alt="Maya icon" i]) { --available-account-badge-fill:#101713; }
html body #money #moneyAccounts .account-card-icon:has(> img[alt="GCash icon" i]) { --available-account-badge-fill:#0b66d6; }
html body #money #moneyAccounts .account-card-icon:has(> img[alt="GoTyme icon" i]) { --available-account-badge-fill:#16d3cf; }
html body #money #moneyAccounts .account-card-icon:has(> img[alt="Metrobank icon" i]) { --available-account-badge-fill:#005baa; }

/* Account labels follow the canvas so light and dark cards remain readable. */
html body #money #moneyAccounts .account-card .account-card-label > span {
  color:var(--text) !important;
}
html body #money #moneyAccounts .account-card .account-card-label > small {
  color:var(--muted) !important;
}
html body #projects .completed-project-record .project-source-line {
  color:var(--text) !important;
}
html body #projects .completed-project-record .project-deadline-state.upcoming {
  color:var(--text) !important;
  background:color-mix(in srgb,var(--green-soft) 78%,var(--surface) 22%) !important;
}
html body #projects .completed-project-record .project-revision-inline {
  color:var(--text) !important;
  background:color-mix(in srgb,var(--orange-soft) 78%,var(--surface) 22%) !important;
  border-color:color-mix(in srgb,var(--orange) 55%,var(--line)) !important;
}

/* V15.2.7 touch-tablet toolbar sizing */
@media (min-width:701px) and (max-width:1024px) and (pointer:coarse),
       (min-width:701px) and (max-width:1024px) and (hover:none) {
  html body .workspace-switcher-button,
  html body .topbar .month-nav-button,
  html body .topbar #topbarToolsTrigger {
    box-sizing:border-box !important;
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;
  }
  html body .topbar .month-nav-button,
  html body .topbar #topbarToolsTrigger {
    min-width:44px !important;
  }
}
@media (min-width:851px) and (max-width:1024px) and (pointer:coarse),
       (min-width:851px) and (max-width:1024px) and (hover:none) {
  html body .topbar-actions > .cloud-sync-toolbar-button,
  html body .topbar-actions .topbar-history-button,
  html body .topbar-actions .topbar-tools-trigger,
  html body .topbar-actions .month-navigator,
  html body .topbar-actions .month-navigator > .month-nav-button,
  html body .topbar-actions .month-navigator > .month-control {
    box-sizing:border-box !important;
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;
  }
  html body .topbar-actions .month-navigator > #previousMonthButton,
  html body .topbar-actions .month-navigator > #nextMonthButton {
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
  }
  html body .topbar-actions .month-navigator .month-display-button {
    height:42px !important;
    min-height:42px !important;
  }
}

/* V15.2.9 · Quick actions keeps the native sliders SVG. */
html body #topbarToolsPanel #productivityCenterButton .toolbar-icon {
  background-image:none !important;
}
html body #topbarToolsPanel #productivityCenterButton .toolbar-icon > svg {
  opacity:1 !important;
}

/* V15.2.18 · Rounded standalone desktop month controls and compact 4×3 picker. */
@media (min-width:851px) {
  html body .topbar-actions .month-navigator {
    gap:6px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
    overflow:visible !important;
  }

  html body .topbar-actions .month-navigator > .month-nav-button,
  html body .topbar-actions .month-navigator > .month-control {
    box-sizing:border-box !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    margin:0 !important;
    border:1px solid var(--line) !important;
    border-radius:var(--talaan-control-radius) !important;
    background:var(--surface) !important;
    background-image:none !important;
    box-shadow:0 2px 8px color-mix(in srgb,#0f172a 10%,transparent) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  html body .topbar-actions .month-navigator > #previousMonthButton,
  html body .topbar-actions .month-navigator > #nextMonthButton {
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
    padding:0 !important;
    border-inline:1px solid var(--line) !important;
    border-radius:var(--talaan-control-radius) !important;
  }

  html body .topbar-actions .month-navigator > .month-control {
    width:178px !important;
    padding:0 !important;
    border-inline:1px solid var(--line) !important;
    position:relative !important;
  }

  html body .topbar-actions .month-navigator .month-display-button {
    box-sizing:border-box !important;
    width:100% !important;
    height:36px !important;
    min-height:36px !important;
    display:grid !important;
    grid-template-columns:14px minmax(0,1fr) !important;
    align-items:center !important;
    gap:7px !important;
    padding:4px 10px !important;
    border:0 !important;
    border-radius:var(--talaan-control-radius) !important;
    background:transparent !important;
    color:var(--text) !important;
    box-shadow:none !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  html body .topbar-actions .month-navigator .month-display-button::before {
    content:"" !important;
    width:14px !important;
    height:14px !important;
    display:block !important;
    background-color:var(--muted) !important;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h1a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V2Zm11 8H6v9a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-9Z'/%3E%3C/svg%3E") !important;
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h1a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V2Zm11 8H6v9a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-9Z'/%3E%3C/svg%3E") !important;
    -webkit-mask-repeat:no-repeat !important;
    mask-repeat:no-repeat !important;
    -webkit-mask-position:center !important;
    mask-position:center !important;
    -webkit-mask-size:contain !important;
    mask-size:contain !important;
  }

  html body .topbar-actions .month-display-label,
  html body .topbar-actions .month-display-separator {
    display:none !important;
  }

  html body .topbar-actions .month-display-value {
    min-width:0 !important;
    color:var(--text) !important;
    font-size:.76rem !important;
    font-weight:800 !important;
    text-align:center !important;
  }

  html body .topbar-actions .month-navigator > .month-nav-button:not(:disabled):hover,
  html body .topbar-actions .month-navigator .month-display-button:not(:disabled):hover {
    background:var(--surface-soft) !important;
    border-color:var(--line) !important;
  }

  html body .topbar-actions .month-navigator > :is(.month-current-button,.month-status-chip) {
    box-sizing:border-box !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    margin-inline-start:2px !important;
    border-radius:var(--talaan-control-radius) !important;
    box-shadow:0 2px 8px color-mix(in srgb,#0f172a 8%,transparent) !important;
  }

  html body .topbar-actions .month-navigator > .month-current-button {
    padding-inline:10px !important;
    border:1px solid var(--line) !important;
    background:var(--surface) !important;
    background-image:none !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  html body .topbar-actions .month-picker-popover {
    top:calc(100% + 8px) !important;
    right:0 !important;
    left:auto !important;
    transform:none !important;
    width:280px !important;
    padding:10px !important;
    border:1px solid var(--line) !important;
    border-radius:var(--talaan-popover-radius) !important;
    background:var(--surface) !important;
    background-image:none !important;
    box-shadow:0 14px 34px color-mix(in srgb,#0f172a 18%,transparent) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  html body .topbar-actions .month-picker-heading {
    grid-template-columns:32px 1fr 32px !important;
    gap:6px !important;
    margin-bottom:8px !important;
  }

  html body .topbar-actions .month-picker-heading strong {
    font-size:.8rem !important;
    font-weight:800 !important;
  }

  html body .topbar-actions .month-picker-year-button {
    width:32px !important;
    height:32px !important;
    padding:0 !important;
    border:1px solid var(--line) !important;
    border-radius:var(--talaan-control-radius) !important;
    background:var(--surface) !important;
    color:var(--text) !important;
    box-shadow:0 1px 4px color-mix(in srgb,#0f172a 8%,transparent) !important;
  }

  html body .topbar-actions .month-picker-grid {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:6px !important;
  }

  html body .topbar-actions .month-picker-option {
    min-height:36px !important;
    padding:5px 4px !important;
    border:1px solid var(--line) !important;
    border-radius:var(--talaan-control-radius) !important;
    background:var(--surface) !important;
    color:var(--text) !important;
    font-size:.65rem !important;
    font-weight:750 !important;
    box-shadow:none !important;
  }

  html body .topbar-actions .month-picker-option:hover,
  html body .topbar-actions .month-picker-option:focus-visible {
    border-color:color-mix(in srgb,var(--primary) 55%,var(--line)) !important;
    background:var(--surface-soft) !important;
    color:var(--text) !important;
  }

  html body .topbar-actions .month-picker-option[aria-selected="true"] {
    border-color:var(--primary) !important;
    background:var(--primary) !important;
    color:var(--primary-contrast) !important;
  }
}

@media (min-width:851px) and (max-width:1024px) and (pointer:coarse),
       (min-width:851px) and (max-width:1024px) and (hover:none) {
  html body .topbar-actions .month-navigator,
  html body .topbar-actions .month-navigator > .month-nav-button,
  html body .topbar-actions .month-navigator > .month-control {
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;
  }
  html body .topbar-actions .month-navigator > #previousMonthButton,
  html body .topbar-actions .month-navigator > #nextMonthButton {
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
  }
  html body .topbar-actions .month-navigator .month-display-button {
    height:42px !important;
    min-height:42px !important;
  }
}


/* V15.2.25 · Phone month and summary geometry final specificity. */
@media (max-width: 700px) {
  html body .topbar-actions .month-picker-popover .month-picker-grid > .month-picker-option {
    box-sizing: border-box !important;
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    align-self: start !important;
  }

  /* Content cards keep their readable 56–60px heights; this is the actual header control. */
  html body #availableMoneySection > .card-header {
    box-sizing: border-box !important;
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
  }
}
