:root {
  --bg: #f4efe7;
  --panel: rgba(255, 251, 245, 0.88);
  --text: #1f2933;
  --muted: #5f6c7b;
  --accent: #2b6f6b;
  --accent-dark: #1d4d4a;
  --border: rgba(31, 41, 51, 0.12);
  --shadow: 0 24px 50px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(43, 111, 107, 0.18), transparent 28%),
    linear-gradient(135deg, #f7f3eb 0%, #ebe2d1 100%);
}

.app-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.hero-copy {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.card {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

form,
.inline-controls {
  display: grid;
  gap: 14px;
}

form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
button {
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font: inherit;
}

button {
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

button:hover {
  background: var(--accent-dark);
}

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

.total-number {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
}

.status {
  color: var(--muted);
}

.expense-list {
  display: grid;
  gap: 12px;
}

.expense-item {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
}

.expense-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 1080px);
    padding-top: 28px;
  }

  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }
}
