@font-face {
  font-family: "Rebels";
  src: url("/static/fonts/Rebels-Fett.woff2") format("woff2"),
    url("/static/fonts/Rebels-Fett.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --radius: 0.625rem;
  --background: oklch(0.2029 0.0037 345.62);
  --foreground: oklch(0.9851 0 0);
  --card: oklch(0.2029 0.0037 345.62);
  --card-foreground: oklch(0.9851 0 0);
  --primary: oklch(0.4703 0.2364 263.19);
  --primary-foreground: oklch(0.9851 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.2393 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.9851 0 0 / 5%);
  --accent-foreground: oklch(0.985 0 0);
  --border: oklch(1 0 0 / 10%);
  --pop: oklch(0.9851 0 0 / 2.5%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
  --success: oklch(0.7775 0.2447 144.9);
  --warning: oklch(0.769 0.188 70.08);
  --destructive: oklch(0.5961 0.2006 36.48);
  --sidebar: oklch(0.2029 0.0037 345.62);
  --sidebar-foreground: oklch(0.9851 0 0);
  --sidebar-primary: oklch(0.4703 0.2364 263.19);
  --sidebar-accent: oklch(0.9851 0 0 / 5%);
  --sidebar-accent-hover: oklch(0.9851 0 0 / 10%);
  --font-display: "Rebels", "Unbounded", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;
  --gap: 2rem;
  --sides: 1rem;
  --header-mobile: 3.8rem;
  --chart-0: var(--primary);
  --chart-1: var(--success);
  --chart-2: var(--warning);
  --chart-3: oklch(0.72 0.18 330);
  --chart-4: oklch(0.75 0.14 200);
  --chart-5: var(--destructive);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--muted);
  color: var(--foreground);
  font-family: var(--font-mono);
}

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

button {
  cursor: pointer;
}

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

.i {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: block;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.uppercase {
  text-transform: uppercase;
}

.bullet {
  width: 0.625rem;
  height: 0.625rem;
  flex-shrink: 0;
  border-radius: 1.5px;
  background: var(--primary);
}

.bullet.success {
  background: var(--success);
}

.bullet.warning {
  background: var(--warning);
}

.bullet.danger {
  background: var(--destructive);
}

.bullet.sm {
  width: 0.5rem;
  height: 0.5rem;
}

.layout,
.main,
.content {
  min-width: 0;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  min-height: 100vh;
}

.sidebar {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  background: var(--sidebar);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--foreground) 2.5%, transparent);
}

.brand-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 0.25rem;
  background: color-mix(in oklch, var(--primary-foreground) 10%, transparent);
  color: var(--sidebar-foreground);
}

.brand-mark .i {
  width: 2.5rem;
  height: 2.5rem;
}

.brand-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.nav-group {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  border-radius: var(--radius);
  background: var(--sidebar);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--foreground) 2.5%, transparent);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--sidebar-foreground);
}

.nav-item:hover {
  background: var(--sidebar-accent);
}

.nav-item.active {
  background: var(--sidebar-accent);
  font-weight: 500;
}

.nav-item.active .i {
  color: var(--sidebar-primary);
}

.nav-item .i {
  width: 1.25rem;
  height: 1.25rem;
}

.main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.mobile-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-mobile);
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-brand .mark {
  display: grid;
  width: 4rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
}

.mobile-brand .mark .i {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  overflow-x: auto;
}

.mobile-nav a {
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.mobile-nav a.active {
  background: var(--accent);
  color: var(--foreground);
}

.page-head {
  position: sticky;
  top: var(--header-mobile);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--background);
  box-shadow: 0 0 0 2px var(--pop);
}

.page-icon {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 0.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
}

.page-head h1 {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.period {
  position: relative;
  z-index: 30;
  margin-left: auto;
  min-width: 0;
}

.period summary {
  position: relative;
  display: flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
  padding: 0.15rem 1.1rem 0.15rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  white-space: nowrap;
}

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

.period summary::after {
  content: "";
  position: absolute;
  right: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.period details[open] summary {
  color: var(--foreground);
}

.period-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: transparent;
}

.period-pop {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 50;
  display: grid;
  gap: 0.75rem;
  min-width: 13.5rem;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border), 0 16px 40px rgb(0 0 0 / 45%);
}

.period-pop label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.period-pop input[type="date"] {
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: var(--accent);
  color: var(--foreground);
  font-size: 0.875rem;
  color-scheme: dark;
}

.period-pop input[type="date"]:focus {
  outline: none;
  border-color: var(--primary);
}

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

.chart {
  position: relative;
}

.chart svg {
  display: block;
  width: 100%;
  height: 14rem;
  overflow: visible;
}

.chart-area {
  fill: var(--primary);
  opacity: 0.18;
}

.chart-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-line-0 { stroke: var(--chart-0); }
.chart-line-1 { stroke: var(--chart-1); }
.chart-line-2 { stroke: var(--chart-2); }
.chart-line-3 { stroke: var(--chart-3); }
.chart-line-4 { stroke: var(--chart-4); }
.chart-line-5 { stroke: var(--chart-5); }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.chart-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.chart-swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.chart-swatch.chart-line-0 { background: var(--chart-0); }
.chart-swatch.chart-line-1 { background: var(--chart-1); }
.chart-swatch.chart-line-2 { background: var(--chart-2); }
.chart-swatch.chart-line-3 { background: var(--chart-3); }
.chart-swatch.chart-line-4 { background: var(--chart-4); }
.chart-swatch.chart-line-5 { background: var(--chart-5); }

.chart-dot {
  fill: var(--card);
  stroke-width: 2;
}

.chart-dot.chart-line-0 { stroke: var(--chart-0); }
.chart-dot.chart-line-1 { stroke: var(--chart-1); }
.chart-dot.chart-line-2 { stroke: var(--chart-2); }
.chart-dot.chart-line-3 { stroke: var(--chart-3); }
.chart-dot.chart-line-4 { stroke: var(--chart-4); }
.chart-dot.chart-line-5 { stroke: var(--chart-5); }

.chart-axis {
  stroke: var(--border);
  stroke-width: 1;
}

.chart-label {
  fill: var(--muted-foreground);
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chart-hit {
  cursor: crosshair;
  fill: transparent;
}

.chart-tip {
  position: absolute;
  top: 0.35rem;
  right: 0.75rem;
  max-width: calc(100% - 1.5rem);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: pre-line;
  text-align: right;
  color: var(--foreground);
  pointer-events: none;
}

.content {
  flex: 1;
  padding: 1.5rem 0.75rem 3rem;
  background: var(--background);
  box-shadow: 0 0 0 2px var(--pop);
}

.stack {
  display: grid;
  gap: 1.5rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.375rem;
  border-radius: var(--radius);
  background: var(--pop);
  color: var(--card-foreground);
}

.card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 2.25rem;
  padding: 0 0.25rem 0 0.25rem;
  gap: 0.625rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
}

.card-addon {
  margin-left: auto;
}

.card-body {
  flex: 1;
  padding: 0.75rem;
  border-radius: 0.25rem;
  background: var(--card);
}

.card-body.accent {
  background: var(--accent);
}

.stat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.375rem;
  border-radius: var(--radius);
  background: var(--pop);
}

.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.25rem;
  padding: 0 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
}

.stat-head .left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.cur-switch {
  display: flex;
  gap: 0.15rem;
}

.cur-switch a {
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted-foreground);
}

.cur-switch a.on {
  background: var(--primary);
  color: var(--primary-foreground);
}

.stat-head .i {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}

.stat-body {
  position: relative;
  overflow: hidden;
  flex: 1;
  padding: 0.75rem 0.75rem 1rem;
  border-radius: 0.25rem;
  background: var(--accent);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
}

.stat-value.danger {
  color: var(--destructive);
}

.stat-value.success {
  color: var(--success);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.125rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--primary-foreground);
}

.badge.outline {
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.badge.success {
  background: color-mix(in oklch, var(--success) 10%, transparent);
  border-color: var(--success);
  color: var(--success);
}

.badge.warning {
  background: color-mix(in oklch, var(--warning) 10%, transparent);
  border-color: var(--warning);
  color: var(--warning);
}

.badge.muted {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn {
  display: inline-flex;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.375rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn:hover {
  background: color-mix(in oklch, var(--primary) 90%, black);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--foreground);
}

.btn-icon {
  width: 2.25rem;
  padding: 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--muted-foreground);
}

.icon-btn:hover {
  background: var(--accent);
  color: var(--foreground);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.input,
.select {
  height: 2.5rem;
  width: 100%;
  border: 1px solid var(--input);
  border-radius: 0.375rem;
  background: color-mix(in oklch, var(--input) 30%, transparent);
  padding: 0 0.75rem;
  outline: none;
}

.input:focus,
.select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 25%, transparent);
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.seg button {
  border: 1px solid var(--input);
  border-radius: 0.375rem;
  background: transparent;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.seg button.on-expense {
  border-color: var(--destructive);
  background: color-mix(in oklch, var(--destructive) 10%, transparent);
  color: var(--destructive);
}

.seg button.on-income {
  border-color: var(--success);
  background: color-mix(in oklch, var(--success) 10%, transparent);
  color: var(--success);
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.list.nested {
  margin-top: 0.65rem;
  padding-left: 0.75rem;
  gap: 0.55rem;
  border-left: 1px solid var(--border);
}

.nested-split {
  margin-top: 0.2rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.nested-split .truncate {
  font-weight: 600;
}

.list > li,
.breakdown,
.breakdown > summary {
  min-width: 0;
  max-width: 100%;
}

.breakdown {
  width: 100%;
}

.breakdown > summary {
  display: flex;
  list-style: none;
  cursor: pointer;
}

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

.breakdown > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: 0.15rem;
  border-right: 1.5px solid var(--muted-foreground);
  border-bottom: 1.5px solid var(--muted-foreground);
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.breakdown[open] > summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

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

.amt {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 58%;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.muted {
  color: var(--muted-foreground);
}

.xs {
  font-size: 0.75rem;
  font-weight: 500;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

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

.danger {
  color: var(--destructive);
}

.rank {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.rank-n {
  display: grid;
  min-width: 1.5rem;
  height: 2rem;
  place-items: center;
  margin-right: 0.25rem;
  padding: 0 0.4rem;
  border-radius: 0.25rem;
  background: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
}

.rank.featured .rank-n {
  height: 2.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
}

.rank-body {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.5rem 0.625rem;
  border-radius: 0.25rem;
}

.rank.featured .rank-body {
  background: var(--accent);
}

.rank-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
}

.status-grid {
  display: grid;
  gap: 1rem;
}

.status-item {
  border: 1px solid var(--success);
  border-radius: 0.375rem;
  background: color-mix(in oklch, var(--success) 5%, transparent);
  color: var(--success);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--success) 3%, transparent);
}

.status-item.warning {
  border-color: var(--warning);
  background: color-mix(in oklch, var(--warning) 5%, transparent);
  color: var(--warning);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--warning) 3%, transparent);
}

.status-item.danger {
  border-color: var(--destructive);
  background: color-mix(in oklch, var(--destructive) 5%, transparent);
  color: var(--destructive);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--destructive) 3%, transparent);
}

.status-item .top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-item .val {
  padding: 0.25rem 0.625rem 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.status-item .sub {
  padding: 0 0.625rem 0.5rem;
  font-size: 0.75rem;
  opacity: 0.5;
}

.check {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--input);
  border-radius: 0.25rem;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.check.on {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.task,
.step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rank form {
  display: flex;
}

.page-icon .i,
.btn .i {
  width: 1.25rem;
  height: 1.25rem;
}

.task.done .grow,
.strike {
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.bar {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--muted);
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--destructive);
}

.bar.primary > span {
  background: var(--primary);
}

.bar.success > span {
  background: var(--success);
}

.empty {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
}

.inline-add {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.inline-add .input {
  height: 2.25rem;
}

.task form,
.plan-goal-head form {
  display: flex;
  flex-shrink: 0;
}

.task-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
}

.daily-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.field-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
}

.field-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--primary);
}

.now {
  display: grid;
  gap: 1.15rem;
}

.now-body {
  padding: 1.05rem 1.1rem 1.15rem;
}

.now-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.now-title {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-family: "Unbounded", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.now-count {
  flex-shrink: 0;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.now-bar {
  height: 0.4rem;
  margin: 0.9rem 0 0.2rem;
}

.now-list {
  margin-top: 0.85rem;
  gap: 0;
}

.now .task {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.now .task:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.now .check {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.35rem;
}

.now-hint,
.now-empty p {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted-foreground);
  text-transform: none;
}

.now-empty {
  padding: 2.75rem 1.25rem;
  text-align: center;
}

.now-empty p {
  margin: 0 0 0.85rem;
}

.plan-goals {
  gap: 1.35rem;
}

.plan-goal {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.plan-goal:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.plan-goal.is-done .task-title {
  color: var(--muted-foreground);
}

.plan-goal .nested {
  margin-top: 0.7rem;
}

.plan-goal .empty {
  padding: 0.6rem 0;
  text-align: left;
}

.icon-round {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.icon-in {
  background: color-mix(in oklch, var(--success) 15%, transparent);
  color: var(--success);
}

.icon-out {
  background: color-mix(in oklch, var(--destructive) 15%, transparent);
  color: var(--destructive);
}

.h {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.finance-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .amt {
    max-width: none;
    white-space: nowrap;
    font-size: 0.875rem;
  }

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

  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .stat-value {
    font-size: 3rem;
  }

  .now-title {
    font-size: 1.6rem;
  }

  .page-icon {
    display: grid;
  }

  .page-head h1 {
    font-size: 2.25rem;
  }

  .content {
    padding: 2.5rem 1.5rem 4rem;
  }
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 16rem minmax(0, 1fr);
    padding: 0 var(--sides);
  }

  .sidebar {
    display: flex;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-direction: column;
    gap: 0.5rem;
    padding: var(--sides) 0;
  }

  .mobile-bar,
  .mobile-nav {
    display: none;
  }

  .page-head {
    top: 0;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 1rem;
    padding: 1.75rem 1.5rem 1rem;
  }

  .page-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .main {
    min-height: 100vh;
  }

  .grid-2 {
    grid-template-columns: 1.3fr 1fr;
  }

  .grid-2.even {
    grid-template-columns: 1fr 1fr;
  }

  .now {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .now-routine {
    grid-column: 1 / -1;
  }

  .finance-layout {
    grid-template-columns: 1.6fr 1fr;
  }
}
