:root {
  color-scheme: light;
  --ink: #2b2528;
  --muted: #746a70;
  --line: #eadde4;
  --paper: #fff9fb;
  --panel: #ffffff;
  --soft: #fff0f5;
  --green: #5f9c81;
  --green-dark: #3f735c;
  --blue: #6f8fc9;
  --coral: #e76f7e;
  --gold: #d7a84f;
  --pink: #f3a7bd;
  --shadow: 0 18px 50px rgba(83, 54, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(95, 156, 129, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(111, 143, 201, 0.13), transparent 48%),
    var(--paper);
  font-family: "Inter", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

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

button {
  cursor: pointer;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  min-width: 0;
}

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

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  font-weight: 800;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(231, 111, 126, 0.22);
}

.brand-mark input {
  display: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 1.35rem;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.brand p,
.sync-panel p,
.eyebrow,
small {
  color: var(--muted);
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.month-panel {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  min-width: 0;
  max-width: 100%;
}

.month-panel > div {
  min-width: 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-size: 1.5rem;
  line-height: 1;
}

.tabs {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.more-tab {
  display: none;
}

.mobile-label {
  display: none;
}

.tab {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  padding: 0 14px;
  font-weight: 700;
}

.tab.active {
  color: #fff;
  background: var(--green);
}

.sync-panel {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.sync-panel p {
  margin: 8px 0 14px;
  line-height: 1.5;
}

.sync-actions,
.inline-actions,
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-strip {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.5fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.strip-copy strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
}

.money-progress {
  height: 18px;
  border-radius: 8px;
  background: #f4e7ef;
  overflow: hidden;
}

.money-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 180ms ease;
}

.money-progress-fill.over {
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

.progress-label {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.metric,
.view,
.ledger-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.metric {
  min-width: 0;
  padding: 18px;
}

.metric span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.15;
}

@media (max-width: 1240px) {
  .metric strong {
    font-size: clamp(1.05rem, 2vw, 1.42rem);
  }

  .metric {
    padding: 16px;
  }
}

.metric.accent {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}

.metric.negative {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), #a94f69);
}

.metric.accent span {
  color: rgba(255, 255, 255, 0.8);
}

.view {
  display: none;
  padding: 22px;
  margin-bottom: 18px;
}

.view.active {
  display: block;
}

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

.date-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #f2c9d6;
  border-radius: 8px;
  padding: 0 12px;
  color: #9a4964;
  background: #fff5f8;
  font-size: 0.9rem;
  font-weight: 800;
}

.date-pill[hidden] {
  display: none;
}

.section-heading.compact {
  margin-bottom: 12px;
}

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

.quick-template-panel {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quick-template-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.small-button {
  min-height: 34px;
  padding: 0 12px;
}

.quick-templates {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.template-button {
  min-height: 40px;
  border: 1px solid #f2c9d6;
  border-radius: 8px;
  padding: 0 14px;
  color: #9a4964;
  background: #fff5f8;
  font-weight: 800;
}

.template-button[hidden] {
  display: none;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  min-height: 124px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 92, 0.14);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.primary-button:hover {
  background: var(--green-dark);
}

.secondary-button {
  color: #fff;
  background: var(--blue);
}

.ghost-button {
  color: var(--green-dark);
  background: var(--soft);
  border-color: var(--line);
}

.danger-button {
  color: var(--coral);
  background: #fff3f0;
  border-color: #ffd2c8;
}

.file-trigger {
  display: inline-grid;
  place-items: center;
  color: var(--green-dark);
}

.file-trigger input,
.drop-zone input {
  display: none;
}

.voice-board {
  display: grid;
  gap: 12px;
}

.voice-status {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
}

.receipt-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1fr);
  gap: 16px;
}

.drop-zone {
  min-height: 250px;
  place-items: center;
  text-align: center;
  border: 1px dashed #9bb8aa;
  border-radius: 8px;
  background: var(--soft);
  padding: 22px;
}

.camera-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--green));
  font-size: 1.9rem;
}

.receipt-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  overflow: hidden;
}

.receipt-preview img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.receipt-preview.has-image img {
  display: block;
}

.receipt-preview.has-image #receiptEmpty {
  display: none;
}

#receiptEmpty {
  color: var(--muted);
}

.ai-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ai-result p {
  margin: 8px 0 12px;
  color: var(--muted);
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
}

.analysis-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.compare-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.compare-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.compare-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.compare-summary article {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff7fa;
}

.compare-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.compare-summary strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.compare-insight {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
  line-height: 1.55;
}

.comparison-table {
  display: grid;
  gap: 6px;
  overflow-x: hidden;
}

.comparison-head,
.comparison-row {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) repeat(5, minmax(105px, 1fr));
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.comparison-head {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.comparison-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.comparison-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.good {
  color: var(--green-dark);
}

.bad {
  color: var(--coral);
}

.bar-list {
  display: grid;
  gap: 6px;
}

.bar-detail {
  margin: -2px 0 8px 100px;
  color: var(--muted);
  font-size: 0.82rem;
}

.ledger-tools {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr 0.85fr;
  gap: 12px;
  margin-bottom: 16px;
}

.calendar-panel {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.calendar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-grid.compact-hidden {
  display: none;
}

.calendar-weekday {
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.calendar-day {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffafd;
  padding: 6px 3px;
  text-align: center;
}

.calendar-day span {
  min-height: 15px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.calendar-day.has-total {
  border-color: #f2c9d6;
  background: #fff3f7;
}

.calendar-day.selected {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.calendar-day.selected span {
  color: rgba(255, 255, 255, 0.86);
}

.calendar-day.blank {
  border-color: transparent;
  background: transparent;
  pointer-events: none;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(72px, 90px) minmax(120px, 1fr) minmax(112px, auto);
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.bar-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--green));
}

.settlement-box {
  min-height: 120px;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ledger-section {
  padding: 22px;
}

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

.date-group-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
  color: var(--muted);
  background: rgba(255, 249, 251, 0.94);
  backdrop-filter: blur(8px);
  font-weight: 900;
}

.spaced-list {
  margin-top: 18px;
}

.expense-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.item-main {
  min-width: 0;
}

.item-title {
  display: block;
  overflow-wrap: anywhere;
}

.item-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.item-amount {
  white-space: nowrap;
}

.delete-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--coral);
  background: #fff3f0;
  font-size: 1.35rem;
  line-height: 1;
}

.edit-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--blue);
  background: #edf5fb;
  font-weight: 900;
}

.recurring-item {
  background: linear-gradient(90deg, #fff, #fff7da);
}

.income-item {
  background: linear-gradient(90deg, #fff, #eef9f3);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: end;
  background: rgba(43, 37, 40, 0.28);
}

.sheet-backdrop[hidden] {
  display: none;
}

.bottom-sheet {
  width: 100%;
  max-height: 76vh;
  overflow: auto;
  padding: 16px;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 -20px 50px rgba(83, 54, 68, 0.2);
}

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

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

.empty-state {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

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

  .sidebar {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    max-width: calc(100vw - 28px);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    flex: 0 0 auto;
    min-width: 104px;
    text-align: center;
    scroll-snap-align: start;
  }

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

  .dashboard-strip,
  .ledger-tools {
    grid-template-columns: 1fr;
  }

  .expense-form,
  .receipt-layout,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .compare-inputs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .comparison-head {
    display: none;
  }

  .comparison-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .comparison-row span:first-child {
    grid-column: 1 / -1;
    font-weight: 900;
  }

  .comparison-row span:not(:first-child)::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
  }

  .comparison-row span:nth-child(2)::before {
    content: "A";
  }

  .comparison-row span:nth-child(3)::before {
    content: "B";
  }

  .comparison-row span:nth-child(4)::before {
    content: "差額";
  }

  .comparison-row span:nth-child(5)::before {
    content: "變化";
  }

  .comparison-row span:nth-child(6)::before {
    content: "佔比變化";
  }
}

@media (max-width: 760px) {
  .bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bar-row strong {
    text-align: left;
  }

  .bar-detail {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .app-shell,
  .sidebar,
  .content {
    width: 100%;
    max-width: 100vw;
  }

  .app-shell {
    min-height: auto;
    align-content: start;
    row-gap: 0;
  }

  .content,
  .sidebar {
    padding: 8px;
  }

  .sidebar {
    gap: 6px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand h1 {
    font-size: 0.96rem;
  }

  .brand p {
    font-size: 0.78rem;
  }

  .desktop-label {
    display: none;
  }

  .mobile-label {
    display: inline;
  }

  .month-panel {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 6px;
    padding: 6px;
  }

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

  .tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    max-width: 100%;
    padding-bottom: 0;
    gap: 6px;
  }

  .tab {
    min-width: 0;
    width: 100%;
    min-height: 36px;
    padding: 0 4px;
    text-align: center;
    font-size: 0.82rem;
  }

  .secondary-tab {
    display: none;
  }

  .secondary-tab.show-mobile {
    display: block;
  }

  .more-tab {
    display: block;
  }

  .sync-panel {
    display: none;
  }

  .sidebar {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .content {
    padding-top: 4px;
    margin-top: 0;
  }

  .summary-grid,
  .dashboard-strip {
    display: none;
  }

  .tab,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button,
  input,
  select,
  textarea {
    min-height: 46px;
  }

  #manualView .primary-button,
  #manualView .ghost-button,
  #manualView input,
  #manualView select {
    min-height: 42px;
  }

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

  .dashboard-strip {
    padding: 14px;
    gap: 10px;
  }

  .metric {
    padding: 14px;
  }

  .metric strong {
    font-size: clamp(1.05rem, 6vw, 1.35rem);
  }

  .view,
  .ledger-section {
    padding: 10px;
    margin-bottom: 8px;
  }

  #manualView {
    padding-top: 6px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  #manualView .section-heading {
    display: none;
  }

  #ledgerView {
    padding-top: 10px;
  }

  #ledgerView .section-heading {
    display: none;
  }

  .ledger-tools {
    position: static;
    top: 0;
    z-index: 8;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: -2px 0 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
  }

  .ledger-tools label:first-child {
    grid-column: 1 / -1;
  }

  .calendar-panel {
    padding: 8px;
    margin-bottom: 10px;
  }

  .calendar-heading {
    margin-bottom: 0;
  }

  .calendar-heading strong {
    font-size: 0.95rem;
  }

  .calendar-actions .ghost-button {
    min-height: 36px;
    padding: 0 10px;
  }

  .expense-form {
    gap: 8px;
  }

  .section-heading {
    margin-bottom: 8px;
  }

  .section-heading h2 {
    font-size: 1.18rem;
  }

  label {
    gap: 5px;
  }

  input,
  select,
  textarea {
    padding: 8px 10px;
  }

  .quick-template-panel {
    padding: 4px 0 6px;
    margin-bottom: 8px;
    border: 0;
    background: transparent;
  }

  .quick-template-head {
    margin-bottom: 6px;
  }

  .quick-template-head .eyebrow {
    display: none;
  }

  .small-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .quick-templates {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .quick-templates .extra-template {
    display: none;
  }

  .template-button {
    min-width: 0;
    min-height: 34px;
    padding: 0 3px;
    font-size: 0.8rem;
  }

  .calendar-panel {
    padding: 10px;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    min-height: 46px;
    padding: 5px 2px;
  }

  .calendar-day span {
    font-size: 0.66rem;
  }

  .section-heading,
  .expense-item {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  .expense-list {
    gap: 6px;
  }

  .date-group-header {
    top: 116px;
    margin-top: 2px;
    padding: 7px 2px;
    font-size: 0.9rem;
  }

  .date-pill {
    width: 100%;
    justify-content: center;
    min-height: auto;
    padding: 9px 10px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .item-side {
    justify-content: space-between;
  }

  .item-meta {
    line-height: 1.45;
  }

  .delete-button,
  .edit-button {
    width: 42px;
    height: 42px;
  }
}
