@import url("data:text/css,");
.install-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid #cfe4d8;
  background: #edf6ef;
  color: #176348;
  box-shadow: none;
  font-size: 12px;
  white-space: nowrap;
}
.install-app[hidden] {
  display: none;
}
.balance-action {
  display: block;
  margin-top: 10px;
  padding: 6px 10px;
  font-size: 11px;
}
.flow-card {
  min-width: 0;
}
.flow-card .value {
  font-size: clamp(22px, 2.2vw, 32px);
}
.flow-details {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #73867d;
}
.flow-category {
  font-size: 14px;
  color: #234d3e;
  overflow-wrap: anywhere;
}
.flow-variation {
  font-size: 11px;
  font-weight: 650;
}
.flow-variation.neutral {
  color: #7b8983;
}
.flow-caption {
  margin: 12px 0 18px;
  line-height: 1.6;
}
.flow-insight {
  margin: 0 0 22px;
}
.grid-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin: 18px 0 14px;
  padding: 14px;
  background: #f4f7f3;
  border: 1px solid #e3eae2;
  border-radius: 10px;
}
.grid-controls label {
  min-width: 120px;
  flex: 1;
  font-size: 11px;
  gap: 6px;
}
.grid-controls .grid-search {
  flex: 2;
  min-width: 190px;
}
.grid-controls input,
.grid-controls select {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  font-size: 12px;
}
.grid-controls > button {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 12px;
}
.grid-sort-heading {
  display: inline;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 650;
  text-align: left;
  border: 0;
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
}
.grid-sort-heading:hover {
  background: transparent;
  text-decoration: underline;
}
.grid-sort-heading:focus-visible {
  outline: 2px solid #278566;
  outline-offset: 4px;
}
.grid-footer {
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 700px) {
  .grid-controls label {
    flex: 1 1 125px;
    min-width: 0;
  }
  .grid-controls .grid-search {
    flex-basis: 100%;
    min-width: 0;
  }
  .grid-controls > button {
    width: 100%;
  }
}
@media (display-mode: standalone) {
  .install-app {
    display: none;
  }
}
:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #192d2a;
  background: #f7f8f5;
  font-synthesis: none;
}
.import-grid {
  min-width: 1250px;
}
.import-grid input,
.import-grid select {
  max-width: 190px;
  padding: 8px;
  font-size: 12px;
}
.import-grid input[type="number"] {
  width: 115px;
}
.import-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.import-warning {
  background: #fff5df;
  color: #8f6327;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}
aside {
  overflow-y: auto;
}
details {
  margin: 18px 0;
  padding: 15px;
  background: #f7f8f5;
  border-radius: 9px;
}
summary {
  cursor: pointer;
  font-size: 14px;
  color: #23664f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #e7ae39;
  outline-offset: 3px;
}
button {
  border: 0;
  background: #197d5e;
  color: white;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.95);
}
button.secondary {
  background: #edf3ef;
  color: #23664f;
}
.danger {
  color: #bb4848 !important;
  background: #fff0ed !important;
}
input,
select {
  padding: 11px 13px;
  border: 1px solid #dfe6e0;
  border-radius: 8px;
  background: white;
  color: #243e35;
  min-width: 0;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #587067;
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
a {
  color: #137c5a;
  text-decoration: none;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 234px;
  background: linear-gradient(155deg, #174d3e, #113d33);
  color: white;
  padding: 32px 18px;
  z-index: 3;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 10px;
}
.brand svg {
  width: 37px;
  height: 37px;
  color: #79d6ad;
}
.tagline {
  font-size: 12px;
  color: #b7d6c8;
  padding-left: 59px;
  margin-top: 3px;
}
nav {
  margin-top: 42px;
  display: grid;
  gap: 9px;
}
nav button {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  color: #d7e6df;
  font-weight: 500;
  padding: 14px 18px;
}
nav button.active {
  background: #377b62;
  color: white;
}
svg.icon {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 14px;
  color: #b7d6c8;
  font-size: 15px;
  line-height: 1.65;
  border-top: 1px solid #ffffff1f;
}
.sidebar-bottom svg {
  width: 60px;
  height: 60px;
  color: #79d6ad;
  display: block;
  margin-bottom: 15px;
}
main {
  margin-left: 234px;
}
header {
  height: 87px;
  background: #fffdf9;
  border-bottom: 1px solid #e8ece5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 2;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a59c;
}
.search input {
  background: transparent;
  border: 0;
  width: 300px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.avatar {
  background: #e3eee5;
  color: #297353;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.muted {
  color: #809087;
  font-size: 13px;
}
.content {
  padding: 30px 34px;
  max-width: 1800px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
}
h2 {
  font-size: 16px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
h2 svg {
  color: #25876a;
}
p {
  line-height: 1.65;
}
.heading p {
  margin: 0;
  color: #809087;
  font-size: 14px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 23px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid #e9ede6;
  border-radius: 14px;
  box-shadow: 0 4px 20px #233f2d04;
}
.card {
  padding: 23px 20px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #6c7d73;
}
.bubble {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: #e9f5ed;
  border-radius: 10px;
  color: #20845f;
}
.bubble.red {
  background: #fff0ec;
  color: #d77b65;
}
.value {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.7px;
  margin: 16px 0 8px;
  color: #1c7357;
}
.value.red {
  color: #c66c57;
}
.card small {
  color: #8b9b91;
  font-size: 11px;
}
.grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  margin-bottom: 23px;
}
.panel {
  padding: 23px;
  min-width: 0;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
  gap: 10px;
}
.eyebrow {
  font-size: 11px;
  color: #a3afa6;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.chart {
  width: 100%;
  height: 220px;
  overflow: visible;
}
.chart text {
  font-size: 10px;
  fill: #8a9b91;
}
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 220px;
}
.donut {
  width: 155px;
  height: 155px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.donut-hole {
  background: white;
  border-radius: 50%;
  height: 117px;
  width: 117px;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
.donut-hole small {
  font-weight: 400;
  font-size: 11px;
  color: #8b9b91;
  margin-top: 5px;
}
.legend {
  flex: 1;
  display: grid;
  gap: 14px;
  font-size: 12px;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  height: 9px;
  width: 9px;
  border-radius: 50%;
}
.legend-row strong {
  margin-left: auto;
  font-size: 11px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  font-weight: 500;
  color: #8b9b91;
  font-size: 11px;
  padding: 12px 10px;
  border-bottom: 1px solid #e9ede6;
}
td {
  padding: 15px 10px;
  border-bottom: 1px solid #f0f3ed;
}
td:last-child,
th:last-child {
  text-align: right;
}
.table-wrap {
  overflow: auto;
}
.badge {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 20px;
  background: #edf5ef;
  color: #3b8563;
  white-space: nowrap;
}
.badge.pending {
  color: #b27b2f;
  background: #fff5df;
}
.positive {
  color: #21805e;
  font-weight: 600;
}
.negative {
  color: #c96c57;
  font-weight: 600;
}
.empty {
  text-align: center;
  color: #899a8f;
  padding: 42px 16px;
  font-size: 14px;
}
.bill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f3ed;
  font-size: 13px;
}
.bill-date {
  background: #f2f5ef;
  padding: 9px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  min-width: 43px;
}
.bill-info {
  flex: 1;
}
.bill button {
  padding: 7px 12px;
  font-size: 11px;
}
.insight {
  margin-top: 23px;
  padding: 20px 23px;
  background: #eaf2e9;
  border: 1px solid #dfeadc;
  border-radius: 12px;
  display: flex;
  gap: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #416450;
}
.insight svg {
  color: #438a56;
  flex-shrink: 0;
}
.insight strong {
  display: block;
  color: #28563d;
  margin-bottom: 3px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 12px;
  color: #83978b;
}
.actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.actions button {
  padding: 6px 9px;
  font-size: 12px;
}
.goal {
  padding: 22px;
  border: 1px solid #e5ebe1;
  border-radius: 12px;
  margin-bottom: 16px;
}
.progress {
  height: 8px;
  background: #edf2e9;
  border-radius: 20px;
  margin: 15px 0;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: #339772;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 29px;
  width: min(600px, 94vw);
  max-height: 90vh;
  color: #243d32;
  box-shadow: 0 25px 90px #102f3f40;
}
dialog::backdrop {
  background: #183c3266;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-bottom: 24px;
  font-size: 21px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  background: linear-gradient(150deg, #154c3d, #248467);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12%;
}
.auth-art h1 {
  font-size: 48px;
  line-height: 1.15;
  margin-top: 50px;
  max-width: 400px;
}
.auth-art p {
  color: #c3dfd1;
  max-width: 380px;
}
.auth-form {
  display: grid;
  place-content: center;
  padding: 35px;
}
.auth-form form {
  display: grid;
  gap: 17px;
  width: min(370px, 85vw);
}
.auth-form h1 {
  margin-bottom: 6px;
}
.auth-form .muted {
  margin: 0 0 15px;
}
.auth-form button {
  padding: 14px;
}
#toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10;
  background: #1b4939;
  color: white;
  max-width: 400px;
  border-radius: 10px;
  padding: 16px 23px;
  box-shadow: 0 10px 40px #0002;
  display: none;
}
.settings-section {
  max-width: 850px;
  margin-bottom: 22px;
}
.settings-section h2 {
  margin-bottom: 23px;
}
.hint {
  font-size: 12px;
  color: #7a8e80;
  line-height: 1.7;
}
.mobile-menu {
  display: none;
}
.annual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.logout {
  padding: 7px;
  background: transparent;
  color: #5d7769;
}
.small-link {
  font-size: 12px;
  font-weight: 600;
  color: #267b5d;
  background: none;
  padding: 0;
}
.report-card {
  padding: 25px;
  background: #f6f8f2;
  border-radius: 12px;
}
.report-card h3 {
  margin-top: 0;
  font-size: 17px;
}
@media (min-width: 1500px) {
  .content {
    padding: 38px 44px;
  }
  .card {
    padding: 28px;
  }
  .chart {
    height: 250px;
  }
}
@media (max-width: 1150px) {
  aside {
    width: 200px;
  }
  main {
    margin-left: 200px;
  }
  .content {
    padding: 25px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 25px;
  }
  .donut-wrap {
    justify-content: center;
  }
  .legend {
    max-width: 350px;
  }
  .search input {
    width: 220px;
  }
}
@media (max-width: 700px) {
  aside {
    width: 70px;
    padding: 23px 8px;
  }
  .brand {
    padding: 0;
    justify-content: center;
  }
  .brand span,
  .tagline,
  nav button span,
  .sidebar-bottom {
    display: none;
  }
  nav button {
    padding: 13px;
    justify-content: center;
  }
  nav {
    margin-top: 30px;
  }
  main {
    margin-left: 70px;
  }
  header {
    height: 70px;
    padding: 0 14px;
  }
  .search {
    display: none;
  }
  .content {
    padding: 20px 14px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 24px;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 15px 12px;
  }
  .value {
    font-size: 22px;
  }
  .panel {
    padding: 17px;
  }
  .donut-wrap {
    gap: 15px;
  }
  .donut {
    width: 125px;
    height: 125px;
  }
  .donut-hole {
    width: 94px;
    height: 94px;
    font-size: 14px;
  }
  .legend {
    font-size: 10px;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-art {
    display: none;
  }
  .form-grid,
  .annual {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .profile .muted {
    display: none;
  }
}

/* Acesso e cadastro */
.password-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.password-field > label {
  font-size: 13px;
  color: #587067;
}
.password-control {
  position: relative;
  min-width: 0;
}
.password-control input {
  width: 100%;
  padding-right: 52px;
}
.password-control .password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  color: #6b8376;
  box-shadow: none;
}
.password-toggle:hover {
  background: #edf4ef;
  color: #155542;
}
.password-toggle .icon {
  width: 20px;
  height: 20px;
}
.auth-modern {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 100svh;
  background: #f4f7f2;
}
.auth-modern > * {
  min-width: 0;
}
.auth-modern .auth-art {
  display: flex;
  justify-content: space-between;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px clamp(30px, 4.5vw, 88px);
  background:
    radial-gradient(ellipse at 0% 85%, #26745b55, transparent 60%),
    linear-gradient(145deg, #143f33, #165440 60%, #24654c);
}
.auth-modern .auth-art:after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  right: -420px;
  top: 20%;
  border: 1px solid #a4e0ba15;
  border-radius: 50%;
  box-shadow:
    0 0 0 70px #a4e0ba08,
    0 0 0 140px #a4e0ba04;
  z-index: -1;
}
.auth-modern .brand {
  padding: 0;
  font-size: 30px;
  gap: 13px;
  letter-spacing: -1.2px;
}
.auth-modern .brand svg {
  width: 42px;
  height: 42px;
}
.auth-modern .brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 400;
  margin-top: 5px;
  color: #c1d7c9;
}
.auth-story {
  padding: 55px 0 40px;
  max-width: 520px;
}
.auth-kicker {
  font-size: 10px;
  letter-spacing: 2px;
  color: #afd4bb;
  font-weight: 600;
}
.auth-modern .auth-art h1 {
  font-size: clamp(34px, 3.5vw, 60px);
  line-height: 1.15;
  letter-spacing: -2px;
  margin: 22px 0;
  max-width: none;
  font-weight: 650;
}
.auth-modern .auth-art h1 em {
  font-style: normal;
  color: #b3dfbc;
}
.auth-modern .auth-art p {
  font-size: 15px;
  line-height: 1.8;
  color: #c0d5c7;
  margin: 0;
  max-width: 375px;
}
.auth-visual {
  background: linear-gradient(125deg, #ffffff12, #ffffff05);
  border: 1px solid #e0f0e12b;
  border-radius: 19px;
  padding: 22px 24px;
  margin-top: 35px;
  box-shadow: 0 18px 45px #09271e18;
}
.auth-visual-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #e0eee0;
}
.auth-visual-top > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.auth-visual-top .icon {
  width: 18px;
  height: 18px;
  color: #b3dfbc;
}
.auth-spark {
  font-size: 23px;
  color: #c1e0a1;
}
.auth-line {
  width: 100%;
  height: 85px;
  margin: 20px 0 10px;
  overflow: visible;
}
.auth-visual-bottom {
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: #c1d7c9;
}
.auth-visual-bottom strong {
  font-size: 14px;
  color: #edf6e8;
  font-weight: 500;
}
.auth-benefits {
  display: flex;
  gap: 25px;
  margin-top: 28px;
  color: #d3e4d7;
  font-size: 11px;
}
.auth-benefits span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.auth-benefits .icon {
  width: 17px;
  height: 17px;
  color: #9bd0ad;
}
.auth-art-footer {
  color: #a6c7b3;
  font-size: 11px;
  line-height: 1.7;
}
.auth-modern .auth-form {
  padding: 45px clamp(24px, 5vw, 95px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 90% 0, #e4eddd75, transparent 55%);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  border: 1px solid #e1e8df;
  background: #ffffffed;
  padding: 38px 38px 25px;
  border-radius: 24px;
  box-shadow: 0 12px 60px #1c4b3210;
}
.auth-form-kicker {
  color: #6e8f76;
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 650;
}
.auth-modern .auth-form h1 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 14px 0 12px;
  color: #173f31;
}
.auth-intro {
  font-size: 13px;
  color: #73877a;
  margin: 0 0 28px;
  line-height: 1.7;
}
.auth-modern .auth-form form {
  display: grid;
  gap: 18px;
  width: 100%;
}
.auth-modern .auth-form label,
.auth-modern .password-field > label {
  color: #405f4e;
  font-size: 12px;
  font-weight: 550;
  gap: 9px;
}
.auth-modern .auth-form input {
  background: #fafcf9;
  border-color: #dde6db;
  padding: 14px;
  font-size: 14px;
  min-height: 48px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.auth-modern .auth-form input:focus {
  outline: none;
  border-color: #438a65;
  box-shadow: 0 0 0 3px #438a6515;
}
.auth-modern .password-control input {
  padding-right: 53px;
}
.auth-modern .auth-form .password-toggle {
  padding: 8px;
  min-height: 0;
}
.auth-modern .auth-form .auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: #1b6a4c;
  border-radius: 10px;
  padding: 15px;
  margin-top: 5px;
  font-size: 14px;
  box-shadow: 0 5px 14px #1b6a4c1c;
}
.auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}
.auth-submit .icon {
  width: 18px;
  height: 18px;
}
.auth-divider {
  position: relative;
  margin: 27px 0 17px;
  text-align: center;
  border-top: 1px solid #e7ece4;
  line-height: 0;
}
.auth-divider span {
  background: white;
  color: #87978a;
  font-size: 11px;
  padding: 0 12px;
}
.auth-modern .auth-form .auth-switch {
  width: 100%;
  background: transparent;
  border: 1px solid #d8e4d7;
  color: #286144;
  font-size: 13px;
  padding: 13px;
  border-radius: 10px;
  font-weight: 600;
}
.auth-private {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: #859587;
  font-size: 10px;
  margin-top: 26px;
}
.auth-private .icon {
  width: 14px;
  height: 14px;
}
.auth-caption {
  font-size: 11px;
  color: #8b9a8b;
  margin: 22px 0 0;
  text-align: center;
}
.auth-password-hint {
  font-size: 11px;
  color: #7e907e;
  margin: -9px 0 0;
}
.auth-error {
  font-size: 12px;
  color: #9b4334;
  background: #fff1ed;
  border: 1px solid #f3d6ce;
  padding: 11px 13px;
  border-radius: 8px;
  margin: 0;
  line-height: 1.6;
}
.auth-error[hidden] {
  display: none;
}
.auth-mobile-brand {
  display: none;
}
@media (max-width: 1000px) {
  .auth-modern .auth-art {
    padding: 35px 28px;
  }
  .auth-modern .auth-form {
    padding: 35px 24px;
  }
  .auth-card {
    padding: 30px 25px 23px;
  }
  .auth-benefits {
    gap: 14px;
    flex-wrap: wrap;
  }
  .auth-modern .auth-art h1 {
    font-size: 38px;
    letter-spacing: -1.2px;
  }
}
@media (max-width: 700px) {
  .auth-modern {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }
  .auth-modern .auth-art {
    display: none;
  }
  .auth-modern .auth-form {
    min-height: 100svh;
    padding: 30px 20px 65px;
    background: radial-gradient(ellipse at 0 0, #dfedda, transparent 65%);
  }
  .auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: #1b573d;
    font-size: 25px;
    letter-spacing: -1px;
  }
  .auth-mobile-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .auth-card {
    max-width: 430px;
    padding: 30px 25px 23px;
    border-radius: 20px;
  }
  .auth-modern .auth-form h1 {
    font-size: 28px;
  }
  .auth-modern .auth-form input {
    font-size: 16px;
  }
  .auth-caption {
    font-size: 10px;
  }
  .auth-modern .auth-form .auth-switch {
    font-size: 12px;
  }
  .auth-private {
    line-height: 1.5;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-modern .auth-form input {
    transition: none;
  }
}
.auth-line path:first-child {
  stroke-dasharray: 500;
  animation: chart-reveal 8s ease-in-out infinite;
}
.auth-visual .auth-spark {
  animation: chart-spark 4s ease-in-out infinite;
}
@keyframes chart-reveal {
  0% {
    stroke-dashoffset: 500;
    opacity: 0.3;
  }
  40%,
  88% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.3;
  }
}
@keyframes chart-spark {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.18) rotate(12deg);
    opacity: 1;
  }
}
.access-setup {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #edf4ef;
}
.access-setup > .panel {
  width: min(100%, 470px);
}
.access-setup form {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}
dialog p {
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  .auth-line path:first-child,
  .auth-visual .auth-spark {
    animation: none;
    stroke-dashoffset: 0;
  }
}
@media (max-width: 700px) {
  body:has(.auth-modern) .install-app:not([hidden]) {
    position: static;
    display: block;
    margin: 0 auto 24px;
  }
  .auth-modern .auth-form {
    padding-bottom: 32px;
  }
}

/* Navegação agrupada e ações de acesso no cabeçalho. */
#install-slot {
  display: flex;
  align-items: center;
}
#auth-install-slot {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px;
}
.install-app .icon {
  width: 18px;
  height: 18px;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#sidebar {
  padding: 22px 12px;
}
#sidebar .brand {
  font-size: 26px;
  gap: 9px;
  padding: 0 9px;
}
#sidebar .brand svg {
  width: 31px;
  height: 31px;
}
#sidebar .tagline {
  padding-left: 49px;
  font-size: 11px;
}
#sidebar nav {
  margin-top: 25px;
  gap: 5px;
}
#sidebar nav button {
  width: 100%;
  min-height: 40px;
  gap: 9px;
  padding: 6px 9px;
  font-size: 12px;
  border-radius: 9px;
  justify-content: flex-start;
}
#sidebar nav button:hover {
  background: #ffffff12;
}
#sidebar nav button:focus-visible {
  outline: 2px solid #c5ebce;
  outline-offset: 2px;
}
#sidebar nav .nav-item.active {
  background: #377b62;
  color: #fff;
  box-shadow: inset 3px 0 #a2e3ba;
}
#sidebar .nav-group-toggle {
  font-weight: 650;
  color: #e8f1ec;
}
#sidebar .nav-group-toggle.has-active {
  color: #c0edcf;
}
#sidebar .nav-group-label {
  flex: 1;
  text-align: left;
}
#sidebar .nav-chevron {
  margin-left: auto;
  display: flex;
}
#sidebar .nav-chevron svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}
#sidebar [aria-expanded="true"] .nav-chevron svg {
  transform: rotate(180deg);
}
#sidebar .nav-submenu {
  display: grid;
  margin: 3px 0 6px 22px;
  padding-left: 8px;
  border-left: 1px solid #ffffff24;
  gap: 2px;
}
#sidebar .nav-submenu[hidden] {
  display: none;
}
#sidebar .nav-submenu .nav-item {
  min-height: 34px;
  font-size: 11.5px;
  padding: 4px 8px;
}
.nav-icon {
  --nav-color: #99e2bb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #ffffff0d;
  color: var(--nav-color);
}
.nav-icon svg.icon {
  width: 17px;
  height: 17px;
}
.tone-expense {
  --nav-color: #ffab99;
}
.tone-accounts,
.tone-budgets,
.tone-backup {
  --nav-color: #96cfff;
}
.tone-cards,
.tone-family,
.group-family {
  --nav-color: #d3b9ff;
}
.tone-recurring,
.tone-goals,
.group-planning,
.group-admin {
  --nav-color: #f4d382;
}
.tone-imports,
.group-organize {
  --nav-color: #8fe1e4;
}
.tone-categories {
  --nav-color: #f4b8d2;
}
.tone-history,
.tone-settings {
  --nav-color: #c6d6e6;
}
#sidebar .sidebar-bottom {
  padding: 16px 10px 0;
  margin-top: auto;
  font-size: 11px;
  line-height: 1.5;
}
#sidebar .sidebar-bottom svg {
  width: 25px;
  height: 25px;
  margin-bottom: 7px;
}
#sidebar .sidebar-bottom .eyebrow {
  display: none;
}
header {
  gap: 12px;
}
.search {
  min-width: 0;
  flex: 1;
}
.search input {
  width: 100%;
  min-width: 0;
}
.profile {
  flex-shrink: 0;
  gap: 10px;
}
.profile-meta {
  max-width: 155px;
}
.profile-meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-menu-button {
  display: none;
}
.nav-backdrop[hidden] {
  display: none;
}
@media (max-width: 1150px) and (min-width: 701px) {
  #sidebar nav button {
    font-size: 11px;
    padding-inline: 5px;
    gap: 6px;
  }
  #sidebar .nav-submenu {
    margin-left: 16px;
    padding-left: 5px;
  }
  #sidebar .nav-submenu .nav-item {
    font-size: 10.5px;
    padding-inline: 5px;
  }
  .profile-meta {
    max-width: 110px;
  }
  header {
    padding-inline: 18px;
  }
}
@media (max-width: 700px) {
  #sidebar {
    width: min(280px, 85vw);
    padding: 22px 12px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 20;
    box-shadow: 12px 0 40px #102f3f24;
  }
  #sidebar.is-open {
    transform: translateX(0);
  }
  #sidebar .brand {
    justify-content: flex-start;
  }
  #sidebar .brand span,
  #sidebar .tagline {
    display: block;
  }
  #sidebar nav button span {
    display: inline-flex;
  }
  #sidebar nav .nav-group-label {
    display: block;
  }
  #sidebar nav button {
    min-height: 44px;
  }
  #sidebar .nav-submenu .nav-item {
    min-height: 40px;
    font-size: 12px;
  }
  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: #edf4ee;
    color: #205a46;
    flex-shrink: 0;
  }
  #close-menu {
    background: #ffffff12;
    color: #d7e6df;
  }
  .nav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: #102b2459;
    z-index: 19;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  main {
    margin-left: 0;
  }
  header {
    justify-content: space-between;
    padding: 0 12px;
    gap: 8px;
  }
  .profile {
    gap: 8px;
    min-width: 0;
  }
  .profile-meta {
    max-width: 90px;
    font-size: 11px;
  }
  .profile .avatar {
    display: none;
  }
  #install-slot .install-app {
    padding: 9px;
    min-width: 40px;
    min-height: 40px;
  }
  #install-slot .install-app span {
    display: none;
  }
  .logout {
    min-width: 40px;
    min-height: 40px;
  }
  body:has(#sidebar.is-open) {
    overflow: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  #sidebar,
  #sidebar .nav-chevron svg {
    transition: none;
  }
}
.analysis-filters { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; align-items:end; margin:24px 0 14px; }
.analysis-filters label { min-width:0; }
.analysis-presets { flex-wrap:wrap; margin-bottom:12px; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin:24px 0; }
.stat { background:white; border:1px solid #e2e9e2; border-radius:20px; padding:22px; display:flex; flex-direction:column; gap:14px; }
.stat strong { font-size:26px; color:#168161; overflow-wrap:anywhere; }
.stat small { color:#60766b; line-height:1.5; }
.analysis-chart { display:flex; height:290px; gap:18px; overflow-x:auto; padding:32px 12px 10px; margin-bottom:24px; border-bottom:1px solid #d8e4dd; }
.analysis-month { flex:1 0 76px; text-align:center; }
.analysis-bars { display:flex; height:215px; align-items:flex-end; justify-content:center; gap:5px; border-bottom:1px solid #c9d8ce; }
.analysis-bar { width:30px; position:relative; min-height:1px; border-radius:5px 5px 0 0; }
.analysis-bar.income { background:#22866b; }
.analysis-bar.expense { background:#e78264; }
.analysis-bar span { display:none; }
.analysis-month small { display:block; padding-top:10px; white-space:nowrap; }
.analysis-legend { display:flex; gap:20px; margin-top:18px; flex-wrap:wrap; }
.analysis-legend .income { color:#168161; }
.analysis-legend .expense { color:#b94f34; }
.tone-comparison, .tone-reports, .group-analysis { color:#9ac8fb; }
@media(max-width:900px) { .stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:500px) { .stats { grid-template-columns:1fr; } .analysis-filters { grid-template-columns:1fr; } }
@media print {
  #sidebar, header, .nav-backdrop, .analysis-filters, .analysis-presets, .grid-controls, .grid-footer, #print-analysis, #analysis-result .toolbar { display:none!important; }
  #analysis-result [data-analysis-row][hidden] { display:table-row!important; }
  #analysis-result .empty { display:none!important; }
  main { margin:0!important; }
  #view { padding:0!important; }
  .stats { grid-template-columns:repeat(2,1fr); }
  .panel, .stat { box-shadow:none; break-inside:avoid; }
  .analysis-chart { overflow:visible; height:auto; flex-wrap:wrap; print-color-adjust:exact; }
  .analysis-month { flex:0 0 80px; }
  .table-wrap { overflow:visible; }
}
