:root {
  --ink: #163a38;
  --muted: #8aa4a2;
  --line: rgba(148, 224, 213, 0.18);
  --paper: #061b2d;
  --surface: #f7fbfa;
  --surface-soft: #eef6f4;
  --green: #38d98b;
  --green-dark: #255b56;
  --blue: #1f6feb;
  --cyan: #46d5ff;
  --orange: #ff9b45;
  --red: #ef5c65;
  --violet: #836bff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --glow: 0 0 28px rgba(56, 217, 139, 0.3), 0 18px 70px rgba(31, 111, 235, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 217, 139, 0.22), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(70, 213, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #041525 0%, #06283c 46%, #03151f 100%);
  color: #edfdfa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 18px;
  overflow: auto;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 217, 139, 0.24), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(70, 213, 255, 0.2), transparent 26%),
    linear-gradient(135deg, #041525, #06283c 52%, #03151f);
}

.auth-card {
  display: grid;
  gap: 16px;
  width: min(560px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: clamp(18px, 3.4vw, 30px);
  border: 1px solid rgba(148, 224, 213, 0.2);
  border-radius: 8px;
  background: rgba(5, 31, 48, 0.82);
  box-shadow: var(--glow);
  backdrop-filter: blur(18px);
}

.auth-brand {
  color: #ffffff;
}

.auth-copy {
  max-width: 500px;
  margin: 10px 0 0;
  color: #b9d4d0;
  line-height: 1.45;
  font-size: 0.96rem;
}

.auth-form {
  display: grid;
  gap: 9px;
}

.auth-form input {
  min-height: 44px;
  border: 1px solid rgba(148, 224, 213, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(247, 251, 250, 0.96);
  color: var(--ink);
  outline: none;
}

.auth-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(56, 217, 139, 0.18);
}

.auth-form button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #05251f;
  font-weight: 950;
}

.auth-form .ghost-button {
  border: 1px solid rgba(46, 236, 176, 0.3);
  background: rgba(46, 236, 176, 0.08);
  color: #d9fff3;
}

.auth-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-form small {
  color: #b9d4d0;
}

.auth-card h1 {
  max-width: 520px;
  font-size: clamp(2rem, 5.6vw, 3.35rem);
}

.app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(2, 22, 35, 0.72);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
  color: #f4fff9;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #3cf19b, #43c7ff);
  color: #042034;
  font-weight: 950;
  box-shadow: 0 0 24px rgba(56, 217, 139, 0.45);
}

.brand strong,
.brand span {
  display: block;
  line-height: 1.05;
}

.brand span {
  color: #9fbfbd;
  font-size: 0.9rem;
}

.nav-list {
  display: grid;
  gap: 9px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d9ebe4;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(70, 213, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(3px);
}

.nav-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 999px;
  background: rgba(56, 217, 139, 0.16);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
}

.coach-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(70, 213, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--glow);
}

.coach-card span,
.coach-card small {
  display: block;
  color: #9fbfbd;
}

.coach-card strong {
  display: block;
  margin: 6px 0;
}

.mini-progress {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.content {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #74f3c1;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(2.1rem, 5vw, 4.35rem);
}

h2 {
  color: #ffffff;
  font-size: 1.22rem;
}

.top-actions,
.panel-header,
.slider-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(148, 224, 213, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-tab {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d9fff3;
  font-weight: 850;
}

.profile-tab.active {
  background: #f7fbfa;
  color: var(--ink);
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(56, 217, 139, 0.16);
  color: #bfffe1;
  font-size: 0.86rem;
  font-weight: 900;
}

.primary-button,
.ghost-button,
.segment,
select {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 17px;
  border: 1px solid rgba(148, 224, 213, 0.24);
  background: rgba(247, 251, 250, 0.96);
  color: var(--ink);
}

.primary-button,
.pill-button {
  border: 0;
  background: var(--green-dark);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(56, 217, 139, 0.26);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.08);
  color: #eafffb;
}

.ghost-button:hover,
.segment:hover,
select:hover {
  border-color: rgba(70, 213, 255, 0.6);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.quick-entry-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(420px, 1.6fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(148, 224, 213, 0.18);
  border-radius: 8px;
  background: rgba(5, 31, 48, 0.78);
  box-shadow: var(--glow);
  backdrop-filter: blur(18px);
}

.quick-entry-panel h2 {
  font-size: clamp(1.25rem, 2vw, 2rem);
}

.top-organizer {
  grid-template-columns: 1fr minmax(190px, 1fr) minmax(220px, 0.9fr) auto;
  align-items: center;
  margin: 0;
}

.top-organization {
  margin: 0;
}

.metric-card,
.panel {
  border: 1px solid rgba(148, 224, 213, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: rgba(247, 251, 250, 0.96);
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% 35%;
  height: 90px;
  border-radius: 999px;
  background: rgba(56, 217, 139, 0.18);
  filter: blur(18px);
}

.metric-card:hover,
.balance-card:hover,
.orbit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 34px rgba(56, 217, 139, 0.3), 0 24px 80px rgba(0, 0, 0, 0.34);
}

.metric-card span,
.metric-card small {
  position: relative;
  z-index: 1;
  display: block;
  color: #7b9290;
}

.metric-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 1.85rem;
}

.metric-card.danger strong {
  color: var(--red);
}

.metric-card.calm strong {
  color: var(--blue);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(310px, 0.82fr);
  gap: 14px;
  align-items: start;
}

.panel {
  min-width: 0;
  padding: 22px;
  background: rgba(5, 31, 48, 0.72);
  backdrop-filter: blur(18px);
}

.main-panel {
  min-height: 515px;
}

.side-panel {
  min-height: 260px;
}

.panel-header {
  margin-bottom: 18px;
}

.panel-header.compact {
  align-items: flex-start;
}

.segmented {
  display: flex;
  padding: 4px;
  border: 1px solid rgba(148, 224, 213, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.segment {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #d9fff3;
  font-size: 0.9rem;
}

.segment.active {
  background: #f7fbfa;
  color: var(--ink);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 22px;
  align-items: center;
}

.balance-card,
.orbit-card {
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--glow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.balance-card {
  display: grid;
  gap: 10px;
  padding: 26px;
}

.balance-card > span {
  color: #a7b9b7;
  font-weight: 800;
}

.balance-card strong {
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1;
}

.balance-card p {
  max-width: 320px;
  margin: 0;
  color: #7a9290;
  font-weight: 700;
}

.pill-button {
  width: 100%;
  min-height: 52px;
  margin: 8px 0 6px;
  border-radius: 999px;
}

.bank-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  text-align: center;
}

.bank-strip div {
  display: grid;
  gap: 7px;
  justify-items: center;
  color: #8aa4a2;
}

.bank-strip b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: #edf4f1;
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.bank-strip div:nth-child(1) b {
  background: #38d98b;
}

.bank-strip div:nth-child(2) b {
  background: #7d3cff;
}

.bank-strip div:nth-child(3) b {
  background: #ff981a;
}

.bank-strip div:nth-child(4) b {
  background: #ef3e46;
}

.bank-strip small {
  font-size: 0.76rem;
}

.orbit-card {
  position: relative;
  min-height: 390px;
  overflow: visible;
  isolation: isolate;
}

.orbit-card::before {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: -1;
  border-radius: 999px;
  background: rgba(56, 217, 139, 0.2);
  filter: blur(28px);
  animation: breathe 4.6s ease-in-out infinite;
}

.orbit-card canvas {
  position: absolute;
  inset: 0;
}

.orbit-center {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: min(210px, 42%);
  gap: 7px;
  place-items: center;
  transform: translate(-50%, -50%);
  text-align: center;
}

.orbit-center span {
  color: #7e9693;
  font-weight: 800;
}

.orbit-center strong {
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.orbit-center button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--green-dark);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
}

.orbit-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #053025;
  font-size: 0.75rem;
  font-weight: 950;
  box-shadow: 0 0 20px rgba(56, 217, 139, 0.6);
  animation: floatBadge 4s ease-in-out infinite;
}

.badge-one {
  left: 3%;
  top: 24%;
}

.badge-two {
  right: 9%;
  top: 10%;
  background: var(--orange);
  animation-delay: 600ms;
}

.badge-three {
  bottom: 12%;
  left: 21%;
  background: var(--violet);
  color: #ffffff;
  animation-delay: 1100ms;
}

.badge-four {
  right: 0;
  bottom: 27%;
  background: var(--cyan);
  animation-delay: 1600ms;
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.chart-wrap {
  position: relative;
  height: 360px;
}

.chart-wrap.tall {
  height: 410px;
}

canvas {
  width: 100%;
  height: 100%;
}

.action-list,
.debt-list,
.leak-items,
.timeline {
  display: grid;
  gap: 10px;
}

.action-row,
.debt-row,
.leak-row,
.timeline-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(18, 58, 55, 0.1);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.action-row span,
.leak-row span,
.debt-row span,
.timeline-step span,
.plain-text {
  color: #7f9694;
}

.action-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.result-box {
  margin-top: 16px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #123a37, #061d30);
  color: #ffffff;
  box-shadow: var(--glow);
}

.result-box span {
  display: block;
  color: #b7cac2;
}

.result-box strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
}

.goal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: center;
}

.goal-ring {
  position: relative;
  display: grid;
  min-height: 350px;
  place-items: center;
}

.goal-ring > div {
  position: absolute;
  display: grid;
  gap: 4px;
  color: #ffffff;
  text-align: center;
}

.goal-ring strong {
  font-size: 2.8rem;
}

.goal-ring span {
  color: #b9d4d0;
}

.slider-box {
  display: grid;
  gap: 16px;
  color: #ffffff;
}

.slider-box label {
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.slider-readout {
  padding: 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.slider-readout strong {
  font-size: 2rem;
}

.timeline-step {
  grid-template-columns: 1fr;
  border-left: 5px solid #cfdbd7;
}

.timeline-step.done {
  border-left-color: var(--green);
}

.timeline-step.active {
  border-left-color: var(--orange);
}

.debt-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.debt-row strong,
.leak-row strong {
  white-space: nowrap;
}

.debt-rate {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fce9df;
  color: #9b430f;
  font-size: 0.82rem;
  font-weight: 800;
}

.leak-row {
  grid-template-columns: 12px minmax(0, 1fr) auto;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wallet-card {
  display: grid;
  gap: 16px;
  min-height: 390px;
  padding: 20px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--glow);
}

.wallet-card > div:first-child span {
  display: block;
  color: #8aa4a2;
  font-weight: 850;
}

.wallet-card > div:first-child strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1;
}

.wallet-card.investments > div:first-child strong {
  color: var(--green-dark);
}

.wallet-card.expenses > div:first-child strong {
  color: var(--red);
}

.organizer-form,
.quick-form,
.bank-form {
  display: grid;
  gap: 10px;
}

.quick-form {
  grid-template-columns: minmax(0, 1.2fr) minmax(90px, 0.55fr) auto;
}

.organizer-form input,
.organizer-form select,
.quick-form input,
.bank-form input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(22, 58, 56, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  background: #edf5f2;
  color: var(--ink);
  outline: none;
}

.organizer-form input:focus,
.organizer-form select:focus,
.quick-form input:focus,
.bank-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(56, 217, 139, 0.18);
}

.quick-form button,
.bank-form button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--green-dark);
  color: #ffffff;
  font-weight: 900;
}

.organizer-form {
  margin-bottom: 14px;
}

.type-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.type-toggle label {
  cursor: pointer;
}

.type-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-toggle span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(148, 224, 213, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9fff3;
  font-weight: 900;
}

.type-toggle input:checked + span {
  background: #f7fbfa;
  color: var(--ink);
}

.form-split {
  display: grid;
  grid-template-columns: minmax(90px, 0.6fr) minmax(120px, 1fr);
  gap: 10px;
}

.organization-box {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(56, 217, 139, 0.2);
  border-radius: 8px;
  background: rgba(247, 251, 250, 0.96);
  color: var(--ink);
}

.organization-box span {
  color: #7f9694;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.organization-box strong {
  font-size: 1.15rem;
}

.organization-box p {
  margin: 0;
  color: #7f9694;
}

.divider-line {
  height: 1px;
  margin: 16px 0;
  background: rgba(148, 224, 213, 0.18);
}

.wallet-list,
.bank-list,
.transaction-list {
  display: grid;
  gap: 9px;
}

.empty-state {
  padding: 13px;
  border: 1px dashed rgba(138, 164, 162, 0.35);
  border-radius: 8px;
  background: rgba(238, 246, 244, 0.72);
  color: #7f9694;
  font-size: 0.9rem;
  font-weight: 750;
}

.wallet-item,
.bank-item,
.transaction-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid rgba(22, 58, 56, 0.1);
  border-radius: 8px;
  background: #eef6f4;
}

.wallet-item small,
.bank-item small,
.transaction-item small {
  display: block;
  margin-top: 3px;
  color: #7f9694;
  font-weight: 750;
}

.wallet-item strong,
.bank-item strong,
.transaction-item strong {
  white-space: nowrap;
}

.transaction-item.income strong {
  color: var(--green-dark);
}

.transaction-item.expense strong {
  color: var(--red);
}

.bank-form {
  margin-top: 16px;
}

.bank-list {
  margin-top: 14px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.account-card {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--glow);
}

.account-card span,
.account-card small {
  color: #7f9694;
  font-weight: 800;
}

.account-card strong {
  font-size: 1.2rem;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.export-box {
  width: 100%;
  min-height: 190px;
  margin-top: 14px;
  border: 1px solid rgba(148, 224, 213, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  resize: vertical;
}

.leak-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.hidden {
  display: none;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 14px;
  }

  .nav-list {
    display: flex;
    justify-content: flex-end;
    overflow-x: auto;
  }

  .coach-card {
    display: none;
  }

  .summary-grid,
  .workspace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-panel,
  .side-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .auth-screen {
    align-items: start;
  }

  .auth-card {
    width: 100%;
    max-height: none;
  }

  .content {
    padding: 18px;
  }

  .topbar,
  .top-actions,
  .panel-header,
  .goal-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-grid,
  .workspace,
  .goal-layout,
  .showcase-grid,
  .wallet-grid,
  .account-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .quick-entry-panel,
  .top-organizer {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    grid-template-columns: 1fr;
  }

  .nav-list {
    justify-content: start;
  }

  .nav-item {
    flex: 0 0 auto;
    padding-right: 12px;
  }

  .nav-item span:last-child {
    display: none;
  }

  h1 {
    font-size: 2.35rem;
  }

  .orbit-card {
    min-height: 340px;
  }

  .chart-wrap,
  .chart-wrap.tall {
    height: 310px;
  }

  .bank-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
