body.beta-preview{
  --theme-royal-blue:#1f66f2;
  --theme-royal-blue-deep:#173b8f;
  --theme-royal-blue-dark:#102f75;
  --theme-royal-blue-soft:#eef4ff;
  --theme-royal-blue-border:rgba(255,255,255,.18);
  background:
    radial-gradient(circle at top left, rgba(31, 102, 242, .14), transparent 22%),
    linear-gradient(180deg, #f7f6fb 0%, #f1f2f7 100%);
}

body.beta-preview .page-shell{
  max-width:none;
  padding:0 16px 32px 0;
}

body.beta-preview .app-shell{
  height:100vh;
  overflow:hidden;
}

body.beta-preview .main-grid{
  height:100%;
}

body.beta-preview .panel{
  padding:15px 17px;
  border-radius:22px;
  border:1px solid rgba(203, 210, 224, .7);
  box-shadow:0 16px 34px rgba(24, 31, 53, .08);
}

body.beta-preview .auth-screen{
  padding:0;
}

body.beta-preview .auth-shell{
  width:100%;
  gap:0;
}

body.beta-preview .auth-hero-copy h1{
  font-size:clamp(2.1rem, 4vw, 3.2rem);
}

body.beta-preview .auth-panel,
body.beta-preview .household-panel,
body.beta-preview .notice-panel{
  max-width:980px;
}

body.beta-preview .app-area{
  display:grid;
  grid-template-columns:292px minmax(0,1fr);
  gap:14px;
  align-items:start;
  padding-top:74px;
  height:100%;
  min-height:0;
  position:relative;
  transition:grid-template-columns .28s cubic-bezier(.16,1,.3,1);
}

body.beta-preview .tabbar-shell{
  grid-column:1 / -1;
  position:fixed;
  top:0;
  left:0;
  transform:none;
  width:100vw;
  z-index:160;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:0 0 22px 0;
  background:linear-gradient(180deg, var(--theme-royal-blue-deep) 0%, var(--theme-royal-blue-dark) 100%);
  border:1px solid var(--theme-royal-blue-border);
  box-shadow:none;
  backdrop-filter:blur(14px);
}

body.beta-preview .sidebar-toggle-btn{
  flex:0 0 auto;
  width:38px;
  height:38px;
  padding:0;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.16);
  color:#eef3ff;
  border:1px solid rgba(255,255,255,.24);
}

body.beta-preview .mobile-shell-toggle,
body.beta-preview .mobile-shell-backdrop{
  display:none;
}

body.beta-preview .sheet-loading-indicator{
  position:fixed;
  top:84px;
  right:26px;
  z-index:165;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(31, 34, 75, .92);
  border:1px solid rgba(255,255,255,.12);
  color:#eef3ff;
  box-shadow:0 14px 28px rgba(18, 22, 47, .18);
  opacity:0;
  pointer-events:none;
  transform:translateY(-8px);
  transition:opacity .2s ease, transform .2s ease;
}

body.beta-preview.beta-tab-loading .sheet-loading-indicator{
  opacity:1;
  transform:translateY(0);
}

body.beta-preview .sheet-loading-spinner{
  width:15px;
  height:15px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.24);
  border-top-color:#8aa6ff;
  animation:betaSpin .8s linear infinite;
}

body.beta-preview .tabbar{
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
  width:100%;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

body.beta-preview .tabbar::-webkit-scrollbar{
  display:none;
}

body.beta-preview .tab-btn{
  flex:0 0 auto;
  padding:8px 12px;
  border-radius:13px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.24);
  color:#f5f8ff;
  font-size:.88rem;
  line-height:1.15;
  transition:background .18s ease, color .18s ease, transform .16s ease, box-shadow .18s ease, border-color .18s ease;
}

body.beta-preview .tab-btn.active{
  background:#ffffff;
  color:var(--theme-royal-blue);
  border-color:rgba(255,255,255,.72);
  box-shadow:0 10px 18px rgba(13, 54, 150, .24);
}

body.beta-preview .tab-btn:hover{
  transform:translateY(-1px);
}

body.beta-preview .tab-btn:active{
  transform:translateY(1px) scale(.99);
}

body.beta-preview .sticky-shell{
  grid-column:1;
  position:sticky;
  top:70px;
  width:292px;
  display:block;
  padding:0;
  margin-top:-4px;
  border-radius:0 0 28px 0;
  background:linear-gradient(180deg, var(--theme-royal-blue-deep) 0%, var(--theme-royal-blue-dark) 100%);
  border:1px solid var(--theme-royal-blue-border);
  border-top:none;
  border-left:none;
  box-shadow:0 14px 24px rgba(13, 54, 150, .18);
  max-height:calc(100vh - 84px);
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-gutter:stable;
  will-change:opacity;
  transition:opacity .38s ease;
}

body.beta-preview .sticky-shell-inner{
  display:grid;
  gap:10px;
  width:292px;
  min-width:292px;
  padding:12px 10px 12px 0;
  box-sizing:border-box;
}

body.beta-preview .sheet{
  grid-column:2;
  min-height:0;
}

body.beta-preview .sheet.active{
  display:grid;
  gap:18px;
  max-height:calc(100vh - 88px);
  overflow:auto;
  padding:0 6px 24px 0;
  scrollbar-gutter:stable;
  animation:betaSheetFade .18s ease;
}

body.beta-preview .compact-topbar,
body.beta-preview .compact-workspace-banner,
body.beta-preview .filter-panel{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:none;
}

body.beta-preview .compact-topbar{
  display:grid;
  gap:12px;
  padding:16px 16px 14px;
  margin-left:10px;
}

body.beta-preview .compact-topbar h1{
  font-size:1.9rem;
  line-height:1.02;
  color:#fff;
}

body.beta-preview .compact-topbar .eyebrow{
  margin-bottom:6px;
  color:#dbe7ff;
}

body.beta-preview .compact-topbar .subcopy{
  color:#d5d9f3;
  margin-top:8px;
  font-size:1rem;
}

body.beta-preview .status-stack{
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
}

body.beta-preview .status-pill{
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.25);
  color:#eef3ff;
}

body.beta-preview .status-pill.live{
  background:rgba(110, 226, 175, .14);
  border-color:rgba(110, 226, 175, .22);
  color:#d9ffee;
}

body.beta-preview .compact-topbar .ghost-btn,
body.beta-preview .compact-workspace-banner .ghost-btn{
  background:rgba(255,255,255,.16);
  color:#edf6ff;
  border:1px solid rgba(255,255,255,.24);
}

body.beta-preview .beta-only-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(188, 170, 255, .14);
  border:1px solid rgba(188, 170, 255, .24);
  color:#efe7ff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

body.beta-preview .sidebar-toggle-icon{
  display:grid;
  gap:4px;
  width:16px;
}

body.beta-preview .sidebar-toggle-icon span{
  display:block;
  width:16px;
  height:2px;
  border-radius:999px;
  background:currentColor;
}

body.beta-preview .compact-workspace-banner{
  display:grid;
  gap:12px;
  padding:14px 16px;
  margin-left:10px;
}

body.beta-preview .compact-workspace-banner .section-kicker{
  color:#dbe7ff;
}

body.beta-preview .compact-workspace-banner h2{
  font-size:1.25rem;
  color:#fff;
}

body.beta-preview .compact-workspace-banner .subcopy{
  color:#d7dbf4;
}

body.beta-preview .compact-workspace-meta{
  justify-content:flex-start;
  gap:10px;
}

body.beta-preview .compact-workspace-meta .member-strip{
  margin-top:0;
  justify-content:flex-start;
}

body.beta-preview .member-chip{
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.15);
  border-color:rgba(255,255,255,.24);
  color:#edf1ff;
}

body.beta-preview .filter-panel{
  padding:14px 16px;
  margin-left:10px;
}

body.beta-preview .filter-panel .panel-header{
  margin-bottom:12px;
}

body.beta-preview .filter-panel .section-kicker{
  color:#dbe7ff;
}

body.beta-preview .filter-panel h2{
  font-size:1.05rem;
  color:#fff;
}

body.beta-preview .filter-panel .hint-text{
  display:none;
}

body.beta-preview .toolbar-grid{
  grid-template-columns:1fr;
  gap:10px;
}

body.beta-preview .compact-field span{
  color:#eef2ff;
}

body.beta-preview .filter-panel select,
body.beta-preview .filter-panel input{
  background:rgba(255,255,255,.96);
}

body.beta-preview .stats-grid{
  gap:12px;
  grid-template-columns:repeat(5, minmax(0,1fr));
}

body.beta-preview .stat-card{
  padding:14px 16px 16px;
  border-radius:20px;
  background:linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
  border-color:#e2e5ef;
  box-shadow:0 14px 28px rgba(26, 31, 49, .06);
  position:relative;
  overflow:hidden;
}

body.beta-preview .stat-card::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:3px;
  background:linear-gradient(90deg, rgba(92,134,255,.0), rgba(92,134,255,.45), rgba(92,134,255,0));
}

body.beta-preview .stat-label{
  font-size:10px;
  letter-spacing:.16em;
}

body.beta-preview .stat-value{
  margin-top:8px;
  font-size:1.7rem;
}

body.beta-preview .panel-header{
  margin-bottom:12px;
}

body.beta-preview h2{
  font-size:1.5rem;
}

body.beta-preview .auth-card-head h2{
  color:var(--savy-navy);
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  font-size:clamp(2rem,3vw,2.7rem);
  line-height:1.08;
}

body.beta-preview .auth-screen .section-kicker{
  color:var(--savy-blue);
}

body.beta-preview .section-kicker{
  color:#66738b;
}

body.beta-preview .auth-screen .section-kicker{
  color:var(--savy-blue);
}

body.beta-preview .sheet > .panel{
  background:linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(252,252,255,.99) 100%);
  border-color:#e2e6ef;
  box-shadow:0 18px 34px rgba(22, 27, 45, .07);
}

body.beta-preview .sheet .panel-header{
  align-items:flex-start;
}

body.beta-preview .sheet .panel-header .hint-text{
  color:#69778f;
  max-width:240px;
  text-align:right;
}

body.beta-preview .sheet .panel-header h2{
  letter-spacing:-.02em;
}

body.beta-preview .table-wrap{
  border-radius:18px;
  border:1px solid #e5e8ef;
  background:linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  overflow:auto;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}

body.beta-preview table{
  border-collapse:separate;
  border-spacing:0;
}

body.beta-preview th{
  background:#fafbfe;
  color:#6d788f;
  border-bottom:1px solid #e6e9f2;
  font-size:10px;
  letter-spacing:.16em;
}

body.beta-preview tbody td{
  background:#fff;
  border-bottom:1px solid #edf0f5;
}

body.beta-preview .ledger-table th,
body.beta-preview .ledger-table td{
  padding:3px 8px;
  line-height:1.1;
  vertical-align:middle;
}

body.beta-preview .ledger-table th{
  font-size:10px;
  letter-spacing:.16em;
}

body.beta-preview .ledger-table td{
  font-size:13px;
}

body.beta-preview .ledger-table thead tr.table-filter-row th{
  top:18px;
  padding:3px 8px;
}

body.beta-preview .ledger-table .table-filter-input{
  height:24px;
  padding:4px 8px;
  border-radius:8px;
}

body.beta-preview tbody tr:nth-child(even) td{
  background:#fcfcfe;
}

body.beta-preview tbody tr:hover td{
  background:#f5f7fb;
}

body.beta-preview .table-total-row td,
body.beta-preview .table-top-total-row th{
  background:#f3f5fb;
  color:#24354f;
  border-bottom:1px solid #d8deea;
}

body.beta-preview .table-total-row td{
  font-weight:800;
}

body.beta-preview .transaction-top-grid{
  grid-template-columns:minmax(0, 1fr) minmax(320px, 360px);
  gap:16px;
}

body.beta-preview.beta-tab-loading .sheet.active{
  opacity:.88;
}

body.beta-preview .app-dialog.wide-dialog{
  width:min(1320px, calc(100vw - 26px));
}

body.beta-preview .app-dialog.dashboard-summary-dialog{
  width:min(1120px, calc(100vw - 26px));
  max-height:min(88vh, 860px);
}

body.beta-preview .app-dialog.dashboard-summary-dialog .app-dialog-body{
  max-height:calc(min(88vh, 860px) - 170px);
  overflow:auto;
  padding-right:4px;
}

body.beta-preview .app-dialog.dashboard-summary-dialog .dashboard-detail-drawer{
  margin:0;
  padding:0;
  border:0;
}

body.beta-preview .app-dialog.dashboard-summary-dialog .table-wrap{
  max-height:none;
}

body.beta-preview .app-dialog.loan-editor-dialog{
  width:min(900px, calc(100vw - 28px));
  max-height:min(86vh, 820px);
}

body.beta-preview .app-dialog.loan-editor-dialog .app-dialog-body{
  max-height:calc(min(86vh, 820px) - 170px);
  overflow:auto;
  padding-right:4px;
}

body.beta-preview .app-dialog.schedule-editor-dialog{
  width:min(1120px, calc(100vw - 28px));
  max-height:min(88vh, 860px);
}

body.beta-preview .app-dialog.schedule-editor-dialog .app-dialog-body{
  max-height:calc(min(88vh, 860px) - 172px);
  overflow:auto;
  padding-right:4px;
}

body.beta-preview .app-dialog.transaction-editor-dialog{
  width:min(960px, calc(100vw - 32px));
  max-height:min(90vh, 900px);
  border:1px solid #dce7f5;
  border-radius:16px;
  background:#fff;
  box-shadow:0 28px 70px rgba(8,30,58,.24);
  overflow:hidden;
}

body.beta-preview .app-dialog.transaction-editor-dialog .app-dialog-header{
  display:block;
  padding:20px 28px 0;
  border:0;
  background:#fff;
}

body.beta-preview .app-dialog.transaction-editor-dialog .app-dialog-header::before{
  content:"TRANSACTION DETAILS";
  display:block;
  margin-bottom:4px;
  color:#64748b;
  font-size:10px;
  font-weight:800;
  letter-spacing:.14em;
}

body.beta-preview .app-dialog.transaction-editor-dialog .app-dialog-header h3{
  margin:0;
  color:#102a56;
  font-size:25px;
  line-height:1.15;
  font-weight:750;
}

body.beta-preview .app-dialog.transaction-editor-dialog .app-dialog-message{
  margin:4px 28px 16px;
  color:#526b90;
  font-size:12px;
  line-height:1.4;
}

body.beta-preview .app-dialog.transaction-editor-dialog .app-dialog-body{
  max-height:calc(min(90vh, 900px) - 105px);
  overflow:hidden;
  padding:0 28px;
}

body.beta-preview .transaction-editor-shell{
  display:flex;
  min-height:0;
  flex-direction:column;
}

body.beta-preview .transaction-editor-scroll{
  display:grid;
  gap:15px;
  max-height:calc(min(90vh,900px) - 190px);
  padding-right:4px;
  overflow:auto;
  scrollbar-gutter:stable;
}

body.beta-preview .transaction-editor-source-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  min-height:82px;
  padding:12px 14px;
  border:1px solid #cfe1fa;
  border-radius:13px;
  background:#eef5ff;
}

body.beta-preview .transaction-editor-source-icon{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:11px;
  background:#dbeaff;
  color:#1f66f2;
  font-size:25px;
}

body.beta-preview .transaction-editor-source-copy{display:grid;gap:2px;min-width:0}
body.beta-preview .transaction-editor-source-copy strong{overflow:hidden;color:#102a56;font-size:15px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
body.beta-preview .transaction-editor-source-copy span{color:#526b90;font-size:11px}
body.beta-preview .transaction-editor-source-amount{display:grid;gap:2px;align-content:center;justify-items:end;min-width:152px;padding:8px 12px;border-radius:10px;background:rgba(255,255,255,.68)}
body.beta-preview .transaction-editor-source-amount span{color:#526b90;font-size:10px}
body.beta-preview .transaction-editor-source-amount strong{color:#0e3a82;font-size:19px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}

body.beta-preview .transaction-editor-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:11px 16px;
  align-items:start;
}

body.beta-preview .transaction-editor-field{
  display:grid;
  gap:6px;
  min-width:0;
}

body.beta-preview .transaction-editor-field>span:first-child{
  color:#29456e;
  font-size:11.5px;
  font-weight:700;
  line-height:1.3;
}

body.beta-preview .transaction-editor-field>span:first-child em{color:#64748b;font-size:10px;font-weight:500;font-style:normal}

body.beta-preview .transaction-editor-control{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  min-width:0;
  height:44px;
  border:1px solid #d7e3f2;
  border-radius:9px;
  background:#fff;
  overflow:hidden;
  transition:border-color .14s ease,box-shadow .14s ease;
}

body.beta-preview .transaction-editor-control:focus-within{border-color:#1f66f2;box-shadow:0 0 0 3px rgba(31,102,242,.09)}
body.beta-preview .transaction-editor-control>i{display:grid;place-items:center;width:42px;height:42px;border-right:1px solid #e4ecf7;color:#1f66f2;font-size:18px;font-style:normal}

body.beta-preview .transaction-editor-control input,
body.beta-preview .transaction-editor-control select,
body.beta-preview .transaction-editor-control textarea{
  width:100%;
  min-width:0;
  height:42px;
  padding:0 12px;
  border:0!important;
  border-radius:0!important;
  background:#fff;
  color:#102a56;
  font-size:12px;
  font-weight:500;
  box-shadow:none!important;
  outline:0;
}

body.beta-preview .transaction-editor-control select{padding-right:34px}
body.beta-preview .transaction-editor-control input::placeholder,
body.beta-preview .transaction-editor-control textarea::placeholder{color:#8a99ae;font-weight:400}
body.beta-preview .transaction-editor-textarea-control{height:70px;align-items:start}
body.beta-preview .transaction-editor-textarea-control>i{height:68px}
body.beta-preview .transaction-editor-control textarea{
  min-height:68px;
  padding-top:11px;
  resize:vertical;
}

body.beta-preview .transaction-editor-note-field{
  grid-column:1 / -1;
}

body.beta-preview .transaction-editor-shell .feedback{
  margin:0;
}

body.beta-preview .transaction-deposit-summary-host:empty{display:none}
body.beta-preview .transaction-deposit-summary{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:12px;padding:11px 13px;border:1px solid #cfe1fa;border-radius:11px;background:#f5f9ff}
body.beta-preview .transaction-deposit-summary>span{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#dbeaff;color:#1f66f2;font-size:21px}
body.beta-preview .transaction-deposit-summary>div{display:grid;gap:2px;min-width:0}
body.beta-preview .transaction-deposit-summary>div>span{color:#526b90;font-size:10.5px;font-weight:700}
body.beta-preview .transaction-deposit-summary strong{overflow:hidden;color:#102a56;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
body.beta-preview .transaction-deposit-summary small{color:#64748b;font-size:10px}
body.beta-preview .transaction-deposit-summary.is-ready{border-color:#bfe8d1;background:#f0faf5}
body.beta-preview .transaction-deposit-summary.is-ready>span{background:#dff6e9;color:#079a63}

body.beta-preview .transaction-editor-actions{flex:0 0 auto;min-height:68px;margin:0 -28px;padding:11px 28px 15px;border-top:1px solid #edf2f8;background:#fff}
body.beta-preview .transaction-editor-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:104px;height:44px;padding:0 16px;border-radius:10px;font-size:12px;font-weight:700}
body.beta-preview .transaction-editor-actions .ghost-btn{border-color:#aac8f3;background:#fff;color:#1557c0}
body.beta-preview .transaction-editor-actions .ghost-btn:hover{background:#eef5ff}
body.beta-preview .transaction-editor-actions .transaction-editor-save-btn{min-width:154px;border-color:#1f66f2;background:#1f66f2;color:#fff;box-shadow:0 5px 12px rgba(31,102,242,.16)}
body.beta-preview .transaction-editor-actions .transaction-editor-save-btn:hover{background:#1557d7;border-color:#1557d7}

@media (max-width:760px){
  body.beta-preview .app-dialog.transaction-editor-dialog{width:min(100%,calc(100vw - 24px));max-height:calc(100vh - 24px);border-radius:15px}
  body.beta-preview .app-dialog.transaction-editor-dialog .app-dialog-header{padding:17px 17px 0}
  body.beta-preview .app-dialog.transaction-editor-dialog .app-dialog-message{margin:4px 17px 13px}
  body.beta-preview .app-dialog.transaction-editor-dialog .app-dialog-body{max-height:calc(100vh - 112px);padding:0 17px}
  body.beta-preview .transaction-editor-scroll{max-height:calc(100vh - 205px)}
  body.beta-preview .transaction-editor-grid{grid-template-columns:1fr;gap:10px}
  body.beta-preview .transaction-editor-source-card{grid-template-columns:42px minmax(0,1fr);min-height:0;padding:11px}
  body.beta-preview .transaction-editor-source-icon{width:42px;height:42px;font-size:22px}
  body.beta-preview .transaction-editor-source-amount{grid-column:1/-1;grid-template-columns:1fr auto;justify-items:initial;min-width:0;padding:8px 10px}
  body.beta-preview .transaction-editor-source-amount strong{text-align:right;font-size:16px}
  body.beta-preview .transaction-editor-actions{margin:0 -17px;padding:11px 17px 15px}
  body.beta-preview .transaction-editor-actions button{flex:1;min-width:0}
}

@keyframes betaSheetFade{
  from{
    opacity:.84;
    transform:translateY(4px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

body.beta-preview.beta-sidebar-collapsed .app-area{
  grid-template-columns:0 minmax(0,1fr);
}

body.beta-preview.beta-sidebar-collapsed .sticky-shell{
  opacity:0;
  pointer-events:none;
}

body.beta-preview.beta-sidebar-collapsed .sticky-shell-inner{
  opacity:0;
}

body.beta-preview .sticky-shell-inner > *{
  transition:opacity .32s ease;
}

body.beta-preview.beta-sidebar-collapsed .sheet{
  grid-column:2;
}

@media (max-width:1460px){
  body.beta-preview .stats-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}

@media (max-width:1180px){
  body.beta-preview .page-shell{
    padding:0 14px 28px 0;
  }

  body.beta-preview .app-area{
    grid-template-columns:1fr;
    padding-top:86px;
  }

  body.beta-preview .tabbar-shell{
    top:0;
    width:100vw;
    border-radius:0 0 18px 0;
  }

  body.beta-preview .sticky-shell{
    grid-column:1;
    position:static;
    top:auto;
    margin-top:0;
    padding:10px;
    border-radius:24px;
    border-top:1px solid rgba(255,255,255,.06);
    border-left:1px solid rgba(255,255,255,.06);
    max-height:none;
    overflow:visible;
  }

  body.beta-preview .sheet{
    grid-column:1;
  }

  body.beta-preview.beta-sidebar-collapsed .app-area{
    grid-template-columns:1fr;
  }

  body.beta-preview.beta-sidebar-collapsed .sheet{
    grid-column:1;
  }

  body.beta-preview .stats-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width:860px){
  body.beta-preview .page-shell{
    padding:0 0 24px;
  }

  body.beta-preview .app-area{
    padding-top:18px;
    height:auto;
  }

  body.beta-preview .tabbar-shell{
    position:static;
    top:auto;
    left:auto;
    width:100%;
    padding:10px 0 0;
    margin-top:10px;
    border:none;
    border-top:1px solid rgba(255,255,255,.08);
    border-radius:0;
    background:transparent;
    box-shadow:none;
    backdrop-filter:none;
    opacity:1;
    pointer-events:auto;
    transform:none;
    z-index:auto;
  }

  body.beta-preview .tabbar{
    width:100%;
    flex-direction:column;
  }

  body.beta-preview .tab-btn{
    flex:none;
    width:100%;
    justify-content:center;
  }

body.beta-preview .app-dialog.loan-editor-dialog,
body.beta-preview .app-dialog.schedule-editor-dialog,
body.beta-preview .app-dialog.transaction-editor-dialog{
  width:min(100vw - 20px, 100%);
}

body.beta-preview .transaction-editor-grid{
  grid-template-columns:1fr;
}

  body.beta-preview .quick-entry-sheet{
    max-width:none;
    width:100%;
  }

  body.beta-preview .quick-entry-panel{
    gap:12px;
    padding:14px 14px 16px;
  }

  body.beta-preview .quick-entry-panel .panel-header{
    display:grid;
    gap:8px;
  }

  body.beta-preview .quick-entry-panel .hint-text{
    max-width:none;
    text-align:left;
  }

  body.beta-preview .quick-entry-form{
    gap:10px;
  }

  body.beta-preview .quick-entry-block{
    gap:8px;
    padding:12px;
    border-radius:14px;
  }

  body.beta-preview .quick-entry-block-head{
    align-items:flex-start;
  }

  body.beta-preview .quick-chip-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:8px;
  }

  body.beta-preview .quick-chip-btn{
    width:100%;
    justify-content:flex-start;
    padding:9px 12px;
    border-radius:12px;
    font-size:.92rem;
  }

  body.beta-preview .quick-entry-input-field,
  body.beta-preview .quick-entry-date-field{
    gap:5px;
    width:100%;
  }

  body.beta-preview .quick-entry-input-field input,
  body.beta-preview .quick-entry-input-field textarea,
  body.beta-preview .quick-entry-date-field input{
    padding:10px 11px;
    border-radius:11px;
  }

  body.beta-preview .quick-entry-panel .form-actions{
    display:block;
  }

  body.beta-preview .quick-entry-panel .form-actions button{
    width:100%;
  }

  body.beta-preview .sheet-loading-indicator{
    top:auto;
    right:18px;
    bottom:82px;
  }

  body.beta-preview .sheet.active{
    max-height:calc(100vh - 24px);
    padding:0 14px 88px;
    animation:betaMobileSheetSlide .24s ease;
  }

  body.beta-preview .sheet.beta-mobile-sheet-enter{
    animation:betaMobileSheetSlide .24s ease;
  }

  body.beta-preview .stats-grid,
  body.beta-preview .transaction-top-grid{
    grid-template-columns:1fr;
  }

  body.beta-preview .compact-topbar,
  body.beta-preview .compact-workspace-banner,
  body.beta-preview .filter-panel{
    margin-left:0;
  }

  body.beta-preview .sticky-shell{
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    width:min(340px, calc(100vw - 18px));
    padding:0;
    border-radius:0 24px 24px 0;
    overflow:auto;
    transform:translateX(-108%);
    opacity:0;
    pointer-events:none;
    transition:transform .56s cubic-bezier(.16,1,.3,1), opacity .38s ease;
    z-index:245;
  }

  body.beta-preview .sticky-shell-inner{
    width:100%;
    min-width:0;
    padding:16px 12px 18px 0;
  }

  body.beta-preview .sidebar-toggle-btn{
    display:none;
  }

  body.beta-preview .mobile-shell-toggle{
    display:inline-flex;
    position:fixed;
    right:16px;
    bottom:18px;
    width:52px;
    height:52px;
    align-items:center;
    justify-content:center;
    border-radius:18px;
    background:linear-gradient(180deg, var(--theme-royal-blue-deep) 0%, var(--theme-royal-blue-dark) 100%);
    color:#eef3ff;
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 18px 28px rgba(13, 54, 150, .24);
    z-index:260;
  }

  body.beta-preview .mobile-shell-backdrop{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(14, 18, 36, .26);
    z-index:240;
    opacity:0;
    pointer-events:none;
    transition:opacity .36s ease;
  }

  body.beta-preview.beta-mobile-shell-open .sticky-shell{
    transform:translateX(0);
    opacity:1;
    pointer-events:auto;
  }

  body.beta-preview.beta-mobile-shell-open .mobile-shell-backdrop{
    opacity:1;
    pointer-events:auto;
  }
}

@keyframes betaMobileSheetSlide{
  from{
    opacity:.75;
    transform:translateY(14px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes betaSpin{
  to{
    transform:rotate(360deg);
  }
}

/* Savyn fintech shell refresh. Structural IDs and application behavior remain unchanged. */
body.beta-preview{
  --theme-royal-blue:#1f66f2;
  --theme-royal-blue-deep:#073b82;
  --theme-royal-blue-dark:#0a2e68;
  --theme-royal-blue-soft:#eef4ff;
  background:#f6f9fd;
  color:#102a56;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
}

body.beta-preview .page-shell{padding:0;max-width:none;background:#f6f9fd}
body.beta-preview .app-area{
  grid-template-columns:216px minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr);
  column-gap:24px;
  row-gap:0;
  height:100vh;
  padding:0 24px 0 0;
}

body.beta-preview .savyn-sidebar{
  grid-column:1;
  grid-row:1 / -1;
  position:fixed;
  inset:0 auto 0 0;
  z-index:220;
  width:216px;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding:18px 14px 16px;
  overflow-y:auto;
  background:#073b82;
  color:#fff;
  box-shadow:8px 0 28px rgba(7,59,130,.14);
  transition:width .24s ease,transform .32s ease;
}

body.beta-preview .savyn-sidebar-brand{display:grid;grid-template-columns:40px minmax(0,1fr) 32px;align-items:center;gap:10px;min-height:46px;padding:0 4px 16px;border-bottom:1px solid rgba(255,255,255,.12)}
body.beta-preview .savyn-sidebar-logo{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:#0b60f2;overflow:hidden;box-shadow:0 5px 14px rgba(0,25,74,.22)}
body.beta-preview .savyn-sidebar-logo img{display:block;width:40px;height:40px;max-width:none;object-fit:cover;transform:none;clip-path:inset(1.5px round 10px)}
body.beta-preview .savyn-sidebar-brand strong{font-size:20px;font-weight:800;letter-spacing:.01em;color:#fff}
body.beta-preview .savyn-sidebar-brand .sidebar-toggle-btn{margin-left:auto;width:32px;height:32px;border:0;border-radius:8px;background:rgba(255,255,255,.08);color:#dbeafe}
body.beta-preview .savyn-sidebar-brand .sidebar-toggle-btn:hover{background:rgba(255,255,255,.15)}

body.beta-preview .tabbar-shell{position:static;width:auto;display:block;padding:16px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}
body.beta-preview .tabbar{width:100%;display:grid;gap:5px;overflow:visible}
body.beta-preview .tab-btn{
  width:100%;min-height:42px;display:flex;align-items:center;justify-content:flex-start;gap:11px;
  padding:9px 11px;border:0;border-radius:10px;background:transparent;color:#c9dcf8;
  font-size:13px;font-weight:600;text-align:left;box-shadow:none;transition:background .16s ease,color .16s ease;
}
body.beta-preview .tab-btn .material-symbols-outlined{font-size:20px;color:#a9c9f3}
body.beta-preview .tab-btn:hover{transform:none;background:rgba(255,255,255,.08);color:#fff}
body.beta-preview .tab-btn.active{background:#1f66f2;color:#fff;border:0;box-shadow:0 8px 18px rgba(0,26,72,.24)}
body.beta-preview .tab-btn.active .material-symbols-outlined{color:#fff}

body.beta-preview .savyn-household-card{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;margin-top:auto;padding:14px 10px;border-top:1px solid rgba(255,255,255,.12);border-bottom:1px solid rgba(255,255,255,.12)}
body.beta-preview .savyn-household-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.11);color:#dbeafe}
body.beta-preview .savyn-household-card p{margin:0 0 3px;color:#9fc0ed;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
body.beta-preview .savyn-household-card h2{margin:0;color:#fff;font:700 13px/1.25 Inter,"Segoe UI",sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.beta-preview .savyn-member-count{display:block;margin-top:4px;color:#bfd3ef;font-size:11px}
body.beta-preview .savyn-sidebar-footer{display:grid;gap:8px;padding-top:12px}
body.beta-preview .savyn-sidebar-footer .status-pill{justify-self:start;border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.09);color:#d9e8fb;font-size:10px}
body.beta-preview .savyn-signout-btn{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:9px 10px;border:0;background:transparent;color:#c9dcf8}
body.beta-preview .savyn-signout-btn:hover{background:rgba(239,68,68,.13);color:#fff}

body.beta-preview .savyn-content-header{
  grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:20px;
  min-width:0;padding:20px 0 16px;border-bottom:1px solid #e4ecf7;background:#f6f9fd;
}
body.beta-preview .savyn-greeting .eyebrow{margin-bottom:4px;color:#1f66f2;font-size:10px;letter-spacing:.14em}
body.beta-preview .savyn-greeting h1{color:#102a56;font:700 26px/1.15 Inter,"Segoe UI",sans-serif;letter-spacing:0}
body.beta-preview .savyn-greeting .subcopy{margin-top:5px;color:#64748b;font-size:12px}
body.beta-preview .savyn-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
body.beta-preview .savyn-header-actions>.status-pill{background:#ecfdf5;border-color:#a7f3d0;color:#047857}
body.beta-preview .savyn-year-field{min-width:216px;display:grid;grid-template-columns:20px auto 1fr;align-items:center;gap:7px;padding:8px 10px;border:1px solid #dce6f2;border-radius:11px;background:#fff;color:#64748b;font-size:11px;font-weight:700;box-shadow:0 3px 10px rgba(16,42,86,.04)}
body.beta-preview .savyn-year-field .material-symbols-outlined{color:#1f66f2;font-size:18px}
body.beta-preview .savyn-year-field select{min-width:96px;border:0;outline:0;background:transparent;color:#102a56;font-weight:700}

body.beta-preview .sheet{grid-column:2;grid-row:2;min-width:0}
body.beta-preview .sheet.active{gap:18px;max-height:calc(100vh - 104px);padding:18px 0 28px;overflow:auto;scrollbar-gutter:stable}
body.beta-preview .sheet-loading-indicator{top:18px;right:26px}

body.beta-preview h1,body.beta-preview h2,body.beta-preview h3{font-family:Inter,"Segoe UI",Arial,sans-serif;letter-spacing:0}
body.beta-preview .panel,
body.beta-preview .net-worth-trend-card{
  padding:18px 20px;border:1px solid #e4ecf7;border-radius:14px;background:#fff;
  box-shadow:0 5px 18px rgba(16,42,86,.055);
}
body.beta-preview .panel-header{align-items:center;margin-bottom:14px}
body.beta-preview .panel-header h2{display:flex;align-items:center;gap:8px;color:#102a56;font-size:17px;line-height:1.25;font-weight:700}
body.beta-preview .section-kicker{margin-bottom:5px;color:#64748b;font-size:10px;letter-spacing:.14em;font-weight:700}
body.beta-preview .hint-text{color:#64748b;font-size:11px;line-height:1.45}

body.beta-preview .savyn-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body.beta-preview .savyn-kpi-card{min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:start;padding:16px;border:1px solid #e4ecf7;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(16,42,86,.05)}
body.beta-preview .savyn-kpi-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;font-size:22px}
body.beta-preview .savyn-kpi-card div{min-width:0;display:grid;gap:3px}
body.beta-preview .savyn-kpi-card div>span{color:#64748b;font-size:11px;font-weight:700}
body.beta-preview .savyn-kpi-card strong{overflow:hidden;text-overflow:ellipsis;color:#102a56;font-size:21px;line-height:1.2;font-weight:800;white-space:nowrap}
body.beta-preview .savyn-kpi-card small{color:#94a3b8;font-size:10px}
body.beta-preview .savyn-kpi-networth .savyn-kpi-icon{background:#eaf2ff;color:#1f66f2}
body.beta-preview .savyn-kpi-income .savyn-kpi-icon{background:#e9fbf4;color:#10b981}
body.beta-preview .savyn-kpi-expense .savyn-kpi-icon{background:#fff0ef;color:#ef4444}
body.beta-preview .savyn-kpi-savings .savyn-kpi-icon{background:#f2edff;color:#7c3aed}
body.beta-preview .savyn-kpi-income strong{color:#059669}
body.beta-preview .savyn-kpi-expense strong{color:#dc2626}
body.beta-preview .savyn-kpi-savings strong{color:#6d28d9}

body.beta-preview .table-wrap,body.beta-preview .cf-tbl-wrap{border:1px solid #e4ecf7;border-radius:10px;background:#fff}
body.beta-preview table{font-size:12px}
body.beta-preview th{padding:9px 11px;background:#f4f7fb;color:#64748b;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;border-bottom:1px solid #dfe8f3}
body.beta-preview td{padding:9px 11px;color:#253b5f;border-bottom:1px solid #edf2f7}
body.beta-preview tbody tr:hover{background:#f8fbff}
body.beta-preview .table-total-row td{background:#f2f7fd;border-top:1px solid #cfdceb;font-weight:800}
body.beta-preview .amount-positive,body.beta-preview .cf-pos{color:#059669}
body.beta-preview .amount-negative,body.beta-preview .cf-neg{color:#dc2626}

body.beta-preview .ghost-btn{border-color:#b8cff0;background:#fff;color:#1557c0}
body.beta-preview .ghost-btn:hover{background:#eef4ff;border-color:#7ca7e8}
body.beta-preview .savyn-signout-btn.ghost-btn{border-color:rgba(255,255,255,.18);background:transparent;color:#c9dcf8}
body.beta-preview .savyn-signout-btn.ghost-btn:hover{border-color:rgba(255,255,255,.28);background:rgba(239,68,68,.13);color:#fff}
body.beta-preview .master-subtab{padding:0 0 7px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#17284c;box-shadow:none}
body.beta-preview .master-subtab:hover{background:transparent;color:#1f66f2}
body.beta-preview .master-subtab.active{border-bottom-color:#1f66f2;background:transparent;color:#1f66f2;box-shadow:none}
body.beta-preview .small-btn{padding:7px 10px;font-size:11px}
body.beta-preview input,body.beta-preview select,body.beta-preview textarea{border-color:#d7e2ef;border-radius:9px}

body.beta-preview.beta-sidebar-collapsed .app-area{grid-template-columns:76px minmax(0,1fr)}
body.beta-preview.beta-sidebar-collapsed .savyn-sidebar{width:76px;padding-inline:10px}
body.beta-preview.beta-sidebar-collapsed .savyn-sidebar-brand strong,
body.beta-preview.beta-sidebar-collapsed .tab-btn>span:last-child,
body.beta-preview.beta-sidebar-collapsed .savyn-household-card>div,
body.beta-preview.beta-sidebar-collapsed .savyn-sidebar-footer .status-pill,
body.beta-preview.beta-sidebar-collapsed .savyn-signout-btn>span:last-child{display:none}
body.beta-preview.beta-sidebar-collapsed .savyn-sidebar-brand{justify-content:center}
body.beta-preview.beta-sidebar-collapsed .savyn-sidebar-brand{grid-template-columns:32px}
body.beta-preview.beta-sidebar-collapsed .savyn-sidebar-logo{display:none}
body.beta-preview.beta-sidebar-collapsed .savyn-sidebar-brand .sidebar-toggle-btn{display:grid;place-items:center;margin:0}
body.beta-preview.beta-sidebar-collapsed .tab-btn,body.beta-preview.beta-sidebar-collapsed .savyn-signout-btn{justify-content:center;padding-inline:0}
body.beta-preview.beta-sidebar-collapsed .savyn-household-card{grid-template-columns:1fr;padding-inline:5px}
body.beta-preview.beta-sidebar-collapsed .savyn-household-icon{margin:auto}

@media (max-width:1180px){
  body.beta-preview .app-area{grid-template-columns:190px minmax(0,1fr);padding-right:16px;column-gap:16px}
  body.beta-preview .savyn-sidebar{width:190px;padding-inline:10px}
  body.beta-preview .savyn-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.beta-preview .sheet,body.beta-preview .savyn-content-header{grid-column:2}
}

@media (max-width:860px){
  body.beta-preview .app-area{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);height:100vh;padding:0}
  body.beta-preview .savyn-sidebar{width:min(286px,calc(100vw - 42px));transform:translateX(-105%);opacity:0;pointer-events:none;box-shadow:18px 0 42px rgba(7,30,74,.24)}
  body.beta-preview.beta-mobile-shell-open .savyn-sidebar{transform:translateX(0);opacity:1;pointer-events:auto}
  body.beta-preview .savyn-sidebar-brand .sidebar-toggle-btn{display:none}
  body.beta-preview .savyn-content-header{grid-column:1;grid-row:1;padding:15px 16px 12px;gap:12px}
  body.beta-preview .savyn-greeting h1{font-size:20px}
  body.beta-preview .savyn-greeting .subcopy{display:none}
  body.beta-preview .savyn-header-actions>.status-pill{display:none}
  body.beta-preview .savyn-year-field{min-width:0;grid-template-columns:18px 1fr;padding:8px}
  body.beta-preview .savyn-year-field>span:nth-child(2){display:none}
  body.beta-preview .savyn-year-field select{min-width:94px}
  body.beta-preview .sheet{grid-column:1;grid-row:2}
  body.beta-preview .sheet.active{max-height:calc(100vh - 82px);padding:14px 14px 88px}
  body.beta-preview .savyn-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.beta-preview .savyn-kpi-card{grid-template-columns:34px minmax(0,1fr);gap:9px;padding:13px}
  body.beta-preview .savyn-kpi-icon{width:34px;height:34px;border-radius:10px;font-size:18px}
  body.beta-preview .savyn-kpi-card strong{font-size:17px}
  body.beta-preview .savyn-kpi-card small{display:none}
  body.beta-preview .panel,body.beta-preview .net-worth-trend-card{padding:15px;border-radius:13px}
  body.beta-preview .mobile-shell-toggle{display:inline-flex;background:#073b82;border-radius:14px}
  body.beta-preview .mobile-shell-backdrop{display:block}
}

@media (max-width:520px){
  body.beta-preview .savyn-content-header{align-items:flex-start}
  body.beta-preview .savyn-greeting .eyebrow{display:none}
  body.beta-preview .savyn-greeting h1{font-size:18px}
  body.beta-preview .dashboard-yoy-panel .panel-header,
  body.beta-preview .dashboard-investment-panel .panel-header{align-items:stretch;flex-direction:column}
  body.beta-preview .dashboard-yoy-actions{width:100%;align-items:center;justify-content:space-between;text-align:left}
  body.beta-preview .dashboard-yoy-actions .hint-text{max-width:230px;text-align:left}
  body.beta-preview .savyn-kpi-grid{grid-template-columns:1fr}
  body.beta-preview .savyn-kpi-card{grid-template-columns:40px minmax(0,1fr)}
  body.beta-preview .savyn-kpi-icon{width:40px;height:40px}
  body.beta-preview .savyn-kpi-card strong{font-size:20px}
}

/* Dashboard-only fintech presentation. Navigation and non-dashboard sheets stay unchanged. */
body.beta-preview #dashboardSheet{color:#102a56}
body.beta-preview #dashboardSheet.active{gap:16px}
body.beta-preview #dashboardSheet .panel,
body.beta-preview #dashboardSheet .net-worth-trend-card{
  padding:18px;border:1px solid #e4ebf5;border-radius:14px;background:#fff;
  box-shadow:0 4px 14px rgba(15,45,85,.045);
}
body.beta-preview #dashboardSheet .panel-header{align-items:center;gap:18px;margin-bottom:14px}
body.beta-preview #dashboardSheet .panel-header>div:first-child{min-width:0}
body.beta-preview #dashboardSheet .panel-header h2{gap:8px;margin:0;color:#102a56;font-size:17px;line-height:1.25;font-weight:700}
body.beta-preview #dashboardSheet .panel-header h2::before{content:none!important}
body.beta-preview #dashboardSheet .dashboard-section-icon{width:18px;height:18px;flex:0 0 18px;color:#1f66f2;stroke-width:2}
body.beta-preview #dashboardSheet .section-kicker{margin:0 0 5px;color:#64748b;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
body.beta-preview #dashboardSheet .hint-text{max-width:320px;color:#64748b;font-size:11px;line-height:1.4}

body.beta-preview #dashboardSheet .savyn-kpi-grid{gap:16px}
body.beta-preview #dashboardSheet .savyn-kpi-card{
  min-height:110px;grid-template-columns:44px minmax(0,1fr);gap:13px;align-items:center;padding:18px;
  border-color:#e4ebf5;box-shadow:0 4px 14px rgba(15,45,85,.045);
}
body.beta-preview #dashboardSheet .savyn-kpi-icon{
  box-sizing:border-box;width:44px;height:44px;padding:11px;border-radius:12px;stroke-width:2;
}
body.beta-preview #dashboardSheet .savyn-kpi-card div{align-content:center;gap:4px}
body.beta-preview #dashboardSheet .savyn-kpi-card div>span{font-size:11px;font-weight:700;color:#64748b}
body.beta-preview #dashboardSheet .savyn-kpi-card strong{font-size:25px;line-height:1.1;font-weight:700;color:#102a56}
body.beta-preview #dashboardSheet .savyn-kpi-card small{font-size:11px;color:#94a3b8}
body.beta-preview #dashboardSheet .savyn-kpi-networth .savyn-kpi-icon{color:#2563eb;background:#eaf2ff}
body.beta-preview #dashboardSheet .savyn-kpi-income .savyn-kpi-icon{color:#10b981;background:#e9fbf4}
body.beta-preview #dashboardSheet .savyn-kpi-expense .savyn-kpi-icon{color:#ef4444;background:#fff0f0}
body.beta-preview #dashboardSheet .savyn-kpi-savings .savyn-kpi-icon{color:#7c3aed;background:#f3ecff}

body.beta-preview #dashboardSheet .dashboard-icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;border-radius:8px;font-weight:600}
body.beta-preview #dashboardSheet .dashboard-icon-btn svg{width:15px;height:15px;stroke-width:2}
body.beta-preview #dashboardSheet .manual-yoy-edit-btn,
body.beta-preview #dashboardSheet .investment-year-edit-btn{border-radius:7px;color:#1f66f2}
body.beta-preview #dashboardSheet .manual-yoy-edit-btn svg,
body.beta-preview #dashboardSheet .investment-year-edit-btn svg{width:13px;height:13px;stroke-width:2}
body.beta-preview #dashboardSheet .manual-yoy-badge{border-color:#fec5b6;background:#fff1ed;color:#e65a3a;font-size:10px;font-weight:600}

body.beta-preview #dashboardSheet .table-wrap,
body.beta-preview #dashboardSheet .cf-tbl-wrap{border:1px solid #e5ecf5;border-radius:10px;box-shadow:none}
body.beta-preview #dashboardSheet table,
body.beta-preview #dashboardSheet .cf-statement-table{font-size:12px;color:#17325c}
body.beta-preview #dashboardSheet th,
body.beta-preview #dashboardSheet .cf-th{
  height:34px;padding:7px 10px;background:#f6f9fd;color:#5d7194;font-size:11px;line-height:1.15;
  font-weight:600;letter-spacing:.045em;border-color:#e5ecf5;
}
body.beta-preview #dashboardSheet td,
body.beta-preview #dashboardSheet .cf-c{height:35px;padding:7px 10px;color:#17325c;font-size:12px;line-height:1.2;border-color:#e5ecf5}
body.beta-preview #dashboardSheet td[class*="amount-"],
body.beta-preview #dashboardSheet .amount-head,
body.beta-preview #dashboardSheet .cf-c:not(:first-child){text-align:right}
body.beta-preview #dashboardSheet tbody tr:hover{background:#f8fbff}
body.beta-preview #dashboardSheet .table-total-row td,
body.beta-preview #dashboardSheet .table-top-total-row th{background:#f8fafd;border-top:1px solid #dde6f2;font-weight:700}
body.beta-preview #dashboardSheet .amount-positive,
body.beta-preview #dashboardSheet .cf-pos{color:#059669}
body.beta-preview #dashboardSheet .amount-negative,
body.beta-preview #dashboardSheet .cf-neg{color:#ef4444}
body.beta-preview #dashboardSheet .dashboard-investment-panel table th:nth-child(3),
body.beta-preview #dashboardSheet .dashboard-investment-panel table td:nth-child(3){background:#f1f6ff;font-weight:700}

body.beta-preview #dashboardSheet .investment-chart-layout{grid-template-columns:240px minmax(0,1fr);gap:22px;padding:16px;background:#fbfdff;border-color:#e4ebf5}
body.beta-preview #dashboardSheet .investment-chart-donut-wrap,
body.beta-preview #dashboardSheet .investment-chart-donut{width:224px;height:224px}
body.beta-preview #dashboardSheet .investment-chart-center{inset:60px}
body.beta-preview #dashboardSheet .investment-chart-center strong{font-size:15px;color:#102a56}
body.beta-preview #dashboardSheet .investment-chart-legend{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:6px 14px}
body.beta-preview #dashboardSheet .investment-chart-legend-row{min-height:32px;padding:6px 8px;color:#17325c}
body.beta-preview #dashboardSheet .investment-chart-legend-row strong{min-width:76px;text-align:right}

body.beta-preview #dashboardSheet .net-worth-trend-panel{gap:16px}
body.beta-preview #dashboardSheet .net-worth-trend-card{min-height:360px}
body.beta-preview #dashboardSheet .net-worth-trend-card h2{font-size:17px}
body.beta-preview #dashboardSheet .net-worth-trend-chart,
body.beta-preview #dashboardSheet .risk-chart-layout,
body.beta-preview #dashboardSheet .expense-trend-chart,
body.beta-preview #dashboardSheet .savings-trend-chart{border-color:#e4ebf5;background:#fbfdff}
body.beta-preview #dashboardSheet .risk-chart-layout{grid-template-columns:150px minmax(0,1fr);gap:16px;padding:12px}
body.beta-preview #dashboardSheet .summary-list{gap:8px}
body.beta-preview #dashboardSheet .summary-list li{min-height:34px;padding:7px 9px}

@media (max-width:1180px){
  body.beta-preview #dashboardSheet .savyn-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.beta-preview #dashboardSheet .investment-chart-layout{grid-template-columns:220px minmax(0,1fr)}
  body.beta-preview #dashboardSheet .investment-chart-donut-wrap,
  body.beta-preview #dashboardSheet .investment-chart-donut{width:208px;height:208px}
  body.beta-preview #dashboardSheet .investment-chart-center{inset:56px}
}
@media (max-width:760px){
  body.beta-preview #dashboardSheet .investment-chart-layout{grid-template-columns:1fr}
  body.beta-preview #dashboardSheet .panel-header{align-items:flex-start}
}
@media (max-width:520px){
  body.beta-preview #dashboardSheet .savyn-kpi-grid{grid-template-columns:1fr}
  body.beta-preview #dashboardSheet .savyn-kpi-card{min-height:106px;grid-template-columns:44px minmax(0,1fr);padding:16px}
  body.beta-preview #dashboardSheet .savyn-kpi-icon{width:44px;height:44px}
  body.beta-preview #dashboardSheet .savyn-kpi-card strong{font-size:23px}
  body.beta-preview #dashboardSheet .investment-chart-donut-wrap,
  body.beta-preview #dashboardSheet .investment-chart-donut{width:190px;height:190px}
  body.beta-preview #dashboardSheet .investment-chart-center{inset:51px}
}

/* Reference dashboard layout: content-only restructuring, preserving app navigation and data behavior. */
body.beta-preview #dashboardSheet.active{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;overflow-x:hidden;
  grid-template-areas:
    "kpis kpis"
    "annual cashflow"
    "investment risk"
    "networth expense"
    "budgetsummary budgetcategories"
    "recent savingsrate";
}
body.beta-preview #dashboardSheet>.savyn-kpi-grid{grid-area:kpis}
body.beta-preview #dashboardSheet>.dashboard-yoy-panel{grid-area:annual}
body.beta-preview #dashboardSheet>.dashboard-investment-panel{grid-area:investment}
body.beta-preview #dashboardSheet>.dashboard-cashflow-grid,
body.beta-preview #dashboardSheet>.net-worth-trend-panel,
body.beta-preview #dashboardSheet>.dashboard-expense-row,
body.beta-preview #dashboardSheet>.dashboard-budget-grid,
body.beta-preview #dashboardSheet>.dashboard-insights-grid{display:contents}
body.beta-preview #dashboardSheet>.dashboard-cashflow-grid>.panel{grid-area:cashflow}
body.beta-preview #dashboardSheet .net-worth-trend-card-chart{grid-area:networth}
body.beta-preview #dashboardSheet .net-worth-trend-card-risk{grid-area:risk}
body.beta-preview #dashboardSheet>.dashboard-expense-row>.panel{grid-area:expense}
body.beta-preview #dashboardSheet>.dashboard-budget-grid>.panel:first-child{grid-area:budgetsummary}
body.beta-preview #dashboardSheet>.dashboard-budget-grid>.panel:last-child{grid-area:budgetcategories}
body.beta-preview #dashboardSheet>.dashboard-insights-grid>.panel:first-child{display:grid;grid-area:recent;grid-template-rows:auto minmax(0,1fr) auto;min-height:330px;contain:size layout}
body.beta-preview #dashboardSheet>.dashboard-insights-grid>.panel:last-child{grid-area:savingsrate}
body.beta-preview #dashboardSheet .net-worth-trend-panel>.empty-state{grid-area:networth;align-self:end;z-index:3}
body.beta-preview #dashboardSheet>.panel,
body.beta-preview #dashboardSheet>.dashboard-cashflow-grid>.panel,
body.beta-preview #dashboardSheet .net-worth-trend-card,
body.beta-preview #dashboardSheet>.dashboard-expense-row>.panel,
body.beta-preview #dashboardSheet>.dashboard-budget-grid>.panel,
body.beta-preview #dashboardSheet>.dashboard-insights-grid>.panel{min-width:0;height:100%;overflow:hidden}

body.beta-preview #dashboardSheet .savyn-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
body.beta-preview #dashboardSheet .savyn-kpi-card{min-height:108px;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:center;padding:15px}
body.beta-preview #dashboardSheet .savyn-kpi-card div{align-content:center;gap:4px}
body.beta-preview #dashboardSheet .savyn-kpi-card strong{justify-self:start;text-align:left!important;font-size:23px;font-variant-numeric:tabular-nums}
body.beta-preview #dashboardSheet .savyn-kpi-icon{width:42px;height:42px}
body.beta-preview #dashboardSheet .savyn-kpi-icon svg{width:21px;height:21px;stroke-width:2}
body.beta-preview #dashboardSheet #netWorthTotal{color:#1f66f2}
body.beta-preview #dashboardSheet #incomeTotal{color:#079a63}
body.beta-preview #dashboardSheet #expenseTotal{color:#dc3f3f}
body.beta-preview #dashboardSheet #netFlowTotal{color:#7c3aed}
body.beta-preview #dashboardSheet .savyn-kpi-rate .savyn-kpi-icon{color:#1f66f2;background:#eef5ff}
body.beta-preview #dashboardSheet #savingsRateTotal{color:#1f66f2}
body.beta-preview #dashboardSheet #netFlowTotal.amount-negative,
body.beta-preview #dashboardSheet #savingsRateTotal.amount-negative,
body.beta-preview #dashboardSheet #netWorthTotal.amount-negative{color:#dc3f3f}

body.beta-preview #dashboardSheet .panel,
body.beta-preview #dashboardSheet .net-worth-trend-card{border-color:#e3ebf6;border-radius:16px;box-shadow:0 4px 14px rgba(15,45,85,.04)}
body.beta-preview #dashboardSheet .panel-header{min-height:38px;margin-bottom:12px}
body.beta-preview #dashboardSheet .panel-header h2{font-size:17px;font-weight:700}
body.beta-preview #dashboardSheet .dashboard-section-icon{
  box-sizing:border-box;width:28px;height:28px;flex-basis:28px;padding:5px;border-radius:8px;background:#eef5ff;color:#1f66f2;
}
body.beta-preview #dashboardSheet .dashboard-section-icon svg,
body.beta-preview #dashboardSheet svg.dashboard-section-icon{stroke-width:2}
body.beta-preview #dashboardSheet .dashboard-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
body.beta-preview #dashboardSheet .dashboard-view-btn{color:#1f66f2}
body.beta-preview #dashboardSheet .dashboard-view-btn[aria-expanded="true"] svg{transform:rotate(90deg)}
body.beta-preview #dashboardSheet .dashboard-view-btn svg{transition:transform .18s ease}
body.beta-preview #dashboardSheet .dashboard-detail-drawer{margin-top:12px;padding-top:12px;border-top:1px solid #e8eef7}
body.beta-preview #dashboardSheet .dashboard-detail-drawer[hidden]{display:none!important}
body.beta-preview #dashboardSheet .dashboard-investment-panel .hint-text{display:none}

body.beta-preview #dashboardSheet .dashboard-yoy-panel .table-wrap,
body.beta-preview #dashboardSheet .dashboard-cashflow-grid .cf-tbl-wrap,
body.beta-preview #dashboardSheet .dashboard-cashflow-grid #cashflowStatementBody{max-height:340px;overflow:auto}
body.beta-preview #dashboardSheet .dashboard-yoy-table{min-width:1080px}
body.beta-preview #dashboardSheet .dashboard-yoy-table th,
body.beta-preview #dashboardSheet .dashboard-yoy-table td{font-variant-numeric:tabular-nums}
body.beta-preview #dashboardSheet .dashboard-yoy-table tbody tr:first-child td{background:#f5f9ff}
body.beta-preview #dashboardSheet .dashboard-cashflow-grid .cf-statement-table{min-width:980px}
body.beta-preview #dashboardSheet .dashboard-cashflow-grid .cf-statement-table .cf-r>.cf-c:first-child,
body.beta-preview #dashboardSheet .dashboard-cashflow-grid .cf-statement-table .cf-h>.cf-c:first-child{position:sticky;left:0;z-index:1;background:inherit}

body.beta-preview #dashboardSheet .dashboard-investment-panel,
body.beta-preview #dashboardSheet .net-worth-trend-card-risk{align-content:start}
body.beta-preview #dashboardSheet .investment-report-chart{margin:0}
body.beta-preview #dashboardSheet .investment-chart-layout{grid-template-columns:190px minmax(0,1fr);gap:16px;min-height:260px;padding:14px}
body.beta-preview #dashboardSheet .investment-chart-donut-wrap,
body.beta-preview #dashboardSheet .investment-chart-donut{width:184px;height:184px}
body.beta-preview #dashboardSheet .investment-chart-center{inset:49px}
body.beta-preview #dashboardSheet .investment-chart-legend{grid-template-columns:1fr;max-height:240px;overflow:auto;padding-right:3px}
body.beta-preview #dashboardSheet .investment-chart-legend-row{grid-template-columns:10px minmax(0,1fr) auto 38px;min-height:29px;padding:4px 6px}
body.beta-preview #dashboardSheet .investment-chart-label{font-weight:600}
body.beta-preview #dashboardSheet .investment-chart-legend-row strong{font-variant-numeric:tabular-nums}

body.beta-preview #dashboardSheet .risk-chart-box{margin:0}
body.beta-preview #dashboardSheet .risk-chart-layout{grid-template-columns:180px minmax(0,1fr);gap:18px;min-height:260px;padding:16px}
body.beta-preview #dashboardSheet .risk-donut-wrap,
body.beta-preview #dashboardSheet .risk-donut-svg{width:168px;height:168px}
body.beta-preview #dashboardSheet .risk-donut-center{inset:45px}
body.beta-preview #dashboardSheet .risk-legend{gap:8px}
body.beta-preview #dashboardSheet .risk-legend-row{min-height:35px;padding:6px 7px;font-size:12px}
body.beta-preview #dashboardSheet .risk-legend-label{font-weight:600}

body.beta-preview #dashboardSheet .net-worth-trend-card,
body.beta-preview #dashboardSheet .dashboard-expense-row>.panel{min-height:370px}
body.beta-preview #dashboardSheet .net-worth-trend-widget{min-height:272px}
body.beta-preview #dashboardSheet .net-worth-trend-yaxis{height:254px}
body.beta-preview #dashboardSheet .net-worth-trend-plot-area{height:272px}
body.beta-preview #dashboardSheet .net-worth-trend-fill{background:#3b82f6;border-radius:7px 7px 2px 2px}
body.beta-preview #dashboardSheet .net-worth-line{stroke:#79adf8;stroke-width:1.4}
body.beta-preview #dashboardSheet .expense-trend-bars{height:272px}
body.beta-preview #dashboardSheet .expense-trend-fill-income{background:#10b981}
body.beta-preview #dashboardSheet .expense-trend-fill-expense{background:#f97066}
body.beta-preview #dashboardSheet .expense-trend-head{min-height:24px;margin-bottom:6px}
body.beta-preview #dashboardSheet .expense-trend-head strong{gap:9px}
body.beta-preview #dashboardSheet .expense-trend-head-income,
body.beta-preview #dashboardSheet .expense-trend-head-expense{padding:4px 7px;border-radius:999px;background:#f6f9fd}
body.beta-preview #dashboardSheet>.dashboard-budget-grid>.panel{min-height:310px}
body.beta-preview #dashboardSheet .dashboard-budget-summary{display:grid;gap:2px}
body.beta-preview #dashboardSheet .dashboard-budget-progress-row{display:grid;grid-template-columns:38px minmax(0,1fr) 52px 76px;gap:11px;align-items:center;min-height:70px;padding:10px 4px;border-bottom:1px solid #edf2f8}
body.beta-preview #dashboardSheet .dashboard-budget-progress-row:last-child{border-bottom:0}
body.beta-preview #dashboardSheet .dashboard-budget-row-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;color:#1f66f2;background:#eaf2ff}
body.beta-preview #dashboardSheet .dashboard-budget-row-icon svg{width:18px;height:18px;stroke-width:2}
body.beta-preview #dashboardSheet .dashboard-budget-progress-income .dashboard-budget-row-icon{color:#079a63;background:#e8f8f1}
body.beta-preview #dashboardSheet .dashboard-budget-progress-expense .dashboard-budget-row-icon{color:#dc3f3f;background:#fff0ef}
body.beta-preview #dashboardSheet .dashboard-budget-progress-savings .dashboard-budget-row-icon{color:#1f66f2;background:#eaf2ff}
body.beta-preview #dashboardSheet .dashboard-budget-row-main{min-width:0;display:grid;gap:8px}
body.beta-preview #dashboardSheet .dashboard-budget-row-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:12px}
body.beta-preview #dashboardSheet .dashboard-budget-row-heading>strong{color:#102a56;font-size:13px}
body.beta-preview #dashboardSheet .dashboard-budget-row-heading>span{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
body.beta-preview #dashboardSheet .dashboard-budget-row-heading small{color:#7184a3;font-size:10px;font-weight:600}
body.beta-preview #dashboardSheet .dashboard-budget-progress-track{height:9px;overflow:hidden;border-radius:999px;background:#e8eef7}
body.beta-preview #dashboardSheet .dashboard-budget-progress-track>span{display:block;height:100%;border-radius:inherit;background:#1f66f2}
body.beta-preview #dashboardSheet .dashboard-budget-progress-income .dashboard-budget-progress-track>span{background:#28b879}
body.beta-preview #dashboardSheet .dashboard-budget-progress-expense .dashboard-budget-progress-track>span{background:#f97066}
body.beta-preview #dashboardSheet .dashboard-budget-percent{color:#17325c;font-size:12px;text-align:right;font-variant-numeric:tabular-nums}
body.beta-preview #dashboardSheet .dashboard-budget-variance{justify-self:end;min-width:68px;padding:6px 7px;border-radius:8px;background:#f6f9fd;font-size:11px;font-weight:700;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
body.beta-preview #dashboardSheet .dashboard-budget-variance.amount-positive{background:#eaf8f2;color:#07855a}
body.beta-preview #dashboardSheet .dashboard-budget-variance.amount-negative{background:#fff0ef;color:#d63c3c}
body.beta-preview #dashboardSheet .dashboard-budget-table-wrap{max-height:242px;overflow:auto}
body.beta-preview #dashboardSheet .dashboard-budget-table{width:100%;min-width:590px}
body.beta-preview #dashboardSheet .dashboard-budget-table th{position:sticky;top:0;z-index:1;background:#f5f8fc}
body.beta-preview #dashboardSheet .dashboard-budget-table th,
body.beta-preview #dashboardSheet .dashboard-budget-table td{padding:7px 8px;font-size:11px}
body.beta-preview #dashboardSheet .dashboard-budget-table th:first-child,
body.beta-preview #dashboardSheet .dashboard-budget-table td:first-child{width:30px;text-align:center;color:#7184a3}
body.beta-preview #dashboardSheet .dashboard-budget-table td:nth-child(2){color:#17325c;font-weight:600}
body.beta-preview #dashboardSheet .dashboard-budget-used{display:grid;grid-template-columns:minmax(48px,1fr) 38px;gap:6px;align-items:center;min-width:96px}
body.beta-preview #dashboardSheet .dashboard-budget-used-track{height:7px;overflow:hidden;border-radius:999px;background:#e8eef7}
body.beta-preview #dashboardSheet .dashboard-budget-used-track>span{display:block;height:100%;border-radius:inherit;background:#28b879}
body.beta-preview #dashboardSheet .dashboard-budget-used-track>.budget-status-watch{background:#f4b740}
body.beta-preview #dashboardSheet .dashboard-budget-used-track>.budget-status-over{background:#f97066}
body.beta-preview #dashboardSheet .dashboard-budget-used strong{font-size:10px;text-align:right;font-variant-numeric:tabular-nums}

body.beta-preview #dashboardSheet>.dashboard-insights-grid>.panel{min-height:330px}
body.beta-preview #dashboardSheet .dashboard-recent-transactions-wrap{width:100%;max-width:100%;min-height:0;height:auto;max-height:none;align-self:stretch;overflow:auto}
body.beta-preview #dashboardSheet .dashboard-recent-transactions-table{width:100%;table-layout:fixed}
body.beta-preview #dashboardSheet .dashboard-recent-transactions-table thead th{position:sticky;top:0;z-index:2;background:#f4f8fd}
body.beta-preview #dashboardSheet .dashboard-recent-transactions-table th:first-child,
body.beta-preview #dashboardSheet .dashboard-recent-transactions-table td:first-child{width:118px;white-space:nowrap}
body.beta-preview #dashboardSheet .dashboard-recent-transactions-table th:last-child,
body.beta-preview #dashboardSheet .dashboard-recent-transactions-table td:last-child{width:96px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
body.beta-preview #dashboardSheet .dashboard-recent-transactions-table td:nth-child(2){min-width:0}
body.beta-preview #dashboardSheet .dashboard-recent-transactions-table .doc-number-btn{max-width:100%;font-size:12px;font-weight:700}
body.beta-preview #dashboardSheet .dashboard-recent-title{display:block;overflow:hidden;color:#17325c;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
body.beta-preview #dashboardSheet .dashboard-recent-transactions-table small{display:block;margin-top:2px;overflow:hidden;color:#7b8ba5;font-size:10px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
body.beta-preview #dashboardSheet .summary-row{grid-template-columns:minmax(110px,1.2fr) minmax(100px,2fr) minmax(92px,auto);gap:10px;min-height:32px}
body.beta-preview #dashboardSheet .summary-label{font-size:12px;font-weight:600;color:#17325c}
body.beta-preview #dashboardSheet .summary-track{height:10px;border-radius:999px;background:#e8eef7}
body.beta-preview #dashboardSheet .summary-bar{border-radius:999px;background:#3b82f6}
body.beta-preview #dashboardSheet .summary-bar.negative{background:#f97066}
body.beta-preview #dashboardSheet .summary-value{font-size:12px;font-variant-numeric:tabular-nums}
body.beta-preview #dashboardSheet .savings-trend-svg{min-height:250px}
body.beta-preview #dashboardSheet .savings-trend-grid{stroke:#edf2f7}
body.beta-preview #dashboardSheet .savings-trend-area{fill:rgba(16,185,129,.11)}
body.beta-preview #dashboardSheet .savings-trend-line{stroke:#079a63}

body.beta-preview #budgetTrackerSheet.active{gap:12px;overflow-x:hidden}
body.beta-preview #budgetTrackerSheet .budget-toolbar-panel{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:10px 12px;border-color:#e3ebf6;border-radius:12px;box-shadow:0 3px 10px rgba(16,42,86,.035)}
body.beta-preview #budgetTrackerSheet .budget-controls{display:flex;flex:1 1 430px;gap:12px;align-items:flex-end;min-width:0}
body.beta-preview #budgetTrackerSheet .budget-controls .compact-field{flex:1 1 190px;min-width:150px;margin:0}
body.beta-preview #budgetTrackerSheet .budget-controls .compact-field>span,
body.beta-preview #budgetTrackerSheet .budget-expense-filter-field>span{color:#64748b;font-size:10px;font-weight:700}
body.beta-preview #budgetTrackerSheet .budget-controls select,
body.beta-preview #budgetTrackerSheet .budget-expense-filter-field select{min-height:34px;border-color:#d8e4f2;border-radius:8px;color:#102a56;font-size:12px;font-weight:600}
body.beta-preview #budgetTrackerSheet .budget-actions{display:flex;flex:0 1 auto;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex-wrap:nowrap}
body.beta-preview #budgetTrackerSheet .budget-action-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 12px;border-radius:8px;font-size:11px;white-space:nowrap}
body.beta-preview #budgetTrackerSheet .budget-action-btn svg{width:15px;height:15px;stroke-width:2}

body.beta-preview #budgetTrackerSheet .budget-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0}
body.beta-preview #budgetTrackerSheet .budget-metric-card{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:9px;align-items:center;min-width:0;min-height:82px;padding:10px 11px;border:1px solid #e3ebf6;border-radius:14px;background:#fff;box-shadow:0 3px 10px rgba(16,42,86,.035)}
body.beta-preview #budgetTrackerSheet .budget-metric-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;color:#1f66f2;background:#eaf2ff}
body.beta-preview #budgetTrackerSheet .budget-metric-icon svg{width:20px;height:20px;stroke-width:2}
body.beta-preview #budgetTrackerSheet .budget-metric-card-income .budget-metric-icon{color:#079a63;background:#eaf9f2}
body.beta-preview #budgetTrackerSheet .budget-metric-card-expense .budget-metric-icon{color:#f05252;background:#fff0f0}
body.beta-preview #budgetTrackerSheet .budget-metric-card-savings .budget-metric-icon{color:#7c3aed;background:#f4efff}
body.beta-preview #budgetTrackerSheet .budget-metric-copy{display:grid;gap:1px;min-width:0}
body.beta-preview #budgetTrackerSheet .budget-metric-copy>span{overflow:hidden;color:#64748b;font-size:10px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
body.beta-preview #budgetTrackerSheet .budget-metric-copy>strong{overflow:hidden;color:#102a56;font-size:17px;line-height:1.16;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}
body.beta-preview #budgetTrackerSheet .budget-metric-card-income .budget-metric-copy>strong{color:#07855a}
body.beta-preview #budgetTrackerSheet .budget-metric-card-expense .budget-metric-copy>strong{color:#d63c3c}
body.beta-preview #budgetTrackerSheet .budget-metric-card-savings .budget-metric-copy>strong{color:#6d28d9}
body.beta-preview #budgetTrackerSheet .budget-metric-copy>small{overflow:hidden;color:#72819b;font-size:9px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
body.beta-preview #budgetTrackerSheet .budget-metric-delta{display:grid;gap:1px;justify-items:end;align-content:center;min-width:58px;padding:5px 7px;border-radius:8px;font-variant-numeric:tabular-nums;white-space:nowrap}
body.beta-preview #budgetTrackerSheet .budget-metric-delta strong{font-size:10px}
body.beta-preview #budgetTrackerSheet .budget-metric-delta small{font-size:9px;font-weight:700}
body.beta-preview #budgetTrackerSheet .budget-metric-delta-favorable{color:#07855a;background:#eaf9f2}
body.beta-preview #budgetTrackerSheet .budget-metric-delta-unfavorable{color:#d63c3c;background:#fff0f0}
body.beta-preview #budgetTrackerSheet .budget-metric-delta-neutral{color:#1f66f2;background:#edf4ff}

body.beta-preview #budgetTrackerSheet .budget-variance-panel{min-width:0;padding:0;overflow:hidden;border-color:#e3ebf6;border-radius:14px;box-shadow:0 3px 10px rgba(16,42,86,.035)}
body.beta-preview #budgetTrackerSheet .budget-variance-panel .panel-header{min-height:46px;margin:0;padding:9px 12px;border-bottom:1px solid #e3ebf6}
body.beta-preview #budgetTrackerSheet .budget-section-title{display:flex;align-items:center;gap:9px;min-width:0}
body.beta-preview #budgetTrackerSheet .budget-section-title h2{margin:0;color:#102a56;font-size:14px;line-height:1.2}
body.beta-preview #budgetTrackerSheet .budget-section-icon{width:30px;height:30px;display:grid;flex:0 0 auto;place-items:center;border-radius:50%}
body.beta-preview #budgetTrackerSheet .budget-section-icon svg{width:17px;height:17px;stroke-width:2.2}
body.beta-preview #budgetTrackerSheet .budget-section-icon-income{color:#079a63;background:#eaf9f2}
body.beta-preview #budgetTrackerSheet .budget-section-icon-expense{color:#f05252;background:#fff0f0}
body.beta-preview #budgetTrackerSheet .budget-expense-filter-field{display:grid;grid-template-columns:auto 132px;gap:7px;align-items:center;min-width:0;margin:0}
body.beta-preview #budgetTrackerSheet .budget-variance-wrap{width:100%;max-width:100%;overflow:auto;border:0;border-radius:0}
body.beta-preview #budgetTrackerSheet .budget-expense-wrap{max-height:360px}
body.beta-preview #budgetTrackerSheet .budget-variance-table{width:100%;min-width:850px;table-layout:fixed;border-collapse:separate;border-spacing:0}
body.beta-preview #budgetTrackerSheet .budget-variance-table .budget-category-col{width:34%}
body.beta-preview #budgetTrackerSheet .budget-variance-table .budget-amount-col{width:13%}
body.beta-preview #budgetTrackerSheet .budget-variance-table .budget-percent-col{width:9%}
body.beta-preview #budgetTrackerSheet .budget-variance-table .budget-progress-col{width:18%}
body.beta-preview #budgetTrackerSheet .budget-variance-table th{position:sticky;top:0;z-index:2;height:28px;padding:5px 9px;border-bottom:1px solid #dfe8f3;background:#f4f8fd;color:#456083;font-size:10px;font-weight:700;line-height:1.1;text-transform:uppercase}
body.beta-preview #budgetTrackerSheet .budget-variance-table th:last-child{text-align:center}
body.beta-preview #budgetTrackerSheet .budget-variance-table td{height:30px;padding:3px 9px;border-bottom:1px solid #edf2f7;color:#17325c;font-size:13px;line-height:1.1;vertical-align:middle}
body.beta-preview #budgetTrackerSheet .budget-variance-table tbody tr:hover td{background:#f8fafd}
body.beta-preview #budgetTrackerSheet .budget-variance-table td:first-child{overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
body.beta-preview #budgetTrackerSheet .budget-variance-table .amount-cell{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
body.beta-preview #budgetTrackerSheet .budget-variance-table td:nth-child(4).amount-positive{color:#079a63;font-weight:400}
body.beta-preview #budgetTrackerSheet .budget-variance-table td:nth-child(4).amount-negative{color:#f05252;font-weight:400}
body.beta-preview #budgetTrackerSheet .budget-variance-table td:nth-child(4).amount-neutral{color:#17325c;font-weight:400}
body.beta-preview #budgetTrackerSheet .budget-variance-table td:nth-child(5).amount-positive{color:#079a63;font-weight:400}
body.beta-preview #budgetTrackerSheet .budget-variance-table td:nth-child(5).amount-negative{color:#f05252;font-weight:400}
body.beta-preview #budgetTrackerSheet .budget-variance-table td:nth-child(5).amount-neutral{color:#17325c;font-weight:400}
body.beta-preview #budgetTrackerSheet .budget-variance-table td:nth-child(5).budget-status-empty{color:#64748b;font-weight:400}
body.beta-preview #budgetTrackerSheet .budget-variance-table .table-total-row td{position:sticky;bottom:0;z-index:1;border-bottom:0;border-top:1px solid #d9e6f4;background:#edf5ff;color:#102a56;font-weight:600}
body.beta-preview #budgetTrackerSheet .budget-progress-cell{overflow:visible!important;text-align:center}
body.beta-preview #budgetTrackerSheet .budget-progress-visual{display:block;width:min(100%,180px);margin:0 auto}
body.beta-preview #budgetTrackerSheet .budget-progress-scale{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);height:8px}
body.beta-preview #budgetTrackerSheet .budget-progress-base,
body.beta-preview #budgetTrackerSheet .budget-progress-overage{position:relative;display:block;overflow:hidden;background:#e7eef7}
body.beta-preview #budgetTrackerSheet .budget-progress-base{border-radius:999px 0 0 999px}
body.beta-preview #budgetTrackerSheet .budget-progress-overage{border-left:2px solid #0b2e6b;border-radius:0 999px 999px 0;background:#f1f5fa}
body.beta-preview #budgetTrackerSheet .budget-progress-fill{display:block;height:100%;border-radius:inherit;background:#cbd5e1}
body.beta-preview #budgetTrackerSheet .budget-progress-favorable{background:#079a63}
body.beta-preview #budgetTrackerSheet .budget-progress-unfavorable{background:#f05252}
body.beta-preview #budgetTrackerSheet .budget-progress-income-short{background:#f59e0b}
body.beta-preview #budgetTrackerSheet .budget-progress-neutral{background:#1f66f2}
body.beta-preview #budgetTrackerSheet .budget-status-ok{color:#079a63}
body.beta-preview #budgetTrackerSheet .budget-status-watch{color:#a86b00}
body.beta-preview #budgetTrackerSheet .budget-status-over{color:#f05252}

@media (max-width:1439px){
  body.beta-preview #dashboardSheet .savyn-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
  body.beta-preview #dashboardSheet .savyn-kpi-card{grid-template-columns:36px minmax(0,1fr);gap:9px;padding:13px}
  body.beta-preview #dashboardSheet .savyn-kpi-icon{width:36px;height:36px}
  body.beta-preview #dashboardSheet .savyn-kpi-card strong{font-size:20px}
  body.beta-preview #dashboardSheet .investment-chart-layout{grid-template-columns:160px minmax(0,1fr)}
  body.beta-preview #dashboardSheet .investment-chart-donut-wrap,
  body.beta-preview #dashboardSheet .investment-chart-donut{width:156px;height:156px}
  body.beta-preview #dashboardSheet .investment-chart-center{inset:42px}
  body.beta-preview #dashboardSheet .risk-chart-layout{grid-template-columns:150px minmax(0,1fr)}
  body.beta-preview #dashboardSheet .risk-donut-wrap,
  body.beta-preview #dashboardSheet .risk-donut-svg{width:142px;height:142px}
  body.beta-preview #dashboardSheet .risk-donut-center{inset:38px}
}
@media (max-width:1100px){
  body.beta-preview #budgetTrackerSheet .budget-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.beta-preview #budgetTrackerSheet .budget-toolbar-panel{align-items:stretch;flex-direction:column}
  body.beta-preview #budgetTrackerSheet .budget-controls{flex-basis:auto;width:100%}
  body.beta-preview #budgetTrackerSheet .budget-actions{width:100%;margin-left:0}
}
@media (max-width:1180px){
  body.beta-preview #dashboardSheet.active{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"kpis" "annual" "cashflow" "investment" "risk" "networth" "expense" "budgetsummary" "budgetcategories" "recent" "savingsrate";
  }
  body.beta-preview #dashboardSheet .savyn-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.beta-preview #dashboardSheet .investment-chart-layout{grid-template-columns:210px minmax(0,1fr)}
  body.beta-preview #dashboardSheet .investment-chart-donut-wrap,
  body.beta-preview #dashboardSheet .investment-chart-donut{width:196px;height:196px}
  body.beta-preview #dashboardSheet .investment-chart-center{inset:52px}
  body.beta-preview #dashboardSheet .risk-chart-layout{grid-template-columns:180px minmax(0,1fr)}
  body.beta-preview #dashboardSheet .risk-donut-wrap,
  body.beta-preview #dashboardSheet .risk-donut-svg{width:168px;height:168px}
  body.beta-preview #dashboardSheet .risk-donut-center{inset:45px}
}
@media (max-width:680px){
  body.beta-preview #budgetTrackerSheet .budget-summary-grid{grid-template-columns:1fr}
  body.beta-preview #budgetTrackerSheet .budget-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.beta-preview #budgetTrackerSheet .budget-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.beta-preview #budgetTrackerSheet .budget-actions #downloadBudgetExcelBtn{grid-column:1 / -1}
  body.beta-preview #budgetTrackerSheet .budget-action-btn{width:100%;min-width:0;padding-inline:8px;white-space:normal}
  body.beta-preview #budgetTrackerSheet .budget-variance-panel .panel-header{align-items:stretch;flex-direction:column;gap:8px}
  body.beta-preview #budgetTrackerSheet .budget-expense-filter-field{grid-template-columns:1fr}
  body.beta-preview #budgetTrackerSheet .budget-expense-filter-field select{width:100%}
  body.beta-preview #dashboardSheet .investment-chart-layout,
  body.beta-preview #dashboardSheet .risk-chart-layout{grid-template-columns:1fr}
  body.beta-preview #dashboardSheet .investment-chart-legend{max-height:none}
  body.beta-preview #dashboardSheet .panel-header{flex-direction:column;align-items:stretch}
  body.beta-preview #dashboardSheet .dashboard-card-actions,
  body.beta-preview #dashboardSheet .dashboard-yoy-actions{justify-content:flex-start;text-align:left}
}
@media (max-width:520px){
  body.beta-preview #dashboardSheet .savyn-kpi-grid{grid-template-columns:1fr}
  body.beta-preview #dashboardSheet .savyn-kpi-card{min-height:104px}
}

/* FD and RD tracker: scoped to the redesigned Savyn shell. */
body.beta-preview #depositTrackerSheet{min-width:0;overflow-x:hidden}
body.beta-preview #depositTrackerDashboard{color:#102a56}
body.beta-preview #depositTrackerDashboard .deposit-hero{align-items:flex-end;padding:4px 6px 17px;border-bottom:0}
body.beta-preview #depositTrackerDashboard .deposit-hero .section-kicker{margin:0 0 5px;color:#1f66f2;font-size:10px;font-weight:800;letter-spacing:.13em}
body.beta-preview #depositTrackerDashboard .deposit-hero h2{margin:0;color:#102a56;font-size:25px;line-height:1.15;font-weight:750}
body.beta-preview #depositTrackerDashboard .deposit-hero .subcopy{margin:5px 0 0;color:#64748b;font-size:12px;line-height:1.4}
body.beta-preview #depositTrackerDashboard .deposit-hero>button,
body.beta-preview #depositTrackerDashboard .deposit-empty-state>button{min-height:40px;padding:8px 15px;border:1px solid #1f66f2;border-radius:9px;background:#1f66f2;color:#fff;font-size:12px;font-weight:700;box-shadow:0 5px 12px rgba(31,102,242,.16)}
body.beta-preview #depositTrackerDashboard .deposit-hero>button:hover,
body.beta-preview #depositTrackerDashboard .deposit-empty-state>button:hover{background:#1557d7;border-color:#1557d7;transform:none}
body.beta-preview #depositTrackerDashboard .deposit-stats{gap:12px;padding:4px 0 16px}
body.beta-preview #depositTrackerDashboard .deposit-stat{position:relative;min-height:88px;gap:12px;padding:13px 15px;border-color:#e3ebf6;border-radius:14px;box-shadow:0 3px 12px rgba(16,42,86,.035);overflow:hidden}
body.beta-preview #depositTrackerDashboard .deposit-stat-icon{width:44px;height:44px;border-radius:12px;font-size:22px}
body.beta-preview #depositTrackerDashboard .deposit-stat-blue .deposit-stat-icon{background:#eef5ff;color:#1f66f2}
body.beta-preview #depositTrackerDashboard .deposit-stat-green .deposit-stat-icon{background:#eaf9f2;color:#079a63}
body.beta-preview #depositTrackerDashboard .deposit-stat-orange .deposit-stat-icon{background:#fff4e5;color:#f59e0b}
body.beta-preview #depositTrackerDashboard .deposit-stat-purple .deposit-stat-icon{background:#f4efff;color:#7c3aed}
body.beta-preview #depositTrackerDashboard .deposit-stat>div{gap:2px}
body.beta-preview #depositTrackerDashboard .deposit-stat>div>span{color:#64748b;font-size:11px;font-weight:500}
body.beta-preview #depositTrackerDashboard .deposit-stat strong{color:#102a56;font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
body.beta-preview #depositTrackerDashboard .deposit-stat small{color:#64748b;font-size:10px}
body.beta-preview #depositTrackerDashboard .deposit-table-section{min-width:0;padding:13px;border-color:#e3ebf6;border-radius:15px;box-shadow:0 3px 12px rgba(16,42,86,.035)}
body.beta-preview #depositTrackerDashboard .deposit-toolbar{grid-template-columns:minmax(230px,1fr) repeat(4,minmax(112px,145px)) auto;gap:9px;margin-bottom:12px}
body.beta-preview #depositTrackerDashboard .deposit-search{height:40px;padding:0 12px;border-color:#d7e2ef;border-radius:9px}
body.beta-preview #depositTrackerDashboard .deposit-search:focus-within{border-color:#7aa8f8;box-shadow:0 0 0 3px rgba(31,102,242,.09)}
body.beta-preview #depositTrackerDashboard .deposit-search .material-symbols-outlined{color:#6b83a8;font-size:19px}
body.beta-preview #depositTrackerDashboard .deposit-search input{height:38px;color:#102a56;font-size:12px}
body.beta-preview #depositTrackerDashboard .deposit-toolbar>select{height:40px;padding:0 32px 0 11px;border:1px solid #d7e2ef;border-radius:9px;background-color:#fff;color:#102a56;font-size:11px;font-weight:700}
body.beta-preview #depositTrackerDashboard .deposit-add-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 14px;border:1px solid #1f66f2;border-radius:9px;background:#1f66f2;color:#fff;font-size:11px;font-weight:800;white-space:nowrap;box-shadow:0 4px 10px rgba(31,102,242,.14)}
body.beta-preview #depositTrackerDashboard .deposit-add-btn:hover{background:#1557d7;border-color:#1557d7}
body.beta-preview #depositTrackerDashboard .deposit-add-btn .material-symbols-outlined{font-size:18px}
body.beta-preview #depositTrackerDashboard .deposit-table-wrap{max-width:100%;max-height:clamp(300px,calc(100vh - 375px),650px);border-color:#e3ebf6;border-radius:10px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
body.beta-preview #depositTrackerDashboard .deposit-table{width:100%;min-width:1438px;table-layout:fixed;font-variant-numeric:tabular-nums}
body.beta-preview #depositTrackerDashboard .deposit-col-type{width:64px}
body.beta-preview #depositTrackerDashboard .deposit-col-account{width:158px}
body.beta-preview #depositTrackerDashboard .deposit-col-bank{width:138px}
body.beta-preview #depositTrackerDashboard .deposit-col-principal{width:136px}
body.beta-preview #depositTrackerDashboard .deposit-col-rate{width:68px}
body.beta-preview #depositTrackerDashboard .deposit-col-start{width:108px}
body.beta-preview #depositTrackerDashboard .deposit-col-maturity{width:116px}
body.beta-preview #depositTrackerDashboard .deposit-col-interest{width:132px}
body.beta-preview #depositTrackerDashboard .deposit-col-value{width:150px}
body.beta-preview #depositTrackerDashboard .deposit-col-fund{width:124px}
body.beta-preview #depositTrackerDashboard .deposit-col-status{width:94px}
body.beta-preview #depositTrackerDashboard .deposit-col-actions{width:150px}
body.beta-preview #depositTrackerDashboard .deposit-table th{position:sticky;top:0;z-index:3;height:40px;padding:8px 10px;background:#f4f8fd;color:#5d7092;font-size:9.5px;font-weight:800;letter-spacing:.07em;border-bottom-color:#dfe8f3}
body.beta-preview #depositTrackerDashboard .deposit-table td{height:58px;padding:8px 10px;color:#17325c;font-size:12px;line-height:1.25;vertical-align:middle;border-bottom-color:#e8eef6}
body.beta-preview #depositTrackerDashboard .deposit-table tbody tr:hover td{background:#f8fafd}
body.beta-preview #depositTrackerDashboard .deposit-table td small{display:block;margin-top:3px;color:#7183a1;font-size:10px;line-height:1.25}
body.beta-preview #depositTrackerDashboard .deposit-link-btn{max-width:100%;overflow:hidden;text-overflow:ellipsis;color:#1557c0;font-size:12px;font-weight:800;white-space:nowrap;text-decoration:none}
body.beta-preview #depositTrackerDashboard .deposit-link-btn:hover{text-decoration:underline;text-decoration-color:#9dbcf0;text-underline-offset:3px}
body.beta-preview #depositTrackerDashboard .deposit-bank-cell{font-size:12px}
body.beta-preview #depositTrackerDashboard .deposit-principal-cell strong,
body.beta-preview #depositTrackerDashboard .deposit-interest-cell strong,
body.beta-preview #depositTrackerDashboard .deposit-maturity-cell strong{display:block;color:#102a56;font-size:12px;font-weight:800;white-space:nowrap}
body.beta-preview #depositTrackerDashboard .deposit-rate-cell{color:#102a56;font-weight:800;text-align:center}
body.beta-preview #depositTrackerDashboard .deposit-date-cell{white-space:nowrap}
body.beta-preview #depositTrackerDashboard .deposit-date-soon{color:#a86b00;font-weight:700}
body.beta-preview #depositTrackerDashboard .deposit-date-soon small{color:#a86b00;font-weight:700}
body.beta-preview #depositTrackerDashboard .deposit-type-cell,
body.beta-preview #depositTrackerDashboard .deposit-fund-cell,
body.beta-preview #depositTrackerDashboard .deposit-status-cell{text-align:center}
body.beta-preview #depositTrackerDashboard .deposit-type-head,
body.beta-preview #depositTrackerDashboard .deposit-rate-head,
body.beta-preview #depositTrackerDashboard .deposit-fund-head,
body.beta-preview #depositTrackerDashboard .deposit-status-head,
body.beta-preview #depositTrackerDashboard .deposit-actions-head{text-align:center}
body.beta-preview #depositTrackerDashboard .deposit-type-badge,
body.beta-preview #depositTrackerDashboard .deposit-status,
body.beta-preview #depositTrackerDashboard .deposit-fund-tag{min-height:24px;justify-content:center;padding:4px 9px;font-size:9.5px;font-weight:800}
body.beta-preview #depositTrackerDashboard .deposit-type-fd{background:#eef5ff;color:#1f66f2}
body.beta-preview #depositTrackerDashboard .deposit-type-rd{background:#eaf9f2;color:#07835a}
body.beta-preview #depositTrackerDashboard .fund-emergency{background:#fff0e8;color:#c65a1e}
body.beta-preview #depositTrackerDashboard .fund-normal{background:#eef5ff;color:#1f66f2}
body.beta-preview #depositTrackerDashboard .deposit-status-active{background:#eaf9f2;color:#07835a}
body.beta-preview #depositTrackerDashboard .deposit-status-matured{background:#f4efff;color:#6d28d9}
body.beta-preview #depositTrackerDashboard .deposit-status-closed{background:#edf2f7;color:#526174}
body.beta-preview #depositTrackerDashboard .deposit-status-renewed{background:#f4efff;color:#6d28d9}
body.beta-preview #depositTrackerDashboard .deposit-status-archived{background:#f1f5f9;color:#64748b}
body.beta-preview #depositTrackerDashboard .deposit-actions-cell{padding-inline:7px}
body.beta-preview #depositTrackerDashboard .deposit-actions-cell .action-btns{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:nowrap}
body.beta-preview #depositTrackerDashboard .deposit-table-wrap .icon-btn{width:30px;height:30px;flex:0 0 30px;border-color:#cedbea;border-radius:8px;color:#173b70;transition:background .14s ease,border-color .14s ease,color .14s ease}
body.beta-preview #depositTrackerDashboard .deposit-table-wrap .icon-btn:hover{border-color:#8db4ee;background:#eef5ff;color:#1f66f2}
body.beta-preview #depositTrackerDashboard .deposit-table-wrap .deposit-archive-btn:hover{border-color:#f5b8b8;background:#fff0f0;color:#d83b3b}
body.beta-preview #depositTrackerDashboard .deposit-table-wrap .icon-btn .material-symbols-outlined{font-size:16px}
body.beta-preview #depositTrackerDashboard .deposit-table tfoot td{position:sticky;bottom:0;z-index:2;height:48px;border-top:1px solid #cfdceb;border-bottom:0;background:#f4f8fd;color:#102a56;font-size:11.5px}
body.beta-preview #depositTrackerDashboard .deposit-table .deposit-subtotal-row td:first-child{padding-left:12px}
body.beta-preview #depositTrackerDashboard .deposit-subtotal-row td:first-child strong{font-size:12px}
body.beta-preview #depositTrackerDashboard .deposit-subtotal-row td:first-child small{display:inline;margin:0 0 0 6px;color:#7183a1;font-size:9.5px;font-weight:600}
body.beta-preview #depositTrackerDashboard .deposit-subtotal-row .amount-cell strong{font-size:12px;white-space:nowrap}
body.beta-preview #depositTrackerDashboard .deposit-empty-state{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#64748b;text-align:center;white-space:normal}
body.beta-preview #depositTrackerDashboard .deposit-empty-state>.material-symbols-outlined{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#eef5ff;color:#1f66f2;font-size:23px}
body.beta-preview #depositTrackerDashboard .deposit-empty-state strong{color:#102a56;font-size:14px}
body.beta-preview #depositTrackerDashboard .deposit-empty-state small{max-width:340px;font-size:11px}
body.beta-preview #depositTrackerDashboard .deposit-empty-state>button{margin-top:5px}

@media (max-width:1180px){
  body.beta-preview #depositTrackerDashboard .deposit-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.beta-preview #depositTrackerDashboard .deposit-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.beta-preview #depositTrackerDashboard .deposit-search{grid-column:1/-1}
}
@media (max-width:760px){
  body.beta-preview #depositTrackerDashboard .deposit-hero{align-items:flex-start;gap:13px}
  body.beta-preview #depositTrackerDashboard .deposit-hero h2{font-size:22px}
  body.beta-preview #depositTrackerDashboard .deposit-hero>button{min-height:38px;padding-inline:12px}
  body.beta-preview #depositTrackerDashboard .deposit-stats{gap:9px;padding-bottom:12px}
  body.beta-preview #depositTrackerDashboard .deposit-stat{min-height:82px;padding:12px}
  body.beta-preview #depositTrackerDashboard .deposit-stat strong{font-size:17px}
  body.beta-preview #depositTrackerDashboard .deposit-table-section{padding:10px}
  body.beta-preview #depositTrackerDashboard .deposit-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.beta-preview #depositTrackerDashboard .deposit-search{grid-column:1/-1}
  body.beta-preview #depositTrackerDashboard .deposit-add-btn{grid-column:1/-1}
  body.beta-preview #depositTrackerDashboard .deposit-table-wrap{max-height:calc(100vh - 405px)}
}
@media (max-width:520px){
  body.beta-preview #depositTrackerDashboard .deposit-hero{flex-direction:column;padding-inline:0}
  body.beta-preview #depositTrackerDashboard .deposit-hero>button{width:100%;justify-content:center}
  body.beta-preview #depositTrackerDashboard .deposit-stats{grid-template-columns:1fr}
  body.beta-preview #depositTrackerDashboard .deposit-stat{min-height:78px}
}

/* FD/RD link and edit modal */
body.beta-preview .deposit-dialog-backdrop{padding:16px;background:rgba(15,30,50,.56);backdrop-filter:blur(5px)}
body.beta-preview .deposit-dialog{width:min(960px,calc(100vw - 32px));max-height:min(90vh,900px);border:1px solid #dce7f5;border-radius:16px;background:#fff;box-shadow:0 28px 70px rgba(8,30,58,.24);overflow:hidden}
body.beta-preview .deposit-dialog-header{flex:0 0 auto;align-items:flex-start;padding:20px 28px 14px;border-bottom:0;background:#fff}
body.beta-preview .deposit-dialog-header .section-kicker{margin:0 0 4px;color:#64748b;font-size:10px;font-weight:800;letter-spacing:.14em}
body.beta-preview .deposit-dialog-header h3{margin:0;color:#102a56;font-size:25px;line-height:1.15;font-weight:750}
body.beta-preview .deposit-dialog-subtitle{margin:4px 0 0;color:#526b90;font-size:12px;line-height:1.4}
body.beta-preview .deposit-dialog-close{width:40px;height:40px;flex:0 0 40px;border:1px solid #cbdbee;border-radius:10px;background:#fff;color:#173b70}
body.beta-preview .deposit-dialog-close:hover{border-color:#8fb3e8;background:#eef5ff;color:#1f66f2}
body.beta-preview .deposit-dialog-close .material-symbols-outlined{font-size:21px}
body.beta-preview .deposit-dialog-body{min-height:0;padding:0 28px 18px;overflow:auto;scrollbar-gutter:stable}
body.beta-preview .deposit-link-summary{grid-template-columns:48px minmax(0,1fr) auto;gap:13px;min-height:82px;margin:0 0 14px;padding:12px 14px;border:1px solid #cfe1fa;border-radius:13px;background:#eef5ff}
body.beta-preview .deposit-source-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:11px;background:#dbeaff;color:#1f66f2;font-size:25px}
body.beta-preview .deposit-source-copy{display:grid;gap:2px;min-width:0}
body.beta-preview .deposit-source-copy strong{overflow:hidden;color:#102a56;font-size:15px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
body.beta-preview .deposit-source-copy span{color:#526b90;font-size:11px}
body.beta-preview .deposit-source-amount{display:grid;gap:2px;align-content:center;justify-items:end;min-width:152px;padding:8px 12px;border-radius:10px;background:rgba(255,255,255,.68)}
body.beta-preview .deposit-source-amount span{color:#526b90;font-size:10px}
body.beta-preview .deposit-source-amount strong{color:#0e3a82;font-size:19px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
body.beta-preview .deposit-mode-field{gap:6px;margin:0 0 14px}
body.beta-preview .deposit-mode-field>span:first-child,
body.beta-preview .deposit-field-label{display:flex;align-items:center;gap:3px;color:#29456e;font-size:11.5px;font-weight:700;line-height:1.3}
body.beta-preview .deposit-mode-control,
body.beta-preview .deposit-field-control{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;min-width:0;height:44px;border:1px solid #d7e3f2;border-radius:9px;background:#fff;overflow:hidden;transition:border-color .14s ease,box-shadow .14s ease}
body.beta-preview .deposit-mode-control{display:block}
body.beta-preview .deposit-mode-control:focus-within,
body.beta-preview .deposit-field-control:focus-within{border-color:#1f66f2;box-shadow:0 0 0 3px rgba(31,102,242,.09)}
body.beta-preview .deposit-mode-control>select{width:100%;height:42px;padding:0 38px 0 13px;border:0!important;border-radius:0!important;background-color:transparent;color:#102a56;font-size:12px;font-weight:600;box-shadow:none!important;outline:0}
body.beta-preview .deposit-prompt-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 16px}
body.beta-preview .deposit-prompt-field{display:grid;gap:6px;min-width:0}
body.beta-preview .deposit-required{margin-left:3px;color:#f05252;font-size:12px;font-style:normal}
body.beta-preview .deposit-label-optional{color:#64748b;font-size:10px;font-weight:500}
body.beta-preview .deposit-label-info{margin-left:3px;color:#2b5d9b;font-size:15px;line-height:1;cursor:help}
body.beta-preview .deposit-label-info:focus-visible{border-radius:50%;outline:2px solid rgba(31,102,242,.3);outline-offset:2px}
body.beta-preview .deposit-field-icon{display:grid;place-items:center;width:42px;height:42px;border-right:1px solid #e4ecf7;color:#1f66f2;font-size:18px}
body.beta-preview .deposit-field-control>input,
body.beta-preview .deposit-field-control>select{width:100%;min-width:0;height:42px;padding:0 12px;border:0!important;border-radius:0!important;background-color:#fff;color:#102a56;font-size:12px;font-weight:500;box-shadow:none!important;outline:0}
body.beta-preview .deposit-field-control>select{padding-right:34px}
body.beta-preview .deposit-field-control>input::placeholder{color:#8a99ae;font-weight:400}
body.beta-preview .deposit-field-control>input[type=date]{font-variant-numeric:tabular-nums}
body.beta-preview #depositOpeningInvestmentHint{margin:8px 0 0;padding-left:2px;color:#64748b;font-size:10px}
body.beta-preview .deposit-existing-summary{gap:10px;margin-bottom:14px}
body.beta-preview .deposit-existing-summary>div{padding:10px 12px;border-color:#dce7f5;border-radius:9px;background:#f8fbff}
body.beta-preview .deposit-estimate{display:grid;grid-template-columns:48px minmax(145px,1fr) minmax(145px,1fr) minmax(210px,1.25fr);align-items:center;gap:0;margin-top:15px;padding:12px 14px;border:1px solid #bfe8d1;border-radius:12px;background:#f0faf5}
body.beta-preview .deposit-estimate-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#dff6e9;color:#079a63;font-size:22px}
body.beta-preview .deposit-estimate-metric{display:grid;gap:2px;min-width:0;padding:0 20px;border-left:1px solid #b9ddca}
body.beta-preview .deposit-estimate-metric span{color:#365774;font-size:10.5px}
body.beta-preview .deposit-estimate-metric strong{overflow:hidden;color:#075f40;font-size:17px;font-weight:800;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}
body.beta-preview .deposit-estimate-note{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0;padding-left:16px;color:#365774}
body.beta-preview .deposit-estimate-note .material-symbols-outlined{flex:0 0 auto;font-size:17px}
body.beta-preview .deposit-estimate-note small{color:#365774;font-size:9.5px;line-height:1.35;text-align:right}
body.beta-preview .deposit-dialog-feedback{flex:0 0 auto;margin:0;padding:0 28px 8px;background:#fff}
body.beta-preview .deposit-dialog-actions{position:relative;flex:0 0 auto;min-height:68px;align-items:center;padding:11px 28px 15px;border-top:1px solid #edf2f8;background:#fff}
body.beta-preview .deposit-dialog-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:104px;height:44px;padding:0 16px;border-radius:10px;font-size:12px;font-weight:700}
body.beta-preview .deposit-dialog-actions #depositPromptCancelBtn{border-color:#aac8f3;background:#fff;color:#1557c0}
body.beta-preview .deposit-dialog-actions #depositPromptCancelBtn:hover{background:#eef5ff}
body.beta-preview .deposit-dialog-actions #depositPromptSaveBtn{min-width:154px;border-color:#1f66f2;background:#1f66f2;color:#fff;box-shadow:0 5px 12px rgba(31,102,242,.16)}
body.beta-preview .deposit-dialog-actions #depositPromptSaveBtn:hover{background:#1557d7;border-color:#1557d7}
body.beta-preview .deposit-dialog-actions #depositPromptSaveBtn .material-symbols-outlined{font-size:17px}

@media (max-width:760px){
  body.beta-preview .deposit-dialog-backdrop{align-items:center;padding:12px}
  body.beta-preview .deposit-dialog{width:min(100%,calc(100vw - 24px));max-height:calc(100vh - 24px);border-radius:15px}
  body.beta-preview .deposit-dialog-header{padding:17px 17px 12px}
  body.beta-preview .deposit-dialog-header h3{font-size:21px}
  body.beta-preview .deposit-dialog-subtitle{font-size:11px}
  body.beta-preview .deposit-dialog-body{padding:0 17px 15px}
  body.beta-preview .deposit-prompt-grid{grid-template-columns:1fr;gap:10px}
  body.beta-preview .deposit-link-summary{grid-template-columns:42px minmax(0,1fr);min-height:0;padding:11px}
  body.beta-preview .deposit-source-icon{width:42px;height:42px;font-size:22px}
  body.beta-preview .deposit-source-amount{grid-column:1/-1;grid-template-columns:1fr auto;justify-items:initial;min-width:0;padding:8px 10px}
  body.beta-preview .deposit-source-amount strong{text-align:right;font-size:16px}
  body.beta-preview .deposit-estimate{grid-template-columns:42px repeat(2,minmax(0,1fr));padding:11px}
  body.beta-preview .deposit-estimate-icon{width:38px;height:38px;font-size:20px}
  body.beta-preview .deposit-estimate-metric{padding:0 10px}
  body.beta-preview .deposit-estimate-metric strong{font-size:14px}
  body.beta-preview .deposit-estimate-note{grid-column:1/-1;justify-content:flex-start;margin-top:10px;padding:9px 0 0;border-top:1px solid #cde8d9}
  body.beta-preview .deposit-estimate-note small{text-align:left}
  body.beta-preview .deposit-dialog-feedback{padding-inline:17px}
  body.beta-preview .deposit-dialog-actions{padding:10px 17px 13px}
  body.beta-preview .deposit-dialog-actions>*{flex:1;min-width:0!important}
}
