:root {
  color-scheme: dark;
  --bg: #050507;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.13);
  --text: #f7f7fb;
  --muted: #a9a9b5;
  --line: rgba(255, 255, 255, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(80, 120, 255, 0.28), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(61, 220, 151, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
}

.startup-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.12), transparent 18rem),
    radial-gradient(circle at 32% 22%, rgba(80, 120, 255, 0.22), transparent 24rem),
    radial-gradient(circle at 70% 74%, rgba(61, 220, 151, 0.12), transparent 22rem),
    rgba(5, 5, 7, 0.98);
  animation: splash-fade-out 420ms ease 1080ms forwards;
}

.startup-splash__card {
  width: min(100%, 420px);
  padding: 34px 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
  backdrop-filter: blur(22px);
  animation: splash-card-settle 700ms ease-out both;
}

.startup-splash__kicker {
  display: block;
  color: rgba(169, 169, 181, 0.92);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.startup-splash strong {
  display: block;
  margin-top: 12px;
  color: rgba(247, 247, 251, 0.98);
  font-size: clamp(2rem, 10vw, 3.45rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.startup-splash p {
  margin: 14px 0 0;
  color: rgba(247, 247, 251, 0.72);
  font-size: clamp(1rem, 4vw, 1.16rem);
  line-height: 1.35;
}

button, input, select {
  font: inherit;
  color: inherit;
}

@keyframes splash-card-settle {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splash-fade-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .startup-splash,
  .startup-splash__card {
    animation-duration: 1ms;
    animation-delay: 600ms;
  }
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.hero {
  padding: 36px 4px 24px;
}

.eyebrow, .label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.grid, .panel-grid {
  display: grid;
  gap: 16px;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.card, .panel, .assistant-card, .import-card, .export-card, .reset-card, .community-feedback-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card {
  min-height: 116px;
  padding: 18px;
}

.card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.45rem, 7vw, 2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero-card {
  grid-column: 1 / -1;
  min-height: 238px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.07));
  border-radius: var(--radius-xl);
}

.hero-card strong {
  margin-top: 12px;
  font-size: clamp(3rem, 12vw, 5.2rem);
}

.hero-card p {
  margin: 10px 0 0;
  max-width: 32rem;
  color: var(--muted);
}

.dashboard-grid .card:not(.hero-card) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
}

.dashboard-grid .card:not(.hero-card) .label {
  font-size: 0.68rem;
  letter-spacing: 0.075em;
}

.dashboard-grid .card:not(.hero-card) strong {
  color: rgba(247, 247, 251, 0.94);
}

.summary-heading .card-icon,
.section-heading .section-icon {
  width: 32px;
  height: 32px;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.2);
  color: rgba(247, 247, 251, 0.86);
  font-size: 0.86rem;
  font-weight: 900;
}

.summary-heading .positive-icon,
.section-heading .positive-icon {
  color: var(--money-positive);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 34%),
    rgba(159, 231, 192, 0.095);
}

.summary-heading .growth-icon,
.section-heading .growth-icon {
  color: var(--money-growth);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 34%),
    rgba(157, 194, 255, 0.1);
}

.summary-heading .debt-icon,
.section-heading .debt-icon {
  color: var(--money-debt);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.2), transparent 34%),
    rgba(255, 177, 166, 0.095);
}

.section-heading .caution-icon {
  color: var(--money-caution);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.2), transparent 34%),
    rgba(242, 213, 138, 0.095);
}

.panel-grid {
  margin-top: 18px;
}

.panel {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.panel-title {
  width: 100%;
  min-height: 72px;
  border: 0;
  background: transparent;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  cursor: pointer;
}

.panel-label {
  min-width: 0;
  text-align: left;
}

.panel-title > span:last-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.24);
  color: rgba(247, 247, 251, 0.84);
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1;
}

.panel-summary {
  max-width: 9rem;
  overflow: hidden;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(247, 247, 251, 0.74);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-body {
  padding: 0 20px 8px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.row strong {
  letter-spacing: -0.035em;
}

.row > div strong {
  display: block;
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row > strong:last-child {
  font-size: 1rem;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.bill-amount {
  text-align: right;
}

.bill-amount strong {
  display: block;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.bill-amount small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
  white-space: nowrap;
}

.account-group-label,
.bill-group-label {
  margin: 18px 0 4px;
  color: rgba(169, 169, 181, 0.78);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.bill-status-badge {
  display: inline-block;
  margin-top: 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  padding: 5px 8px;
  color: rgba(247, 247, 251, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.bill-row.due-soon,
.bill-row.past-due {
  margin-inline: -10px;
  padding-inline: 10px;
  border-radius: 16px;
}

.bill-row.due-soon {
  background: rgba(255, 255, 255, 0.035);
}

.bill-row.past-due {
  background: rgba(255, 255, 255, 0.055);
}

.bill-row.past-due .bill-status-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 247, 251, 0.9);
}

.allocation-progress {
  margin-top: 12px;
}

.allocation-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(169, 169, 181, 0.9);
  font-size: 0.76rem;
  line-height: 1.2;
}

.allocation-progress-track {
  overflow: hidden;
  height: 7px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.allocation-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(247, 247, 251, 0.72);
}

.allocation-progress-status {
  margin-top: 7px;
  color: rgba(169, 169, 181, 0.94);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.allocation-progress.complete .allocation-progress-status {
  color: rgba(247, 247, 251, 0.9);
}

.allocation-progress.complete .allocation-progress-track span {
  background: rgba(247, 247, 251, 0.86);
}

.edit-form {
  display: grid;
  gap: 14px;
  margin: 2px 0 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.edit-form label {
  display: grid;
  gap: 8px;
}

.edit-form label span {
  color: rgba(169, 169, 181, 0.88);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.edit-form input,
.edit-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(5, 5, 7, 0.34);
  outline: 0;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.edit-form input::placeholder {
  color: rgba(169, 169, 181, 0.5);
}

.edit-form input:focus,
.edit-form select:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.045);
}

.form-actions,
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.form-actions {
  padding-top: 2px;
}

.form-actions button,
.row-actions button {
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.form-actions button {
  min-height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.row-actions button {
  min-height: 44px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.085);
  color: rgba(247, 247, 251, 0.86);
  font-size: 0.84rem;
}

.form-actions button:hover,
.row-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.18);
}

.ghost-button,
.row-actions button:last-child {
  color: var(--muted);
  background: transparent;
}

.ghost-button:hover,
.row-actions button:last-child:hover {
  background: rgba(255, 255, 255, 0.065);
}

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

.editable-row .row-actions {
  grid-column: 1 / -1;
}

.empty-state {
  margin: 2px 0 14px;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.empty-state strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.empty-state p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.status-message {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 247, 251, 0.84);
  font-size: 0.92rem;
  line-height: 1.35;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.status-message[data-tone="error"] {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 247, 251, 0.9);
}

.assistant-card, .import-card, .export-card, .reset-card, .community-feedback-card {
  margin-top: 18px;
  padding: 24px;
  display: grid;
  gap: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.105), rgba(255,255,255,0.055));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.assistant-card h2, .import-card h2, .export-card h2, .reset-card h2, .community-feedback-card h2 {
  margin: 8px 0;
  max-width: 34rem;
  font-size: clamp(1.55rem, 6vw, 2.3rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.assistant-card p, .import-card p, .export-card p, .reset-card p, .community-feedback-card p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.assistant-card button, .import-card .file-button, .export-card button, .reset-card button, .community-feedback-card button {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--surface-strong);
  color: rgba(247, 247, 251, 0.72);
}

.import-card, .export-card, .reset-card {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
}

.import-card .file-button, .export-card button, .reset-card button, .community-feedback-card button {
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.import-card .file-button {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(247, 247, 251, 0.86);
}

.export-card button {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(247, 247, 251, 0.82);
}

.reset-card button {
  background: transparent;
  color: rgba(247, 247, 251, 0.68);
}

.import-card .file-button:hover, .export-card button:hover, .reset-card button:hover, .community-feedback-card button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.import-card .file-button:hover {
  background: rgba(255, 255, 255, 0.19);
}

.export-card button:hover {
  background: rgba(255, 255, 255, 0.17);
}

.community-feedback-card {
  grid-column: 1 / -1;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
}

.community-feedback-intro {
  max-width: 42rem;
}

.community-feedback-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.community-feedback-form label {
  display: grid;
  gap: 6px;
}

.community-feedback-form label span {
  color: rgba(247, 247, 251, 0.84);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.community-feedback-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 18px;
  padding: 14px;
  background: rgba(5, 5, 7, 0.34);
  color: rgba(247, 247, 251, 0.92);
  font: inherit;
  line-height: 1.45;
  outline: 0;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.community-feedback-form textarea::placeholder {
  color: rgba(169, 169, 181, 0.52);
}

.community-feedback-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.045);
}

.community-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-feedback-actions button {
  width: auto;
  min-height: 44px;
  cursor: pointer;
}

.community-feedback-actions button:first-child {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(247, 247, 251, 0.88);
}

.community-feedback-actions .ghost-button {
  background: transparent;
  color: var(--muted);
}

.community-feedback-status {
  min-height: 1.25rem;
  color: rgba(247, 247, 251, 0.82);
  font-size: 0.9rem;
}

@media (min-width: 760px) {
  .app-shell { padding: 40px; }
  .hero { padding: 44px 4px 30px; }
  .grid, .panel-grid { gap: 18px; }
  .dashboard-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-card { grid-column: span 2; grid-row: span 2; padding: 32px; }
  .panel-grid { margin-top: 22px; grid-template-columns: repeat(2, 1fr); }
  .edit-form { grid-template-columns: 1fr 0.8fr 0.8fr; align-items: end; padding: 18px; }
  .form-actions { grid-column: 1 / -1; }
  .assistant-card, .import-card, .export-card, .reset-card { margin-top: 22px; padding: 28px; grid-template-columns: 1fr auto; align-items: center; }
  .community-feedback-card { margin-top: 22px; padding: 28px; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
}


.mobile-view-header {
  display: none;
}

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

@media (max-width: 759px) {
  .app-shell {
    padding-top: calc(28px + env(safe-area-inset-top));
  }

  header.hero.brand-hero {
    gap: 16px;
    margin: 4px 0 18px;
    padding: 40px 18px 36px;
    border-color: rgba(255, 255, 255, 0.095);
    border-radius: 30px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.04)),
      radial-gradient(circle at 50% 16%, rgba(77, 138, 255, 0.3), transparent 32%),
      radial-gradient(circle at 72% 18%, rgba(87, 226, 170, 0.11), transparent 26%),
      linear-gradient(135deg, rgba(13, 30, 76, 0.86) 0%, rgba(7, 13, 31, 0.96) 58%, rgba(5, 5, 7, 1) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -1px 0 rgba(255, 255, 255, 0.045),
      0 18px 48px rgba(0, 0, 0, 0.28);
  }

  header.hero.brand-hero::before {
    opacity: 0.68;
  }

  header.hero.brand-hero::after {
    top: 10px;
    width: 230px;
    height: 230px;
    opacity: 0.82;
    filter: blur(46px);
  }

  .brand-copy .subtitle {
    margin-top: 12px;
    line-height: 1.26;
  }

  .hero-card {
    min-height: 208px;
    padding: 22px;
    border-color: rgba(255, 255, 255, 0.095);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,0.135), rgba(255,255,255,0.055));
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.26);
  }

  .hero-card strong {
    margin-top: 10px;
    font-size: clamp(2.8rem, 11.2vw, 4.4rem);
  }

  .hero-card p {
    margin-top: 8px;
    line-height: 1.34;
  }

  .dashboard-grid {
    gap: 12px;
  }

  .dashboard-grid .card:not(.hero-card) {
    min-height: 96px;
    padding: 14px;
    border-color: rgba(255, 255, 255, 0.075);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.038));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.055),
      0 10px 28px rgba(0, 0, 0, 0.2);
  }

  .dashboard-grid .card:not(.hero-card) .label {
    font-size: 0.64rem;
    line-height: 1.15;
    letter-spacing: 0.065em;
  }

  .dashboard-grid .card:not(.hero-card) strong {
    margin-top: 7px;
    font-size: clamp(1.32rem, 6.2vw, 1.78rem);
    line-height: 0.98;
  }

  .dashboard-grid .card:not(.hero-card) p {
    margin-top: 7px;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  body.has-mobile-views {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  body.has-mobile-views .app-shell {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .mobile-view-header {
    display: block;
    margin: 0 0 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
  }

  .mobile-view-header h2 {
    margin: 6px 0 0;
    font-size: clamp(1.68rem, 10.2vw, 2.34rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  .mobile-view-header p {
    margin: 7px 0 0;
    color: rgba(169, 169, 181, 0.82);
    font-size: 0.92rem;
    line-height: 1.3;
  }

  body.has-mobile-views [data-mobile-view]:not([hidden]) {
    scroll-margin-top: 16px;
  }

  body.has-mobile-views .panel-grid {
    margin-top: 0;
  }

  body.has-mobile-views .panel {
    border-color: rgba(255, 255, 255, 0.095);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.074), rgba(255, 255, 255, 0.036));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 14px 38px rgba(0, 0, 0, 0.22);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

  body.has-mobile-views .panel.collapsed {
    border-color: rgba(255, 255, 255, 0.07);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.022)),
      rgba(255, 255, 255, 0.012);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.042),
      0 10px 28px rgba(0, 0, 0, 0.18);
  }

  body.has-mobile-views .panel:not(.collapsed) {
    border-color: rgba(157, 194, 255, 0.18);
    background:
      linear-gradient(180deg, rgba(157, 194, 255, 0.068), transparent 42%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.04));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.075),
      0 16px 42px rgba(0, 0, 0, 0.24);
  }

  body.has-mobile-views .panel-title {
    min-height: 70px;
    padding: 16px 14px 14px 16px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 8px;
    row-gap: 4px;
    font-size: 0.98rem;
    line-height: 1.08;
  }

  body.has-mobile-views .panel.collapsed .panel-title {
    min-height: 76px;
    padding: 17px 13px 17px 16px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.014)),
      rgba(255, 255, 255, 0.01);
  }

  body.has-mobile-views .panel:not(.collapsed) .panel-title {
    background:
      linear-gradient(180deg, rgba(157, 194, 255, 0.062), rgba(255, 255, 255, 0.018)),
      rgba(255, 255, 255, 0.018);
  }

  body.has-mobile-views .panel-label {
    display: grid;
    min-width: 0;
    gap: 4px;
    align-content: center;
  }

  body.has-mobile-views .section-heading {
    min-width: 0;
    gap: 10px;
    line-height: 1.05;
  }

  body.has-mobile-views .section-heading span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.has-mobile-views .section-heading .section-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    font-size: 0.82rem;
  }

  body.has-mobile-views .panel-helper {
    max-width: 34ch;
    margin-top: 1px;
    color: rgba(196, 199, 211, 0.72);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.32;
    letter-spacing: -0.006em;
  }

  body.has-mobile-views .panel-title > span:last-child {
    align-self: center;
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, 0.14);
    background:
      radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.24), transparent 34%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    color: rgba(247, 247, 251, 0.9);
    font-size: 1.28rem;
    line-height: 0;
    transform: rotate(180deg);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
  }

  body.has-mobile-views .panel.collapsed .panel-title > span:last-child {
    border-color: rgba(157, 194, 255, 0.2);
    background:
      radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.26), transparent 34%),
      linear-gradient(145deg, rgba(157, 194, 255, 0.2), rgba(255, 255, 255, 0.065));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 10px 24px rgba(0, 0, 0, 0.22);
    color: rgba(247, 247, 251, 0.96);
    transform: rotate(0deg);
  }

  body.has-mobile-views .panel:not(.collapsed) .panel-title > span:last-child {
    border-color: rgba(255, 255, 255, 0.18);
    background:
      radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 34%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.145), rgba(157, 194, 255, 0.09));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 8px 22px rgba(0, 0, 0, 0.18);
  }

  body.has-mobile-views .panel-summary {
    align-self: center;
    min-width: 3.85rem;
    max-width: min(7rem, 22vw);
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(255, 255, 255, 0.045);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.065),
      0 6px 14px rgba(0, 0, 0, 0.1);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    font-weight: 760;
    line-height: 1;
    text-align: center;
  }

  body.has-mobile-views .panel.collapsed .panel-summary {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(247, 247, 251, 0.68);
  }

  body.has-mobile-views .panel:not(.collapsed) .panel-summary {
    border-color: rgba(157, 194, 255, 0.14);
    background: rgba(157, 194, 255, 0.06);
    color: rgba(247, 247, 251, 0.84);
  }

  body.has-mobile-views .panel-summary.money-positive {
    border-color: rgba(159, 231, 192, 0.14);
    background: rgba(159, 231, 192, 0.055);
    color: rgba(202, 246, 222, 0.84);
  }

  body.has-mobile-views .panel-summary.money-caution {
    border-color: rgba(242, 213, 138, 0.14);
    background: rgba(242, 213, 138, 0.055);
    color: rgba(255, 235, 184, 0.84);
  }

  body.has-mobile-views .panel-summary.money-growth {
    border-color: rgba(157, 194, 255, 0.14);
    background: rgba(157, 194, 255, 0.058);
    color: rgba(213, 226, 255, 0.86);
  }

  body.has-mobile-views .panel-body {
    padding: 0 16px 12px;
  }

  body.has-mobile-views .panel:not(.collapsed) .panel-body {
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    padding-top: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 72px);
  }

  body.has-mobile-views .panel-copy {
    margin: 1px 0 12px;
    color: rgba(196, 199, 211, 0.78);
    font-size: 0.86rem;
    line-height: 1.46;
    letter-spacing: -0.01em;
  }

  body.has-mobile-views .empty-state {
    margin: 1px 0 8px;
    padding: 14px 15px 13px;
    border-color: rgba(157, 194, 255, 0.115);
    border-radius: 18px;
    background:
      linear-gradient(145deg, rgba(157, 194, 255, 0.05), rgba(255, 255, 255, 0.025)),
      rgba(255, 255, 255, 0.018);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.055),
      0 8px 20px rgba(0, 0, 0, 0.11);
  }

  body.has-mobile-views .empty-state strong {
    color: rgba(247, 247, 251, 0.94);
    font-size: 0.95rem;
    line-height: 1.18;
    letter-spacing: -0.018em;
  }

  body.has-mobile-views .empty-state p {
    margin-top: 7px;
    color: rgba(196, 199, 211, 0.78);
    font-size: 0.85rem;
    line-height: 1.44;
    letter-spacing: -0.008em;
  }

  body.has-mobile-views .analytics-header,
  body.has-mobile-views .monthly-planning-header {
    gap: 7px;
  }

  body.has-mobile-views .analytics-section {
    margin-top: 0;
    padding: 14px;
    border-color: rgba(255, 255, 255, 0.078);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.028));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 14px 38px rgba(0, 0, 0, 0.2);
  }

  body.has-mobile-views .analytics-header {
    margin-bottom: 13px;
  }

  body.has-mobile-views .analytics-header .label {
    padding: 6px 9px;
    border-color: rgba(255, 255, 255, 0.085);
    background: rgba(255, 255, 255, 0.044);
    font-size: 0.66rem;
    letter-spacing: 0.055em;
  }

  body.has-mobile-views .analytics-header h2,
  body.has-mobile-views .monthly-planning-header h2,
  body.has-mobile-views .monthly-flow-timeline-section h3,
  body.has-mobile-views .monthly-flow-income-section h3 {
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  body.has-mobile-views .analytics-header p,
  body.has-mobile-views .monthly-planning-header p,
  body.has-mobile-views .cash-timing-copy p,
  body.has-mobile-views .bill-calendar-strip-copy p,
  body.has-mobile-views .monthly-next-step p {
    color: rgba(169, 169, 181, 0.76);
    font-size: 0.84rem;
    line-height: 1.3;
  }

  body.has-mobile-views .analytics-grid {
    gap: 10px;
  }

  body.has-mobile-views .analytics-card {
    gap: 11px;
    padding: 12px;
    border-color: rgba(255, 255, 255, 0.07);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.024));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  body.has-mobile-views .analytics-card strong {
    color: rgba(247, 247, 251, 0.92);
    font-size: 0.94rem;
    line-height: 1.14;
    letter-spacing: -0.03em;
  }

  body.has-mobile-views .analytics-card small,
  body.has-mobile-views .monthly-flow-timeline-empty,
  body.has-mobile-views .monthly-flow-bills-empty,
  body.has-mobile-views .monthly-flow-income-empty,
  body.has-mobile-views .analytics-empty {
    color: rgba(169, 169, 181, 0.74);
    font-size: 0.8rem;
    line-height: 1.3;
  }

  body.has-mobile-views .analytics-card small {
    margin-top: 4px;
    line-height: 1.24;
  }

  body.has-mobile-views .analytics-bars {
    gap: 10px;
  }

  body.has-mobile-views .analytics-legend {
    gap: 5px;
  }

  body.has-mobile-views .analytics-legend span {
    gap: 5px;
    padding: 4px 6px;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.032);
    color: rgba(247, 247, 251, 0.66);
    font-size: 0.62rem;
  }

  body.has-mobile-views .analytics-bar-list {
    gap: 9px;
  }

  body.has-mobile-views .analytics-bar-row {
    gap: 5px;
  }

  body.has-mobile-views .analytics-bar-meta {
    gap: 8px;
    color: rgba(169, 169, 181, 0.8);
    font-size: 0.72rem;
    line-height: 1.18;
  }

  body.has-mobile-views .analytics-bar-meta strong {
    color: rgba(247, 247, 251, 0.86);
    font-size: 0.76rem;
    line-height: 1.12;
  }

  body.has-mobile-views .analytics-bar-meta strong em {
    padding: 2px 5px;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.032);
    color: rgba(169, 169, 181, 0.78);
    font-size: 0.6rem;
  }

  body.has-mobile-views .analytics-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.062);
  }

  body.has-mobile-views .distribution-bar {
    height: 18px;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.052);
  }

  body.has-mobile-views .distribution-details {
    gap: 6px;
  }

  body.has-mobile-views .distribution-detail {
    gap: 8px;
    color: rgba(169, 169, 181, 0.8);
    font-size: 0.72rem;
    line-height: 1.18;
  }

  body.has-mobile-views .distribution-detail strong {
    color: rgba(247, 247, 251, 0.86);
    font-size: 0.76rem;
  }

  body.has-mobile-views .timing-pressure-grid {
    gap: 7px;
  }

  body.has-mobile-views .timing-pressure-track {
    height: 68px;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.052);
  }

  body.has-mobile-views .timing-pressure-column {
    gap: 4px;
  }

  body.has-mobile-views .timing-pressure-column strong {
    color: rgba(247, 247, 251, 0.86);
    font-size: 0.66rem;
    line-height: 1.08;
  }

  body.has-mobile-views .timing-pressure-column small,
  body.has-mobile-views .timing-pressure-column em {
    color: rgba(169, 169, 181, 0.72);
    font-size: 0.58rem;
    line-height: 1.08;
  }

  body.has-mobile-views .analytics-context {
    padding-top: 8px;
    border-top-color: rgba(255, 255, 255, 0.06);
    color: rgba(169, 169, 181, 0.76);
    font-size: 0.72rem;
    line-height: 1.28;
  }

  body.has-mobile-views .analytics-empty {
    padding: 11px;
    border-color: rgba(255, 255, 255, 0.11);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.024);
  }

  body.has-mobile-views .monthly-planning-section {
    padding: 14px;
    border-color: rgba(255, 255, 255, 0.078);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.028));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 14px 38px rgba(0, 0, 0, 0.2);
  }

  body.has-mobile-views .monthly-planning-header {
    margin-bottom: 13px;
  }

  body.has-mobile-views .monthly-planning-header .label,
  body.has-mobile-views .bill-calendar-strip-label,
  body.has-mobile-views .cash-timing-label,
  body.has-mobile-views .monthly-next-step span {
    font-size: 0.66rem;
    letter-spacing: 0.055em;
  }

  body.has-mobile-views .monthly-planning-card,
  body.has-mobile-views .cash-timing-card,
  body.has-mobile-views .monthly-next-step {
    padding: 11px;
    border-color: rgba(255, 255, 255, 0.07);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.024));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  body.has-mobile-views .monthly-flow-summary-panel {
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top-color: rgba(255, 255, 255, 0.06);
  }

  body.has-mobile-views .monthly-flow-cash-status-card,
  body.has-mobile-views .monthly-flow-summary-card,
  body.has-mobile-views .monthly-flow-bills-summary,
  body.has-mobile-views .monthly-flow-next-bill {
    gap: 4px;
    padding: 10px;
    border-color: rgba(255, 255, 255, 0.068);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.032);
  }

  body.has-mobile-views .monthly-flow-cash-status-card {
    border-color: rgba(76, 217, 100, 0.16);
    background: linear-gradient(145deg, rgba(76, 217, 100, 0.095), rgba(255, 255, 255, 0.03));
    box-shadow: 0 10px 24px rgba(76, 217, 100, 0.06);
  }

  body.has-mobile-views .monthly-flow-summary-card-primary {
    border-color: rgba(76, 217, 100, 0.14);
    background: rgba(76, 217, 100, 0.052);
  }

  body.has-mobile-views .bill-calendar-strip,
  body.has-mobile-views .cash-timing-card {
    gap: 10px;
  }

  body.has-mobile-views .bill-date-chip-list {
    gap: 8px;
    margin-inline: -8px;
    padding: 6px 8px 8px;
  }

  body.has-mobile-views .bill-date-chip {
    flex-basis: clamp(82px, 25vw, 98px);
    gap: 5px;
    padding: 10px 9px;
    border-color: rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    background: rgba(14, 14, 18, 0.78);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  }

  body.has-mobile-views .monthly-flow-timeline-section,
  body.has-mobile-views .monthly-flow-income-section {
    gap: 7px;
    margin-top: 10px;
  }

  body.has-mobile-views .monthly-flow-timeline-list,
  body.has-mobile-views .monthly-flow-bills-list,
  body.has-mobile-views .monthly-flow-income-list {
    gap: 7px;
  }

  body.has-mobile-views .monthly-flow-timeline-starting-row,
  body.has-mobile-views .monthly-flow-timeline-row,
  body.has-mobile-views .monthly-flow-bill-row,
  body.has-mobile-views .monthly-flow-income-row,
  body.has-mobile-views .monthly-flow-timeline-empty,
  body.has-mobile-views .monthly-flow-bills-empty,
  body.has-mobile-views .monthly-flow-income-empty {
    gap: 9px;
    padding: 9px 10px;
    border-color: rgba(255, 255, 255, 0.07);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.034);
  }

  body.has-mobile-views .monthly-flow-timeline-row-income,
  body.has-mobile-views .monthly-flow-income-row {
    border-color: rgba(76, 217, 100, 0.12);
    background: rgba(76, 217, 100, 0.046);
  }

  body.has-mobile-views .monthly-flow-timeline-row-lowest {
    border-color: rgba(255, 214, 10, 0.26);
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.105), rgba(255, 255, 255, 0.04));
    box-shadow: 0 9px 22px rgba(255, 214, 10, 0.055);
  }

  body.has-mobile-views .monthly-flow-timeline-details,
  body.has-mobile-views .monthly-flow-bill-copy,
  body.has-mobile-views .monthly-flow-income-copy {
    gap: 3px;
  }

  body.has-mobile-views .monthly-flow-bill-copy strong,
  body.has-mobile-views .monthly-flow-income-copy strong {
    font-size: 0.79rem;
    line-height: 1.16;
  }

  body.has-mobile-views .monthly-flow-timeline-starting-row strong,
  body.has-mobile-views .monthly-flow-timeline-amount,
  body.has-mobile-views .monthly-flow-bill-amount,
  body.has-mobile-views .monthly-flow-income-amount {
    font-size: 0.82rem;
    line-height: 1.14;
  }

  body.has-mobile-views .row {
    gap: 12px;
    min-height: 52px;
    padding: 10px 0;
    border-top-color: rgba(255, 255, 255, 0.062);
  }

  body.has-mobile-views .row > div strong {
    font-size: 0.96rem;
    line-height: 1.16;
  }

  body.has-mobile-views .row small {
    margin-top: 3px;
    font-size: 0.79rem;
    line-height: 1.2;
  }

  body.has-mobile-views .row > strong:last-child,
  body.has-mobile-views .bill-amount strong {
    font-size: 1rem;
  }

  body.has-mobile-views .bill-amount small {
    margin-top: 4px;
    font-size: 0.74rem;
  }

  body.has-mobile-views .account-group-label,
  body.has-mobile-views .bill-group-label {
    margin: 11px 0 2px;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  body.has-mobile-views .panel-title[data-toggle="accounts"] {
    padding-bottom: 13px;
  }

  body.has-mobile-views #accounts {
    padding-bottom: 10px;
  }


  body.has-mobile-views .panel-title[data-toggle="accounts"] {
    grid-template-columns: minmax(0, 1fr) minmax(78px, auto) 32px;
    gap: 8px;
    min-height: 58px;
    padding: 14px 14px 12px;
  }

  body.has-mobile-views .panel-title[data-toggle="accounts"] .panel-summary {
    max-width: 7.2rem;
    padding: 6px 8px;
    font-size: 0.73rem;
    text-align: center;
  }

  body.has-mobile-views .panel-title[data-toggle="accounts"] > span:last-child {
    width: 32px;
    height: 32px;
    font-size: 0.98rem;
  }

  body.has-mobile-views #accounts .edit-form {
    margin-bottom: 9px;
  }

  body.has-mobile-views #accountsList {
    display: grid;
    gap: 6px;
  }

  body.has-mobile-views #accountsList .account-group-label {
    margin: 6px 1px -1px;
    color: rgba(169, 169, 181, 0.7);
    font-size: 0.62rem;
    line-height: 1.1;
    letter-spacing: 0.072em;
  }

  body.has-mobile-views #accountsList .row {
    gap: 8px 12px;
    min-height: 0;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.044), rgba(255, 255, 255, 0.022));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  body.has-mobile-views #accountsList .account-row.negative-balance {
    margin-inline: 0;
    padding-inline: 10px;
    border-color: rgba(255, 255, 255, 0.072);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.026));
  }

  body.has-mobile-views #accountsList .row > div strong {
    color: rgba(247, 247, 251, 0.92);
    font-size: 0.94rem;
    line-height: 1.12;
  }

  body.has-mobile-views #accountsList .row small {
    margin-top: 3px;
    color: rgba(169, 169, 181, 0.72);
    font-size: 0.75rem;
    line-height: 1.16;
  }

  body.has-mobile-views #accountsList .row > strong:last-child {
    color: rgba(247, 247, 251, 0.94);
    font-size: 1rem;
    line-height: 1;
    letter-spacing: -0.04em;
  }

  body.has-mobile-views #accountsList .row-actions {
    gap: 5px;
    align-items: center;
    padding-top: 0;
  }

  body.has-mobile-views #accountsList .row-actions button {
    min-height: 36px;
    padding: 7px 9px;
    border-color: rgba(255, 255, 255, 0.068);
    background: rgba(255, 255, 255, 0.044);
    color: rgba(247, 247, 251, 0.76);
    font-size: 0.76rem;
    line-height: 1;
  }

  body.has-mobile-views #accountsList .row-actions button:last-child {
    border-color: rgba(255, 177, 166, 0.09);
    background: rgba(255, 177, 166, 0.026);
    color: rgba(255, 177, 166, 0.72);
  }

  body.has-mobile-views .bill-status-badge {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    padding: 4px 7.5px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    font-size: 0.65rem;
    font-weight: 760;
    letter-spacing: -0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.has-mobile-views .bill-status-badge.money-caution {
    border-color: rgba(242, 213, 138, 0.16);
    background: rgba(242, 213, 138, 0.055);
    color: rgba(255, 235, 184, 0.88);
  }

  body.has-mobile-views .bill-status-badge.money-debt {
    border-color: rgba(255, 177, 166, 0.17);
    background: rgba(255, 177, 166, 0.06);
    color: rgba(255, 216, 211, 0.9);
  }

  body.has-mobile-views .bill-row.due-soon,
  body.has-mobile-views .bill-row.past-due {
    margin-inline: -8px;
    padding-inline: 8px;
    border-radius: 14px;
  }

  body.has-mobile-views .bill-row.due-soon {
    background: rgba(255, 255, 255, 0.026);
  }

  body.has-mobile-views .bill-row.past-due {
    background: rgba(255, 255, 255, 0.04);
  }

  body.has-mobile-views .bill-row.past-due .bill-status-badge {
    background: rgba(255, 177, 166, 0.07);
  }

  body.has-mobile-views .panel-title[data-toggle="assets"],
  body.has-mobile-views .panel-title[data-toggle="investments"] {
    padding-bottom: 13px;
  }

  body.has-mobile-views #assets,
  body.has-mobile-views #investments {
    padding-bottom: 10px;
  }

  body.has-mobile-views #assets .panel-copy {
    margin-bottom: 8px;
    color: rgba(247, 247, 251, 0.62);
    font-size: 0.8rem;
    line-height: 1.3;
  }

  body.has-mobile-views #assets .panel-total {
    margin: 6px 0 9px;
    padding: 10px 12px;
    border-color: rgba(255, 255, 255, 0.068);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.026));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.036);
  }

  body.has-mobile-views #assets .panel-total span {
    color: rgba(169, 169, 181, 0.72);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  body.has-mobile-views #assets .panel-total strong {
    font-size: 1.04rem;
    line-height: 1;
    letter-spacing: -0.035em;
  }

  body.has-mobile-views #assetsList,
  body.has-mobile-views #investmentsList {
    display: grid;
    gap: 7px;
  }

  body.has-mobile-views #assetsList .row,
  body.has-mobile-views #investmentsList .row {
    gap: 9px 12px;
    min-height: 0;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.064);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.024));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.032);
  }

  body.has-mobile-views #assetsList .row > div strong,
  body.has-mobile-views #investmentsList .row > div strong {
    font-size: 0.93rem;
    line-height: 1.12;
  }

  body.has-mobile-views #assetsList .row small,
  body.has-mobile-views #investmentsList .row small {
    margin-top: 3px;
    color: rgba(169, 169, 181, 0.72);
    font-size: 0.76rem;
    line-height: 1.18;
  }

  body.has-mobile-views #assetsList .row > strong:last-child,
  body.has-mobile-views #investmentsList .row > strong:last-child {
    color: rgba(247, 247, 251, 0.94);
    font-size: 0.98rem;
    line-height: 1;
    letter-spacing: -0.04em;
  }

  body.has-mobile-views #assetsList .row-actions,
  body.has-mobile-views #investmentsList .row-actions {
    gap: 5px;
    align-items: center;
    padding-top: 0;
  }

  body.has-mobile-views #assetsList .row-actions button,
  body.has-mobile-views #investmentsList .row-actions button {
    min-height: 36px;
    padding: 7px 9px;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.046);
    color: rgba(247, 247, 251, 0.76);
    font-size: 0.76rem;
    line-height: 1;
  }

  body.has-mobile-views #assetsList .row-actions button:last-child,
  body.has-mobile-views #investmentsList .row-actions button:last-child {
    border-color: rgba(255, 177, 166, 0.09);
    background: rgba(255, 177, 166, 0.026);
    color: rgba(255, 177, 166, 0.72);
  }

  body.has-mobile-views .allocation-progress {
    margin-top: 6px;
  }

  body.has-mobile-views .allocation-progress-label {
    gap: 10px;
    color: rgba(169, 169, 181, 0.78);
    font-size: 0.72rem;
    line-height: 1.16;
  }

  body.has-mobile-views .allocation-progress-track {
    height: 6px;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.065);
  }

  body.has-mobile-views .allocation-progress-track span {
    background: rgba(247, 247, 251, 0.68);
  }

  body.has-mobile-views .allocation-progress-status {
    display: inline-block;
    max-width: 100%;
    margin-top: 4px;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(169, 169, 181, 0.82);
    font-size: 0.68rem;
    font-weight: 740;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.has-mobile-views .allocation-progress.complete .allocation-progress-status {
    border-color: rgba(159, 231, 192, 0.13);
    background: rgba(159, 231, 192, 0.045);
    color: rgba(202, 246, 222, 0.84);
  }

  body.has-mobile-views .row-actions {
    gap: 5px;
    align-items: center;
  }

  body.has-mobile-views .row-actions button {
    min-height: 38px;
    padding: 7px 10px;
    border-color: rgba(255, 255, 255, 0.072);
    background: rgba(255, 255, 255, 0.052);
    color: rgba(247, 247, 251, 0.76);
    font-size: 0.77rem;
    line-height: 1;
  }

  body.has-mobile-views .row-actions button:first-child {
    border-color: rgba(157, 194, 255, 0.11);
    background: rgba(157, 194, 255, 0.062);
    color: rgba(197, 216, 255, 0.84);
  }

  body.has-mobile-views .row-actions button:last-child {
    border-color: rgba(255, 177, 166, 0.09);
    background: rgba(255, 177, 166, 0.026);
    color: rgba(255, 177, 166, 0.72);
  }

  body.has-mobile-views .editable-row .row-actions {
    margin-top: -2px;
    padding-top: 0;
  }

  body.has-mobile-views .panel:not(.collapsed) .edit-form {
    gap: 9px;
    margin: 0 0 9px;
    padding: 10px;
    border-color: rgba(157, 194, 255, 0.12);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(157, 194, 255, 0.045), rgba(255, 255, 255, 0.024)),
      rgba(5, 5, 7, 0.18);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.045),
      0 8px 20px rgba(0, 0, 0, 0.12);
  }

  body.has-mobile-views .panel:not(.collapsed) .edit-form:focus-within {
    border-color: rgba(157, 194, 255, 0.2);
    background:
      linear-gradient(180deg, rgba(157, 194, 255, 0.06), rgba(255, 255, 255, 0.03)),
      rgba(5, 5, 7, 0.2);
  }

  body.has-mobile-views .edit-form label {
    gap: 5px;
  }

  body.has-mobile-views .edit-form label span {
    color: rgba(169, 169, 181, 0.78);
    font-size: 0.64rem;
    letter-spacing: 0.064em;
  }

  body.has-mobile-views .edit-form input,
  body.has-mobile-views .edit-form select,
  body.has-mobile-views .edit-form textarea {
    min-height: 42px;
    border-color: rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    padding: 0 11px;
    background: rgba(5, 5, 7, 0.26);
    font-size: 0.92rem;
    color: rgba(247, 247, 251, 0.92);
    outline: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
  }

  body.has-mobile-views .edit-form textarea {
    min-height: 88px;
    padding-top: 10px;
    padding-bottom: 10px;
    resize: vertical;
  }

  body.has-mobile-views .edit-form input::placeholder,
  body.has-mobile-views .edit-form textarea::placeholder {
    color: rgba(169, 169, 181, 0.42);
  }

  body.has-mobile-views .edit-form input:focus,
  body.has-mobile-views .edit-form select:focus,
  body.has-mobile-views .edit-form textarea:focus {
    border-color: rgba(157, 194, 255, 0.34);
    background:
      linear-gradient(180deg, rgba(157, 194, 255, 0.06), rgba(255, 255, 255, 0.05)),
      rgba(5, 5, 7, 0.32);
    box-shadow:
      0 0 0 3px rgba(157, 194, 255, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.055);
  }

  body.has-mobile-views .edit-form input:disabled,
  body.has-mobile-views .edit-form select:disabled,
  body.has-mobile-views .edit-form textarea:disabled,
  body.has-mobile-views .edit-form input[readonly],
  body.has-mobile-views .edit-form textarea[readonly] {
    border-color: rgba(255, 255, 255, 0.045);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(169, 169, 181, 0.68);
    opacity: 1;
  }

  body.has-mobile-views label:has(> input[type="checkbox"]),
  body.has-mobile-views label:has(> input[type="radio"]) {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: rgba(247, 247, 251, 0.88);
    line-height: 1.25;
  }

  body.has-mobile-views input[type="checkbox"],
  body.has-mobile-views input[type="radio"] {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    margin: 0;
    border: 1.5px solid rgba(247, 247, 251, 0.28);
    background:
      radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.16), transparent 38%),
      rgba(5, 5, 7, 0.28);
    accent-color: rgb(157, 194, 255);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 6px 16px rgba(0, 0, 0, 0.16);
  }

  body.has-mobile-views input[type="checkbox"] {
    border-radius: 7px;
  }

  body.has-mobile-views input[type="radio"] {
    border-radius: 999px;
  }

  body.has-mobile-views input[type="checkbox"]:checked,
  body.has-mobile-views input[type="radio"]:checked {
    border-color: rgba(157, 194, 255, 0.84);
    background-color: rgba(157, 194, 255, 0.24);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 0 0 1px rgba(157, 194, 255, 0.12),
      0 8px 18px rgba(0, 0, 0, 0.18);
  }

  body.has-mobile-views input[type="checkbox"]:focus-visible,
  body.has-mobile-views input[type="radio"]:focus-visible {
    outline: 2px solid rgba(157, 194, 255, 0.76);
    outline-offset: 3px;
    box-shadow:
      0 0 0 5px rgba(157, 194, 255, 0.12),
      0 8px 18px rgba(0, 0, 0, 0.18);
  }

  body.has-mobile-views input[type="checkbox"]:disabled,
  body.has-mobile-views input[type="radio"]:disabled {
    border-color: rgba(247, 247, 251, 0.12);
    background-color: rgba(255, 255, 255, 0.035);
    box-shadow: none;
    opacity: 0.55;
  }

  body.has-mobile-views label:has(> input[type="checkbox"]:disabled),
  body.has-mobile-views label:has(> input[type="radio"]:disabled) {
    color: rgba(169, 169, 181, 0.58);
  }

  body.has-mobile-views input[type="checkbox"][role="switch"],
  body.has-mobile-views input[type="checkbox"].switch,
  body.has-mobile-views .switch input[type="checkbox"],
  body.has-mobile-views .toggle input[type="checkbox"] {
    position: relative;
    width: 52px;
    min-width: 52px;
    height: 32px;
    min-height: 32px;
    border-radius: 999px;
    appearance: none;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }

  body.has-mobile-views input[type="checkbox"][role="switch"]::after,
  body.has-mobile-views input[type="checkbox"].switch::after,
  body.has-mobile-views .switch input[type="checkbox"]::after,
  body.has-mobile-views .toggle input[type="checkbox"]::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(247, 247, 251, 0.92);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.26);
    content: "";
    transition: transform 160ms ease, background 160ms ease;
  }

  body.has-mobile-views input[type="checkbox"][role="switch"]:checked,
  body.has-mobile-views input[type="checkbox"].switch:checked,
  body.has-mobile-views .switch input[type="checkbox"]:checked,
  body.has-mobile-views .toggle input[type="checkbox"]:checked {
    border-color: rgba(61, 220, 151, 0.56);
    background:
      linear-gradient(145deg, rgba(61, 220, 151, 0.86), rgba(157, 194, 255, 0.72));
  }

  body.has-mobile-views input[type="checkbox"][role="switch"]:checked::after,
  body.has-mobile-views input[type="checkbox"].switch:checked::after,
  body.has-mobile-views .switch input[type="checkbox"]:checked::after,
  body.has-mobile-views .toggle input[type="checkbox"]:checked::after {
    transform: translateX(20px);
  }

  body.has-mobile-views .form-actions {
    gap: 7px;
    padding-top: 1px;
  }

  body.has-mobile-views .form-actions button {
    min-height: 40px;
    padding: 0 13px;
    border-color: rgba(255, 255, 255, 0.085);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
  }

  body.has-mobile-views .panel .form-actions {
    align-items: center;
    margin: 1px 0 2px;
  }

  body.has-mobile-views .panel .form-actions button {
    flex: 1 1 0;
    min-height: 42px;
    padding: 0 14px;
    border-color: rgba(157, 194, 255, 0.16);
    background:
      radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.16), transparent 30%),
      linear-gradient(145deg, rgba(157, 194, 255, 0.16), rgba(255, 255, 255, 0.075));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.11),
      0 8px 18px rgba(0, 0, 0, 0.14);
    color: rgba(247, 247, 251, 0.92);
    letter-spacing: -0.01em;
  }

  body.has-mobile-views .panel .form-actions button:hover {
    border-color: rgba(157, 194, 255, 0.22);
    background:
      radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.18), transparent 30%),
      linear-gradient(145deg, rgba(157, 194, 255, 0.19), rgba(255, 255, 255, 0.09));
  }

  body.has-mobile-views .form-actions .ghost-button {
    background: transparent;
  }

  body.has-mobile-views .panel .form-actions .ghost-button {
    flex-grow: 0;
    min-width: 92px;
    border-color: rgba(255, 255, 255, 0.076);
    background: rgba(255, 255, 255, 0.026);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    color: rgba(169, 169, 181, 0.8);
  }

  body.has-mobile-views .panel .form-actions .ghost-button:hover {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.05);
  }

  body.has-mobile-views .utility-grid .auth-card {
    gap: 13px;
    margin-top: 14px;
    padding: 16px;
    border-color: rgba(159, 231, 192, 0.105);
    border-radius: 22px;
    background:
      linear-gradient(145deg, rgba(159, 231, 192, 0.058), rgba(255, 255, 255, 0.032)),
      rgba(255, 255, 255, 0.02);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.055),
      0 13px 34px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(20px) saturate(145%);
  }

  body.has-mobile-views .utility-grid .auth-card::before {
    background: radial-gradient(circle at top right, rgba(159, 231, 192, 0.09), transparent 12rem);
    opacity: 0.74;
  }

  body.has-mobile-views .utility-grid .auth-card .label {
    padding: 6px 9px;
    border-color: rgba(159, 231, 192, 0.12);
    background: rgba(159, 231, 192, 0.06);
    color: rgba(214, 246, 229, 0.7);
    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: 0.065em;
  }

  body.has-mobile-views .utility-grid .auth-card h2 {
    margin: 9px 0 5px;
    font-size: 1.36rem;
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  body.has-mobile-views .utility-grid .auth-card p {
    color: rgba(169, 169, 181, 0.76);
    font-size: 0.84rem;
    line-height: 1.3;
  }

  body.has-mobile-views .utility-grid .auth-form {
    gap: 9px;
  }

  body.has-mobile-views .utility-grid .auth-form label {
    gap: 5px;
    color: rgba(247, 247, 251, 0.7);
    font-size: 0.76rem;
    line-height: 1.12;
  }

  body.has-mobile-views .utility-grid .auth-form input {
    min-height: 43px;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0 12px;
    background: rgba(5, 5, 7, 0.28);
    color: rgba(247, 247, 251, 0.92);
    outline: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  }

  body.has-mobile-views .utility-grid .auth-form input::placeholder {
    color: rgba(169, 169, 181, 0.42);
  }

  body.has-mobile-views .utility-grid .auth-form input:focus {
    border-color: rgba(159, 231, 192, 0.34);
    background:
      linear-gradient(180deg, rgba(159, 231, 192, 0.055), rgba(255, 255, 255, 0.045)),
      rgba(5, 5, 7, 0.32);
    box-shadow:
      0 0 0 3px rgba(159, 231, 192, 0.065),
      inset 0 1px 0 rgba(255, 255, 255, 0.055);
  }

  body.has-mobile-views .utility-grid .auth-form input:disabled,
  body.has-mobile-views .utility-grid .auth-form input[readonly] {
    border-color: rgba(255, 255, 255, 0.045);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(169, 169, 181, 0.68);
    opacity: 1;
  }

  body.has-mobile-views .utility-grid .cloud-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding-top: 2px;
  }

  body.has-mobile-views .utility-grid .auth-card button {
    min-height: 41px;
    padding: 0 13px;
    border-color: rgba(255, 255, 255, 0.085);
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.08;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  body.has-mobile-views .utility-grid #cloudSaveButton:not(:disabled) {
    border-color: rgba(159, 231, 192, 0.22);
    background: rgba(159, 231, 192, 0.15);
    color: rgba(218, 250, 233, 0.96);
  }

  body.has-mobile-views .utility-grid #cloudLoadButton:not(:disabled) {
    border-color: rgba(157, 194, 255, 0.14);
    background: rgba(157, 194, 255, 0.075);
    color: rgba(214, 226, 255, 0.88);
  }

  body.has-mobile-views .utility-grid #restoreLocalBackupButton:not(:disabled) {
    border-color: rgba(255, 214, 138, 0.13);
    background: rgba(255, 214, 138, 0.055);
    color: rgba(255, 232, 190, 0.82);
  }

  body.has-mobile-views .utility-grid .cloud-clear-backup-button:not(:disabled) {
    border-color: rgba(255, 159, 159, 0.14);
    background: rgba(255, 159, 159, 0.035);
    color: rgba(255, 215, 215, 0.76);
  }

  body.has-mobile-views .utility-grid .cloud-actions #cloudSaveButton[data-cloud-dirty="true"]:not(:disabled) {
    border-color: rgba(255, 214, 138, 0.28);
    background: rgba(255, 214, 138, 0.12);
    color: rgba(255, 237, 204, 0.96);
  }

  body.has-mobile-views .utility-grid .auth-status {
    padding: 7px 10px;
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.76rem;
    line-height: 1.14;
  }

  body.has-mobile-views .utility-grid .cloud-last-sync,
  body.has-mobile-views .utility-grid .cloud-dirty-indicator,
  body.has-mobile-views .utility-grid .cloud-backup-timestamp {
    margin-top: -4px;
    color: rgba(245, 247, 251, 0.6);
    font-size: 0.74rem;
    line-height: 1.22;
  }

  body.has-mobile-views .utility-grid .cloud-dirty-indicator {
    padding: 6px 9px;
    border-color: rgba(255, 214, 138, 0.17);
    background: rgba(255, 214, 138, 0.065);
    color: rgba(255, 223, 166, 0.88);
  }

  body.has-mobile-views .utility-grid textarea {
    width: 100%;
    min-height: 132px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 15px;
    padding: 12px;
    background: rgba(5, 5, 7, 0.28);
    color: rgba(247, 247, 251, 0.9);
    font: inherit;
    font-size: 0.86rem;
    line-height: 1.35;
    outline: 0;
    resize: vertical;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
  }

  body.has-mobile-views .utility-grid textarea::placeholder {
    color: rgba(169, 169, 181, 0.42);
  }

  body.has-mobile-views .utility-grid textarea:focus {
    border-color: rgba(157, 194, 255, 0.34);
    background:
      linear-gradient(180deg, rgba(157, 194, 255, 0.055), rgba(255, 255, 255, 0.04)),
      rgba(5, 5, 7, 0.32);
    box-shadow:
      0 0 0 3px rgba(157, 194, 255, 0.065),
      inset 0 1px 0 rgba(255, 255, 255, 0.055);
  }

  body.has-mobile-views .utility-grid textarea:disabled,
  body.has-mobile-views .utility-grid textarea[readonly] {
    border-color: rgba(255, 255, 255, 0.052);
    background:
      linear-gradient(180deg, rgba(157, 194, 255, 0.035), rgba(255, 255, 255, 0.022)),
      rgba(5, 5, 7, 0.2);
    color: rgba(169, 169, 181, 0.72);
    opacity: 1;
  }

  body.has-mobile-views .utility-grid .auth-status[data-tone="error"],
  body.has-mobile-views .utility-grid .status-message[data-tone="error"] {
    border-color: rgba(255, 177, 166, 0.18);
    background: rgba(255, 177, 166, 0.07);
    color: rgba(255, 225, 221, 0.92);
  }

  body.has-mobile-views .panel[data-mobile-view]:not([hidden]),
  body.has-mobile-views .monthly-planning-section[data-mobile-view]:not([hidden]),
  body.has-mobile-views .analytics-section[data-mobile-view]:not([hidden]),
  body.has-mobile-views .utility-grid[data-mobile-view]:not([hidden]) {
    margin-bottom: 18px;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: max(24px, env(safe-area-inset-left));
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    max-width: calc(100vw - 48px - env(safe-area-inset-left) - env(safe-area-inset-right));
    margin: 0 auto;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(18, 19, 25, 0.58), rgba(6, 7, 10, 0.52));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(26px) saturate(160%);
  }

  .mobile-bottom-nav-item {
    min-width: 0;
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 4px 2px;
    background: transparent;
    color: rgba(247, 247, 251, 0.48);
    font-size: clamp(0.64rem, 2.55vw, 0.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    cursor: pointer;
  }

  .mobile-bottom-nav-item.is-active {
    background: rgba(247, 247, 251, 0.92);
    color: rgba(12, 13, 18, 0.96);
    box-shadow: none;
  }

  .mobile-bottom-nav-item:focus-visible {
    outline: 2px solid rgba(61, 220, 151, 0.8);
    outline-offset: 2px;
  }
}

.analytics-snapshot-grid,
.analytics-insight-grid,
.analytics-score-grid,
.analytics-detail-grid,
.analytics-breakdown-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.analytics-snapshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.analytics-insight-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.analytics-score-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.analytics-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.analytics-breakdown-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.analytics-health-score {
  margin-bottom: 16px;
}

.analytics-health-card,
.analytics-snapshot-card,
.analytics-insight-card,
.analytics-score-card,
.analytics-detail-card,
.analytics-breakdown-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(90, 200, 250, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.086), rgba(255, 255, 255, 0.034)),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 16px 42px rgba(0, 0, 0, 0.16);
}

.analytics-health-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.analytics-score-ring {
  display: grid;
  place-items: center;
  align-content: center;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(8, 10, 18, 0.97) 0 56%, transparent 57%),
    conic-gradient(rgba(48, 209, 88, 0.98) var(--score), rgba(255, 255, 255, 0.13) 0);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 34px rgba(48, 209, 88, 0.12),
    0 18px 34px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.analytics-score-ring strong,
.analytics-health-card h3,
.analytics-detail-card h3 {
  margin: 0;
  color: rgba(247, 247, 251, 0.96);
  letter-spacing: -0.055em;
}

.analytics-score-ring strong {
  max-width: 92px;
  font-size: 1.28rem;
  line-height: 0.98;
}

.analytics-score-ring span,
.analytics-kicker {
  display: block;
  color: rgba(247, 247, 251, 0.62);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.075em;
  line-height: 1.15;
  text-transform: uppercase;
}

.analytics-health-card h3,
.analytics-detail-card h3 {
  margin-top: 7px;
  font-size: clamp(1.45rem, 4vw, 2.18rem);
  line-height: 0.98;
}

.analytics-health-card p,
.analytics-health-card small,
.analytics-score-card p,
.analytics-detail-card p,
.analytics-next-steps {
  color: rgba(247, 247, 251, 0.72);
  font-size: 0.86rem;
  line-height: 1.42;
}

.analytics-health-card p,
.analytics-detail-card p {
  margin: 10px 0 0;
}

.analytics-health-card small {
  display: block;
  margin-top: 8px;
  color: rgba(169, 169, 181, 0.78);
}

.analytics-score-card,
.analytics-detail-card {
  display: grid;
  gap: 11px;
  padding: 16px;
}

.analytics-score-card-heading,
.analytics-detail-row {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.analytics-score-card-heading span,
.analytics-detail-row span {
  min-width: 0;
  overflow: hidden;
  color: rgba(247, 247, 251, 0.72);
  font-size: 0.78rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-score-card-heading strong,
.analytics-detail-row strong {
  color: rgba(247, 247, 251, 0.9);
  font-size: 0.86rem;
  font-weight: 820;
  text-align: right;
}

.analytics-score-card p {
  margin: 0;
}

.analytics-holdings-strip {
  height: 15px;
}

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

.analytics-count-grid div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.analytics-count-grid span,
.analytics-count-grid strong {
  display: block;
}

.analytics-count-grid span {
  overflow: hidden;
  color: rgba(169, 169, 181, 0.78);
  font-size: 0.72rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-count-grid strong {
  margin-top: 4px;
  color: rgba(247, 247, 251, 0.92);
  font-size: 1.2rem;
  letter-spacing: -0.045em;
}

.analytics-next-steps {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.analytics-snapshot-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.analytics-snapshot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.92;
  pointer-events: none;
}

.analytics-snapshot-card > * {
  position: relative;
  z-index: 1;
}

.analytics-snapshot-card span,
.analytics-insight-card span {
  display: block;
  color: rgba(247, 247, 251, 0.64);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.analytics-snapshot-card strong {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.97);
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.analytics-snapshot-card p,
.analytics-insight-card p {
  margin: 10px 0 0;
  color: rgba(247, 247, 251, 0.72);
  font-size: 0.86rem;
  line-height: 1.42;
}

.analytics-snapshot-card.aurora::before { background: radial-gradient(circle at top right, rgba(122, 92, 255, 0.32), transparent 58%), linear-gradient(135deg, rgba(95, 213, 255, 0.14), transparent); }
.analytics-snapshot-card.mint::before { background: radial-gradient(circle at top right, rgba(79, 255, 176, 0.24), transparent 58%), linear-gradient(135deg, rgba(110, 231, 183, 0.12), transparent); }
.analytics-snapshot-card.blue::before { background: radial-gradient(circle at top right, rgba(87, 154, 255, 0.28), transparent 58%), linear-gradient(135deg, rgba(108, 165, 255, 0.12), transparent); }
.analytics-snapshot-card.gold::before { background: radial-gradient(circle at top right, rgba(255, 214, 102, 0.28), transparent 58%), linear-gradient(135deg, rgba(242, 213, 138, 0.12), transparent); }
.analytics-snapshot-card.coral::before { background: radial-gradient(circle at top right, rgba(255, 128, 122, 0.28), transparent 58%), linear-gradient(135deg, rgba(255, 177, 166, 0.12), transparent); }
.analytics-snapshot-card.purple::before { background: radial-gradient(circle at top right, rgba(196, 132, 252, 0.28), transparent 58%), linear-gradient(135deg, rgba(168, 85, 247, 0.12), transparent); }
.analytics-snapshot-card.teal::before { background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.28), transparent 58%), linear-gradient(135deg, rgba(20, 184, 166, 0.12), transparent); }
.analytics-snapshot-card.violet::before { background: radial-gradient(circle at top right, rgba(167, 139, 250, 0.3), transparent 58%), linear-gradient(135deg, rgba(129, 140, 248, 0.12), transparent); }

.analytics-insight-card {
  padding: 16px;
}

.analytics-insight-card p {
  color: rgba(247, 247, 251, 0.86);
  font-size: 0.95rem;
  letter-spacing: -0.018em;
}

.analytics-breakdown-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.analytics-breakdown-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.analytics-breakdown-heading strong,
.analytics-breakdown-card > strong {
  color: rgba(247, 247, 251, 0.94);
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.analytics-breakdown-heading span {
  flex: 0 0 auto;
  color: rgba(247, 247, 251, 0.72);
  font-size: 0.86rem;
  font-weight: 760;
}

.analytics-strip {
  display: flex;
  min-width: 0;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.analytics-strip span {
  min-width: 4px;
}

.analytics-mini-list {
  display: grid;
  gap: 10px;
}

.analytics-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
}

.analytics-mini-row div:first-child {
  min-width: 0;
}

.analytics-mini-row span,
.analytics-mini-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-mini-row span {
  color: rgba(247, 247, 251, 0.86);
  font-size: 0.84rem;
  font-weight: 760;
}

.analytics-mini-row small {
  margin-top: 2px;
  color: rgba(169, 169, 181, 0.72);
  font-size: 0.72rem;
}

.analytics-mini-row strong {
  color: rgba(247, 247, 251, 0.82);
  font-size: 0.82rem;
}

.analytics-mini-row .analytics-bar-track {
  grid-column: 1 / -1;
}

.analytics-empty b {
  color: rgba(247, 247, 251, 0.88);
}

@media (max-width: 680px) {
  .analytics-snapshot-grid,
  .analytics-insight-grid,
  .analytics-score-grid,
  .analytics-detail-grid,
  .analytics-breakdown-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }

  .analytics-health-card,
  .analytics-snapshot-card,
  .analytics-insight-card,
  .analytics-score-card,
  .analytics-detail-card,
  .analytics-breakdown-card {
    border-radius: 18px;
    padding: 13px;
  }

  .analytics-health-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .analytics-score-ring {
    width: 112px;
    height: 112px;
  }

  .analytics-snapshot-card strong {
    font-size: 1.45rem;
  }
}
