.dashboard-app,
.dashboard-page {
  --auth-bg: #06090a;
  --auth-bg-soft: #0b1010;
  --auth-bg-panel: #101a12;
  --auth-border: #1c2e20;
  --auth-accent: #00f080;
  --auth-accent-soft: rgba(0, 240, 128, 0.1);
  --auth-accent-glow: rgba(0, 240, 128, 0.2);
  --auth-text: #dff0e4;
  --auth-text-muted: #6b9478;
  --auth-text-soft: #3d5e47;
  --auth-danger: #ff5a5a;
}

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

.dashboard-app {
  background: var(--auth-bg);
  color: var(--auth-text);
  display: grid;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  grid-template-columns: 17rem minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
}

.dashboard-sidebar {
  background: #07100b;
  border-right: 1px solid var(--auth-border);
  display: grid;
  grid-template-rows: auto auto 1fr;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 1rem;
}

.dashboard-sidebar__brand {
  color: var(--auth-text);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 1.45rem;
  font-stretch: condensed;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-sidebar__nav {
  align-content: start;
  display: grid;
  gap: 0.3rem;
  margin-top: 1.5rem;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 1rem;
}

.dashboard-sidebar__link,
.dashboard-mobile-nav__panel a {
  align-items: center;
  border-radius: 0.65rem;
  color: var(--auth-text-muted);
  display: flex;
  gap: 0.65rem;
  font-size: 0.84rem;
  font-weight: 800;
  min-height: 2.4rem;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
}

.dashboard-sidebar__icon {
  align-items: center;
  background: rgba(223, 240, 228, 0.06);
  border: 1px solid rgba(223, 240, 228, 0.1);
  border-radius: 0.45rem;
  color: var(--auth-text);
  display: inline-flex;
  flex: 0 0 auto;
  height: 1.45rem;
  justify-content: center;
  line-height: 1;
  width: 1.45rem;
}

.dashboard-sidebar__icon svg,
.dashboard-mobile-nav__panel a svg {
  height: 1rem;
  stroke-width: 2.1;
  width: 1rem;
}

.dashboard-mobile-nav__panel a svg {
  flex: 0 0 auto;
}

.dashboard-sidebar__link:hover,
.dashboard-sidebar__link.is-active,
.dashboard-mobile-nav__panel a:hover {
  background: rgba(0, 240, 128, 0.08);
  color: var(--auth-text);
}

.dashboard-sidebar__link.is-active .dashboard-sidebar__icon {
  background: var(--auth-accent);
  border-color: var(--auth-accent);
  color: #06100a;
}

.dashboard-sidebar__account {
  align-self: end;
  border-top: 1px solid var(--auth-border);
  display: grid;
  gap: 0.5rem;
  min-height: 0;
  padding-top: 1rem;
}

.dashboard-sidebar__account span {
  color: var(--auth-text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-sidebar__account strong {
  color: var(--auth-text);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.dashboard-sidebar__signout {
  background: rgba(223, 240, 228, 0.06);
  border: 1px solid rgba(223, 240, 228, 0.14);
  border-radius: 999px;
  color: var(--auth-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.7rem 0.85rem;
  width: 100%;
}

.dashboard-mobile-nav {
  display: none;
}

.dashboard-main {
  height: 100dvh;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  padding: 2rem;
  scrollbar-gutter: stable;
}

.dashboard-page {
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
}

.dashboard-page__shell {
  margin: 0 auto;
  max-width: 88rem;
}

.dashboard-page__header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.dashboard-page__eyebrow {
  color: var(--auth-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.dashboard-page__title {
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 2rem;
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0.35rem 0 0;
}

.dashboard-page__account {
  color: var(--auth-text-muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}

.dashboard-page__signout {
  max-width: 8rem;
}

.dashboard-period,
.summary-card,
.transaction-panel,
.dashboard-panel {
  background: var(--auth-bg-panel);
  border: 1px solid var(--auth-border);
  border-radius: 1rem;
}

.dashboard-period {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 8rem minmax(0, 1fr) 8rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  text-align: center;
}

.dashboard-period__label {
  color: var(--auth-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.dashboard-period h2,
.transaction-panel h2 {
  color: var(--auth-text);
  font-size: 1.15rem;
  letter-spacing: 0;
  margin: 0;
}

.dashboard-period__link {
  background: rgba(223, 240, 228, 0.06);
  border: 1px solid rgba(223, 240, 228, 0.14);
  border-radius: 999px;
  color: var(--auth-text);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
}

.summary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(13rem, 1.35fr) repeat(3, minmax(11rem, 1fr));
  margin-top: 1.25rem;
}

.summary-card {
  display: grid;
  gap: 0.45rem;
  min-height: 5.5rem;
  padding: 1rem;
}

.summary-card--hero {
  background: linear-gradient(135deg, rgba(0, 240, 128, 0.13), var(--auth-bg-panel) 65%);
}

.summary-card__label {
  color: var(--auth-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.summary-card__value {
  color: var(--auth-text);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 800;
}

.summary-card__value--income,
.is-income {
  color: var(--auth-accent);
}

.summary-card__value--expense,
.is-expense {
  color: var(--auth-danger);
}

.dashboard-layout,
.dashboard-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 24rem);
  margin-top: 1rem;
}

.dashboard-grid--analytics {
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
}

.dashboard-columns {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  margin-top: 1rem;
}

.dashboard-column {
  display: grid;
  gap: 1rem;
}

.transaction-panel,
.dashboard-panel {
  padding: 1.25rem;
}

.dashboard-panel--wide {
  min-height: 20rem;
}

.cashflow-chart {
  display: grid;
  gap: 0.85rem;
}

.cashflow-radial {
  align-items: center;
  display: grid;
  justify-content: center;
  margin: 0.25rem 0 1rem;
  position: relative;
}

.cashflow-radial svg {
  height: 9rem;
  transform: rotate(-90deg);
  width: 9rem;
}

.cashflow-radial circle {
  fill: none;
  stroke-linecap: round;
  stroke-width: 0.75rem;
}

.cashflow-radial__track {
  stroke: rgba(223, 240, 228, 0.08);
}

.cashflow-radial__value {
  stroke: var(--auth-accent);
  stroke-dasharray: 301.6;
  animation: cashflow-draw 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes cashflow-draw {
  from {
    stroke-dashoffset: 301.6;
  }
  to {
    stroke-dashoffset: var(--cashflow-offset, 301.6px);
  }
}

.cashflow-radial__label {
  display: grid;
  inset: 0;
  place-content: center;
  position: absolute;
  text-align: center;
}

.cashflow-radial__label strong {
  color: var(--auth-text);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 1.75rem;
  font-stretch: condensed;
  font-weight: 800;
  line-height: 1;
}

.cashflow-radial__label span {
  color: var(--auth-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  text-transform: uppercase;
}

.cashflow-chart__row {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 5rem minmax(0, 1fr) 8rem;
}

.cashflow-chart__row span {
  color: var(--auth-text-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.cashflow-chart__row b {
  color: var(--auth-text);
  text-align: right;
}

.cashflow-chart__bar {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(223, 240, 228, 0.08);
  border: 0;
  border-radius: 999px;
  height: 0.8rem;
  overflow: hidden;
  width: 100%;
}

.cashflow-chart__bar::-webkit-progress-bar {
  background-color: rgba(223, 240, 228, 0.08);
  border-radius: inherit;
}

.cashflow-chart__bar::-webkit-progress-value {
  border-radius: inherit;
}

.cashflow-chart__bar--income {
  accent-color: var(--auth-accent);
  color: var(--auth-accent);
}

progress[value].cashflow-chart__bar--income::-webkit-progress-value {
  background-color: var(--auth-accent) !important;
}

progress[value].cashflow-chart__bar--income::-moz-progress-bar {
  background-color: var(--auth-accent) !important;
}

.cashflow-chart__bar--expense {
  accent-color: #ff5a5a;
  color: #ff5a5a;
}

progress[value].cashflow-chart__bar--expense::-webkit-progress-value {
  background: #ff5a5a !important;
  background-color: #ff5a5a !important;
}

progress[value].cashflow-chart__bar--expense::-moz-progress-bar {
  background-color: #ff5a5a !important;
}

.report-list {
  display: grid;
  gap: 0.65rem;
}

.report-row {
  align-items: center;
  background: rgba(6, 9, 10, 0.38);
  border: 1px solid rgba(223, 240, 228, 0.08);
  border-radius: 0.75rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.8rem;
}

.report-row span {
  color: var(--auth-text-muted);
  overflow-wrap: anywhere;
}

.report-row strong {
  color: var(--auth-danger);
  flex: 0 0 auto;
}

.dashboard-panel__hint {
  color: var(--auth-text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0.35rem 0 0;
}

.evolution-chart {
  align-items: end;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 13rem;
}

.evolution-chart__item {
  align-items: center;
  display: grid;
  gap: 0.5rem;
}

.evolution-chart__bar {
  height: 9rem;
  width: 100%;
}

.evolution-chart__track {
  fill: rgba(223, 240, 228, 0.08);
}

.evolution-chart__value {
  animation: evolution-bar-rise 680ms ease-out both;
  transform-box: fill-box;
  transform-origin: center bottom;
  min-height: 0.35rem;
}

.evolution-chart__item:nth-child(2) .evolution-chart__value {
  animation-delay: 80ms;
}

.evolution-chart__item:nth-child(3) .evolution-chart__value {
  animation-delay: 160ms;
}

.evolution-chart__item:nth-child(4) .evolution-chart__value {
  animation-delay: 240ms;
}

.evolution-chart__item:nth-child(5) .evolution-chart__value {
  animation-delay: 320ms;
}

.evolution-chart__item:nth-child(6) .evolution-chart__value {
  animation-delay: 400ms;
}

@keyframes evolution-bar-rise {
  from {
    opacity: 0.45;
    transform: scaleY(0.08);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

.is-income-bg {
  background: var(--auth-accent);
  fill: var(--auth-accent);
}

.is-expense-bg {
  background: var(--auth-danger);
  fill: var(--auth-danger);
}

.evolution-chart__amount {
  font-size: 0.66rem;
  font-weight: 900;
  max-width: 4.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  white-space: nowrap;
}

.evolution-chart__item small {
  color: var(--auth-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.evolution-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.evolution-legend span {
  align-items: center;
  color: var(--auth-text-muted);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  gap: 0.35rem;
}

.evolution-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 0.55rem;
  width: 0.55rem;
}

@media (prefers-reduced-motion: reduce) {
  .evolution-chart__value {
    animation: none;
  }
}

.transaction-panel__header,
.dashboard-panel__header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dashboard-panel__metric {
  color: var(--auth-danger);
  font-size: 1rem;
  white-space: nowrap;
}

.planning-summary {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.8rem;
}

.planning-summary > div {
  background: rgba(6, 9, 10, 0.28);
  border: 1px solid rgba(223, 240, 228, 0.08);
  border-radius: 0.75rem;
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
}

.planning-summary span {
  color: var(--auth-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planning-summary strong {
  color: var(--auth-text);
  font-size: 1rem;
}

.planning-summary small {
  color: var(--auth-text-muted);
  line-height: 1.45;
}

.dashboard-panel__link {
  color: var(--auth-accent);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 1rem;
  text-decoration: none;
}

.transaction-list {
  display: grid;
  gap: 0.7rem;
}

.transaction-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(223, 240, 228, 0.08);
}

.transaction-pagination__link {
  background: rgba(223, 240, 228, 0.06);
  border: 1px solid rgba(223, 240, 228, 0.14);
  border-radius: 999px;
  color: var(--auth-text);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.transaction-pagination__link:hover {
  background: rgba(0, 240, 128, 0.1);
  border-color: rgba(0, 240, 128, 0.34);
}

.transaction-pagination__link.is-disabled {
  color: var(--auth-text-soft);
  cursor: default;
  opacity: 0.55;
}

.transaction-pagination__info {
  color: var(--auth-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

turbo-frame[id^="transaction_"],
turbo-frame[id^="recurring_bill_"],
turbo-frame[id^="goal_"] {
  display: block;
}

.inline-edit-row {
  background: rgba(6, 9, 10, 0.38);
  border: 1px solid rgba(223, 240, 228, 0.1);
  border-radius: 0.75rem;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.inline-edit-row .dashboard-panel__header {
  margin-bottom: 0;
}

.inline-actions {
  align-items: center;
  display: flex;
  gap: 0.85rem;
}

.transaction-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.transaction-actions__link,
.transaction-actions__danger {
  background: rgba(223, 240, 228, 0.06);
  border: 1px solid rgba(223, 240, 228, 0.14);
  border-radius: 999px;
  color: var(--auth-text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

.transaction-actions__link.is-active {
  background: var(--auth-accent);
  color: #06090a;
}

.transaction-actions__danger {
  color: var(--auth-danger);
}

.transaction-row {
  align-items: center;
  background: rgba(6, 9, 10, 0.38);
  border: 1px solid rgba(223, 240, 228, 0.08);
  border-radius: 0.75rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem;
}

.transaction-row__main {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.transaction-row__main strong,
.transaction-row__main small {
  overflow-wrap: anywhere;
}

.transaction-row__main small,
.transaction-panel__empty,
.dashboard-panel__empty {
  color: var(--auth-text-muted);
}

.transaction-row__kind {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transaction-row__kind--income {
  color: var(--auth-accent);
}

.transaction-row__kind--expense {
  color: var(--auth-danger);
}

.transaction-row__amount {
  align-items: flex-end;
  display: grid;
  flex: 0 0 auto;
  font-weight: 800;
  gap: 0.35rem;
  justify-items: end;
}

.transaction-row__delete {
  background: transparent;
  border: 0;
  color: var(--auth-text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  padding: 0;
}

.goal-row {
  background: rgba(6, 9, 10, 0.38);
  border: 1px solid rgba(223, 240, 228, 0.08);
  border-radius: 0.75rem;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

.goal-row__header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.goal-row__header span {
  color: var(--auth-accent);
  font-weight: 900;
}

.goal-row__bar {
  appearance: none;
  background: rgba(223, 240, 228, 0.08);
  border: 0;
  border-radius: 999px;
  height: 0.65rem;
  overflow: hidden;
  width: 100%;
}

.goal-row__bar::-webkit-progress-bar {
  background: rgba(223, 240, 228, 0.08);
  border-radius: 999px;
}

.goal-row__bar::-webkit-progress-value {
  background: var(--auth-accent);
  border-radius: 999px;
}

.goal-row__bar::-moz-progress-bar {
  background: var(--auth-accent);
  border-radius: 999px;
}

.goal-row p {
  color: var(--auth-text-muted);
  line-height: 1.55;
  margin: 0;
}

.transaction-form {
  display: grid;
  gap: 0.85rem;
}

.transaction-form__group {
  display: grid;
  gap: 0.35rem;
}

.transaction-form__group label {
  color: var(--auth-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transaction-form__input {
  background: rgba(6, 9, 10, 0.46);
  border: 1px solid var(--auth-border);
  border-radius: 0.65rem;
  box-sizing: border-box;
  color: var(--auth-text);
  font: inherit;
  padding: 0.8rem 0.9rem;
  width: 100%;
}

.category-combobox {
  position: relative;
}

.category-combobox__input {
  padding-right: 2.5rem;
}

.category-combobox::after {
  color: var(--auth-text-muted);
  content: "⌄";
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  right: 0.9rem;
  top: 0.95rem;
}

.category-combobox__list {
  background: #07100b;
  border: 1px solid var(--auth-border);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 0.2rem;
  left: 0;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.35rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 20;
}

.category-combobox__list[hidden] {
  display: none;
}

.category-combobox__option {
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  color: var(--auth-text);
  cursor: pointer;
  font: inherit;
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.category-combobox__option:hover,
.category-combobox__option:focus {
  background: rgba(0, 240, 128, 0.1);
  outline: 0;
}

.category-combobox__option--create {
  color: var(--auth-accent);
  font-weight: 800;
}

.transaction-form__submit {
  background: var(--auth-accent);
  border: 0;
  border-radius: 999px;
  color: #06090a;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.9rem 1rem;
}

.statement-import {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.statement-import-banner {
  align-items: center;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  margin-top: 1.25rem;
}

.statement-import-banner__copy h2 {
  color: var(--auth-text);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0.35rem 0 0.5rem;
}

.statement-import-banner__copy .dashboard-panel__hint {
  margin: 0;
}

.statement-import--inline {
  align-items: center;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 0;
}

.statement-import--inline .statement-import__input {
  padding: 0.7rem 0.9rem;
}

.statement-import--inline input[type="submit"] {
  white-space: nowrap;
}

@media (max-width: 56rem) {
  .statement-import-banner {
    grid-template-columns: 1fr;
  }

  .statement-import--inline {
    grid-template-columns: 1fr;
  }
}

.statement-import__input {
  background: rgba(6, 9, 10, 0.46);
  border: 1px dashed rgba(0, 240, 128, 0.34);
  border-radius: 0.75rem;
  color: var(--auth-text-muted);
  cursor: pointer;
  font: inherit;
  padding: 1rem;
  width: 100%;
}

.statement-import__input::file-selector-button,
.statement-import__input::-webkit-file-upload-button {
  background: var(--auth-accent-soft);
  border: 1px solid rgba(0, 240, 128, 0.28);
  border-radius: 999px;
  color: var(--auth-accent);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-right: 0.85rem;
  padding: 0.45rem 0.9rem;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.statement-import__input:hover::file-selector-button,
.statement-import__input:hover::-webkit-file-upload-button {
  background: rgba(0, 240, 128, 0.18);
  border-color: rgba(0, 240, 128, 0.45);
}

.settings-grid {
  margin-top: 1rem;
}

.settings-status {
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0;
  padding: 0.85rem;
}

.settings-status--success {
  background: var(--auth-accent-soft);
  border: 1px solid rgba(0, 240, 128, 0.2);
  color: var(--auth-accent);
}

@media (max-width: 56rem) {
  .dashboard-app {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-mobile-nav {
    background: #07100b;
    border-bottom: 1px solid var(--auth-border);
    display: block;
    padding: 0.85rem 1rem;
    z-index: 10;
  }

  .dashboard-mobile-nav summary {
    align-items: center;
    color: var(--auth-text);
    cursor: pointer;
    display: flex;
    gap: 0.65rem;
    font-weight: 900;
    line-height: 1;
    list-style: none;
    min-height: 1.5rem;
  }

  .dashboard-mobile-nav__menu-icon {
    background:
      linear-gradient(currentcolor, currentcolor) 0 0 / 100% 0.12rem no-repeat,
      linear-gradient(currentcolor, currentcolor) 0 50% / 100% 0.12rem no-repeat,
      linear-gradient(currentcolor, currentcolor) 0 100% / 100% 0.12rem no-repeat;
    display: inline-block;
    flex: 0 0 auto;
    height: 0.8rem;
    width: 1.1rem;
  }

  .dashboard-mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .dashboard-mobile-nav__panel {
    display: grid;
    gap: 0.35rem;
    padding-top: 0.85rem;
  }

  .dashboard-main {
    height: auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
  }
}

@media (max-width: 40rem) {
  .dashboard-page__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-page__signout {
    max-width: none;
  }

  .dashboard-period,
  .dashboard-layout,
  .dashboard-grid,
  .dashboard-columns,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid > .dashboard-panel:not(.dashboard-panel--wide) {
    order: -1;
  }

  .dashboard-period {
    text-align: left;
  }

  .transaction-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .transaction-row__amount {
    align-items: flex-start;
    justify-items: start;
  }

  .cashflow-chart__row {
    grid-template-columns: 1fr;
  }

  .cashflow-chart__row b {
    text-align: left;
  }

  .evolution-chart {
    gap: 0.45rem;
    min-height: auto;
  }

  .evolution-chart__bar {
    height: 6.5rem;
  }

  .evolution-chart__amount {
    font-size: 0.58rem;
    max-width: 2.25rem;
  }

  .evolution-chart__item {
    gap: 0.35rem;
    min-width: 0;
  }

  .evolution-chart__item small {
    font-size: 0.62rem;
  }

  .evolution-legend {
    gap: 0.5rem;
  }

  .evolution-legend span {
    font-size: 0.68rem;
  }
}
