:root {
  color-scheme:light;
  --purple:#66298b;
  --dark:#321143;
  --ink:#302b35;
  --muted:#77717a;
  --line:#e6e2e7;
  --paper:#fff;
  --bg:#f0eef0;
  --num:"Inter","Helvetica Neue",Arial,sans-serif;
  --mint:#6988bc;
  --amber:#b393ce;
  font-family:Inter,"PingFang SC","Microsoft YaHei",Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-size:14px;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select {
  font:inherit;
  color:inherit;
}

button {
  border:0;
  background:none;
  cursor:pointer;
  touch-action:manipulation;
}

button:disabled {
  cursor:default;
  opacity:.48;
}

button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex="0"]:focus-visible {
  outline:2px solid #aa69db;
  outline-offset:2px;
}

button {
  transition:background .12s,color .12s;
}

button:hover:not(:disabled) {
  filter:brightness(.96);
}

h1,h2,p {
  margin:0;
}

svg {
  vertical-align:middle;
  flex-shrink:0;
}

.topbar {
  color:white;
  background:#351047;
  border-bottom:1px solid #703282;
}

.top-inner,.bound,.planner-inner,.page-body {
  max-width:1690px;
  margin:auto;
}

.top-inner {
  height:50px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 clamp(20px,2.8vw,48px);
  position:relative;
}

.topbar nav,.user-nav,.wordmark,.gear,.title-line,.hero-tools,.range-tabs,.graphhead,.range-line,.stat-title,.stat-foot,.all-accounts,.account-item,.switch-row,.currency-line,.calendar-tools,.date-controls,.view-modes,.add-bill,.monthpick,.actions,.btn,.text-link,.panel-head,.metric-label,.metric-foot,.chart-summary,.segments,.legend,.loan-row,.agenda-row,.config-tip,.loan-meta,.import-actions,.form-actions,.pagination {
  display:flex;
  align-items:center;
}

.topbar nav {
  align-self:stretch;
  gap:3px;
}

.topbar nav button,.gear {
  color:#ebddf0;
  font-size:13px;
  font-weight:550;
}

.topbar nav button {
  padding:0 14px;
  position:relative;
}

.topbar nav .current {
  background:#50205e;
  color:#fff;
}

.topbar nav .current:after {
  content:"";
  position:absolute;
  bottom:0;
  left:14px;
  right:14px;
  height:3px;
  background:#d9a6ef;
  border-radius:4px 4px 0 0;
}

.topbar nav button:hover,.gear:hover {
  background:#542261;
}

.wordmark {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  gap:7px;
  color:#fff;
  font-weight:680;
  font-size:22px;
  letter-spacing:.04em;
}

.logomark {
  display:grid;
  place-items:center;
  transform:rotate(-8deg);
  color:#f6e4ff;
}

.user-nav {
  gap:11px;
  font-size:12px;
  color:#e7dbec;
}

.gear {
  gap:6px;
  border-radius:6px;
  padding:6px 8px;
}

.user-nav>i {
  height:15px;
  width:1px;
  background:#754981;
}

.profile-dot {
  background:#724484;
  border:1px solid #9a6aa9;
  border-radius:50%;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
}

.forecast-band,.page-band {
  color:white;
  background:linear-gradient(178deg,#67268b 0%,#582078 37%,#3c1352 79%,#321143 100%);
}

.forecast-band {
  padding-bottom:22px;
}

.bound {
  padding:19px clamp(20px,2.8vw,48px) 4px;
}

.hero-title,.page-band .bound {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.title-line {
  gap:10px;
}

.title-line svg {
  color:#e1c4ee;
}

.title-line h1 {
  font-size:25px;
  line-height:1.3;
  font-weight:570;
  letter-spacing:.01em;
}

.hero-tools {
  gap:9px;
}

.range-tabs {
  padding:2px;
  background:#42165699;
  border:1px solid #865098;
  border-radius:6px;
}

.range-tabs button {
  color:#e4cdec;
  font-size:11px;
  padding:5px 11px;
  border-radius:4px;
  font-weight:520;
}

.range-tabs [aria-pressed=true] {
  background:#f5e4fd;
  color:#5a2271;
}

.collapse-chart {
  width:26px;
  height:26px;
  padding:0;
  border:1px solid #9765a5;
  border-radius:50%;
  color:#f6eafa;
  display:grid;
  place-items:center;
}

.collapse-chart[aria-expanded=true] svg {
  transform:rotate(180deg);
}

.graphhead {
  gap:7px;
  margin:15px 0 7px;
  color:#f0e3f6;
  font-size:12px;
  font-weight:500;
}

.key-line {
  width:18px;
  height:3px;
  background:#9bdddf;
  border-radius:2px;
}

.forecast-help {
  background:#ffffff12;
  color:#ead7f1;
  border:1px solid #ac86bd;
  width:14px;
  height:14px;
  border-radius:50%;
  font:10px/13px Arial;
  text-align:center;
  position:relative;
  cursor:help;
}

.forecast-help>span {
  position:absolute;
  left:0;
  top:19px;
  display:none;
  background:#30103f;
  padding:8px 10px;
  width:220px;
  text-align:left;
  font:12px/1.6 system-ui;
  z-index:3;
  border-radius:5px;
  box-shadow:0 2px 12px #27083255;
}

.forecast-help:hover>span,.forecast-help:focus>span {
  display:block;
}

.chart-stage {
  display:grid;
  grid-template-columns:minmax(0,1fr) 211px;
  gap:27px;
  align-items:center;
}

.canvas-stage {
  position:relative;
  min-width:0;
}

.canvas-stage canvas {
  display:block;
  width:100%;
  height:122px;
}

.curve-tip {
  position:absolute;
  top:5px;
  background:#260d35ee;
  color:#fff;
  font:12px var(--num);
  padding:7px 9px;
  border:1px solid #88559e;
  border-radius:5px;
  pointer-events:none;
}

.chart-readout {
  border-left:1px solid #8b559b7a;
  display:grid;
  gap:6px;
  padding:9px 0 9px 21px;
  align-self:center;
}

.chart-readout>span {
  font-size:12px;
  color:#e4cfe9;
}

.chart-readout strong {
  font:540 clamp(23px,2.15vw,37px)/1.13 var(--num);
  letter-spacing:-.045em;
  white-space:nowrap;
}

.chart-readout small {
  font:10px var(--num);
  letter-spacing:.025em;
  color:#dbc4e0;
}

.range-line {
  margin:9px 0 0;
  gap:10px;
  font-size:10px;
  color:#d5b9e1;
}

.range-line>span {
  min-width:57px;
}

.range-line>small {
  font-size:10px;
  white-space:nowrap;
}

.timeline {
  position:relative;
  height:23px;
  flex:1;
  border:1px solid #87579a5c;
  background:#331343;
  border-radius:4px;
  overflow:hidden;
}

.timeline canvas {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

#range-frame {
  position:absolute;
  top:0;
  bottom:0;
  border:1px solid #ab74c1;
  border-radius:3px;
  background:#ae76ca35;
  pointer-events:none;
}

#range-frame:before,#range-frame:after {
  content:"";
  position:absolute;
  width:2px;
  height:9px;
  background:#ddc6e7;
  top:5px;
}

#range-frame:before {
  left:3px;
}

#range-frame:after {
  right:3px;
}

.timeline-input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:ew-resize;
}

.timeline:focus-within {
  outline:2px solid #d7b0eb;
}

.planner {
  position:relative;
  margin-top:-6px;
  border-radius:14px 14px 0 0;
  background:var(--bg);
  min-height:55vh;
}

.planner-inner {
  padding:17px clamp(15px,2vw,34px) 30px;
  display:grid;
  grid-template-columns:clamp(205px,19vw,275px) minmax(0,1fr);
  gap:20px;
}

.account-rail {
  min-width:0;
}

.month-stats {
  padding:15px 16px;
  background:#e7e2e9;
  border:1px solid #ddd6e0;
  border-radius:9px;
}

.stat-title {
  justify-content:space-between;
  color:#4e4155;
  font-size:12px;
  font-weight:600;
}

.stat-title small {
  font:10px var(--num);
  color:#786980;
}

.month-stats>strong {
  display:block;
  margin:7px 0 8px;
  font:560 clamp(25px,2.2vw,34px)/1 var(--num);
  color:#3d204b;
  letter-spacing:-.04em;
}

.stat-foot {
  gap:6px;
  font-size:10px;
  color:#6e6572;
  font-variant-numeric:tabular-nums;
}

.stat-foot i {
  width:2px;
  height:2px;
  border-radius:50%;
  background:#9c90a2;
}

.rail-body>h2 {
  margin:19px 8px 9px;
  color:#625868;
  font-size:12px;
  font-weight:600;
}

.all-accounts {
  width:100%;
  gap:8px;
  color:#522663;
  font-size:13px;
  font-weight:600;
  padding:10px 12px;
  border-radius:20px;
}

.all-accounts.selected {
  background:#e6c7f5;
}

.all-accounts span {
  margin-left:auto;
  font:600 11px var(--num);
  padding:2px 6px;
  background:#ffffff6e;
  border-radius:12px;
}

.account-items {
  background:#fff;
  border:1px solid #e2dce5;
  border-radius:10px;
  overflow:hidden;
  margin-top:9px;
}

.account-item {
  width:100%;
  text-align:left;
  gap:9px;
  padding:11px 10px;
  border-bottom:1px solid #ebe7ec;
}

.account-item:last-child {
  border-bottom:0;
}

.account-item:hover,.account-item.selected {
  background:#f3eaf8;
}

.account-icon,.row-icon {
  height:31px;
  width:31px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex-shrink:0;
}

.account-icon.violet,.row-icon.mint {
  background:#ede4f7;
  color:#794aa1;
}

.account-icon.aqua,.row-icon.sand {
  background:#d8f0eb;
  color:#337f77;
}

.account-icon.peach,.row-icon.clay {
  background:#fff0df;
  color:#a9692e;
}

.account-icon.blue {
  background:#e1edf8;
  color:#4b79aa;
}

.account-item b,.account-item small,.row-name b,.row-name small,.row-val b,.row-val small {
  display:block;
}

.account-item b {
  font-size:12px;
  font-weight:570;
}

.account-item small,.row-name small,.row-val small {
  color:var(--muted);
  font-size:10px;
  margin-top:3px;
}

.account-item>svg:last-child {
  margin-left:auto;
  color:#8b7f91;
}

.switch-row {
  width:100%;
  justify-content:space-between;
  padding:7px 8px;
  color:#504a54;
  font-size:12px;
}

.switch-row i {
  width:29px;
  height:16px;
  border-radius:16px;
  background:#a8a3ab;
  position:relative;
}

.switch-row i:before {
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:white;
  box-shadow:0 1px 2px #0003;
}

.switch-row[aria-checked=true] i {
  background:#794399;
}

.switch-row[aria-checked=true] i:before {
  left:15px;
}

.currency-line {
  margin:14px 6px 0;
  padding-top:12px;
  border-top:1px solid #dcd6df;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted);
}

.currency-line b {
  font:500 10px var(--num);
}

.mobile-filters {
  display:none;
}

.calendar-work {
  min-width:0;
}

.calendar-tools {
  background:#fff;
  border:1px solid #e3dde5;
  border-radius:10px;
  min-height:47px;
  padding:6px 9px;
  gap:8px;
  box-shadow:0 2px 6px #30203807;
  margin-bottom:11px;
}

.add-bill {
  gap:5px;
  background:#f3e8fa;
  color:#642c83;
  padding:7px 11px;
  font-size:12px;
  font-weight:580;
  border-radius:6px;
}

.date-controls {
  gap:3px;
  margin-left:auto;
}

.today-btn,.square,.monthpick {
  background:#fff;
  color:#563369;
  font-size:12px;
  border-radius:5px;
  min-height:28px;
}

.today-btn {
  border:1px solid #e5dce9;
  padding:4px 9px;
  margin-right:4px;
}

.square {
  width:25px;
  display:grid;
  place-items:center;
}

.square:hover,.monthpick:hover {
  background:#f5edf8;
}

.monthpick {
  position:relative;
  gap:5px;
  justify-content:center;
  padding:4px 6px;
  white-space:nowrap;
  cursor:pointer;
  font-weight:600;
}

.monthpick input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}

.monthpick input::-webkit-calendar-picker-indicator {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  cursor:pointer;
}

.view-modes {
  border-left:1px solid var(--line);
  padding-left:8px;
  gap:2px;
}

.view-modes button {
  font-size:11px;
  display:flex;
  gap:5px;
  align-items:center;
  border-radius:4px;
  color:var(--muted);
  padding:5px 7px;
}

.view-modes [aria-pressed=true] {
  background:#eee5f4;
  color:#65327d;
}

.month-board {
  background:white;
  border:1px solid #e1dbe3;
  border-radius:11px;
  overflow:hidden;
  box-shadow:0 2px 6px #30203806;
}

.week-head,.month-cells {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
}

.week-head {
  background:#fbfafb;
  color:#665f6b;
  font-size:11px;
  font-weight:550;
  text-align:center;
}

.week-head>span {
  padding:11px 0;
}

.date-cell[data-day] {
  cursor:pointer;
}

.date-cell {
  position:relative;
  min-height:86px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:4px;
  border-right:1px solid #ebe8ec;
  border-top:1px solid #ebe8ec;
  padding:5px 5px 6px;
}

.date-cell:nth-child(7n) {
  border-right:0;
}

.date-cell.outside {
  background:#fbfafb;
  color:#bcb6c0;
}

.num-hit {
  position:absolute;
  top:0;
  right:0;
  width:32px;
  height:29px;
  padding:0;
  text-align:initial;
}

.num {
  position:absolute;
  top:5px;
  right:5px;
  min-width:20px;
  height:20px;
  display:grid;
  place-items:center;
  font:500 11px var(--num);
  border-radius:50%;
}

.date-cell.istoday {
  background:#faf5fd;
}

.date-cell.istoday .num {
  color:white;
  background:#753c95;
  font-weight:650;
}

.chosen {
  box-shadow:inset 0 0 0 1px #a26bbe;
}

.num-hit:hover {
  background:#762c9010;
}

.events {
  margin-top:23px;
  display:grid;
  gap:3px;
  pointer-events:none;
}

.event {
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:2px 3px;
  padding:0;
  text-align:left;
  width:100%;
  pointer-events:auto;
  line-height:1.4;
}

.event span {
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border-radius:3px;
  padding:1px 4px;
  font-size:10px;
  font-weight:550;
}

.event b {
  font:500 10px var(--num);
  color:#ac4b52;
  white-space:nowrap;
}

.event.violet span {
  color:#603584;
  background:#ebd8f8;
}

.event.aqua span {
  color:#26685d;
  background:#c3e9d9;
}

.event.peach span {
  color:#8e5526;
  background:#f9dfb9;
}

.event.blue span {
  color:#325e85;
  background:#d5e9fc;
}

.event.paid b {
  color:#69716d;
}

.day-cash {
  pointer-events:none;
  margin-top:auto;
  align-self:flex-end;
  color:#807983;
  font:10px var(--num);
  white-space:nowrap;
  letter-spacing:-.025em;
}

.istoday .day-cash {
  color:#714587;
}

.page-band .bound {
  padding-top:21px;
  padding-bottom:24px;
}

.page-band .monthpick {
  color:#663779;
}

.page-body {
  padding:20px clamp(16px,2.7vw,45px) 36px;
}

.panel {
  border:1px solid var(--line);
  background:white;
  border-radius:10px;
  padding:18px 20px;
  min-width:0;
}

.panel-head,.chart-summary {
  justify-content:space-between;
  gap:9px;
}

.panel-head h2,.modal-head h2 {
  font-size:17px;
  font-weight:580;
}

.panel-head p,.intro,.form-note {
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
}

.panel-head p {
  margin-top:4px;
}

.btn,.icon-btn {
  border:1px solid #ded7e2;
  background:#fff;
  justify-content:center;
  gap:6px;
  border-radius:6px;
  padding:7px 11px;
  font-size:13px;
  min-height:32px;
}

.icon-btn {
  width:30px;
  padding:4px;
}

.btn.primary {
  color:#fff;
  background:#713a90;
  border-color:#713a90;
}

.page-band .primary {
  background:#f1e0fc;
  color:#552572;
  border-color:#f1e0fc;
}

.actions,.import-actions,.form-actions,.pagination,.config-tip,.loan-meta {
  gap:8px;
}

.text-link {
  gap:3px;
  color:#703d8e;
  font-size:12px;
}

.metrics {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
  margin-bottom:14px;
}

.metric {
  background:#fff;
  border:1px solid var(--line);
  padding:17px 19px;
  border-radius:10px;
}

.metric.hero {
  background:#f3eaf8;
  border-color:#e2d1ed;
}

.metric-label,.metric-foot {
  gap:7px;
  color:#65556c;
  font-size:12px;
}

.big,.chart-summary b {
  font:550 28px/1.25 var(--num);
  letter-spacing:-.04em;
  margin:8px 0;
}

.big em,.chart-summary em {
  font-size:.65em;
  font-style:normal;
  margin-right:3px;
}

.metric-foot {
  font-size:11px;
  color:var(--muted);
  flex-wrap:wrap;
}

.progress {
  width:43px;
  height:4px;
  background:#dfcde8;
  border-radius:8px;
  overflow:hidden;
}

.progress i {
  display:block;
  background:#9263aa;
  height:100%;
}

.vline {
  width:1px;
  height:10px;
  background:#ddd6de;
}

.green {
  color:#68407e;
}

.section-grid {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(210px,1fr);
  gap:14px;
}

.lower {
  margin-top:14px;
}

.loan-row,.agenda-row {
  width:100%;
  border-top:1px solid var(--line);
  padding:12px 0;
  gap:10px;
  text-align:left;
}

.panel-head+.loan-row,.panel-head+.agenda-row {
  margin-top:14px;
}

.row-name b {
  font-size:13px;
}

.row-val,.agenda-row strong {
  margin-left:auto;
  text-align:right;
  font:550 14px var(--num);
}

.loan-next {
  margin-left:auto;
  font-size:11px;
  color:var(--muted);
}

.loan-row>svg,.agenda-row>svg {
  color:#a89bac;
}

.count,.pill {
  padding:4px 7px;
  border-radius:5px;
  background:#f1e8f6;
  color:#694380;
  font-size:11px;
}

.datebox {
  border:1px solid #e0d7e5;
  border-radius:5px;
  padding:5px 7px;
  font:600 17px var(--num);
  color:#714486;
}

.datebox small {
  font-size:10px;
}

.allocation-bar {
  margin:20px 0 15px;
  display:flex;
  gap:3px;
  height:10px;
  border-radius:5px;
  overflow:hidden;
}

.alloc-list {
  display:grid;
  gap:10px;
}

.alloc-list>div {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
}

.alloc-list i,.legend i {
  width:8px;
  height:8px;
  display:inline-block;
  border-radius:2px;
}

.alloc-list b {
  margin-left:auto;
  font:550 12px var(--num);
}

.settingsform {
  max-width:650px;
}

.settingsform form {
  margin-top:17px;
}

.day-summary {
  display:grid;
  gap:5px;
  background:#f6effa;
  border-radius:8px;
  padding:14px;
  color:#552f69;
  margin-bottom:13px;
}

.day-summary b {
  font:550 24px var(--num);
}

.day-summary span,.emptyline {
  color:var(--muted);
  font-size:12px;
}

.emptyline {
  padding:15px 0;
}

.segments {
  border:1px solid var(--line);
  border-radius:6px;
  background:#f5f2f6;
  padding:2px;
}

.segments button {
  font-size:11px;
  padding:5px 8px;
  border-radius:4px;
}

.segments .on {
  background:#fff;
  color:#68378a;
  box-shadow:0 1px 2px #3010401c;
}

.chart-summary {
  margin:15px 0;
}

.chart-summary small {
  font-size:11px;
  color:var(--muted);
}

.chart-summary b {
  display:block;
  font-size:23px;
  margin:2px 0;
}

.legend {
  gap:5px;
  font-size:11px;
  color:var(--muted);
}

.legend i {
  background:var(--mint);
}

.legend i:nth-child(2) {
  background:var(--amber);
  margin-left:6px;
}

.plot {
  display:grid;
  grid-template-columns:40px 1fr;
  height:132px;
  margin:15px 0 30px;
}

.scale {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  font:10px var(--num);
  color:var(--muted);
}

.bars-area {
  position:relative;
}

.gridlines,.bars {
  position:absolute;
  inset:0;
  display:flex;
}

.gridlines {
  flex-direction:column;
  justify-content:space-between;
}

.gridlines i {
  border-top:1px dashed var(--line);
}

.bars {
  gap:2px;
}

.bar-group {
  flex:1;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  position:relative;
  padding:0;
  min-width:0;
}

.bar {
  width:54%;
  max-width:32px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:3px 3px 0 0;
}

.bar i:first-child {
  background:var(--amber);
}

.bar i:last-child {
  background:var(--mint);
}

.bar-group small {
  position:absolute;
  top:calc(100% + 5px);
  white-space:nowrap;
  font-size:10px;
  color:var(--muted);
}

.tooltip {
  display:none;
  position:absolute;
  bottom:60%;
  background:#422952;
  color:white;
  z-index:2;
  padding:6px;
  border-radius:5px;
  font-size:11px;
  white-space:nowrap;
}

.bar-group:hover,.bar-group:focus-visible {
  z-index:3;
}

.bar-group:hover .tooltip,.bar-group:focus-visible .tooltip {
  display:block;
}

.chart-range {
  text-align:right;
  font:10px var(--num);
  color:var(--muted);
}

dialog {
  color:var(--ink);
  background:var(--paper);
  border:1px solid #ded7e4;
  border-radius:15px;
  max-width:min(520px,calc(100vw - 24px));
  width:100%;
  padding:0;
  max-height:89vh;
  box-shadow:0 14px 80px #32103e33;
}

dialog.wide {
  max-width:min(740px,calc(100vw - 24px));
}

dialog::backdrop {
  background:#281535a8;
  backdrop-filter:blur(3px);
}

.modal-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 23px;
  border-bottom:1px solid var(--line);
  background:var(--paper);
  position:sticky;
  top:0;
  z-index:1;
}

.modal-body {
  padding:20px 23px;
}

.icon-btn {
  width:29px;
  height:29px;
}

.intro {
  font-size:13px;
  margin-bottom:16px;
}

.loan-meta {
  gap:10px;
  color:var(--muted);
  font-size:12px;
}

.detail-kpis {
  margin:16px 0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  background:#f3edf7;
  border-radius:9px;
  padding:15px;
  gap:12px;
}

.detail-kpis small {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-bottom:5px;
}

.detail-kpis b {
  font:600 19px var(--num);
  letter-spacing:-.025em;
}

.detail-kpis em {
  font:400 12px var(--num);
  color:var(--muted);
}

.table-scroll {
  overflow-x:auto;
}

table {
  width:100%;
  border-collapse:collapse;
  font:12px var(--num);
  font-variant-numeric:tabular-nums;
}

th,td {
  padding:8px 5px;
  border-bottom:1px solid #e8e1eb;
  text-align:right;
  white-space:nowrap;
}

th {
  font-size:11px;
  font-weight:550;
  color:#73617c;
  background:#f7f4f8;
}

th:first-child,td:first-child {
  text-align:left;
}

td small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:3px;
}

td b {
  font-weight:500;
}

.pill {
  background:#f6e7d9;
  color:#84542e;
}

.pill.ispaid {
  background:#dcefe9;
  color:#3f7363;
}

.pagination {
  gap:8px;
  margin-top:13px;
}

.pagination span {
  margin-right:auto;
  color:var(--muted);
  font-size:11px;
}

.pagination .btn {
  min-height:28px;
  font-size:11px;
  padding:5px 9px;
}

form label {
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:13px;
  font-size:12px;
  font-weight:550;
}

form input,form select {
  width:100%;
  min-width:0;
  border:1px solid #d7cfdc;
  background:#fff;
  color:var(--ink);
  padding:9px;
  border-radius:6px;
  height:39px;
  font-size:13px;
}

.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 13px;
}

.form-note,.config-tip {
  font-size:12px;
  line-height:1.7;
  margin:10px 0 17px;
}

.form-note svg {
  margin-right:4px;
}

.form-actions,.import-actions {
  justify-content:flex-end;
  margin-top:16px;
}

.upload-zone {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:8px;
  padding:20px;
  border:1px dashed #a387b4;
  background:#f6f0f9;
  border-radius:9px;
  text-align:center;
}

.upload-zone:focus-within {
  outline:2px solid #a26fb7;
}

.upload-zone input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}

.upload-zone b {
  max-width:100%;
  overflow-wrap:anywhere;
}

.upload-zone small,.sample-paper small {
  color:var(--muted);
  font-size:11px;
}

.upload-symbol {
  color:#78538b;
}

.upload-img {
  max-width:100%;
  max-height:130px;
}

.error {
  color:#9b442f;
  background:#f9e9df;
  padding:9px;
  border-radius:6px;
  font-size:12px;
}

.config-tip {
  gap:6px;
  color:var(--muted);
  flex-wrap:wrap;
}

.config-tip button {
  padding:0;
}

.manual {
  display:flex;
  align-items:center;
  gap:2px;
  margin:14px 0 0 auto;
  color:var(--muted);
  font-size:12px;
}

.sample-paper {
  display:grid;
  gap:8px;
  margin-bottom:15px;
  padding:15px;
  border-left:3px solid #a17ab4;
  background:#f2eaf7;
  border-radius:4px;
}

.sample-paper span {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  color:var(--muted);
}

.sample-paper b {
  font-size:16px;
}

.review-img {
  max-width:100%;
  max-height:230px;
}

.calc-preview {
  padding:10px 13px;
  background:#f1e9f7;
  font-size:13px;
  color:#69407e;
  border-radius:6px;
}

summary {
  cursor:pointer;
  margin-bottom:12px;
}

#notice {
  position:fixed;
  right:20px;
  bottom:20px;
  padding:10px 16px;
  border-radius:8px;
  background:#572e6d;
  color:white;
  z-index:30;
  pointer-events:none;
  font-size:13px;
  opacity:0;
  transition:opacity .15s;
}

#notice.show {
  opacity:1;
}

.focus-row {
  background:#f6f0fa;
}

.focus-row td:first-child {
  box-shadow:inset 3px 0 #a579bc;
  padding-left:7px;
}

@media(min-width:1450px) {
  .date-cell {
    min-height:96px;
  }
  .canvas-stage canvas {
    height:144px;
  }
  .account-item {
    padding:13px;
  }
  .planner-inner {
    gap:23px;
  }
}

@media(max-width:1050px) {
  .top-inner {
    padding:0 17px;
  }
  .topbar nav button {
    padding:0 10px;
  }
  .wordmark {
    font-size:20px;
  }
  .planner-inner {
    grid-template-columns:188px minmax(0,1fr);
    gap:12px;
    padding-inline:13px;
  }
  .account-item {
    gap:6px;
  }
  .chart-stage {
    grid-template-columns:minmax(0,1fr) 176px;
    gap:14px;
  }
  .chart-readout {
    padding-left:13px;
  }
  .date-cell {
    padding-inline:4px;
    min-height:84px;
  }
  .event {
    display:grid;
  }
  .event span {
    justify-self:start;
  }
  .day-cash {
    font-size:9px;
  }
  .stat-foot {
    font-size:9px;
  }
  .date-controls {
    gap:1px;
  }
  .view-modes button {
    padding:5px;
  }
  .topbar nav {
    gap:0;
  }
}

@media(max-width:760px) {
  .user-label,.user-nav>i,.gear span {
    display:none;
  }
  .user-nav {
    gap:5px;
  }
  .top-inner {
    height:46px;
    gap:7px;
    padding-inline:12px;
  }
  .wordmark {
    position:static;
    transform:none;
    order:-1;
    font-size:18px;
    gap:4px;
  }
  .wordmark svg {
    width:21px;
  }
  .topbar nav {
    margin-right:auto;
  }
  .topbar nav button {
    font-size:12px;
    padding-inline:8px;
  }
  .planner-inner {
    grid-template-columns:157px minmax(0,1fr);
    gap:9px;
    padding-inline:10px;
  }
  .month-stats {
    padding:11px;
  }
  .account-item {
    padding:8px 5px;
  }
  .chart-stage {
    grid-template-columns:minmax(0,1fr) 144px;
    gap:9px;
  }
  .chart-readout strong {
    font-size:22px;
  }
  .chart-readout small {
    font-size:9px;
  }
  .calendar-tools {
    gap:2px;
    padding:5px;
  }
  .view-modes button span {
    display:none;
  }
  .monthpick {
    font-size:11px;
  }
  .date-cell {
    min-height:75px;
  }
  .date-cell .day-cash {
    font-size:8px;
  }
  .week-head span {
    font-size:10px;
  }
  .calendar-tools .monthpick svg:first-child {
    display:none;
  }
  .stat-title small {
    font-size:9px;
  }
  .stat-foot {
    gap:3px;
  }
  .account-icon {
    width:27px;
    height:27px;
  }
  .forecast-band .bound {
    padding-inline:16px;
  }
  .table-scroll table {
    min-width:440px;
  }
}

@media(max-width:620px) {
  .top-inner {
    flex-wrap:wrap;
    height:auto;
    row-gap:0;
    padding-top:6px;
  }
  .wordmark {
    margin-right:auto;
    height:28px;
  }
  .user-nav {
    margin-left:auto;
  }
  .user-nav .gear span {
    display:inline;
  }
  .user-nav .user-label {
    display:inline;
  }
  .topbar nav {
    order:3;
    width:100%;
    height:36px;
    margin:0;
    justify-content:space-between;
  }
  .topbar nav button {
    flex:1;
    padding-inline:3px;
  }
  .title-line h1 {
    font-size:20px;
  }
  .title-line {
    gap:7px;
  }
  .title-line svg {
    width:18px;
  }
  .forecast-band .bound {
    padding:13px 12px 0;
  }
  .hero-tools {
    gap:5px;
  }
  .range-tabs button {
    padding:4px 7px;
  }
  .collapse-chart {
    width:22px;
    height:22px;
  }
  .graphhead {
    margin:12px 0 0;
    font-size:11px;
  }
  .chart-stage {
    display:flex;
    flex-direction:column-reverse;
    gap:5px;
    align-items:stretch;
  }
  .chart-readout {
    display:flex;
    align-items:baseline;
    flex-wrap:wrap;
    border:0;
    align-self:stretch;
    padding:0;
    margin:4px 0 0;
    gap:5px 8px;
  }
  .chart-readout>span {
    font-size:10px;
  }
  .chart-readout strong {
    font-size:19px;
  }
  .chart-readout small {
    margin-left:auto;
  }
  .canvas-stage canvas {
    height:108px;
  }
  .range-line {
    margin-top:3px;
    gap:5px;
  }
  .range-line>span {
    min-width:41px;
  }
  .timeline {
    height:19px;
  }
  .forecast-band {
    padding-bottom:18px;
  }
  .planner-inner {
    display:block;
    padding:10px 8px 23px;
  }
  .account-rail {
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    background:#e7e2e9;
    border-radius:8px;
    margin-bottom:9px;
  }
  .month-stats {
    padding:8px 11px;
    background:none;
    border:0;
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
  }
  .stat-title {
    font-size:11px;
  }
  .stat-title small,.stat-foot {
    display:none;
  }
  .month-stats>strong {
    margin:0;
    font-size:20px;
  }
  .mobile-filters {
    display:flex;
    align-items:center;
    gap:5px;
    padding:8px 10px;
    color:#603b73;
    font-size:11px;
  }
  .rail-body {
    display:none;
    grid-column:1/-1;
    padding:0 10px 12px;
  }
  .filters-open .rail-body {
    display:block;
  }
  .currency-line {
    margin-top:5px;
  }
  .calendar-tools {
    min-height:40px;
    border-radius:7px;
    margin-bottom:7px;
    gap:3px;
  }
  .add-bill,.today-btn {
    font-size:11px;
    padding:5px 7px;
  }
  .today-btn {
    margin-right:0;
  }
  .square {
    width:20px;
  }
  .monthpick {
    padding:3px;
    gap:1px;
  }
  .view-modes {
    padding-left:3px;
  }
  .month-board {
    border-radius:7px;
  }
  .week-head>span {
    padding:8px 0;
  }
  .date-cell {
    padding:2px 2px 3px;
    min-height:65px;
    gap:1px;
  }
  .date-cell .num {
    right:3px;
    top:3px;
    font-size:10px;
    min-width:17px;
    height:17px;
  }
  .date-cell .events {
    margin-top:19px;
  }
  .event {
    gap:1px;
  }
  .event span {
    font-size:9px;
    padding:0 2px;
    max-width:100%;
  }
  .event b {
    font-size:8px;
    font-weight:550;
  }
  .day-cash {
    letter-spacing:-.05em;
  }
  .date-cell .day-cash {
    font-size:clamp(6px,1.63vw,9px);
  }
  .month-cells .date-cell:nth-child(7n),.month-cells .date-cell:nth-child(7n+1) {
    background:#faf8fb;
  }
  .month-cells .istoday {
    background:#f8f0fc;
  }
  .section-grid {
    grid-template-columns:1fr;
  }
  .metrics {
    gap:7px;
    grid-template-columns:1fr 1fr;
  }
  .metric.hero {
    grid-column:1/-1;
  }
  .metric,.panel {
    padding:13px;
  }
  .big {
    font-size:22px;
  }
  .page-body {
    padding:12px 9px 24px;
  }
  .page-band .bound {
    padding:14px 12px 18px;
  }
  .page-band .actions {
    gap:4px;
  }
  .page-band .btn {
    font-size:11px;
    padding:5px 7px;
  }
  .loan-next {
    display:none;
  }
  .detail-kpis {
    gap:5px;
    padding:10px;
  }
  .detail-kpis b {
    font-size:14px;
  }
  .modal-body {
    padding:13px;
  }
  .modal-head {
    padding:12px 14px;
  }
  .form-grid {
    gap:0 8px;
  }
  .table-scroll {
    margin:0 -2px;
  }
  .table-scroll table {
    min-width:430px;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
  }
}

.topbar nav button {
  align-self:stretch;
}

.account-item small {
  font-variant-numeric:tabular-nums;
  color:#736381;
}
