
:root {
  /* Main burgundy theme */
  --bg: #201719;
  --surface: #302225;
  --surface-light: #39292e;
  --surface-hover: #453139;

  /* Misty blue-grey surfaces */
  --light-bg: #D3DCE1;
  --light-card: #E5EAED;
  --light-card-hover: #EEF1F3;
  --light-text: #263039;
  --light-muted: #667680;
  --light-border: rgba(38, 48, 57, 0.10);

  /* Accent colours */
  --accent: #C77C88;
  --accent-dark: #A85F6D;
  --accent-soft: rgba(199, 124, 136, 0.14);

  --text: #F3E9E9;
  --muted: #AC999D;
  --border: rgba(243, 233, 233, 0.09);

  --income: #aebbd5;
  --expense: #D47D89;

  --radius: 18px;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.muted,
.chart-note,
.footer-note {
  color: var(--muted);
}

/* TOP NAVIGATION */

.topbar {
  min-height: 76px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(32, 23, 25, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo span {
  color: var(--accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.today-label {
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* MAIN LAYOUT */

.container {
  width: min(1180px, 90%);
  margin: 38px auto 65px;
}

.welcome {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.welcome > div {
  min-width: 0;
}

.cloud-status {
  margin-top: 8px;
  font-size: 11px;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1 {
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin-bottom: 9px;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 14px;
  font-weight: 600;
}

/* BUTTONS */

.button {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 17px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s ease;
}

.button-primary {
  background: var(--accent);
  color: #24191C;
  border-color: var(--accent);
}

.button-primary:hover {
  background: #D38D98;
  transform: translateY(-1px);
}

.button-outline {
  background: transparent;
  color: var(--text);
}

.button-outline:hover {
  background: var(--surface-hover);
}

.button-small {
  padding: 8px 12px;
  font-size: 12px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 7px;
}

.text-button:hover {
  color: #E2A3AD;
}

/* MONTH TOOLBAR */

.month-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.month-toolbar label,
.budget-controls label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.month-toolbar input {
  max-width: 190px;
}

select,
input,
textarea {
  background: #261D20;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  outline: none;
  width: 100%;
  min-width: 0;
  color-scheme: dark;
}

textarea {
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

input::placeholder,
textarea::placeholder {
  color: #8F7D82;
}

/* SUMMARY CARDS */

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

.summary-card {
  background: var(--light-bg);
  color: var(--light-text);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 23px;
  min-width: 0;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}

.summary-card:hover {
  transform: translateY(-3px);
  background: var(--light-card);
}

.balance-card {
  background: linear-gradient(135deg, #39252D, #302225);
  color: var(--text);
  border-color: rgba(199, 124, 136, 0.25);
}

.balance-card:hover {
  background: linear-gradient(135deg, #432B34, #35262A);
}

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

.card-top p,
.summary-card > p {
  color: var(--light-muted);
  font-size: 13px;
}

.balance-card .card-top p {
  color: var(--muted);
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 17px;
  flex-shrink: 0;
}

.balance-card .card-icon {
  color: var(--accent);
}

.income-icon {
  color: #aebbd5;
  background: rgba(174, 187, 213, 0.18);
}

.expense-icon {
  color: #A85F6D;
  background: rgba(168, 95, 109, 0.12);
}

.summary-card h2 {
  font-size: clamp(21px, 3vw, 29px);
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
}

.balance-card h2 {
  color: var(--text);
}

/* PANELS */

.panel {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 21px;
}

.panel-heading p {
  color: var(--muted);
  font-size: 12px;
}

.panel-heading .eyebrow {
  color: var(--accent);
  font-size: 11px;
  margin-bottom: 7px;
}

.panel-heading h2 {
  margin-bottom: 5px;
}

/* PAYSLIP */

.payslip-panel {
  background: linear-gradient(145deg, #302225, #2A1F22);
}

.payslip-info {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  margin-bottom: 22px;
  border: 1px solid rgba(199, 124, 136, 0.18);
  border-radius: 12px;
  background: rgba(199, 124, 136, 0.07);
}

.payslip-info-icon {
  color: var(--accent);
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}

.payslip-info p {
  color: var(--muted);
  font-size: 12px;
}

.payslip-panel .form-grid {
  margin-bottom: 17px;
}

.payslip-panel .form-grid label {
  color: var(--muted);
}

.payslip-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-message {
  color: var(--accent);
  font-size: 12px;
  margin-top: 12px;
  min-height: 0;
}

.payslip-history {
  border-top: 1px solid var(--border);
  margin-top: 25px;
  padding-top: 22px;
}

.section-subheading {
  margin-bottom: 12px;
}

.section-subheading h3 {
  margin-bottom: 3px;
}

.section-subheading p {
  font-size: 11px;
}

/* PAYSLIP HISTORY - COMMON GENERATED CONTENT */

.payslip-history > div:last-child {
  min-width: 0;
}

.payslip-history .empty-message {
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.payslip-history-right {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex-shrink: 0;
}

.payslip-history-actions {
  display: flex;
  gap: 7px;
}

.payslip-history-actions .button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.payslip-delete-btn {
  border-color: rgba(215, 126, 158, .45);
  color: var(--accent);
}

/* BUDGET */

.budget-panel {
  background: linear-gradient(145deg, #302225, #2A2023);
}

.budget-controls {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
}

.budget-controls label {
  grid-column: 1 / -1;
  margin-bottom: -7px;
}

.budget-controls input {
  max-width: 260px;
}

.budget-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.budget-summary-grid .summary-card {
  padding: 17px;
  box-shadow: none;
}

.budget-summary-grid .summary-card p {
  font-size: 11px;
  color: var(--light-muted);
  margin-bottom: 7px;
}

.budget-summary-grid .summary-card h2 {
  font-size: clamp(17px, 2vw, 23px);
}

.budget-progress {
  margin: 10px 0 22px;
}

.budget-progress > p {
  font-size: 11px;
  margin-top: 8px;
}

.budget-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  min-width: 0;
}

.budget-list > * {
  min-width: 0;
}

.budget-panel .empty-message {
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.budget-panel > .button {
  margin-top: 3px;
}

/* SAVINGS GOAL */

.savings-panel {
  background: linear-gradient(115deg, #302126, #302225);
}

.goal-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
}

.goal-input-row label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.goal-input-row input {
  max-width: 180px;
}

.progress-track {
  height: 9px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: inherit;
  transition: width 0.4s ease;
}

.goal-percent {
  color: var(--accent);
  font-weight: 700;
}

/* CHARTS */

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.chart-panel {
  min-width: 0;
  margin-bottom: 0;
  background: var(--light-bg);
  color: var(--light-text);
  border-color: var(--light-border);
}

.chart-panel .panel-heading p {
  color: var(--light-muted);
}

.chart-panel .muted,
.chart-panel .chart-note {
  color: var(--light-muted);
}

.category-chart {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.category-row {
  display: grid;
  grid-template-columns: minmax(75px, 1fr) 2fr auto;
  align-items: center;
  gap: 10px;
}

.category-name,
.category-amount {
  font-size: 12px;
}

.category-name {
  color: var(--light-muted);
}

.category-amount {
  color: var(--light-text);
  font-weight: 600;
  white-space: nowrap;
}

.category-track,
.comparison-track {
  height: 8px;
  background: rgba(38, 48, 57, 0.12);
  border-radius: 20px;
  overflow: hidden;
}

.category-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent-dark);
}

.comparison-chart {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--light-text);
  margin-bottom: 8px;
}

.comparison-fill {
  height: 100%;
  border-radius: inherit;
}

.income-fill {
  background: #aebbd5;
}

.expense-fill {
  background: var(--accent-dark);
}

.chart-note {
  font-size: 11px;
  margin-top: 18px;
}

/* FORMS */

.form-panel {
  scroll-margin-top: 95px;
}

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

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.full-width {
  grid-column: 1 / -1;
}

#transactionForm button {
  margin-top: 6px;
}

#formMessage {
  color: var(--accent);
  font-size: 12px;
  margin-top: 12px;
}

/* TRANSACTIONS */

.transactions-panel {
  min-width: 0;
}

.transaction-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.backup-import {
  padding: 15px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.backup-import label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.backup-import input {
  font-size: 12px;
}

.backup-import .muted {
  font-size: 11px;
  margin-top: 7px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 11px;
  margin-bottom: 20px;
}

.transaction-list {
  display: flex;
  flex-direction: column;
}

.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.transaction-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.transaction-symbol {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(131, 182, 156, 0.12);
  color: var(--income);
}

.transaction-symbol.expense {
  background: rgba(212, 125, 137, 0.12);
  color: var(--expense);
}

.transaction-details {
  min-width: 0;
}

.transaction-details h3 {
  overflow-wrap: anywhere;
}

.transaction-details p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.transaction-right {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.transaction-amount {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.transaction-amount.income {
  color: var(--income);
}

.transaction-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  display: grid;
  place-items: center;
  transition: 0.2s ease;
}

.icon-button:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.icon-button.delete:hover {
  color: var(--expense);
  border-color: var(--expense);
}

.empty-message {
  text-align: center;
  padding: 38px 15px;
  color: var(--muted);
  font-size: 13px;
}

.list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

/* FOOTER */

.footer {
  width: min(1180px, 90%);
  margin: 0 auto;
  padding: 25px 0 35px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer > p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}

.footer-note {
  font-size: 11px;
}

/* ACCESSIBILITY */

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: #201719;
}

/* TABLET */

@media (max-width: 850px) {
  .container {
    width: 92%;
  }

  .summary-card {
    padding: 18px;
  }

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

  .category-row {
    grid-template-columns: minmax(75px, 1fr) 2fr auto;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .topbar {
    min-height: 65px;
    padding: 0 4%;
  }

  .logo {
    font-size: 19px;
  }

  .topbar-right {
    gap: 9px;
  }

  .today-label {
    font-size: 10px;
  }

  .avatar {
    width: 33px;
    height: 33px;
  }

  .container {
    width: 92%;
    margin: 28px auto 45px;
  }

  .welcome {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .welcome > .button {
    width: 100%;
  }

  h1 {
    font-size: 29px;
  }

  .month-toolbar {
    justify-content: space-between;
  }

  .month-toolbar input {
    max-width: 165px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .summary-card {
    padding: 18px;
  }

  .card-top {
    margin-bottom: 11px;
  }

  .summary-card h2 {
    font-size: 25px;
  }

  .panel {
    padding: 18px;
    border-radius: 15px;
  }

  .panel-heading {
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .full-width {
    grid-column: auto;
  }

  .budget-controls {
    grid-template-columns: 1fr;
  }

  .budget-controls label {
    grid-column: auto;
    margin-bottom: -5px;
  }

  .budget-controls input {
    max-width: none;
  }

  .budget-controls button {
    width: 100%;
  }

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

  .budget-summary-grid .summary-card {
    padding: 14px 16px;
  }

  .budget-summary-grid .summary-card h2 {
    font-size: 21px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .transaction-item {
    align-items: flex-start;
  }

  .payslip-history-right {
    align-items: end;
  }

  .payslip-history-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .transaction-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
  }

  .transaction-actions {
    gap: 4px;
  }

  .transactions-panel > .panel-heading {
    flex-direction: column;
  }

  .goal-input-row {
    flex-wrap: wrap;
  }

  .goal-input-row label {
    width: 100%;
  }

  .goal-input-row input {
    max-width: none;
    flex: 1;
  }

  .goal-input-row button {
    flex-shrink: 0;
  }

  .category-row {
    grid-template-columns: 75px minmax(35px, 1fr) auto;
    gap: 7px;
  }

  .category-name,
  .category-amount {
    font-size: 11px;
  }

  .list-footer {
    flex-wrap: wrap;
  }

  .button {
    padding: 10px 13px;
  }

  .payslip-form-actions .button {
    width: 100%;
  }

  .transaction-actions .button {
    font-size: 11px;
    padding: 8px 9px;
  }
}

/* SMALL PHONES */

@media (max-width: 360px) {
  .container {
    width: 94%;
  }

  .panel {
    padding: 14px;
  }

  .transaction-symbol {
    width: 35px;
    height: 35px;
  }

  .transaction-amount {
    font-size: 12px;
  }

  .icon-button {
    width: 28px;
    height: 28px;
  }

  .topbar-right {
    gap: 6px;
  }

  .today-label {
    display: none;
  }
}

/* TRANSACTION FORM NAVIGATION */

#transactionSection {
  scroll-margin-top: 24px;
}

@media (max-width: 600px) {
  #transactionSection {
    scroll-margin-top: 16px;
  }
}

/* MONETA PREMIUM DASHBOARD REFRESH */
:root{--bg:#160b10;--surface:#29151d;--surface-light:#351b26;--surface-hover:#472633;--accent:#d77e9e;--accent-dark:#bd6688;--accent-soft:rgba(215,126,158,.16);--text:#fff0f5;--muted:#c1a8b5;--border:rgba(231,157,184,.18);--income:#aebbd5;--expense:#d77e9e;--light-bg:#33202b;--light-card:#3b2632;--light-card-hover:#49303d;--light-text:#f7eaf0;--light-muted:#c1a8b5;--light-border:rgba(231,157,184,.15);--shadow:0 16px 38px rgba(0,0,0,.24)}
body{background:radial-gradient(ellipse at 4% 0%,rgba(126,48,79,.34),transparent 34%),radial-gradient(ellipse at 100% 35%,rgba(69,65,94,.16),transparent 32%),var(--bg)}
.topbar{background:rgba(22,11,16,.92);border-bottom-color:transparent}.logo{font-family:Georgia,serif;font-weight:500;letter-spacing:4px;font-size:28px}.container{width:min(1120px,94%);margin:24px auto 54px}.compact-welcome{align-items:center;margin-bottom:18px}.compact-welcome h1{font-family:Georgia,serif;font-size:clamp(27px,4vw,38px);letter-spacing:3px;margin:0}.welcome-dot{color:var(--accent)}.compact-welcome .eyebrow{letter-spacing:3px;margin-bottom:2px}.compact-welcome .cloud-status{font-size:10px;margin-top:3px}.month-toolbar{margin:0;gap:8px}.month-toolbar label{display:none}.month-toolbar input{max-width:168px;border-radius:999px;background:#321b27;border-color:var(--border)}
.hero-panel{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.55fr);gap:24px;padding:24px;border:1px solid var(--border);border-radius:30px;background:linear-gradient(135deg,rgba(107,43,68,.58),rgba(38,17,26,.94) 52%,rgba(54,37,56,.55));box-shadow:var(--shadow);margin-bottom:18px}.hero-balance{display:grid;place-items:center;border-right:1px solid var(--border);padding-right:22px}.hero-balance .summary-card{width:100%;min-height:245px;border:0;background:transparent;box-shadow:none;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.hero-balance .card-top{justify-content:center;margin-bottom:10px}.hero-balance .card-top span:first-child,.hero-balance .summary-card>p{display:none}.hero-balance .card-icon{width:54px;height:54px;border-radius:50%;font-size:25px;background:var(--accent-soft);color:var(--accent)}.hero-balance h2{font-size:clamp(27px,4vw,36px);color:var(--text)}.hero-stats{display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:14px}.hero-stats .summary-card{padding:8px 12px;background:transparent;border:0;box-shadow:none;color:var(--text)}.hero-stats .summary-card:hover{transform:none;background:transparent}.hero-stats .card-top{justify-content:flex-start;gap:8px;margin-bottom:7px}.hero-stats .card-top span:first-child{color:var(--muted);font-size:13px}.hero-stats .card-icon{width:40px;height:40px;border-radius:50%;font-size:21px;background:var(--accent-soft);color:var(--accent)}.hero-stats .income-icon{background:rgba(174,187,213,.18);color:var(--income)}.hero-stats .summary-card h2{font-size:clamp(20px,2.5vw,28px);color:var(--text)}.hero-stats .summary-card>p{display:none}.hero-spending{grid-column:1/-1;border-top:1px solid var(--border);padding:15px 12px 0;margin-top:4px}.hero-spending-label{display:flex;justify-content:space-between;margin-bottom:8px;color:var(--text);font-size:13px}.hero-spending-label strong{font-size:13px}
.progress-track{height:10px;border-radius:99px;background:#756779;overflow:hidden}.progress-fill{background:linear-gradient(90deg,#b96a88,#e18eaa);border-radius:99px;height:100%;transition:width .3s ease}.quick-goals{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}.quick-card{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--border);border-radius:25px;background:linear-gradient(145deg,#38202c,#25141d);box-shadow:var(--shadow);min-width:0}.quick-card-icon{font-size:32px;color:var(--accent);width:48px;text-align:center;flex-shrink:0}.quick-card-main{flex:1;min-width:0;display:grid;gap:5px}.quick-card-main>span{color:var(--muted);font-size:13px}.quick-card-main strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quick-card-main .progress-track{height:8px}.quick-percent{width:50px;height:50px;border:7px solid rgba(215,126,158,.2);border-top-color:var(--accent);border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:13px;flex-shrink:0}
.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}.quick-action{border-radius:22px;padding:18px 12px;font-size:17px;font-weight:700;display:flex;justify-content:center;align-items:center;gap:12px;border:1px solid var(--border);transition:transform .2s ease}.quick-action:hover{transform:translateY(-2px)}.primary-action{background:linear-gradient(110deg,#d77e9e,#c86e8f);color:#27131d;border-color:#df91ad}.secondary-action{background:linear-gradient(110deg,#34212f,#392330);color:#f8e9f1}.recent-panel{border-radius:25px;background:linear-gradient(145deg,#2c1721,#20111a);padding:20px;margin-bottom:18px}.recent-panel .panel-heading{align-items:center;margin-bottom:6px}.see-all{color:var(--accent);font-weight:700;font-size:13px}#recentActivityList .empty-message{padding:32px 12px}#recentActivityList .transaction-item{border-color:var(--border)}
.more-tools{border:1px solid var(--border);border-radius:25px;background:#291720;overflow:hidden}.more-tools>summary{list-style:none;cursor:pointer;padding:18px 22px;font-size:17px;font-weight:700;display:flex;justify-content:space-between;align-items:center}.more-tools>summary::-webkit-details-marker{display:none}.tools-chevron{color:var(--accent);font-size:24px;transition:transform .2s}.more-tools[open] .tools-chevron{transform:rotate(180deg)}.more-tools-content{padding:8px 18px 18px}.more-tools-content .panel{background:rgba(57,32,45,.65);border-color:var(--border)}.more-tools-content .summary-card{background:#33202b;color:var(--text);border-color:var(--border)}.more-tools-content .summary-card>p,.more-tools-content .card-top p{color:var(--muted)}.more-tools-content .income-icon{color:var(--income);background:rgba(174,187,213,.15)}.more-tools-content .progress-fill,.more-tools-content .comparison-fill,.more-tools-content .category-fill{background:linear-gradient(90deg,#b96a88,#d98aa6)}.more-tools-content .transaction-amount.income,.more-tools-content .income-text{color:var(--income)}.more-tools-content .expense-text{color:var(--expense)}.more-tools-content .budget-row,.more-tools-content .transaction-item{border-color:var(--border)}select,input,textarea{background:#21131b;color:var(--text);border-color:var(--border)}input::placeholder,textarea::placeholder{color:#a78a98}.button-primary{background:var(--accent);border-color:var(--accent);color:#24121b}.button-primary:hover{background:#e294ae}.footer{margin-top:30px}
@media(max-width:700px){.topbar{padding:0 4%;min-height:64px}.logo{font-size:23px}.container{width:92%;margin:18px auto 38px}.compact-welcome{gap:12px;flex-direction:row;align-items:center}.compact-welcome h1{font-size:25px}.month-toolbar input{max-width:145px;padding:9px}.hero-panel{grid-template-columns:1fr;gap:12px;padding:16px;border-radius:24px}.hero-balance{border-right:0;border-bottom:1px solid var(--border);padding:0 0 10px}.hero-balance .summary-card{min-height:150px;padding:8px}.hero-stats{grid-template-columns:1fr 1fr;gap:4px}.hero-stats .summary-card{padding:6px}.hero-stats .card-top{gap:6px}.hero-stats .card-icon{width:34px;height:34px}.hero-spending{padding:12px 6px 0}.quick-goals{gap:10px}.quick-card{padding:12px 10px;gap:7px;border-radius:20px}.quick-card-icon{width:28px;font-size:23px}.quick-card-main>span{font-size:11px}.quick-card-main strong{font-size:12px}.quick-percent{width:39px;height:39px;border-width:5px;font-size:10px}.quick-actions{gap:10px}.quick-action{font-size:14px;padding:15px 6px;border-radius:18px}.recent-panel{padding:16px;border-radius:21px}.more-tools>summary{padding:16px;font-size:15px}.more-tools-content{padding:6px 10px 12px}}
@media(max-width:380px){.quick-goals{grid-template-columns:1fr}.compact-welcome h1{font-size:22px}.month-toolbar input{max-width:130px;font-size:12px}}

/* Balance progress ring */
.hero-balance .summary-card{position:relative;isolation:isolate}
.hero-balance .summary-card::before{content:"";position:absolute;width:205px;height:205px;border-radius:50%;border:12px solid var(--accent);opacity:.88;z-index:-1;box-shadow:0 0 24px rgba(215,126,158,.12)}
@media(max-width:700px){.hero-balance .summary-card::before{width:140px;height:140px;border-width:9px}}


/* Single primary action: expenses are the only manual transaction entry. */
.quick-actions{grid-template-columns:1fr}


/* Savings is a calculated remainder, not a manually editable budget amount. */
.budget-calculated-amount{display:block;width:100%;padding:12px 14px;margin-top:6px;border:1px solid var(--border);border-radius:12px;background:rgba(215,126,158,.09);color:var(--text);font-weight:700;}
