@import url("/static/core/type.css");
:root {
  --bg: #f6f7f9;
  --surface: #fff;
  --ink: #1d2926;
  --muted: #707d78;
  --line: #e7ece9;
  --green: #244e44;
  --lime: #e0edcf;
  --soft: #f0f4f1;
  --danger: #b64d43;
  --shadow: 0 20px 70px #162f2512;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #83a98c;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -1.7px;
  line-height: 1.12;
}
h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
  font-weight: 500;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.8px;
}
.brand > span:last-child {
  font-size: 20px;
  letter-spacing: -0.8px;
}
.brand-mark {
  background: var(--green);
  color: var(--lime);
  border-radius: 13px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 26px;
  font-style: italic;
  letter-spacing: -3px;
  padding-right: 4px;
}
.layout {
  min-height: 100dvh;
  padding: 18px 28px 0;
}
.app-header {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 18px;
  border: 1px solid #ffffff;
  border-radius: 22px;
  background: #ffffffb8;
  box-shadow:
    0 8px 30px #1c3b2d04,
    inset 0 1px 0 #ffffff;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  position: sticky;
  top: 12px;
  z-index: 20;
}
.header-brand {
  flex-shrink: 0;
}
.header-brand .brand-mark {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  font-size: 24px;
}
.header-brand .brand > span:last-child {
  font-size: 20px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border-radius: 16px;
  background: #eaf0ec85;
  min-width: 0;
}
.nav-item {
  border: 0;
  border-radius: 11px;
  padding: 10px 12px;
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  position: relative;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.nav-item.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    0 2px 7px #1c382812,
    inset 0 0 0 1px #ffffff80;
  font-weight: 600;
}
.nav-symbol {
  display: flex;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.nav-symbol svg {
  width: 100%;
  height: 100%;
}
.nav .mobile-more {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-actions .theme-toggle {
  border: 0;
  background: transparent;
  font-size: 18px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}
.profile-button {
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--lime);
  color: #244e44;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}
.workspace {
  min-width: 0;
  max-width: 1320px;
  padding: 25px 24px 35px;
  margin: 0 auto;
}
.context-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  min-height: 38px;
  margin-bottom: 28px;
}
.breadcrumbs {
  color: var(--muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumbs strong {
  color: var(--ink);
  font-weight: 500;
}
.breadcrumb-divider {
  opacity: 0.4;
}
.section-menu {
  display: grid;
  gap: 4px;
}
.section-menu-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 12px;
  text-align: left;
  min-height: 48px;
}
.section-menu-item.active {
  background: var(--soft);
}
.section-menu-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.section-menu-item span:last-child {
  margin-left: auto;
  color: var(--muted);
}
.view-enter {
  animation: view-enter 0.32s ease-out both;
}
@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.top-actions,
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 27px;
}
.heading p {
  margin-top: 10px;
}
.heading h1 {
  font-size: 35px;
  margin-top: 10px;
  letter-spacing: -1.4px;
}
.button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 11px 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 42px;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.button.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #173f35;
}
.button.small {
  padding: 7px 11px;
  min-height: 34px;
  font-size: 12px;
}
.button.danger {
  color: var(--danger);
}
.button.flat {
  background: transparent;
  border-color: transparent;
}
.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  display: grid;
  place-items: center;
}
.month-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.month-control input {
  width: 136px;
  padding: 8px;
  font-size: 12px;
  background: var(--surface);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.balance-card {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 29px 30px;
  position: relative;
  overflow: hidden;
  min-height: 278px;
}
.balance-card .eyebrow {
  color: var(--muted);
  letter-spacing: 1.4px;
}
.balance-number {
  font-size: 43px;
  font-weight: 400;
  letter-spacing: -2px;
  margin: 18px 0 10px;
  font-variant-numeric: tabular-nums;
}
.balance-card .balance-note {
  font-size: 12px;
  color: var(--muted);
}
.hero-decoration {
  position: absolute;
  right: 20px;
  top: 20px;
  color: var(--green);
  font-size: 70px;
  font-family: Georgia, serif;
  opacity: 0.12;
  transform: rotate(-25deg);
}
.balance-bottom {
  display: flex;
  gap: 32px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.balance-bottom span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.balance-bottom strong {
  font-size: 17px;
  font-weight: 400;
}
.savings-card {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 28px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.savings-card .eyebrow {
  color: var(--muted);
}
.savings-card .balance-number {
  font-size: 34px;
}
.savings-card p {
  font-size: 12px;
  line-height: 1.5;
  max-width: none;
}
.savings-card .button {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--green);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.metric {
  border-radius: 18px;
  background: var(--surface);
  padding: 22px 24px;
  position: relative;
  border: 1px solid var(--line);
}
.metric-icon {
  position: absolute;
  top: 19px;
  right: 20px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 9px;
  padding: 6px;
  color: var(--muted);
}
.metric-icon svg {
  width: 100%;
  height: 100%;
}
.metric .label {
  padding-right: 25px;
  color: var(--muted);
  font-size: 11px;
}
.metric .value {
  font-size: 24px;
  letter-spacing: -0.8px;
  margin: 12px 0 6px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.metric .hint {
  font-size: 10px;
  color: var(--muted);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 25px;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 23px;
}
.panel-head .muted {
  font-size: 11px;
}
.chart-box {
  height: 178px;
  margin: 15px 0 5px;
  position: relative;
}
.chart-box svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-line {
  stroke: var(--green);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.chart-fill {
  fill: url(#expense-area);
}
.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
.category-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.category-row:last-child {
  border-bottom: 0;
}
.category-row .row {
  justify-content: space-between;
  gap: 7px;
  flex-wrap: nowrap;
}
.category-name {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}
.category-name span:last-child {
  overflow-wrap: anywhere;
}
.category-icon {
  width: 29px;
  height: 29px;
  background: var(--soft);
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 14px;
}
.amount {
  white-space: nowrap;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.category-foot {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin: 8px 0;
}
.over {
  color: var(--danger);
}
progress {
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--soft);
  appearance: none;
}
progress::-webkit-progress-bar {
  background: var(--soft);
}
progress::-webkit-progress-value {
  background: var(--green);
  border-radius: 3px;
}
progress::-moz-progress-bar {
  background: var(--green);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  color: var(--muted);
  font-weight: 400;
  font-size: 10px;
  padding: 0 12px 13px;
  white-space: nowrap;
}
td {
  padding: 15px 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  max-width: 300px;
  overflow-wrap: anywhere;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
.positive {
  color: #4e8163;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--soft);
  white-space: nowrap;
}
.badge.warning {
  background: #f9edcf;
  color: #896124;
}
.badge.error {
  background: #fbe7e0;
  color: #a54d44;
}
.badge.good {
  background: #e9f0e1;
  color: #4e6d40;
}
.badge.neutral {
  background: var(--soft);
  color: var(--muted);
}
.footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.empty {
  text-align: center;
  padding: 38px 20px;
  color: var(--muted);
  line-height: 1.7;
}
.empty strong {
  display: block;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 10px;
}
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.goal-art {
  margin-bottom: 22px;
}
.goal-ring {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
}
.goal-ring svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ring-track,
.ring-progress {
  fill: none;
  stroke-width: 6;
}
.ring-track {
  stroke: var(--line);
}
.ring-progress {
  stroke: var(--green);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.goal-ring text {
  fill: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.goal-preview {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.goal-preview .goal-ring {
  width: 58px;
  height: 58px;
}
.goal-preview .goal-ring text {
  font-size: 20px;
}
.goal-preview .mini-title,
.goal-preview strong,
.goal-preview-amount {
  display: block;
}
.goal-preview .mini-title {
  font-size: 9px;
  margin-bottom: 5px;
}
.goal-preview strong {
  font-size: 12px;
  font-weight: 600;
}
.goal-preview-amount {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}

.goal-number {
  font-size: 26px;
  margin: 18px 0 12px;
  letter-spacing: -0.8px;
}
.goal-number span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}
.goal-foot {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child {
  border: 0;
}
.setting-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.system-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 25px;
}
.system-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.dev-table {
  min-width: 680px;
}
.event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.event-row .muted {
  margin-left: auto;
  font-size: 10px;
  white-space: nowrap;
}
.entry-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 35px 20px;
  background: var(--bg);
}
.entry-card {
  width: 100%;
  max-width: 460px;
}
.entry-card .brand {
  margin-bottom: 52px;
}
.entry-card h1 {
  font-size: 56px;
  margin: 16px 0 20px;
}
.entry-card .button {
  width: 100%;
  margin-top: 10px;
}
.entry-card form {
  margin: 25px 0;
}
.entry-card > a:last-child {
  display: block;
  font-size: 12px;
  text-align: center;
  margin-top: 22px;
  color: var(--muted);
}
.local-buttons {
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.local-buttons p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}
.loading {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 17px 0;
  font-size: 12px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  min-height: 44px;
}
input[type="month"] {
  min-height: 34px;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0;
}
.form-error {
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}
.form-actions .button {
  white-space: normal;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 26px;
  width: calc(100% - 32px);
  max-width: 500px;
  max-height: 90dvh;
  overflow-y: auto;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #0a261955;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.dialog-head h2 {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  max-width: calc(100% - 32px);
  background: var(--green);
  color: white;
  padding: 13px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 99;
  font-size: 13px;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.demo-strip {
  padding: 9px 16px;
  text-align: center;
  font-size: 11px;
  color: #65734d;
  background: #e9efd8;
}
.mobile-brand {
  display: none;
}
.wide-select {
  max-width: 240px;
  padding: 8px 10px;
  font-size: 12px;
}
.data-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 18px 0 0;
}
.redacted {
  color: var(--muted);
  font-size: 11px;
}
.full-width {
  grid-column: 1/-1;
}
.member-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
}
.member-row .button {
  margin-left: auto;
}
.archived {
  opacity: 0.55;
}
.mini-title {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body[data-theme="dark"] {
  --bg: #101917;
  --surface: #18221f;
  --ink: #edf2e9;
  --muted: #a5b6a8;
  --line: #2c3832;
  --green: #72a38c;
  --soft: #202e26;
  --lime: #e0edcf;
  color-scheme: dark;
}
body[data-theme="dark"] .app-header {
  background: #18221fce;
  border-color: #334038;
  box-shadow:
    0 8px 30px #00000018,
    inset 0 1px 0 #ffffff05;
}
body[data-theme="dark"] .nav {
  background: #0e171380;
}
body[data-theme="dark"] .nav-item.active {
  box-shadow:
    0 2px 8px #00000024,
    inset 0 0 0 1px #ffffff08;
}
body[data-theme="dark"] .button.primary {
  color: #0e2118;
}
body[data-theme="dark"] .demo-strip {
  color: #c4d3b8;
  background: #283425;
}
@media (hover: hover) {
  .nav-item:hover {
    background: var(--surface);
    color: var(--ink);
    transform: translateY(-1px);
  }
  .button:hover:not(:disabled),
  .section-menu-item:hover {
    filter: brightness(0.97);
  }
  .panel,
  .metric {
    transition:
      box-shadow 0.2s,
      border-color 0.2s;
  }
  .panel:hover,
  .metric:hover {
    box-shadow: 0 6px 24px #1a352507;
    border-color: #cfdad3;
  }
}
@media (max-width: 1200px) {
  .layout {
    padding: 16px 20px 0;
  }
  .app-header {
    gap: 12px;
    padding: 10px 14px;
  }
  .nav-item {
    padding: 10px;
  }
  .nav-symbol {
    display: none;
  }
  .workspace {
    padding: 24px 12px 35px;
  }
  .heading h1 {
    font-size: 31px;
  }
}
@media (max-width: 950px) {
  .app-header .brand > span:last-child {
    display: none;
  }
  .nav-item {
    padding: 10px 11px;
  }
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 20px;
  }
  .metric .value {
    font-size: 23px;
  }
  .metric-icon {
    width: 25px;
    height: 25px;
    right: 15px;
  }
}
@media (max-width: 760px) {
  .layout {
    padding: 12px 16px 0;
  }
  .app-header {
    position: static;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 5px 0 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .app-header .brand > span:last-child {
    display: block;
  }
  .nav {
    position: fixed;
    z-index: 30;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, calc(100% - 24px));
    padding: 6px;
    gap: 4px;
    background: #ffffffde;
    border: 1px solid #e2e8e3d9;
    border-radius: 22px;
    box-shadow: 0 6px 28px #152d2412;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
  }
  .nav .desktop-only {
    display: none;
  }
  .nav .mobile-more {
    display: flex;
  }
  .nav-item {
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-height: 55px;
    padding: 7px 5px;
    font-size: 10px;
    border-radius: 16px;
  }
  .nav-item.active {
    background: var(--soft);
    box-shadow: none;
  }
  .nav-symbol {
    display: flex;
    width: 19px;
    height: 19px;
  }
  body[data-theme="dark"] .app-header {
    background: transparent;
    box-shadow: none;
  }
  body[data-theme="dark"] .nav {
    background: #18221fe6;
    border-color: #39463ed9;
  }
  .workspace {
    padding: 12px 0 calc(110px + env(safe-area-inset-bottom, 0px));
  }
  .context-bar {
    margin-bottom: 22px;
    min-height: 34px;
  }
  .breadcrumbs {
    font-size: 10px;
    gap: 8px;
  }
  .breadcrumbs strong,
  .breadcrumb-divider {
    display: none;
  }
  .top-actions .wide-select {
    max-width: 175px;
    font-size: 11px;
    min-height: 35px;
  }
  .heading {
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
  }
  .heading h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .heading p {
    font-size: 12px;
  }
  .heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .heading > .button {
    min-height: 44px;
  }
  .hero-grid {
    gap: 14px;
  }
  .balance-card,
  .savings-card {
    padding: 24px;
    min-height: 250px;
  }
  .balance-number {
    font-size: 36px;
  }
  .savings-card .balance-number {
    font-size: 30px;
  }
  .balance-bottom {
    gap: 24px;
  }
  .balance-bottom strong {
    font-size: 15px;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 22px;
  }
  .panel-head {
    gap: 12px;
    flex-wrap: wrap;
  }
  .panel-head h2 {
    font-size: 18px;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric {
    padding: 18px;
  }
  .metric .value {
    font-size: 20px;
  }
  .metric-icon {
    display: none;
  }
  .metric .label {
    padding-right: 0;
  }
  .footer {
    flex-direction: column;
  }
  .demo-strip {
    font-size: 10px;
    padding: 8px 14px;
  }
  #toast {
    bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 550px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .balance-card {
    min-height: 245px;
  }
  .balance-number {
    font-size: 42px;
  }
  .savings-card {
    min-height: auto;
  }
  .savings-card p {
    max-width: none;
  }
  .savings-card .button {
    margin-top: 18px;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .metric {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 5px 10px;
    padding: 18px 20px;
  }
  .metric .value {
    grid-row: 1 / 3;
    grid-column: 2;
    margin: 0;
    font-size: 24px;
  }
  .metric .hint {
    max-width: 175px;
    line-height: 1.5;
  }
  .system-list,
  .fields,
  .section-grid {
    grid-template-columns: 1fr;
  }
  .heading h1 {
    font-size: 30px;
  }
  .heading {
    margin-bottom: 22px;
  }
  .goal-number {
    font-size: 25px;
  }
  .member-row,
  .event-row,
  .form-actions {
    flex-wrap: wrap;
  }
  .event-row .muted {
    margin-left: 0;
  }
  .badge {
    white-space: normal;
  }
  .button {
    min-height: 44px;
  }
  .entry-card h1 {
    font-size: 43px;
  }
  .chart-labels {
    font-size: 9px;
    gap: 10px;
  }
  .chart-labels span:nth-child(2) {
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.workspace [hidden] {
  display: none !important;
}

/* FINANCE_VISUALS_CSS_START */
.viz-chart,
.viz-donut {
  min-width: 0;
  color: var(--ink);
}
.viz-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0 7px;
  flex-wrap: wrap;
}
.viz-small,
.viz-help,
.viz-axis,
.viz-refunds {
  font-size: 11px;
  color: var(--muted);
}
.viz-switch {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: var(--soft, var(--mint));
  border-radius: 10px;
}
.viz-switch button {
  border: 0;
  border-radius: 7px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  min-height: 33px;
}
.viz-switch button[aria-pressed="true"] {
  background: var(--surface, var(--paper));
  color: var(--ink);
  box-shadow: 0 1px 5px #102d2010;
}
.viz-line-svg {
  display: block;
  width: 100%;
  height: 210px;
  overflow: visible;
  color: var(--green);
  touch-action: pan-y;
}
.viz-grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}
.viz-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.viz-area {
  pointer-events: none;
}
.viz-crosshair {
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0.5;
  pointer-events: none;
}
.viz-point {
  fill: var(--surface, var(--paper));
  stroke: var(--green);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  outline-offset: 5px;
}
.viz-point[aria-pressed="true"] {
  fill: var(--green);
}
.viz-axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 3px 0 14px;
  font-size: 10px;
}
.viz-axis span:nth-child(2) {
  text-align: center;
}
.viz-day-detail {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--soft, var(--mint));
  border-radius: 13px;
  min-height: 89px;
}
.viz-day-detail span,
.viz-day-detail strong,
.viz-day-detail small {
  display: block;
}
.viz-day-detail span,
.viz-day-detail small {
  font-size: 10px;
  color: var(--muted);
}
.viz-day-detail strong {
  font-size: 19px;
  margin: 4px 0;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.viz-open {
  border: 1px solid var(--line);
  background: var(--surface, var(--paper));
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 13px;
  min-height: 40px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.viz-help {
  line-height: 1.6;
  margin: 12px 0 0 !important;
  max-width: none !important;
  font-size: 10px !important;
}
.viz-donut {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
  margin-top: 20px;
}
.viz-donut-main {
  text-align: center;
  min-width: 0;
}
.viz-ring-wrap {
  position: relative;
  max-width: 290px;
  margin: 0 auto 10px;
}
.viz-ring-svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  overflow: visible;
}
.viz-sector {
  cursor: pointer;
  transition:
    stroke-width 0.18s,
    opacity 0.18s;
  outline-offset: 4px;
}
.viz-sector[aria-pressed="true"] {
  stroke-width: 39;
}
.viz-sector.viz-dim {
  opacity: 0.42;
}
.viz-ring-center {
  position: absolute;
  inset: 31%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  pointer-events: none;
}
.viz-center-label {
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  color: var(--muted);
  max-width: 145px;
}
.viz-center-value {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.viz-center-share {
  font-size: 10px;
  color: var(--muted);
}
.viz-legend {
  display: grid;
  gap: 4px;
  max-height: 405px;
  overflow: auto;
  padding: 4px;
}
.viz-legend button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px;
  min-height: 49px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.viz-legend button:hover,
.viz-legend button.viz-selected {
  background: var(--soft, var(--mint));
  border-color: var(--line);
}
.viz-swatch {
  width: 9px;
  height: 25px;
  border-radius: 5px;
  flex-shrink: 0;
}
.viz-legend-name {
  min-width: 0;
  overflow-wrap: anywhere;
  flex: 1;
}
.viz-legend-value {
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.viz-legend-value small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.viz-refunds {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.viz-refunds strong {
  font-weight: 500;
  color: var(--ink);
}
.viz-refunds small {
  width: 100%;
  font-size: 10px;
}
.viz-empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.finance-clickable {
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.finance-clickable:hover {
  box-shadow: 0 6px 22px #183d2c0a;
  border-color: #bfcec3;
}
.finance-clickable:focus-visible {
  outline: 3px solid #8da893;
  outline-offset: 3px;
}
.finance-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 11px;
  padding: 8px 0;
  margin-top: 8px;
  cursor: pointer;
}
.finance-detail-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 15px 0;
  padding: 14px;
  background: var(--soft, var(--mint));
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.7;
}
.finance-detail-summary strong {
  font-weight: 550;
}
.finance-detail-list {
  max-height: 52dvh;
  overflow: auto;
  margin-top: 15px;
}
.finance-detail-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  font-size: 12px;
}
.finance-detail-item strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.finance-detail-item small {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.finance-detail-amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.finance-detail-more {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
@media (max-width: 650px) {
  .viz-donut {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .viz-ring-wrap {
    max-width: 270px;
  }
  .viz-legend {
    max-height: 335px;
  }
  .viz-line-svg {
    height: 180px;
  }
  .viz-day-detail {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
  }
  .viz-day-detail .viz-open {
    grid-column: 1/-1;
    width: 100%;
    min-height: 44px;
  }
  .viz-day-detail strong {
    font-size: 20px;
  }
  .viz-axis {
    font-size: 9px;
  }
  .viz-axis span:nth-child(2) {
    max-width: 145px;
  }
  .viz-center-value {
    font-size: 23px;
  }
  .viz-legend button {
    min-height: 52px;
  }
  .viz-open {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .viz-sector,
  .finance-clickable {
    transition: none;
  }
}
.fi-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.viz-reset {
  display: block;
  margin: 8px auto 0;
  min-height: 36px;
  padding: 4px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.viz-reset:hover {
  color: var(--green);
}
.metric-icon .fi-icon,
.category-icon .fi-icon {
  width: 18px;
  height: 18px;
}
.category-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.row-actions {
  flex-wrap: wrap;
}
.fund-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.fund-type .fi-icon {
  width: 15px;
  height: 15px;
}
.savings-lock {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1px;
}
.savings-lock .fi-icon {
  width: 14px;
  height: 14px;
}
.reserve-mark {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--soft, var(--mint));
  border: 1px solid var(--line);
  border-radius: 20px;
  width: 66px;
  height: 66px;
  font: inherit;
  flex-shrink: 0;
  color: var(--green);
  margin: 8px 0 8px 10px;
}
.reserve-mark > .fi-icon {
  width: 33px;
  height: 33px;
}
.reserve-currency {
  position: absolute;
  bottom: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  height: 24px;
  min-width: 24px;
  padding: 0 5px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper, var(--card, #fff));
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.hero-decoration .fi-icon {
  width: 64px;
  height: 64px;
}
.empty-icon .fi-icon {
  width: 30px;
  height: 30px;
  margin: auto;
}
/* FINANCE_VISUALS_CSS_END */
