:root {
  --ink:#17293b;
  --muted:#637180;
  --paper:#f5f6f8;
  --line:#e2e6eb;
  --orange:#e78941;
  --teal:#257f77;
  --red:#b44d39;
  --white:#fff
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
a {
  color:#236e75;
  text-underline-offset:3px
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color:transparent
}
button,summary {
  cursor:pointer
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid var(--orange);
  outline-offset:3px
}
h1,h2,h3,p {
  margin-top:0
}
h1 {
  font-size:clamp(28px,3vw,39px);
  line-height:1.18;
  letter-spacing:-1.1px;
  margin-bottom:12px
}
h2 {
  font-size:20px;
  line-height:1.3;
  letter-spacing:-.3px;
  margin-bottom:15px
}
p {
  margin-bottom:16px
}
small {
  display:block;
  font-size:13px;
  color:var(--muted)
}
strong,.numeric,.account-value {
  font-variant-numeric:tabular-nums
}
.muted {
  color:var(--muted)
}
.orange {
  color:var(--orange)
}
.income {
  color:var(--teal)
}
.expense {
  color:var(--red)
}
.transfer {
  color:#5d6490
}
.eyebrow {
  font-size:12px;
  font-weight:700;
  letter-spacing:1.6px;
  color:var(--muted);
  margin-bottom:12px
}
.rail {
  width:236px;
  position:fixed;
  inset:0 auto 0 0;
  background:var(--ink);
  color:#fff;
  padding:33px 25px;
  display:flex;
  flex-direction:column;
  overflow-y:auto
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:30px;
  letter-spacing:-1px;
  font-weight:750;
  text-decoration:none;
  color:white;
  line-height:1
}
.brand-mark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:var(--orange);
  width:37px;
  height:40px;
  color:var(--ink);
  font-size:30px;
  letter-spacing:-3px;
  padding-right:3px
}
.brand-dot {
  font-size:9px;
  color:var(--orange);
  align-self:flex-end;
  margin-bottom:3px
}
.rail-caption {
  font-size:10px;
  letter-spacing:1.8px;
  color:#9aabba;
  margin:24px 0 20px
}
.rail nav {
  display:grid;
  gap:5px
}
.rail nav a {
  color:#bac7d2;
  text-decoration:none;
  font-size:15px;
  padding:10px 13px;
  border-radius:8px
}
.rail nav a:hover,.rail nav a[aria-current] {
  background:#2a3d4f;
  color:#fff
}
.rail nav a[aria-current] {
  box-shadow:inset 3px 0 var(--orange)
}
.rail-bottom {
  margin-top:auto;
  padding-top:35px
}
.rail-bottom small {
  color:#95a8b8;
  margin:3px 0 15px
}
.rail-bottom a {
  font-size:13px;
  color:#bac7d2
}
.logout {
  background:none;
  border:0;
  color:#bac7d2;
  padding:8px 0;
  font-size:13px
}
.workspace {
  margin-left:236px;
  padding:25px 40px 30px;
  max-width:1700px
}
.topline {
  display:flex;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding-bottom:20px;
  margin-bottom:34px;
  font-size:13px
}
.currency {
  font-weight:700;
  letter-spacing:1px
}
.page-heading {
  display:flex;
  justify-content:space-between;
  gap:22px;
  align-items:center;
  margin-bottom:24px
}
.page-heading p:last-child {
  color:var(--muted);
  margin-bottom:0
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 18px;
  min-height:45px;
  background:var(--ink);
  color:white;
  border:1px solid var(--ink);
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  white-space:normal;
  line-height:1.4
}
.button:hover {
  filter:brightness(1.1)
}
.button.secondary {
  background:var(--white);
  border-color:var(--line);
  color:var(--ink)
}
.button.danger {
  color:var(--red);
  border-color:#e9c7bd;
  background:#fff9f7
}
.button:disabled {
  opacity:.6;
  cursor:wait
}
.month-switch {
  display:flex;
  align-items:center;
  gap:12px;
  margin:12px 0 25px
}
.month-switch label {
  font-size:14px;
  color:var(--muted)
}
.month-switch input {
  width:auto;
  padding:8px 10px
}
.month-switch h2 {
  margin:0
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:24px
}
.metric {
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:22px
}
.metric p {
  font-size:13px;
  color:var(--muted);
  margin-bottom:12px
}
.metric strong {
  font-size:clamp(24px,2.3vw,34px);
  font-weight:650;
  line-height:1.2;
  display:block;
  letter-spacing:-.7px;
  overflow-wrap:anywhere
}
.metric small {
  margin-top:13px;
  font-size:12px
}
.metric.highlight {
  background:#fff3e8;
  border-color:#efdbc9
}
.columns {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:24px
}
.panel {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:13px;
  padding:25px;
  margin-bottom:24px;
  min-width:0
}
.section-heading,.spread {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px
}
.section-heading {
  margin-bottom:15px;
  flex-wrap:wrap
}
.section-heading h2 {
  margin:0
}
.section-heading a,.text-link {
  font-size:14px;
  font-weight:600
}
.spread h2 {
  margin:0
}
.budget-row {
  padding:14px 0 18px;
  border-bottom:1px solid var(--line)
}
.budget-row:last-child {
  border:0
}
.budget-row .spread {
  font-size:13px
}
.budget-row .spread strong {
  font-size:14px
}
.meter {
  height:8px;
  border-radius:10px;
  background:#eef1f4;
  overflow:hidden;
  margin:14px 0
}
.meter span {
  height:100%;
  display:block;
  background:var(--teal);
  border-radius:10px
}
.meter.over span {
  background:var(--red)
}
.payment-row {
  display:flex;
  align-items:center;
  gap:14px;
  padding:17px 0;
  border-bottom:1px solid var(--line);
  font-size:14px
}
.payment-row:last-of-type {
  margin-bottom:17px
}
.date-badge {
  flex-shrink:0;
  width:43px;
  background:#f3f5f7;
  border-radius:9px;
  padding:4px;
  text-align:center
}
.date-badge strong {
  font-size:21px;
  display:block;
  line-height:1.25
}
.date-badge small {
  font-size:10px;
  text-transform:uppercase
}
.payment-amount {
  margin-left:auto;
  text-align:right
}
.payment-amount a {
  display:block;
  font-size:12px;
  margin-top:5px
}
.advice {
  background:#f0f6f4;
  border-color:#dce9e4
}
.advice p:not(.eyebrow) {
  font-size:14px
}
.table-wrap {
  width:100%;
  overflow-x:auto
}
table {
  width:100%;
  border-collapse:collapse;
  min-width:650px;
  text-align:left;
  font-size:14px
}
th {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.8px;
  color:var(--muted);
  padding:13px 12px;
  border-bottom:1px solid var(--line);
  white-space:nowrap
}
td {
  padding:17px 12px;
  border-bottom:1px solid #eef0f3;
  vertical-align:middle
}
tr:last-child td {
  border-bottom:0
}
td small {
  font-size:12px;
  margin-top:5px
}
td strong {
  font-weight:600
}
.numeric {
  text-align:right;
  white-space:nowrap
}
.tag {
  font-size:12px;
  background:#f1f4f6;
  padding:3px 8px;
  border-radius:5px;
  display:inline-block
}
.empty {
  text-align:center;
  color:var(--muted);
  padding:38px 20px
}
.empty h2 {
  color:var(--ink)
}
.account-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
  gap:24px
}
.account-grid>.panel {
  margin-bottom:0
}
.account-grid {
  margin-bottom:24px
}
.account .tag {
  margin-bottom:20px
}
.account h2 {
  margin-bottom:7px
}
.account-value {
  display:block;
  font-size:31px;
  font-weight:650;
  margin:18px 0 13px;
  letter-spacing:-.6px
}
.account>a {
  display:inline-block;
  margin-top:18px;
  font-size:14px
}
.notice {
  background:#fff3e8;
  border:1px solid #f0decd;
  padding:17px 20px;
  border-radius:9px;
  font-size:14px
}
.help {
  font-size:13px;
  line-height:1.5;
  color:var(--muted);
  margin:8px 0
}
.form-panel {
  max-width:760px
}
.stack {
  display:grid;
  gap:20px
}
.field {
  min-width:0
}
.field[hidden] {
  display:none
}
.field label {
  display:block;
  font-size:14px;
  font-weight:600;
  margin-bottom:7px
}
input,select,textarea {
  border:1px solid #cbd3dc;
  border-radius:7px;
  min-height:45px;
  padding:10px 12px;
  background:#fff;
  color:var(--ink);
  width:100%;
  max-width:100%
}
input[type=checkbox] {
  width:22px;
  height:22px;
  min-height:22px;
  accent-color:var(--teal)
}
textarea {
  resize:vertical
}
ul.errorlist {
  color:var(--red);
  margin:8px 0;
  padding-left:20px;
  font-size:14px
}
.errorlist {
  color:var(--red)
}
.actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:5px
}
.filter-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
  align-items:end;
  padding-top:18px
}
.filters summary {
  font-weight:600
}
.inline-totals {
  display:flex;
  gap:26px;
  align-items:center;
  flex-wrap:wrap;
  margin:20px 0
}
.inline-totals>span {
  font-size:13px
}
.inline-totals strong {
  display:block;
  font-size:22px
}
.inline-totals .button {
  margin-left:auto
}
.pagination {
  display:flex;
  justify-content:center;
  gap:24px;
  font-size:14px
}
.calendar-panel {
  padding:0;
  overflow:hidden
}
.weekdays,.calendar-week {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr))
}
.weekdays span {
  padding:10px 13px;
  background:#edf1f4;
  font-size:12px;
  font-weight:600
}
.calendar-day {
  min-height:112px;
  border-right:1px solid var(--line);
  border-top:1px solid var(--line);
  padding:8px;
  min-width:0
}
.calendar-day:last-child {
  border-right:0
}
.calendar-day.outside {
  background:#f8f9fa
}
.day-number {
  font-size:13px;
  color:var(--muted)
}
.calendar-event {
  display:block;
  padding:5px;
  background:#fff0e2;
  border-left:2px solid var(--orange);
  border-radius:3px;
  font-size:11px;
  line-height:1.3;
  margin-top:6px;
  overflow-wrap:anywhere
}
.calendar-event small {
  font-size:10px;
  margin-top:3px
}
.calendar-event.paid {
  background:#e4f2ed;
  border-color:var(--teal)
}
.list-row {
  padding:16px 0;
  border-bottom:1px solid var(--line)
}
.list-row small {
  margin-bottom:10px
}
.list-row .button {
  font-size:12px;
  padding:7px 10px;
  min-height:35px
}
details:not(.filters) {
  padding:15px 0;
  border-bottom:1px solid var(--line)
}
details summary {
  font-size:14px
}
details p {
  font-size:13px;
  margin:16px 0 8px
}
pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:12px;
  max-height:260px;
  overflow:auto;
  background:#f4f6f8;
  padding:15px;
  border-radius:7px
}
.danger-zone {
  margin-top:30px
}
.danger-zone summary {
  color:var(--red)
}
hr {
  border:0;
  border-top:1px solid var(--line);
  margin:25px 0
}
.chips {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 25px
}
.chips button {
  background:#f2f5f6;
  border:1px solid var(--line);
  border-radius:25px;
  padding:8px 12px;
  color:var(--ink);
  font-size:13px
}
.answer {
  border-left:3px solid var(--teal)
}
.messages {
  margin-bottom:20px
}
.message {
  padding:13px 18px;
  border-radius:8px;
  background:#e3f1eb;
  font-size:14px
}
.message.error {
  background:#f9e8e2;
  color:var(--red)
}
footer {
  font-size:12px;
  color:var(--muted);
  margin-top:35px;
  border-top:1px solid var(--line);
  padding-top:20px
}
.menu-toggle,.mobile-nav {
  display:none
}
.skip {
  position:fixed;
  top:-80px;
  left:20px;
  background:white;
  z-index:99;
  padding:12px
}
.skip:focus {
  top:10px
}
.auth-workspace {
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:40px 20px;
  background:radial-gradient(ellipse at top left,#fae9d7,transparent 60%),#f5f6f8
}
.auth-shell {
  width:100%;
  max-width:450px
}
.auth-shell>.brand {
  margin-bottom:55px
}
.brand.dark {
  color:var(--ink)
}
.auth-shell h1 {
  font-size:48px;
  letter-spacing:-2px;
  margin-bottom:20px
}
.auth-shell>.muted {
  max-width:360px
}
.auth-shell>.panel {
  margin-top:30px;
  padding:30px
}
.auth-shell .button {
  width:100%
}
.auth-shell>.help {
  text-align:center
}
.trend {
  display:flex;
  gap:18px;
  align-items:flex-end;
  padding:15px 8px 0;
  height:225px
}
.trend-month {
  flex:1;
  min-width:0;
  text-align:center;
  font-size:12px;
  color:var(--muted)
}
.bars {
  height:155px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:6px;
  border-bottom:1px solid var(--line);
  margin-bottom:10px
}
.bar {
  width:18px;
  max-width:36%;
  border-radius:4px 4px 0 0
}
.income-bar {
  background:var(--teal)
}
.expense-bar {
  background:var(--orange)
}
.legend {
  font-size:11px;
  color:var(--muted);
  display:flex;
  gap:6px;
  align-items:center
}
.legend i {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:2px
}
.income-dot {
  background:var(--teal)
}
.expense-dot {
  background:var(--orange);
  margin-left:6px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap
}

@media(min-width:1700px) {
  .workspace {
  margin-right:auto
}

}
@media(max-width:1200px) {
  .workspace {
  padding:24px
}
.rail {
  width:210px;
  padding:30px 18px
}
.workspace {
  margin-left:210px
}
.metrics {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.columns {
  grid-template-columns:minmax(0,1fr)
}
.filter-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

}
@media(max-width:760px) {
  body {
  font-size:15px
}
.rail {
  position:relative;
  inset:auto;
  width:100%;
  padding:18px 20px;
  display:block;
  overflow:visible
}
.brand {
  font-size:25px
}
.brand-mark {
  width:31px;
  height:34px;
  font-size:26px
}
.rail-caption,.rail-bottom {
  display:none
}
.menu-toggle {
  display:block;
  position:absolute;
  right:20px;
  top:18px;
  background:#2a3d4f;
  border:1px solid #425467;
  color:#fff;
  border-radius:7px;
  min-height:36px;
  padding:5px 12px;
  font-size:13px
}
.rail nav {
  display:none;
  padding-top:20px;
  grid-template-columns:1fr 1fr
}
.rail nav.open {
  display:grid
}
.rail:has(nav.open) .rail-bottom {
  display:block;
  padding:20px 12px 0
}
.workspace {
  margin:0;
  padding:20px 17px 105px
}
.topline {
  margin-bottom:25px;
  padding-bottom:15px;
  font-size:12px
}
.page-heading {
  display:block;
  margin-bottom:24px
}
.page-heading>.button {
  margin-top:20px
}
h1 {
  font-size:29px;
  letter-spacing:-.8px
}
h2 {
  font-size:18px
}
.eyebrow {
  font-size:10px
}
.metrics {
  gap:10px;
  margin-bottom:18px
}
.metric {
  padding:17px 13px;
  border-radius:10px
}
.metric p {
  font-size:11px;
  min-height:32px;
  margin-bottom:8px
}
.metric strong {
  font-size:24px
}
.metric small {
  font-size:11px;
  margin-top:10px;
  line-height:1.4
}
.panel {
  padding:20px 16px;
  margin-bottom:18px
}
.columns {
  gap:0
}
.section-heading a {
  font-size:12px
}
.budget-row .spread {
  font-size:11px
}
.budget-row .spread strong {
  font-size:12px
}
.payment-row {
  gap:10px;
  font-size:13px
}
.payment-row small {
  font-size:11px
}
.payment-amount a {
  font-size:11px
}
.account-grid {
  grid-template-columns:1fr;
  gap:18px
}
.filter-grid {
  gap:12px
}
.filter-grid label {
  font-size:12px
}
input,select,textarea {
  font-size:16px
}
.inline-totals {
  gap:16px
}
.inline-totals strong {
  font-size:20px
}
.inline-totals .button {
  margin-left:0;
  width:100%
}
.calendar-panel {
  display:none
}
.mobile-nav {
  display:flex;
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  justify-content:space-around;
  align-items:center;
  gap:8px;
  background:white;
  border-top:1px solid var(--line);
  padding:12px 10px max(12px,env(safe-area-inset-bottom));
  z-index:10
}
.mobile-nav a {
  color:var(--ink);
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  padding:9px
}
.mobile-nav .quick-add {
  background:var(--ink);
  color:#fff;
  border-radius:8px;
  padding:12px 17px
}
.auth-shell h1 {
  font-size:42px
}
.auth-shell>.brand {
  margin-bottom:35px
}
.trend {
  gap:10px
}
.bars {
  gap:4px
}
.actions>.button {
  flex:1
}
.spread {
  gap:10px;
  flex-wrap:wrap
}
.calendar-week {
  font-size:11px
}
.month-switch {
  flex-wrap:wrap
}
.list-row {
  font-size:13px
}
.legend {
  font-size:10px
}

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

}
