@font-face {
  font-family: Pilea;
  src: local("Arial");
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  background: #f6f7f5;
  color: #17251d;
  font-family: Pilea, Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid #099c49;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
p {
  color: #737d76;
  line-height: 1.6;
}
small {
  display: block;
  font-size: 11px;
  color: #778078;
  line-height: 1.6;
}
strong {
  font-weight: 500;
}
svg {
  flex-shrink: 0;
}
.sidebar {
  width: 226px;
  background: #fff;
  border-right: 1px solid #e6eae5;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 34px 19px;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -2px;
  padding: 0 12px;
}
.brand-icon {
  width: 36px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #10b75c;
}
.brand-dot {
  font-size: 11px;
  align-self: flex-start;
  padding-top: 10px;
  letter-spacing: 0;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 38px 2px 33px;
  border: 1px solid #e8ece7;
  border-radius: 12px;
  padding: 12px 9px;
  font-size: 12px;
}
.avatar {
  background: #e7eee7;
  color: #356343;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}
.live-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  background: #13bf63;
  border-radius: 50%;
}
.nav-label {
  font-size: 9px;
  color: #909991;
  letter-spacing: 1.3px;
  padding: 0 15px;
  margin-bottom: 13px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7a827b;
  border-radius: 8px;
  padding: 13px 15px;
  font-size: 12px;
  transition: background 0.15s;
}
nav a:hover {
  background: #f5f7f4;
}
nav a.active {
  background: #e9f8ef;
  color: #13934c;
}
nav a.active i {
  background: #13bf63;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 45px;
}
.local-note {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: #566b5c;
  line-height: 1.8;
  padding: 15px 10px;
  border-bottom: 1px solid #edf0eb;
}
.local-note small {
  font-size: 9px;
}
.settings-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 22px 15px;
  color: #6d786f;
  font-size: 12px;
}
.version {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #a0aaa0;
  padding-left: 15px;
}
.main {
  margin-left: 226px;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid #e6eae5;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  font-size: 12px;
  color: #445347;
}
.topbar > div {
  display: flex;
  gap: 20px;
  align-items: center;
}
.breadcrumb {
  color: #acb3ab;
  padding-left: 12px;
}
.device-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #7c867d;
}
.device-tag i {
  width: 5px;
  height: 5px;
  background: #12ba61;
  border-radius: 100%;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 39px 42px 25px;
}
footer {
  max-width: 1600px;
  margin: auto;
  padding: 22px 42px 30px;
  color: #7d877d;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e6eae5;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #829084;
  margin-bottom: 13px;
}
h1 {
  font-size: 44px;
  letter-spacing: -2.3px;
  font-weight: 500;
  line-height: 1.12;
  margin-bottom: 12px;
}
.title-dot {
  color: #13bf63;
}
.page-heading p {
  font-size: 12px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.primary,
.secondary,
.danger {
  min-height: 40px;
  border-radius: 7px;
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.primary {
  background: #14bf65;
  color: #0c2c19;
}
.primary:hover {
  background: #0cae56;
}
.secondary {
  background: white;
  border: 1px solid #dfe5de;
  color: #435446;
}
.secondary:hover {
  background: #eff5ed;
}
.danger {
  background: #b63e35;
  color: #fff;
}
.icon-button {
  background: transparent;
  color: #6d7e70;
  width: 30px;
  height: 30px;
  border-radius: 6px;
}
.icon-button:hover {
  background: #e9f1e7;
  color: #13291b;
}
.month-picker {
  display: flex;
  align-items: center;
  border: 1px solid #e0e6de;
  background: white;
  border-radius: 7px;
  height: 40px;
}
.month-picker button {
  background: transparent;
  height: 36px;
  width: 25px;
  font-size: 18px;
  color: #758477;
}
.month-picker input {
  font-size: 11px;
  border: 0;
  width: 127px;
  color: #4a594c;
  padding: 5px;
  background: transparent;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.balance-card,
.metric {
  border-radius: 13px;
  padding: 22px;
  min-width: 0;
}
.balance-card {
  background: #15bf65;
  position: relative;
  overflow: hidden;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 23px;
  font-size: 11px;
}
.card-top > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.big-number {
  display: block;
  font-size: clamp(26px, 2.7vw, 42px);
  letter-spacing: -1.8px;
  white-space: nowrap;
  margin-bottom: 25px;
}
.balance-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.balance-bottom > span:first-child {
  font-size: 9px;
  max-width: 150px;
  line-height: 1.7;
  color: #1f5d39;
}
.round-icon {
  width: 35px;
  height: 35px;
  background: #3acf80;
  border-radius: 100%;
  display: grid;
  place-items: center;
}
.metric {
  background: #eaece8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.metric-icon {
  width: 30px;
  height: 30px;
  border-radius: 100%;
  background: #d1efdb;
  color: #14974b;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
}
.muted-icon {
  background: #dce1d9;
  color: #596c59;
}
.metric > span:not(.metric-icon) {
  font-size: 11px;
  color: #536353;
}
.metric strong {
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -1.2px;
  margin: 9px 0 14px;
  white-space: nowrap;
}
.metric small {
  font-size: 9px;
  margin-top: auto;
}
.forecast {
  background: #e4e9e0;
}
.middle-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  background: white;
  border: 1px solid #e4e9e1;
  border-radius: 13px;
  padding: 23px;
  min-width: 0;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-title p {
  font-size: 10px;
  margin-top: 6px;
}
.pill {
  border: 1px solid #e3e9e0;
  color: #7f8e7e;
  border-radius: 20px;
  font-size: 9px;
  padding: 6px 10px;
  white-space: nowrap;
}
.chart {
  height: 166px;
  position: relative;
  margin: 31px 0 14px;
  padding-left: 72px;
}
.chart-grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 20px;
  color: #a3aca0;
  font-size: 9px;
  pointer-events: none;
}
.chart-grid span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chart-grid span:after {
  content: "";
  flex: 1;
  border-top: 1px dashed #e7ebe4;
  margin-left: 5px;
}
.bars {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: space-around;
  gap: 16px;
}
.bar-group {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  max-width: 58px;
  gap: 10px;
}
.bar-group > span {
  font-size: 9px;
  color: #899383;
}
.bar-pair {
  height: calc(100% - 25px);
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  justify-content: center;
}
.bar {
  width: 40%;
  border-radius: 4px 4px 0 0;
  min-height: 3px;
}
.green {
  background: #13bf63;
}
.gray {
  background: #d9dfd4;
}
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 9px;
  color: #7a8779;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.future-card {
  background: #e2e9df;
  border-radius: 13px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  min-height: 310px;
}
.future-card .eyebrow {
  font-size: 8px;
  position: relative;
  z-index: 2;
}
.future-card h2 {
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -1.1px;
  position: relative;
  z-index: 2;
}
.future-link {
  position: absolute;
  bottom: 22px;
  left: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  z-index: 2;
}
.future-link > span {
  background: #14bf65;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
}
.plant-art {
  height: 180px;
  width: 180px;
  position: absolute;
  bottom: 30px;
  right: 18px;
  transform: rotate(-9deg);
}
.stem {
  width: 5px;
  height: 120px;
  background: #418d45;
  position: absolute;
  bottom: 15px;
  left: 87px;
  transform: rotate(12deg);
  border-radius: 90%;
}
.leaf {
  position: absolute;
  width: 73px;
  height: 40px;
  border-radius: 0 90% 0 90%;
  background: linear-gradient(135deg, #2ba74d, #91cb60 65%, #d7e9a4);
  box-shadow:
    inset 2px 2px 7px #ffffff66,
    4px 8px 12px #3d7b4225;
}
.leaf.one {
  left: 27px;
  top: 61px;
  transform: rotate(8deg);
}
.leaf.two {
  left: 87px;
  top: 23px;
  transform: rotate(-70deg);
}
.leaf.three {
  left: 89px;
  top: 93px;
  transform: rotate(-58deg);
  width: 61px;
  height: 33px;
}
.pot {
  position: absolute;
  bottom: -4px;
  left: 61px;
  width: 65px;
  height: 58px;
  background: linear-gradient(100deg, #96ad8f, #d5dfcc 45%, #a2b69b);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
  border-radius: 5px;
}
.plant-orbit {
  position: absolute;
  inset: 5px;
  border: 1px solid #aabfa566;
  border-radius: 50%;
  transform: rotate(30deg) scaleX(1.1);
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
}
.text-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7c8878;
  font-size: 10px;
  white-space: nowrap;
}
.empty {
  text-align: center;
  padding: 28px 16px 22px;
  grid-column: 1/-1;
}
.empty-icon {
  display: inline-grid;
  place-items: center;
  color: #87a48a;
  width: 55px;
  height: 55px;
  background: #f0f5ed;
  border-radius: 50%;
  margin-bottom: 14px;
}
.empty h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 7px;
}
.empty p {
  font-size: 11px;
  max-width: 350px;
  margin: 0 auto 17px;
}
.empty .primary {
  font-size: 10px;
  min-height: 35px;
  padding: 8px 12px;
}
.count {
  background: #eef3ea;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #84927b;
  font-size: 10px;
}
.radar-empty {
  text-align: center;
  padding: 35px 0 20px;
}
.success-ring {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d7e7d3;
  border-radius: 50%;
  color: #70aa78;
  margin-bottom: 17px;
}
.radar-empty h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
}
.radar-empty p {
  font-size: 10px;
}
.radar-total {
  font-size: 26px;
  margin-bottom: 20px;
  letter-spacing: -0.6px;
}
.radar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  border-top: 1px solid #eef1eb;
  font-size: 11px;
}
.radar-item > div {
  flex: 1;
}
.radar-item small {
  font-size: 9px;
}
.radar-item > span {
  white-space: nowrap;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 9px;
  font-weight: 400;
  color: #96a090;
  padding: 0 10px 14px;
  border-bottom: 1px solid #eef1eb;
}
td {
  padding: 16px 10px;
  border-bottom: 1px solid #edf1ea;
  font-size: 11px;
  color: #6e7b6a;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child {
  padding-right: 0;
}
.transaction-name {
  display: flex;
  align-items: center;
  gap: 11px;
}
.transaction-name strong {
  color: #344630;
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transaction-name small {
  font-size: 9px;
}
.transaction-icon {
  background: #edf0e9;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.transaction-icon.income {
  color: #0c9e4b;
  background: #e9f7ec;
}
.positive {
  color: #10a354 !important;
}
.negative {
  color: #ba4c41 !important;
}
.amount {
  font-variant-numeric: tabular-nums;
  color: #384b33;
}
.status {
  border-radius: 12px;
  font-size: 8px;
  padding: 5px 8px;
  background: #eef6e9;
  color: #739166;
}
.status.pending {
  background: #fbf3df;
  color: #9a7b35;
}
.row-actions {
  display: flex;
  gap: 2px;
}
.row-actions .icon-button {
  width: 26px;
  height: 26px;
}
.filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #dfe5de;
  border-radius: 7px;
  padding: 0 12px;
  flex: 1;
  min-width: 160px;
  color: #85927f;
}
.search input {
  border: 0;
  outline-offset: 0;
  background: transparent;
  padding: 12px 0;
  width: 100%;
  min-width: 0;
  font-size: 11px;
}
.filterbar > select {
  width: auto;
  font-size: 10px;
  min-width: 135px;
  background: #fff;
}
.table-summary {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
  color: #819078;
  font-size: 10px;
}
.entity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.standalone-title {
  margin: 32px 0 20px;
}
.standalone-title span {
  font-size: 12px;
  color: #8a9783;
  padding-left: 5px;
}
.account-card,
.credit-card {
  border-radius: 13px;
  padding: 23px;
  background: #e7ede1;
  min-width: 0;
}
.account-card > strong,
.credit-card > strong {
  display: block;
  font-size: 32px;
  letter-spacing: -1.5px;
  margin: 8px 0 24px;
}
.account-card .card-top,
.credit-card .card-top {
  font-size: 15px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #6e8063;
}
.credit-card {
  background: #d9ead9;
}
.progress {
  height: 5px;
  border-radius: 10px;
  background: #e5ebdf;
  overflow: hidden;
  margin: 20px 0 12px;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: #14bf65;
}
.progress.over i {
  background: #b84a3b;
}
.spaced {
  margin-top: 32px;
}
.budget-card > strong,
.goal-card > strong {
  display: block;
  font-size: 25px;
  letter-spacing: -0.8px;
  margin: 20px 0;
}
.budget-card > strong small,
.goal-card > strong small {
  display: inline;
  font-size: 12px;
  letter-spacing: 0;
}
.budget-card p {
  font-size: 9px;
  margin-top: 16px;
}
.goal-card h2 {
  font-size: 22px;
}
.goal-card p {
  font-size: 11px;
  margin-top: 10px;
}
.goal-card .secondary {
  margin-top: 25px;
  width: 100%;
}
.footnote {
  font-size: 11px;
  margin-top: 20px;
}
.report-rows > div {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e7ede1;
  font-size: 12px;
  color: #73836b;
}
.category-row {
  margin-top: 22px;
}
.category-row > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.category-row .progress {
  margin: 9px 0 5px;
}
.category-row small {
  font-size: 9px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-grid .panel > p {
  margin: 16px 0;
  font-size: 12px;
}
.settings-grid .panel:last-child {
  grid-column: 1/-1;
}
.backup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #63725a;
  margin-top: 18px;
}
form input,
form select,
select {
  border: 1px solid #dce4d5;
  background: #fcfdfb;
  border-radius: 7px;
  min-height: 40px;
  padding: 10px 12px;
  width: 100%;
  color: #293e23;
}
form .primary {
  margin-top: 20px;
}
form .dialog-actions .primary {
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.checkbox {
  flex-direction: row;
  align-items: center;
}
.checkbox input {
  width: 16px;
  min-height: 16px;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}
.dialog-header h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
}
dialog {
  border: 1px solid #e0e8da;
  border-radius: 18px;
  box-shadow: 0 25px 100px #17331d33;
  width: min(540px, calc(100% - 32px));
  padding: 28px;
  color: #25371e;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #18351f66;
  backdrop-filter: blur(4px);
}
dialog > p,
dialog form > p {
  font-size: 11px;
  line-height: 1.7;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.form-error {
  color: #b13f32;
  min-height: 16px;
  margin-top: 15px !important;
}
.warning {
  background: #fff0d0;
  border: 1px solid #e5c686;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  padding: 14px 22px;
  border-radius: 10px;
  background: #24422b;
  color: #fff;
  z-index: 99;
  transition: 0.2s;
  font-size: 12px;
  max-width: 90vw;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1600px) {
  .hero-grid {
    gap: 22px;
  }
  .balance-card,
  .metric {
    padding: 28px;
  }
  .plant-art {
    right: 45px;
  }
  main {
    padding-top: 48px;
  }
  .future-card h2 {
    font-size: 35px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 190px;
    padding: 30px 13px;
  }
  .main {
    margin-left: 190px;
  }
  main {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .heading-actions {
    justify-content: flex-end;
  }
  .hero-grid {
    grid-template-columns: 1.25fr 1fr 1fr;
  }
  .forecast {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 35px 1fr 1fr 1fr;
    align-items: center;
    gap: 10px;
    padding: 15px 22px;
  }
  .forecast .metric-icon,
  .forecast strong {
    margin: 0;
  }
  .forecast small {
    margin: 0;
  }
  .metric strong {
    font-size: 25px;
  }
  .balance-card .big-number {
    font-size: 31px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .entity-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .future-card h2 {
    font-size: 25px;
  }
  .plant-art {
    right: 0;
    bottom: 40px;
    transform: scale(0.85) rotate(-9deg);
  }
  h1 {
    font-size: 39px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 72px;
    padding: 20px 10px;
  }
  .brand {
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .brand-dot,
  .workspace,
  .nav-label,
  nav a span,
  nav a i,
  .sidebar-foot .local-note,
  .settings-link,
  .version {
    display: none;
  }
  .brand-icon {
    width: 38px;
  }
  nav {
    margin-top: 45px;
    gap: 14px;
  }
  nav a {
    padding: 14px;
    justify-content: center;
  }
  .main {
    margin-left: 72px;
  }
  .topbar {
    height: 65px;
    font-size: 11px;
  }
  .topbar > div {
    gap: 10px;
  }
  .device-tag {
    display: none;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 20px;
  }
  .heading-actions {
    justify-content: flex-start;
  }
  .middle-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid {
    gap: 10px;
  }
  .balance-card,
  .metric {
    padding: 18px;
  }
  .metric strong {
    font-size: 21px;
  }
  .balance-card .big-number {
    font-size: 27px;
  }
  .entity-grid {
    grid-template-columns: 1fr 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid .panel:last-child {
    grid-column: auto;
  }
  .panel {
    padding: 20px;
  }
  .future-card {
    padding: 22px;
  }
  .future-card h2 {
    font-size: 24px;
  }
  .chart {
    padding-left: 60px;
  }
  .chart-grid {
    font-size: 8px;
  }
  footer span {
    display: none;
  }
}
@media (max-width: 600px) {
  .sidebar {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    height: 65px;
    width: 100%;
    padding: 0 5px;
    border-right: 0;
    border-top: 1px solid #e0e7db;
    background: #fffffff5;
    backdrop-filter: blur(12px);
  }
  .sidebar .brand,
  .sidebar-foot {
    display: none;
  }
  nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    margin: 0;
    height: 100%;
    align-items: center;
  }
  nav a {
    padding: 10px 9px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 8px;
  }
  nav a span {
    display: block;
    font-size: 7px;
  }
  nav a svg {
    width: 18px;
    height: 18px;
  }
  .main {
    margin-left: 0;
    margin-bottom: 65px;
  }
  .topbar {
    padding: 0 20px;
    height: 58px;
  }
  .topbar .breadcrumb {
    display: none;
  }
  main {
    padding: 27px 18px 22px;
  }
  .page-heading {
    gap: 21px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 37px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .heading-actions {
    width: 100%;
    gap: 8px;
    justify-content: space-between;
  }
  .heading-actions .primary {
    flex: 1;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .balance-card {
    grid-column: 1/-1;
    padding: 24px;
  }
  .balance-card .big-number {
    font-size: 42px;
    margin-bottom: 20px;
  }
  .balance-card .card-top {
    margin-bottom: 19px;
  }
  .balance-bottom > span:first-child {
    max-width: none;
  }
  .metric {
    min-height: 155px;
    padding: 20px;
  }
  .metric strong {
    font-size: 25px;
  }
  .metric small {
    font-size: 9px;
  }
  .forecast {
    grid-column: 1/-1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    min-height: 65px;
    padding: 16px;
    align-items: center;
    gap: 10px;
  }
  .forecast > span:not(.metric-icon) {
    font-size: 11px;
  }
  .forecast strong {
    font-size: 23px;
    margin-left: auto;
  }
  .forecast small {
    width: 100%;
    text-align: right;
  }
  .forecast .metric-icon {
    width: 25px;
    height: 25px;
  }
  .middle-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-bottom: 17px;
  }
  .future-card {
    min-height: 230px;
  }
  .future-card h2 {
    font-size: 30px;
  }
  .plant-art {
    right: 10px;
    bottom: 31px;
    transform: scale(0.82) rotate(-9deg);
  }
  .future-card .eyebrow {
    font-size: 7px;
  }
  .future-link {
    left: 23px;
    right: 23px;
  }
  .section-title {
    gap: 10px;
  }
  h2 {
    font-size: 16px;
  }
  .section-title p {
    font-size: 9px;
  }
  .panel {
    padding: 20px 16px;
  }
  .table-summary {
    flex-direction: column;
    gap: 12px;
  }
  .filterbar .search {
    flex-basis: 100%;
    min-height: 42px;
  }
  .filterbar > select {
    flex: 1;
    min-width: 100px;
  }
  .filterbar .month-picker {
    flex: 1;
  }
  .filterbar .month-picker label {
    flex: 1;
  }
  .filterbar .month-picker input {
    width: 100%;
  }
  .entity-grid {
    grid-template-columns: 1fr;
  }
  .spaced {
    margin-top: 25px;
  }
  .settings-grid {
    gap: 17px;
  }
  .chart {
    height: 180px;
    padding-left: 65px;
  }
  .bars {
    gap: 9px;
  }
  .chart-grid span:after {
    margin-left: 2px;
  }
  .report-rows > div {
    font-size: 11px;
  }
  .form-grid {
    gap: 10px;
  }
  dialog {
    padding: 22px;
  }
  .dialog-header h2 {
    font-size: 22px;
  }
  footer {
    padding: 15px 20px 25px;
    font-size: 9px;
  }
  .account-card > strong,
  .credit-card > strong {
    font-size: 37px;
  }
  .goal-card h2 {
    font-size: 23px;
  }
  .empty {
    padding: 30px 12px;
  }
  .future-card .plant-art .leaf {
    box-shadow:
      inset 2px 2px 7px #ffffff66,
      4px 8px 12px #3d7b4225;
  }
}
.sr-only {
  left: 0;
  top: 0;
}
.table-wrap {
  position: relative;
}
/* Textos mais encorpados, preservando a identidade do Pilea. */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 500;
}
h1 {
  font-weight: 650;
}
h2,
h3,
strong,
.primary,
.secondary,
.danger {
  font-weight: 600;
}
nav a,
.settings-link {
  font-weight: 600;
}
small,
p {
  font-weight: 450;
}
.metric strong,
.big-number,
.account-card > strong {
  font-weight: 600;
}
th,
form label,
.eyebrow {
  font-weight: 600;
}
.page-heading p {
  font-size: 13px;
}
.version {
  font-weight: 600;
}
.section-title p {
  font-size: 11px;
}
.metric small {
  font-size: 10px;
}
td {
  font-size: 12px;
}
th {
  font-size: 10px;
}
.footnote {
  color: #697a64;
}
.card-showcase {
  background: #fff;
  border: 1px solid #e2e8de;
  border-radius: 18px;
  overflow: hidden;
}
.card-showcase > .section-title {
  padding: 28px 30px 0;
}
.card-showcase h2 {
  font-size: 23px;
}
.card-carousel {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 24px max(18px, calc((100% - 440px) / 2));
  align-items: center;
}
.card-carousel::-webkit-scrollbar {
  display: none;
}
.card-face {
  flex: 0 0 min(440px, 78vw);
  aspect-ratio: 1.586;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  color: white;
  text-align: left;
  padding: 29px 30px;
  background: #151515;
  isolation: isolate;
  scroll-snap-align: center;
  box-shadow: 0 15px 25px #162b1b15;
  opacity: 0.7;
  transform: scale(0.96);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.card-face.selected {
  opacity: 1;
  transform: scale(1);
}
.card-face:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at -15% 110%, #ffffff38, transparent 65%),
    linear-gradient(127deg, transparent 67%, #ffffff07 67%, transparent 90%);
}
.card-face:after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border-radius: 25px;
  background: #ffffff05;
  transform: rotate(44deg);
  z-index: -1;
}
.card-face.black {
  background: #141414;
}
.card-face.blue {
  background: #557ed0;
}
.card-face.sage {
  background: #326953;
}
.card-face.plum {
  background: #77506e;
}
.face-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.face-top strong {
  font-size: 29px;
  letter-spacing: -1px;
  max-width: 75%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-brand {
  text-transform: uppercase;
  font-size: 17px;
  font-weight: 700;
  font-style: italic;
}
.face-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  letter-spacing: 1px;
  font-weight: 500;
  color: #f4f4f4;
}
.chip {
  height: 31px;
  width: 41px;
  border: 1px solid #d6d1b166;
  border-radius: 7px;
  background: linear-gradient(140deg, #e2d4ad70, #a4946b35);
  position: relative;
  margin-top: auto;
  margin-bottom: 27px;
}
.chip:before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 12px;
  border-inline: 1px solid #e4d6b070;
}
.chip:after {
  content: "";
  position: absolute;
  inset: 14px 0 auto;
  border-top: 1px solid #e4d6b070;
}
.mastercard-mark {
  display: flex;
  position: relative;
  width: 50px;
  height: 31px;
  flex-shrink: 0;
}
.mastercard-mark i {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #ed1528;
  position: absolute;
  left: 0;
}
.mastercard-mark i:last-child {
  left: 19px;
  background: #f9a51a;
  mix-blend-mode: screen;
}
.card-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 0 23px;
}
.card-dots button {
  width: 25px;
  height: 7px;
  background: #dedfdd;
  border-radius: 10px;
  padding: 0;
}
.card-dots button.active {
  width: 44px;
  background: #26342b;
}
.card-summary {
  padding: 28px 30px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  border-bottom: 1px solid #e8ece5;
}
.card-summary > div:first-child {
  min-width: 0;
}
.card-summary p {
  font-size: 13px;
  color: #788171;
}
.invoice-amount {
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -1.5px;
  margin: 12px 0 23px;
  overflow-wrap: anywhere;
}
.invoice-amount > span {
  font-weight: 500;
  color: #a3aaa0;
  white-space: nowrap;
}
.card-limit-track {
  height: 16px;
  border-radius: 5px;
  overflow: hidden;
  background: repeating-linear-gradient(
    90deg,
    #f1f2ef 0,
    #f1f2ef 2px,
    #e8ebe5 2px,
    #e8ebe5 3px
  );
  margin-bottom: 15px;
}
.card-limit-track i {
  display: block;
  height: 100%;
  background: #35433a;
  border-radius: 5px;
}
.card-summary .card-bottom {
  font-size: 11px;
}
.card-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.invoice-list {
  padding: 28px 30px;
}
.bill-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 23px;
}
.bill-month {
  background: #fff;
  border: 1px solid #e0e7da;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 17px 14px;
  gap: 14px;
  text-align: left;
  min-width: 0;
}
.bill-month.current {
  background: #e4f6e9;
  border-color: #16b85b;
}
.bill-month > strong {
  font-size: 13px;
  text-transform: capitalize;
}
.bill-month > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  color: #7a8574;
}
.bill-month b {
  font-size: 13px;
  color: #33452b;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.bill-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 22px 0;
}
.bill-metrics .metric {
  min-height: 140px;
}
.bill-metrics .metric strong {
  font-size: 28px;
}
.bill-metrics .metric > span {
  font-weight: 600;
}
.bills-note {
  margin: 0 0 24px;
}
.bills-sections {
  display: grid;
  gap: 22px;
}
.settled {
  margin-top: 20px;
  border-top: 1px solid #e7ece3;
  padding-top: 18px;
}
.settled summary {
  cursor: pointer;
  font-size: 12px;
  color: #56674e;
  margin-bottom: 18px;
}
.settled > p {
  font-size: 12px;
}
.import-intro > div:first-child {
  margin-bottom: 23px;
}
.import-intro p {
  margin-top: 8px;
  font-size: 12px;
}
.import-controls,
.column-mapping,
.pdf-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.import-controls label,
.column-mapping label,
.sign-control,
.pdf-options label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #51654a;
  font-weight: 600;
}
.import-controls input,
.pdf-options input {
  width: 100%;
  border: 1px solid #dce4d5;
  border-radius: 7px;
  padding: 11px;
  background: #fcfdfb;
  color: #2e4326;
  font: inherit;
  min-width: 0;
}
.upload-area {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  padding: 29px 20px;
  background: #f3f8ef;
  border: 1px dashed #a6b99b;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
}
.upload-area svg {
  color: #55934f;
}
.upload-area strong {
  font-size: 14px;
}
.upload-area span {
  font-size: 11px;
  color: #7c8b72;
}
.upload-area input {
  max-width: 100%;
  font-size: 11px;
  margin-top: 9px;
}
.sign-control {
  max-width: 350px;
  margin: 20px 0;
}
.column-mapping label {
  min-width: 0;
}
.import-preview th {
  padding-top: 10px;
}
.import-preview select {
  min-width: 155px;
  min-height: 35px;
  font-size: 11px;
  padding: 7px;
}
.import-preview .import-description {
  white-space: normal;
  min-width: 190px;
  max-width: 300px;
}
.import-preview .footnote {
  margin-bottom: 20px;
}
.duplicate-row {
  background: #fff9ec;
}
.import-preview input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #13a34b;
}
.import-preview table small {
  max-width: 130px;
  white-space: normal;
}
.pdf-options {
  max-width: 600px;
}
.pdf-options input[type="password"] {
  font-weight: 400;
}
@media (max-width: 1200px) {
  .bill-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bill-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-summary {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .card-summary-actions {
    flex-direction: row;
    justify-content: flex-start;
  }
}
@media (max-width: 600px) {
  nav {
    overflow-x: auto;
    justify-content: space-between;
    scrollbar-width: none;
  }
  nav a {
    flex: 0 0 45px;
    padding: 9px 2px;
    min-height: 48px;
  }
  nav a span {
    white-space: normal;
    max-width: 45px;
    text-align: center;
    line-height: 1.2;
    font-size: 7px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .bill-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .bill-month {
    padding: 14px;
  }
  .bill-month > span {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
  }
  .bill-month b {
    font-size: 11px;
  }
  .bill-metrics {
    gap: 12px;
  }
  .bill-metrics .metric {
    padding: 16px;
    min-height: 130px;
  }
  .bill-metrics .metric strong {
    font-size: 23px;
  }
  .bill-metrics .metric small {
    font-size: 9px;
  }
  .card-showcase > .section-title {
    padding: 22px 18px 0;
  }
  .card-showcase h2 {
    font-size: 19px;
  }
  .card-showcase .section-title .secondary {
    font-size: 9px;
    padding: 9px;
  }
  .card-carousel {
    gap: 15px;
    padding: 18px max(18px, calc((100% - 78vw) / 2));
  }
  .card-face {
    padding: 23px;
    border-radius: 12px;
  }
  .face-top strong {
    font-size: 24px;
  }
  .face-bottom {
    font-size: 12px;
    letter-spacing: 0.7px;
  }
  .card-brand {
    font-size: 13px;
  }
  .mastercard-mark {
    transform: scale(0.8);
    transform-origin: right center;
  }
  .chip {
    height: 23px;
    width: 32px;
    margin-bottom: 22px;
  }
  .chip:before {
    left: 11px;
    width: 10px;
  }
  .chip:after {
    top: 10px;
  }
  .card-summary {
    padding: 20px 18px 24px;
    gap: 20px;
  }
  .invoice-amount {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .card-summary .card-bottom {
    gap: 14px;
    align-items: flex-start;
    font-size: 10px;
  }
  .card-summary .card-bottom span {
    max-width: 55%;
  }
  .card-summary .card-bottom b {
    display: block;
    margin-top: 3px;
  }
  .card-summary-actions {
    flex-wrap: wrap;
  }
  .card-summary-actions > * {
    flex: 1;
  }
  .invoice-list {
    padding: 24px 16px;
  }
  .column-mapping,
  .import-controls,
  .pdf-options {
    grid-template-columns: 1fr;
  }
  .import-preview > .section-title {
    flex-wrap: wrap;
  }
  .import-preview > .section-title .primary {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
