:root {
  color-scheme: dark;
  --bg: #080a0f;
  --surface: #111318;
  --surface-strong: #1b1e26;
  --ink: #f7f8fb;
  --muted: #9ca5b6;
  --line: #272b35;
  --line-strong: #383e4c;
  --rail: #0a0c10;
  --rail-dark: #050609;
  --rail-soft: rgba(72, 238, 174, 0.1);
  --teal: #42e8ac;
  --teal-dark: #27c990;
  --blue: #7a4dff;
  --amber: #f5a524;
  --red: #ff5c77;
  --green: #42e8ac;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --soft-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

/* Final desktop precedence layer: keep the new brand system ahead of legacy rules. */
@media (min-width: 761px) {
  body {
    color-scheme: light;
    background: var(--bs-page);
    color: var(--bs-text);
  }

  body:not(:has(#mappingPanel:not([hidden]))) .control-rail {
    display: none !important;
  }

  .app-shell,
  .workspace,
  .results-area,
  #dashboard,
  .dashboard,
  .advanced-dashboard,
  .advanced-panels,
  .advanced-panel,
  .empty-state {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: var(--bs-page);
    color: var(--bs-text);
    box-shadow: none;
  }

  .advanced-panel[hidden],
  .dashboard-view[hidden],
  #dashboard[hidden],
  #emptyState[hidden] {
    display: none !important;
  }

  .advanced-tabs,
  .home-brand-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    min-height: 96px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    background: #030303;
    box-shadow: none;
    overflow: visible;
  }

  .home-brand-nav {
    position: relative;
  }

  .mobile-brand-mark,
  body:has(#dashboard:not([hidden])) .mobile-brand-mark,
  body:has(.home-brand-nav) .mobile-brand-mark {
    display: grid !important;
    grid-template-columns: 40px max-content;
    align-items: center;
    gap: 12px;
    min-width: 212px;
    margin: 0 22px 0 0;
    color: #ffffff;
  }

  .mobile-brand-mark svg {
    width: 42px;
    height: 50px;
  }

  .mobile-brand-mark span {
    color: #ffffff;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 0.96;
  }

  .advanced-tab,
  .home-nav-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    height: 96px;
    margin: 0;
    padding: 0 0 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f2f5f4;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
  }

  .advanced-tab::after,
  .home-nav-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: transparent;
  }

  .advanced-tab.is-active,
  .home-nav-tab.is-active {
    color: #5cf2bd;
    background: transparent;
    box-shadow: none;
  }

  .advanced-tab.is-active::after,
  .home-nav-tab.is-active::after {
    background: #7df4c5;
  }

  .advanced-tab .nav-long {
    display: inline;
  }

  .advanced-tab .nav-short,
  .view-status-tag,
  .mobile-menu-action[data-mobile-action="clear"] {
    display: none !important;
  }

  .mobile-menu-action[data-mobile-action="files"],
  .home-add-files {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 164px;
    height: 56px;
    margin-left: auto;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(180deg, #caffeb 0%, #a7efd5 100%);
    color: #07110d;
    font-size: 0.96rem;
    font-weight: 800;
  }

  .advanced-panels,
  .home-copy {
    padding: 18px 20px 24px;
    background: var(--bs-page);
  }

  .analysis-block,
  .home-hero-card,
  .home-copy-grid article,
  .export-help-card,
  .home-feature-strip,
  .home-disclaimer-strip,
  .insight-grid,
  .dashboard-summary-strip,
  .data-quality-card-grid > *,
  .data-quality-inline-grid > *,
  .quality-summary-card,
  .advanced-mini-card,
  .watchlist-list-panel,
  .watchlist-selected-panel,
  .bills-detail-stage,
  .bills-review-list {
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--bs-text);
    box-shadow: var(--bs-card-shadow);
  }

  .eyebrow,
  .section-heading .eyebrow {
    color: var(--bs-mint-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .insight-grid,
  .dashboard-summary-strip,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: #ffffff;
  }

  .insight-card,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card {
    min-height: 108px;
    padding: 21px 30px;
    border: 0;
    border-right: 1px solid var(--bs-line);
    border-radius: 0;
    background: #ffffff;
    color: var(--bs-text);
    text-align: left;
    box-shadow: none;
  }

  .insight-card:last-child,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card:last-child {
    border-right: 0;
  }

  .insight-card span,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card span {
    color: #596272;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .insight-card strong,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card strong {
    color: var(--bs-ink);
    font-size: 1.26rem;
    font-weight: 700;
  }

  .insight-card p,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card p {
    color: var(--bs-muted);
    font-size: 0.83rem;
  }

  .amount-in,
  body:has(#dashboard:not([hidden])) .amount-in {
    color: var(--bs-mint-dark) !important;
  }

  .amount-out,
  body:has(#dashboard:not([hidden])) .amount-out {
    color: var(--bs-red) !important;
  }

  .bonus-amount {
    color: var(--bs-purple) !important;
  }

  .watchlist-count {
    color: var(--bs-amber) !important;
  }

  .statement-tab-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 12px 14px;
  }

  .statement-tab-heading h2 {
    margin: 4px 0 0;
    color: var(--bs-ink);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.05;
  }

  .income-controls,
  .spend-controls {
    display: flex;
    align-items: center;
    gap: 34px;
  }

  .spend-hero,
  .income-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(330px, 0.95fr);
    gap: 16px;
    margin-bottom: 12px;
  }

  .income-hero {
    grid-template-columns: minmax(0, 1.65fr) minmax(380px, 1fr);
  }

  .spend-ring-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    gap: 34px;
    min-height: 230px;
  }

  .spend-hero-head {
    display: none;
  }

  .spend-donut {
    width: 240px;
    height: 240px;
  }

  .spend-main-number strong {
    color: #000000;
    font-size: 3.05rem;
    font-weight: 850;
    line-height: 0.98;
  }

  .spend-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(420px, 0.95fr);
    gap: 16px;
    margin-top: 12px;
  }

  .income-detail-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(540px, 0.95fr);
  }

  .bills-rise-summary,
  .watchlist-summary-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 0 18px;
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--bs-card-shadow);
    overflow: hidden;
  }

  .bills-rise-summary article,
  .watchlist-summary-strip article {
    min-height: 120px;
    padding: 24px 34px;
    border-right: 1px solid var(--bs-line);
  }

  .bills-review-layout,
  .watchlist-detail {
    display: grid;
    grid-template-columns: minmax(420px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
    padding: 0 18px;
  }

  .watchlist-detail {
    grid-template-columns: minmax(0, 1.35fr) minmax(410px, 0.75fr);
    padding: 0;
  }

  .advanced-recurring-row,
  .watchlist-item {
    border: 1px solid var(--bs-soft-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--bs-text);
    box-shadow: none;
  }

  .advanced-panel[data-panel="explorer"] > .analysis-block {
    padding: 22px 18px 18px;
  }

  .explorer-filter-panel summary {
    display: none;
  }

  .explorer-controls {
    display: grid;
    grid-template-columns: 170px 170px 176px 176px 176px minmax(220px, 1fr) 88px;
    gap: 24px;
    align-items: end;
    padding: 18px;
  }

  .table-wrap {
    overflow: hidden;
    border: 1px solid var(--bs-line);
    border-radius: 10px;
    background: #ffffff;
  }

  .table-wrap th,
  .table-wrap td {
    height: 39px;
    padding: 0 14px;
    border-bottom: 1px solid var(--bs-soft-line);
    color: var(--bs-text);
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .home-copy {
    display: grid;
    gap: 16px;
  }

  .home-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(520px, 0.95fr);
    align-items: center;
    min-height: 346px;
    padding: 28px 44px;
  }

  .home-copy-grid,
  .home-feature-strip,
  .home-disclaimer-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .home-copy-grid article,
  .home-copy-grid article.connection-check-card,
  .home-feature-strip article,
  .home-disclaimer-strip article {
    background: #ffffff;
    color: var(--bs-text);
    transform: none;
  }

  .home-copy-grid article::before,
  .home-copy-grid article::after,
  .home-feature-strip article::before,
  .home-feature-strip article::after {
    display: none !important;
  }

  .home-card-icon::before {
    border-color: currentColor;
    background: transparent;
  }

  .export-help-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 270px;
    gap: 24px;
    align-items: center;
  }
}

/* Desktop fit pass for the data-heavy tabs. */
@media (min-width: 761px) {
  .advanced-panels {
    padding: 18px 20px 18px;
  }

  .dashboard-summary-strip .insight-card,
  .dashboard-summary-strip .insight-card:nth-child(2),
  .dashboard-summary-strip .insight-card:nth-child(3),
  .dashboard-summary-strip .insight-card:nth-child(4) {
    background: #ffffff !important;
    color: var(--bs-text) !important;
  }

  .dashboard-summary-strip .insight-card strong {
    color: var(--bs-ink) !important;
  }

  .income-mode-toggle,
  .income-period-nav {
    overflow: hidden;
    border: 1px solid var(--bs-line) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
  }

  .income-mode-toggle button,
  .income-period-nav button {
    height: 38px !important;
    border: 0 !important;
    border-right: 1px solid var(--bs-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--bs-ink) !important;
    box-shadow: none !important;
  }

  .income-mode-toggle button[aria-pressed="true"] {
    background: var(--bs-mint-soft) !important;
  }

  .income-period-nav button:disabled {
    color: #b8c0ca !important;
  }

  .spend-toggle,
  .income-inflation-field {
    border: 1px solid var(--bs-line) !important;
    background: #ffffff !important;
    color: var(--bs-text) !important;
    box-shadow: none !important;
  }

  .spend-ring-card,
  .spend-summary-panel,
  .income-power-panel,
  .advanced-spending-plan,
  .income-bonus-panel {
    padding: 16px 18px !important;
  }

  .spend-ring-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 196px;
    gap: 24px;
  }

  .spend-donut {
    width: 190px !important;
    height: 190px !important;
  }

  .spend-main-number strong {
    font-size: 2.55rem !important;
  }

  .spend-main-number p {
    max-width: 520px;
    font-size: 0.84rem;
    line-height: 1.38;
  }

  .spend-summary-row {
    grid-template-columns: minmax(110px, 0.7fr) minmax(100px, 0.6fr) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
  }

  .spend-summary-row strong {
    font-size: 1.02rem;
  }

  .spend-summary-row em {
    font-size: 0.72rem;
  }

  .income-power-panel .section-heading,
  .advanced-spending-plan .section-heading {
    margin-bottom: 8px;
  }

  .income-power-grid .advanced-mini-card,
  .advanced-spending-plan .advanced-mini-card {
    min-height: 70px !important;
    padding: 9px 14px !important;
  }

  .advanced-mini-card strong {
    font-size: 1rem;
  }

  .advanced-mini-card p {
    font-size: 0.68rem;
    line-height: 1.18;
  }

  .spend-detail-grid {
    gap: 14px;
    margin-top: 10px;
  }

  .spend-category-review,
  .spend-frequency-panel,
  .income-trend-panel {
    padding: 12px 18px !important;
  }

  .spend-table-head,
  .spend-table-row {
    grid-template-columns: minmax(190px, 1.5fr) 78px 100px 110px;
    gap: 10px;
  }

  .spend-table-row,
  .spend-table-row[data-focused] {
    min-height: 28px !important;
    padding: 4px 0 !important;
    background: transparent !important;
    color: var(--bs-text) !important;
    box-shadow: none !important;
  }

  .spend-table-row[data-focused] {
    background: #f4fff9 !important;
  }

  .spend-table-row strong {
    font-size: 0.8rem;
  }

  .spend-table-row em {
    font-size: 0.65rem;
  }

  .income-trend-row {
    grid-template-columns: 58px minmax(0, 1fr) 100px;
    gap: 10px;
    min-height: 20px;
    font-size: 0.72rem;
  }

  .income-trend-track {
    height: 7px;
  }

  .income-trend-key {
    margin-top: 8px;
    font-size: 0.7rem;
  }

  .income-bonus-panel {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 68px;
  }

  .bills-hero-block > .section-heading {
    margin: 0 18px 10px;
  }

  .bills-rise-summary,
  .watchlist-summary-strip {
    margin-bottom: 14px;
  }

  .bills-rise-summary article,
  .watchlist-summary-strip article {
    min-height: 90px;
    padding: 16px 34px;
    background: #ffffff !important;
    color: var(--bs-text) !important;
  }

  .bills-rise-summary strong,
  .watchlist-summary-strip strong {
    margin: 6px 0;
    font-size: 1.34rem;
  }

  .bills-rise-summary em,
  .watchlist-summary-strip p {
    font-size: 0.76rem;
  }

  .bills-filter-grid,
  .watchlist-tabs {
    margin-bottom: 12px;
  }

  .bills-filter-tile,
  .bills-filter-tile.is-warn,
  .watchlist-tab,
  .watchlist-tab.is-warn {
    min-height: 34px;
    border: 1px solid var(--bs-line) !important;
    background: #ffffff !important;
    color: var(--bs-ink) !important;
    box-shadow: none !important;
  }

  .bills-filter-tile.is-active,
  .watchlist-tab[aria-selected="true"] {
    background: var(--bs-mint-soft) !important;
    border-color: transparent !important;
  }

  .bills-filter-tile span,
  .watchlist-tab span {
    color: var(--bs-ink) !important;
  }

  .bills-filter-controls {
    margin-top: -48px;
  }

  .bills-category-filter,
  .watchlist-category-select {
    background: #ffffff !important;
    color: var(--bs-muted) !important;
  }

  .bills-category-filter select,
  .watchlist-category-select select {
    background: #ffffff !important;
    color: var(--bs-ink) !important;
  }

  .bills-review-layout {
    grid-template-columns: minmax(390px, 0.72fr) minmax(0, 1.28fr);
    gap: 16px;
  }

  .bills-review-list,
  .bills-detail-stage {
    padding: 14px 16px !important;
  }

  .advanced-recurring-row {
    grid-template-columns: minmax(0, 1fr) 108px;
    min-height: 52px !important;
    padding: 6px 9px !important;
  }

  .bill-card-title-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .bill-card-symbol {
    width: 34px;
    height: 34px;
  }

  .bill-card-metrics {
    margin-left: 46px;
  }

  .bill-row-sparkline {
    width: 104px;
    height: 44px;
  }

  .recurring-trend-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    background: #ffffff !important;
    color: var(--bs-text) !important;
  }

  .recurring-trend-copy h3 {
    margin: 4px 0;
    color: var(--bs-ink) !important;
    font-size: 1.32rem;
  }

  .recurring-trend-copy p {
    color: var(--bs-muted) !important;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .bill-hero-insight {
    color: var(--bs-text) !important;
  }

  .recurring-trend-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .recurring-trend-stats span {
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--bs-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--bs-muted);
    font-size: 0.68rem;
  }

  .recurring-trend-stats strong {
    display: block;
    color: var(--bs-ink);
    font-size: 0.88rem;
  }

  .bill-trend-context-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .bill-change-strip,
  .bill-inflation-strip {
    padding: 10px 12px;
    border: 1px solid var(--bs-line);
    border-radius: 8px;
    background: #ffffff;
  }

  .recurring-trend-visual {
    min-height: 0;
  }

  .recurring-trend-chart {
    width: 100%;
    height: 245px !important;
  }

  .watchlist-summary-strip article {
    min-height: 88px;
  }

  .watchlist-detail {
    grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.75fr);
  }

  .watchlist-list-panel,
  .watchlist-selected-panel {
    padding: 16px 18px !important;
  }

  .watchlist-item {
    min-height: 52px !important;
    padding: 7px 10px !important;
  }

  .watchlist-item p {
    font-size: 0.68rem;
  }

  .watchlist-selected-panel h3 {
    font-size: 1.1rem;
  }

  .watchlist-detail-amount {
    font-size: 1.42rem;
  }

  .watchlist-mini-chart svg {
    height: 106px;
  }

  .watchlist-caution {
    margin-top: 10px;
    padding: 10px;
  }
}

/* Full desktop brand refresh - shared shell and data-dense dashboard styling. */
@media (min-width: 761px) {
  :root {
    --bs-mint: #10b981;
    --bs-mint-dark: #078b5c;
    --bs-mint-soft: #c8f6e4;
    --bs-red: #ff4d37;
    --bs-amber: #f97316;
    --bs-blue: #2778f6;
    --bs-purple: #8b5cf6;
    --bs-ink: #101218;
    --bs-text: #252936;
    --bs-muted: #626b7a;
    --bs-subtle: #8791a0;
    --bs-line: #e1e6ea;
    --bs-soft-line: #edf0f2;
    --bs-page: #f7f8f8;
    --bs-card: #ffffff;
    --bs-shadow: 0 14px 34px rgba(16, 18, 24, 0.07);
    --bs-card-shadow: 0 5px 18px rgba(16, 18, 24, 0.055);
  }

  html,
  body {
    background: var(--bs-page);
  }

  body,
  button,
  input,
  select {
    font-family: "Aptos", "SF Pro Display", "Segoe UI", sans-serif;
    letter-spacing: 0;
  }

  body:not(:has(#mappingPanel:not([hidden]))) .control-rail {
    display: none;
  }

  .app-shell,
  .workspace,
  .results-area,
  .dashboard,
  .dashboard-view,
  .advanced-dashboard,
  .advanced-panels,
  .advanced-panel {
    width: 100%;
    min-width: 0;
    background: var(--bs-page);
    color: var(--bs-text);
  }

  .workspace {
    display: block;
    min-height: 100vh;
  }

  .results-area {
    padding: 0;
  }

  .notice {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
  }

  .advanced-tabs,
  .home-brand-nav {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 96px;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    background: #030303;
    box-shadow: none;
    overflow: visible;
  }

  .home-brand-nav {
    position: relative;
  }

  .advanced-tabs::after,
  .home-brand-nav::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-brand-mark {
    order: 0;
    display: grid;
    grid-template-columns: 40px max-content;
    align-items: center;
    gap: 12px;
    min-width: 212px;
    margin-right: 22px;
    color: #ffffff;
  }

  .mobile-brand-mark svg {
    width: 42px;
    height: 50px;
  }

  .mobile-brand-mark path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.45;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-brand-mark span {
    color: #ffffff;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 0.96;
  }

  .advanced-tab,
  .home-nav-tab {
    position: relative;
    order: 1;
    flex: 0 0 auto;
    min-width: auto;
    height: 96px;
    padding: 0 0 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f2f5f4;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
  }

  .advanced-tab::after,
  .home-nav-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: transparent;
  }

  .advanced-tab.is-active,
  .home-nav-tab.is-active {
    color: #5cf2bd;
    background: transparent;
    box-shadow: none;
  }

  .advanced-tab.is-active::after,
  .home-nav-tab.is-active::after {
    background: #7df4c5;
  }

  .advanced-tab .nav-short {
    display: none;
  }

  .advanced-tab .nav-long {
    display: inline;
  }

  .view-status-tag {
    display: none;
  }

  .mobile-menu-action[data-mobile-action="clear"] {
    display: none;
  }

  .mobile-menu-action[data-mobile-action="files"],
  .home-add-files {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 164px;
    height: 56px;
    margin-left: auto;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(180deg, #caffeb 0%, #a7efd5 100%);
    color: #07110d;
    font-size: 0.96rem;
    font-weight: 800;
    box-shadow: 0 7px 22px rgba(51, 212, 156, 0.28);
  }

  .mobile-files-icon {
    position: relative;
    display: inline-block;
    width: 17px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 2px;
  }

  .mobile-files-icon::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
  }

  .mobile-files-icon::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 7px;
    height: 7px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    background: rgba(255, 255, 255, 0.45);
  }

  .advanced-panels,
  .home-copy {
    max-width: none;
    padding: 18px 20px 24px;
  }

  .advanced-panel[hidden],
  .dashboard-view[hidden],
  .home-copy [hidden] {
    display: none !important;
  }

  .advanced-panel {
    display: block;
  }

  .analysis-block,
  .home-hero-card,
  .home-copy-grid article,
  .export-help-card,
  .home-feature-strip,
  .home-disclaimer-strip,
  .insight-grid,
  .dashboard-summary-strip,
  .data-quality-card-grid > *,
  .data-quality-inline-grid > *,
  .quality-summary-card,
  .advanced-mini-card,
  .watchlist-list-panel,
  .watchlist-selected-panel,
  .bills-detail-stage,
  .bills-review-list {
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: var(--bs-card);
    color: var(--bs-text);
    box-shadow: var(--bs-card-shadow);
  }

  .eyebrow {
    margin: 0;
    color: var(--bs-mint-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .section-heading h3,
  .section-heading h4,
  .statement-tab-heading h2,
  .home-copy h2,
  .analysis-block h3,
  .analysis-block h4 {
    color: var(--bs-ink);
    letter-spacing: 0;
  }

  .helper-text,
  .advanced-footnote,
  .empty-copy,
  .section-heading p:not(.eyebrow) {
    color: var(--bs-muted);
  }

  .amount-in {
    color: var(--bs-mint-dark) !important;
  }

  .amount-out {
    color: var(--bs-red) !important;
  }

  .bonus-amount {
    color: var(--bs-purple) !important;
  }

  .watchlist-count {
    color: var(--bs-amber) !important;
  }

  .insight-grid,
  .dashboard-summary-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
  }

  .insight-card,
  .insight-card:nth-child(2),
  .insight-card:nth-child(3),
  .insight-card:nth-child(4) {
    min-height: 108px;
    padding: 21px 30px;
    border: 0;
    border-right: 1px solid var(--bs-line);
    border-radius: 0;
    background: #ffffff;
    color: var(--bs-text);
    text-align: left;
    box-shadow: none;
  }

  .insight-card:last-child {
    border-right: 0;
  }

  .insight-card span {
    display: block;
    margin: 0 0 10px;
    color: #596272;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .insight-card strong {
    display: block;
    color: var(--bs-ink);
    font-size: 1.26rem;
    font-weight: 700;
    line-height: 1.05;
  }

  .insight-card p {
    margin: 9px 0 0;
    color: var(--bs-muted);
    font-size: 0.83rem;
    line-height: 1.35;
  }

  .card-value-mobile {
    display: none;
  }

  .statement-tab-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 12px 14px;
  }

  .statement-tab-heading h2 {
    margin: 4px 0 0;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.05;
  }

  .statement-tab-heading > div > p:not(.eyebrow) {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--bs-muted);
    font-size: 0.94rem;
  }

  .income-controls,
  .spend-controls {
    display: flex;
    align-items: center;
    gap: 34px;
  }

  .income-mode-toggle,
  .income-period-nav {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--bs-line);
    border-radius: 8px;
    background: #ffffff;
  }

  .income-mode-toggle button,
  .income-period-nav button {
    min-width: 64px;
    height: 38px;
    border: 0;
    border-right: 1px solid var(--bs-line);
    border-radius: 0;
    background: transparent;
    color: var(--bs-ink);
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: none;
  }

  .income-period-nav button {
    min-width: 52px;
    font-size: 1.05rem;
  }

  .income-mode-toggle button:last-child,
  .income-period-nav button:last-child {
    border-right: 0;
  }

  .income-mode-toggle button[aria-pressed="true"] {
    background: var(--bs-mint-soft);
    color: #061711;
  }

  .income-period-nav button:disabled {
    color: #b7bec8;
  }

  .income-inflation-field,
  .spend-month-picker {
    display: inline-grid;
    grid-template-columns: auto 58px;
    align-items: center;
    gap: 16px;
    min-width: 154px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--bs-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--bs-ink);
    font-size: 0.82rem;
    font-weight: 800;
  }

  .income-inflation-field input {
    width: 58px;
    border: 0;
    background: transparent;
    color: var(--bs-ink);
    font-weight: 800;
    text-align: right;
  }

  .spend-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--bs-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--bs-text);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .spend-toggle input {
    accent-color: var(--bs-mint);
  }

  .spend-hero,
  .income-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(330px, 0.95fr);
    gap: 16px;
    margin-bottom: 12px;
  }

  .income-hero {
    grid-template-columns: minmax(0, 1.65fr) minmax(380px, 1fr);
  }

  .spend-ring-card,
  .spend-summary-panel,
  .income-power-panel,
  .advanced-spending-plan,
  .income-bonus-panel {
    margin: 0;
    padding: 22px 28px;
  }

  .spend-hero-head {
    display: none;
  }

  .spend-ring-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    gap: 34px;
    min-height: 230px;
  }

  .income-ring-card .spend-ring-layout {
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .spend-donut {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }

  .spend-main-number span {
    display: block;
    color: #596272;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .spend-main-number strong {
    display: block;
    margin-top: 8px;
    color: #000000;
    font-size: 3.05rem;
    font-weight: 850;
    line-height: 0.98;
  }

  .spend-main-number em {
    display: block;
    margin-top: 15px;
    color: var(--bs-muted);
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 700;
  }

  .spend-main-number p {
    max-width: 430px;
    margin: 14px 0 0;
    color: var(--bs-text);
    font-size: 0.93rem;
    line-height: 1.55;
  }

  .spend-summary-panel {
    display: grid;
    align-content: center;
    gap: 0;
  }

  .spend-summary-panel > .eyebrow {
    margin-bottom: 8px;
  }

  .spend-summary-row {
    display: grid;
    grid-template-columns: minmax(125px, 0.75fr) minmax(120px, 0.7fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--bs-line);
  }

  .spend-summary-row span {
    color: #596272;
    font-size: 0.77rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .spend-summary-row strong {
    color: var(--bs-ink);
    font-size: 1.15rem;
    font-weight: 800;
  }

  .spend-summary-row em {
    color: var(--bs-muted);
    font-size: 0.78rem;
    font-style: normal;
    line-height: 1.25;
  }

  .income-power-panel,
  .advanced-spending-plan {
    margin-bottom: 12px;
  }

  .income-power-panel .section-heading,
  .advanced-spending-plan .section-heading {
    margin-bottom: 12px;
  }

  .income-power-grid,
  .advanced-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .advanced-spending-plan .advanced-mini-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .income-power-grid .advanced-mini-card,
  .advanced-spending-plan .advanced-mini-card {
    display: grid;
    align-content: center;
    min-height: 86px;
    padding: 12px 18px;
    border: 0;
    border-right: 1px solid var(--bs-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .advanced-spending-plan .advanced-mini-card {
    min-height: 106px;
    border: 1px solid var(--bs-line);
    border-radius: 8px;
    background: #ffffff;
  }

  .income-power-grid .advanced-mini-card:last-child {
    border-right: 0;
  }

  .advanced-mini-card span {
    color: #596272;
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .advanced-mini-card strong {
    margin-top: 6px;
    color: var(--bs-ink);
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.05;
  }

  .advanced-mini-card p {
    margin: 6px 0 0;
    color: var(--bs-muted);
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .income-power-panel > .helper-text {
    display: none;
  }

  .spend-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(420px, 0.95fr);
    gap: 16px;
    margin-top: 12px;
  }

  .income-detail-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(540px, 0.95fr);
  }

  .spend-category-review,
  .spend-frequency-panel,
  .income-trend-panel {
    padding: 18px 24px;
  }

  .spend-category-review .section-heading,
  .spend-frequency-panel .section-heading,
  .income-bonus-panel .section-heading {
    margin-bottom: 10px;
  }

  .spend-table {
    display: grid;
    gap: 0;
    overflow: hidden;
  }

  .spend-table-head,
  .spend-table-row {
    display: grid;
    grid-template-columns: minmax(210px, 1.5fr) 88px 120px 120px;
    align-items: center;
    gap: 12px;
  }

  .spend-table-head {
    padding: 8px 0;
    border-bottom: 1px solid var(--bs-line);
    color: #596272;
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .spend-table-row {
    position: relative;
    width: 100%;
    min-height: 35px;
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid var(--bs-soft-line);
    border-radius: 0;
    background: transparent;
    color: var(--bs-text);
    text-align: left;
    box-shadow: none;
  }

  .spend-table-row > span:first-child {
    display: grid;
    grid-template-columns: 7px minmax(0, 1fr);
    column-gap: 12px;
    min-width: 0;
  }

  .spend-table-row i {
    width: 7px;
    height: 25px;
    border-radius: 999px;
    background: var(--category-color, var(--bs-mint));
  }

  .spend-table-row strong {
    color: var(--bs-ink);
    font-size: 0.84rem;
    font-weight: 850;
  }

  .spend-table-row em {
    display: block;
    color: var(--bs-muted);
    font-size: 0.69rem;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .spend-table-row > span:not(:first-child) {
    color: var(--bs-text);
    font-size: 0.8rem;
    font-weight: 700;
  }

  .spend-table-row > b {
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;
    height: 2px;
    max-width: 100%;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bs-mint) 70%, transparent);
  }

  .spend-merchant-list {
    display: grid;
    gap: 7px;
  }

  .spend-merchant-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank name value"
      "rank meta value";
    gap: 2px 10px;
    align-items: center;
    min-height: 50px;
    padding: 9px 12px;
    border: 1px solid var(--bs-soft-line);
    border-radius: 8px;
    background: #ffffff;
  }

  .spend-merchant-card > span {
    grid-area: rank;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--bs-mint);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 850;
  }

  .spend-merchant-card strong {
    grid-area: name;
    color: var(--bs-ink);
    font-size: 0.86rem;
    font-weight: 850;
  }

  .spend-merchant-card em {
    grid-area: meta;
    color: var(--bs-muted);
    font-size: 0.72rem;
    font-style: normal;
  }

  .spend-merchant-card b {
    grid-area: value;
    color: var(--bs-ink);
    font-size: 0.82rem;
    font-weight: 850;
  }

  .income-trend-list {
    display: grid;
    gap: 7px;
  }

  .income-trend-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 112px;
    gap: 14px;
    align-items: center;
    font-size: 0.78rem;
  }

  .income-trend-track {
    height: 8px;
    border-radius: 999px;
    background: #eef1f0;
    overflow: hidden;
  }

  .income-trend-track i {
    display: block;
    height: 100%;
    border-radius: 999px;
  }

  .income-total { background: var(--bs-mint); }
  .income-salary { background: var(--bs-blue); }
  .income-bonus { background: var(--bs-purple); }

  .income-trend-row strong {
    color: var(--bs-ink);
    font-weight: 850;
    text-align: right;
  }

  .income-trend-key {
    display: flex;
    gap: 28px;
    margin-top: 14px;
    color: var(--bs-muted);
    font-size: 0.76rem;
  }

  .income-bonus-panel {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-top: 12px;
  }

  .income-bonus-panel .spend-merchant-list {
    min-width: 0;
  }

  .bills-hero-block {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .bills-hero-block > .section-heading {
    margin: 0 18px 14px;
  }

  .bills-hero-block > .section-heading h3 {
    margin: 4px 0 0;
    font-size: 1.45rem;
    font-weight: 850;
  }

  .bills-dashboard-compact {
    display: contents;
  }

  .bills-rise-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 0 18px;
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--bs-card-shadow);
    overflow: hidden;
  }

  .bills-rise-summary article {
    min-height: 120px;
    padding: 24px 34px;
    border-right: 1px solid var(--bs-line);
  }

  .bills-rise-summary article:last-child {
    border-right: 0;
  }

  .bills-rise-summary span,
  .watchlist-summary-strip span {
    color: #596272;
    font-size: 0.73rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .bills-rise-summary strong,
  .watchlist-summary-strip strong {
    display: block;
    margin: 9px 0;
    color: var(--bs-mint-dark);
    font-size: 1.58rem;
    font-weight: 760;
  }

  .bills-rise-summary .is-warn strong,
  .watchlist-summary-strip .is-warn strong {
    color: var(--bs-amber);
  }

  .bills-rise-summary em,
  .watchlist-summary-strip p {
    display: block;
    margin: 0;
    color: var(--bs-muted);
    font-size: 0.84rem;
    font-style: normal;
    line-height: 1.35;
  }

  .bills-filter-grid,
  .watchlist-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 18px 18px;
  }

  .bills-filter-tile,
  .watchlist-tab {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--bs-line);
    border-radius: 7px;
    background: #ffffff;
    color: var(--bs-ink);
    box-shadow: none;
  }

  .bills-filter-tile span,
  .watchlist-tab span {
    color: var(--bs-ink);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: none;
  }

  .bills-filter-tile strong,
  .watchlist-tab strong {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: 8px;
    border-radius: 7px;
    background: #eef1f0;
    color: var(--bs-text);
    font-size: 0.72rem;
  }

  .bills-filter-tile p,
  .watchlist-tab p {
    display: none;
  }

  .bills-filter-tile.is-active,
  .watchlist-tab[aria-selected="true"] {
    border-color: transparent;
    background: var(--bs-mint-soft);
  }

  .bills-filter-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: -54px 18px 22px auto;
    width: fit-content;
  }

  .bills-filter-select {
    display: none;
  }

  .bills-category-filter,
  .watchlist-category-select {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    min-width: 224px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--bs-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--bs-muted);
    font-size: 0.76rem;
    font-weight: 700;
  }

  .bills-category-filter select,
  .watchlist-category-select select {
    border: 0;
    background: transparent;
    color: var(--bs-ink);
    font-weight: 800;
  }

  .bills-review-layout {
    display: grid;
    grid-template-columns: minmax(420px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
    padding: 0 18px;
  }

  .bills-review-list,
  .bills-detail-stage {
    padding: 20px 18px;
  }

  .bills-list-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .bills-list-heading h3 {
    margin: 0;
    color: var(--bs-ink);
    font-size: 1.05rem;
    font-weight: 850;
  }

  .bills-list-heading span {
    color: var(--bs-muted);
    font-size: 0.76rem;
  }

  .advanced-recurring-table {
    display: grid;
    gap: 7px;
  }

  .advanced-recurring-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    align-items: center;
    min-height: 62px;
    padding: 8px 10px;
    border: 1px solid var(--bs-soft-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--bs-text);
    text-align: left;
    box-shadow: none;
  }

  .advanced-recurring-row.is-selected {
    border-color: var(--bs-mint);
    background: #f2fff9;
    box-shadow: inset 3px 0 0 var(--bs-mint);
  }

  .bill-card-copy {
    display: grid;
    gap: 5px;
  }

  .bill-card-title-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .bill-card-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--bs-line);
    border-radius: 9px;
    background: linear-gradient(135deg, #f9fbfb, #e9f8f2);
  }

  .bill-card-symbol::before {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: currentColor;
    opacity: 0.22;
  }

  .bill-card-name {
    color: var(--bs-ink);
    font-size: 0.94rem;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bill-card-metrics {
    display: grid;
    grid-template-columns: minmax(112px, 0.8fr) minmax(0, 1fr);
    gap: 10px;
    margin-left: 54px;
  }

  .bill-review-amount strong,
  .bill-review-frequency strong,
  .bill-card-status strong {
    color: var(--bs-ink);
    font-size: 0.83rem;
    font-weight: 800;
  }

  .bill-card-metrics span span,
  .bill-review-amount span {
    display: block;
    color: var(--bs-muted);
    font-size: 0.68rem;
  }

  .bill-card-meta {
    display: grid;
    grid-template-columns: minmax(82px, 1fr) minmax(72px, 1fr);
    gap: 8px;
  }

  .bill-card-chart {
    color: var(--bs-amber);
  }

  .bill-row-sparkline {
    width: 112px;
    height: 52px;
  }

  .bill-row-sparkline-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
  }

  .recurring-trend-panel {
    color: var(--bs-text);
  }

  .recurring-trend-panel .section-heading h3,
  .recurring-trend-panel h3 {
    color: var(--bs-ink);
  }

  .recurring-trend-chart {
    width: 100%;
    height: 290px;
  }

  .watchlist-summary-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 0 22px;
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--bs-card-shadow);
    overflow: hidden;
  }

  .watchlist-summary-strip article {
    min-height: 120px;
    padding: 24px 34px;
    border-right: 1px solid var(--bs-line);
  }

  .watchlist-summary-strip article:last-child {
    border-right: 0;
  }

  .watchlist-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(410px, 0.75fr);
    gap: 18px;
    margin: 0 4px;
  }

  .watchlist-detail .advanced-footnote {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    padding: 18px 22px;
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: #ffffff;
  }

  .watchlist-list-panel,
  .watchlist-selected-panel {
    padding: 22px 20px;
  }

  .watchlist-list {
    display: grid;
    gap: 7px;
  }

  .watchlist-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 9px 12px;
    border: 1px solid var(--bs-soft-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--bs-text);
  }

  .watchlist-item.is-selected {
    border-color: #ff806d;
    background: #fff6f3;
  }

  .watchlist-alert-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #fff0df;
  }

  .watchlist-alert-icon::before {
    content: "!";
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 2px solid var(--bs-amber);
    border-radius: 999px;
    color: var(--bs-amber);
    font-size: 0.76rem;
    font-weight: 900;
  }

  .watchlist-item span:not(.watchlist-alert-icon) {
    color: var(--bs-red);
    font-size: 0.67rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .watchlist-item strong {
    color: var(--bs-ink);
    font-size: 0.86rem;
    font-weight: 850;
  }

  .watchlist-item p {
    margin: 3px 0 0;
    color: var(--bs-muted);
    font-size: 0.72rem;
  }

  .watchlist-item > strong:last-of-type {
    min-width: 98px;
    text-align: right;
  }

  .watchlist-selected-panel h3 {
    margin: 8px 0 0;
    color: var(--bs-ink);
    font-size: 1.25rem;
  }

  .watchlist-detail-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 4px 9px;
    border-radius: 6px;
    background: #ffe8df;
    color: var(--bs-red);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .watchlist-detail-amount {
    display: block;
    margin: 8px 0;
    color: var(--bs-red);
    font-size: 1.75rem;
    font-weight: 850;
  }

  .watchlist-detail-list {
    display: grid;
    gap: 7px;
    margin: 18px 0;
  }

  .watchlist-detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--bs-muted);
    font-size: 0.78rem;
  }

  .watchlist-detail-list dd {
    margin: 0;
    color: var(--bs-text);
    font-weight: 750;
    text-align: right;
  }

  .watchlist-mini-chart {
    margin-top: 12px;
  }

  .watchlist-mini-chart > span {
    display: block;
    color: var(--bs-ink);
    font-size: 0.83rem;
    font-weight: 800;
  }

  .watchlist-mini-chart svg {
    width: 100%;
    height: 128px;
    margin-top: 8px;
  }

  .watchlist-pattern-line {
    fill: none;
    stroke: var(--bs-mint);
    stroke-width: 3;
  }

  .watchlist-pattern-point {
    fill: var(--bs-mint);
  }

  .watchlist-pattern-point.is-selected {
    fill: var(--bs-red);
  }

  .watchlist-caution {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #f6d08f;
    border-radius: 9px;
    background: #fff8ec;
  }

  .watchlist-caution p {
    margin: 0;
    color: var(--bs-text);
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .advanced-panel[data-panel="explorer"] > .analysis-block {
    padding: 22px 18px 18px;
  }

  .advanced-panel[data-panel="explorer"] > .analysis-block > .section-heading {
    margin: 0 6px 18px;
  }

  .advanced-panel[data-panel="explorer"] > .analysis-block > .section-heading h3 {
    margin: 4px 0 0;
    font-size: 1.55rem;
    font-weight: 850;
  }

  .explorer-filter-panel {
    margin: 0 0 16px;
    border: 1px solid var(--bs-line);
    border-radius: 8px;
    background: #ffffff;
  }

  .explorer-filter-panel summary {
    display: none;
  }

  .explorer-controls {
    display: grid;
    grid-template-columns: 170px 170px 176px 176px 176px minmax(220px, 1fr) 88px;
    gap: 24px;
    align-items: end;
    padding: 18px;
  }

  .explorer-controls label {
    display: grid;
    gap: 8px;
    color: var(--bs-text);
    font-size: 0.76rem;
    font-weight: 800;
  }

  .explorer-controls input,
  .explorer-controls select {
    width: 100%;
    height: 38px;
    border: 1px solid var(--bs-line);
    border-radius: 7px;
    background: #ffffff;
    color: var(--bs-ink);
    font-size: 0.86rem;
    font-weight: 700;
  }

  .explorer-search-field input {
    padding-right: 34px;
  }

  .explorer-filter-reset {
    width: 88px;
    height: 38px;
    border: 0;
    border-radius: 7px;
    background: var(--bs-mint-soft);
    color: #092117;
    font-size: 0.82rem;
    font-weight: 850;
  }

  .explorer-filter-reset::after {
    content: " Clear";
  }

  .explorer-summary-row {
    margin: -16px 0 16px;
    padding: 12px 18px;
    border: 1px solid var(--bs-line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #f9faf9;
    color: var(--bs-muted);
    font-size: 0.82rem;
  }

  .explorer-summary-row::before {
    content: "FILTERED TOTAL";
    margin-right: 22px;
    color: var(--bs-mint-dark);
    font-size: 0.72rem;
    font-weight: 850;
  }

  .table-wrap {
    overflow: hidden;
    border: 1px solid var(--bs-line);
    border-radius: 10px;
    background: #ffffff;
  }

  .table-wrap table {
    width: 100%;
    border-collapse: collapse;
  }

  .table-wrap th,
  .table-wrap td {
    height: 39px;
    padding: 0 14px;
    border-bottom: 1px solid var(--bs-soft-line);
    color: var(--bs-text);
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .table-wrap th {
    color: #596272;
    font-size: 0.7rem;
    font-weight: 850;
    text-align: left;
    text-transform: uppercase;
  }

  .table-wrap td[data-column="description"] {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .table-wrap td[data-column="amount"],
  .table-wrap td[data-column="balance"] {
    text-align: right;
    font-weight: 800;
  }

  .category-tinted-cell {
    font-weight: 750;
  }

  .explorer-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-height: 44px;
    padding: 0 16px;
    color: var(--bs-muted);
    font-size: 0.82rem;
  }

  .explorer-pagination button {
    min-width: 30px;
    height: 30px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--bs-text);
    font-weight: 800;
  }

  .explorer-pagination button[aria-current="page"] {
    background: var(--bs-mint-soft);
    color: var(--bs-mint-dark);
  }

  .explorer-pagination button:disabled {
    color: #bdc4cd;
  }

  .data-quality-card-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
  }

  .data-quality-card-grid > .quality-summary-card,
  .data-quality-inline-grid > .quality-card {
    min-height: 142px;
    padding: 18px 20px;
  }

  .data-quality-inline-grid {
    display: contents;
  }

  .quality-traffic,
  .score-tile {
    display: grid;
    align-content: center;
  }

  .quality-summary-card strong,
  .quality-summary-card .score-value {
    color: var(--bs-mint-dark);
    font-size: 1.58rem;
    font-weight: 850;
  }

  .data-quality-dashboard > .advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .data-quality-dashboard .analysis-block {
    padding: 22px 24px;
  }

  .data-quality-dashboard .event-list,
  .data-quality-dashboard .data-quality-list {
    display: grid;
    gap: 8px;
  }

  .data-quality-dashboard .event-item,
  .data-quality-dashboard .info-item {
    min-height: 56px;
    padding: 10px 14px;
    border: 1px solid var(--bs-soft-line);
    border-radius: 8px;
    background: #ffffff;
  }

  .advanced-panel[data-panel="export"] .secure-export-block {
    padding: 40px 42px 24px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .secure-export-block > .section-heading h3 {
    margin: 8px 0 22px;
    font-size: 1.78rem;
    font-weight: 850;
  }

  .secure-export-block > .helper-text {
    max-width: 900px;
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .clean-export-summary {
    display: grid;
    gap: 22px;
  }

  .export-briefing-card {
    display: grid;
    grid-template-columns: 1fr 360px;
    align-items: center;
    min-height: 200px;
    padding: 28px 34px;
    border: 1px solid #bfe8d7;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fffc 0%, #edfdf5 100%);
  }

  .export-briefing-card h4 {
    margin: 10px 0 14px;
    color: var(--bs-ink);
    font-size: 1.75rem;
  }

  .export-briefing-card p {
    color: var(--bs-muted);
    font-size: 1rem;
    line-height: 1.55;
  }

  .export-briefing-action {
    display: grid;
    align-content: center;
    min-height: 136px;
    padding: 22px 30px;
    border: 1px solid var(--bs-line);
    border-radius: 10px;
    background: #ffffff;
  }

  .export-briefing-action span {
    color: var(--bs-mint-dark);
    font-size: 3rem;
    font-weight: 850;
    line-height: 1;
  }

  .clean-export-summary > .advanced-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .clean-export-summary > .advanced-mini-grid .advanced-mini-card {
    min-height: 180px;
    padding: 30px 28px;
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: #ffffff;
  }

  .clean-export-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .clean-export-notes article {
    min-height: 132px;
    padding: 26px 28px;
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: #ffffff;
  }

  .clean-export-notes strong {
    color: var(--bs-ink);
    font-size: 1rem;
  }

  .clean-export-notes p {
    color: var(--bs-muted);
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .export-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 360px;
    height: 54px;
    margin: 22px auto 12px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #12b976, #058c59);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(5, 140, 89, 0.22);
  }

  #exportStatus {
    text-align: center;
  }

  .home-brand-nav {
    height: 96px;
  }

  .empty-state {
    margin: 0;
    padding: 0;
    background: var(--bs-page);
  }

  .home-copy {
    display: grid;
    gap: 16px;
  }

  .home-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(520px, 0.95fr);
    align-items: center;
    min-height: 346px;
    padding: 28px 44px;
  }

  .home-privacy-pill {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 11px 16px;
    border-radius: 6px;
    background: #e6f8f0;
    color: var(--bs-mint-dark);
    font-size: 0.8rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .home-copy h2 {
    max-width: 640px;
    margin: 0;
    font-size: 2.72rem;
    font-weight: 880;
    line-height: 1.05;
  }

  .home-copy .lede {
    max-width: 690px;
    margin: 18px 0 0;
    color: var(--bs-muted);
    font-size: 1rem;
    line-height: 1.55;
  }

  .home-hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 22px;
  }

  .home-hero-actions .primary-button,
  .home-hero-actions .secondary-button {
    min-width: 226px;
    height: 44px;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 850;
  }

  .home-hero-actions .primary-button {
    border: 0;
    background: linear-gradient(180deg, #13c987, #06a66c);
    color: #ffffff;
  }

  .home-hero-actions .secondary-button {
    border: 1px solid var(--bs-line);
    background: #ffffff;
    color: var(--bs-ink);
  }

  .home-hero-visual {
    position: relative;
    height: 270px;
  }

  .home-shield-visual {
    position: absolute;
    top: 28px;
    left: 170px;
    display: grid;
    place-items: center;
    width: 158px;
    height: 178px;
  }

  .home-shield-visual svg {
    width: 150px;
    color: var(--bs-mint);
    filter: drop-shadow(0 22px 28px rgba(16, 185, 129, 0.24));
  }

  .home-shield-visual path:first-child {
    fill: url("#noop");
    fill: #3ecb8f;
    stroke: #0a9d68;
    stroke-width: 4;
  }

  .home-shield-visual path:last-child {
    fill: none;
    stroke: #ffffff;
    stroke-width: 9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .home-file-visual {
    position: absolute;
    top: 18px;
    right: 70px;
    width: 250px;
    height: 205px;
    padding: 30px 28px;
    border: 1px solid var(--bs-line);
    border-radius: 15px;
    background: #ffffff;
  }

  .home-file-visual span {
    color: #596272;
    font-size: 0.78rem;
    font-weight: 850;
  }

  .home-file-visual strong {
    float: right;
    padding: 5px 9px;
    border-radius: 7px;
    background: #d8f8ea;
    color: var(--bs-mint-dark);
    font-size: 0.72rem;
  }

  .home-file-visual i {
    display: block;
    height: 8px;
    margin-top: 18px;
    border-radius: 999px;
    background: #dfe4e8;
  }

  .home-file-visual i:nth-of-type(2) { width: 70%; }
  .home-file-visual i:nth-of-type(3) { width: 92%; }
  .home-file-visual i:nth-of-type(4) { width: 58%; }

  .home-lock-visual,
  .home-chart-visual {
    position: absolute;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border: 1px solid var(--bs-line);
    border-radius: 999px;
    background: #eaf8f2;
  }

  .home-lock-visual {
    top: 48px;
    right: 0;
  }

  .home-lock-visual::before {
    content: "";
    width: 23px;
    height: 20px;
    border-radius: 4px;
    background: var(--bs-mint-dark);
    box-shadow: 0 -14px 0 -7px #eaf8f2, 0 -14px 0 -4px var(--bs-mint-dark);
  }

  .home-chart-visual {
    right: 8px;
    bottom: 26px;
    grid-template-columns: repeat(4, 8px);
    align-items: end;
    gap: 7px;
    border-radius: 9px;
    background: #ffffff;
  }

  .home-chart-visual i {
    width: 8px;
    border-radius: 999px;
    background: var(--bs-mint);
  }

  .home-chart-visual i:nth-child(1) { height: 18px; }
  .home-chart-visual i:nth-child(2) { height: 26px; }
  .home-chart-visual i:nth-child(3) { height: 38px; }
  .home-chart-visual i:nth-child(4) { height: 52px; opacity: 0.35; }

  .home-copy-grid,
  .home-feature-strip,
  .home-disclaimer-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .home-copy-grid article,
  .home-feature-strip article,
  .home-disclaimer-strip article {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 150px;
    padding: 24px 28px;
  }

  .home-copy-grid h3,
  .home-feature-strip h3 {
    margin: 3px 0 8px;
    color: var(--bs-ink);
    font-size: 1rem;
  }

  .home-copy-grid p,
  .home-feature-strip p,
  .home-disclaimer-strip p {
    margin: 0;
    color: var(--bs-muted);
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .home-card-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 999px;
    background: #e8f8f1;
    color: var(--bs-mint-dark);
  }

  .home-card-icon::before {
    content: "";
    width: 28px;
    height: 28px;
    border: 3px solid currentColor;
    border-radius: 8px;
  }

  .export-help-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 270px;
    gap: 24px;
    align-items: center;
    min-height: 178px;
    padding: 24px 28px;
  }

  .export-help-card h3 {
    margin: 4px 0 0;
    color: var(--bs-ink);
    font-size: 1rem;
  }

  .export-help-card ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .export-help-card li {
    display: grid;
    gap: 9px;
    justify-items: center;
    color: var(--bs-muted);
    font-size: 0.76rem;
    line-height: 1.3;
    text-align: center;
  }

  .export-help-card li strong {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #d8f8ea;
    color: var(--bs-mint-dark);
    font-size: 0.8rem;
  }

  .export-help-card aside {
    padding-left: 28px;
    border-left: 1px solid var(--bs-line);
  }

  .export-help-card aside strong {
    color: var(--bs-ink);
    font-size: 1rem;
  }

  .home-feature-strip,
  .home-disclaimer-strip {
    gap: 0;
    overflow: hidden;
  }

  .home-feature-strip article,
  .home-disclaimer-strip article {
    border: 0;
    border-right: 1px solid var(--bs-line);
    border-radius: 0;
    box-shadow: none;
  }

  .home-feature-strip article:last-child,
  .home-disclaimer-strip article:last-child {
    border-right: 0;
  }

  .home-disclaimer-strip {
    grid-template-columns: 1.45fr 1fr;
  }

  .home-disclaimer-strip article {
    min-height: 80px;
  }

  .home-disclaimer-strip strong {
    color: var(--bs-ink);
    font-size: 0.92rem;
  }

  .home-footer-note {
    margin: -6px 0 0;
    color: var(--bs-muted);
    font-size: 0.82rem;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .home-brand-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    overflow-x: auto;
    background: #030303;
  }

  .home-brand-nav .mobile-brand-mark {
    display: grid;
    grid-template-columns: 28px max-content;
    gap: 8px;
    min-width: 142px;
    color: #ffffff;
  }

  .home-brand-nav .mobile-brand-mark svg {
    width: 28px;
  }

  .home-brand-nav .mobile-brand-mark span {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
  }

  .home-nav-tab {
    display: none;
  }

  .home-add-files {
    margin-left: auto;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: #b9f7dc;
    color: #08150f;
    font-weight: 800;
    white-space: nowrap;
  }

  .home-copy {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .home-hero-card,
  .home-copy-grid article,
  .export-help-card,
  .home-feature-strip,
  .home-disclaimer-strip {
    border: 1px solid #e1e6ea;
    border-radius: 12px;
    background: #ffffff;
  }

  .home-hero-card {
    padding: 18px;
  }

  .home-hero-visual {
    display: none;
  }

  .home-copy h2 {
    margin: 0;
    color: #101218;
    font-size: 1.72rem;
    line-height: 1.08;
  }

  .home-copy .lede {
    color: #626b7a;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .home-privacy-pill {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #e6f8f0;
    color: #078b5c;
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .home-hero-actions {
    display: grid;
    gap: 8px;
    margin-top: 14px;
  }

  .home-copy-grid,
  .home-feature-strip,
  .home-disclaimer-strip {
    display: grid;
    gap: 10px;
  }

  .home-copy-grid article,
  .home-feature-strip article,
  .home-disclaimer-strip article,
  .export-help-card {
    padding: 14px;
  }

  .export-help-card ol {
    display: grid;
    gap: 8px;
    padding-left: 20px;
  }
}

.mobile-brand-mark,
.mobile-overview-preview,
.desktop-overview-highlights,
.mobile-only-summary {
  display: none;
}

@media (max-width: 760px) {
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) {
    color-scheme: light;
    --overview-page: #f6f7f6;
    --overview-ink: #111514;
    --overview-muted: #66706f;
    --overview-line: #e3e7e6;
    --overview-soft-line: #eef1f0;
    --overview-card: #ffffff;
    --overview-mint: #1ab77d;
    --overview-mint-dark: #079b66;
    --overview-mint-soft: #bbf4dc;
    --overview-red: #ff573f;
    --overview-amber: #f6a04d;
    --overview-blue: #5aa7ec;
    --overview-purple: #9d75ed;
    background: var(--overview-page);
    color: var(--overview-ink);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .app-shell,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .workspace,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .results-area {
    background: var(--overview-page);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .app-shell {
    padding: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .workspace {
    min-height: 100svh;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .results-area {
    width: 100%;
    padding: calc(106px + env(safe-area-inset-top)) 12px 20px;
    overflow-x: hidden;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-dashboard,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-panels,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-panel[data-panel="overview"] {
    width: 100%;
    max-width: 100%;
    gap: 16px;
    min-width: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-tabs {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 70;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 6px;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: calc(12px + env(safe-area-inset-top)) 12px 10px;
    overflow: hidden;
    background: #020303;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-brand-mark {
    display: flex;
    flex: 1 1 176px;
    align-items: center;
    min-width: 0;
    gap: 9px;
    color: #ffffff;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-brand-mark svg {
    flex: 0 0 34px;
    width: 34px;
    height: 40px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-brand-mark path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-brand-mark span {
    display: block;
    max-width: 158px;
    color: #ffffff;
    font-size: clamp(0.86rem, 3.4vw, 1.02rem);
    font-weight: 860;
    letter-spacing: 0;
    line-height: 1.05;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-tab {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 27px;
    border: 0;
    border-radius: 0;
    padding: 4px 3px;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(0.58rem, 2.2vw, 0.7rem);
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-tab[data-tab] {
    border-bottom: 2px solid transparent;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-tab[data-tab].is-active {
    border-color: #76e8bc;
    background: transparent;
    color: #77e7bb;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-tab .nav-long {
    display: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-tab .nav-short {
    display: inline;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-menu-action[data-mobile-action="files"] {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 43px;
    border-radius: 10px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #c8f8e6, #aef0d3);
    color: #04130f;
    font-size: 0.78rem;
    font-weight: 870;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-menu-action[data-mobile-action="clear"] {
    display: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-files-icon {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 19px;
    border: 1.8px solid currentColor;
    border-radius: 2px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-files-icon::before,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-files-icon::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    height: 1.8px;
    border-radius: 999px;
    background: currentColor;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-files-icon::before {
    top: 6px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-files-icon::after {
    top: 11px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--overview-line);
    border-radius: 13px;
    background: var(--overview-card);
    box-shadow: 0 7px 22px rgba(31, 43, 42, 0.08);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(2),
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(3),
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(4) {
    display: grid;
    align-content: center;
    min-height: 78px;
    border: 0;
    border-radius: 0;
    border-right: 1px solid var(--overview-soft-line);
    border-bottom: 1px solid var(--overview-soft-line);
    padding: 12px 11px;
    background: var(--overview-card);
    box-shadow: none;
    color: var(--overview-ink);
    text-align: left;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .mobile-only-summary {
    display: grid;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(2n) {
    border-right: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card span {
    min-height: 0;
    color: #4d5756;
    font-size: clamp(0.54rem, 2.1vw, 0.64rem);
    font-weight: 820;
    letter-spacing: 0;
    line-height: 1.1;
    text-align: left;
    text-transform: uppercase;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card strong,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(2) strong,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(3) strong,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(4) strong {
    display: block;
    margin-top: 7px;
    overflow-wrap: anywhere;
    color: var(--overview-ink);
    font-size: clamp(1rem, 4.2vw, 1.28rem);
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.04;
    text-align: left;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card p {
    display: block;
    margin: 5px 0 0;
    color: var(--overview-muted);
    font-size: clamp(0.62rem, 2.5vw, 0.72rem);
    line-height: 1.25;
    text-align: left;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .card-value-full {
    display: inline;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .card-value-mobile {
    display: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .amount-in,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .amount-in,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(2) .amount-in {
    color: var(--overview-mint-dark);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .amount-out,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .amount-out,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(3) .amount-out,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(4) .amount-out {
    color: var(--overview-red);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid strong.watchlist-count {
    color: #f27708;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-chart {
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-main,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-spend-visuals {
    min-width: 0;
    border: 1px solid var(--overview-line);
    border-radius: 13px;
    padding: 18px 16px;
    overflow: hidden;
    background: var(--overview-card);
    box-shadow: 0 8px 24px rgba(31, 43, 42, 0.08);
    color: var(--overview-ink);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-main {
    border-right: 1px solid var(--overview-line);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-main .section-heading {
    margin-bottom: 12px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-main .section-heading .eyebrow,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-spend-visuals .section-heading .eyebrow {
    display: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-main .section-heading h3,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-spend-visuals .section-heading h3 {
    color: var(--overview-ink);
    font-size: 1.08rem;
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-panel {
    gap: 9px;
    min-height: 0;
    grid-template-rows: auto auto minmax(238px, auto) auto;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(136px, 0.78fr);
    gap: 8px;
    align-items: stretch;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group {
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
    gap: 3px;
    border: 1px solid var(--overview-line);
    border-radius: 9px;
    padding: 3px;
    background: #ffffff;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group:first-child {
    margin-right: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group > span,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group > strong {
    display: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group button,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .filter-reset-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 29px;
    border: 0;
    border-radius: 7px;
    padding: 6px 4px;
    overflow: hidden;
    background: transparent;
    color: var(--overview-ink);
    font-size: clamp(0.6rem, 2.3vw, 0.72rem);
    font-weight: 780;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group button[data-active],
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group button:hover,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group button:focus-visible {
    background: var(--overview-mint-soft);
    color: #062018;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    align-items: center;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend span {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    gap: 5px;
    color: #5c6665;
    font-size: 0.62rem;
    font-weight: 720;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend i {
    width: 7px;
    height: 7px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend .income,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend .net-positive {
    background: var(--overview-mint);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend .spending,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend .net-negative {
    background: var(--overview-red);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-line-chart {
    min-height: 238px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-grid {
    stroke: #e6ebe9;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-zero {
    stroke: #d4dbd9;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-axis {
    fill: #4d5756;
    font-size: 12px;
    font-weight: 720;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-line-path {
    stroke-width: 3.2;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-line-path.income,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-line-path.net-positive {
    stroke: var(--overview-mint);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-line-path.spending,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-line-path.net-negative {
    stroke: var(--overview-red);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-focus {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px 10px;
    min-height: 0;
    border: 0;
    border-top: 1px solid var(--overview-soft-line);
    border-radius: 0;
    padding: 8px 0 0;
    background: transparent;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-focus > * {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    min-width: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #5f6967;
    font-size: 0.64rem;
    font-weight: 710;
    letter-spacing: 0;
    line-height: 1.1;
    text-align: left;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-focus strong {
    flex: 1 0 100%;
    margin: 0;
    color: var(--overview-ink);
    font-size: 0.78rem;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-side-card {
    gap: 12px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-donut-stage {
    min-height: 210px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-donut-stage .spend-donut {
    width: min(82%, 220px);
    filter: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-donut-total {
    width: 118px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-donut-total span,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-donut-total em {
    color: #515b59;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-donut-total strong {
    color: var(--overview-ink);
    font-size: 1.25rem;
    font-weight: 820;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-category-key {
    gap: 4px;
    max-height: 178px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-category-key button {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 7px;
    min-width: 0;
    border: 0;
    border-radius: 7px;
    padding: 4px 2px;
    background: transparent;
    color: var(--overview-ink);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-category-key button:hover,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-category-key button:focus-visible,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-category-key button[data-focused] {
    background: rgba(26, 183, 125, 0.08);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-category-key i {
    width: 8px;
    height: 8px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-category-key span {
    color: #4f5a58;
    font-size: 0.7rem;
    font-weight: 710;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-category-key strong {
    color: var(--overview-ink);
    font-size: 0.7rem;
    font-weight: 780;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-side-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-side-stats article {
    display: grid;
    align-content: start;
    min-height: 74px;
    border: 1px solid var(--overview-line);
    border-radius: 8px;
    padding: 9px;
    background: #ffffff;
    text-align: left;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-side-stats span {
    color: #5f6967;
    font-size: 0.54rem;
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-side-stats strong {
    margin-top: 5px;
    color: var(--overview-ink);
    font-size: 0.9rem;
    font-weight: 780;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-side-stats p {
    display: block;
    margin-top: 4px;
    color: var(--overview-muted);
    font-size: 0.58rem;
    line-height: 1.18;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-preview {
    display: grid;
    gap: 16px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    border: 1px solid var(--overview-line);
    border-radius: 13px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(31, 43, 42, 0.08);
    color: var(--overview-ink);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-card h3 {
    margin: 0;
    color: var(--overview-ink);
    font-size: 1.04rem;
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-card-head button,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-card-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--overview-mint-dark);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-card-head span {
    border-radius: 999px;
    padding: 6px 9px;
    background: var(--overview-mint-soft);
    color: #063f2a;
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-list {
    display: grid;
    gap: 6px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 41px;
    border: 1px solid var(--overview-soft-line);
    border-radius: 8px;
    padding: 6px 8px;
    background: #ffffff;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    background: #050505;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 870;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row div {
    min-width: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row strong {
    display: block;
    overflow: hidden;
    color: var(--overview-ink);
    font-size: 0.72rem;
    font-weight: 790;
    letter-spacing: 0;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row p {
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--overview-muted);
    font-size: 0.62rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row b {
    color: var(--overview-ink);
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-layout {
    display: grid;
    grid-template-columns: minmax(128px, 0.42fr) minmax(0, 1fr);
    gap: 11px;
    align-items: stretch;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    min-width: 0;
    min-height: 136px;
    border: 1px solid var(--overview-line);
    border-radius: 10px;
    background: conic-gradient(var(--overview-mint) calc(var(--quality-score) * 1%), #e8eeec 0);
    text-align: center;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 999px;
    background: #ffffff;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring strong,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring span,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring em {
    position: relative;
    z-index: 1;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring strong {
    color: var(--overview-mint-dark);
    font-size: 1.24rem;
    font-weight: 820;
    line-height: 1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring span {
    margin-top: 6px;
    color: var(--overview-muted);
    font-size: 0.56rem;
    font-weight: 720;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring em {
    margin-top: 4px;
    color: var(--overview-mint-dark);
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-checks {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-checks article {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--overview-soft-line);
    border-radius: 8px;
    padding: 6px 7px;
    background: #ffffff;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-checks i {
    position: relative;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #d8f8ea;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-checks i::before {
    content: "";
    width: 9px;
    height: 5px;
    border-bottom: 2px solid var(--overview-mint-dark);
    border-left: 2px solid var(--overview-mint-dark);
    transform: rotate(-45deg);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-checks strong {
    display: block;
    color: var(--overview-ink);
    font-size: 0.66rem;
    font-weight: 790;
    letter-spacing: 0;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-checks p {
    margin: 3px 0 0;
    color: var(--overview-muted);
    font-size: 0.58rem;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-watchlist .mobile-preview-icon {
    border-radius: 999px;
    background: #ffead2;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-watchlist .mobile-preview-icon::before {
    content: "";
    width: 11px;
    height: 12px;
    border: 2px solid #f37d11;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-watchlist .mobile-preview-row b {
    color: var(--overview-ink);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .empty-copy {
    margin: 0;
    color: var(--overview-muted);
    font-size: 0.78rem;
  }

  @media (max-width: 340px) {
    body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .results-area {
      padding-top: calc(112px + env(safe-area-inset-top));
    }

    body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-tabs {
      gap: 8px 5px;
      padding-inline: 10px;
    }

    body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-brand-mark svg {
      flex-basis: 30px;
      width: 30px;
      height: 36px;
    }

    body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-menu-action[data-mobile-action="files"] {
      min-height: 38px;
      padding: 7px 9px;
      font-size: 0.68rem;
    }

    body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-toolbar,
    body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-layout {
      grid-template-columns: minmax(0, 1fr);
    }

    body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring {
      min-height: 126px;
    }
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 12%, rgba(122, 77, 255, 0.2), transparent 24%),
    radial-gradient(circle at 18% 2%, rgba(66, 232, 172, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(18, 21, 29, 0.82), rgba(8, 10, 15, 0.96)),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 18px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 2px 2px 0;
  color: #ffffff;
}

.topbar h1,
.section-heading h2,
.section-heading h3,
.empty-state h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.topbar h1 {
  max-width: 13ch;
  font-size: 1.95rem;
  line-height: 1.02;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-status,
.file-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.workspace {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 346px) minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 36px);
  border: 1px solid #2d313b;
  border-radius: 26px;
  background: #0c0e13;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.58);
  overflow: hidden;
}

.control-rail {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 5%, rgba(66, 232, 172, 0.12), transparent 26%),
    linear-gradient(180deg, #0d1015 0%, #090b10 52%, #06070a 100%);
  color: #ffffff;
}

.results-area {
  min-width: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 88% 4%, rgba(122, 77, 255, 0.12), transparent 25%),
    #202229;
  overflow: auto;
}

.scan-panel,
.mapping-panel,
.preview-panel,
.analysis-block {
  border: 1px solid rgba(205, 213, 230, 0.78);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.scan-panel,
.mapping-panel,
.analysis-block {
  padding: 18px;
}

.section-heading {
  margin-bottom: 16px;
}

.topbar .eyebrow,
.side-view-panel .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.scan-panel,
.mapping-panel {
  color: var(--ink);
}

.section-heading h2 {
  font-size: 1.35rem;
}

.section-heading h3 {
  font-size: 1.1rem;
}

.helper-text,
.drop-zone p,
.empty-state p,
.notice {
  color: var(--muted);
}

.drop-zone {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 196px;
  border: 1.5px dashed #c7d2e4;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fe 100%);
  outline: none;
}

.drop-zone:focus-visible,
.drop-zone.is-dragging {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 115, 0.14);
}

.drop-zone.is-processing {
  cursor: progress;
  border-color: rgba(8, 127, 115, 0.48);
  background: linear-gradient(180deg, #ffffff 0%, #eef9f6 100%);
}

.drop-zone strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 10px 22px rgba(12, 143, 122, 0.22);
  color: #ffffff;
}

.drop-zone p {
  max-width: 240px;
  margin: 0;
  font-size: 0.92rem;
}

.format-copy {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.format-line {
  color: var(--muted);
}

.format-token {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted currentColor;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.25;
  outline: none;
}

.format-token.is-preferred {
  color: var(--teal-dark);
}

.format-token::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: min(190px, calc(100vw - 56px));
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(29, 37, 44, 0.18);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.format-token:first-of-type::after {
  left: 0;
  transform: translateY(6px);
}

.format-token:last-of-type::after {
  right: 0;
  left: auto;
  transform: translateY(6px);
}

.format-token:hover::after,
.format-token:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.format-token:first-of-type:hover::after,
.format-token:first-of-type:focus-visible::after,
.format-token:last-of-type:hover::after,
.format-token:last-of-type:focus-visible::after {
  transform: translateY(0);
}

.format-token:focus-visible {
  box-shadow: 0 0 0 4px rgba(8, 127, 115, 0.14);
}

.multi-file-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.multi-file-note {
  max-width: 260px;
}

.drop-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e2f5f1;
}

.drop-mark span {
  position: relative;
  width: 30px;
  height: 38px;
  border: 2px solid var(--teal);
  border-radius: 5px;
  background: #ffffff;
}

.drop-mark span::before,
.drop-mark span::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--teal);
}

.drop-mark span::before {
  top: 11px;
}

.drop-mark span::after {
  top: 20px;
}

.file-meta {
  display: flex;
  justify-content: space-between;
  border-radius: 12px;
  margin-top: 14px;
}

.processing-status {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(8, 127, 115, 0.24);
  border-radius: 12px;
  margin-top: 14px;
  padding: 12px;
  background: #f0fbf8;
  color: var(--ink);
  overflow: hidden;
}

.processing-status[hidden] {
  display: none;
}

.processing-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 850;
}

.processing-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(8, 127, 115, 0.18);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: local-spin 0.8s linear infinite;
}

#processingDetail {
  color: var(--muted);
  font-size: 0.88rem;
}

.processing-bar {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(8, 127, 115, 0.14);
  overflow: hidden;
}

.processing-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  animation: local-processing-bar 1.2s ease-in-out infinite;
}

.mapping-form {
  display: grid;
  gap: 12px;
}

.mapping-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.mapping-form select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--ink);
}

.primary-button,
.secondary-button {
  min-height: 44px;
  width: 100%;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid var(--teal);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #ffffff;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--teal-dark);
}

.secondary-button {
  margin-top: 14px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--teal);
}

.clear-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: #ffffff;
}

.clear-button:hover,
.clear-button:focus-visible {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.clear-symbol {
  position: relative;
  width: 18px;
  height: 20px;
  flex: 0 0 auto;
}

.clear-symbol::before {
  content: "";
  position: absolute;
  inset: 1px 2px 0;
  background: #ffffff;
  clip-path: polygon(50% 0, 92% 16%, 84% 68%, 50% 100%, 16% 68%, 8% 16%);
}

.clear-symbol::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 5px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  transform: rotate(45deg);
}

.results-area {
  min-width: 0;
}

.side-view-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px;
  background: rgba(15, 12, 31, 0.22);
}

.notice {
  border: 1px solid #f0cc8b;
  border-radius: 14px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #fff8ed;
  color: #6f4709;
  font-weight: 650;
}

.empty-state {
  display: grid;
  align-items: start;
  min-height: 100%;
  border: 1px solid rgba(205, 213, 230, 0.78);
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 46px);
  background:
    radial-gradient(circle at 10% 0%, rgba(83, 224, 190, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(12, 143, 122, 0.08), rgba(53, 103, 183, 0.06)),
    var(--surface);
  box-shadow: var(--shadow);
}

.empty-state h2 {
  max-width: 980px;
  font-size: clamp(2rem, 3.15vw, 3.25rem);
  line-height: 1.08;
}

.home-copy {
  width: 100%;
  max-width: none;
}

.home-copy .lede {
  max-width: 980px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.55;
}

.home-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin-top: clamp(22px, 2.6vw, 30px);
}

.home-copy-grid article {
  border: 1px solid rgba(205, 213, 230, 0.74);
  border-radius: 14px;
  min-width: 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.home-copy-grid .connection-check-card {
  border-color: rgba(12, 143, 122, 0.34);
  background:
    linear-gradient(135deg, rgba(83, 224, 190, 0.16), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.9);
}

.home-copy-grid .export-help-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 1fr);
  gap: 18px;
  min-width: 0;
  border-color: rgba(93, 168, 255, 0.28);
}

.home-copy-grid .export-help-card > * {
  min-width: 0;
}

.export-help-card ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 20px;
  margin: 10px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.export-help-card h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.95rem;
}

.export-help-card p + p {
  margin-top: 7px;
}

.export-help-card strong {
  color: var(--ink);
}

.export-help-disclaimer {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  align-self: center;
  font-size: 0.8rem;
  line-height: 1.48;
}

.connection-check-card h3 {
  color: var(--teal-dark);
}

.home-copy-grid h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.home-copy-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.preview-panel {
  margin-bottom: 18px;
  padding: 20px 20px 6px;
}

@media (max-width: 1520px) {
  .home-copy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-copy-grid .export-help-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .home-copy-grid {
    grid-template-columns: 1fr;
  }

  .home-copy-grid .export-help-card {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .export-help-card ol {
    grid-template-columns: 1fr;
  }

  .export-help-disclaimer {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 12px;
    padding-left: 0;
  }
}

.dashboard {
  display: grid;
  gap: 18px;
}

.view-switch {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.view-button,
.advanced-tab,
.experimental-tab {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 8px 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.nav-short {
  display: none;
}

.mobile-menu-action {
  display: none;
}

.view-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.view-button::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.74;
}

.view-button.is-active,
.advanced-tab.is-active,
.experimental-tab.is-active {
  background: var(--ink);
  color: #ffffff;
}

.view-button.is-active {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 4px 0 0 #ffcf33;
}

.view-button.is-active::before {
  background: #ffcf33;
  border-color: #ffcf33;
  opacity: 1;
}

.view-button:focus-visible,
.advanced-tab:focus-visible,
.experimental-tab:focus-visible,
.export-button:focus-visible {
  outline: 3px solid rgba(8, 127, 115, 0.22);
  outline-offset: 2px;
}

.view-status-tag {
  margin-left: auto;
  border: 1px solid rgba(66, 232, 172, 0.24);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(66, 232, 172, 0.1);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
}

.view-status-tag[data-level="low"] {
  border-color: rgba(255, 92, 119, 0.26);
  background: rgba(255, 92, 119, 0.14);
  color: #ffd2da;
}

.view-status-tag[data-level="medium"] {
  border-color: rgba(245, 165, 36, 0.28);
  background: rgba(245, 165, 36, 0.14);
  color: #ffdc9a;
}

.view-status-tag[data-level="strong"] {
  border-color: rgba(66, 232, 172, 0.3);
  background: rgba(66, 232, 172, 0.12);
  color: var(--teal);
}

.view-button.is-active .view-status-tag {
  border-color: var(--teal);
  background: var(--teal);
  color: #06110d;
}

.dashboard-view,
.advanced-dashboard,
.data-quality-dashboard,
.experimental-dashboard,
.advanced-panel {
  display: grid;
  gap: 18px;
}

#simpleView {
  gap: 16px;
}

.metric-grid {
  display: grid;
  gap: 10px;
}

.metric-grid[data-visible-metrics="5"] {
  grid-template-columns: minmax(260px, 1.55fr) repeat(4, minmax(0, 1fr));
}

.metric-grid[data-visible-metrics="4"] {
  grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(0, 1fr));
}

.metric-grid[data-visible-metrics="3"] {
  grid-template-columns: minmax(260px, 1.45fr) repeat(2, minmax(0, 1fr));
}

.metric-grid[data-visible-metrics="2"],
.metric-grid[data-visible-metrics="1"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  min-height: 96px;
  border: 1px solid rgba(205, 213, 230, 0.78);
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 251, 255, 0.95)),
    var(--surface);
  box-shadow: var(--soft-shadow);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
  word-break: normal;
}

.metric:not(:first-child) strong {
  white-space: nowrap;
}

#periodTitle {
  white-space: nowrap;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
}

.metric .negative {
  color: var(--red);
}

.metric .positive {
  color: var(--green);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.advanced-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid rgba(205, 213, 230, 0.78);
  border-radius: 16px;
  padding: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.advanced-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(205, 213, 230, 0.78);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 26px);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 207, 51, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(12, 143, 122, 0.12), rgba(83, 224, 190, 0.1)),
    var(--surface);
  box-shadow: var(--soft-shadow);
}

.data-quality-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(12, 143, 122, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(53, 103, 183, 0.12), rgba(12, 143, 122, 0.09)),
    var(--surface);
}

.data-quality-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.data-quality-inline-grid {
  display: contents;
}

.data-quality-card-grid .quality-summary-card,
.data-quality-card-grid .insight-card {
  min-height: 128px;
}

.data-quality-card-grid .quality-traffic {
  display: flex;
  max-width: none;
  margin-top: 0;
}

.data-quality-card-grid .score-tile {
  min-width: 0;
}

.quality-traffic {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin-top: 18px;
  border: 1px solid rgba(205, 213, 230, 0.74);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
}

.quality-lights {
  display: grid;
  gap: 6px;
  border-radius: 999px;
  padding: 7px;
  background: #152230;
}

.quality-light {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #667085;
  opacity: 0.36;
}

.quality-light.low {
  background: var(--red);
}

.quality-light.medium {
  background: var(--amber);
}

.quality-light.strong {
  background: var(--green);
}

.quality-light.is-active {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.quality-traffic span:not(.quality-light) {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quality-traffic strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1;
}

.quality-traffic p {
  margin: 6px 0 0;
  color: var(--muted);
}

.advanced-hero h3 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.score-tile {
  display: grid;
  align-content: center;
  min-width: min(240px, 100%);
  border: 1px solid rgba(205, 213, 230, 0.78);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.score-tile span,
.insight-card span,
.forecast-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.score-tile strong,
.forecast-card strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
}

.score-tile p,
.insight-card p,
.forecast-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.insight-grid,
.forecast-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#advancedInsightGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insight-card,
.forecast-card {
  min-height: 128px;
  border: 1px solid rgba(205, 213, 230, 0.78);
  border-radius: 18px;
  padding: 15px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.insight-card-button {
  appearance: none;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.insight-card-button:hover,
.insight-card-button:focus-visible {
  border-color: rgba(8, 127, 115, 0.42);
  box-shadow: 0 16px 32px rgba(13, 44, 54, 0.13);
}

.insight-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.1;
}

.card-value-mobile {
  display: none;
}

.advanced-overview-chart {
  min-height: 390px;
}

.advanced-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  gap: 0;
  min-height: 540px;
}

.advanced-overview-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(66, 232, 172, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(17, 20, 28, 0.98), rgba(9, 11, 15, 0.98));
}

.advanced-overview-main .section-heading {
  margin-bottom: 10px;
}

.line-chart-panel {
  display: grid;
  grid-template-rows: auto auto minmax(360px, 1fr) auto;
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

.line-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
}

.chart-control-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.74);
}

.chart-control-group:first-child {
  margin-right: auto;
}

.chart-control-group span,
.chart-control-group strong {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.chart-control-group button,
.filter-reset-button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 7px 10px;
  background: rgba(21, 34, 48, 0.08);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.chart-control-group button[data-active],
.chart-control-group button:hover,
.chart-control-group button:focus-visible {
  background: var(--teal);
  color: #06110d;
}

.line-chart-legend,
.line-chart-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.line-chart-legend span,
.line-chart-focus span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.line-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.line-chart-legend .income {
  background: var(--green);
}

.line-chart-legend .salary {
  background: #5da8ff;
}

.line-chart-legend .bonus {
  background: #a78bfa;
}

.line-chart-legend .spending {
  background: var(--amber);
}

.line-chart-legend .net {
  background: var(--teal);
}

.line-chart-legend .net-positive {
  background: var(--green);
}

.line-chart-legend .net-negative {
  background: var(--red);
}

.advanced-line-chart {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.line-chart-grid {
  stroke: #e1e7f0;
  stroke-width: 1;
}

.line-chart-zero {
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1.5;
  stroke-dasharray: 6 7;
}

.line-chart-axis {
  fill: #667085;
  font-size: 13px;
  font-weight: 750;
}

.advanced-line-path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-advanced-line 820ms ease forwards;
}

.advanced-line-path.income {
  stroke: var(--green);
}

.advanced-line-path.salary {
  stroke: #5da8ff;
}

.advanced-line-path.bonus {
  stroke: #a78bfa;
  stroke-dasharray: 0.045 0.025;
  stroke-dashoffset: 0;
  animation: none;
}

.advanced-line-path.spending {
  stroke: var(--amber);
}

.advanced-line-path.net {
  stroke: var(--teal);
}

.advanced-line-path.net-positive {
  stroke: var(--green);
}

.advanced-line-path.net-negative {
  stroke: var(--red);
}

.advanced-chart-bar {
  opacity: 0.84;
  animation: spend-row-in 420ms ease both;
}

.advanced-chart-bar.salary {
  fill: #5da8ff;
}

.advanced-chart-bar.bonus {
  fill: #a78bfa;
  opacity: 0.92;
}

.advanced-line-hit {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
}

.advanced-line-hit[data-selected] {
  stroke: rgba(8, 127, 115, 0.42);
  stroke-width: 2;
}

.advanced-line-hit:focus-visible {
  outline: none;
  stroke: rgba(8, 127, 115, 0.72);
  stroke-width: 3;
}

.advanced-bar-chart {
  overflow: visible;
}

.advanced-bar-canvas {
  fill: rgba(255, 255, 255, 0.015);
}

.advanced-bar-zero {
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.advanced-bar-side-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.advanced-bar-fill {
  opacity: 0.86;
  animation: spend-row-in 420ms ease both;
}

.advanced-bar-fill.income,
.advanced-bar-fill.net-positive {
  fill: rgba(66, 232, 172, 0.72);
}

.advanced-bar-fill.net-negative {
  fill: rgba(255, 92, 119, 0.62);
}

.advanced-bar-fill.salary {
  fill: rgba(93, 168, 255, 0.78);
}

.advanced-bar-fill.bonus {
  fill: rgba(167, 139, 250, 0.78);
}

.advanced-bar-fill.spending {
  fill: rgba(245, 165, 36, 0.78);
}

.advanced-bar-value {
  fill: #f7f8fb;
  font-size: 10px;
  font-weight: 850;
  pointer-events: none;
}

.advanced-bar-value.is-outside {
  fill: var(--muted);
}

.advanced-bar-hit {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
}

.advanced-bar-hit[data-selected] {
  fill: rgba(66, 232, 172, 0.075);
  stroke: rgba(66, 232, 172, 0.28);
  stroke-width: 1;
}

.advanced-bar-hit:focus-visible {
  outline: none;
  fill: rgba(66, 232, 172, 0.12);
  stroke: rgba(66, 232, 172, 0.56);
  stroke-width: 2;
}

.advanced-line-marker {
  stroke: rgba(66, 232, 172, 0.56);
  stroke-width: 2;
  stroke-dasharray: 5 6;
  pointer-events: none;
}

.line-chart-focus {
  justify-content: flex-end;
  min-height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.line-chart-focus strong {
  margin-right: auto;
  font-size: 0.98rem;
}

.overview-spend-visuals {
  min-width: 0;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(122, 77, 255, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(14, 17, 24, 0.98), rgba(8, 10, 14, 0.98));
}

.overview-side-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.overview-donut-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 238px;
}

.overview-donut-stage .spend-donut {
  width: min(100%, 236px);
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.34));
}

.overview-donut-total {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 132px;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.overview-donut-total span,
.overview-donut-total em {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.overview-donut-total strong {
  display: block;
  margin: 5px 0;
  color: #ffffff;
  font-size: clamp(1.16rem, 1.55vw, 1.48rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.overview-category-key {
  display: grid;
  gap: 6px;
  max-height: 194px;
  overflow: auto;
  padding-right: 4px;
}

.overview-category-key button {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  text-align: left;
}

.overview-category-key button:hover,
.overview-category-key button:focus-visible,
.overview-category-key button[data-focused] {
  border-color: rgba(66, 232, 172, 0.34);
  background: rgba(66, 232, 172, 0.08);
  outline: none;
}

.overview-category-key i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--key-color);
}

.overview-category-key span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-category-key strong {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.overview-side-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.overview-side-stats article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.overview-side-stats span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.overview-side-stats strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.overview-side-stats p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.28;
}

.overview-spend-card {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px;
  background:
    radial-gradient(circle at 76% 18%, rgba(66, 232, 172, 0.13), transparent 26%),
    linear-gradient(180deg, rgba(16, 19, 26, 0.98), rgba(9, 11, 15, 0.98));
}

.overview-spend-card .section-heading {
  margin-bottom: 8px;
}

.overview-spend-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.overview-tracker-wrap {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.overview-tracker {
  width: min(100%, 220px);
  aspect-ratio: 1;
}

.overview-tracker-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.11);
  stroke-width: 18;
}

.overview-tracker-segment {
  fill: none;
  stroke: var(--segment-color);
  stroke-width: 18;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(66, 232, 172, 0.1));
  animation: spend-ring-in 760ms ease both;
}

.overview-tracker-total {
  fill: var(--ink);
  font-size: 25px;
  font-weight: 900;
}

.overview-tracker-sub {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.overview-tracker-key {
  display: grid;
  gap: 7px;
}

.overview-tracker-key span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.overview-tracker-key i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--key-color);
}

.overview-bubble-cloud {
  display: block;
  width: 100%;
  min-height: 260px;
  overflow: visible;
}

.overview-bubble-bg {
  fill: rgba(255, 255, 255, 0.018);
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.overview-bubble-orbit {
  fill: none;
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 1;
  stroke-dasharray: 5 8;
}

.overview-bubble-orbit.is-wide {
  stroke: rgba(66, 232, 172, 0.06);
}

.overview-bubble circle {
  opacity: 0.94;
  transition: opacity 150ms ease, transform 150ms ease;
  transform-box: fill-box;
  transform-origin: center;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.overview-bubble:hover circle {
  opacity: 1;
  transform: scale(1.04);
}

.overview-bubble-label,
.overview-bubble-value {
  fill: #f7f8fb;
  font-weight: 850;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.overview-bubble-label {
  font-size: 12px;
}

.overview-bubble-value {
  fill: rgba(247, 248, 251, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.advanced-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
}

.bills-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.bills-grid > .analysis-block {
  min-width: 0;
  overflow: hidden;
}

.movement-chart {
  display: grid;
  gap: 14px;
}

.movement-row {
  display: grid;
  grid-template-columns: minmax(74px, 110px) minmax(0, 1fr) minmax(96px, auto);
  gap: 12px;
  align-items: center;
}

.movement-row > span:first-child,
.timeline-item span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.movement-bars {
  display: grid;
  gap: 5px;
}

.movement-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eaf3;
}

.movement-fill {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
}

.movement-fill.income {
  background: var(--green);
}

.movement-fill.spending {
  background: var(--red);
}

.movement-row strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.spend-dashboard {
  display: grid;
  gap: 18px;
}

.spend-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.58fr);
  gap: 18px;
}

.spend-ring-card,
.spend-summary-panel,
.spend-category-review,
.spend-frequency-panel {
  min-width: 0;
}

.spend-ring-card {
  padding: 16px 18px;
}

.spend-hero-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 8px;
}

.spend-title {
  min-width: 0;
}

.spend-hero-head h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
}

.spend-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.income-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.income-mode-toggle,
.income-period-nav {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  background: rgba(5, 6, 9, 0.58);
}

.income-mode-toggle button,
.income-period-nav button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.income-mode-toggle button {
  padding: 4px 12px;
}

.income-period-nav button {
  width: 32px;
  color: var(--ink);
  font-size: 1rem;
}

.income-mode-toggle button[aria-pressed="true"],
.income-period-nav button:not(:disabled):hover,
.income-period-nav button:focus-visible,
.income-mode-toggle button:focus-visible {
  background: var(--teal);
  color: #06100d;
}

.income-period-nav button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.spend-month-picker {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 5px 4px 12px;
  background: rgba(5, 6, 9, 0.58);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spend-month-picker select {
  appearance: none;
  min-width: 104px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 4px 28px 4px 10px;
  background:
    linear-gradient(45deg, transparent 50%, var(--teal) 50%) calc(100% - 15px) 12px / 5px 5px no-repeat,
    linear-gradient(135deg, var(--teal) 50%, transparent 50%) calc(100% - 11px) 12px / 5px 5px no-repeat,
    #0b0d12;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.spend-month-picker select:focus {
  outline: 2px solid rgba(66, 232, 172, 0.22);
  outline-offset: 1px;
}

.income-inflation-field input {
  width: 74px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  background: #0b0d12;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.income-inflation-field::after {
  content: "%";
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 900;
}

.income-inflation-field input:focus {
  outline: 2px solid rgba(66, 232, 172, 0.22);
  outline-offset: 1px;
}

.spend-toggle {
  display: inline-flex;
  min-height: 38px;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px 5px 7px;
  background: rgba(5, 6, 9, 0.44);
  color: #bac4d8;
  font-size: 0.8rem;
  font-weight: 800;
}

.spend-toggle input {
  appearance: none;
  position: relative;
  width: 30px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #080a0f;
  accent-color: var(--teal);
  transition: background 160ms ease, border-color 160ms ease;
}

.spend-toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.spend-toggle input:checked {
  border-color: rgba(66, 232, 172, 0.7);
  background: rgba(66, 232, 172, 0.24);
}

.spend-toggle input:checked::after {
  transform: translateX(12px);
  background: var(--teal);
}

.spend-ring-layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.spend-donut {
  width: min(100%, 260px);
  aspect-ratio: 1;
  overflow: visible;
}

.spend-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 32;
}

.spend-ring-segment {
  fill: none;
  stroke: var(--segment-color);
  stroke-width: 32;
  stroke-linecap: butt;
  cursor: pointer;
  opacity: 0.88;
  transform-origin: 120px 120px;
  animation: spend-ring-in 760ms ease both;
  transition: opacity 160ms ease, stroke-width 160ms ease, filter 160ms ease;
}

.spend-ring-segment:hover,
.spend-ring-segment:focus-visible,
.spend-ring-segment[data-focused] {
  opacity: 1;
  stroke-width: 38;
  filter: drop-shadow(0 0 14px rgba(66, 232, 172, 0.28));
  outline: none;
}

.spend-main-number {
  display: grid;
  gap: 8px;
}

.spend-main-number span,
.spend-summary-row span,
.spend-table-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spend-main-number strong {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.96;
  font-variant-numeric: tabular-nums;
}

.spend-main-number em,
.spend-summary-row em,
.spend-table-row em,
.spend-merchant-card em {
  color: var(--muted);
  font-style: normal;
}

.spend-main-number p {
  max-width: 560px;
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.spend-summary-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.spend-summary-row {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line-strong);
  padding-top: 12px;
}

.spend-summary-row strong {
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.spend-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.spend-table {
  display: grid;
  gap: 8px;
}

.spend-table-head,
.spend-table-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(70px, 0.45fr) minmax(120px, 0.7fr) minmax(100px, 0.55fr);
  gap: 12px;
  align-items: center;
}

.spend-table-head {
  padding: 0 10px 2px;
}

.spend-table-row {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 10px;
  background: rgba(9, 11, 15, 0.62);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  animation: spend-row-in 420ms ease both;
}

.spend-table-row:hover,
.spend-table-row:focus-visible,
.spend-table-row[data-focused] {
  border-color: rgba(66, 232, 172, 0.46);
  box-shadow: 0 18px 34px rgba(66, 232, 172, 0.1);
  outline: none;
}

.spend-table-row > span:first-child {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 8px;
}

.spend-table-row i {
  width: 12px;
  height: 38px;
  border-radius: 999px;
  background: var(--category-color);
  grid-row: span 2;
}

.spend-table-row strong,
.spend-merchant-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spend-table-row b {
  position: absolute;
  inset: auto auto 0 0;
  height: 3px;
  max-width: 100%;
  background: linear-gradient(90deg, var(--teal), rgba(93, 168, 255, 0.9));
  opacity: 0.82;
}

.spend-merchant-list {
  display: grid;
  gap: 10px;
}

.spend-merchant-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px;
  background: rgba(9, 11, 15, 0.62);
}

.spend-merchant-card span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(66, 232, 172, 0.12);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.spend-merchant-card em {
  grid-column: 2 / 3;
  font-size: 0.86rem;
}

.spend-merchant-card b {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-variant-numeric: tabular-nums;
}

.income-dashboard {
  gap: 18px;
}

.income-ring-card {
  background:
    radial-gradient(circle at 18% 18%, rgba(66, 232, 172, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(18, 22, 31, 0.98), rgba(10, 12, 17, 0.98));
}

.income-summary-panel {
  background:
    radial-gradient(circle at 85% 15%, rgba(93, 168, 255, 0.16), transparent 34%),
    var(--panel);
}

.income-power-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bonus-amount {
  color: #a78bfa;
}

.income-table-row b {
  background: linear-gradient(90deg, var(--teal), rgba(167, 139, 250, 0.9));
}

.income-trend-list {
  display: grid;
  gap: 11px;
}

.income-trend-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(82px, auto);
  gap: 10px;
  align-items: center;
}

.income-trend-row > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.income-trend-row strong {
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.income-trend-track {
  position: relative;
  height: 30px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.income-trend-track i {
  position: absolute;
  left: 0;
  border-radius: inherit;
}

.income-trend-track .income-total {
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(66, 232, 172, 0.16), rgba(66, 232, 172, 0.42));
}

.income-trend-track .income-salary {
  top: 7px;
  height: 16px;
  background: linear-gradient(90deg, var(--teal), rgba(93, 168, 255, 0.96));
}

.income-trend-track .income-bonus {
  top: 11px;
  height: 8px;
  background: #a78bfa;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.38);
}

.income-trend-key {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.income-trend-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.income-trend-key i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.income-trend-key .income-total {
  background: rgba(66, 232, 172, 0.34);
}

.income-trend-key .income-salary {
  background: var(--teal);
}

.income-trend-key .income-bonus {
  background: #a78bfa;
}

.income-bonus-card span {
  background: rgba(167, 139, 250, 0.16);
  color: #c4b5fd;
}

.explorer-controls {
  display: grid;
  grid-template-columns: minmax(96px, 0.7fr) minmax(96px, 0.7fr) minmax(110px, 0.85fr) minmax(120px, 1fr) minmax(130px, 1fr) minmax(170px, 1.35fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 10px;
}

.explorer-filter-panel {
  display: grid;
  gap: 10px;
}

.explorer-filter-panel summary {
  display: none;
}

.explorer-filter-panel .explorer-controls {
  margin-bottom: 0;
}

.explorer-search-field {
  grid-column: auto;
}

.explorer-controls label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.explorer-controls select,
.explorer-controls input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--ink);
}

.filter-reset-button {
  min-height: 42px;
  border-color: var(--line-strong);
  white-space: nowrap;
}

.explorer-filter-reset {
  width: 42px;
  padding: 0;
  border-radius: 10px;
  font-size: 1.28rem;
  line-height: 1;
  justify-self: end;
}

.explorer-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.explorer-summary-row::before {
  content: "Filtered total";
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secure-export-block {
  max-width: none;
}

.export-briefing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(66, 232, 172, 0.22);
  border-radius: 16px;
  padding: 16px;
  background:
    radial-gradient(circle at 90% 18%, rgba(66, 232, 172, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(66, 232, 172, 0.1), rgba(9, 11, 15, 0.72));
}

.export-briefing-card h4 {
  margin: 0;
  font-size: 1.2rem;
}

.export-briefing-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.export-briefing-action {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.export-briefing-action span {
  display: block;
  color: var(--teal);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.advanced-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.advanced-mini-card {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px;
  background: rgba(9, 11, 15, 0.72);
}

.watchlist-tab {
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.watchlist-tab:hover,
.watchlist-tab:focus-visible,
.watchlist-tab[aria-selected="true"] {
  border-color: rgba(66, 232, 172, 0.52);
  background: rgba(66, 232, 172, 0.1);
  outline: none;
}

.watchlist-detail {
  display: grid;
  gap: 12px;
}

.compact-heading {
  margin-top: 4px;
}

.compact-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.advanced-mini-card.is-warn,
.watchlist-item.warn {
  border-color: rgba(245, 165, 36, 0.34);
  background: rgba(245, 165, 36, 0.08);
}

.watchlist-item.risk {
  border-color: rgba(255, 92, 119, 0.34);
  background: rgba(255, 92, 119, 0.08);
}

.advanced-mini-card span,
.advanced-recurring-head span,
.watchlist-item span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.advanced-mini-card strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.08;
}

.advanced-mini-card p,
.advanced-footnote,
.clean-export-notes p,
.watchlist-item p,
.advanced-recurring-row em {
  margin: 7px 0 0;
  color: var(--muted);
}

.advanced-spending-plan {
  margin-top: 18px;
}

.advanced-recurring-table {
  display: grid;
  gap: 10px;
}

.advanced-recurring-row {
  display: grid;
  gap: 14px;
}

.advanced-recurring-head {
  padding: 0 10px;
}

.advanced-recurring-row,
.watchlist-item,
.clean-export-notes article {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px;
  background: #0d1015;
}

.advanced-recurring-row {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.advanced-recurring-row:hover,
.advanced-recurring-row:focus-visible,
.advanced-recurring-row.is-selected {
  border-color: rgba(66, 232, 172, 0.58);
  outline: none;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2), inset 4px 0 0 var(--teal);
}

.advanced-recurring-row.is-warn {
  border-color: rgba(245, 165, 36, 0.35);
}

.recurring-row-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.recurring-row-metrics > div {
  min-width: 0;
}

.recurring-row-metrics span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recurring-row-metrics strong {
  display: block;
  overflow-wrap: anywhere;
}

.advanced-recurring-row strong,
.advanced-recurring-row span:last-child,
.watchlist-item > strong {
  font-variant-numeric: tabular-nums;
}

.bills-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.bills-dashboard-compact {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.bills-hero-block {
  overflow: visible;
}

.bills-rise-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bills-rise-summary article {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.bills-rise-summary article.is-warn {
  border-color: rgba(245, 165, 36, 0.38);
  background: rgba(245, 165, 36, 0.08);
}

.bills-rise-summary span,
.bills-rise-summary em {
  display: block;
}

.bills-rise-summary span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bills-rise-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.bills-rise-summary em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.25;
}

.bills-cost-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bills-cost-rail article {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.bills-cost-rail span,
.bills-filter-tile span,
.bills-filter-tile em {
  display: block;
}

.bills-filter-tile span {
  display: inline;
}

.bills-cost-rail span,
.bills-filter-tile span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bills-cost-rail strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.bills-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.bills-filter-controls {
  display: block;
}

.bills-filter-select {
  display: none;
}

.bills-category-filter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.bills-filter-select span,
.bills-category-filter span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bills-filter-select select,
.bills-category-filter select {
  width: min(100%, 240px);
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 10px;
  background: #0b0d12;
  color: var(--ink);
  font-weight: 850;
}

.bills-filter-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 8px 12px;
  background: #0d1015;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.bills-filter-tile:hover,
.bills-filter-tile:focus-visible,
.bills-filter-tile.is-active {
  border-color: rgba(66, 232, 172, 0.62);
  outline: none;
  background: rgba(66, 232, 172, 0.09);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.bills-filter-tile.is-warn {
  border-color: rgba(245, 165, 36, 0.34);
}

.bills-filter-tile.is-warn.is-active,
.bills-filter-tile.is-warn:hover,
.bills-filter-tile.is-warn:focus-visible {
  border-color: rgba(245, 165, 36, 0.7);
  background: rgba(245, 165, 36, 0.09);
  box-shadow: inset 0 -3px 0 var(--amber);
}

.bills-filter-tile strong {
  display: inline-block;
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.bills-filter-tile em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.25;
}

.bills-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.bills-list-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.bills-list-heading > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.bills-review-layout {
  display: grid;
  grid-template-columns: minmax(400px, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
  align-items: start;
}

.bills-review-list,
.bills-detail-stage {
  min-width: 0;
}

.bills-detail-stage {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow: auto;
  scrollbar-width: thin;
}

.mobile-bill-detail {
  display: none;
}

.bill-review-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(146px, 34%);
  gap: 16px;
  align-items: stretch;
  min-height: 136px;
  overflow: hidden;
  border-radius: 20px;
  padding: 17px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #15171d;
}

.bill-review-row.is-linked {
  border-color: rgba(93, 168, 255, 0.4);
}

.bill-review-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, currentColor, transparent 42%);
  opacity: 0.08;
}

.bill-review-row:hover,
.bill-review-row:focus-visible,
.bill-review-row.is-selected {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22), inset 4px 0 0 currentColor;
}

.bill-card-tone-teal {
  color: var(--teal);
}

.bill-card-tone-green {
  color: var(--green);
}

.bill-card-tone-amber {
  color: var(--amber);
}

.bill-card-tone-red {
  color: var(--red);
}

.bill-card-tone-blue {
  color: var(--blue);
}

.bill-card-copy,
.bill-card-chart {
  position: relative;
  z-index: 1;
}

.bill-card-copy {
  display: grid;
  align-content: space-between;
  gap: 16px;
  min-width: 0;
}

.bill-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.bill-card-symbol {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.06);
}

.bill-review-row .bill-card-name {
  display: block;
  min-width: 0;
  color: currentColor;
  font-size: 1.07rem;
  font-weight: 900;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.bill-card-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.bill-review-amount,
.bill-review-frequency,
.bill-review-change {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.bill-review-amount {
  align-self: end;
}

.bill-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
}

.bill-review-amount span,
.bill-review-frequency span,
.bill-review-change span {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.bill-review-amount strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.1vw, 2.35rem);
  font-weight: 850;
  line-height: 0.98;
  overflow-wrap: normal;
  white-space: nowrap;
}

.bill-review-frequency,
.bill-review-change {
  min-width: min(120px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
}

.bill-review-frequency strong,
.bill-review-change strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
}

.bill-review-change.is-up strong {
  color: var(--amber);
}

.bill-review-change.is-down strong {
  color: var(--teal);
}

.bill-card-chart {
  display: grid;
  align-items: end;
  min-width: 0;
  color: currentColor;
}

.bill-row-sparkline {
  display: block;
  width: 100%;
  height: 88px;
  opacity: 0.95;
  overflow: visible;
}

.bill-row-sparkline-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.bill-row-sparkline-area {
  opacity: 0.9;
}

.bills-kind-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.bills-kind-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.bills-kind-strip strong {
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.recurring-trend-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 16px;
  height: clamp(360px, 44vh, 460px);
  max-height: calc(100vh - 270px);
  min-height: 340px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(66, 232, 172, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.recurring-trend-copy {
  min-width: 0;
  max-height: 100%;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.recurring-trend-panel.is-warn {
  border-color: rgba(245, 165, 36, 0.36);
  background:
    radial-gradient(circle at 18% 16%, rgba(245, 165, 36, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.recurring-trend-copy h3 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
}

.recurring-trend-copy p {
  margin: 0;
  color: var(--muted);
}

.bill-hero-insight {
  margin-top: 10px !important;
  color: var(--ink) !important;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.38;
}

.bill-change-up {
  color: #ffd9df;
  font-weight: 850;
}

.bill-change-down {
  color: #dcf8ea;
  font-weight: 850;
}

.recurring-trend-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.recurring-trend-stats span:nth-child(6) {
  grid-column: 1 / -1;
}

.recurring-trend-stats span {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.recurring-trend-stats strong {
  color: var(--ink);
  font-size: clamp(0.82rem, 0.9vw, 0.98rem);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bill-inflation-strip {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(93, 158, 245, 0.3);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 10px;
  background: rgba(93, 158, 245, 0.08);
}

.bill-inflation-strip span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bill-inflation-strip strong {
  color: var(--blue);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.bill-inflation-strip em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 750;
}

.bill-trend-context-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.bill-trend-context-row .bill-inflation-strip {
  margin-bottom: 0;
}

.bill-change-strip {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(66, 232, 172, 0.28);
  border-radius: 10px;
  padding: 10px;
  background: rgba(66, 232, 172, 0.08);
}

.bill-change-strip.amount-out {
  border-color: rgba(255, 92, 119, 0.34);
  background: rgba(255, 92, 119, 0.08);
}

.bill-change-strip.amount-in {
  border-color: rgba(66, 232, 172, 0.3);
  background: rgba(66, 232, 172, 0.08);
}

.bill-change-strip > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bill-change-strip strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.18;
}

.bill-change-strip.amount-out strong {
  color: var(--red);
}

.bill-change-strip.amount-in strong {
  color: var(--teal);
}

.recurring-trend-visual {
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
}

.recurring-trend-chart {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.recurring-trend-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recurring-inflation-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
  opacity: 0.9;
}

.recurring-trend-point {
  fill: var(--teal);
  stroke: #06110d;
  stroke-width: 2;
}

.recurring-trend-hit-point {
  fill: transparent;
  pointer-events: all;
}

.bills-stopped-panel {
  border: 1px solid rgba(245, 165, 36, 0.26);
  border-radius: 12px;
  margin-top: 14px;
  padding: 14px;
  background: rgba(245, 165, 36, 0.05);
}

.bills-stopped-list,
.price-watch-list {
  display: grid;
  gap: 10px;
}

.bills-stopped-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(9, 11, 15, 0.82);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bills-stopped-row span {
  color: var(--ink);
  font-weight: 850;
}

.bills-stopped-row strong {
  font-variant-numeric: tabular-nums;
}

.bills-stopped-row em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.advanced-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.advanced-badges span {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(66, 232, 172, 0.1);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 850;
}

.advanced-badges span.is-warn {
  background: rgba(245, 165, 36, 0.12);
  color: #ffd28a;
}

.watchlist-list,
.clean-export-notes {
  display: grid;
  gap: 10px;
}

.watchlist-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.watchlist-item.is-clickable {
  cursor: pointer;
}

.watchlist-item.is-clickable:hover,
.watchlist-item.is-clickable:focus-visible {
  border-color: rgba(66, 232, 172, 0.48);
  outline: none;
}

.explorer-focus-row {
  outline: 2px solid rgba(66, 232, 172, 0.72);
  outline-offset: -2px;
  background: rgba(66, 232, 172, 0.08);
}

.clean-export-summary {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.clean-export-notes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.export-button {
  width: auto;
  margin-top: 4px;
}

.secure-export-block > .export-button,
.secure-export-block > #exportStatus {
  align-self: center;
  text-align: center;
}

.secure-export-block > .export-button {
  display: block;
  margin: 4px auto 0;
}

.full-width {
  min-width: 0;
}

.transaction-review {
  overflow: hidden;
}

.transaction-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  list-style: none;
}

.transaction-summary::-webkit-details-marker {
  display: none;
}

.transaction-summary strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.15;
}

.transaction-summary-meta,
.expand-symbol {
  display: none;
}

.forecast-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.forecast-total {
  border-left: 4px solid var(--teal);
  padding-left: 12px;
}

.forecast-total span {
  color: var(--muted);
}

.forecast-total strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 1.4rem;
}

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

.event-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(205, 213, 230, 0.78);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbfcff;
}

.event-item strong,
.event-item span {
  display: block;
}

.event-item .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface-strong);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.event-item span,
.empty-copy {
  color: var(--muted);
  font-size: 0.9rem;
}

.amount-out {
  color: var(--red);
}

.amount-in {
  color: var(--green);
}

.category-bars {
  display: grid;
  gap: 10px;
}

.category-row {
  display: grid;
  grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) minmax(82px, auto);
  gap: 12px;
  align-items: center;
}

.category-row strong,
.category-label,
.category-row span:last-child {
  line-height: 1.2;
}

.category-label {
  position: relative;
  width: fit-content;
  max-width: 100%;
  border: 0;
  border-bottom: 1px dotted currentColor;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.category-label::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 6;
  width: min(260px, calc(100vw - 56px));
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(29, 37, 44, 0.18);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.category-label:hover::after,
.category-label:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.category-label:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(8, 127, 115, 0.14);
  outline: none;
}

.category-hidden-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.category-hidden-controls button {
  border: 1px solid rgba(8, 127, 115, 0.24);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(8, 127, 115, 0.08);
  color: var(--teal-dark);
  font-weight: 800;
  cursor: pointer;
}

.bar-track {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eaf3;
}

.bar-fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: var(--blue);
}

.category-row:nth-child(2n) .bar-fill {
  background: var(--teal);
}

.category-row:nth-child(3n) .bar-fill {
  background: var(--amber);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

#transactionTable {
  min-width: 0;
  table-layout: fixed;
}

#transactionTable [data-column="date"] {
  width: 104px;
}

#transactionTable [data-column="type"],
#transactionTable [data-column="category"] {
  width: 144px;
}

#transactionTable [data-column="amount"],
#transactionTable [data-column="balance"] {
  width: 112px;
}

#transactionTable td[data-column="description"] {
  overflow-wrap: anywhere;
}

#transactionTable th[data-column="amount"],
#transactionTable th[data-column="balance"],
#transactionTable td[data-column="amount"],
#transactionTable td[data-column="balance"] {
  text-align: right;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sort-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.sort-header::after {
  content: "↕";
  color: var(--muted);
  font-size: 0.72rem;
  opacity: 0.62;
}

th[aria-sort="descending"] .sort-header::after {
  content: "↓";
  color: var(--teal-dark);
  opacity: 1;
}

th[aria-sort="ascending"] .sort-header::after {
  content: "↑";
  color: var(--teal-dark);
  opacity: 1;
}

.sort-header:hover,
.sort-header:focus-visible {
  color: var(--teal-dark);
}

td {
  font-size: 0.92rem;
}

td.amount-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#spendingExplorerTable th[data-column="amount"],
#spendingExplorerTable th[data-column="balance"],
#spendingExplorerTable td[data-column="amount"],
#spendingExplorerTable td[data-column="balance"] {
  text-align: right;
}

#spendingExplorerTable th[data-column="amount"] .sort-header,
#spendingExplorerTable th[data-column="balance"] .sort-header {
  justify-content: flex-end;
  width: 100%;
}

#spendingExplorerTable td.category-tinted-cell {
  color: color-mix(in srgb, var(--transaction-category-color) 58%, var(--ink));
}

#spendingExplorerTable td[data-column="category"].category-tinted-cell {
  font-weight: 850;
}

/* Dark brand layer */
.scan-panel,
.mapping-panel,
.preview-panel,
.analysis-block,
.empty-state,
.metric,
.advanced-tabs,
.advanced-hero,
.score-tile,
.insight-card,
.forecast-card,
.timeline-item,
.event-item,
.home-copy-grid article,
.exp-tabs,
.exp-confidence,
.exp-panel,
.exp-confidence-card,
.exp-mini-card,
.exp-insight-card,
.exp-feature-card,
.exp-context-grid div,
.exp-chart-frame,
.exp-list-item,
.exp-budget-table-wrap,
.exp-assumptions,
.exp-report-action,
.exp-table-wrap,
.quality-traffic {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(24, 27, 35, 0.98), rgba(15, 17, 23, 0.98));
  box-shadow: var(--soft-shadow);
}

.scan-panel {
  background: linear-gradient(180deg, rgba(24, 27, 35, 0.96), rgba(13, 15, 20, 0.98));
}

.drop-zone {
  border-color: rgba(66, 232, 172, 0.28);
  background: #0c0f14;
}

.drop-zone.is-processing,
.processing-status {
  background: rgba(66, 232, 172, 0.08);
}

.drop-mark {
  background: rgba(66, 232, 172, 0.12);
}

.drop-mark span,
.mapping-form select,
.explorer-controls select,
.explorer-controls input,
.exp-explorer-controls input,
.exp-explorer-controls select,
input,
select {
  border-color: var(--line-strong);
  background: #0b0d12;
  color: var(--ink);
}

option {
  background: #0b0d12;
  color: var(--ink);
}

.drop-zone strong,
.primary-button {
  border-color: rgba(66, 232, 172, 0.28);
  background: linear-gradient(135deg, var(--teal), #36d49b);
  box-shadow: 0 16px 32px rgba(66, 232, 172, 0.18);
  color: #06110d;
}

.secondary-button {
  border-color: var(--line-strong);
  background: #0f1218;
  color: var(--ink);
}

.clear-button {
  border-color: rgba(66, 232, 172, 0.28);
  background: linear-gradient(135deg, #123d31, #0f8f6a);
  color: #ffffff;
}

.notice {
  border-color: rgba(245, 165, 36, 0.36);
  background: rgba(245, 165, 36, 0.11);
  color: #ffd28a;
}

.empty-state {
  background:
    radial-gradient(circle at 84% 8%, rgba(122, 77, 255, 0.18), transparent 28%),
    radial-gradient(circle at 8% 0%, rgba(66, 232, 172, 0.14), transparent 30%),
    linear-gradient(180deg, #1d2028, #14171e);
}

.home-copy-grid .connection-check-card {
  border-color: rgba(66, 232, 172, 0.32);
  background: linear-gradient(135deg, rgba(66, 232, 172, 0.18), rgba(19, 22, 29, 0.96));
}

.home-copy-grid .export-help-card {
  border-color: rgba(93, 168, 255, 0.24);
  background: linear-gradient(135deg, rgba(93, 168, 255, 0.1), rgba(19, 22, 29, 0.96));
}

.connection-check-card h3,
.format-token.is-preferred,
.eyebrow,
.category-hidden-controls button,
.event-item .status-pill,
.exp-source-pill,
.exp-assumptions strong,
.sort-header:hover,
.sort-header:focus-visible,
th[aria-sort="descending"] .sort-header::after,
th[aria-sort="ascending"] .sort-header::after {
  color: var(--teal);
}

.view-button {
  color: rgba(247, 248, 251, 0.72);
}

.view-button.is-active {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 4px 0 0 var(--teal);
  color: #ffffff;
}

.view-button.is-active::before {
  background: var(--teal);
  border-color: var(--teal);
}

.advanced-tab,
.experimental-tab {
  color: var(--muted);
}

.advanced-tab.is-active,
.experimental-tab.is-active,
.exp-tabs button.is-active,
.exp-segmented button.is-active {
  background: var(--teal);
  color: #06110d;
}

.advanced-hero,
.data-quality-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(66, 232, 172, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(23, 26, 35, 0.96), rgba(13, 15, 20, 0.98));
}

.score-tile,
.quality-traffic {
  background: rgba(9, 11, 15, 0.72);
}

.metric {
  background: linear-gradient(180deg, #171a22, #0f1117);
}

.metric:nth-child(2) {
  background: linear-gradient(135deg, var(--teal), #2fd58f);
  color: #06110d;
}

.metric:nth-child(2) span,
.metric:nth-child(2) .positive,
.metric:nth-child(2) .negative {
  color: rgba(6, 17, 13, 0.78);
}

.metric:nth-child(3) {
  background: linear-gradient(135deg, #7a4dff, #6538e5);
  color: #ffffff;
}

.metric:nth-child(3) span,
.metric:nth-child(3) .positive,
.metric:nth-child(3) .negative {
  color: rgba(255, 255, 255, 0.78);
}

.metric:nth-child(4),
.insight-card:nth-child(2),
.forecast-card:nth-child(1) {
  background: linear-gradient(180deg, #090b10, #06070a);
}

.insight-card:nth-child(3),
.forecast-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(66, 232, 172, 0.95), rgba(47, 213, 143, 0.95));
  color: #06110d;
}

.insight-card:nth-child(3) span,
.insight-card:nth-child(3) p,
.forecast-card:nth-child(2) span,
.forecast-card:nth-child(2) p {
  color: rgba(6, 17, 13, 0.76);
}

.insight-card:nth-child(3) strong,
.insight-card:nth-child(3) .amount-out,
.insight-card:nth-child(3) .amount-in,
.forecast-card:nth-child(2) strong,
.forecast-card:nth-child(2) .amount-out,
.forecast-card:nth-child(2) .amount-in {
  color: #06110d;
}

.insight-card:nth-child(4),
.forecast-card:nth-child(3) {
  background: linear-gradient(135deg, #7a4dff, #6235de);
  color: #ffffff;
}

.insight-card:nth-child(4) span,
.insight-card:nth-child(4) p,
.forecast-card:nth-child(3) span,
.forecast-card:nth-child(3) p {
  color: rgba(255, 255, 255, 0.76);
}

.insight-card:nth-child(4) strong,
.insight-card:nth-child(4) .amount-out,
.insight-card:nth-child(4) .amount-in,
.forecast-card:nth-child(3) strong,
.forecast-card:nth-child(3) .amount-out,
.forecast-card:nth-child(3) .amount-in {
  color: #ffffff;
}

#advancedInsightGrid .insight-card {
  min-height: 118px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, #171a22, #0d1016);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
}

#advancedInsightGrid .insight-card:nth-child(2) {
  background: linear-gradient(135deg, var(--teal), #2fd58f);
  color: #06110d;
}

#advancedInsightGrid .insight-card:nth-child(2) span,
#advancedInsightGrid .insight-card:nth-child(2) p,
#advancedInsightGrid .insight-card:nth-child(2) strong {
  color: #06110d;
}

#advancedInsightGrid .insight-card:nth-child(3) {
  background: linear-gradient(135deg, #7a4dff, #6235de);
  color: #ffffff;
}

#advancedInsightGrid .insight-card:nth-child(3) span,
#advancedInsightGrid .insight-card:nth-child(3) p,
#advancedInsightGrid .insight-card:nth-child(3) strong {
  color: rgba(255, 255, 255, 0.9);
}

#advancedInsightGrid .insight-card:nth-child(4) {
  background:
    linear-gradient(135deg, rgba(245, 165, 36, 0.16), transparent 42%),
    linear-gradient(180deg, #171a22, #0d1016);
}

.advanced-overview-chart {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.09);
  padding: 0;
  background: #090b10;
}

.advanced-overview-chart .section-heading h3 {
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
}

.insight-card-button:hover,
.insight-card-button:focus-visible {
  border-color: rgba(66, 232, 172, 0.56);
  box-shadow: 0 18px 42px rgba(66, 232, 172, 0.13);
}

.line-chart-grid,
.exp-grid-line {
  stroke: #313747;
}

.chart-control-group,
.line-chart-focus {
  border-color: var(--line-strong);
  background: rgba(9, 11, 15, 0.72);
}

.chart-control-group button,
.filter-reset-button {
  background: #0f1218;
  color: var(--ink);
}

.chart-control-group button[data-active],
.chart-control-group button:hover,
.chart-control-group button:focus-visible {
  background: var(--teal);
  color: #06110d;
}

.line-chart-axis,
.exp-axis-label {
  fill: var(--muted);
}

.exp-line-dot {
  fill: #0b0d12;
}

.movement-track,
.bar-track,
.exp-ranked-track {
  background: #2a303d;
}

.timeline-item,
.event-item,
.exp-list-item,
tbody tr {
  background: #0d1015;
}

.exp-list-item.risk {
  border-color: rgba(255, 92, 119, 0.34);
  background: rgba(255, 92, 119, 0.08);
}

.exp-list-item.warn {
  border-color: rgba(245, 165, 36, 0.36);
  background: rgba(245, 165, 36, 0.08);
}

.exp-badges .warn,
.exp-status-warn {
  color: #ffd28a;
}

.exp-pattern-summary span,
.exp-badges em,
.event-item .status-pill {
  background: rgba(66, 232, 172, 0.1);
}

.exp-budget-table th,
th {
  background: #151922;
}

td,
th,
.exp-budget-table th,
.exp-budget-table td {
  border-color: var(--line);
}

.format-token::after,
.category-label::after {
  border-color: var(--line-strong);
  background: #080a0f;
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

@media (max-width: 1080px) {
  .explorer-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .explorer-search-field {
    grid-column: span 3;
  }

  #transactionTable [data-column="category"] {
    display: none;
  }
}

@media (max-width: 760px) {
  #transactionTable [data-column="balance"] {
    display: none;
  }

  #transactionTable [data-column="date"] {
    width: 88px;
  }

  #transactionTable [data-column="amount"] {
    width: 92px;
  }

  #transactionTable th,
  #transactionTable td {
    padding: 10px 6px;
  }
}

@media (max-width: 560px) {
  #transactionTable [data-column="type"] {
    display: none;
  }

  #transactionTable [data-column="date"] {
    width: 82px;
  }

  #transactionTable [data-column="amount"] {
    width: 86px;
  }

  #transactionTable th,
  #transactionTable td {
    font-size: 0.84rem;
  }
}

@keyframes local-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes local-processing-bar {
  0% {
    transform: translateX(-105%);
  }

  50% {
    transform: translateX(78%);
  }

  100% {
    transform: translateX(260%);
  }
}

@keyframes draw-advanced-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes spend-ring-in {
  from {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes spend-row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .advanced-line-path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .spend-ring-segment,
  .spend-table-row,
  .advanced-chart-bar,
  .advanced-bar-fill {
    animation: none;
  }
}

@media (max-width: 1500px) {
  .recurring-trend-panel {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .recurring-trend-visual {
    min-height: clamp(230px, 31vh, 320px);
  }
}

@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: 1fr;
    border-width: 8px;
  }

  .control-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .side-view-panel {
    grid-column: 1 / -1;
  }

  .metric-grid,
  .insight-grid,
  .data-quality-card-grid,
  .forecast-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #advancedInsightGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid[data-visible-metrics] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid .metric:first-child {
    grid-column: span 2;
  }

  .exp-confidence,
  .exp-money-layout,
  .exp-grid-two,
  .exp-grid-three {
    grid-template-columns: 1fr;
  }

  .exp-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exp-confidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advanced-overview-layout {
    grid-template-columns: 1fr;
  }

  .advanced-overview-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .line-chart-panel {
    grid-template-rows: auto auto minmax(320px, auto) auto;
  }

  .advanced-line-chart {
    height: auto;
    min-height: 320px;
  }

  .overview-side-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .spend-hero,
  .spend-detail-grid,
  .overview-spend-visuals,
  .income-power-grid,
  .bills-grid,
  .recurring-trend-panel,
  .cashflow-detail-grid,
  .advanced-mini-grid,
  .export-briefing-card,
  .clean-export-notes {
    grid-template-columns: 1fr;
  }

  .bills-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .bills-rise-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bills-review-layout {
    grid-template-columns: 1fr;
  }

  .bills-detail-stage {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .recurring-trend-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cashflow-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cashflow-hero-head {
    flex-direction: column;
  }

  .cashflow-controls {
    justify-content: flex-start;
    width: 100%;
  }

  .cashflow-flow-layout {
    grid-template-columns: minmax(185px, 0.8fr) minmax(300px, 1fr) minmax(210px, 0.8fr);
    gap: 12px;
    padding-inline: 16px;
  }

  .cashflow-rail-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cashflow-rail-row em {
    display: none;
  }

  .cashflow-header {
    align-items: start;
    flex-direction: column;
  }

  .cashflow-header p:last-child {
    max-width: none;
    text-align: left;
  }

  .advanced-recurring-head {
    display: none;
  }

  .advanced-recurring-row {
    grid-template-columns: 1fr;
  }

  .bill-review-row {
    grid-template-columns: minmax(0, 1fr) minmax(100px, auto) minmax(132px, auto);
  }

  .recurring-row-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .watchlist-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  body:has(#dashboard:not([hidden])) .control-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  body:has(#dashboard:not([hidden])) .topbar,
  body:has(#dashboard:not([hidden])) .scan-panel .section-heading {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .scan-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border-radius: 14px;
    padding: 8px;
  }

  body:has(#dashboard:not([hidden])) .drop-zone {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    min-height: 0;
    border-radius: 12px;
    border: 0;
    padding: 0;
    background: transparent;
  }

  body:has(#dashboard:not([hidden])) .drop-mark,
  body:has(#dashboard:not([hidden])) .format-copy {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .drop-zone strong {
    width: 100%;
    min-height: 36px;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 0.9rem;
  }

  body:has(#dashboard:not([hidden])) .clear-button {
    width: auto;
    min-height: 36px;
    margin: 0;
    border-radius: 10px;
    padding: 7px 12px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 0;
  }

  .workspace {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .topbar,
  .advanced-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .control-rail,
  .analysis-grid,
  .advanced-grid,
  .advanced-mini-grid,
  .advanced-recurring-row,
  .bills-rise-summary,
  .bills-review-layout,
  .clean-export-notes,
  .data-quality-card-grid,
  .explorer-controls,
  .exp-feature-grid,
  .exp-confidence-grid,
  .exp-context-grid,
  .exp-mini-grid,
  .exp-budget-summary,
  .metric-grid,
  .insight-grid,
  .forecast-card-grid,
  .home-copy-grid .export-help-card,
  .home-copy-grid,
  .empty-state {
    grid-template-columns: 1fr;
  }

  .home-copy-grid article,
  .home-copy-grid article:nth-child(4),
  .home-copy-grid article:nth-child(5),
  .home-copy-grid .export-help-card {
    grid-column: 1 / -1;
  }

  #advancedInsightGrid {
    grid-template-columns: 1fr;
  }

  .explorer-search-field {
    grid-column: auto;
  }

  .metric-grid[data-visible-metrics] {
    grid-template-columns: 1fr;
  }

  .metric-grid .metric:first-child {
    grid-column: auto;
  }

  #periodTitle {
    white-space: normal;
  }

  .workspace {
    padding: 0;
  }

  .control-rail,
  .results-area {
    padding: 18px 14px;
  }

  .view-switch {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .spend-ring-layout,
  .overview-spend-tracker-card .spend-ring-layout,
  .overview-tracker-wrap,
  .spend-table-head,
  .spend-table-row,
  .cashflow-metric-grid,
  .cashflow-list-row,
  .watchlist-item {
    grid-template-columns: 1fr;
  }

  .cashflow-hero-panel,
  .cashflow-flow-card {
    overflow: hidden;
  }

  .cashflow-hero-head,
  .cashflow-controls,
  .cashflow-controls .income-period-nav {
    width: 100%;
  }

  .cashflow-controls,
  .cashflow-controls .income-period-nav {
    justify-content: stretch;
  }

  .cashflow-controls .income-mode-toggle {
    width: 100%;
  }

  .cashflow-flow-layout {
    display: none;
  }

  .cashflow-mobile-flow {
    display: grid;
    gap: 12px;
    padding: 16px 14px 18px;
  }

  .cashflow-mobile-flow article {
    display: grid;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.035);
  }

  .cashflow-mobile-flow article > span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .cashflow-mobile-flow .cashflow-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }

  .cashflow-mobile-flow .cashflow-list-row span {
    grid-row: 1 / span 2;
    align-self: start;
    white-space: normal;
  }

  .cashflow-mobile-flow .cashflow-list-row strong,
  .cashflow-mobile-flow .cashflow-list-row em {
    text-align: right;
  }

  .cashflow-mobile-centre {
    background: linear-gradient(135deg, rgba(66, 232, 172, 0.17), rgba(93, 168, 255, 0.09));
  }

  .cashflow-mobile-centre strong {
    color: var(--teal);
    font-size: 1.8rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }

  .cashflow-mobile-centre p {
    margin: 0;
    color: var(--muted);
  }

  .bills-filter-grid {
    display: flex;
    gap: 8px;
    margin-inline: -2px;
    overflow-x: auto;
    padding: 0 2px 6px;
    scroll-snap-type: x proximity;
  }

  .bills-filter-tile {
    flex: 0 0 136px;
    min-height: 44px;
    scroll-snap-align: start;
  }

  .bills-category-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .bills-category-filter select {
    width: 100%;
  }

  .bill-review-row {
    grid-template-columns: minmax(0, 1fr) 64px 68px 72px;
  }

  .bill-review-change {
    grid-column: auto;
    display: block;
    text-align: right;
  }

  .bills-detail-stage {
    display: none;
  }

  .mobile-bill-detail {
    display: block;
  }

  .mobile-bill-detail .recurring-trend-panel {
    margin-top: -4px;
    border-top-color: rgba(66, 232, 172, 0.58);
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .mobile-bill-detail .recurring-trend-copy {
    max-height: none;
    overflow: visible;
  }

  .mobile-bill-detail .recurring-trend-visual {
    min-height: 240px;
  }

  .recurring-trend-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recurring-trend-stats span:nth-child(6) {
    grid-column: auto;
  }

  .spend-table-head {
    display: none;
  }

  .spend-hero-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }

  .spend-controls {
    justify-content: flex-start;
  }

  .income-controls {
    justify-content: flex-start;
  }

  .income-mode-toggle {
    flex: 1 1 180px;
  }

  .income-mode-toggle button {
    flex: 1 1 0;
  }

  .spend-month-picker {
    flex: 1 1 160px;
    justify-content: space-between;
  }

  .spend-month-picker select {
    min-width: 112px;
  }

  .income-inflation-field input {
    flex: 0 0 74px;
  }

  .spend-toggle {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .spend-donut {
    width: min(100%, 236px);
    margin-inline: auto;
  }

  .advanced-overview-main,
  .overview-spend-visuals {
    padding: 16px;
  }

  .line-chart-panel {
    grid-template-rows: auto auto minmax(280px, auto) auto;
  }

  .advanced-line-chart {
    min-height: 280px;
  }

  .overview-side-stats {
    grid-template-columns: 1fr;
  }

  .overview-donut-stage {
    min-height: 220px;
  }

  .overview-tracker {
    width: min(100%, 210px);
    margin-inline: auto;
  }

  .overview-spend-tracker-card .spend-donut {
    width: min(100%, 224px);
    margin-inline: auto;
  }

  .overview-bubble-cloud {
    min-height: 220px;
  }

  .spend-ring-layout {
    gap: 14px;
  }

  .spend-main-number strong {
    font-size: clamp(2.25rem, 13vw, 3.2rem);
  }

  .income-trend-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .income-trend-row strong {
    text-align: left;
  }

  .advanced-recurring-head {
    display: none;
  }

  .bills-summary-grid,
  .bills-cost-rail,
  .bills-filter-grid,
  .bills-list-heading,
  .recurring-trend-stats,
  .recurring-row-metrics,
  .advanced-recurring-row {
    grid-template-columns: 1fr;
  }

  .bills-list-heading {
    display: grid;
    align-items: start;
  }

  .advanced-recurring-row > div,
  .watchlist-item > strong {
    grid-column: auto;
  }

  .advanced-recurring-row.bill-review-row {
    grid-template-columns: minmax(0, 1fr) minmax(126px, 34%);
  }

  .bills-stopped-row {
    grid-template-columns: 1fr;
  }

  .watchlist-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .watchlist-tab {
    padding: 10px;
  }

  .watchlist-tab p {
    display: none;
  }

  .advanced-mini-card strong {
    font-size: 1.25rem;
  }

  .spend-merchant-card {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .spend-merchant-card b {
    grid-column: 2;
    grid-row: auto;
  }

  .advanced-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advanced-tab,
  .experimental-tab {
    min-height: 44px;
    padding-inline: 8px;
  }

  .exp-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exp-tabs button {
    min-height: 42px;
    padding-inline: 8px;
  }

  .metric {
    min-height: auto;
  }

  .empty-state {
    min-height: auto;
  }

  .empty-state h2 {
    font-size: clamp(2rem, 11vw, 3.6rem);
  }

  .category-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .exp-confidence,
  .exp-panel,
  .exp-hero-panel {
    padding: 14px;
  }

  .exp-panel-heading,
  .exp-money-layout {
    align-items: flex-start;
  }

  .exp-source-pill {
    white-space: normal;
  }

  .exp-chart-frame {
    padding: 8px;
  }

  .exp-month-row,
  .exp-ranked-row,
  .exp-list-item {
    grid-template-columns: 1fr;
  }

  .exp-month-row strong:last-child,
  .exp-ranked-row > strong {
    text-align: left;
  }

  .exp-ranked-label strong {
    white-space: normal;
  }

  .exp-control-stack,
  .exp-explorer-controls {
    width: 100%;
  }

  .exp-segmented {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 8px;
  }

  .exp-segmented button {
    border-radius: 6px;
    padding-inline: 6px;
  }

  .exp-explorer-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .exp-explorer-controls input,
  .exp-explorer-controls select {
    width: 100%;
  }

  .transaction-review {
    padding: 0;
  }

  .transaction-summary {
    align-items: center;
    min-height: 66px;
    margin: 0;
    padding: 16px;
    cursor: pointer;
  }

  .transaction-summary-meta {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .expand-symbol {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e1f5ef;
  }

  .expand-symbol::before,
  .expand-symbol::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--teal-dark);
  }

  .expand-symbol::after {
    transform: rotate(90deg);
    transition: opacity 140ms ease;
  }

  .transaction-review[open] .expand-symbol::after {
    opacity: 0;
  }

  .transaction-review .table-wrap {
    padding: 0 16px 16px;
  }

  .movement-row,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .movement-row strong,
  .timeline-item strong:last-child {
    text-align: left;
  }

  .export-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  body:has(#dashboard:not([hidden])) .workspace {
    display: block;
    min-height: 100vh;
  }

  body:has(#dashboard:not([hidden])) .control-rail {
    position: static;
    z-index: 30;
    display: grid;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 0;
    min-height: 0;
    border: 0;
    padding: 0;
    overflow: hidden;
    background:
      radial-gradient(circle at 8% 0%, rgba(66, 232, 172, 0.15), transparent 32%),
      rgba(8, 10, 15, 0.96);
    backdrop-filter: blur(18px);
  }

  body:has(#dashboard:not([hidden])) .topbar {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .topbar h1 {
    max-width: none;
    font-size: 1.05rem;
    line-height: 1.12;
  }

  body:has(#dashboard:not([hidden])) .scan-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  body:has(#dashboard:not([hidden])) .scan-panel .section-heading {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .drop-zone {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
    justify-items: start;
    min-height: 0;
    border-radius: 12px;
    border: 0;
    padding: 0;
    background: transparent;
    text-align: left;
  }

  body:has(#dashboard:not([hidden])) .drop-mark {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .drop-mark span {
    width: 17px;
    height: 22px;
    border-radius: 4px;
  }

  body:has(#dashboard:not([hidden])) .drop-mark span::before {
    top: 7px;
  }

  body:has(#dashboard:not([hidden])) .drop-mark span::after {
    top: 13px;
  }

  body:has(#dashboard:not([hidden])) .drop-zone strong {
    width: 100%;
    min-height: 34px;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 0.84rem;
  }

  body:has(#dashboard:not([hidden])) .format-copy {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .format-line {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  body:has(#dashboard:not([hidden])) .multi-file-note {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .clear-button {
    width: auto;
    min-width: 36px;
    min-height: 34px;
    margin: 0;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 0;
  }

  body:has(#dashboard:not([hidden])) .clear-button .clear-symbol {
    margin: 0;
  }

  body:has(#dashboard:not([hidden])) .processing-status {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 7px 8px;
  }

  body:has(#dashboard:not([hidden])) .results-area {
    padding: calc(58px + env(safe-area-inset-top)) 10px 8px;
    overflow: visible;
  }

  body:has(#dashboard:not([hidden])) .dashboard,
  body:has(#dashboard:not([hidden])) .advanced-dashboard,
  body:has(#dashboard:not([hidden])) .advanced-panel {
    gap: 10px;
    min-width: 0;
    max-width: 100%;
  }

  body:has(#dashboard:not([hidden])) .advanced-tabs {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 60;
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    margin: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    padding: calc(7px + env(safe-area-inset-top)) 10px 7px;
    overflow-x: auto;
    background: rgba(8, 10, 15, 0.98);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  body:has(#dashboard:not([hidden])) .advanced-tabs::-webkit-scrollbar {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .advanced-tab {
    flex: 0 0 auto;
    min-height: 36px;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.84rem;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  body:has(#dashboard:not([hidden])) .advanced-tab .nav-long {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .advanced-tab .nav-short {
    display: inline;
  }

  body:has(#dashboard:not([hidden])) .mobile-menu-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body:has(#dashboard:not([hidden])) .mobile-menu-action[data-mobile-action="clear"] {
    border: 1px solid rgba(255, 92, 119, 0.34);
    background: rgba(255, 92, 119, 0.1);
    color: #ffd8df;
  }

  body:has(#dashboard:not([hidden])) .view-status-tag {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .advanced-tab[data-tab="dataQuality"][data-quality-level="low"] {
    border: 1px solid rgba(255, 92, 119, 0.46);
    background: rgba(255, 92, 119, 0.14);
    color: #ffd8df;
  }

  body:has(#dashboard:not([hidden])) .advanced-tab[data-tab="dataQuality"][data-quality-level="medium"] {
    border: 1px solid rgba(245, 165, 36, 0.48);
    background: rgba(245, 165, 36, 0.15);
    color: #ffdc9a;
  }

  body:has(#dashboard:not([hidden])) .advanced-tab[data-tab="dataQuality"][data-quality-level="strong"] {
    border: 1px solid rgba(66, 232, 172, 0.42);
    background: rgba(66, 232, 172, 0.14);
    color: #bfffea;
  }

  body:has(#dashboard:not([hidden])) .analysis-block,
  body:has(#dashboard:not([hidden])) .metric,
  body:has(#dashboard:not([hidden])) .insight-card,
  body:has(#dashboard:not([hidden])) .score-tile,
  body:has(#dashboard:not([hidden])) .forecast-card {
    border-radius: 12px;
    padding: 12px;
  }

  body:has(#dashboard:not([hidden])) .analysis-block {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  body:has(#dashboard:not([hidden])) .section-heading {
    margin-bottom: 10px;
  }

  body:has(#dashboard:not([hidden])) .section-heading h3,
  body:has(#dashboard:not([hidden])) .section-heading h2 {
    font-size: 1.02rem;
  }

  body:has(#dashboard:not([hidden])) .eyebrow {
    margin-bottom: 4px;
    font-size: 0.66rem;
  }

  body:has(#dashboard:not([hidden])) #advancedInsightGrid,
  body:has(#dashboard:not([hidden])) .metric-grid,
  body:has(#dashboard:not([hidden])) .metric-grid[data-visible-metrics],
  body:has(#dashboard:not([hidden])) .insight-grid,
  body:has(#dashboard:not([hidden])) .forecast-card-grid,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body:has(#dashboard:not([hidden])) .metric-grid .metric:first-child,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic {
    grid-column: 1 / -1;
  }

  body:has(#dashboard:not([hidden])) .metric,
  body:has(#dashboard:not([hidden])) .insight-card,
  body:has(#dashboard:not([hidden])) .forecast-card,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-summary-card,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card {
    min-height: 86px;
  }

  body:has(#dashboard:not([hidden])) .metric strong,
  body:has(#dashboard:not([hidden])) .insight-card strong,
  body:has(#dashboard:not([hidden])) .score-tile strong,
  body:has(#dashboard:not([hidden])) .forecast-card strong {
    margin-top: 6px;
    font-size: 1.04rem;
  }

  body:has(#dashboard:not([hidden])) .metric span,
  body:has(#dashboard:not([hidden])) .insight-card span,
  body:has(#dashboard:not([hidden])) .score-tile span,
  body:has(#dashboard:not([hidden])) .forecast-card span {
    font-size: 0.66rem;
  }

  body:has(#dashboard:not([hidden])) .advanced-overview-chart,
  body:has(#dashboard:not([hidden])) .advanced-overview-layout {
    min-height: 0;
  }

  body:has(#dashboard:not([hidden])) .advanced-overview-main,
  body:has(#dashboard:not([hidden])) .overview-spend-visuals {
    padding: 12px;
  }

  body:has(#dashboard:not([hidden])) .advanced-overview-main .section-heading h3 {
    font-size: 1.35rem;
  }

  body:has(#dashboard:not([hidden])) .line-chart-panel {
    gap: 8px;
    grid-template-rows: auto auto minmax(220px, auto) auto;
  }

  body:has(#dashboard:not([hidden])) .advanced-line-chart {
    min-height: 220px;
  }

  body:has(#dashboard:not([hidden])) .line-chart-toolbar {
    gap: 7px;
  }

  body:has(#dashboard:not([hidden])) .chart-control-group {
    gap: 3px;
    border-radius: 999px;
    padding: 4px;
  }

  body:has(#dashboard:not([hidden])) .chart-control-group:first-child {
    margin-right: 0;
  }

  body:has(#dashboard:not([hidden])) .chart-control-group span,
  body:has(#dashboard:not([hidden])) .chart-control-group strong {
    padding: 0 5px;
    font-size: 0.72rem;
  }

  body:has(#dashboard:not([hidden])) .chart-control-group button,
  body:has(#dashboard:not([hidden])) .filter-reset-button {
    min-height: 30px;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 0.8rem;
  }

  body:has(#dashboard:not([hidden])) .line-chart-legend,
  body:has(#dashboard:not([hidden])) .line-chart-focus {
    gap: 8px;
  }

  body:has(#dashboard:not([hidden])) .line-chart-legend span,
  body:has(#dashboard:not([hidden])) .line-chart-focus span {
    gap: 5px;
    font-size: 0.76rem;
  }

  body:has(#dashboard:not([hidden])) .overview-side-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(#dashboard:not([hidden])) .overview-donut-stage {
    min-height: 190px;
  }

  body:has(#dashboard:not([hidden])) .overview-tracker,
  body:has(#dashboard:not([hidden])) .overview-spend-tracker-card .spend-donut {
    width: min(100%, 190px);
  }

  body:has(#dashboard:not([hidden])) .overview-bubble-cloud {
    min-height: 190px;
  }

  body:has(#dashboard:not([hidden])) .spend-hero-head {
    gap: 8px;
    margin-bottom: 10px;
  }

  body:has(#dashboard:not([hidden])) .spend-hero-head h3,
  body:has(#dashboard:not([hidden])) .cashflow-title h3 {
    font-size: 1.25rem;
  }

  body:has(#dashboard:not([hidden])) .spend-controls,
  body:has(#dashboard:not([hidden])) .income-controls {
    gap: 6px;
  }

  body:has(#dashboard:not([hidden])) .income-mode-toggle,
  body:has(#dashboard:not([hidden])) .income-period-nav,
  body:has(#dashboard:not([hidden])) .spend-month-picker {
    min-height: 34px;
  }

  body:has(#dashboard:not([hidden])) .spend-toggle {
    min-height: 34px;
    border-radius: 12px;
    font-size: 0.76rem;
  }

  body:has(#dashboard:not([hidden])) .spend-donut {
    width: min(100%, 136px);
  }

  body:has(#dashboard:not([hidden])) .spend-main-number strong {
    font-size: clamp(1.45rem, 7.5vw, 2rem);
  }

  body:has(#dashboard:not([hidden])) .spend-main-number p {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  body:has(#dashboard:not([hidden])) .spend-ring-layout {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 10px;
  }

  body:has(#dashboard:not([hidden])) .spend-ring-card {
    padding: 12px;
  }

  body:has(#dashboard:not([hidden])) .spend-title h3 {
    font-size: 1.25rem;
  }

  body:has(#dashboard:not([hidden])) .income-inflation-field {
    min-height: 34px;
  }

  body:has(#dashboard:not([hidden])) .spend-summary-panel,
  body:has(#dashboard:not([hidden])) .spend-table,
  body:has(#dashboard:not([hidden])) .watchlist-list,
  body:has(#dashboard:not([hidden])) .clean-export-notes,
  body:has(#dashboard:not([hidden])) .event-list {
    gap: 8px;
  }

  body:has(#dashboard:not([hidden])) .spend-summary-row {
    padding-top: 8px;
  }

  body:has(#dashboard:not([hidden])) .spend-summary-row strong {
    font-size: 1rem;
  }

  body:has(#dashboard:not([hidden])) .spend-table-row {
    border-radius: 10px;
    padding: 10px;
  }

  body:has(#dashboard:not([hidden])) .spend-table-row i {
    height: 30px;
  }

  body:has(#dashboard:not([hidden])) .explorer-filter-panel {
    gap: 8px;
    margin-bottom: 8px;
  }

  body:has(#dashboard:not([hidden])) .explorer-filter-panel summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 8px 10px;
    background: rgba(13, 16, 21, 0.96);
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }

  body:has(#dashboard:not([hidden])) .explorer-filter-panel summary::-webkit-details-marker {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .explorer-filter-panel summary::after {
    content: "+";
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(66, 232, 172, 0.12);
    color: var(--teal);
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1;
  }

  body:has(#dashboard:not([hidden])) .explorer-filter-panel[open] summary::after {
    content: "-";
  }

  body:has(#dashboard:not([hidden])) .explorer-filter-panel summary span,
  body:has(#dashboard:not([hidden])) .explorer-filter-panel summary strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])) .explorer-filter-panel summary span {
    grid-column: 1;
    color: var(--teal);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body:has(#dashboard:not([hidden])) .explorer-filter-panel summary strong {
    grid-column: 1;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 780;
  }

  body:has(#dashboard:not([hidden])) .explorer-controls {
    position: static;
    z-index: 18;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    background: rgba(13, 16, 21, 0.96);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    width: 100%;
  }

  body:has(#dashboard:not([hidden])) .explorer-controls > * {
    min-width: 0;
    max-width: 100%;
  }

  body:has(#dashboard:not([hidden])) .explorer-controls label {
    gap: 4px;
    overflow: hidden;
    font-size: 0.68rem;
  }

  body:has(#dashboard:not([hidden])) .explorer-controls .explorer-search-field {
    grid-column: 1 / -1;
  }

  body:has(#dashboard:not([hidden])) .explorer-controls .explorer-filter-reset {
    justify-self: end;
    width: 38px;
  }

  body:has(#dashboard:not([hidden])) .explorer-controls select,
  body:has(#dashboard:not([hidden])) .explorer-controls input {
    min-width: 0;
    max-width: 100%;
    min-height: 36px;
    border-radius: 9px;
    padding: 7px 8px;
    overflow: hidden;
    font-size: 0.82rem;
  }

  body:has(#dashboard:not([hidden])) .explorer-controls input[type="date"] {
    padding-inline: 6px;
    font-size: 0.76rem;
  }

  body:has(#dashboard:not([hidden])) .explorer-summary-row {
    margin: 8px 0;
    font-size: 0.82rem;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="explorer"] .table-wrap {
    max-height: 64vh;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: auto;
    background: #0b0d12;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="explorer"] table {
    min-width: 640px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="explorer"] th,
  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="explorer"] td {
    padding: 8px 7px;
    font-size: 0.8rem;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="explorer"] th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #10131a;
  }

  body:has(#dashboard:not([hidden])) .bills-rise-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  body:has(#dashboard:not([hidden])) .bills-rise-summary article,
  body:has(#dashboard:not([hidden])) .bills-cost-rail article {
    min-height: 58px;
    padding: 7px 5px;
  }

  body:has(#dashboard:not([hidden])) .bills-rise-summary span {
    min-height: 2.2em;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: center;
  }

  body:has(#dashboard:not([hidden])) .bills-rise-summary strong,
  body:has(#dashboard:not([hidden])) .bills-cost-rail strong {
    margin-top: 4px;
    font-size: 0.78rem;
    text-align: center;
  }

  body:has(#dashboard:not([hidden])) .bills-hero-block .section-heading h3 {
    font-size: 1.18rem;
    line-height: 1.12;
  }

  body:has(#dashboard:not([hidden])) .bills-rise-summary em {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .bills-filter-grid {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .bills-filter-tile {
    flex-basis: 118px;
    min-height: 38px;
    border-radius: 999px;
    padding: 7px 10px;
  }

  body:has(#dashboard:not([hidden])) .bills-filter-tile strong {
    font-size: 0.8rem;
  }

  body:has(#dashboard:not([hidden])) .bills-filter-tile em {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .bills-category-filter {
    display: grid;
    gap: 6px;
    align-items: stretch;
    margin-top: 0;
  }

  body:has(#dashboard:not([hidden])) .bills-filter-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: end;
  }

  body:has(#dashboard:not([hidden])) .bills-filter-select {
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  body:has(#dashboard:not([hidden])) .bills-filter-select span,
  body:has(#dashboard:not([hidden])) .bills-category-filter span {
    font-size: 0.58rem;
  }

  body:has(#dashboard:not([hidden])) .bills-filter-select select,
  body:has(#dashboard:not([hidden])) .bills-category-filter select {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    border-radius: 999px;
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  body:has(#dashboard:not([hidden])) .bills-list-heading {
    gap: 6px;
    margin-bottom: 8px;
  }

  body:has(#dashboard:not([hidden])) .bills-list-heading h3 {
    font-size: 1rem;
  }

  body:has(#dashboard:not([hidden])) .bills-list-heading > span {
    font-size: 0.76rem;
  }

  body:has(#dashboard:not([hidden])) .advanced-recurring-row.bill-review-row {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 32%);
    gap: 10px;
    min-height: 116px;
    border-radius: 18px;
    padding: 13px;
  }

  body:has(#dashboard:not([hidden])) .bill-card-copy {
    gap: 10px;
  }

  body:has(#dashboard:not([hidden])) .bill-card-title-row {
    gap: 7px;
  }

  body:has(#dashboard:not([hidden])) .bill-card-symbol {
    width: 17px;
    height: 17px;
    margin-top: 0;
    border-width: 2px;
  }

  body:has(#dashboard:not([hidden])) .bill-review-row .bill-card-name {
    font-size: 0.88rem;
    line-height: 1.12;
  }

  body:has(#dashboard:not([hidden])) .bill-card-metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  body:has(#dashboard:not([hidden])) .bill-card-meta {
    gap: 5px;
  }

  body:has(#dashboard:not([hidden])) .bill-review-frequency,
  body:has(#dashboard:not([hidden])) .bill-review-change {
    flex: 1 1 74px;
    min-width: 0;
    border-radius: 8px;
    padding: 6px 7px;
  }

  body:has(#dashboard:not([hidden])) .bill-review-amount strong {
    font-size: clamp(1.34rem, 6.6vw, 1.62rem);
  }

  body:has(#dashboard:not([hidden])) .bill-review-frequency strong,
  body:has(#dashboard:not([hidden])) .bill-review-change strong {
    font-size: 0.68rem;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  body:has(#dashboard:not([hidden])) .bill-review-amount span,
  body:has(#dashboard:not([hidden])) .bill-review-frequency span,
  body:has(#dashboard:not([hidden])) .bill-review-change span {
    font-size: 0.5rem;
  }

  body:has(#dashboard:not([hidden])) .bill-row-sparkline {
    height: 76px;
  }

  body:has(#dashboard:not([hidden])) .bills-review-list {
    max-height: 58vh;
    overflow: auto;
    padding-right: 2px;
    scrollbar-width: thin;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .recurring-trend-panel {
    padding: 10px;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .recurring-trend-visual {
    min-height: 190px;
  }

  body:has(#dashboard:not([hidden])) .recurring-trend-stats {
    gap: 6px;
  }

  body:has(#dashboard:not([hidden])) .recurring-trend-stats span {
    padding: 7px;
  }

  body:has(#dashboard:not([hidden])) .watchlist-tab {
    min-height: 58px;
    padding: 9px;
  }

  body:has(#dashboard:not([hidden])) .advanced-mini-card {
    padding: 10px;
  }

  body:has(#dashboard:not([hidden])) .advanced-mini-card strong {
    font-size: 1.05rem;
  }

  body:has(#dashboard:not([hidden])) .watchlist-item,
  body:has(#dashboard:not([hidden])) .clean-export-notes article {
    border-radius: 10px;
    padding: 10px;
  }

  body:has(#dashboard:not([hidden])) .clean-export-summary {
    gap: 8px;
    margin: 10px 0;
  }

  body:has(#dashboard:not([hidden])) .card-value-mobile {
    display: none;
  }

  body:has(#dashboard:not([hidden])) #advancedInsightGrid,
  body:has(#dashboard:not([hidden])) .overview-side-stats,
  body:has(#dashboard:not([hidden])) .spend-summary-panel,
  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .watchlist-tabs,
  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .advanced-mini-grid,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card,
  body:has(#dashboard:not([hidden])) .overview-side-stats article,
  body:has(#dashboard:not([hidden])) .spend-summary-row,
  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .watchlist-tab,
  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .advanced-mini-card,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-summary-card,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card {
    display: grid;
    align-content: center;
    min-height: 58px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 7px 5px;
    text-align: center;
  }

  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card p,
  body:has(#dashboard:not([hidden])) .overview-side-stats article p,
  body:has(#dashboard:not([hidden])) .spend-summary-row em,
  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .watchlist-tab p,
  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .advanced-mini-card p,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .score-tile p,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card p {
    display: none;
  }

  body:has(#dashboard:not([hidden])) #advancedInsightGrid .card-value-full {
    display: none;
  }

  body:has(#dashboard:not([hidden])) #advancedInsightGrid .card-value-mobile {
    display: inline;
  }

  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card span,
  body:has(#dashboard:not([hidden])) .overview-side-stats article span,
  body:has(#dashboard:not([hidden])) .spend-summary-row span,
  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .watchlist-tab span,
  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .advanced-mini-card span,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-summary-card span,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card span {
    min-height: 2.2em;
    color: var(--muted);
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
  }

  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card strong,
  body:has(#dashboard:not([hidden])) .overview-side-stats article strong,
  body:has(#dashboard:not([hidden])) .spend-summary-row strong,
  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .watchlist-tab strong,
  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .advanced-mini-card strong,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-summary-card strong,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card strong {
    margin-top: 4px;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
    line-height: 1.05;
    text-align: center;
  }

  body:has(#dashboard:not([hidden])) .spend-summary-panel > .eyebrow {
    grid-column: 1 / -1;
  }

  body:has(#dashboard:not([hidden])) .spend-summary-row {
    border-top: 1px solid var(--line-strong);
    padding-top: 7px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .watchlist-tab,
  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .advanced-mini-card {
    min-height: 64px;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: start;
    min-height: 98px;
    padding: 12px;
    text-align: left;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic span:not(.quality-light),
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic strong,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic p {
    text-align: left;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic span:not(.quality-light) {
    min-height: 0;
    font-size: 0.66rem;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic strong {
    margin-top: 2px;
    font-size: 1.45rem;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic p {
    display: block;
    margin-top: 6px;
    font-size: 0.88rem;
    line-height: 1.3;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic .quality-lights {
    margin: 0;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic .quality-light {
    min-height: 0;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0;
    font-size: 0;
    letter-spacing: 0;
  }

  body,
  .app-shell {
    overflow-x: hidden;
  }

  body:not(:has(#dashboard:not([hidden]))) .app-shell,
  body:not(:has(#dashboard:not([hidden]))) .workspace {
    min-height: 100svh;
  }

  body:not(:has(#dashboard:not([hidden]))) .control-rail {
    gap: 10px;
    padding: 12px 12px 8px;
  }

  body:not(:has(#dashboard:not([hidden]))) .topbar h1 {
    max-width: none;
    overflow: hidden;
    font-size: clamp(1rem, 4.3vw, 1.18rem);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(:has(#dashboard:not([hidden]))) .scan-panel {
    padding: 12px;
  }

  body:not(:has(#dashboard:not([hidden]))) .scan-panel .section-heading {
    margin-bottom: 8px;
  }

  body:not(:has(#dashboard:not([hidden]))) .scan-panel .section-heading h2 {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

  body:not(:has(#dashboard:not([hidden]))) .drop-zone {
    min-height: 104px;
    gap: 7px;
    border-radius: 12px;
    padding: 12px;
  }

  body:not(:has(#dashboard:not([hidden]))) .drop-zone strong {
    min-height: 38px;
    border-radius: 10px;
    padding: 8px 14px;
  }

  body:not(:has(#dashboard:not([hidden]))) .drop-zone p {
    max-width: 300px;
    font-size: 0.8rem;
    line-height: 1.25;
  }

  body:not(:has(#dashboard:not([hidden]))) .format-copy {
    gap: 4px;
    margin-top: 8px;
  }

  body:not(:has(#dashboard:not([hidden]))) .format-line,
  body:not(:has(#dashboard:not([hidden]))) .multi-file-note {
    font-size: 0.74rem;
    line-height: 1.22;
  }

  body:not(:has(#dashboard:not([hidden]))) .results-area {
    padding: 8px 12px 12px;
    overflow: hidden;
  }

  body:not(:has(#dashboard:not([hidden]))) .empty-state {
    min-height: 0;
    border-radius: 16px;
    padding: 16px;
  }

  body:not(:has(#dashboard:not([hidden]))) .home-copy {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  body:not(:has(#dashboard:not([hidden]))) .empty-state h2 {
    overflow: hidden;
    font-size: clamp(0.74rem, 3vw, 0.86rem);
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(:has(#dashboard:not([hidden]))) .home-copy .lede {
    display: none;
  }

  body:not(:has(#dashboard:not([hidden]))) .home-copy-grid {
    display: flex;
    gap: 10px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin: 10px -12px 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 12px 8px;
    scroll-padding-inline: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body:not(:has(#dashboard:not([hidden]))) .home-copy-grid::-webkit-scrollbar {
    display: none;
  }

  body:not(:has(#dashboard:not([hidden]))) .home-copy-grid article,
  body:not(:has(#dashboard:not([hidden]))) .home-copy-grid .export-help-card {
    flex: 0 0 min(82vw, 320px);
    grid-column: auto;
    grid-template-columns: 1fr;
    min-height: 132px;
    border-radius: 12px;
    padding: 12px;
    scroll-snap-align: center;
  }

  body:not(:has(#dashboard:not([hidden]))) .home-copy-grid h3 {
    margin-bottom: 6px;
    font-size: 0.98rem;
  }

  body:not(:has(#dashboard:not([hidden]))) .home-copy-grid p,
  body:not(:has(#dashboard:not([hidden]))) .export-help-card ol {
    font-size: 0.78rem;
    line-height: 1.28;
  }

  body:not(:has(#dashboard:not([hidden]))) .export-help-card ol {
    gap: 4px;
    margin-top: 6px;
  }

  body:not(:has(#dashboard:not([hidden]))) .export-help-disclaimer {
    display: none;
  }

  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card:nth-child(2) span,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card:nth-child(2) strong,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card:nth-child(2) p,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card:nth-child(2) .amount-in,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card:nth-child(2) .amount-out {
    color: #06110d;
  }

  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card:nth-child(3) span,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card:nth-child(3) p {
    color: rgba(255, 255, 255, 0.86);
  }

  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card:nth-child(3) strong,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card:nth-child(3) .amount-in,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card:nth-child(3) .amount-out {
    color: #ffffff;
  }

  body:has(#dashboard:not([hidden])) .line-chart-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
    gap: 6px;
    align-items: stretch;
  }

  body:has(#dashboard:not([hidden])) .chart-control-group {
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
  }

  body:has(#dashboard:not([hidden])) .chart-control-group > span,
  body:has(#dashboard:not([hidden])) .chart-control-group > strong {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .chart-control-group button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 28px;
    padding: 4px 3px;
    overflow: hidden;
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])) .chart-control-group[aria-label="Visible date range"] button {
    padding-inline: 0;
    font-size: 0.54rem;
  }

  body:has(#dashboard:not([hidden])) .line-chart-focus {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.035);
  }

  body:has(#dashboard:not([hidden])) .line-chart-focus > * {
    display: grid;
    align-content: center;
    min-height: 42px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 5px;
    overflow: hidden;
    text-align: center;
  }

  body:has(#dashboard:not([hidden])) .line-chart-focus strong {
    color: var(--ink);
    font-size: 0.76rem;
  }

  body:has(#dashboard:not([hidden])) .line-chart-focus span {
    justify-content: center;
    font-size: 0.62rem;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])) .income-power-grid,
  body:has(#dashboard:not([hidden])) .advanced-spending-plan .advanced-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  body:has(#dashboard:not([hidden])) .income-power-grid .advanced-mini-card,
  body:has(#dashboard:not([hidden])) .advanced-spending-plan .advanced-mini-card {
    display: grid;
    align-content: center;
    min-height: 58px;
    padding: 7px 5px;
    text-align: center;
  }

  body:has(#dashboard:not([hidden])) .income-power-grid .advanced-mini-card span,
  body:has(#dashboard:not([hidden])) .advanced-spending-plan .advanced-mini-card span {
    min-height: 2.15em;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
    line-height: 1.08;
    text-align: center;
  }

  body:has(#dashboard:not([hidden])) .income-power-grid .advanced-mini-card strong,
  body:has(#dashboard:not([hidden])) .advanced-spending-plan .advanced-mini-card strong {
    margin-top: 4px;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
    line-height: 1.05;
  }

  body:has(#dashboard:not([hidden])) .income-power-grid .advanced-mini-card p,
  body:has(#dashboard:not([hidden])) .advanced-spending-plan .advanced-mini-card p,
  body:has(#dashboard:not([hidden])) .income-power-panel .helper-text {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .income-trend-list {
    gap: 8px;
  }

  body:has(#dashboard:not([hidden])) .income-trend-row {
    grid-template-columns: minmax(42px, auto) minmax(0, 1fr) auto;
    gap: 7px;
  }

  body:has(#dashboard:not([hidden])) .income-trend-row > span,
  body:has(#dashboard:not([hidden])) .income-trend-row strong {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])) .income-trend-row strong {
    text-align: right;
  }

  body:has(#dashboard:not([hidden])) .income-trend-track {
    height: 24px;
  }

  body:has(#dashboard:not([hidden])) .income-trend-track .income-salary {
    top: 6px;
    height: 12px;
  }

  body:has(#dashboard:not([hidden])) .income-trend-track .income-bonus {
    top: 9px;
    height: 6px;
  }

  body:has(#dashboard:not([hidden])) .income-trend-key {
    gap: 7px;
    font-size: 0.68rem;
  }

  body:has(#dashboard:not([hidden])) .spend-table-row,
  body:has(#dashboard:not([hidden])) .income-table-row {
    grid-template-columns: minmax(0, 1fr) 36px 58px 72px;
    gap: 6px;
    min-height: 38px;
    padding: 7px 8px;
  }

  body:has(#dashboard:not([hidden])) .spend-table-row > span:first-child {
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 6px;
  }

  body:has(#dashboard:not([hidden])) .spend-table-row i {
    width: 8px;
    height: 28px;
  }

  body:has(#dashboard:not([hidden])) .spend-table-row strong,
  body:has(#dashboard:not([hidden])) .spend-table-row > span:not(:first-child) {
    font-size: 0.72rem;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])) .spend-table-row > span:not(:first-child) {
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])) .spend-table-row em,
  body:has(#dashboard:not([hidden])) .spend-table-row b {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .spend-merchant-list {
    gap: 7px;
  }

  body:has(#dashboard:not([hidden])) .spend-merchant-card,
  body:has(#dashboard:not([hidden])) .income-bonus-card {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 42px;
    border-radius: 10px;
    padding: 7px;
  }

  body:has(#dashboard:not([hidden])) .spend-merchant-card span {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  body:has(#dashboard:not([hidden])) .spend-merchant-card strong,
  body:has(#dashboard:not([hidden])) .spend-merchant-card b {
    font-size: 0.78rem;
    line-height: 1.05;
  }

  body:has(#dashboard:not([hidden])) .spend-merchant-card em {
    grid-column: 2;
    font-size: 0.68rem;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])) .spend-merchant-card b {
    grid-column: 3;
    grid-row: 1 / span 2;
    text-align: right;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .recurring-trend-panel {
    gap: 8px;
    padding: 8px;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .recurring-trend-copy h3 {
    font-size: 0.98rem;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .recurring-trend-copy > p:not(.eyebrow):not(.bill-hero-insight):last-child,
  body:has(#dashboard:not([hidden])) .mobile-bill-detail .bill-hero-insight {
    font-size: 0.76rem;
    line-height: 1.22;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .recurring-trend-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 7px 0;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .recurring-trend-stats span:nth-child(6) {
    grid-column: auto;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .recurring-trend-stats span {
    min-height: 48px;
    padding: 5px;
    font-size: 0.54rem;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .recurring-trend-stats strong {
    font-size: 0.7rem;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .recurring-trend-stats strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .bill-inflation-strip {
    gap: 4px;
    padding: 7px;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .bill-inflation-strip span,
  body:has(#dashboard:not([hidden])) .mobile-bill-detail .bill-inflation-strip em {
    font-size: 0.66rem;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .bill-inflation-strip strong {
    font-size: 0.82rem;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="explorer"] .table-wrap {
    overflow-x: hidden;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="explorer"] table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  body:has(#dashboard:not([hidden])) #spendingExplorerTable th[data-column="type"],
  body:has(#dashboard:not([hidden])) #spendingExplorerTable td[data-column="type"],
  body:has(#dashboard:not([hidden])) #spendingExplorerTable th[data-column="balance"],
  body:has(#dashboard:not([hidden])) #spendingExplorerTable td[data-column="balance"],
  body:has(#dashboard:not([hidden])) #spendingExplorerTable th[data-column="category"],
  body:has(#dashboard:not([hidden])) #spendingExplorerTable td[data-column="category"] {
    display: none;
  }

  body:has(#dashboard:not([hidden])) #spendingExplorerTable th[data-column="date"],
  body:has(#dashboard:not([hidden])) #spendingExplorerTable td[data-column="date"] {
    width: 62px;
  }

  body:has(#dashboard:not([hidden])) #spendingExplorerTable th[data-column="amount"],
  body:has(#dashboard:not([hidden])) #spendingExplorerTable td[data-column="amount"] {
    width: 78px;
  }

  body:has(#dashboard:not([hidden])) #spendingExplorerTable th[data-column="description"],
  body:has(#dashboard:not([hidden])) #spendingExplorerTable td[data-column="description"] {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard > .advanced-grid {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard .data-quality-card-grid {
    gap: 5px;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic {
    min-height: 68px;
    padding: 8px;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic p {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic strong {
    font-size: 1.08rem;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic .quality-light {
    width: 13px;
    height: 13px;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-summary-card,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card {
    min-height: 54px;
    padding: 6px 4px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .secure-export-block {
    padding: 10px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .secure-export-block > .helper-text {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .clean-export-summary {
    gap: 6px;
    margin: 6px 0;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .export-briefing-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    border-radius: 12px;
    padding: 9px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .export-briefing-card h4 {
    font-size: 0.92rem;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .export-briefing-card p {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .export-briefing-action {
    min-width: 74px;
    border-radius: 10px;
    padding: 8px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .export-briefing-action span {
    font-size: 1.05rem;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .advanced-mini-grid {
    gap: 5px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .advanced-mini-card {
    min-height: 52px;
    padding: 6px 4px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .clean-export-notes {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .export-button {
    min-height: 34px;
    margin-top: 4px;
    padding: 8px 14px;
    font-size: 0.84rem;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] #exportStatus {
    margin: 5px 0 0;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  body:has(#dashboard:not([hidden])) .income-source-review .section-heading h3 {
    overflow: visible;
    font-size: clamp(0.72rem, 3vw, 0.88rem);
    line-height: 1;
    text-overflow: clip;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])) .spend-table-row,
  body:has(#dashboard:not([hidden])) .income-table-row {
    grid-template-columns: minmax(0, 1fr) 34px minmax(70px, 0.65fr) minmax(70px, 0.65fr);
    gap: 5px;
  }

  body:has(#dashboard:not([hidden])) .spend-table-row strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  body:has(#dashboard:not([hidden])) .spend-table-row > span:not(:first-child) {
    overflow: visible;
    text-align: right;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .bill-trend-context-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .bill-change-strip,
  body:has(#dashboard:not([hidden])) .mobile-bill-detail .bill-inflation-strip {
    align-content: start;
    min-height: 78px;
    margin-bottom: 0;
    padding: 7px;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .bill-change-strip > span {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  body:has(#dashboard:not([hidden])) .mobile-bill-detail .bill-change-strip strong {
    font-size: 0.76rem;
    line-height: 1.12;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .watchlist-detail {
    gap: 6px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .compact-heading {
    margin-bottom: 4px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .watchlist-list {
    gap: 6px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .watchlist-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
    min-height: 42px;
    padding: 7px 8px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .watchlist-item span {
    margin-bottom: 2px;
    font-size: 0.56rem;
    line-height: 1;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .watchlist-item strong {
    font-size: 0.76rem;
    line-height: 1.05;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .watchlist-item p {
    margin-top: 2px;
    font-size: 0.64rem;
    line-height: 1.12;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="irregular"] .advanced-footnote {
    margin-top: 4px;
    font-size: 0.62rem;
    line-height: 1.16;
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    gap: 9px;
    min-height: calc(100svh - 84px);
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard > .advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    min-height: 0;
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard > .advanced-grid .analysis-block {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 10px;
    padding: 10px;
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard > .advanced-grid .section-heading {
    margin-bottom: 7px;
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard > .advanced-grid .section-heading .eyebrow {
    display: none;
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard > .advanced-grid .section-heading h3 {
    font-size: 0.8rem;
    line-height: 1.08;
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard .data-quality-card-grid {
    gap: 7px;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic {
    min-height: 86px;
    padding: 10px;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic p,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .score-tile p,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card p {
    display: block;
    margin-top: 4px;
    font-size: 0.56rem;
    line-height: 1.18;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic strong {
    font-size: 1.12rem;
    line-height: 1.08;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic span:not(.quality-light) {
    font-size: 0.62rem;
    line-height: 1.05;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic .quality-light {
    width: 15px;
    height: 15px;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-summary-card,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card {
    min-height: 80px;
    padding: 8px 6px;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-summary-card span,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card span {
    min-height: 0;
    font-size: 0.5rem;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-summary-card strong,
  body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card strong {
    margin-top: 4px;
    font-size: 0.76rem;
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard .event-list {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard .event-item {
    gap: 6px;
    min-height: 52px;
    border-radius: 8px;
    padding: 7px;
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard .event-item strong {
    font-size: 0.72rem;
    line-height: 1.08;
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard .event-item span {
    font-size: 0.6rem;
    line-height: 1.16;
  }

  body:has(#dashboard:not([hidden])) .data-quality-dashboard .event-item .status-pill {
    min-height: 26px;
    padding: 4px 7px;
    font-size: 0.6rem;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .secure-export-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100svh - 84px);
    padding: 12px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .secure-export-block .section-heading {
    margin-bottom: 7px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .secure-export-block .section-heading h3 {
    font-size: 1.04rem;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .secure-export-block > .helper-text {
    display: block;
    margin: 5px 0;
    font-size: 0.7rem;
    line-height: 1.22;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .clean-export-summary {
    gap: 8px;
    margin: 8px 0;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .export-briefing-card {
    gap: 8px;
    border-radius: 10px;
    padding: 10px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .export-briefing-card h4 {
    font-size: 0.94rem;
    line-height: 1.08;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .export-briefing-card p {
    display: block;
    margin-top: 4px;
    font-size: 0.64rem;
    line-height: 1.18;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .export-briefing-card .eyebrow {
    margin-bottom: 3px;
    font-size: 0.56rem;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .export-briefing-action {
    min-width: 72px;
    padding: 8px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .export-briefing-action span {
    font-size: 1.05rem;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .advanced-mini-card {
    min-height: 94px;
    padding: 8px 6px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .advanced-mini-card span {
    min-height: 0;
    font-size: 0.5rem;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .advanced-mini-card strong {
    margin-top: 4px;
    font-size: 0.78rem;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .advanced-mini-card p {
    display: block;
    margin-top: 4px;
    font-size: 0.54rem;
    line-height: 1.16;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .clean-export-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .clean-export-notes article {
    min-height: 112px;
    padding: 8px;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .clean-export-notes strong {
    display: block;
    font-size: 0.62rem;
    line-height: 1.12;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .clean-export-notes p {
    display: block;
    margin-top: 5px;
    font-size: 0.54rem;
    line-height: 1.15;
  }

  body:has(#dashboard:not([hidden])) .advanced-panel[data-panel="export"] .export-button {
    min-height: 40px;
    margin-top: 6px;
    padding: 9px 14px;
    font-size: 0.88rem;
  }

  @media (max-width: 374px) {
    body:has(#dashboard:not([hidden])) .data-quality-dashboard {
      gap: 6px;
    }

    body:has(#dashboard:not([hidden])) .data-quality-dashboard > .advanced-grid {
      gap: 6px;
    }

    body:has(#dashboard:not([hidden])) .data-quality-dashboard > .advanced-grid .analysis-block {
      padding: 7px;
    }

    body:has(#dashboard:not([hidden])) .data-quality-dashboard .data-quality-card-grid {
      gap: 5px;
    }

    body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic {
      min-height: 72px;
      padding: 8px;
    }

    body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-traffic p,
    body:has(#dashboard:not([hidden])) .data-quality-card-grid .score-tile p,
    body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card p {
      margin-top: 2px;
      font-size: 0.5rem;
      line-height: 1.1;
    }

    body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-summary-card,
    body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card {
      min-height: 68px;
      padding: 5px 4px;
    }

    body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-summary-card span,
    body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card span {
      font-size: 0.46rem;
      line-height: 1.05;
    }

    body:has(#dashboard:not([hidden])) .data-quality-card-grid .quality-summary-card strong,
    body:has(#dashboard:not([hidden])) .data-quality-card-grid .insight-card strong {
      margin-top: 2px;
      font-size: 0.68rem;
    }

    body:has(#dashboard:not([hidden])) .data-quality-dashboard .event-list {
      gap: 5px;
    }

    body:has(#dashboard:not([hidden])) .data-quality-dashboard .event-item {
      gap: 4px;
      min-height: 44px;
      padding: 5px;
    }

    body:has(#dashboard:not([hidden])) .data-quality-dashboard .event-item strong {
      font-size: 0.64rem;
      line-height: 1.06;
    }

    body:has(#dashboard:not([hidden])) .data-quality-dashboard .event-item span {
      font-size: 0.54rem;
      line-height: 1.1;
    }

    body:has(#dashboard:not([hidden])) .data-quality-dashboard .event-item .status-pill {
      min-height: 23px;
      padding: 3px 6px;
      font-size: 0.55rem;
    }
  }
}

@media (max-width: 760px) {
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card strong.amount-in,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(2) strong.amount-in {
    color: var(--overview-mint-dark);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card strong.amount-out,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(3) strong.amount-out,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(4) strong.amount-out {
    color: var(--overview-red);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row {
    align-items: start;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row strong,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row p {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row b {
    align-self: center;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring {
    align-self: center;
    justify-self: center;
    width: min(126px, 100%);
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    border: 0;
    border-radius: 999px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring::before {
    inset: 14px;
  }
}

@media (min-width: 761px) {
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) {
    color-scheme: light;
    --overview-page: #f4f5f5;
    --overview-ink: #111514;
    --overview-muted: #616a69;
    --overview-line: #e0e4e3;
    --overview-soft-line: #ecefed;
    --overview-card: #ffffff;
    --overview-mint: #19b77c;
    --overview-mint-dark: #079b66;
    --overview-mint-soft: #bdf4dc;
    --overview-red: #ff573f;
    --overview-orange: #f27708;
    background: var(--overview-page);
    color: var(--overview-ink);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .app-shell,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .workspace,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .results-area {
    background: var(--overview-page);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .app-shell {
    padding: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .workspace {
    display: block;
    min-height: 100vh;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .control-rail {
    display: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .results-area {
    width: 100%;
    max-width: none;
    padding: 0 0 22px;
    overflow-x: hidden;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-dashboard,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-panels {
    width: 100%;
    max-width: none;
    gap: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: clamp(16px, 2vw, 34px);
    min-height: 132px;
    border: 0;
    border-radius: 0;
    padding: 22px clamp(22px, 2.1vw, 32px) 57px;
    overflow: hidden;
    background: #030404;
    box-shadow: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-brand-mark {
    display: flex;
    flex: 0 0 clamp(230px, 17vw, 280px);
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #ffffff;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-brand-mark svg {
    flex: 0 0 45px;
    width: 45px;
    height: 54px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-brand-mark path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.35;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-brand-mark span {
    color: #ffffff;
    font-size: clamp(1.05rem, 1.25vw, 1.34rem);
    font-weight: 820;
    letter-spacing: 0;
    line-height: 1.02;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-tab {
    order: 10;
    flex: 0 0 auto;
    min-height: 52px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 13px 2px 15px;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.82rem, 0.86vw, 0.98rem);
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-tab.is-active {
    border-color: #78e9bd;
    color: #78e9bd;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-tab .nav-long {
    display: inline;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-tab .nav-short,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .view-status-tag,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-menu-action[data-mobile-action="clear"] {
    display: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-menu-action[data-mobile-action="files"] {
    order: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 182px;
    min-height: 56px;
    margin-left: auto;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    background: linear-gradient(180deg, #c8f8e6, #aef0d3);
    color: #04130f;
    font-size: 0.94rem;
    font-weight: 780;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-files-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 23px;
    border: 2px solid currentColor;
    border-radius: 2px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-files-icon::before,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-files-icon::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-files-icon::before {
    top: 7px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-files-icon::after {
    top: 14px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-panel[data-panel="overview"] {
    display: grid;
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr) minmax(320px, 370px);
    gap: 16px;
    width: 100%;
    max-width: none;
    padding: 0 22px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    height: 108px;
    min-height: 0;
    margin-top: -34px;
    overflow: hidden;
    border: 1px solid var(--overview-line);
    border-radius: 12px;
    background: var(--overview-card);
    box-shadow: 0 10px 24px rgba(22, 32, 31, 0.1);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(2),
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(3),
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(4) {
    display: grid;
    align-content: center;
    height: 108px;
    min-height: 0;
    border: 0;
    border-right: 1px solid var(--overview-soft-line);
    border-radius: 0;
    padding: 16px 30px;
    background: #ffffff;
    box-shadow: none;
    color: var(--overview-ink);
    text-align: left;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:last-child {
    border-right: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .mobile-only-summary {
    display: grid;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card span {
    color: #4f5857;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card strong,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(2) strong,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(3) strong,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(4) strong {
    display: block;
    margin-top: 9px;
    color: var(--overview-ink);
    font-size: clamp(1.12rem, 1.35vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.05;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card p {
    display: block;
    margin: 7px 0 0;
    color: var(--overview-muted);
    font-size: 0.82rem;
    line-height: 1.2;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .card-value-full {
    display: inline;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .card-value-mobile {
    display: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card strong.amount-in,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(2) strong.amount-in {
    color: var(--overview-mint-dark);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card strong.amount-out,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(3) strong.amount-out,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid .insight-card:nth-child(4) strong.amount-out {
    color: var(--overview-red);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) #advancedInsightGrid strong.watchlist-count {
    color: var(--overview-orange);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .desktop-overview-highlights {
    display: grid;
    grid-column: 1;
    grid-row: 2;
    gap: 16px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .desktop-overview-highlight-card {
    display: grid;
    align-content: space-between;
    height: 247px;
    min-height: 0;
    border: 1px solid var(--overview-line);
    border-radius: 12px;
    padding: 24px 28px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(22, 32, 31, 0.08);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .desktop-overview-highlight-card h3 {
    margin: 0;
    color: var(--overview-ink);
    font-size: 1.14rem;
    font-weight: 680;
    letter-spacing: 0;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .desktop-overview-highlight-card strong {
    display: block;
    margin-top: 32px;
    font-size: clamp(1.8rem, 2.15vw, 2.12rem);
    font-weight: 560;
    letter-spacing: 0;
    line-height: 1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .desktop-overview-highlight-card p {
    max-width: 18ch;
    margin: 16px 0 0;
    color: var(--overview-muted);
    font-size: 0.98rem;
    line-height: 1.5;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .desktop-overview-highlight-icon {
    justify-self: end;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    font-size: 2rem;
    font-weight: 550;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .desktop-overview-highlight-card.income .desktop-overview-highlight-icon {
    background: rgba(26, 183, 125, 0.14);
    color: var(--overview-mint-dark);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .desktop-overview-highlight-card.spend .desktop-overview-highlight-icon {
    background: rgba(255, 87, 63, 0.12);
    color: var(--overview-red);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-chart {
    grid-column: 2 / 4;
    grid-row: 2;
    height: 510px;
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
    gap: 16px;
    height: 100%;
    min-height: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-main,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-spend-visuals {
    min-width: 0;
    height: 100%;
    min-height: 0;
    border: 1px solid var(--overview-line);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(22, 32, 31, 0.08);
    color: var(--overview-ink);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-right: 1px solid var(--overview-line);
    padding: 24px 26px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-spend-visuals {
    padding: 22px 20px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-main .section-heading,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-spend-visuals .section-heading {
    margin-bottom: 14px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-main .section-heading .eyebrow,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-spend-visuals .section-heading .eyebrow {
    display: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-overview-main .section-heading h3,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-spend-visuals .section-heading h3 {
    color: var(--overview-ink);
    font-size: 1.28rem;
    font-weight: 680;
    letter-spacing: 0;
    line-height: 1.15;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-panel {
    grid-template-rows: auto auto 1fr;
    gap: 12px;
    min-height: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--overview-line);
    border-radius: 9px;
    padding: 4px;
    background: #ffffff;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group:first-child {
    margin-right: auto;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group span,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group strong {
    color: #5a6462;
    font-size: 0.72rem;
    font-weight: 560;
    letter-spacing: 0;
    padding: 0 8px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group button {
    min-height: 34px;
    border: 0;
    border-radius: 7px;
    padding: 7px 14px;
    background: transparent;
    color: #101514;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group button[data-active],
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group button:hover,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .chart-control-group button:focus-visible {
    background: var(--overview-mint-soft);
    color: #062018;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend span {
    color: #5f6867;
    font-size: 0.76rem;
    font-weight: 560;
    letter-spacing: 0;
    line-height: 1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend i {
    width: 8px;
    height: 8px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend .income,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend .net-positive {
    background: var(--overview-mint);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend .spending,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-legend .net-negative {
    background: var(--overview-red);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-line-chart {
    height: 100%;
    min-height: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-grid {
    stroke: #e2e7e5;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-zero {
    stroke: #d5dcda;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-axis {
    fill: #4f5958;
    font-size: 13px;
    font-weight: 560;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-line-path {
    stroke-width: 3.3;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-line-path.income,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-line-path.net-positive {
    stroke: var(--overview-mint);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-line-path.spending,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .advanced-line-path.net-negative {
    stroke: var(--overview-red);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .line-chart-focus {
    display: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-side-card {
    gap: 12px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-donut-stage {
    min-height: 208px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-donut-stage .spend-donut {
    width: min(78%, 212px);
    filter: none;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-donut-total {
    width: 118px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-donut-total span,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-donut-total em {
    color: #56605f;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-donut-total strong {
    color: var(--overview-ink);
    font-size: 1.3rem;
    font-weight: 760;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-category-key {
    gap: 5px;
    max-height: 112px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-category-key button {
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 8px;
    border: 0;
    border-radius: 7px;
    padding: 3px 4px;
    background: transparent;
    color: var(--overview-ink);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-category-key span,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-category-key strong {
    font-size: 0.73rem;
    font-weight: 650;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-category-key span {
    color: #4f5958;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-side-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-side-stats article {
    min-height: 74px;
    border: 1px solid var(--overview-line);
    border-radius: 8px;
    padding: 10px;
    background: #ffffff;
    text-align: left;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-side-stats span {
    color: #5c6664;
    font-size: 0.57rem;
    font-weight: 650;
    letter-spacing: 0.02em;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-side-stats strong {
    margin-top: 6px;
    color: var(--overview-ink);
    font-size: 0.92rem;
    font-weight: 720;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .overview-side-stats p {
    display: block;
    margin-top: 4px;
    color: var(--overview-muted);
    font-size: 0.6rem;
    line-height: 1.18;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-preview {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    min-height: 314px;
    border: 1px solid var(--overview-line);
    border-radius: 12px;
    padding: 20px 26px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(22, 32, 31, 0.08);
    color: var(--overview-ink);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-card h3 {
    margin: 0;
    color: var(--overview-ink);
    font-size: 1.1rem;
    font-weight: 680;
    letter-spacing: 0;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-card-head button,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-card-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--overview-mint-dark);
    font-size: 0.82rem;
    font-weight: 760;
    letter-spacing: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-card-head span {
    border-radius: 999px;
    padding: 7px 12px;
    background: var(--overview-mint-soft);
    color: #063f2a;
    font-size: 0.72rem;
    font-weight: 760;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-list,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-checks {
    display: grid;
    gap: 6px;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    min-height: 42px;
    border: 1px solid var(--overview-soft-line);
    border-radius: 8px;
    padding: 6px 8px;
    background: #ffffff;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #050505;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 820;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row div {
    min-width: 0;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row strong,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row strong {
    display: block;
    color: var(--overview-ink);
    font-size: 0.72rem;
    font-weight: 760;
    line-height: 1.12;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row p {
    margin: 4px 0 0;
    color: var(--overview-muted);
    font-size: 0.62rem;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-preview-row b {
    color: var(--overview-ink);
    font-size: 0.7rem;
    font-weight: 760;
    white-space: nowrap;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-layout {
    display: grid;
    grid-template-columns: minmax(136px, 0.52fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    justify-self: center;
    width: 136px;
    height: 136px;
    min-height: 0;
    border: 0;
    border-radius: 999px;
    background: conic-gradient(var(--overview-mint) calc(var(--quality-score) * 1%), #e8eeec 0);
    text-align: center;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring::before {
    content: "";
    position: absolute;
    inset: 17px;
    border-radius: 999px;
    background: #ffffff;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring strong,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring span,
  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring em {
    position: relative;
    z-index: 1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring strong {
    color: var(--overview-mint-dark);
    font-size: 1.35rem;
    font-weight: 720;
    line-height: 1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring span {
    margin-top: 6px;
    color: var(--overview-muted);
    font-size: 0.56rem;
    font-weight: 650;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-ring em {
    margin-top: 4px;
    color: var(--overview-mint-dark);
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 760;
    line-height: 1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-checks article {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--overview-soft-line);
    border-radius: 8px;
    padding: 7px 8px;
    background: #ffffff;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-checks i {
    position: relative;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #d8f8ea;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-checks i::before {
    content: "";
    width: 9px;
    height: 5px;
    border-bottom: 2px solid var(--overview-mint-dark);
    border-left: 2px solid var(--overview-mint-dark);
    transform: rotate(-45deg);
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-checks strong {
    display: block;
    color: var(--overview-ink);
    font-size: 0.68rem;
    font-weight: 760;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-quality-checks p {
    margin: 3px 0 0;
    color: var(--overview-muted);
    font-size: 0.58rem;
    line-height: 1.1;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-watchlist .mobile-preview-icon {
    border-radius: 999px;
    background: #ffead2;
  }

  body:has(#dashboard:not([hidden])):has(.advanced-panel[data-panel="overview"]:not([hidden])) .mobile-overview-watchlist .mobile-preview-icon::before {
    content: "";
    width: 11px;
    height: 12px;
    border: 2px solid #f37d11;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 0;
  }
}

/* Final desktop precedence layer: keep the new brand system ahead of legacy rules. */
@media (min-width: 761px) {
  body {
    color-scheme: light;
    background: var(--bs-page);
    color: var(--bs-text);
  }

  body:not(:has(#mappingPanel:not([hidden]))) .control-rail {
    display: none !important;
  }

  .app-shell,
  .workspace,
  .results-area,
  #dashboard,
  .dashboard,
  .advanced-dashboard,
  .advanced-panels,
  .advanced-panel,
  .empty-state {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: var(--bs-page);
    color: var(--bs-text);
    box-shadow: none;
  }

  .advanced-panel[hidden],
  .dashboard-view[hidden],
  #dashboard[hidden],
  #emptyState[hidden] {
    display: none !important;
  }

  .advanced-tabs,
  .home-brand-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    min-height: 96px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    background: #030303;
    box-shadow: none;
    overflow: visible;
  }

  .home-brand-nav {
    position: relative;
  }

  .mobile-brand-mark,
  body:has(#dashboard:not([hidden])) .mobile-brand-mark,
  body:has(.home-brand-nav) .mobile-brand-mark {
    display: grid !important;
    grid-template-columns: 40px max-content;
    align-items: center;
    gap: 12px;
    min-width: 212px;
    margin: 0 22px 0 0;
    color: #ffffff;
  }

  .mobile-brand-mark svg {
    width: 42px;
    height: 50px;
  }

  .mobile-brand-mark span {
    color: #ffffff;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 0.96;
  }

  .advanced-tab,
  .home-nav-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    height: 96px;
    margin: 0;
    padding: 0 0 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f2f5f4;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
  }

  .advanced-tab::after,
  .home-nav-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: transparent;
  }

  .advanced-tab.is-active,
  .home-nav-tab.is-active {
    color: #5cf2bd;
    background: transparent;
    box-shadow: none;
  }

  .advanced-tab.is-active::after,
  .home-nav-tab.is-active::after {
    background: #7df4c5;
  }

  .advanced-tab .nav-long {
    display: inline;
  }

  .advanced-tab .nav-short,
  .view-status-tag,
  .mobile-menu-action[data-mobile-action="clear"] {
    display: none !important;
  }

  .mobile-menu-action[data-mobile-action="files"],
  .home-add-files {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 164px;
    height: 56px;
    margin-left: auto;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(180deg, #caffeb 0%, #a7efd5 100%);
    color: #07110d;
    font-size: 0.96rem;
    font-weight: 800;
  }

  .advanced-panels,
  .home-copy {
    padding: 18px 20px 24px;
    background: var(--bs-page);
  }

  .analysis-block,
  .home-hero-card,
  .home-copy-grid article,
  .export-help-card,
  .home-feature-strip,
  .home-disclaimer-strip,
  .insight-grid,
  .dashboard-summary-strip,
  .data-quality-card-grid > *,
  .data-quality-inline-grid > *,
  .quality-summary-card,
  .advanced-mini-card,
  .watchlist-list-panel,
  .watchlist-selected-panel,
  .bills-detail-stage,
  .bills-review-list {
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--bs-text);
    box-shadow: var(--bs-card-shadow);
  }

  .eyebrow,
  .section-heading .eyebrow {
    color: var(--bs-mint-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .insight-grid,
  .dashboard-summary-strip,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: #ffffff;
  }

  .insight-card,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card {
    min-height: 108px;
    padding: 21px 30px;
    border: 0;
    border-right: 1px solid var(--bs-line);
    border-radius: 0;
    background: #ffffff;
    color: var(--bs-text);
    text-align: left;
    box-shadow: none;
  }

  .insight-card:last-child,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card:last-child {
    border-right: 0;
  }

  .insight-card span,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card span {
    color: #596272;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .insight-card strong,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card strong {
    color: var(--bs-ink);
    font-size: 1.26rem;
    font-weight: 700;
  }

  .insight-card p,
  body:has(#dashboard:not([hidden])) #advancedInsightGrid .insight-card p {
    color: var(--bs-muted);
    font-size: 0.83rem;
  }

  .amount-in,
  body:has(#dashboard:not([hidden])) .amount-in {
    color: var(--bs-mint-dark) !important;
  }

  .amount-out,
  body:has(#dashboard:not([hidden])) .amount-out {
    color: var(--bs-red) !important;
  }

  .bonus-amount {
    color: var(--bs-purple) !important;
  }

  .watchlist-count {
    color: var(--bs-amber) !important;
  }

  .statement-tab-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 12px 14px;
  }

  .statement-tab-heading h2 {
    margin: 4px 0 0;
    color: var(--bs-ink);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.05;
  }

  .income-controls,
  .spend-controls {
    display: flex;
    align-items: center;
    gap: 34px;
  }

  .spend-hero,
  .income-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(330px, 0.95fr);
    gap: 16px;
    margin-bottom: 12px;
  }

  .income-hero {
    grid-template-columns: minmax(0, 1.65fr) minmax(380px, 1fr);
  }

  .spend-ring-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    gap: 34px;
    min-height: 230px;
  }

  .spend-hero-head {
    display: none;
  }

  .spend-donut {
    width: 240px;
    height: 240px;
  }

  .spend-main-number strong {
    color: #000000;
    font-size: 3.05rem;
    font-weight: 850;
    line-height: 0.98;
  }

  .spend-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(420px, 0.95fr);
    gap: 16px;
    margin-top: 12px;
  }

  .income-detail-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(540px, 0.95fr);
  }

  .bills-rise-summary,
  .watchlist-summary-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 0 18px;
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--bs-card-shadow);
    overflow: hidden;
  }

  .bills-rise-summary article,
  .watchlist-summary-strip article {
    min-height: 120px;
    padding: 24px 34px;
    border-right: 1px solid var(--bs-line);
  }

  .bills-review-layout,
  .watchlist-detail {
    display: grid;
    grid-template-columns: minmax(420px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
    padding: 0 18px;
  }

  .watchlist-detail {
    grid-template-columns: minmax(0, 1.35fr) minmax(410px, 0.75fr);
    padding: 0;
  }

  .advanced-recurring-row,
  .watchlist-item {
    border: 1px solid var(--bs-soft-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--bs-text);
    box-shadow: none;
  }

  .advanced-panel[data-panel="explorer"] > .analysis-block {
    padding: 22px 18px 18px;
  }

  .explorer-filter-panel summary {
    display: none;
  }

  .explorer-controls {
    display: grid;
    grid-template-columns: 170px 170px 176px 176px 176px minmax(220px, 1fr) 88px;
    gap: 24px;
    align-items: end;
    padding: 18px;
  }

  .table-wrap {
    overflow: hidden;
    border: 1px solid var(--bs-line);
    border-radius: 10px;
    background: #ffffff;
  }

  .table-wrap th,
  .table-wrap td {
    height: 39px;
    padding: 0 14px;
    border-bottom: 1px solid var(--bs-soft-line);
    color: var(--bs-text);
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .home-copy {
    display: grid;
    gap: 16px;
  }

  .home-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(520px, 0.95fr);
    align-items: center;
    min-height: 346px;
    padding: 28px 44px;
  }

  .home-copy-grid,
  .home-feature-strip,
  .home-disclaimer-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .export-help-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 270px;
    gap: 24px;
    align-items: center;
  }
}
