/* [next]/internal/font/google/inter_8db6fa51.module.css [app-client] (css) */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/46a9e2f250689b4a-s.0-dom-5bn10r2.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/76b70a1dbe058eb5-s.1y4-pdgsjb-pw.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/2fb76073e23fd9e4-s.3lvt2whj97whp.woff2") format("woff2");
  unicode-range: U+1F??;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/6131cbbf5549afa2-s.2uwcyprjm3xu3.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/45462fd7b7c12654-s.0k62hbripvv8p.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/ba63f6a0e436df8e-s.3-6t-g6q0vh0a.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/07c7676b89ed2778-s.p.2bn3s6zvc0dyp.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter Fallback;
  src: local(Arial);
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0.0%;
  size-adjust: 107.12%;
}

.inter_8db6fa51-module__MMaAbG__className {
  font-family: Inter, Inter Fallback;
  font-style: normal;
}

.inter_8db6fa51-module__MMaAbG__variable {
  --font-sans: "Inter", "Inter Fallback";
}

/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --brand: #1ac4db;
  --brand-strong: #0c8fa3;
  --brand-soft: #e6fbfd;
  --brand-tint: #f1fdfe;
  --navy: #0f1d38;
  --bg: #eef6f8;
  --surface: #fff;
  --surface-2: #f4f8fa;
  --line: #d2eaf0;
  --line-strong: #cde6ec;
  --field-bg: #f4f8fa;
  --field-edge: #d8e3e9;
  --panel-bg: #fff;
  --text: #0f1d38;
  --text-2: #4b5a6e;
  --text-3: #6f7f92;
  --pos: #138a63;
  --pos-soft: #e6f6ef;
  --neg: #c2415a;
  --neg-soft: #fbecef;
  --warn: #b7791f;
  --warn-soft: #fdf4e3;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px #0f1d380a, 0 4px 16px #0f1d380a;
  --focus: 0 0 0 3px #1ac4db59;
  --topbar-bg: #eef6f8e6;
  --nav-bg: #fffffff5;
  --float-bg: #0f1d38;
  --hero-bg: linear-gradient(160deg, #f4feff 0%, #e8fbfd 55%, #ddfcff 100%);
  --hero-edge: #d6f2f6;
  --tile-bg: #e6fbfd;
  --tile-edge: #b9ebf2;
  --logo-tile-bg: #e6fbfd;
  --art-floor: #1ac4db47;
  --art-bar-a: #5fdcec;
  --art-bar-b: #18b4ca;
  --art-bar-side: #0c8fa3;
  --art-bar-top: #b3f1f8;
  --art-arrow: #0c8fa3;
  --art-arrow-glow: #1ac4db59;
  --art-wave: #1ac4db1a;
  --nav-h: 64px;
  --side-w: 248px;
  --gutter: 16px;
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans), system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3 {
  letter-spacing: -.01em;
  margin: 0;
  font-weight: 500;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.05rem;
}

h3 {
  font-size: .95rem;
}

p {
  margin: 0;
}

.num {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-2);
}

.faint {
  color: var(--text-3);
  font-size: .85rem;
}

.pos {
  color: var(--pos);
}

.neg {
  color: var(--neg);
}

.sr-only {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.shell {
  min-height: 100dvh;
}

.sidebar {
  display: none;
}

.topbar {
  z-index: 20;
  height: 56px;
  padding: 0 var(--gutter);
  background: var(--topbar-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid #0000;
  align-items: center;
  gap: 10px;
  display: flex;
  position: sticky;
  top: 0;
}

.brand {
  letter-spacing: .02em;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 600;
  display: flex;
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand small {
  letter-spacing: 0;
  color: var(--text-3);
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.1;
  display: block;
}

.topbar .spacer {
  flex: 1;
}

.main {
  padding: 8px var(--gutter) calc(var(--nav-h) + 32px + env(safe-area-inset-bottom));
  max-width: 1080px;
  margin: 0 auto;
}

.page-head {
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 8px 0 18px;
  display: flex;
}

.page-head p {
  margin-top: 2px;
}

.bottom-nav {
  z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  display: grid;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.bottom-nav a {
  color: var(--text-3);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  font-size: .7rem;
  display: flex;
}

.bottom-nav a[aria-current="page"] {
  color: var(--brand-strong);
}

.bottom-nav .add {
  color: var(--surface);
}

.bottom-nav .add span.icon {
  background: var(--brand);
  width: 44px;
  height: 44px;
  color: var(--navy);
  border-radius: 14px;
  place-items: center;
  display: grid;
}

.bottom-nav .add span.label {
  display: none;
}

@media (min-width: 900px) {
  .sidebar {
    width: var(--side-w);
    background: var(--surface);
    border-right: 1px solid var(--line);
    flex-direction: column;
    gap: 4px;
    padding: 20px 14px;
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
  }

  .sidebar .brand {
    padding: 4px 8px 20px;
  }

  .sidebar nav {
    flex-direction: column;
    gap: 2px;
    display: flex;
  }

  .sidebar nav a {
    border-radius: var(--radius-sm);
    color: var(--text-2);
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    display: flex;
  }

  .sidebar nav a:hover {
    background: var(--surface-2);
  }

  .sidebar nav a[aria-current="page"] {
    background: var(--brand-tint);
    color: var(--brand-strong);
  }

  .sidebar .side-foot {
    border-top: 1px solid var(--line);
    margin-top: auto;
    padding: 10px;
  }

  .shell-body {
    margin-left: var(--side-w);
  }

  .topbar .brand, .bottom-nav {
    display: none;
  }

  .main {
    padding: 16px 32px 48px;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.card + .card {
  margin-top: 12px;
}

.card-head {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  display: flex;
}

.card-head a {
  color: var(--brand-strong);
  font-size: .85rem;
}

.grid {
  gap: 12px;
  display: grid;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section {
  margin-top: 20px;
}

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

@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.stat .label {
  color: var(--text-3);
  font-size: .8rem;
}

.stat .value {
  letter-spacing: -.01em;
  margin-top: 4px;
  font-size: 1.25rem;
  font-weight: 500;
}

.stat .hint {
  color: var(--text-3);
  font-size: .78rem;
}

.rows {
  flex-direction: column;
  display: flex;
}

.row {
  border-top: 1px solid var(--line);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 11px 0;
  display: flex;
}

.rows > .row:first-child {
  border-top: 0;
}

.row .grow {
  flex: 1;
  min-width: 0;
}

.row .title {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.row .sub {
  color: var(--text-3);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .8rem;
  overflow: hidden;
}

.row .amount {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

a.row:hover .title {
  color: var(--brand-strong);
}

.avatar {
  width: 34px;
  height: 34px;
  color: var(--text);
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: .8rem;
  font-weight: 600;
  display: grid;
}

.dot {
  border-radius: 50%;
  flex: none;
  width: 8px;
  height: 8px;
  display: inline-block;
}

.badge {
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-size: .75rem;
  display: inline-flex;
}

.bar {
  background: var(--surface-2);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}

.bar > span {
  border-radius: 99px;
  height: 100%;
  display: block;
}

.balance-row .amount {
  font-weight: 500;
}

.balance-tag {
  font-size: .75rem;
}

.empty {
  text-align: center;
  color: var(--text-3);
  padding: 28px 12px;
  font-size: .9rem;
}

.empty svg {
  color: var(--line-strong);
  margin: 0 auto 8px;
  display: block;
}

.filters {
  margin: 0 calc(var(--gutter) * -1) 6px;
  padding: 2px 2px 10px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scrollbar-width: none;
  gap: 8px;
  display: flex;
  overflow-x: auto;
}

.filters::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .filters {
    flex-wrap: wrap;
    margin: 0 0 6px;
    padding-left: 2px;
    padding-right: 2px;
  }
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  height: 36px;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 999px;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: .85rem;
  display: inline-flex;
  position: relative;
}

.chip.on {
  background: var(--brand-soft);
  color: var(--text);
  border-color: #0000;
}

.chip select {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
}

.chip input[type="date"] {
  background: none;
  border: 0;
  width: 128px;
  font-size: .85rem;
}

.person-pills {
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 12px;
  padding: 0 var(--gutter);
  gap: 8px;
  display: flex;
  overflow-x: auto;
}

@media (min-width: 900px) {
  .person-pills {
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 0;
  }
}

.form {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.tx-page {
  max-width: 1080px;
}

.tx-cols {
  gap: 14px;
  display: grid;
}

.tx-col {
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  display: flex;
}

@media (min-width: 1000px) {
  .tx-page .card {
    padding: 24px 28px;
  }

  .tx-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 18px 44px;
  }
}

.field {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.field > span, .field > label, .label-text {
  color: var(--text-2);
  font-size: .82rem;
}

.field-row {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.input, .select, .textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  outline: none;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--focus);
}

.input.big {
  letter-spacing: -.01em;
  min-height: 56px;
  font-size: 1.6rem;
  font-weight: 500;
}

.textarea {
  resize: vertical;
  min-height: 80px;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237d8a9b' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.segmented {
  background: var(--surface-2);
  border-radius: 12px;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  display: grid;
}

.segmented button {
  min-height: 38px;
  color: var(--text-2);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 9px;
  font-size: .85rem;
}

.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.check {
  cursor: pointer;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  display: flex;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-strong);
}

.split-row {
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 10px;
  display: grid;
}

.error {
  border-radius: var(--radius-sm);
  background: var(--neg-soft);
  color: var(--neg);
  padding: 10px 12px;
  font-size: .88rem;
}

.notice {
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: var(--text-2);
  padding: 10px 12px;
  font-size: .88rem;
}

.btn {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-height: 44px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, border-color .15s;
  display: inline-flex;
}

.btn:hover {
  background: var(--surface-2);
}

.btn:focus-visible, .chip:focus-visible, a:focus-visible {
  box-shadow: var(--focus);
  outline: none;
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--navy);
}

.btn.primary:hover {
  background: #17b3c8;
}

.btn.ghost {
  color: var(--text-2);
  background: none;
  border-color: #0000;
}

.btn.ghost:hover {
  background: var(--surface-2);
}

.btn.danger {
  color: var(--neg);
}

.btn.small {
  min-height: 34px;
  padding: 0 10px;
  font-size: .82rem;
}

.btn.block {
  width: 100%;
}

.btn:disabled {
  opacity: .55;
  cursor: default;
}

.icon-btn {
  width: 40px;
  height: 40px;
  color: var(--text-2);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 10px;
  place-items: center;
  display: grid;
}

.icon-btn:hover {
  background: var(--surface-2);
}

.actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.bulkbar {
  left: 12px;
  right: 12px;
  bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));
  z-index: 40;
  border-radius: var(--radius);
  background: var(--float-bg);
  color: #fff;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  display: flex;
  position: fixed;
  box-shadow: 0 8px 30px #0f1d3840;
}

.bulkbar .select {
  color: #fff;
  background-color: #ffffff1a;
  border-color: #fff3;
  width: auto;
  min-height: 36px;
  padding: 6px 30px 6px 10px;
  font-size: .85rem;
}

.bulkbar .select option {
  color: var(--text);
}

.bulkbar .btn {
  color: #fff;
  background: none;
  border-color: #ffffff40;
  min-height: 36px;
}

@media (min-width: 900px) {
  .bulkbar {
    left: calc(var(--side-w) + 32px);
    bottom: 24px;
    right: 32px;
  }
}

.toast {
  left: 50%;
  bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom));
  z-index: 60;
  background: var(--float-bg);
  color: #fff;
  border-radius: 12px;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  font-size: .88rem;
  animation: .2s ease-out toast-in;
  position: fixed;
  transform: translateX(-50%);
  box-shadow: 0 8px 30px #0f1d3840;
}

.toast.error {
  background: var(--neg);
}

@media (min-width: 900px) {
  .toast {
    bottom: 28px;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

.tabs {
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 16px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  gap: 4px;
  display: flex;
  overflow-x: auto;
}

.tabs a {
  color: var(--text-2);
  border-bottom: 2px solid #0000;
  flex: none;
  padding: 10px 12px;
  font-size: .88rem;
}

.tabs a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--brand);
}

@media (min-width: 900px) {
  .tabs {
    margin: 0 0 20px;
    padding: 0;
  }
}

.swatches {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.swatch {
  border: 2px solid var(--surface);
  width: 28px;
  height: 28px;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  border-radius: 50%;
}

.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--text);
}

.sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  margin-top: 8px;
  padding: 14px;
}

table.preview {
  border-collapse: collapse;
  width: 100%;
  font-size: .85rem;
}

table.preview th, table.preview td {
  text-align: left;
  border-top: 1px solid var(--line);
  white-space: nowrap;
  padding: 8px 6px;
}

table.preview th {
  color: var(--text-3);
  border-top: 0;
  font-weight: 500;
}

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

.steps {
  gap: 6px;
  margin-bottom: 16px;
  display: flex;
}

.steps span {
  background: var(--line);
  border-radius: 99px;
  flex: 1;
  height: 4px;
}

.steps span.on {
  background: var(--brand);
}

.dup {
  opacity: .5;
}

.grid > *, .shell-body, .main {
  min-width: 0;
}

html, body {
  overflow-x: clip;
}

.grid > .card + .card {
  margin-top: 0;
}

@media (min-width: 900px) {
  .topbar {
    display: none;
  }

  .main {
    padding-top: 32px;
  }
}

:root[data-theme="dark"] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --brand-strong: #1ac4db;
  --brand-soft: #0a2234;
  --brand-tint: #1ac4db14;
  --bg: #030a14;
  --surface: #061220;
  --surface-2: #0c1724;
  --line: #15334a;
  --line-strong: #1f3a52;
  --field-bg: #0c1724;
  --field-edge: #1b2b3d;
  --panel-bg: #050c16;
  --text: #f5f7f6;
  --text-2: #aab5c0;
  --text-3: #8d99a6;
  --pos: #3fd19b;
  --pos-soft: #3fd19b24;
  --neg: #ff8aa0;
  --neg-soft: #ff8aa024;
  --warn: #f2be45;
  --warn-soft: #f2be4524;
  --shadow: 0 1px 2px #0000004d, 0 4px 16px #00000040;
  --topbar-bg: #030a14e0;
  --nav-bg: #050c16f5;
  --float-bg: #0a2234;
  --hero-bg: radial-gradient(70% 60% at 15% 0%, #1ac4db33, transparent 60%),
    linear-gradient(155deg, #10304a 0%, #0c1f35 45%, #0a1729 100%);
  --hero-edge: #1ac4db38;
  --tile-bg: #0a2234;
  --tile-edge: #1c4a63;
  --logo-tile-bg: linear-gradient(160deg, #10304a, #0a1a2c);
  --art-floor: #1ac4db4d;
  --art-bar-a: #1ac4db;
  --art-bar-b: #0a5f6e;
  --art-bar-side: #084a56;
  --art-bar-top: #7fe6f2;
  --art-arrow: #b8f6ff;
  --art-arrow-glow: #1ac4db8c;
  --art-wave: #1ac4db14;
}

:root[data-theme="dark"] .card, :root[data-theme="dark"] .stat {
  border-color: var(--line);
}

:root[data-theme="dark"] .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237890a6' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] .error {
  color: #ffb3c1;
}

.side-foot .theme-row {
  align-items: center;
  gap: 4px;
  display: flex;
}

.auth-scene {
  --auth-base-width: 1440px;
  --auth-base-height: 810px;
  --auth-scale: min(calc((100vw - 64px) / 1440px), calc((100dvh - 64px) / 810px));
  --au-bg: #eef6f8;
  --au-frame-edge: #cde6ec;
  --au-left: radial-gradient(70% 55% at 0% 0%, #1ac4db29, transparent 70%),
    linear-gradient(160deg, #f6feff 0%, #e9fbfd 55%, #ddf7fb 100%);
  --au-right: #fff;
  --au-panel-edge: #d2eaf0;
  --au-primary: #1ac4db;
  --au-primary-2: #0ca5bd;
  --au-accent-text: #0c8fa3;
  --au-text: #0f1d38;
  --au-text-2: #4b5a6e;
  --au-input-bg: #f4f8fa;
  --au-input-edge: #d8e3e9;
  --au-input-icon: #6f7f92;
  --au-tile-bg: #e6fbfd;
  --au-tile-edge: #b9ebf2;
  --au-sep: #dbe4ea;
  --au-curve: #1ac4db24;
  --au-google-edge: #cfd8de;
  background: var(--au-bg);
  min-width: fit-content;
  min-height: 100dvh;
  color: var(--au-text);
  background-image: linear-gradient(#eef6f82e, #eef6f82e), url("/images/background-waves-white.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  justify-content: safe center;
  align-items: safe center;
  padding: 32px;
  display: flex;
}

:root[data-theme="dark"] .auth-scene {
  background-image: linear-gradient(#030a146b, #030a146b), url("/images/background-waves.jpg");
}

.auth-scene .auth-frame {
  isolation: isolate;
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  background: #ffffff8c;
  border-color: #ffffffd9;
  position: relative;
  box-shadow: inset 0 0 0 1px #0f1d382e, inset 0 1px #ffffffc7, 0 18px 45px #0f1d3824;
}

.auth-scene .brand-panel {
  background: none;
}

:root[data-theme="dark"] .auth-scene .auth-frame {
  background: #030a1429;
  border-color: #cde6ec85;
  box-shadow: inset 0 0 0 1px #cde6ec24, inset 0 1px #ffffff29, 0 18px 45px #00000047;
}

:root[data-theme="dark"] .auth-scene {
  --au-bg: #030a14;
  --au-frame-edge: #15334a;
  --au-left: radial-gradient(75% 60% at 0% 0%, #1ac4db24, transparent 70%),
    linear-gradient(160deg, #0a2034 0%, #071729 50%, #04101d 100%);
  --au-right: #050c16;
  --au-panel-edge: #15334a;
  --au-accent-text: #1ac4db;
  --au-text: #f5f7f6;
  --au-text-2: #aab5c0;
  --au-input-bg: #0c1724;
  --au-input-edge: #1b2b3d;
  --au-input-icon: #8d99a6;
  --au-tile-bg: #0a2234;
  --au-tile-edge: #1c4a63;
  --au-sep: #1f2c3a;
  --au-curve: #1ac4db0b;
  --au-google-edge: #3a4654;
}

.auth-viewport {
  width: calc(var(--auth-base-width) * var(--auth-scale));
  height: calc(var(--auth-base-height) * var(--auth-scale));
  flex: none;
}

.auth-frame {
  width: var(--auth-base-width);
  height: var(--auth-base-height);
  border: 1px solid var(--au-frame-edge);
  background: var(--au-left);
  transform: scale(var(--auth-scale));
  transform-origin: 0 0;
  border-radius: 30px;
  grid-template-columns: 53fr 47fr;
  display: grid;
  position: relative;
  overflow: hidden;
}

.brand-panel {
  flex-direction: column;
  min-width: 0;
  padding: 47px 0 0 90px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.brand-panel > * {
  position: relative;
}

.brand-logo {
  align-items: center;
  gap: 18px;
  display: flex;
}

.brand-logo img {
  width: 59px;
  height: 59px;
}

.brand-logo span {
  letter-spacing: -.01em;
  color: var(--au-text);
  font-size: 40.8px;
  font-weight: 700;
}

.brand-logo em, .brand-title em {
  color: var(--au-accent-text);
  font-style: normal;
}

.brand-content {
  flex-direction: column;
  flex: 1;
  justify-content: center;
  width: 100%;
  padding: 18px 24px 47px 0;
  display: flex;
}

.brand-copy, .brand-title {
  width: 100%;
  max-width: none;
}

.brand-title {
  letter-spacing: -.015em;
  color: var(--au-text);
  margin: 0;
  font-size: 52.8px;
  font-weight: 700;
  line-height: 1.1;
}

.brand-desc {
  max-width: none;
  color: var(--au-text-2);
  margin-top: 27px;
  font-size: 25.6px;
  line-height: 1.3;
}

.brand-benefits {
  z-index: 1;
  flex-direction: column;
  gap: 12px;
  margin: 29px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.brand-benefits li {
  max-width: none;
  color: var(--au-text);
  align-items: center;
  gap: 23px;
  font-size: 18.9px;
  line-height: 1.3;
  display: flex;
}

.brand-benefit-icon {
  width: 50px;
  height: 50px;
  color: var(--au-primary);
  background: var(--au-tile-bg);
  border: 1px solid var(--au-tile-edge);
  border-radius: 10px;
  flex: none;
  place-items: center;
  display: grid;
}

.auth-panel {
  background: var(--au-right);
  border-left: 1px solid var(--au-panel-edge);
  border-radius: 30px 0 0 30px;
  flex-direction: column;
  justify-content: safe center;
  align-items: center;
  min-width: 0;
  padding: 24px 64px;
  display: flex;
  overflow: hidden;
}

.auth-panel-logo {
  background: var(--au-tile-bg);
  border: 1px solid var(--au-tile-edge);
  border-radius: 20px;
  flex: none;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
  display: grid;
}

.auth-panel-logo img {
  width: 55%;
  height: auto;
}

.auth-box {
  width: 100%;
  max-width: 572px;
}

.auth-box h1 {
  text-align: center;
  letter-spacing: -.01em;
  color: var(--au-text);
  font-size: 38.4px;
  font-weight: 700;
}

.auth-sub {
  text-align: center;
  height: 52px;
  color: var(--au-text-2);
  justify-content: center;
  align-items: center;
  margin: 4px 0 16px;
  font-size: 21.6px;
  line-height: 1.2;
  display: flex;
}

.auth-sub-error {
  color: #c2415a;
  font-size: 17px;
  font-weight: 500;
}

:root[data-theme="dark"] .auth-sub-error {
  color: #ff8aa0;
}

.auth-form {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.auth-field {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.auth-input {
  position: relative;
}

.auth-input input {
  border: 1px solid var(--au-input-edge);
  background: var(--au-input-bg);
  width: 100%;
  height: 62px;
  color: var(--au-text);
  border-radius: 14px;
  outline: none;
  padding: 0 64px 0 72px;
  font-size: 21.6px;
  transition: border-color .15s, box-shadow .15s;
}

.auth-input input::placeholder {
  color: var(--au-input-icon);
}

.auth-input input:focus {
  border-color: var(--au-primary);
  box-shadow: 0 0 0 3px #1ac4db38;
}

.auth-input-icon {
  color: var(--au-input-icon);
  pointer-events: none;
  display: grid;
  position: absolute;
  top: 50%;
  left: 23px;
  transform: translateY(-50%);
}

.auth-input-toggle {
  width: 44px;
  height: 44px;
  color: var(--au-input-icon);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 10px;
  place-items: center;
  display: grid;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

.auth-input-toggle:hover {
  color: var(--au-text);
}

.auth-hint {
  color: var(--au-text-2);
  font-size: 13.1px;
}

.auth-submit {
  background: linear-gradient(180deg, var(--au-primary), var(--au-primary-2));
  color: #031016;
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  height: 67px;
  margin-top: 4px;
  font-size: 24.8px;
  font-weight: 700;
  transition: box-shadow .2s, filter .2s;
  display: flex;
}

.auth-submit:hover {
  filter: brightness(1.04);
  box-shadow: 0 0 24px #1ac4db59;
}

.auth-submit:disabled {
  opacity: .7;
  cursor: default;
}

.auth-submit:focus-visible, .auth-google:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #1ac4db73;
}

.auth-sep {
  color: var(--au-text-2);
  align-items: center;
  gap: 22px;
  margin: 14px 0;
  font-size: 18.4px;
  display: flex;
}

.auth-sep:before, .auth-sep:after {
  content: "";
  background: var(--au-sep);
  flex: 1;
  height: 1px;
}

.auth-google {
  border: 1px solid var(--au-google-edge);
  height: 59px;
  color: var(--au-text);
  background: none;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 18.9px;
  font-weight: 500;
  transition: background .15s;
  display: flex;
}

.auth-google:hover {
  background: #7f7f7f14;
}

.auth-bottom {
  text-align: center;
  color: var(--au-text-2);
  margin-top: 16px;
  font-size: 18.9px;
}

.auth-bottom a {
  color: var(--au-accent-text);
  margin-left: 6px;
  font-weight: 600;
}

.auth-error {
  color: #c2415a;
  background: #c2415a1f;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15.2px;
}

:root[data-theme="dark"] .auth-error {
  color: #ffb3c1;
}

.auth-theme {
  z-index: 5;
  border: 1px solid var(--au-panel-edge);
  background: var(--au-input-bg);
  width: 44px;
  height: 44px;
  color: var(--au-text-2);
  cursor: pointer;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  transition: color .15s, border-color .15s, background .15s;
  display: inline-flex;
  position: absolute;
  top: 18px;
  right: 18px;
}

.auth-theme:hover {
  color: var(--au-accent-text);
  border-color: var(--au-primary);
}

.auth-theme:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #1ac4db73;
}

@media (max-width: 899px) and (hover: none), (max-width: 899px) and (pointer: coarse) {
  .auth-scene {
    place-items: stretch stretch;
    padding: 0;
  }

  .auth-viewport {
    width: 100%;
    height: auto;
  }

  .auth-frame {
    border: 0;
    border-radius: 0;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    min-height: 100dvh;
    transform: none;
  }

  .brand-panel {
    padding: 22px 20px 26px;
  }

  .brand-content {
    flex: none;
    width: 100%;
    padding: 0;
  }

  .brand-desc, .brand-benefits {
    display: none;
  }

  .brand-logo img {
    width: 36px;
    height: 36px;
  }

  .brand-logo span {
    font-size: 20.8px;
  }

  .brand-title {
    margin-top: 14px;
    font-size: 24.8px;
  }

  .brand-title br {
    display: none;
  }

  .auth-panel {
    border-left: 0;
    border-top: 1px solid var(--au-panel-edge);
    border-radius: 26px 26px 0 0;
    justify-content: flex-start;
    padding: 28px 20px 40px;
  }

  .auth-panel-logo {
    border-radius: 18px;
    width: 72px;
    height: 68px;
    margin-bottom: 18px;
  }

  .auth-sub {
    margin-bottom: 24px;
  }

  .auth-sep {
    margin: 20px 0;
  }

  .auth-bottom {
    margin-top: 22px;
  }
}

html.theme-switching, html.theme-switching *, html.theme-switching :before, html.theme-switching :after {
  transition: background-color .3s, background .3s, color .3s, border-color .3s, fill .3s, stroke .3s, box-shadow .3s !important;
}

@media (prefers-reduced-motion: reduce) {
  html.theme-switching, html.theme-switching * {
    transition: none !important;
  }
}

.btn.primary {
  color: #031016;
  background: linear-gradient(#1ac4db, #0ca5bd);
  border-color: #0000;
  font-weight: 600;
  transition: box-shadow .2s, filter .2s;
}

.btn.primary:hover {
  filter: brightness(1.04);
  background: linear-gradient(#1ac4db, #0ca5bd);
  box-shadow: 0 0 20px #1ac4db52;
}

.input, .select, .textarea {
  border-color: var(--field-edge);
  background-color: var(--field-bg);
  border-radius: 12px;
}

.input::placeholder, .textarea::placeholder {
  color: var(--text-3);
}

.input:focus, .select:focus, .textarea:focus {
  background-color: var(--surface);
  box-shadow: 0 0 0 3px #1ac4db38;
}

.btn {
  border-radius: 12px;
}

.btn:not(.primary):not(.ghost) {
  border-color: var(--field-edge);
  background: var(--surface);
}

.sidebar {
  background: var(--panel-bg);
  border-right-color: var(--line);
}

.sidebar nav a[aria-current="page"] {
  background: var(--tile-bg);
  color: var(--brand-strong);
  box-shadow: inset 0 0 0 1px var(--tile-edge);
}

.chip {
  border-color: var(--field-edge);
  background: var(--surface);
}

.chip.on {
  background: var(--tile-bg);
  border-color: var(--tile-edge);
  color: var(--text);
}

.segmented {
  background: var(--field-bg);
  box-shadow: inset 0 0 0 1px var(--field-edge);
}

.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--brand-strong);
}

.card, .stat {
  background: var(--surface);
  border-color: var(--line);
}

.tabs a[aria-current="page"], .card-head a, .auth-foot a {
  color: var(--brand-strong);
}

.bottom-nav .add span.icon {
  color: #031016;
  background: linear-gradient(#1ac4db, #0ca5bd);
}

.sheet {
  background: var(--field-bg);
  border-color: var(--field-edge);
}

.bulkbar .btn:not(.primary):not(.ghost) {
  color: #fff;
  background: none;
  border-color: #ffffff40;
}

.bf-select {
  min-width: 0;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  align-items: center;
  gap: 8px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  display: inline-flex;
}

.bf-select:disabled {
  opacity: .55;
  cursor: default;
}

.bf-select-value {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.bf-select-value.placeholder {
  color: var(--text-3);
}

.bf-select-chevron {
  color: var(--text-3);
  flex: none;
  transition: transform .15s;
}

.bf-select[aria-expanded="true"] .bf-select-chevron {
  color: var(--brand-strong);
  transform: rotate(180deg);
}

.bf-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #1ac4db47;
}

.bf-select-field {
  border: 1px solid var(--field-edge);
  background: var(--field-bg);
  border-radius: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
}

.bf-select-field[aria-expanded="true"] {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px #1ac4db38;
}

.bf-select-chip {
  border: 1px solid var(--field-edge);
  background: var(--surface);
  height: 36px;
  color: var(--text-2);
  border-radius: 999px;
  flex: none;
  padding: 0 12px;
  font-size: .85rem;
}

.bf-select-chip .bf-select-value {
  flex: none;
}

.bf-select-chip.on {
  background: var(--tile-bg);
  border-color: var(--tile-edge);
  color: var(--text);
}

.bf-select-chip[aria-expanded="true"] {
  border-color: var(--brand);
}

.bf-select-bulk {
  color: #fff;
  background: #ffffff14;
  border: 1px solid #ffffff38;
  border-radius: 10px;
  height: 36px;
  padding: 0 10px;
  font-size: .85rem;
}

.bf-select-bulk .bf-select-value.placeholder, .bf-select-bulk .bf-select-chevron {
  color: #ffffffbf;
}

.bf-select-list {
  z-index: 100;
  border: 1px solid var(--line);
  background: var(--panel-bg);
  border-radius: 14px;
  margin: 0;
  padding: 6px;
  list-style: none;
  animation: .12s ease-out bf-select-in;
  position: fixed;
  overflow-y: auto;
  box-shadow: 0 14px 40px #030a1438, 0 0 0 1px #1ac4db0f;
}

:root[data-theme="dark"] .bf-select-list {
  box-shadow: 0 18px 50px #0000008c, 0 0 0 1px #1ac4db1a;
}

@keyframes bf-select-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.bf-select-option {
  min-height: 40px;
  color: var(--text);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: .92rem;
  display: flex;
}

.bf-select-option.active {
  background: var(--tile-bg);
}

.bf-select-option[aria-selected="true"] {
  color: var(--brand-strong);
  font-weight: 500;
}

.bf-select-option[aria-disabled="true"] {
  opacity: .45;
  cursor: default;
}

.bf-select-option-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.bf-select-check {
  color: var(--brand-strong);
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  .bf-select-list {
    animation: none;
  }
}

.side-foot {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.user-btn {
  border: 1px solid var(--field-edge);
  background: var(--field-bg);
  width: 100%;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  transition: border-color .15s, background-color .15s;
  display: flex;
}

.user-btn:hover, .user-btn[aria-expanded="true"] {
  border-color: var(--tile-edge);
  background: var(--tile-bg);
}

.user-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #1ac4db47;
}

.user-btn.compact {
  border-radius: 999px;
  width: auto;
  padding: 3px;
}

.user-btn-text {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
  display: flex;
}

.user-btn-name, .user-btn-sub {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  text-align: left;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.user-btn-name {
  font-size: .92rem;
  font-weight: 600;
}

.user-btn-sub {
  color: var(--text-3);
  margin-top: 1px;
  font-size: .75rem;
}

.user-btn-email {
  color: var(--text-3);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
  overflow: hidden;
}

.user-btn-chevron {
  color: var(--text-3);
  flex: none;
  transition: transform .15s;
}

.user-btn[aria-expanded="true"] .user-btn-chevron {
  transform: rotate(180deg);
}

.user-menu {
  padding: 6px;
}

.user-menu-item {
  color: var(--text);
  text-decoration: none;
}

.user-menu-item:hover, .user-menu-item:focus-visible {
  background: var(--tile-bg);
  color: var(--brand-strong);
  outline: none;
}

button.user-menu-item {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
}

.user-menu-item.danger {
  color: var(--neg);
}

.user-menu-item.danger:hover, .user-menu-item.danger:focus-visible {
  background: var(--neg-soft);
  color: var(--neg);
}

@media (max-width: 520px) {
  .profile-hero {
    gap: 16px;
    padding-bottom: 20px;
  }

  .profile-hero h1 {
    font-size: 1.3rem;
  }

  .profile-hero .muted {
    font-size: .875rem;
  }

  .avatar-editor-photo .avatar {
    width: 84px !important;
    height: 84px !important;
    font-size: 1.7rem !important;
  }

  .avatar-editor-badge {
    width: 30px;
    height: 30px;
    bottom: 0;
    right: 0;
  }
}

.logout-btn {
  width: 100%;
  min-height: 40px;
  color: var(--neg) !important;
  border-color: color-mix(in srgb, var(--neg) 40%, transparent) !important;
  background: none !important;
}

.logout-btn:hover {
  background: var(--neg-soft) !important;
}

.topbar .logout-btn {
  width: auto;
  min-height: 34px;
}

.theme-btn {
  border: 1px solid var(--field-edge);
  border-radius: 12px;
  flex: none;
  width: 40px;
  height: 40px;
}

.tile-icon {
  width: 40px;
  height: 40px;
  color: var(--brand-strong);
  background: var(--tile-bg);
  border: 1px solid var(--tile-edge);
  border-radius: 10px;
  flex: none;
  place-items: center;
  display: grid;
}

.avatar {
  overflow: hidden;
}

.avatar-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.profile-page {
  max-width: 600px;
  margin: 0 auto;
}

.profile-hero {
  align-items: center;
  gap: 24px;
  padding: 12px 0 28px;
  display: flex;
}

.profile-id {
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.profile-hero h1 {
  overflow-wrap: anywhere;
  font-size: 1.6rem;
  font-weight: 600;
}

.profile-hero .muted {
  overflow-wrap: anywhere;
}

.profile-hero .badge {
  white-space: normal;
  max-width: 100%;
  margin: 2px 0 4px;
  line-height: 1.35;
}

.avatar-editor {
  flex: none;
}

.avatar-editor-photo {
  cursor: pointer;
  background: linear-gradient(160deg, #1ac4db, #0ca5bd);
  border: 0;
  border-radius: 50%;
  padding: 5px;
  position: relative;
  box-shadow: 0 12px 40px #1ac4db47;
}

.avatar-editor-photo .avatar {
  border: 4px solid var(--bg);
  font-weight: 600;
  font-size: 2.4rem !important;
}

.avatar-editor-photo:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px #1ac4db73;
}

.avatar-editor-photo:disabled {
  opacity: .7;
}

.avatar-editor-badge {
  border: 3px solid var(--bg);
  color: #031016;
  background: linear-gradient(#1ac4db, #0ca5bd);
  border-radius: 50%;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
  position: absolute;
  bottom: 2px;
  right: 2px;
}

.cards-page {
  max-width: 820px;
}

.credit-card-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  display: flex;
}

.credit-card-id {
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.credit-card-id h2 {
  font-size: 1.1rem;
}

.card-chip {
  color: #fff;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 46px;
  height: 32px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #ffffff2e, 0 4px 14px #0000002e;
}

.card-chip:after {
  content: "";
  background: linear-gradient(135deg, #ffffff47, #0000 60%);
  position: absolute;
  inset: 0;
}

.card-chip svg {
  z-index: 1;
  position: relative;
}

.card-chip.small {
  border-radius: 6px;
  width: 32px;
  height: 22px;
}

.card-stats {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
  display: grid;
}

.card-stat {
  background: var(--tile-bg);
  border: 1px solid var(--tile-edge);
  border-radius: 14px;
  min-width: 0;
  padding: 12px 14px;
}

.card-stat .label {
  color: var(--text-3);
  font-size: .78rem;
}

.card-stat .value {
  margin: 2px 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.card-stat .hint {
  color: var(--text-2);
  font-size: .8rem;
}

.card-stat.warn {
  border-color: color-mix(in srgb, var(--warn, #e0a526) 60%, transparent);
  background: color-mix(in srgb, var(--warn, #e0a526) 10%, var(--tile-bg));
}

.card-subhead {
  color: var(--text-2);
  margin: 6px 0 4px;
  font-size: .85rem;
  font-weight: 600;
}

.invoice-row .badge {
  flex: none;
}

.invoice-open {
  color: var(--brand-strong);
  border-color: color-mix(in srgb, var(--brand-strong) 45%, transparent);
}

.invoice-closed {
  color: var(--warn, #e0a526);
  border-color: color-mix(in srgb, var(--warn, #e0a526) 45%, transparent);
}

.more-invoices summary {
  cursor: pointer;
  color: var(--brand-strong);
  padding: 10px 0 6px;
  font-size: .85rem;
  list-style-position: inside;
}

.series-row .sub {
  white-space: normal;
}

.card-edit .card-danger {
  border-top: 1px solid var(--line);
  justify-content: flex-start;
  margin-top: 12px;
  padding-top: 12px;
}

.card-cta, .card-paid-hint {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.series-count {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 8px;
  display: flex;
}

.series-count .field {
  width: 150px;
}

.series-hint {
  color: var(--brand-strong);
  padding-bottom: 10px;
  font-size: .9rem;
  font-weight: 500;
}

.between-summary {
  background: var(--tile-bg);
  border: 1px solid var(--tile-edge);
  color: var(--brand-strong);
  border-radius: 12px;
  margin-top: 4px;
  padding: 10px 12px;
  font-weight: 500;
}

@media (max-width: 520px) {
  .card-stats {
    grid-template-columns: 1fr;
  }

  .invoice-row .sub {
    white-space: normal;
  }
}

.alert-backdrop {
  z-index: 80;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: #0208128c;
  place-items: center;
  padding: 16px;
  animation: .15s ease-out bf-fade;
  display: grid;
  position: fixed;
  inset: 0;
}

.alert-dialog {
  background: var(--surface);
  border: 1px solid var(--tile-edge);
  border-radius: 20px;
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 24px;
  animation: .18s ease-out bf-pop;
  overflow: auto;
  box-shadow: 0 24px 60px #00000059;
}

.alert-icon {
  color: #031016;
  background: linear-gradient(#1ac4db, #0ca5bd);
  border-radius: 14px;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  display: grid;
}

.alert-dialog h2 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.alert-list {
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
}

.alert-list li {
  background: var(--tile-bg);
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  display: flex;
}

.alert-list .title {
  font-weight: 500;
}

.alert-list .sub {
  color: var(--text-2);
  font-size: .85rem;
}

.alert-actions {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.alert-actions .btn {
  justify-content: center;
  width: 100%;
}

@keyframes bf-fade {
  from {
    opacity: 0;
  }
}

@keyframes bf-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .alert-backdrop, .alert-dialog {
    animation: none;
  }
}

.debts {
  margin-bottom: 16px;
}

.debts-empty {
  color: var(--pos);
  align-items: center;
  gap: 8px;
  padding: 6px 0 4px;
  font-weight: 500;
  display: flex;
}

.debt-row {
  flex-wrap: wrap;
  gap: 12px;
}

.debt-row .title {
  min-width: 140px;
  font-size: 1rem;
}

.debt-people {
  color: var(--text-3);
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.debt-amount {
  font-size: 1.15rem;
  font-weight: 600;
}

.debt-row.in .debt-amount {
  color: var(--pos);
}

.debt-row.out .debt-amount {
  color: var(--neg);
}

.debts-detail summary {
  cursor: pointer;
  color: var(--brand-strong);
  padding: 10px 0 4px;
  font-size: .85rem;
}

.debts-hint {
  margin-top: 8px;
  font-size: .8rem;
}

@media (max-width: 520px) {
  .debt-row {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .debt-row .btn {
    margin-left: auto;
  }

  .debt-row .debt-people {
    display: none;
  }

  .debt-row .title {
    white-space: normal;
    flex: 100%;
    min-width: 0;
    font-size: .95rem;
  }
}

.activity-dialog {
  width: min(520px, 100%);
}

.activity-list li {
  align-items: flex-start;
}

.activity-list .sub + .sub {
  margin-top: 2px;
}

.tx-fieldset {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.tx-fieldset:disabled {
  opacity: .85;
}

.readonly-notice {
  align-items: flex-start;
  gap: 8px;
  display: flex;
}

.debts-page {
  max-width: 900px;
}

.debts-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ledger-head {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  display: flex;
}

.ledger-head h2 {
  font-size: 1.1rem;
}

.ledger-net {
  font-weight: 600;
}

.ledger-row {
  flex-wrap: wrap;
}

.ledger-row .sub {
  white-space: normal;
}

.ledger-hint {
  margin-top: 8px;
  font-size: .8rem;
}

@media (max-width: 520px) {
  .debts-stats {
    grid-template-columns: 1fr 1fr;
  }
}

.card-shares {
  color: var(--text-2);
  font-size: .8rem;
  display: block;
}

.card-shares.strong {
  color: var(--brand-strong);
  margin-bottom: 2px;
  font-weight: 500;
}

.ledger-upcoming {
  background: var(--tile-bg);
  color: var(--text-2);
  border-radius: 10px;
  margin-top: 8px;
  padding: 8px 12px;
  font-size: .85rem;
}

.tab-help {
  color: var(--text-3);
  margin: -2px 0 14px;
  font-size: .85rem;
  line-height: 1.45;
}

.kind-help {
  color: var(--text-2);
  margin-top: -6px;
  font-size: .82rem;
  line-height: 1.4;
}

.help-page {
  max-width: 820px;
}

.help-toc {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  display: flex;
}

.help-section {
  scroll-margin-top: 16px;
}

.help-section h2 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.help-section dl {
  margin: 8px 0 0;
}

.help-item {
  border-top: 1px solid var(--line);
  grid-template-columns: 190px 1fr;
  gap: 4px 16px;
  padding: 10px 0;
  display: grid;
}

.help-item:first-child {
  border-top: 0;
}

.help-item dt {
  font-weight: 600;
}

.help-item dd {
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}

.help-item a {
  color: var(--brand-strong);
}

@media (max-width: 640px) {
  .help-item {
    grid-template-columns: 1fr;
  }
}

.tour-layer {
  z-index: 95;
  position: fixed;
  inset: 0;
}

.tour-dim {
  background: #0208129e;
  position: fixed;
  inset: 0;
}

.tour-spot {
  outline: 2px solid var(--brand-strong);
  outline-offset: 0;
  pointer-events: none;
  transition: top .42s var(--tour-ease),
    left .42s var(--tour-ease),
    width .42s var(--tour-ease),
    height .42s var(--tour-ease),
    outline-color .3s ease;
  border-radius: 14px;
  position: fixed;
  box-shadow: 0 0 0 9999px #0208129e;
}

.tour-spot.empty {
  outline-color: #0000;
}

.tour-layer {
  --tour-ease: cubic-bezier(.22, .8, .26, 1);
  animation: .25s ease-out bf-fade;
}

.tour-card {
  z-index: 96;
  background: var(--surface);
  border: 1px solid var(--tile-edge);
  transition: top .42s var(--tour-ease),
    left .42s var(--tour-ease),
    width .42s var(--tour-ease);
  border-radius: 16px;
  outline: none;
  padding: 16px 18px 14px;
  box-shadow: 0 18px 50px #0006;
}

.tour-body {
  animation: .28s ease-out bf-tour-text;
}

@keyframes bf-tour-text {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.tour-card h2 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.tour-card-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  display: flex;
}

.tour-count {
  color: var(--text-3);
  font-size: .75rem;
}

.tour-close {
  width: 30px;
  height: 30px;
}

.tour-text {
  color: var(--text-2);
  white-space: pre-line;
  font-size: .92rem;
  line-height: 1.5;
}

.tour-demo-wrap {
  margin-top: 12px;
}

.tour-demo-wrap > .tour-demo {
  margin-top: 4px;
}

.tour-demo-label {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand-strong) 14%, transparent);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 600;
  display: inline-block;
}

.tour-key {
  color: var(--brand-strong);
  font-weight: 650;
}

.tour-tip {
  color: var(--brand-strong);
  margin-top: 8px;
  font-size: .82rem;
}

.tour-progress {
  background: var(--field-edge);
  border-radius: 4px;
  height: 4px;
  margin: 14px 0 12px;
  overflow: hidden;
}

.tour-progress span {
  background: var(--brand-strong);
  height: 100%;
  transition: width .42s var(--tour-ease);
  display: block;
}

.tour-nav {
  justify-content: space-between;
  gap: 8px;
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .tour-spot, .tour-card, .tour-progress span {
    transition: none;
  }

  .tour-layer, .tour-body {
    animation: none;
  }
}

.tour-demo {
  background: var(--tile-bg);
  border: 1px solid var(--tile-edge);
  border-radius: 12px;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  font-size: .82rem;
  display: flex;
}

.tour-demo-row {
  align-items: center;
  gap: 8px;
  min-height: 26px;
  display: flex;
}

.tour-demo-avatar {
  background: color-mix(in srgb, var(--brand-strong) 22%, transparent);
  border-radius: 50%;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: .7rem;
  font-weight: 600;
  display: grid;
}

.tour-demo-tag {
  border: 1px solid var(--tile-edge);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: .72rem;
}

.tour-demo-tag.muted {
  color: var(--text-3);
}

.tour-demo-btn {
  border: 1px solid var(--brand-strong);
  color: var(--brand-strong);
  white-space: nowrap;
  border-radius: 8px;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: .72rem;
  font-weight: 600;
  display: inline-flex;
}

.tour-demo-btn.ghost {
  border-color: var(--field-edge);
  color: var(--text-2);
}

.tour-demo-arrow {
  color: var(--text-3);
  align-items: center;
  gap: 6px;
  padding-left: 4px;
  font-size: .75rem;
  display: flex;
}

.tour-demo-done {
  color: var(--text-3);
  text-decoration: line-through;
}

.tour-demo-icon {
  background: color-mix(in srgb, var(--brand-strong) 16%, transparent);
  width: 30px;
  height: 30px;
  color: var(--brand-strong);
  border-radius: 9px;
  flex: none;
  place-items: center;
  display: grid;
}

.tour-demo-title, .tour-demo-sub {
  display: block;
}

.tour-demo-title {
  font-size: .86rem;
  font-weight: 600;
}

.tour-demo-sub {
  color: var(--text-2);
  font-size: .76rem;
  line-height: 1.35;
}

.tour-demo-caption {
  color: var(--text-3);
  font-size: .75rem;
}

.topbar .brand span {
  white-space: nowrap;
}

@media (max-width: 420px) {
  .topbar {
    gap: 6px;
  }

  .topbar .brand {
    gap: 6px;
    font-size: .85rem;
  }

  .topbar .brand img {
    width: 26px;
    height: 26px;
  }
}

.tour-open .main {
  padding-bottom: 70vh;
}

.tour-demo-row .grow {
  flex: 1;
  min-width: 0;
}

.tour-demo-row strong {
  white-space: nowrap;
}

.filter-bar {
  margin-bottom: 14px;
}

.filter-bar .filters {
  margin-bottom: 0;
}

.filters-more {
  background: var(--tile-bg);
  border: 1px solid var(--tile-edge);
  border-radius: 14px;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  display: flex;
}

.filters-more .person-pills {
  margin: 0;
}

.stats.stats-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .stats.stats-3 {
    grid-template-columns: 1fr 1fr;
  }

  .stats.stats-3 > :last-child {
    grid-column: 1 / -1;
  }
}

.debt-row .debt-amount {
  white-space: nowrap;
  margin-left: 4px;
}

.tx-months {
  padding-top: 6px;
}

.tx-month + .tx-month {
  margin-top: 10px;
}

.tx-month-label {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 10px 0 2px;
  font-size: .78rem;
  font-weight: 600;
}

.tx-line {
  gap: 10px;
}

.tx-check {
  width: 17px;
  height: 17px;
  accent-color: var(--brand-strong);
  flex: none;
}

.tx-line-link {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.tx-series {
  color: var(--text-2);
  background: var(--tile-bg);
  border: 1px solid var(--tile-edge);
  vertical-align: 1px;
  border-radius: 6px;
  margin-left: 8px;
  padding: 1px 6px;
  font-size: .72rem;
  font-weight: 500;
}

.tx-status {
  text-align: right;
  display: block;
}

.future-toggle {
  white-space: normal;
  text-align: center;
  height: auto;
}

@media (max-width: 520px) {
  .page-head .actions {
    flex-wrap: nowrap;
  }

  .page-head .hide-sm {
    display: none;
  }
}

.card-owner + .card-owner {
  margin-top: 8px;
}

.card-owner-title {
  margin: 18px 0 10px;
  font-size: .95rem;
  font-weight: 600;
}

.new-card-blocked {
  text-align: right;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 260px;
  font-size: .8rem;
  display: flex;
}

.impact {
  background: var(--tile-bg);
  border: 1px solid var(--tile-edge);
  border-radius: 14px;
  padding: 12px 14px;
}

.impact summary {
  cursor: pointer;
  align-items: center;
  gap: 8px;
  list-style: none;
  display: flex;
}

.impact summary::-webkit-details-marker {
  display: none;
}

.impact-title {
  flex: none;
  font-size: .85rem;
  font-weight: 600;
}

.impact-summary {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: .78rem;
  overflow: hidden;
}

.impact-chevron {
  transform-origin: center;
  transform-box: fill-box;
  color: var(--text-3);
  flex: none;
  transition: transform .15s;
}

.impact[open] .impact-chevron {
  transform: rotate(180deg);
}

.impact-body {
  margin-top: 10px;
}

.impact ul {
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.impact li {
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.impact-icon {
  width: 26px;
  height: 26px;
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand-strong) 14%, transparent);
  border-radius: 8px;
  flex: none;
  place-items: center;
  display: grid;
}

.impact-area {
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-3);
  font-size: .75rem;
  font-weight: 600;
}

.impact li p {
  color: var(--text);
  font-size: .85rem;
  line-height: 1.4;
}

.impact-empty {
  color: var(--text-3);
  font-size: .82rem;
}

.connect {
  flex-direction: column;
  margin-top: 10px;
  display: flex;
}

.connect-row {
  border-top: 1px solid var(--line);
  grid-template-columns: 210px 20px 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px 0;
  display: grid;
}

.connect-row:first-child {
  border-top: 0;
}

.connect-cause {
  color: var(--brand-strong);
  font-weight: 600;
}

.connect-arrow {
  color: var(--text-3);
}

.connect-effects {
  color: var(--text-2);
  margin: 0;
  padding-left: 16px;
  font-size: .9rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .connect-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .connect-arrow {
    display: none;
  }
}

.select-all {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0 4px;
  font-size: .875rem;
  display: flex;
}

.select-all .check {
  gap: 8px;
  min-height: 0;
}

.bulk-dialog {
  outline: none;
  width: min(560px, 100%);
}

.bulk-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  display: flex;
}

.bulk-head h2 {
  margin: 0;
}

.bulk-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  display: flex;
}

.batch-title {
  margin-bottom: 12px;
  font-size: 1rem;
}

.batch-rows {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.batch-row {
  grid-template-columns: 160px minmax(0, 1fr) 130px 200px 40px;
  align-items: center;
  gap: 8px;
  display: grid;
}

.batch-row-head {
  color: var(--text-3);
  font-size: .75rem;
}

.batch-footer {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

@media (max-width: 760px) {
  .batch-row {
    background: var(--tile-bg);
    border: 1px solid var(--tile-edge);
    border-radius: 12px;
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }

  .batch-row > :nth-child(2) {
    order: -1;
    grid-column: 1 / -1;
  }

  .batch-row-head {
    display: none;
  }
}

.bulk-dialog {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.bulk-group {
  border: 1px solid var(--tile-edge);
  border-radius: 14px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 10px 14px 14px;
  display: flex;
}

.bulk-group legend {
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 6px;
  font-size: .78rem;
  font-weight: 600;
}

.bulk-summary {
  background: var(--tile-bg);
  color: var(--brand-strong);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: .85rem;
  font-weight: 500;
}

.bulk-group .person-pills {
  margin: 0;
  padding: 0;
}

.cat-icon {
  border: 1px solid #0000;
  border-radius: 9px;
  flex: none;
  place-items: center;
  display: inline-grid;
}

.icon-grid {
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px;
  display: grid;
}

.icon-choice {
  border: 1px solid var(--field-edge);
  background: var(--field-bg);
  height: 40px;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 10px;
  place-items: center;
  display: grid;
}

.icon-choice.on {
  background: var(--tile-bg);
  border-width: 2px;
}

.status-dot {
  border: 2px solid;
  border-radius: 50%;
  flex: none;
  width: 10px;
  height: 10px;
}

.tx-explain {
  color: var(--text-2);
  margin-top: 2px;
  line-height: 1.4;
  white-space: normal !important;
  overflow: visible !important;
}

.tx-row, .tx-line-link {
  align-items: flex-start;
}

.tx-row .status-dot, .tx-line-link .status-dot {
  margin-top: 10px;
}

.tx-row .cat-icon, .tx-line-link .cat-icon {
  margin-top: 2px;
}

.tx-line .tx-check {
  align-self: flex-start;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .tx-row, .tx-line-link {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 0 10px;
    display: grid;
  }

  .tx-row > .grow, .tx-line-link > .grow {
    display: contents;
  }

  .tx-row > .status-dot, .tx-line-link > .status-dot {
    grid-area: 1 / 1;
  }

  .tx-row > .cat-icon, .tx-line-link > .cat-icon {
    grid-area: 1 / 2 / span 2;
  }

  .tx-row .title, .tx-line-link .title {
    grid-area: 1 / 3;
  }

  .tx-row .sub:not(.tx-explain):not(.tx-status), .tx-line-link .sub:not(.tx-explain):not(.tx-status) {
    grid-area: 2 / 3;
  }

  .tx-row .tx-explain, .tx-line-link .tx-explain {
    grid-area: 3 / 3 / auto / -1;
    margin-top: 4px;
  }

  .tx-row > .amount, .tx-line-link > .amount {
    grid-area: 1 / 4 / span 2;
  }
}

.settled-badge {
  white-space: nowrap;
  vertical-align: 1px;
  color: #fff;
  background: var(--pos);
  cursor: inherit;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 9px 2px 7px;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.5;
  display: inline-flex;
  box-shadow: 0 1px #0000001f;
}

:root[data-theme="dark"] .settled-badge {
  color: #062a1d;
}

.nav-count {
  text-align: center;
  color: #fff;
  background: var(--warn, #d97706);
  border-radius: 999px;
  min-width: 20px;
  margin-left: auto;
  padding: 0 6px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 20px;
}

.bottom-nav .icon {
  position: relative;
}

.bottom-nav .nav-count {
  min-width: 17px;
  padding: 0 4px;
  font-size: .64rem;
  line-height: 17px;
  position: absolute;
  top: -6px;
  right: -12px;
}

.identify-banner {
  border: 1px solid color-mix(in srgb, var(--warn, #d97706) 45%, transparent);
  background: color-mix(in srgb, var(--warn, #d97706) 10%, transparent);
  color: var(--text);
  border-radius: 14px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  display: flex;
}

.identify-banner > svg {
  color: var(--warn, #d97706);
  flex: none;
}

.identify-banner .identify-go {
  color: var(--warn, #d97706);
  flex: none;
  font-weight: 600;
}

.identify-help {
  margin-bottom: 14px;
  line-height: 1.5;
}

.missing-line {
  margin-top: 6px;
}

.missing-chip {
  color: var(--warn, #d97706);
  background: color-mix(in srgb, var(--warn, #d97706) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn, #d97706) 40%, transparent);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: .74rem;
  font-weight: 600;
  display: inline-block;
}

@media (max-width: 640px) {
  .identify-banner .faint {
    display: none;
  }

  .tx-line-link .missing-line {
    grid-area: 4 / 3 / auto / -1;
  }
}

:root[data-theme="dark"] .nav-count {
  color: #1d1405;
}

.bottom-nav .label {
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -.01em;
  max-width: 100%;
  font-size: .64rem;
  overflow: hidden;
}

@media (max-width: 380px) {
  .bottom-nav .label {
    letter-spacing: -.02em;
    font-size: .58rem;
  }
}

.bell-btn {
  position: relative;
}

.bell-count {
  text-align: center;
  color: #fff;
  background: var(--neg, #e5484d);
  min-width: 18px;
  box-shadow: 0 0 0 2px var(--surface);
  border-radius: 999px;
  padding: 0 5px;
  font-size: .66rem;
  font-weight: 700;
  line-height: 18px;
  position: absolute;
  top: -4px;
  right: -4px;
}

:root[data-theme="dark"] .bell-count {
  color: #2a0710;
}

.notif-backdrop {
  z-index: 85;
  background: #02081273;
  animation: .15s ease-out bf-fade;
  position: fixed;
  inset: 0;
}

.notif-panel {
  background: var(--surface);
  border-left: 1px solid var(--line);
  outline: none;
  flex-direction: column;
  width: min(420px, 100%);
  animation: .18s ease-out bf-slide-in;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  box-shadow: -18px 0 40px #00000040;
}

@keyframes bf-slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}

.notif-head {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 10px 20px;
  display: flex;
}

.notif-head h2 {
  font-size: 1.1rem;
}

.notif-scroll {
  flex: 1;
  padding: 6px 12px 16px;
  overflow-y: auto;
}

.notif-section {
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 14px 8px 6px;
  font-size: .74rem;
  font-weight: 600;
}

.notif-list {
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.notif-list li {
  border-radius: 12px;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 26px 10px 10px;
  display: flex;
  position: relative;
}

.notif-list li.unread {
  background: color-mix(in srgb, var(--brand) 9%, transparent);
}

.notif-list .title {
  font-size: .9rem;
  line-height: 1.35;
}

.notif-list .sub {
  white-space: normal;
  margin-top: 2px;
  line-height: 1.35;
}

.notif-dot {
  background: var(--brand-strong);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 16px;
  right: 10px;
}

.notif-empty {
  color: var(--text-2);
  padding: 10px 8px;
  line-height: 1.5;
}

.notif-foot {
  border-top: 1px solid var(--line);
  color: var(--text-2);
  padding: 12px 20px 16px;
  font-size: .84rem;
}

.notif-foot:empty {
  display: none;
}

.link-btn {
  color: var(--brand-strong);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
}

.live-toast {
  z-index: 84;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  align-items: flex-start;
  gap: 10px;
  width: min(380px, 100% - 32px);
  padding: 12px 10px 12px 14px;
  animation: .2s ease-out bf-slide-up;
  display: flex;
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: 0 14px 36px #00000047;
}

@keyframes bf-slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.live-toast-icon {
  width: 32px;
  height: 32px;
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border-radius: 10px;
  flex: none;
  place-items: center;
  display: grid;
}

.live-toast-body {
  min-width: 0;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  flex: 1;
  gap: 2px;
  padding: 0;
  display: grid;
}

.live-toast-body .title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
}

.live-toast-body .sub {
  color: var(--text-2);
  font-size: .8rem;
  line-height: 1.35;
}

.live-toast-cta {
  color: var(--brand-strong);
  margin-top: 4px;
  font-size: .8rem;
  font-weight: 600;
}

.live-toast-x {
  flex: none;
}

@media (max-width: 899px) {
  .live-toast {
    right: 16px;
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
  }
}

.password-card .muted {
  margin: 0;
}

.password-dialog {
  text-align: left;
}

.error-text {
  color: var(--neg);
  font-size: .8rem;
}

.side-foot .theme-row {
  gap: 6px;
}

.side-foot .theme-row .theme-btn {
  width: 36px;
  height: 38px;
}

.side-foot .theme-row .logout-btn {
  min-height: 38px;
  padding-inline: 10px;
}

.wb-group {
  align-items: center;
  gap: 4px;
  display: flex;
}

.wb-user {
  display: contents;
}

@media (min-width: 900px) {
  :root {
    --bar-h: 56px;
  }

  .topbar {
    z-index: 40;
    height: var(--bar-h);
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
    gap: 8px;
    margin: 0;
    padding: 0 14px 0 0;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .topbar .brand {
    width: var(--side-w);
    border-right: 1px solid var(--line);
    flex: none;
    height: 100%;
    padding-left: 22px;
    display: flex;
  }

  .sidebar {
    top: var(--bar-h);
    padding-top: 14px;
  }

  .sidebar > .brand {
    display: none;
  }

  .shell-body {
    padding-top: var(--bar-h);
  }

  html {
    scroll-padding-top: calc(var(--bar-h) + 12px);
  }

  .main {
    padding-top: 28px;
  }

  .wb-group {
    background: var(--tile-bg);
    border: 1px solid var(--tile-edge);
    border-radius: 12px;
    gap: 2px;
    height: 38px;
    padding: 0 4px;
  }

  .wb-group .icon-btn {
    width: 32px;
    height: 32px;
  }

  .wb-user {
    display: none;
  }

  .topbar .logout-btn {
    border-radius: 12px;
    min-height: 38px;
    margin-left: 4px;
  }
}

.user-menu-sep {
  background: var(--line);
  height: 1px;
  margin: 4px 6px;
}

.new-fab {
  z-index: 35;
  color: #04121d;
  background: var(--brand);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 20px 0 16px;
  font-size: .95rem;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s;
  display: inline-flex;
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: 0 10px 26px #00000040;
}

.new-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px #0000004d;
}

.new-fab:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 3px;
}

.tutorial-btn {
  height: 38px;
  color: var(--text);
  background: var(--tile-bg);
  border: 1px solid var(--tile-edge);
  cursor: pointer;
  border-radius: 12px;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
  padding: 0 12px;
  font-size: .85rem;
  font-weight: 600;
  display: inline-flex;
}

.tutorial-btn:hover {
  border-color: var(--brand-strong);
  color: var(--brand-strong);
}

.tutorial-btn svg {
  color: #eab539;
}

.live-toast {
  bottom: 80px;
}

@media (max-width: 899px) {
  .new-fab {
    display: none;
  }

  .tutorial-btn {
    height: 34px;
    padding: 0 10px;
    font-size: .8rem;
  }

  .live-toast {
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 70px);
  }
}

@media print {
  .new-fab, .tutorial-btn {
    display: none;
  }
}

.main {
  padding-bottom: calc(var(--nav-h) + 84px + env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
  .main {
    padding-bottom: 96px;
  }
}

.tx-state-line {
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  display: flex;
}

.tx-state-help {
  margin-top: 2px;
  font-size: .82rem;
}

.tx-state .check {
  margin-top: 8px;
}

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

.state-table {
  border-collapse: collapse;
  width: 100%;
  font-size: .86rem;
}

.state-table th, .state-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line, var(--tile-edge));
  padding: 10px 8px;
}

.state-table thead th {
  color: var(--text-3);
  font-size: .76rem;
  font-weight: 500;
}

.state-table td {
  color: var(--text-3);
}

.state-table td.yes {
  color: var(--text);
  font-weight: 600;
}

.state-name {
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.card-paid-hint {
  flex-wrap: nowrap;
  align-items: flex-start;
  margin: -4px 0 12px;
}

.card-paid-hint svg {
  flex: none;
  margin-top: 2px;
}

.profit-badge, .discount-badge {
  white-space: nowrap;
  vertical-align: 1px;
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 9px 2px 7px;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.5;
  display: inline-flex;
}

.profit-badge {
  color: #062a1d;
  background: #f5c84c;
  box-shadow: 0 0 0 1px #f5c84c59, 0 1px #0000001f;
}

.discount-badge {
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.tx-paid {
  display: inline;
}

.tx-settles-ref {
  color: var(--text-3);
}

.tx-profit {
  color: #f5c84c;
  text-align: right;
  white-space: nowrap;
  margin-top: 2px;
  font-size: .78rem;
  font-weight: 700;
  display: block;
}

:root[data-theme="light"] .tx-profit {
  color: #9a6b00;
}

.row.has-profit {
  box-shadow: inset 3px 0 #f5c84c;
}

.tx-settles {
  margin-top: 8px;
}

.debt-payments {
  gap: 6px;
  margin-top: 10px;
  display: grid;
}

.debt-pay-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  display: flex;
}

.debt-pay-row p {
  min-width: 0;
}

.pay-form {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  display: flex;
}

.pay-field {
  color: var(--text-3);
  gap: 2px;
  font-size: .78rem;
  display: grid;
}

.pay-field .input {
  text-align: right;
  width: 110px;
  min-height: 34px;
}

.pay-diff {
  align-self: center;
  font-size: .8rem;
  font-weight: 600;
}

.invoice-row {
  flex-wrap: wrap;
}

.invoice-link {
  min-width: 0;
  color: inherit;
  align-items: center;
  gap: 12px;
  display: flex;
}

.invoice-paid-badge {
  color: var(--pos);
  border-color: color-mix(in srgb, var(--pos) 45%, transparent);
}

.invoice-paid .amount {
  color: var(--text-3);
}

@media (max-width: 520px) {
  .invoice-row > .btn {
    margin-left: auto;
  }
}

.import-learned {
  text-align: left;
  max-width: 460px;
  color: var(--text-2);
  margin: 8px auto 0;
  padding-left: 18px;
  font-size: .88rem;
}

.tx-tag {
  vertical-align: 1px;
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: .7rem;
  font-weight: 600;
  display: inline-flex;
}

.tx-tag.predicted {
  color: var(--text-2);
  border: 1px dashed var(--text-3);
}

.tx-tag.recurring {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand-strong) 14%, transparent);
}

.series-apply {
  margin: 4px 0 10px;
  font-size: .85rem;
}

.delete-wrap {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.delete-menu {
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px;
  display: flex;
}

.series-editor {
  margin-bottom: 16px;
}

.series-editor summary {
  cursor: pointer;
  align-items: center;
  gap: 10px;
  list-style: none;
  display: flex;
}

.series-editor summary::-webkit-details-marker {
  display: none;
}

.series-editor[open] .impact-chevron {
  transform: rotate(180deg);
}

.series-editor-body {
  gap: 10px;
  margin-top: 14px;
  display: grid;
}

.series-plan {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.series-plan li {
  border: 1px solid var(--line);
  border-radius: 10px;
  grid-template-columns: 44px 1fr auto;
  gap: 2px 8px;
  padding: 6px 10px;
  font-size: .82rem;
  display: grid;
}

.series-plan li > :last-child {
  grid-column: 2 / -1;
  font-size: .74rem;
}

.series-plan-n {
  grid-row: span 2;
  align-self: center;
  font-weight: 700;
}

.series-plan li.create {
  border-color: color-mix(in srgb, var(--pos) 55%, transparent);
}

.series-plan li.update {
  border-color: color-mix(in srgb, var(--brand-strong) 55%, transparent);
}

.series-plan li.remove {
  color: var(--neg);
  border-style: dashed;
  text-decoration: line-through;
}

.month-nav {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  transition: border-color .2s, background .2s;
  display: flex;
  box-shadow: 0 1px #0000000a;
}

.month-nav.future {
  background: color-mix(in srgb, #8b7cf6 7%, var(--panel-bg));
  border-color: #8b7cf68c;
}

.month-nav.past {
  border-style: dashed;
}

.month-nav.loading .month-title {
  opacity: .75;
}

.month-arrow {
  border: 1px solid var(--line);
  background: var(--surface-2);
  width: 46px;
  height: 46px;
  color: var(--text);
  cursor: pointer;
  border-radius: 14px;
  flex: none;
  place-items: center;
  display: grid;
}

.month-arrow:hover:not(:disabled) {
  border-color: var(--brand-strong);
  color: var(--brand-strong);
}

.month-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.month-center {
  text-align: center;
  flex-direction: column;
  flex: 1;
  align-items: center;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.month-title {
  letter-spacing: -.01em;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  display: inline-flex;
}

.month-badge {
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  font-size: .74rem;
  font-weight: 600;
  display: inline-flex;
}

.month-badge.now {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand-strong) 14%, transparent);
}

.month-badge.future {
  color: #6d5ce0;
  background: #8b7cf62e;
}

:root[data-theme="dark"] .month-badge.future {
  color: #b9b0ff;
}

.month-badge.past {
  color: var(--text-2);
  background: var(--surface-2);
}

.month-today {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand-strong) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-strong) 35%, transparent);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 5px 12px 5px 10px;
  font-size: .8rem;
  font-weight: 600;
  transition: background .15s, border-color .15s, transform .15s;
  display: inline-flex;
}

.month-today:hover {
  background: color-mix(in srgb, var(--brand-strong) 20%, transparent);
  border-color: var(--brand-strong);
  transform: translateY(-1px);
}

.month-today:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 2px;
}

.spin {
  animation: .9s linear infinite spin;
}

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

.future-notice {
  margin-bottom: 16px;
}

.projected-row {
  opacity: .85;
}

.outlook-help {
  margin: -2px 0 10px;
  font-size: .85rem;
}

.outlook-insight {
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-size: .92rem;
  display: flex;
}

.outlook-insight svg {
  color: var(--pos);
  flex: none;
  margin-top: 2px;
}

.outlook-bars {
  grid-template-columns: repeat(13, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  display: grid;
}

.outlook-col {
  color: var(--text-2);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0 2px;
  display: flex;
  position: relative;
}

.outlook-col:hover, .outlook-col:focus-visible {
  background: var(--surface-2);
}

.outlook-value {
  height: 1.1em;
  color: var(--text);
  white-space: nowrap;
  font-size: .7rem;
  font-weight: 700;
}

.outlook-track {
  align-items: flex-end;
  width: 100%;
  max-width: 34px;
  height: 120px;
  display: flex;
}

.outlook-bar {
  background: color-mix(in srgb, var(--brand-strong) 40%, transparent);
  border-radius: 4px 4px 0 0;
  width: 100%;
  transition: height .25s;
}

.outlook-col.current .outlook-bar {
  background: color-mix(in srgb, var(--brand-strong) 65%, transparent);
}

.outlook-col.selected .outlook-bar {
  background: var(--brand-strong);
}

.outlook-col.selected {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--brand-strong);
}

.outlook-month {
  text-transform: capitalize;
  font-size: .74rem;
}

.outlook-year {
  color: var(--text-3);
  margin-left: 2px;
  font-size: .62rem;
}

.outlook-col.current .outlook-month {
  color: var(--text);
  font-weight: 700;
}

.outlook-tag {
  white-space: nowrap;
  color: #fff;
  background: var(--pos);
  border-radius: 999px;
  padding: 0 6px;
  font-size: .62rem;
  font-weight: 700;
  position: absolute;
  top: -10px;
}

.outlook-tip {
  z-index: 5;
  white-space: nowrap;
  color: var(--text);
  background: var(--panel-bg);
  border: 1px solid var(--line);
  pointer-events: none;
  border-radius: 10px;
  flex-direction: column;
  gap: 1px;
  padding: 6px 10px;
  font-size: .75rem;
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 6px 18px #0000002e;
}

.outlook-col:hover .outlook-tip, .outlook-col:focus-visible .outlook-tip {
  display: flex;
}

@media (max-width: 640px) {
  .outlook-bars {
    grid-template-columns: repeat(13, 44px);
    padding: 14px 2px 4px;
    overflow-x: auto;
  }

  .outlook-track {
    height: 90px;
  }

  .month-arrow {
    width: 40px;
    height: 40px;
  }
}

input[type="checkbox"] {
  appearance: none;
  border: 1.5px solid var(--field-edge);
  background: var(--field-bg);
  cursor: pointer;
  border-radius: 6px;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
  transition: background .15s, border-color .15s, box-shadow .15s;
  display: inline-grid;
}

input[type="checkbox"]:after {
  content: "";
  color: #fff;
  background: currentColor;
  width: 11px;
  height: 11px;
  transition: transform .12s ease-out;
  transform: scale(0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

:root[data-theme="dark"] input[type="checkbox"]:after {
  color: #04121d;
}

input[type="checkbox"]:hover:not(:disabled) {
  border-color: var(--brand-strong);
}

input[type="checkbox"]:checked {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

input[type="checkbox"]:checked:after {
  transform: scale(1);
}

input[type="checkbox"]:indeterminate {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

input[type="checkbox"]:indeterminate:after {
  border-radius: 2px;
  height: 2.5px;
  transform: scale(1);
  -webkit-mask: none;
  mask: none;
}

input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-strong) 35%, transparent);
  outline: none;
}

input[type="checkbox"]:disabled {
  opacity: .4;
  cursor: not-allowed;
}

@media (forced-colors: active) {
  input[type="checkbox"] {
    appearance: auto;
  }

  input[type="checkbox"]:after {
    display: none;
  }
}

.order-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  display: flex;
}

.order-head p {
  flex: 260px;
  font-size: .85rem;
}

.drag-handle {
  width: 28px;
  height: 36px;
  color: var(--text-3);
  cursor: grab;
  touch-action: none;
  background: none;
  border: 0;
  border-radius: 8px;
  flex: none;
  place-items: center;
  margin-left: -6px;
  display: grid;
}

.drag-handle:hover, .drag-handle:focus-visible {
  color: var(--brand-strong);
  background: var(--surface-2);
}

.sortable-row {
  transition: background .12s;
}

.sortable-row.dragging {
  z-index: 2;
  background: var(--surface-2);
  box-shadow: 0 8px 22px #00000038, inset 0 0 0 1px var(--brand-strong);
  border-radius: 12px;
  position: relative;
}

.sortable-row.dragging .drag-handle {
  cursor: grabbing;
  color: var(--brand-strong);
}

body:has(.sortable-row.dragging) {
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none;
}

body:has(.bulkbar) .new-fab {
  display: none;
}

.list-toolbar {
  z-index: 15;
  margin: 0 calc(var(--gutter) * -1) 12px;
  padding: 10px var(--gutter) 2px;
  background: var(--bg);
  border-bottom: 1px solid #0000;
  position: sticky;
  top: 56px;
}

@media (min-width: 900px) {
  .list-toolbar {
    top: var(--bar-h);
  }

  .month-nav {
    top: calc(var(--bar-h) + 8px);
    z-index: 15;
    position: sticky;
  }
}

.fixed-bills {
  margin-bottom: 14px;
  padding: 12px 16px;
}

.fixed-bills summary {
  cursor: pointer;
  align-items: center;
  gap: 10px;
  list-style: none;
  display: flex;
}

.fixed-bills summary::-webkit-details-marker {
  display: none;
}

.fixed-bills[open] .impact-chevron {
  transform: rotate(180deg);
}

.fixed-bills .rows {
  margin-top: 8px;
}

.fixed-bill {
  flex-wrap: wrap;
}

.fixed-bill-text {
  min-width: 0;
}

@media (max-width: 640px) {
  .fixed-bill > .fixed-bill-text {
    flex: 100%;
    min-width: 100%;
  }

  .fixed-bill-text .title, .fixed-bill-text .sub {
    white-space: normal;
  }

  .fixed-bill .amount {
    margin-right: auto;
  }
}

@media (max-width: 440px) {
  .topbar .brand span {
    display: none;
  }

  .topbar {
    gap: 6px;
  }

  .tutorial-btn {
    margin-right: 0;
  }
}

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

@media (max-width: 1100px) {
  .stats.stats-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dash-stats .hint {
  line-height: 1.35;
}

.tx-title {
  white-space: nowrap;
  align-items: center;
  gap: 0;
  min-width: 0;
  display: flex;
}

.tx-title .tx-desc {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 auto;
  min-width: 0;
  overflow: hidden;
}

.tx-title > :not(.tx-desc) {
  flex: none;
}

.tx-meta {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.tx-row > .amount, .tx-line-link > .amount {
  white-space: nowrap;
  text-align: right;
  flex: none;
}

.tx-row .tx-explain {
  text-overflow: ellipsis;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.card-head > a {
  white-space: nowrap;
  flex: none;
}

details.ledger > summary {
  cursor: pointer;
  flex-wrap: nowrap;
  margin-bottom: 0;
  list-style: none;
}

details.ledger > summary::-webkit-details-marker {
  display: none;
}

details.ledger[open] > summary {
  margin-bottom: 10px;
}

details.ledger[open] > summary .impact-chevron {
  transform: rotate(180deg);
}

details.ledger .ledger-net {
  text-align: right;
  flex: none;
}

.ledger-count {
  font-size: .8rem;
}

.ledger-actions {
  justify-content: flex-end;
  margin-bottom: 6px;
  display: flex;
}

@media (max-width: 520px) {
  details.ledger > summary {
    flex-wrap: wrap;
  }

  details.ledger .ledger-net {
    text-align: left;
    flex-basis: 100%;
    order: 3;
    padding-left: 52px;
  }
}

details.ledger > summary > .grow {
  flex: 1;
}

.push-box {
  gap: 8px;
  display: grid;
}

.push-title, .push-on {
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  display: flex;
}

.push-on {
  color: var(--pos);
}

.push-steps {
  color: var(--text-2);
  gap: 4px;
  margin: 0;
  padding-left: 20px;
  font-size: .86rem;
  display: grid;
}

.push-steps svg {
  vertical-align: -2px;
}

/*# sourceMappingURL=%5Broot-of-the-server%5D__1y49dk4quorsr._.css.map*/