:root {
  --bg: #0b0d0f;
  --card: #13171a;
  --card2: #181d21;
  --text: #f4f6f7;
  --muted: #8e989f;
  --line: #252c31;
  --accent: #9fe870;
  --danger: #ff7777;
  --blue: #79b8ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}
.container {
  max-width: 1120px;
  margin: auto;
  padding: 28px 18px 42px;
}
header,
.row,
.section-heading,
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.logo {
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.7px;
}
.logo span {
  color: var(--accent);
}
.badge {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.hero {
  padding: 36px 0 25px;
}
.eyebrow,
.label {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin: 0 0 9px;
}
.eyebrow {
  color: var(--accent);
}
h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin: 0 0 12px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
}
.sub {
  color: var(--muted);
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  min-width: 0;
}
.value {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 780;
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
}
.green {
  color: var(--accent);
}
.red,
.expense {
  color: var(--danger);
}
.income {
  color: var(--accent);
}
.blue {
  color: var(--blue);
}
.small {
  font-size: 12px;
  color: var(--muted);
}
.summary-grid .small {
  display: block;
  margin-top: 7px;
}
.section {
  margin-top: 18px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.progress {
  height: 9px;
  background: #252b2f;
  border-radius: 99px;
  overflow: hidden;
  margin: 16px 0 9px;
}
.progress div {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.2s;
}
.stat-row {
  margin: 14px 0;
}
.note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 12px 0 0;
}
.top-note {
  margin: -6px 0 17px;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.account-card {
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  min-width: 0;
}
.account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.account-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.account-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #222b24;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.account-balance {
  font-size: 19px;
  font-weight: 750;
  margin: 10px 0;
}
.account-type {
  font-size: 11px;
  color: var(--muted);
}
.account-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
input,
select,
button {
  font: inherit;
}
input,
select {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--text);
  outline: none;
  min-width: 0;
}
input:focus,
select:focus {
  border-color: #53616a;
}
button,
.button {
  border: 0;
  border-radius: 11px;
  padding: 11px 14px;
  background: var(--accent);
  color: #10140e;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
button.secondary,
.button.secondary {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--line);
}
button.danger {
  background: transparent;
  color: var(--danger);
  padding: 6px 8px;
}
.subtle {
  font-size: 11px;
}
.full {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.file-button {
  position: relative;
  overflow: hidden;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.guide-item {
  display: flex;
  gap: 12px;
  margin: 17px 0;
}
.guide-number {
  flex: 0 0 27px;
  height: 27px;
  border-radius: 9px;
  background: #222b24;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
}
.guide-item b {
  font-size: 13px;
}
.guide-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin: 4px 0 0;
}
.filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 5px;
  font-size: 12px;
  min-width: 660px;
}
th,
td {
  text-align: left;
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-weight: 500;
}
td.note-cell {
  white-space: normal;
  min-width: 120px;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}
.barbox {
  height: 165px;
  display: flex;
  align-items: stretch;
  gap: 9px;
  padding-top: 20px;
}
.barwrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.bar-track {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bar {
  width: 100%;
  max-width: 36px;
  background: var(--accent);
  border-radius: 7px 7px 2px 2px;
  min-height: 3px;
}
.barlabel {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
  text-align: center;
}
.barvalue {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 5px;
  min-height: 11px;
}
footer {
  margin-top: 24px;
  padding: 10px 2px;
  color: var(--muted);
  font-size: 11px;
}
.hidden {
  display: none !important;
}
dialog {
  width: min(440px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}
.dialog-form {
  padding: 22px;
  display: grid;
  gap: 14px;
}
.dialog-form h2 {
  margin: 0;
}
.icon-button {
  background: var(--card2);
  color: var(--text);
  padding: 7px 10px;
}
.dialog-form .note {
  margin: 0;
}
.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
@media (max-width: 760px) {
  .grid,
  .two {
    grid-template-columns: 1fr;
  }
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form {
    grid-template-columns: 1fr;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 28px;
  }
  .container {
    padding: 20px 13px 32px;
  }
  .card {
    padding: 16px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .badge {
    font-size: 10px;
  }
  footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 400px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
  .logo {
    font-size: 20px;
  }
  .header .badge {
    max-width: 130px;
  }
}
