/* SignControl — financial workspace. These rules are scoped to the app. */
.app-shell {
  --sc-ink: #172338;
  --sc-muted: #7f8a9c;
  --sc-line: #e9edf3;
  --sc-canvas: #f3f5f8;
  --sc-teal: #0ba883;
  --sc-coral: #f06a68;
  --sc-violet: #7872ed;
  --sc-red: #ed2547;
  --sc-sidebar: 238px;
  min-height: 100dvh;
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-size: 13px;
}

.app-shell button,
.app-shell a,
.app-shell input,
.app-shell select { -webkit-tap-highlight-color: transparent; }
.app-shell button:focus-visible,
.app-shell a:focus-visible,
.app-shell select:focus-visible,
.app-shell input:focus-visible,
.app-shell [tabindex]:focus-visible {
  outline: 3px solid #8c92f4;
  outline-offset: 4px;
}
.app-shell button:disabled { cursor: wait; opacity: .65; }
.app-shell [hidden] { display: none !important; }

/* Navigation */
.app-shell .sidebar {
  width: var(--sc-sidebar);
  padding: 29px 17px 16px;
  border: 0;
  background: #111b2c;
  color: #fff;
  box-shadow: none;
}
.app-shell .sidebar .brand {
  min-height: 57px;
  gap: 10px;
  padding: 0 11px 25px;
  color: #fff;
}
.app-shell .brand-mark {
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 10px;
  background: #ed2547;
  box-shadow: 0 5px 15px #f0274430;
}
.app-shell .brand-mark svg { width: 25px; height: 25px; }
.app-shell .brand-copy strong {
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.9px;
}
.app-shell .brand-copy small {
  margin-top: 6px;
  color: #a6b1c2;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 2.9px;
}
.app-shell .workspace-switcher {
  height: 61px;
  gap: 11px;
  padding: 10px;
  margin: 4px 0 28px;
  border: 1px solid #2a3444;
  border-radius: 11px;
  background: #1a2435;
}
.app-shell .workspace-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #3d4657;
  border-radius: 9px;
  background: #2a3547;
  color: #e5eaf5;
  font-size: 11px;
}
.app-shell .workspace-name strong { color: #eef1f7; font-size: 12px; }
.app-shell .workspace-name small { color: #8e9bb0; font-size: 10px; }
.app-shell .chevron { color: #8390a5; stroke: currentColor; }
.app-shell .side-nav { padding: 0 1px 20px; }
.app-shell .nav-label {
  margin: 0 13px 11px;
  color: #6d7b91;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.6px;
}
.app-shell .nav-label-spaced { margin-top: 27px; }
.app-shell .nav-item {
  position: relative;
  height: 43px;
  gap: 12px;
  padding: 0 13px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: transparent;
  color: #9facc0;
  font-size: 12px;
  font-weight: 500;
  transition: color .18s ease, background .18s ease;
}
.app-shell .nav-item:hover {
  transform: none;
  background: #1c283b;
  color: #f1f3f8;
}
.app-shell .nav-item.active {
  background: #ed2547;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 5px 14px #ed25471c;
}
.app-shell .nav-item.active::before {
  position: absolute;
  inset: 12px auto 12px -18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #f7778e;
  content: "";
}
.app-shell .nav-icon {
  display: grid;
  width: 19px;
  height: 20px;
  flex: none;
  place-items: center;
  color: #8492a8;
  font-size: 19px;
}
.app-shell .nav-icon svg,
.app-shell .sc-kpi-icon svg,
.app-shell .sc-section-actions svg,
.app-shell .sc-intro-actions svg,
.app-shell .sc-account-logo svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-shell .nav-item.active .nav-icon { color: #fff; }
.app-shell .nav-item:hover .nav-icon { color: currentColor; }
.app-shell .nav-count {
  min-width: 22px;
  padding: 2px 5px;
  border: 0;
  border-radius: 5px;
  background: #2b3546;
  color: #b9c3d4;
  font-size: 9px;
  text-align: center;
}
.app-shell .nav-item.active .nav-count { background: #ffffff2b; color: #fff; }
.app-shell .sidebar-bottom { padding-top: 14px; }
.app-shell .help-card,
.app-shell .sc-sidebar-upgrade {
  position: relative;
  overflow: hidden;
  padding: 17px 14px;
  margin-bottom: 18px;
  border: 1px solid #2d394d;
  border-radius: 12px;
  background: linear-gradient(115deg, #202c42, #192436);
}
.app-shell .help-spark {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #39415d;
  color: #c8b9ff;
}
.app-shell .help-card strong,
.app-shell .sc-sidebar-upgrade strong { color: #eff1f6; font-size: 11px; }
.app-shell .help-card > span,
.app-shell .sc-sidebar-upgrade p { margin-top: 6px; color: #94a1b6; font-size: 10px; line-height: 1.65; }
.app-shell .help-card button { margin-top: 11px; color: #f5c7d0; font-size: 10px; }
.app-shell .profile-button {
  gap: 10px;
  padding: 17px 3px 2px;
  border-color: #2b3546;
  background: transparent;
  color: #fff;
}
.app-shell .profile-avatar {
  width: 33px;
  height: 33px;
  flex: none;
  border: 1px solid #58637b;
  border-radius: 10px;
  background: #35415a;
  color: #e4e8f3;
  font-size: 11px;
}
.app-shell .profile-copy strong { color: #e9edf5; font-size: 11px; }
.app-shell .profile-copy small { max-width: 143px; color: #7f8fa8; font-size: 9px; }
.app-shell .profile-more { color: #92a0b5; }

/* Main frame and controls */
.app-shell .main-content { min-width: 0; margin-left: var(--sc-sidebar); background: var(--sc-canvas); }
.app-shell .topbar {
  height: 76px;
  gap: 18px;
  padding: 0 34px;
  border-bottom: 1px solid #e5e9ef;
  background: #ffffffeb;
  backdrop-filter: blur(16px);
}
.app-shell .breadcrumbs { gap: 12px; color: #8b95a7; font-size: 12px; }
.app-shell .breadcrumbs strong { color: #435065; font-size: 12px; font-weight: 600; }
.app-shell .crumb-sep { color: #c5ccd6; }
.app-shell .topbar-actions { gap: 13px; }
.app-shell .demo-pill { height: 28px; font-size: 9px; }
.app-shell .demo-pill.is-live { border-color: #dcf0e9; background: #f0faf6; color: #40826f; }
.app-shell .icon-button,
.app-shell .mobile-menu {
  width: 35px;
  height: 35px;
  border: 1px solid #e9edf3;
  border-radius: 9px;
  background: #fff;
  color: #8290a2;
}
.app-shell .icon-button:hover,
.app-shell .mobile-menu:hover { border-color: #d3dae5; background: #f7f9fc; color: #293e5b; transform: none; box-shadow: none; }
.app-shell .icon-button svg { width: 17px; height: 17px; }
.app-shell .notification-button i { top: 6px; right: 7px; width: 6px; height: 6px; background: #ed2547; }
.app-shell .top-avatar {
  width: 35px;
  height: 35px;
  margin-left: 4px;
  border: 3px solid #fff;
  border-radius: 10px;
  background: #efeafd;
  box-shadow: 0 0 0 1px #e1dced;
  color: #7d6eb2;
  font-size: 10px;
}
.app-shell .page-wrap { max-width: 1800px; padding: 29px 34px 18px; }
.app-shell .demo-notice { gap: 9px; padding: 10px 13px; margin-bottom: 24px; border-radius: 9px; font-size: 11px; line-height: 1.5; }
.app-shell .page-heading { align-items: center; gap: 20px; margin-bottom: 24px; }
.app-shell .eyebrow,
.app-shell .sc-eyebrow { margin: 0 0 8px; color: #8994a6; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; line-height: 1.5; }
.app-shell .page-heading h1,
.app-shell .sc-greeting { margin: 0; color: #19263c; font: 800 clamp(24px, 2.1vw, 32px)/1.2 Manrope, sans-serif; letter-spacing: -1.1px; }
.app-shell .wave { margin-left: 6px; color: #efa84e; font-size: 21px; vertical-align: 2px; }
.app-shell .heading-subtitle { margin: 9px 0 0; color: #8590a1; font-size: 12px; line-height: 1.6; }
.app-shell .heading-actions,
.app-shell .sc-intro-actions { display: flex; flex: none; align-items: center; gap: 9px; }
.app-shell .button { min-height: 39px; height: auto; padding: 10px 13px; gap: 7px; border-radius: 8px; font-size: 11px; }
.app-shell .button-primary { border-color: #ed2547; background: #ed2547; box-shadow: 0 4px 10px #d91f3c17; }
.app-shell .button-primary:hover { border-color: #d9193b; background: #d9193b; box-shadow: 0 5px 12px #d91f3c28; transform: translateY(-1px); }
.app-shell .button-quiet { border-color: #dfe5ed; background: #fff; color: #526175; }
.app-shell .button-quiet:hover { border-color: #c8d1df; background: #fff; color: #253c5b; box-shadow: 0 3px 9px #14264206; transform: none; }
.app-shell .sc-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.app-shell .sc-period-control { display: inline-flex; align-items: center; gap: 9px; min-height: 39px; padding: 8px 12px; border: 1px solid #dfe5ed; border-radius: 8px; background: #fff; color: #46556d; font-size: 11px; }
.app-shell .sc-period-control svg { width: 15px; height: 15px; color: #8c97a8; }
.app-shell .sc-period-control select { max-width: 180px; padding-right: 5px; border: 0; background: transparent; color: #46556d; outline: none; font-size: 11px; font-weight: 600; cursor: pointer; }
.app-shell .sc-period-preset { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid #e1e6ee; border-radius: 8px; background: #ebeff5; }
.app-shell .sc-period-preset button { min-height: 28px; padding: 5px 9px; border: 0; border-radius: 5px; background: transparent; color: #8792a4; font-size: 10px; }
.app-shell .sc-period-preset button.active,
.app-shell .sc-period-preset button[aria-pressed="true"] { background: #fff; color: #32445f; box-shadow: 0 2px 5px #14264209; font-weight: 700; }
.app-shell .sc-live-badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #689582; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.app-shell .sc-live-badge::before { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #10b386; box-shadow: 0 0 0 4px #10b3860c; content: ""; }
.app-shell .sc-info-label { display: inline-flex; width: 14px; height: 14px; align-items: center; justify-content: center; border: 1px solid #c3ccd9; border-radius: 50%; color: #a3afbf; font-size: 8px; font-style: normal; line-height: 1; cursor: help; }

/* Key figures */
.app-shell .sc-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin: 0 0 22px; }
.app-shell .sc-kpi {
  position: relative;
  min-width: 0;
  min-height: 174px;
  overflow: hidden;
  padding: 20px 20px 17px;
  border: 1px solid #e6ebf2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 8px #14264202;
}
.app-shell .sc-kpi .metric-top { min-height: 31px; gap: 8px; color: #8590a2; font-size: 11px; font-weight: 500; }
.app-shell .sc-kpi-label { display: flex; align-items: center; gap: 7px; margin: 0; color: #8390a2; font-size: 11px; font-weight: 500; }
.app-shell .sc-kpi-icon,
.app-shell .sc-kpi .metric-icon { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 10px; background: #eef4ff; color: #6e8ce2; }
.app-shell .sc-kpi-icon.teal,
.app-shell .sc-kpi .metric-icon.mint { background: #e8f8f3; color: #0ea883; }
.app-shell .sc-kpi-icon.coral,
.app-shell .sc-kpi .metric-icon.orange { background: #fff0ec; color: #ef7a6a; }
.app-shell .sc-kpi-icon.violet,
.app-shell .sc-kpi .metric-icon.purple { background: #f1eeff; color: #8a7ae6; }
.app-shell .sc-kpi-icon svg { width: 18px; height: 18px; }
.app-shell .sc-kpi-value,
.app-shell .sc-kpi .metric-value { position: relative; z-index: 1; margin: 13px 0 13px; color: #1e2d43; font: 800 clamp(22px, 1.9vw, 28px)/1.15 Manrope, sans-serif; letter-spacing: -1px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.app-shell .sc-kpi-value span,
.app-shell .sc-kpi .metric-value span { color: inherit; font-size: .7em; font-weight: 700; }
.app-shell .sc-kpi-footer,
.app-shell .sc-kpi .metric-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; margin: 0; color: #98a1b0; font-size: 9px; line-height: 1.5; }
.app-shell .sc-kpi-caption { color: #9aa4b2; font-size: 9px; }
.app-shell .sc-kpi-change,
.app-shell .sc-kpi .trend { display: inline-flex; align-items: center; gap: 3px; padding: 3px 5px; border-radius: 4px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.app-shell .sc-kpi-change.positive,
.app-shell .sc-kpi .trend.positive { background: #ecf9f3; color: #0b9c77; }
.app-shell .sc-kpi-change.negative { background: #fff0ed; color: #e57367; }
.app-shell .sc-kpi-change.neutral { background: #f0f3f8; color: #8c98ab; }
.app-shell .sc-kpi-spark { position: absolute; right: 17px; bottom: 20px; display: block; width: 74px; height: 29px; overflow: visible; opacity: .75; }
.app-shell .sc-kpi-spark path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-shell .sc-kpi-detail { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; margin-top: 11px; border-top: 1px solid #f0f2f6; color: #8c98aa; font-size: 9px; }
.app-shell .sc-kpi-detail strong { color: #596a82; font-weight: 600; }
.app-shell .sc-kpi-dark,
.app-shell .sc-kpi.balance-card { border-color: #17263f; background: linear-gradient(115deg, #1a2c48, #14233b); color: #fff; }
.app-shell .sc-kpi-dark::after,
.app-shell .sc-kpi.balance-card::after { position: absolute; right: -24px; bottom: -102px; width: 230px; height: 230px; border: 1px solid #ffffff05; border-radius: 50%; box-shadow: 0 0 0 25px #ffffff03, 0 0 0 50px #ffffff02; content: ""; pointer-events: none; }
.app-shell .sc-kpi-dark .sc-kpi-label,
.app-shell .sc-kpi.balance-card .metric-top { color: #b4c2d6; }
.app-shell .sc-kpi-dark .sc-kpi-value,
.app-shell .sc-kpi.balance-card .metric-value { color: #fff; }
.app-shell .sc-kpi-dark .sc-kpi-icon,
.app-shell .sc-kpi.balance-card .metric-icon { background: #30435e; color: #c5d6ec; }
.app-shell .sc-kpi-dark .sc-kpi-change,
.app-shell .sc-kpi.balance-card .trend { background: #1d4c46; color: #7cdcc1; }
.app-shell .sc-kpi-dark .sc-kpi-footer,
.app-shell .sc-kpi.balance-card .metric-foot { color: #8ea3be; }
.app-shell .sc-kpi-dark .sc-kpi-detail,
.app-shell .sc-kpi.balance-card .sc-kpi-detail { border-color: #ffffff12; color: #93a7c3; }
.app-shell .sc-kpi-dark .sc-kpi-detail strong { color: #e1e8f4; }

/* Panel foundation */
.app-shell .sc-panel { min-width: 0; border: 1px solid #e5eaf1; border-radius: 14px; background: #fff; box-shadow: 0 3px 8px #14264202; }
.app-shell .sc-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 23px 0; }
.app-shell .sc-panel-title,
.app-shell .sc-panel-header h2 { display: flex; align-items: center; gap: 7px; margin: 0; color: #253349; font: 800 13px/1.5 Manrope, sans-serif; letter-spacing: -.2px; }
.app-shell .sc-panel-subtitle,
.app-shell .sc-panel-header p { margin: 5px 0 0; color: #96a0af; font-size: 10px; line-height: 1.6; }
.app-shell .sc-section-actions { display: flex; flex: none; align-items: center; gap: 7px; }
.app-shell .sc-section-actions .icon-button { width: 27px; height: 27px; border: 0; color: #a3acb9; }
.app-shell .sc-section-actions .select-button { min-height: 29px; height: auto; padding: 6px 9px; color: #7d8a9c; font-size: 9px; }
.app-shell .sc-section-actions .select-button:hover { transform: none; box-shadow: none; border-color: #d7dfeb; background: #f8faff; color: #425873; }
.app-shell .sc-detail-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #7a75db; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.app-shell .sc-detail-link:hover { color: #564cc0; text-decoration: underline; text-underline-offset: 3px; }
.app-shell .sc-chart-grid { display: grid; grid-template-columns: minmax(0, 1.94fr) minmax(280px, 1fr); gap: 20px; margin-bottom: 22px; }
.app-shell .sc-cashflow-panel { position: relative; overflow: hidden; }
.app-shell .sc-chart-summary { display: flex; align-items: center; gap: 10px; padding: 18px 24px 4px; }
.app-shell .sc-chart-value { color: #20304a; font: 800 25px/1.2 Manrope, sans-serif; letter-spacing: -.8px; }
.app-shell .sc-chart-summary > small { color: #9aa5b5; font-size: 9px; }
.app-shell .sc-chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; padding: 16px 24px 9px; color: #8c98a9; font-size: 9px; }
.app-shell .sc-chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.app-shell .sc-chart-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #0ba883; }
.app-shell .sc-chart-legend i.expense,
.app-shell .sc-chart-legend > span:nth-child(2) i { background: #f17871; }
.app-shell .sc-chart-legend i.previous { background: #c3c8d5; }
.app-shell .sc-chart-legend strong { color: #536781; font-size: 9px; font-weight: 700; }
.app-shell .sc-chart-toggle { padding: 6px 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #99a3b4; font-size: 9px; font-weight: 500; }
.app-shell .sc-chart-toggle.active { border-color: #e4e8f0; background: #f8fafc; color: #51627c; font-weight: 700; }
.app-shell .sc-chart-toggle:hover { background: #f1f4f9; color: #40516c; }
.app-shell .sc-chart-wrap { position: relative; min-height: 235px; padding: 8px 23px 0; }
.app-shell .sc-chart-wrap .chart-wrap { height: 225px; padding-left: 45px; }
.app-shell .sc-chart-wrap .cash-chart { display: block; width: 100%; height: 100%; }
.app-shell .sc-chart-wrap > svg { display: block; width: 100%; height: 238px; overflow: visible; }
.app-shell .sc-chart-wrap .grid-lines path,
.app-shell .sc-chart-wrap .sc-grid-line { stroke: #e9edf3; stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.app-shell .sc-chart-wrap .income-line { stroke: #0ba883; stroke-width: 2.7; }
.app-shell .sc-chart-wrap .expense-line { stroke: #f17871; stroke-width: 2.3; }
.app-shell .sc-chart-wrap .income-point { fill: #0ba883; }
.app-shell .sc-chart-wrap .expense-point { fill: #f17871; }
.app-shell .sc-chart-wrap .y-labels { padding-top: 0; color: #a0a9b8; font-size: 9px; }
.app-shell .sc-chart-wrap .x-labels { padding: 0 0 0 45px; margin-top: 7px; color: #99a4b5; font-size: 9px; }
.app-shell .sc-chart-xlabels { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 25px 20px 70px; color: #9aa5b5; font-size: 9px; }
.app-shell .sc-chart-ylabels { position: absolute; top: 11px; bottom: 8px; left: 22px; display: flex; flex-direction: column; justify-content: space-between; color: #a0a9b8; font-size: 9px; }
.app-shell .sc-chart-point { outline: none; cursor: crosshair; }
.app-shell .sc-chart-point:hover,
.app-shell .sc-chart-point:focus { filter: drop-shadow(0 0 4px #0ba88365); }
.app-shell .sc-chart-point:focus-visible { outline: none; stroke: #172b4c; stroke-width: 3; }
.app-shell .sc-chart-tooltip { position: absolute; z-index: 3; min-width: 140px; padding: 12px 14px; border: 1px solid #e6eaf2; border-radius: 10px; background: #fffffffa; box-shadow: 0 10px 30px #1c30451a; color: #65748a; font-size: 10px; pointer-events: none; }
.app-shell .sc-chart-tooltip strong { display: block; margin-bottom: 7px; color: #263953; font-size: 11px; }
.app-shell .sc-chart-tooltip span { display: flex; justify-content: space-between; gap: 15px; margin-top: 5px; }
.app-shell .sc-chart-tooltip b { color: #0b9a77; font-weight: 700; }
.app-shell .sc-chart-tooltip .expense b { color: #e97369; }

/* Realisation ring */
.app-shell .sc-health-panel { position: relative; padding-bottom: 19px; }
.app-shell .sc-health-ring { position: relative; display: grid; width: 182px; height: 182px; place-items: center; margin: 20px auto 12px; }
.app-shell .sc-health-ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.app-shell .sc-health-ring circle { fill: none; stroke-width: 11; }
.app-shell .sc-health-ring .ring-track { stroke: #eff2f8; }
.app-shell .sc-health-ring .ring-progress { stroke: #7a73e8; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.app-shell .sc-donut-center,
.app-shell .sc-health-ring > div { position: relative; display: flex; align-items: center; flex-direction: column; gap: 4px; text-align: center; }
.app-shell .sc-donut-center strong,
.app-shell .sc-health-ring > div > strong { color: #25334c; font: 800 31px/1.1 Manrope, sans-serif; letter-spacing: -1px; }
.app-shell .sc-donut-center strong span { color: #7b83a0; font-size: 17px; font-weight: 700; }
.app-shell .sc-donut-center small,
.app-shell .sc-health-ring > div > small { color: #a0a8b7; font-size: 9px; }
.app-shell .sc-health-caption { margin: 0 20px 16px; color: #8794a8; font-size: 10px; line-height: 1.6; text-align: center; }
.app-shell .sc-health-caption strong { color: #576880; font-weight: 600; }
.app-shell .sc-health-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 22px 0; border-top: 1px solid #edf0f5; }
.app-shell .sc-health-stat { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.app-shell .sc-health-stat > span,
.app-shell .sc-health-stats > div > span { color: #96a0b1; font-size: 9px; }
.app-shell .sc-health-stat > strong,
.app-shell .sc-health-stats > div > strong { display: block; margin-top: 5px; color: #394b66; font: 800 14px/1.4 Manrope, sans-serif; letter-spacing: -.4px; }
.app-shell .sc-health-bar { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 5px; background: #f0f2f7; }
.app-shell .sc-health-bar > i,
.app-shell .sc-health-bar > span { display: block; height: 100%; border-radius: inherit; background: #8278ea; }
.app-shell .sc-health-stats > div:last-child .sc-health-bar > i,
.app-shell .sc-health-stats > div:last-child .sc-health-bar > span { background: #f1a49d; }

/* Operational analysis */
.app-shell .sc-analysis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; }
.app-shell .sc-category-list { display: flex; flex-direction: column; gap: 19px; padding: 24px 23px 21px; }
.app-shell .sc-category-row { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.app-shell .sc-category-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--category-color, #8276e8); }
.app-shell .sc-category-meta { min-width: 0; }
.app-shell .sc-category-row strong,
.app-shell .sc-category-meta > span { overflow: hidden; color: #748196; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .sc-category-amount,
.app-shell .sc-category-row > b { margin-left: auto; color: #52617a; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.app-shell .sc-category-row small { color: #a5adba; font-size: 9px; font-weight: 500; }
.app-shell .sc-progress-track { grid-column: 2 / -1; height: 5px; overflow: hidden; margin-top: -1px; border-radius: 3px; background: #f1f3f8; }
.app-shell .sc-progress-track > span,
.app-shell .sc-progress-track > i { display: block; height: 100%; border-radius: inherit; background: var(--category-color, #8276e8); }
.app-shell .sc-comparison { padding: 20px 23px; }
.app-shell .sc-comparison-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; }
.app-shell .sc-comparison-head strong { color: #263a58; font: 800 20px/1.2 Manrope, sans-serif; letter-spacing: -.7px; }
.app-shell .sc-comparison-head > span { color: #96a0b2; font-size: 9px; }
.app-shell .sc-comparison-row { padding: 10px 0; }
.app-shell .sc-comparison-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: #8e9aab; font-size: 9px; }
.app-shell .sc-comparison-row strong { color: #53637b; font-size: 10px; font-weight: 700; }
.app-shell .sc-comparison-row > span { color: #91a0b3; font-size: 9px; }
.app-shell .sc-comparison-bars { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.app-shell .sc-comparison-bar { display: block; height: 7px; border-radius: 0 3px 3px 0; background: #dce0ea; }
.app-shell .sc-comparison-bar.current { background: #8179e7; }
.app-shell .sc-comparison-bar.previous { height: 5px; background: #e1e3ef; }
.app-shell .sc-comparison-row.income .sc-comparison-bar.current { background: #0ba883; }
.app-shell .sc-comparison-row.expense .sc-comparison-bar.current { background: #ef8c82; }
.app-shell .sc-comparison .sc-chart-legend { gap: 12px; padding: 14px 0 0; border-top: 1px solid #eff1f6; margin-top: 6px; font-size: 8px; }
.app-shell .sc-upcoming-list { display: flex; flex-direction: column; padding: 11px 22px 8px; }
.app-shell .sc-upcoming-item { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #f0f2f7; }
.app-shell .sc-upcoming-item:last-child { border-bottom: 0; }
.app-shell .sc-upcoming-date { display: flex; width: 34px; height: 38px; flex: none; flex-direction: column; justify-content: center; align-items: center; gap: 1px; border: 1px solid #e8ecf3; border-radius: 7px; background: #f9fafc; color: #8693a6; font-size: 8px; line-height: 1.2; }
.app-shell .sc-upcoming-date strong { color: #66758b; font: 800 13px/1.1 Manrope, sans-serif; }
.app-shell .sc-upcoming-date small { font-size: 7px; text-transform: uppercase; }
.app-shell .sc-upcoming-date.overdue { border-color: #ffdfdd; background: #fff4f2; color: #e38a7c; }
.app-shell .sc-upcoming-date.overdue strong { color: #dc786b; }
.app-shell .sc-upcoming-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.app-shell .sc-upcoming-copy strong { overflow: hidden; color: #52647c; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .sc-upcoming-copy small { color: #a1aaba; font-size: 8px; }
.app-shell .sc-upcoming-amount { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 5px; color: #586a83; font-size: 10px; font-weight: 700; white-space: nowrap; }
.app-shell .sc-upcoming-amount small { color: #e28e81; font-size: 7px; font-weight: 500; }
.app-shell .sc-upcoming-list + .sc-detail-link { margin: 3px 22px 20px; }

/* Transactions */
.app-shell .sc-transactions { overflow: hidden; margin-bottom: 22px; }
.app-shell .sc-transactions .transaction-heading { align-items: center; padding: 21px 23px 18px; }
.app-shell .sc-transactions .transaction-heading h2 { font: 800 13px/1.5 Manrope, sans-serif; color: #253349; }
.app-shell .sc-transactions .transaction-heading p { margin-top: 5px; font-size: 10px; color: #96a0af; }
.app-shell .transaction-tools { gap: 10px; }
.app-shell .tab-group { gap: 2px; padding: 3px; border-radius: 7px; background: #f1f4f8; }
.app-shell .tab { padding: 6px 10px; color: #96a0b1; font-size: 9px; }
.app-shell .tab:hover { background: #e7edf5; }
.app-shell .tab.active { background: #fff; color: #4b5d78; box-shadow: 0 1px 3px #14264210; }
.app-shell .tab span { margin-left: 5px; font-size: 8px; }
.app-shell .filter-button { height: 30px; padding: 0 10px; border-color: #e1e7ef; color: #7d8b9e; font-size: 9px; }
.app-shell .transactions-table { min-width: 780px; }
.app-shell .transactions-table th { padding: 13px 16px; border-top-color: #edf0f5; border-bottom-color: #edf0f5; background: #fafbfe; color: #9aa5b5; font-size: 8px; font-weight: 600; letter-spacing: .6px; }
.app-shell .transactions-table td { padding: 13px 16px; border-bottom-color: #f0f2f7; color: #7f8c9f; font-size: 10px; }
.app-shell .transactions-table th:first-child,
.app-shell .transactions-table td:first-child { padding-left: 23px; }
.app-shell .transactions-table tr:hover td { background: #fcfdff; }
.app-shell .entry-title { gap: 11px; color: #54667f; font-size: 10px; font-weight: 600; }
.app-shell .entry-symbol { width: 31px; height: 31px; border-radius: 8px; font-size: 14px; }
.app-shell .entry-symbol.income { background: #eaf8f3; color: #16a785; }
.app-shell .entry-symbol.expense { background: #fff1ed; color: #ec8878; }
.app-shell .entry-sub { margin-top: 4px; color: #a5afbd; font-size: 8px; }
.app-shell .category-cell { gap: 7px; }
.app-shell .category-cell i { width: 5px; height: 5px; }
.app-shell .status { gap: 5px; padding: 5px 8px; font-size: 8px; font-weight: 500; }
.app-shell .status.paid { background: #edf9f3; color: #3caa87; }
.app-shell .status.pending { background: #fff7e8; color: #d3a257; }
.app-shell .status.late { background: #fff0ee; color: #e88d82; }
.app-shell .amount { color: #63748c !important; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.app-shell .amount.income { color: #1ca484 !important; }
.app-shell .amount.expense { color: #e78278 !important; }
.app-shell .row-menu { color: #a5afbe; }
.app-shell .live-action { background: #f0f8f4; color: #60a38b; font-size: 8px; }
.app-shell .live-action:hover { background: #e1f4e9; }
.app-shell .table-footer { min-height: 52px; padding: 15px 23px; color: #a0aaba; font-size: 9px; }
.app-shell .table-footer strong { color: #7a8ba3; font-weight: 500; }
.app-shell .table-footer .text-button { padding: 0; color: #8a80dc; font-size: 9px; }

/* Banking and counterpart ranking */
.app-shell .sc-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 20px; margin-bottom: 18px; }
.app-shell .sc-account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px 23px 23px; }
.app-shell .sc-account-card { position: relative; min-width: 0; overflow: hidden; padding: 15px 14px; border: 1px solid #e8edf4; border-radius: 10px; background: #fff; }
.app-shell .sc-account-logo { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: #f2efff; color: #8e75db; font: 800 10px Manrope, sans-serif; }
.app-shell .sc-account-name { display: block; overflow: hidden; margin: 11px 0 3px; color: #6a7b94; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .sc-account-card > small { color: #a3adbb; font-size: 8px; }
.app-shell .sc-account-card > strong { display: block; margin-top: 12px; color: #3f536e; font: 800 16px/1.3 Manrope, sans-serif; letter-spacing: -.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-shell .sc-account-card > span:last-child { display: block; margin-top: 5px; color: #a4adba; font-size: 8px; }
.app-shell .sc-ranking-list { padding: 11px 23px 12px; }
.app-shell .sc-ranking-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f2f6; }
.app-shell .sc-ranking-item:last-child { border-bottom: 0; }
.app-shell .sc-ranking-item > small { width: 12px; flex: none; color: #b0b8c4; font-size: 9px; }
.app-shell .sc-ranking-avatar { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 8px; background: #f1efff; color: #a295d7; font-size: 9px; font-weight: 700; }
.app-shell .sc-ranking-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.app-shell .sc-ranking-copy strong { overflow: hidden; color: #61738c; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .sc-ranking-copy small { color: #a4aebb; font-size: 8px; }
.app-shell .sc-ranking-amount { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; color: #61738c; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.app-shell .sc-ranking-amount small { color: #9ba7b8; font-size: 8px; font-weight: 500; }
.app-shell .sc-insight-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 17px 20px; margin-bottom: 22px; border: 1px solid #e1e4f4; border-radius: 12px; background: #f0f0fb; }
.app-shell .sc-insight { display: flex; align-items: flex-start; gap: 10px; color: #8589a5; font-size: 10px; line-height: 1.65; }
.app-shell .sc-insight + .sc-insight { padding-left: 17px; border-left: 1px solid #dddff0; }
.app-shell .sc-insight > svg { width: 17px; height: 17px; flex: none; fill: none; stroke: #9c93da; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-shell .sc-insight strong { color: #6b6895; font-weight: 700; }
.app-shell .sc-insight p { margin: 0; }
.app-shell .sc-empty-state { display: flex; min-height: 170px; align-items: center; justify-content: center; flex-direction: column; gap: 9px; padding: 28px 20px; color: #9aa5b5; font-size: 10px; line-height: 1.7; text-align: center; }
.app-shell .sc-empty-state > svg { width: 32px; height: 32px; margin-bottom: 3px; fill: none; stroke: #c7cfde; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.app-shell .sc-empty-state strong { color: #7a899f; font-size: 11px; font-weight: 500; }
.app-shell .sc-empty-state p { max-width: 250px; margin: 0; }
.app-shell .sc-empty-state .button { margin-top: 4px; }
.app-shell .empty-row { padding: 35px !important; color: #98a5b7 !important; font-size: 11px !important; }
.app-shell .page-footer { gap: 18px; padding: 18px 2px 5px; color: #a1aabc; font-size: 9px; }
.app-shell .page-footer a { color: #9aa5b6; }
.app-shell .page-footer a:hover { color: #6a7b94; }
.app-shell .page-footer i { width: 5px; height: 5px; background: #74b8a1; }

/* Data-driven detail rows and the empty chart layer. */
.app-shell .sc-category-row { display: block; }
.app-shell .sc-category-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-shell .sc-category-meta > span { display: inline-flex; min-width: 0; align-items: center; gap: 7px; }
.app-shell .sc-category-dot { display: inline-block; flex: none; }
.app-shell .sc-category-amount { flex: none; margin-left: 0; color: #5c6c84; font-size: 10px; }
.app-shell .sc-category-amount > small { display: inline-block; min-width: 28px; margin-left: 5px; color: #a5aebc; font-size: 8px; font-weight: 400; text-align: right; }
.app-shell .sc-category-row .sc-progress-track { margin-top: 9px; }
.app-shell .sc-comparison-values { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.app-shell .sc-comparison-values > strong { color: #73829b; font-size: 9px; font-weight: 600; }
.app-shell .sc-comparison-values > small { color: #a5aebe; font-size: 8px; }
.app-shell .sc-account-name { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; }
.app-shell .sc-account-name > strong { overflow: hidden; max-width: 100%; color: #708099; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .sc-account-name > small { overflow: hidden; max-width: 100%; color: #a6b0bf; font-size: 8px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .sc-ranking-position { width: 14px; flex: none; color: #a9b3c3; font-size: 8px; font-weight: 400; }
.app-shell .sc-upcoming-amount.overdue { color: #df8c80; }
.app-shell .sc-chart-empty { position: absolute; inset: 20px 25px 36px 65px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 15px; border-radius: 10px; background: radial-gradient(ellipse at center, #fffffffa 20%, #ffffff80 72%, #ffffff00); color: #96a2b5; text-align: center; pointer-events: none; }
.app-shell .sc-chart-empty > strong { max-width: 240px; color: #7f8fa7; font: 700 13px/1.6 Manrope, sans-serif; }
.app-shell .sc-chart-empty > span { max-width: 260px; color: #a3aebe; font-size: 10px; line-height: 1.8; }
.app-shell .sc-empty-state > span { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 2px; border-radius: 12px; background: #f4f6fb; color: #c1cadb; font-size: 26px; line-height: 1; }
.app-shell .sc-chart-tooltip { width: 180px; min-width: 180px; padding: 12px; }
.app-shell .sc-chart-tooltip > strong { margin: 0 0 9px; color: #52677f; font-size: 10px; }
.app-shell .sc-chart-tooltip > span { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 7px; color: #9aa6b7; font-size: 9px; }
.app-shell .sc-chart-tooltip > span > b { font-size: 9px; font-variant-numeric: tabular-nums; }
.app-shell .sc-chart-tooltip > span:last-child { padding-top: 7px; border-top: 1px solid #edf0f6; }
.app-shell .sc-chart-tooltip > span:last-child > b { color: #6f7e98; }
.app-shell .table-scroll { scrollbar-width: thin; scrollbar-color: #d6dfec #f8faff; }
.app-shell .table-scroll::-webkit-scrollbar { height: 7px; }
.app-shell .table-scroll::-webkit-scrollbar-thumb { border-radius: 9px; background: #d6dfec; }
.app-shell .table-scroll::-webkit-scrollbar-track { background: #f8faff; }

/* Shell detail and the dashboard's interactive controls. */
.app-shell .sc-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-shell .brand-copy strong > span { color: #f3546d; }
.app-shell .brand-mark { background: transparent; box-shadow: none; }
.app-shell .brand-mark img { display: block; width: 35px; height: 35px; object-fit: contain; }
.app-shell .sc-nav-tag { margin-left: auto; padding: 3px 5px; border: 1px solid #ffffff26; border-radius: 4px; color: #ffdde4; font-size: 6px; font-weight: 700; letter-spacing: .5px; }
.app-shell .sc-workspace-dot { width: 6px; height: 6px; margin-left: auto; flex: none; border-radius: 50%; background: #41be98; box-shadow: 0 0 0 4px #41be980a; }
.app-shell .help-card > a { display: inline-flex; margin-top: 12px; color: #f4c7cf; font-size: 10px; font-weight: 600; text-decoration: none; }
.app-shell .help-card > a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.app-shell .breadcrumbs > .sc-icon { width: 14px; height: 14px; color: #9da8b9; }
.app-shell .sc-global-search { display: flex; width: min(28vw, 340px); min-width: 175px; height: 36px; flex: 0 1 340px; align-items: center; gap: 9px; padding: 0 11px; margin-left: auto; border: 1px solid #ebeff5; border-radius: 8px; background: #f9fafc; }
.app-shell .sc-global-search > svg { width: 15px; height: 15px; color: #a3afbf; }
.app-shell .sc-global-search > input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #52667f; font-size: 10px; }
.app-shell .sc-global-search > input::placeholder { color: #a4afbf; }
.app-shell .sc-global-search > kbd { display: grid; width: 17px; height: 18px; flex: none; place-items: center; border: 1px solid #e5eaf2; border-radius: 4px; background: #fff; color: #bdc5d1; font: 9px "DM Sans", sans-serif; }
.app-shell .sc-global-search:focus-within { border-color: #b6b5f4; box-shadow: 0 0 0 3px #7b73e80e; }
.app-shell .sc-global-search > input:focus-visible { outline: 0; }
.app-shell .sc-period-control { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 15px; padding: 0; margin-bottom: 19px; border: 0; border-radius: 0; background: transparent; }
.app-shell .sc-period-heading { display: flex; min-width: 0; align-items: center; gap: 8px; }
.app-shell .sc-period-heading > svg { width: 16px; height: 16px; color: #919db0; }
.app-shell .sc-period-heading > strong { color: #52637e; font: 700 11px Manrope, sans-serif; }
.app-shell .sc-info-label { display: inline-block; width: auto; height: auto; border: 0; border-radius: 0; color: #9ba6b6; font-size: 9px; font-style: normal; font-weight: 400; letter-spacing: normal; line-height: 1.5; cursor: default; }
.app-shell .sc-period-heading > .sc-info-label { margin-left: 3px; padding-left: 11px; border-left: 1px solid #dce2eb; }
.app-shell .sc-period-actions { display: flex; align-items: center; gap: 8px; }
.app-shell .sc-period-actions > select.sc-period-preset { display: block; width: 117px; max-width: none; height: 33px; min-height: 33px; padding: 5px 8px; border: 1px solid #dde3ed; border-radius: 7px; background: #fff; color: #687b94; font-size: 10px; font-weight: 500; cursor: pointer; }
.app-shell .sc-period-custom { position: relative; }
.app-shell .sc-period-custom > summary { display: flex; min-height: 33px; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #dde3ed; border-radius: 7px; background: #fff; color: #71819a; font-size: 9px; list-style: none; cursor: pointer; }
.app-shell .sc-period-custom > summary::-webkit-details-marker { display: none; }
.app-shell .sc-period-custom > summary svg { width: 13px; height: 13px; color: #94a1b5; }
.app-shell .sc-period-custom > summary span:last-child { color: #a0abbd; }
.app-shell .sc-period-custom[open] > summary { border-color: #bfbced; }
.app-shell .sc-period-custom > form { position: absolute; z-index: 16; top: calc(100% + 9px); right: 0; display: grid; width: 285px; grid-template-columns: 1fr 1fr; gap: 12px; padding: 17px; border: 1px solid #e0e6f1; border-radius: 11px; background: #fff; box-shadow: 0 12px 40px #14264220; }
.app-shell .sc-period-custom label { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #7889a3; font-size: 10px; }
.app-shell .sc-period-custom input { width: 100%; min-width: 0; height: 34px; padding: 6px; border: 1px solid #dce4ef; border-radius: 6px; background: #fff; color: #536881; font-size: 10px; }
.app-shell .sc-period-custom form > button { grid-column: 1 / -1; min-height: 34px; padding: 8px; font-size: 10px; }
.app-shell .sc-load-feedback { display: flex; align-items: center; gap: 8px; padding: 12px 15px; margin-bottom: 17px; border: 1px solid #f1dbbb; border-radius: 9px; background: #fff9ee; color: #a18452; font-size: 11px; line-height: 1.6; }
.app-shell .sc-kpi-label { justify-content: space-between; }
.app-shell .sc-kpi-value { display: block; }
.app-shell .sc-kpi-icon.income { background: #e9f9f3; color: #0eac84; }
.app-shell .sc-kpi-icon.expense { background: #fff0ec; color: #ed8a77; }
.app-shell .sc-kpi-icon.result { background: #f0edff; color: #8c7ee5; }
.app-shell .sc-kpi-spark { right: 15px; bottom: 12px; width: 67px; height: 22px; color: #51c2a0; }
.app-shell .sc-kpi-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.app-shell .sc-kpi:nth-child(3) .sc-kpi-spark { color: #ee9e94; }
.app-shell .sc-kpi:nth-child(4) .sc-kpi-spark { color: #9b91ea; }
.app-shell .sc-kpi-footer { gap: 5px; padding-right: 10px; }
.app-shell .sc-kpi-footer > .sc-kpi-detail { display: grid; width: 24px; height: 24px; flex: none; place-items: center; padding: 0; margin: 0 0 0 auto; border: 1px solid #ffffff20; border-radius: 7px; background: #ffffff08; color: #b4c7e0; font-size: 14px; }
.app-shell .sc-kpi-footer > .sc-kpi-detail:hover { border-color: #ffffff42; background: #ffffff18; color: #fff; }
.app-shell .sc-kpi-decoration { position: absolute; right: 13px; bottom: 0; display: flex; width: 130px; height: 27px; align-items: flex-end; gap: 5px; opacity: .2; pointer-events: none; }
.app-shell .sc-kpi-decoration i { display: block; width: 7px; height: 12px; border-radius: 2px 2px 0 0; background: #97acc7; }
.app-shell .sc-kpi-decoration i:nth-child(3n + 1) { height: 18px; }
.app-shell .sc-kpi-decoration i:nth-child(4n + 1) { height: 23px; }
.app-shell .sc-kpi-decoration i:nth-child(5n) { height: 28px; }
.app-shell .sc-insight-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 17px 0; border: 1px solid #e5eaf1; border-radius: 12px; background: #fff; }
.app-shell .sc-insight { position: relative; min-width: 0; align-items: center; gap: 11px; padding: 0 20px; border: 0; background: transparent; text-align: left; }
.app-shell .sc-insight:hover { background: #fafbff; }
.app-shell .sc-insight + .sc-insight { padding-left: 20px; border-top: 0; border-left: 1px solid #edf0f6; }
.app-shell .sc-insight-icon { display: grid; width: 33px; height: 33px; flex: none; place-items: center; border-radius: 10px; background: #edf8f4; color: #51b597; font-size: 17px; font-weight: 500; }
.app-shell .sc-insight-icon.expense { background: #fff1ed; color: #ea9d8b; }
.app-shell .sc-insight-icon.overdue { background: #fff0ef; color: #eb8f86; }
.app-shell .sc-insight-icon.warning { background: #fff6e7; color: #e5b371; }
.app-shell .sc-insight > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.app-shell .sc-insight small { overflow: hidden; color: #94a0b0; font-size: 9px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .sc-insight strong { color: #455a78; font: 800 16px/1.5 Manrope, sans-serif; letter-spacing: -.4px; white-space: nowrap; }
.app-shell .sc-insight em { overflow: hidden; color: #a4adbb; font-size: 8px; font-style: normal; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .sc-insight > b { margin-left: auto; color: #b5bfd0; font-size: 13px; font-weight: 400; }
.app-shell .sc-chart-mode { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #e9edf4; border-radius: 7px; background: #f6f8fb; }
.app-shell .sc-chart-mode > button { min-width: 43px; padding: 5px 8px; border: 0; border-radius: 4px; background: transparent; color: #9ba7b9; font-size: 8px; }
.app-shell .sc-chart-mode > button.active { background: #fff; color: #6b7c95; box-shadow: 0 1px 3px #1426420d; font-weight: 700; }
.app-shell .sc-chart-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; opacity: .55; }
.app-shell .sc-chart-toggle.active { border: 0; background: transparent; opacity: 1; }
.app-shell .sc-chart-toggle:hover { background: transparent; opacity: 1; }
.app-shell .sc-chart-toggle > span { display: flex; align-items: center; gap: 7px; }
.app-shell .sc-chart-toggle i { width: 7px; height: 7px; }
.app-shell .sc-chart-net { display: inline-flex; gap: 7px; align-items: center; margin-left: auto; color: #9ba6b6; font-size: 8px; }
.app-shell .sc-chart-net strong { color: #566d89; font-weight: 700; }
.app-shell .sc-chart-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 23px 18px; color: #a6b0c0; font-size: 8px; }
.app-shell .sc-chart-caption > span:first-child { display: flex; align-items: center; gap: 6px; }
.app-shell .sc-chart-caption i { width: 4px; height: 4px; border-radius: 50%; background: #b9c4d5; }
.app-shell .sc-panel-mark { display: grid; width: 29px; height: 29px; flex: none; place-items: center; border: 1px solid #ecebf9; border-radius: 8px; background: #f7f6ff; color: #aaa0dc; }
.app-shell .sc-panel-mark > svg { width: 15px; height: 15px; }
.app-shell .sc-health-ring > .sc-donut-center { position: relative; z-index: 1; width: 140px; max-width: 90%; gap: 8px; }
.app-shell .sc-donut-center > small { color: #a1aabd; font-size: 7px; letter-spacing: .7px; }
.app-shell .sc-donut-center > strong { color: #3b4c6a; font-size: 21px; line-height: 1.2; letter-spacing: -.7px; }
.app-shell .sc-donut-center > span { padding: 3px 6px; border-radius: 4px; background: #eef9f4; color: #68b89b; font-size: 8px; }
.app-shell .sc-health-stats > div > span { display: flex; align-items: center; gap: 5px; }
.app-shell .sc-health-stats i { width: 5px; height: 5px; border-radius: 2px; background: #0ba883; }
.app-shell .sc-health-stats i.expense { background: #ef8e82; }
.app-shell .sc-health-stat > small { display: block; margin-top: 1px; color: #a5b0bf; font-size: 8px; }
.app-shell .sc-health-caption { margin: 13px 21px 0; font-size: 8px; }
.app-shell .sc-section-tag { align-self: flex-start; flex: none; padding: 5px 6px; border: 1px solid #ebedf4; border-radius: 5px; background: #fafbfe; color: #9faabd; font-size: 7px; font-weight: 600; white-space: nowrap; }
.app-shell .sc-panel-foot { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 22px; margin: 0; border-top: 1px solid #edf0f6; color: #9ba7b7; font-size: 9px; }
.app-shell .sc-panel-foot strong { color: #61738e; font-weight: 600; }
.app-shell .sc-panel-foot.sc-info-label { display: block; min-height: 42px; color: #a3adbc; font-size: 8px; }
.app-shell .sc-comparison-head { justify-content: flex-start; gap: 15px; padding: 18px 22px 0; }
.app-shell .sc-comparison-head > span { display: inline-flex; align-items: center; gap: 5px; color: #9ba5b7; font-size: 8px; }
.app-shell .sc-comparison-head i { width: 6px; height: 6px; border-radius: 2px; background: #8179e7; }
.app-shell .sc-comparison-head i.previous { background: #dce0ec; }
.app-shell .sc-upcoming-tabs { display: flex; gap: 14px; margin: 16px 22px 0; border-bottom: 1px solid #edf0f6; }
.app-shell .sc-upcoming-tabs > button { padding: 0 1px 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #a4aebe; font-size: 9px; }
.app-shell .sc-upcoming-tabs > button.active { border-bottom-color: #9b8de6; color: #8b7dd7; font-weight: 700; }
.app-shell .sc-upcoming-tabs > button:hover { color: #6a5dc1; }
.app-shell .sc-pagination { display: flex; align-items: center; gap: 9px; color: #99a5b7; font-size: 9px; }
.app-shell .sc-pagination > button { display: grid; width: 26px; height: 26px; place-items: center; padding: 0; border: 1px solid #e7ecf4; border-radius: 6px; background: #fff; color: #8799b2; font-size: 18px; line-height: 1; }
.app-shell .sc-pagination > button:hover { background: #f6f8fd; color: #516b8c; }
.app-shell .sc-pagination > button:disabled { background: #fafbfe; color: #c1c9d5; cursor: default; opacity: .7; }
.app-shell .sc-sidebar-overlay { position: fixed; z-index: 25; inset: 0; display: none; border: 0; background: #0f1b3270; backdrop-filter: blur(2px); }
.app-shell .page-footer > span:last-child { display: inline-flex; align-items: center; gap: 5px; }
.app-shell .page-footer .sc-icon { width: 12px; height: 12px; color: #9eb5ac; }
.app-shell .page-footer strong { margin-right: 7px; color: #74859d; font: 800 10px Manrope, sans-serif; letter-spacing: -.2px; }

/* Adapt to laptop, tablet, and phone without reducing legibility. */
@media (min-width: 1680px) {
  .app-shell { --sc-sidebar: 252px; }
  .app-shell .page-wrap { padding: 35px 42px 23px; }
  .app-shell .topbar { padding-right: 42px; padding-left: 42px; }
  .app-shell .sc-kpi { min-height: 185px; padding: 23px; }
  .app-shell .sc-kpi-value,
  .app-shell .sc-kpi .metric-value { font-size: 31px; }
  .app-shell .sc-chart-wrap .chart-wrap { height: 260px; }
  .app-shell .sc-health-ring { width: 196px; height: 196px; margin-top: 25px; margin-bottom: 18px; }
}
@media (max-width: 1280px) {
  .app-shell { --sc-sidebar: 214px; }
  .app-shell .sidebar { padding-right: 12px; padding-left: 12px; }
  .app-shell .brand-copy strong { font-size: 17px; }
  .app-shell .brand-copy small { font-size: 6px; letter-spacing: 2.6px; }
  .app-shell .brand-mark { width: 30px; height: 30px; }
  .app-shell .nav-item { gap: 10px; font-size: 11px; }
  .app-shell .profile-copy small { max-width: 126px; font-size: 8px; }
  .app-shell .page-wrap { padding: 25px 25px 18px; }
  .app-shell .topbar { padding-right: 25px; padding-left: 25px; }
  .app-shell .sc-kpi-grid { gap: 13px; }
  .app-shell .sc-kpi { min-height: 169px; padding: 16px; }
  .app-shell .sc-kpi .metric-top { font-size: 10px; }
  .app-shell .sc-kpi-icon,
  .app-shell .sc-kpi .metric-icon { width: 29px; height: 29px; border-radius: 8px; }
  .app-shell .sc-kpi-value,
  .app-shell .sc-kpi .metric-value { font-size: 24px; }
  .app-shell .sc-kpi-footer,
  .app-shell .sc-kpi .metric-foot { gap: 4px; font-size: 8px; }
  .app-shell .sc-kpi-spark { width: 55px; right: 14px; }
  .app-shell .sc-chart-grid { grid-template-columns: minmax(0, 1.8fr) minmax(255px, 1fr); gap: 16px; }
  .app-shell .sc-analysis-grid { gap: 16px; }
  .app-shell .sc-panel-header { padding: 19px 19px 0; }
  .app-shell .sc-panel-title,
  .app-shell .sc-panel-header h2 { font-size: 12px; }
  .app-shell .sc-panel-subtitle,
  .app-shell .sc-panel-header p { font-size: 9px; }
  .app-shell .sc-category-list,
  .app-shell .sc-comparison { padding-right: 18px; padding-left: 18px; }
  .app-shell .sc-upcoming-list { padding-right: 17px; padding-left: 17px; }
  .app-shell .sc-upcoming-item { gap: 7px; }
  .app-shell .sc-upcoming-date { width: 30px; height: 34px; }
  .app-shell .sc-upcoming-copy strong { font-size: 9px; }
  .app-shell .sc-upcoming-amount { font-size: 9px; }
  .app-shell .sc-account-grid { gap: 9px; padding-right: 18px; padding-left: 18px; }
  .app-shell .sc-account-card { padding: 13px 11px; }
  .app-shell .sc-account-card > strong { font-size: 14px; }
  .app-shell .sc-bottom-grid { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 16px; }
  .app-shell .sc-insight-strip { gap: 12px; padding: 15px 17px; }
  .app-shell .sc-insight { gap: 7px; font-size: 9px; }
}
@media (max-width: 1080px) {
  .app-shell { --sc-sidebar: 202px; }
  .app-shell .sidebar { padding-top: 24px; }
  .app-shell .brand-copy strong { font-size: 16px; }
  .app-shell .sidebar .brand { padding-left: 6px; gap: 8px; }
  .app-shell .page-wrap { padding-right: 22px; padding-left: 22px; }
  .app-shell .topbar { height: 68px; padding-right: 22px; padding-left: 22px; }
  .app-shell .sc-intro { align-items: flex-start; }
  .app-shell .sc-intro-actions { flex-wrap: wrap; justify-content: flex-end; }
  .app-shell .sc-period-preset { display: none; }
  .app-shell .sc-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .app-shell .sc-kpi { min-height: 164px; padding: 19px; }
  .app-shell .sc-kpi-value,
  .app-shell .sc-kpi .metric-value { font-size: 28px; }
  .app-shell .sc-kpi-footer,
  .app-shell .sc-kpi .metric-foot { font-size: 9px; }
  .app-shell .sc-kpi-spark { width: 76px; right: 20px; }
  .app-shell .sc-chart-grid { grid-template-columns: minmax(0, 1.6fr) minmax(235px, 1fr); gap: 16px; }
  .app-shell .sc-health-ring { width: 157px; height: 157px; margin-top: 25px; margin-bottom: 18px; }
  .app-shell .sc-health-stats { gap: 8px; padding-right: 17px; padding-left: 17px; }
  .app-shell .sc-health-stat > strong,
  .app-shell .sc-health-stats > div > strong { font-size: 12px; }
  .app-shell .sc-chart-wrap { padding-right: 17px; padding-left: 17px; }
  .app-shell .sc-chart-wrap .chart-wrap { height: 225px; padding-left: 37px; }
  .app-shell .sc-chart-legend { padding-right: 19px; padding-left: 19px; font-size: 8px; gap: 12px; }
  .app-shell .sc-chart-xlabels { padding-left: 56px; }
  .app-shell .sc-panel-header { gap: 9px; }
  .app-shell .sc-section-actions { gap: 3px; }
  .app-shell .sc-chart-toggle { padding: 5px 6px; font-size: 8px; }
  .app-shell .sc-analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .sc-analysis-grid > :last-child { grid-column: 1 / -1; }
  .app-shell .sc-analysis-grid > :last-child .sc-upcoming-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .app-shell .sc-bottom-grid { grid-template-columns: 1fr; }
  .app-shell .sc-account-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-shell .sc-account-card { padding: 18px; }
  .app-shell .sc-account-card > strong { font-size: 18px; }
  .app-shell .sc-ranking-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
  .app-shell .sc-insight-strip { grid-template-columns: 1fr; gap: 10px; }
  .app-shell .sc-insight + .sc-insight { padding-top: 10px; padding-left: 0; border-top: 1px solid #dddff0; border-left: 0; }
  .app-shell .sc-insight { font-size: 10px; }
}
@media (max-width: 900px) {
  .app-shell .sidebar { z-index: 30; width: 238px; padding: 27px 17px 17px; transform: translateX(-100%); box-shadow: 15px 0 60px #15243c2b; transition: transform .22s ease; }
  .app-shell .sidebar.open { transform: translateX(0); }
  .app-shell .main-content { margin-left: 0; }
  .app-shell .mobile-menu { display: grid; place-items: center; flex: none; }
  .app-shell .brand-copy strong { font-size: 19px; }
  .app-shell .sidebar .brand { gap: 10px; padding-left: 10px; }
  .app-shell .brand-mark { width: 33px; height: 33px; }
  .app-shell .profile-copy small { max-width: 145px; font-size: 9px; }
  .app-shell .nav-item { font-size: 12px; }
  .app-shell .page-wrap { max-width: 980px; padding: 26px 24px 18px; }
  .app-shell .topbar { height: 68px; gap: 15px; padding-right: 24px; padding-left: 24px; }
  .app-shell .breadcrumbs { margin-right: auto; }
  .app-shell .sc-chart-grid { grid-template-columns: minmax(0, 1.8fr) minmax(245px, 1fr); }
}
@media (max-width: 700px) {
  .app-shell .topbar { height: 64px; gap: 10px; padding-right: 18px; padding-left: 18px; }
  .app-shell .topbar-actions { gap: 8px; }
  .app-shell .breadcrumbs { font-size: 10px; gap: 9px; }
  .app-shell .breadcrumbs strong { font-size: 10px; }
  .app-shell .demo-pill { max-width: 130px; padding: 0 8px; font-size: 8px; }
  .app-shell .demo-pill label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-shell .search-button { display: none; }
  .app-shell .page-wrap { padding: 22px 18px 15px; }
  .app-shell .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 22px; }
  .app-shell .page-heading h1 { font-size: 27px; }
  .app-shell .heading-actions { width: auto; }
  .app-shell .heading-actions .button { flex: none; }
  .app-shell .sc-intro { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 20px; }
  .app-shell .sc-intro-actions { justify-content: flex-start; }
  .app-shell .sc-period-preset { display: inline-flex; }
  .app-shell .sc-chart-grid { grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
  .app-shell .sc-cashflow-panel .sc-panel-header { align-items: flex-start; }
  .app-shell .sc-chart-wrap .chart-wrap { height: 235px; padding-left: 41px; }
  .app-shell .sc-chart-legend { padding-top: 19px; padding-bottom: 12px; font-size: 9px; }
  .app-shell .sc-health-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding-bottom: 19px; }
  .app-shell .sc-health-panel .sc-panel-header { grid-column: 1 / -1; }
  .app-shell .sc-health-ring { grid-row: 2 / 4; width: 160px; height: 160px; margin: 14px auto 0; }
  .app-shell .sc-health-caption { align-self: end; margin: 18px 20px 0 0; text-align: left; }
  .app-shell .sc-health-stats { align-self: start; padding: 17px 20px 0 0; border-top: 0; }
  .app-shell .sc-health-stat > strong,
  .app-shell .sc-health-stats > div > strong { font-size: 13px; }
  .app-shell .sc-analysis-grid { gap: 18px; margin-bottom: 18px; }
  .app-shell .sc-transactions { margin-bottom: 18px; }
  .app-shell .sc-transactions .transaction-heading { align-items: flex-start; gap: 15px; flex-direction: column; }
  .app-shell .transaction-tools { width: 100%; justify-content: space-between; }
  .app-shell .sc-bottom-grid { gap: 18px; }
  .app-shell .page-footer { flex-wrap: wrap; gap: 11px; padding-top: 12px; font-size: 8px; }
  .app-shell .page-footer span:first-child { width: auto; }
  .app-shell .sc-insight-strip { margin-bottom: 18px; }
}
@media (max-width: 500px) {
  .app-shell .topbar { height: 61px; gap: 9px; padding-right: 14px; padding-left: 14px; }
  .app-shell .breadcrumbs > span:first-child,
  .app-shell .breadcrumbs .crumb-sep { display: none; }
  .app-shell .demo-pill { width: 24px; max-width: 24px; height: 24px; padding: 0; justify-content: center; font-size: 0; }
  .app-shell .demo-pill label { display: none; }
  .app-shell .top-avatar { width: 31px; height: 31px; margin-left: 1px; }
  .app-shell .icon-button,
  .app-shell .mobile-menu { width: 31px; height: 31px; border-radius: 8px; }
  .app-shell .page-wrap { padding: 21px 14px 14px; }
  .app-shell .demo-notice { gap: 7px; padding: 10px; font-size: 9px; }
  .app-shell .eyebrow,
  .app-shell .sc-eyebrow { font-size: 8px; letter-spacing: 1px; }
  .app-shell .page-heading h1,
  .app-shell .sc-greeting { font-size: 25px; }
  .app-shell .heading-subtitle { font-size: 11px; }
  .app-shell .heading-actions { width: 100%; gap: 8px; }
  .app-shell .heading-actions .button { min-height: 38px; padding-right: 12px; padding-left: 12px; font-size: 10px; }
  .app-shell .heading-actions .button-primary { margin-left: auto; }
  .app-shell .sc-intro-actions { width: 100%; gap: 7px; }
  .app-shell .sc-period-control { min-height: 35px; gap: 6px; padding: 7px 9px; font-size: 10px; }
  .app-shell .sc-period-control select { max-width: 130px; font-size: 10px; }
  .app-shell .sc-period-preset button { min-height: 25px; padding: 4px 7px; font-size: 8px; }
  .app-shell .sc-kpi-grid { gap: 10px; margin-bottom: 18px; }
  .app-shell .sc-kpi { min-height: 151px; padding: 14px 12px; border-radius: 11px; }
  .app-shell .sc-kpi .metric-top { min-height: 26px; gap: 4px; font-size: 9px; }
  .app-shell .sc-kpi-label { gap: 4px; font-size: 9px; }
  .app-shell .sc-kpi-icon,
  .app-shell .sc-kpi .metric-icon { width: 25px; height: 25px; border-radius: 7px; }
  .app-shell .sc-kpi-icon svg { width: 14px; height: 14px; }
  .app-shell .sc-kpi-value,
  .app-shell .sc-kpi .metric-value { margin-top: 12px; margin-bottom: 11px; font-size: 21px; letter-spacing: -.7px; }
  .app-shell .sc-kpi-value span,
  .app-shell .sc-kpi .metric-value span { font-size: .65em; }
  .app-shell .sc-kpi-footer,
  .app-shell .sc-kpi .metric-foot { flex-wrap: wrap; gap: 5px; font-size: 8px; line-height: 1.4; }
  .app-shell .sc-kpi-change,
  .app-shell .sc-kpi .trend { padding: 2px 4px; font-size: 8px; }
  .app-shell .sc-kpi-caption { font-size: 8px; }
  .app-shell .sc-kpi-spark { width: 48px; height: 21px; right: 12px; bottom: 14px; opacity: .45; }
  .app-shell .sc-kpi-detail { gap: 5px; padding-top: 8px; margin-top: 10px; font-size: 8px; }
  .app-shell .sc-info-label { width: auto; height: auto; font-size: 9px; }
  .app-shell .sc-panel { border-radius: 12px; }
  .app-shell .sc-panel-header { padding: 18px 17px 0; }
  .app-shell .sc-panel-title,
  .app-shell .sc-panel-header h2 { font-size: 12px; }
  .app-shell .sc-panel-subtitle,
  .app-shell .sc-panel-header p { font-size: 9px; }
  .app-shell .sc-live-badge { font-size: 6px; letter-spacing: .4px; gap: 5px; }
  .app-shell .sc-live-badge::before { width: 5px; height: 5px; box-shadow: 0 0 0 3px #10b3860c; }
  .app-shell .sc-chart-summary { gap: 8px; padding: 17px 18px 2px; }
  .app-shell .sc-chart-value { font-size: 22px; }
  .app-shell .sc-chart-legend { gap: 14px; padding: 16px 18px 10px; font-size: 8px; }
  .app-shell .sc-chart-legend > span { gap: 5px; }
  .app-shell .sc-chart-legend strong { font-size: 8px; }
  .app-shell .sc-chart-wrap { min-height: 205px; padding-right: 16px; padding-left: 16px; }
  .app-shell .sc-chart-wrap .chart-wrap { height: 190px; padding-left: 33px; }
  .app-shell .sc-chart-wrap > svg { height: 200px; }
  .app-shell .sc-chart-wrap .y-labels { font-size: 8px; }
  .app-shell .sc-chart-wrap .x-labels { padding-left: 33px; font-size: 8px; }
  .app-shell .sc-chart-xlabels { padding: 6px 17px 17px 50px; font-size: 8px; }
  .app-shell .sc-chart-ylabels { left: 16px; font-size: 8px; }
  .app-shell .sc-health-ring { width: 144px; height: 144px; margin-top: 15px; }
  .app-shell .sc-donut-center strong,
  .app-shell .sc-health-ring > div > strong { font-size: 26px; }
  .app-shell .sc-donut-center small,
  .app-shell .sc-health-ring > div > small { font-size: 8px; }
  .app-shell .sc-health-caption { margin: 16px 15px 0 0; font-size: 9px; }
  .app-shell .sc-health-stats { gap: 9px; padding-right: 15px; padding-top: 11px; }
  .app-shell .sc-health-stat > span,
  .app-shell .sc-health-stats > div > span { font-size: 8px; }
  .app-shell .sc-health-stat > strong,
  .app-shell .sc-health-stats > div > strong { font-size: 11px; }
  .app-shell .sc-analysis-grid { grid-template-columns: 1fr; }
  .app-shell .sc-analysis-grid > :last-child .sc-upcoming-list { display: flex; }
  .app-shell .sc-category-list { gap: 19px; padding: 23px 18px; }
  .app-shell .sc-category-row strong,
  .app-shell .sc-category-meta > span,
  .app-shell .sc-category-amount,
  .app-shell .sc-category-row > b { font-size: 11px; }
  .app-shell .sc-comparison { padding: 20px 18px; }
  .app-shell .sc-comparison-row { padding-top: 12px; padding-bottom: 12px; }
  .app-shell .sc-comparison-row > div:first-child { font-size: 10px; }
  .app-shell .sc-comparison-row strong { font-size: 11px; }
  .app-shell .sc-upcoming-list { padding: 9px 18px 8px; }
  .app-shell .sc-upcoming-item { gap: 11px; padding-top: 14px; padding-bottom: 14px; }
  .app-shell .sc-upcoming-date { width: 34px; height: 38px; }
  .app-shell .sc-upcoming-copy strong { font-size: 11px; }
  .app-shell .sc-upcoming-copy small { font-size: 9px; }
  .app-shell .sc-upcoming-amount { font-size: 11px; }
  .app-shell .sc-upcoming-list + .sc-detail-link { margin-left: 18px; }
  .app-shell .sc-transactions .transaction-heading { gap: 16px; padding: 18px; }
  .app-shell .tab { padding: 6px 8px; font-size: 8px; }
  .app-shell .tab span { font-size: 7px; }
  .app-shell .filter-button { height: 29px; font-size: 8px; }
  .app-shell .table-footer { align-items: flex-start; gap: 11px; flex-direction: column; padding: 14px 18px; font-size: 8px; }
  .app-shell .table-footer .text-button { font-size: 9px; }
  .app-shell .sc-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 20px 17px 18px; }
  .app-shell .sc-account-card { padding: 14px; }
  .app-shell .sc-account-card > strong { font-size: 17px; }
  .app-shell .sc-ranking-list { display: block; padding-right: 17px; padding-left: 17px; }
  .app-shell .sc-ranking-item { padding: 13px 0; }
  .app-shell .sc-ranking-copy strong { font-size: 11px; }
  .app-shell .sc-ranking-amount { font-size: 12px; }
  .app-shell .sc-insight-strip { padding: 16px; border-radius: 10px; }
  .app-shell .page-footer { gap: 11px 15px; }
  .app-shell .page-footer span:first-child { width: 100%; }
}
@media (max-width: 360px) {
  .app-shell .page-wrap { padding-right: 11px; padding-left: 11px; }
  .app-shell .sc-kpi-grid { gap: 8px; }
  .app-shell .sc-kpi { padding: 13px 10px; }
  .app-shell .sc-kpi-value,
  .app-shell .sc-kpi .metric-value { font-size: 19px; }
  .app-shell .sc-health-ring { width: 130px; height: 130px; }
  .app-shell .sc-health-stat > strong,
  .app-shell .sc-health-stats > div > strong { font-size: 10px; }
  .app-shell .sc-period-preset { display: none; }
}
/* Keep financial labels readable and the monetary ring value inside its arc. */
.app-shell .sc-health-ring > .sc-donut-center > strong { color: #31445f; font-size: 20px; letter-spacing: -.7px; white-space: nowrap; }
.app-shell .sc-health-ring > .sc-donut-center > small { color: #8f9cb0; font-size: 7px; }
.app-shell .sc-health-ring > .sc-donut-center > span { color: #3c9d7c; font-size: 8px; }
.app-shell .sc-kpi-label { color: #748298; }
.app-shell .sc-kpi-dark .sc-kpi-label { color: #c0ccdd; }
.app-shell .heading-subtitle { color: #77869c; }
.app-shell .sc-panel-subtitle,
.app-shell .sc-panel-header p,
.app-shell .sc-transactions .transaction-heading p { color: #8593a7; }
.app-shell .sc-category-meta > span { color: #687c97; font-size: 11px; }
.app-shell .sc-category-amount { color: #526781; font-size: 11px; }
.app-shell .sc-category-amount > small { color: #8d9bb0; font-size: 9px; }
.app-shell .sc-comparison-row > div:first-child { color: #7c8ca4; font-size: 10px; }
.app-shell .sc-comparison-values > strong { color: #627894; font-size: 10px; }
.app-shell .sc-comparison-values > small { color: #98a5b8; font-size: 9px; }
.app-shell .transactions-table th { color: #8998ae; font-size: 9px; }
.app-shell .transactions-table td { color: #72869f; font-size: 11px; }
.app-shell .transactions-table .entry-title { color: #4c6480; font-size: 11px; }
.app-shell .transactions-table .entry-sub { color: #95a2b6; font-size: 9px; }
.app-shell .transactions-table .amount { font-size: 11px; }
.app-shell .sc-upcoming-copy strong { color: #526a87; font-size: 11px; }
.app-shell .sc-upcoming-copy small { color: #8f9db2; font-size: 9px; }
.app-shell .sc-ranking-copy strong { color: #617894; font-size: 11px; }
.app-shell .sc-ranking-copy small { color: #97a5b8; font-size: 9px; }
.app-shell .sc-account-name > strong { color: #637a98; font-size: 11px; }
.app-shell .sc-account-name > small { color: #96a4b8; font-size: 9px; }
.app-shell .sc-analysis-grid > .sc-panel { display: flex; flex-direction: column; }
.app-shell .sc-analysis-grid .sc-panel-foot { margin-top: auto; }
.app-shell .sc-analysis-grid > .sc-panel > .sc-detail-link { margin-top: auto; padding-top: 13px; }
.app-shell .sc-analysis-grid > .sc-panel > .sc-upcoming-list + .sc-detail-link { padding-bottom: 2px; }
.app-shell .sc-muted { color: #95a3b6; font-size: 10px; }
.app-shell .sc-kpi-value .sc-money-currency { display: inline-block; margin-right: 4px; color: inherit; font-size: .62em; font-weight: 700; letter-spacing: -.3px; vertical-align: 1px; }
.app-shell .sc-kpi-value .sc-money-decimals { color: inherit; font-size: .7em; font-weight: 700; letter-spacing: -.3px; }

/* Responsive adjustments for the control strip and open commitments. */
@media (max-width: 1280px) {
  .app-shell .sc-global-search { width: 250px; flex-basis: 250px; }
  .app-shell .sc-insight { gap: 8px; padding-right: 15px; padding-left: 15px; }
  .app-shell .sc-insight + .sc-insight { padding-left: 15px; }
  .app-shell .sc-insight-icon { width: 28px; height: 28px; border-radius: 8px; font-size: 16px; }
  .app-shell .sc-insight strong { font-size: 14px; }
  .app-shell .sc-insight small { font-size: 8px; }
  .app-shell .sc-insight > b { font-size: 10px; }
  .app-shell .sc-kpi-spark { width: 55px; height: 19px; }
  .app-shell .sc-kpi .sc-kpi-footer { font-size: 8px; }
  .app-shell .sc-chart-net { display: none; }
  .app-shell .sc-period-heading > .sc-info-label { display: none; }
}
@media (max-width: 1080px) {
  .app-shell .sc-global-search { width: 210px; min-width: 140px; flex-basis: 210px; }
  .app-shell .topbar-actions { gap: 8px; }
  .app-shell .breadcrumbs { gap: 8px; font-size: 10px; }
  .app-shell .breadcrumbs strong { font-size: 10px; }
  .app-shell .demo-pill { max-width: 120px; padding-right: 8px; padding-left: 8px; font-size: 8px; }
  .app-shell .demo-pill label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-shell .sc-insight-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; }
  .app-shell .sc-insight { min-height: 85px; gap: 11px; padding: 15px 20px; }
  .app-shell .sc-insight + .sc-insight { padding: 15px 20px; border-top: 0; border-left: 1px solid #edf0f6; }
  .app-shell .sc-insight:nth-child(3),
  .app-shell .sc-insight:nth-child(4) { border-top: 1px solid #edf0f6; }
  .app-shell .sc-insight:nth-child(3) { border-left: 0; }
  .app-shell .sc-insight-icon { width: 32px; height: 32px; border-radius: 9px; }
  .app-shell .sc-insight strong { font-size: 16px; }
  .app-shell .sc-insight small { font-size: 9px; }
  .app-shell .sc-insight > b { font-size: 13px; }
  .app-shell .sc-kpi-spark { width: 76px; height: 25px; }
  .app-shell .sc-kpi .sc-kpi-footer { font-size: 9px; }
  .app-shell .sc-period-actions > select.sc-period-preset { display: block; }
  .app-shell .sc-chart-caption { padding-right: 19px; padding-left: 19px; font-size: 7px; }
}
@media (max-width: 820px) {
  .app-shell .sc-global-search { display: none; }
  .app-shell .demo-pill { max-width: none; font-size: 9px; }
  .app-shell .breadcrumbs,
  .app-shell .breadcrumbs strong { font-size: 11px; }
}
@media (max-width: 900px) {
  .app-shell .sc-sidebar-overlay:not([hidden]) { display: block; }
}
@media (max-width: 700px) {
  .app-shell .sc-period-heading { gap: 7px; }
  .app-shell .sc-period-heading > strong { font-size: 10px; }
  .app-shell .sc-period-heading > svg { width: 14px; height: 14px; }
  .app-shell .sc-period-control { gap: 10px; }
  .app-shell .sc-period-actions { gap: 7px; }
  .app-shell .sc-period-custom > summary { gap: 5px; font-size: 8px; }
  .app-shell .sc-period-custom > summary > svg { display: none; }
  .app-shell .sc-chart-net { display: inline-flex; }
  .app-shell .sc-health-ring > .sc-donut-center { width: 120px; }
  .app-shell .sc-donut-center > strong { font-size: 19px; }
  .app-shell .sc-health-ring > .sc-donut-center > strong { font-size: 18px; }
  .app-shell .sc-health-caption { align-self: start; padding-top: 10px; font-size: 8px; line-height: 1.6; }
  .app-shell .sc-health-stats { padding-top: 22px; }
  .app-shell .sc-donut-center > span { font-size: 7px; }
  .app-shell .sc-ranking-list { display: grid; }
  .app-shell .sc-period-custom > form { width: 280px; }
  .app-shell .sc-upcoming-tabs { margin-right: 18px; margin-left: 18px; }
  .app-shell .sc-pagination { margin-left: auto; }
}
@media (max-width: 500px) {
  .app-shell .breadcrumbs,
  .app-shell .breadcrumbs strong { font-size: 10px; }
  .app-shell .breadcrumbs > svg { display: none; }
  .app-shell .demo-pill { max-width: 24px; font-size: 0; }
  .app-shell .sc-period-control { min-height: 37px; flex-wrap: wrap; padding: 0; margin-bottom: 15px; }
  .app-shell .sc-period-heading { width: 100%; padding-bottom: 2px; }
  .app-shell .sc-period-heading > strong { font-size: 10px; }
  .app-shell .sc-period-heading > .sc-info-label { display: inline; padding-left: 9px; margin-left: auto; border-left: 0; font-size: 8px; }
  .app-shell .sc-period-actions { width: 100%; gap: 8px; }
  .app-shell .sc-period-actions > select.sc-period-preset { width: 40%; min-height: 33px; padding-right: 5px; padding-left: 8px; font-size: 9px; }
  .app-shell .sc-period-custom { flex: 1; }
  .app-shell .sc-period-custom > summary { justify-content: space-between; min-height: 33px; padding: 6px 9px; font-size: 9px; }
  .app-shell .sc-period-custom > summary > svg { display: block; }
  .app-shell .sc-period-custom > form { right: 0; width: 280px; }
  .app-shell .sc-kpi .sc-kpi-footer { padding-right: 0; gap: 4px; font-size: 8px; }
  .app-shell .sc-kpi-footer > .sc-kpi-detail { width: 22px; height: 22px; }
  .app-shell .sc-kpi-spark { width: 46px; height: 18px; right: 10px; bottom: 7px; opacity: .5; }
  .app-shell .sc-kpi { min-height: 163px; }
  .app-shell .sc-kpi-value,
  .app-shell .sc-kpi .metric-value { font-size: 24px; }
  .app-shell .sc-kpi-label { color: #6e7f99; font-size: 10px; }
  .app-shell .sc-kpi-dark .sc-kpi-label { color: #c1cde0; }
  .app-shell .sc-kpi-caption { color: #8d9cb3; font-size: 9px; }
  .app-shell .sc-kpi-dark .sc-kpi-caption { color: #a0b3cd; }
  .app-shell .sc-kpi-change { font-size: 9px; }
  .app-shell .sc-kpi-spark { display: none; }
  .app-shell .sc-kpi-decoration { right: 10px; width: 115px; height: 24px; gap: 4px; }
  .app-shell .sc-insight-strip { padding: 0; }
  .app-shell .sc-insight,
  .app-shell .sc-insight + .sc-insight { min-height: 86px; gap: 8px; padding: 14px 12px; }
  .app-shell .sc-insight-icon { width: 26px; height: 30px; border-radius: 8px; font-size: 15px; }
  .app-shell .sc-insight strong { font-size: 14px; }
  .app-shell .sc-insight small { font-size: 8px; }
  .app-shell .sc-insight small { color: #7e90a9; font-size: 9px; }
  .app-shell .sc-insight em { color: #91a0b7; font-size: 8px; }
  .app-shell .sc-insight > b { display: none; }
  .app-shell .sc-chart-mode > button { min-width: 37px; padding: 5px 6px; font-size: 7px; }
  .app-shell .sc-chart-net { display: none; }
  .app-shell .sc-chart-caption { padding: 11px 17px 16px; font-size: 7px; }
  .app-shell .sc-panel-subtitle,
  .app-shell .sc-panel-header p,
  .app-shell .sc-transactions .transaction-heading p { font-size: 10px; }
  .app-shell .sc-section-tag { font-size: 8px; }
  .app-shell .sc-chart-caption { color: #8e9fb7; font-size: 8px; }
  .app-shell .sc-chart-mode > button { font-size: 9px; }
  .app-shell .sc-upcoming-tabs > button { font-size: 10px; }
  .app-shell .sc-ranking-copy strong { font-size: 12px; }
  .app-shell .sc-ranking-copy small { font-size: 10px; }
  .app-shell .sc-account-name > strong { font-size: 12px; }
  .app-shell .sc-account-name > small { font-size: 10px; }
  .app-shell .sc-chart-caption > span:last-child { display: none; }
  .app-shell .sc-health-ring > .sc-donut-center { width: 106px; gap: 6px; }
  .app-shell .sc-donut-center > small { font-size: 6px; letter-spacing: .4px; }
  .app-shell .sc-donut-center > strong { font-size: 17px; }
  .app-shell .sc-health-ring > .sc-donut-center > strong { font-size: 16px; }
  .app-shell .sc-health-ring > .sc-donut-center > small { font-size: 6px; }
  .app-shell .sc-health-ring > .sc-donut-center > span { font-size: 7px; }
  .app-shell .sc-health-stat > span,
  .app-shell .sc-health-stats > div > span { font-size: 9px; }
  .app-shell .sc-health-stat > strong,
  .app-shell .sc-health-stats > div > strong { font-size: 12px; }
  .app-shell .sc-health-stat > small { font-size: 9px; }
  .app-shell .sc-health-stats { padding-top: 19px; }
  .app-shell .sc-health-caption { padding-top: 9px; margin-top: 0; margin-right: 16px; font-size: 7px; }
  .app-shell .sc-panel-foot { min-height: 42px; padding-right: 18px; padding-left: 18px; }
  .app-shell .sc-panel-foot.sc-info-label { width: auto; height: auto; font-size: 9px; }
  .app-shell .sc-period-heading > .sc-info-label { width: auto; height: auto; flex: none; white-space: nowrap; }
  .app-shell .sc-comparison-head { padding-right: 18px; padding-left: 18px; }
  .app-shell .sc-ranking-list { display: block; }
  .app-shell .sc-pagination { margin-left: 0; }
  .app-shell .table-footer { flex-direction: row; align-items: center; }
  .app-shell .sc-pagination { gap: 6px; font-size: 8px; white-space: nowrap; }
  .app-shell .sc-pagination > button { width: 24px; height: 24px; }
  .app-shell .sc-chart-empty { inset: 18px 17px 34px 48px; }
  .app-shell .sc-chart-empty > strong { font-size: 11px; }
  .app-shell .sc-chart-empty > span { font-size: 9px; }
  .app-shell .page-footer > span:nth-child(2) { margin-left: 0; }
}
/* Financial dialogs live beside the shell; the authentication gate is separate. */
.modal-backdrop .modal { width: min(100%, 540px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; padding: 27px; border: 1px solid #e6ebf3; border-radius: 16px; background: #fff; color: #263950; box-shadow: 0 25px 100px #101d3d38; }
.modal-backdrop .modal-kicker { color: #8e9eb4; font-size: 9px; letter-spacing: 1.4px; }
.modal-backdrop .modal h2 { margin-top: 6px; color: #24374e; font-size: 23px; letter-spacing: -.8px; }
.modal-backdrop .modal-close { width: 31px; height: 31px; border-radius: 8px; background: #f4f6fb; color: #8c9cb0; font-size: 23px; }
.modal-backdrop .modal-description { margin: 10px 0 23px; color: #8595ac; font-size: 12px; line-height: 1.7; }
.modal-backdrop .field-row { gap: 13px; }
.modal-backdrop .form-field { min-width: 0; gap: 8px; margin-bottom: 17px; }
.modal-backdrop .form-field > span { color: #657c98; font-size: 12px; font-weight: 600; }
.modal-backdrop .form-field input,
.modal-backdrop .form-field select { width: 100%; min-width: 0; height: 42px; padding: 0 11px; border-color: #dfe6f0; border-radius: 8px; background: #fff; color: #445c79; font-size: 13px; }
.modal-backdrop .form-field input::placeholder { color: #acb8c9; }
.modal-backdrop .currency-input { height: 42px; padding-right: 11px; padding-left: 11px; border-color: #dfe6f0; border-radius: 8px; color: #8da0b9; font-size: 12px; }
.modal-backdrop .currency-input > input { width: 100%; min-width: 0; height: 40px; padding: 0; }
.modal-backdrop .type-row { gap: 11px; margin-bottom: 21px; }
.modal-backdrop .type-option { gap: 10px; padding: 12px; border-color: #e0e6ef; border-radius: 9px; }
.modal-backdrop .type-icon { width: 33px; height: 33px; border-radius: 8px; font-size: 19px; }
.modal-backdrop .type-option strong { color: #5a718c; font-size: 12px; }
.modal-backdrop .type-option small { color: #96a5b9; font-size: 10px; }
.modal-backdrop .modal-note { align-items: flex-start; gap: 8px; padding: 12px; border: 1px solid #e9edf5; border-radius: 8px; background: #f7f9fd; color: #8b9bb2; font-size: 11px; line-height: 1.6; }
.modal-backdrop .modal-note > span { color: #9292d3; font-size: 14px; }
.modal-backdrop .modal-actions { gap: 10px; margin-top: 23px; }
.modal-backdrop .button { min-height: 40px; height: auto; padding: 10px 15px; border-radius: 8px; font-size: 12px; }
.modal-backdrop button:focus-visible { outline: 3px solid #aaa5ec; outline-offset: 3px; }
@media (max-width: 500px) {
  .modal-backdrop { padding: 14px; }
  .modal-backdrop .modal { max-height: calc(100dvh - 28px); padding: 21px 18px; border-radius: 13px; }
  .modal-backdrop .modal h2 { font-size: 22px; }
  .modal-backdrop .modal-description { margin-bottom: 20px; font-size: 12px; }
  .modal-backdrop .field-row { gap: 10px; }
  .modal-backdrop .form-field { gap: 7px; margin-bottom: 15px; }
  .modal-backdrop .form-field > span { font-size: 11px; }
  .modal-backdrop .form-field input,
  .modal-backdrop .form-field select { height: 42px; padding-right: 9px; padding-left: 9px; font-size: 13px; }
  .modal-backdrop .currency-input > input { height: 40px; padding: 0; }
  .modal-backdrop .type-option { gap: 8px; padding: 10px 9px; }
  .modal-backdrop .type-icon { width: 28px; height: 30px; font-size: 17px; }
  .modal-backdrop .type-option small { font-size: 9px; }
  .modal-backdrop .modal-note { font-size: 10px; }
  .modal-backdrop .button { min-height: 41px; padding: 10px 12px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell *,
  .app-shell *::before,
  .app-shell *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .app-shell .button:hover { transform: none; }
}

/* Dashboard refresh keeps the breadcrumb appearance and keyboard focus. */
.app-shell .breadcrumb-home { appearance:none; border:0; background:transparent; padding:0; margin:0; color:inherit; font:inherit; text-align:inherit; cursor:pointer; }
.app-shell .breadcrumb-home:disabled { opacity:1; cursor:default; }
.app-shell .breadcrumb-home:focus-visible { outline:2px solid var(--sc-red); outline-offset:5px; border-radius:3px; }
