/* ============================================================
   LAYOUT + COMPONENTS
   ============================================================ */

.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100%;
  padding-bottom: calc(84px + var(--safe-bottom));
  position: relative;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(14px + var(--safe-top)) 16px 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: rgba(238,241,234,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.topbar .brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.topbar .brand .brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.topbar .brand .brand-sub {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 1px;
}
.topbar .date-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  margin-top: 3px;
}
.date-chip-wrap {
  position: relative;
  display: inline-block;
  margin-top: 3px;
}

.date-chip-wrap .date-chip {
  margin-top: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Universal date picker ---------- */
.flatpickr-calendar {
  font-family: var(--font-body);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(32,43,34,0.18);
  overflow: hidden;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
  display: none;
}

.flatpickr-months {
  background: var(--paper-raised);
  padding-top: 4px;
}

.flatpickr-current-month {
  font-weight: 700;
}

.flatpickr-weekdays {
  background: var(--paper-raised);
}

.flatpickr-weekday {
  color: var(--ink-soft);
  font-weight: 700;
}

.flatpickr-day {
  border-radius: 8px;
  font-weight: 500;
}

.flatpickr-day.today {
  border-color: var(--turmeric);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--petrol);
  border-color: var(--petrol);
  color: #fff;
}

.flatpickr-day:hover {
  background: var(--paper-sunken);
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
  fill: var(--petrol);
}

/* ---------- Bottom nav ---------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
}
.tabbar-inner {
  width: 100%;
  max-width: 560px;
  margin: 0 16px;
  margin-bottom: calc(14px + var(--safe-bottom));
  background: rgba(32,43,34,0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-radius: var(--radius-l);
  display: flex;
  box-shadow: 0 12px 30px rgba(32,43,34,0.28);
  overflow: hidden;
}
.tabbar a {
  flex: 1;
  text-decoration: none;
  color: rgba(238,241,234,0.55);
  text-align: center;
  padding: 13px 8px 11px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}
.tabbar a svg { width: 20px; height: 20px; }
.tabbar a.active { color: var(--turmeric); }

/* ---------- Section headers ---------- */
/* ---------- Tip banner ---------- */
.tip-banner {
  margin: 4px 16px 8px;
  background: var(--turmeric-wash);
  border: 1px solid var(--turmeric);
  border-radius: var(--radius-m);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
}

.tip-banner .tip-emoji {
  font-size: 17px;
  flex: 0 0 18px;
  width: 18px;
  line-height: 1;
  text-align: center;
}

.tip-ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.tip-banner .tip-text {
  display: inline-block;
  min-width: max-content;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
  will-change: transform;
  animation: tipScroll 11s linear infinite;
}

@keyframes tipScroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .tip-banner .tip-text {
    animation: none;
  }
}

/* ---------- Pill search ---------- */
.pill-search {
  padding: 4px 16px 6px;
}
.pill-search input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--ink);
}
.pill-search input::placeholder { color: var(--ink-faint); }
.pill-search input:focus { border-color: var(--petrol); }

/* ---------- Category groups ---------- */
.group {
  margin: 2px 16px 12px;
}
.group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 6px;
}
.group-label .swatch { width: 7px; height: 7px; border-radius: 2px; }
.group-label span { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cat-1);
  border-radius: 25.5px;
  padding: 10.5px 15px;
  font-size: 19.5px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  min-height: 51px;
  display: flex;
  align-items: center;
}
.pill:active { transform: scale(0.96); }
.pill:hover { box-shadow: var(--shadow-card); }

@keyframes pillFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pill.pill-enter,
.group.group-enter {
  animation: pillFadeIn 0.28s ease-out both;
}

/* ---------- Category picker (choosing a category for a new
   custom item) — deliberately smaller and a single uniform accent
   color, distinct from real category pills elsewhere, so this
   "picking mode" reads as a different kind of choice. Category
   names show in Title Case here regardless of how they're actually
   typed in the Heads sheet. ---------- */
.category-picker-pill {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  min-height: 32px;
  border-left: 3px solid var(--petrol);
  text-transform: capitalize;
}

.add-custom-pill {
  background: var(--turmeric-deep);
  border: 1px solid var(--turmeric-deep);
  border-left: 3px solid var(--turmeric-deep);
  color: #fff;
  font-weight: 600;
}
.add-custom-pill:disabled {
  opacity: 0.45;
  cursor: default;
}

/* ---------- Bottom sheet: amount entry (signature element) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,26,18,0.42);
  backdrop-filter: blur(1px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 61;
  background: var(--paper-raised);
  border-radius: 24px;
  box-shadow: var(--shadow-sheet);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(.32,.72,.35,1), opacity 0.18s ease;
  width: calc(100% - 32px);
  max-width: 420px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.sheet-scroll {
  overflow-y: auto;
  padding: 6px 18px 4px;
  flex: 1 1 auto;
  min-height: 0;
}

.sheet-footer {
  flex: 0 0 auto;
  padding: 8px 18px calc(10px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
}

.sheet-handle {
  display: none;
}

.sheet-item-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}
.sheet-item-group {
  text-align: center;
  color: var(--ink-soft);
  font-size: 11px;
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Calculator card / amount entry ---------- */
.receipt {
  margin: 16px 0 18px;
  background: #eef1ea;
  border-radius: 28px;
  padding: 20px 16px 18px;
  position: relative;
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.receipt::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 12px;
  right: 12px;
  height: 16px;
  background-image: radial-gradient(circle at 8px 8px, var(--paper-raised) 7px, transparent 7.5px);
  background-size: 16px 16px;
  background-repeat: repeat-x;
}

.receipt-amount {
  font-family: var(--font-mono);
  font-size: 62px;
  line-height: 1;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.025em;
  color: var(--ink);
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.receipt-amount .currency {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-right: 9px;
  vertical-align: 0;
}

.receipt-amount .caret {
  display: inline-block;
  width: 3px;
  background: var(--turmeric-deep);
  animation: blink 1s step-end infinite;
  margin-left: 4px;
  height: 48px;
  vertical-align: 0;
}

@keyframes blink { 50% { opacity: 0; } }

.calculator-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 16px;
  align-items: start;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 0;
}

.keypad button {
  appearance: none;
  -webkit-appearance: none;
  background: #eef1ea;
  border: 0;
  border-radius: 28px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
  min-height: 82px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease, background 0.12s ease;
}

.keypad button:active {
  transform: scale(0.94);
  background: #e3e7df;
}

.keypad button:hover {
  background: #e7ebe4;
}

.keypad button.zero-double { grid-column: span 1; }

.keypad button.backspace {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 39px;
  font-weight: 500;
}

.side-options {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 42px;
}

.field-label {
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin: -4px 0 2px;
  text-align: CENTER;
}

.field-col {
  min-width: 0;
}

.choice-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.choice-pill {
  border: 0;
  background: #eef1ea;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  min-height: 52px;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.16s ease, color 0.16s ease, transform 0.08s ease, box-shadow 0.16s ease;
}

.choice-pill:active {
  transform: scale(0.95);
}

.choice-pill.selected {
  background: #7bc67d;
  border-color: transparent;
  color: #0d2110;
  box-shadow: none;
}

.save-btn {
  width: 100%;
  background: #a37c3e;
  color: #fff;
  border: none;
  border-radius: 26px;
  padding: 0 18px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  min-height: 60px;
  transition: transform 0.08s ease, background 0.16s ease, opacity 0.16s ease;
}

.save-btn:not(:disabled) {
  background: var(--ink);
}

.save-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.save-btn:disabled { opacity: 1; }

.save-btn.danger { background: var(--chili); color: #fff; }

.sheet-footer {
  flex: 0 0 auto;
  padding: 12px 18px calc(14px + var(--safe-bottom));
  border-top: 0;
  background: var(--paper-raised);
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 54px;
  height: 54px;
  border: none;
  background: #e9ece6;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 32px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.sheet-close:active {
  transform: scale(0.94);
}

.sheet-scroll {
  overflow-y: auto;
  padding: 20px 18px 8px;
  flex: 1 1 auto;
  min-height: 0;
}

.sheet-handle {
  display: block;
  width: 120px;
  height: 9px;
  border-radius: 999px;
  background: #c5c9c4;
  margin: 0 auto 28px;
}

.sheet-item-name {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  padding: 0 58px;
}

.sheet-item-group {
  text-align: center;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.2;
  margin-top: 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Desktop keeps the same visual language while staying compact. */
@media (min-width: 700px) {
  .sheet {
    width: min(720px, calc(100% - 32px));
    max-width: 720px;
    max-height: min(900px, 92vh);
    border-radius: 30px;
  }

  .sheet-scroll {
    padding-left: 30px;
    padding-right: 30px;
  }

  .sheet-footer {
    padding-left: 30px;
    padding-right: 30px;
  }

  .calculator-body {
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 24px;
  }

  .keypad {
    gap: 12px;
  }

  .keypad button {
    min-height: 92px;
    font-size: 46px;
  }

  .side-options {
    padding-top: 48px;
  }

  .choice-pill {
    min-height: 58px;
    font-size: 17px;
  }
}

/* iPhone-sized screens: preserve the attached reference proportions. */
@media (max-width: 430px) {
  .sheet {
    width: calc(100% - 14px);
    max-height: 94vh;
    border-radius: 28px;
  }

  .sheet-scroll {
    padding: 1px 14px 6px;
  }

  .sheet-handle {
    width: 120px;
    height: 8px;
    margin-bottom: 13px;
  }

  .sheet-item-name {
    font-size: 25px;
  }

  .sheet-item-group {
    font-size: 15px;
  }

  .receipt {
    min-height: 100px;
    margin-top: 15px;
    margin-bottom: 14px;
  }

  .receipt-amount {
    font-size: 58px;
  }

  .receipt-amount .currency {
    font-size: 28px;
  }

  .calculator-body {
    grid-template-columns: minmax(0, 1fr) 106px;
    gap: 13px;
  }

  .keypad {
    gap: 9px;
  }

  .keypad button {
    min-height: 76px;
    border-radius: 25px;
    font-size: 37px;
  }

  .keypad button.backspace {
    font-size: 36px;
  }

  .side-options {
    padding-top: 0px;
    gap: 26px;
  }

  .field-label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .choice-row {
    gap: 8px;
  }

  .choice-pill {
    min-height: 48px;
    font-size: 14px;
  }

  .sheet-close {
    width: 50px;
    height: 50px;
    font-size: 30px;
    top: 12px;
    right: 12px;
  }

  .sheet-footer {
    padding: 10px 14px calc(12px + var(--safe-bottom));
  }

  .save-btn {
    min-height: 58px;
    font-size: 18px;
  }
}

/* ---------- Toast / Undo ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: calc(96px + var(--safe-bottom));
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 14px 12px 18px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 14px;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(.32,.72,.35,1);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button {
  background: none; border: none; color: var(--turmeric);
  font-weight: 700; font-size: 14px; cursor: pointer;
}

/* ---------- Dashboard ---------- */
.dash-tabs { display: flex; gap: 8px; margin: 6px 20px 4px; }
.dash-tabs button {
  flex: 1;
  border: none; background: transparent;
  padding: 10px 0;
  font-weight: 700; font-size: 13.5px;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--line);
}
.dash-tabs button.active { color: var(--ink); border-color: var(--petrol); }

.month-nav {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 14px 20px 4px;
}
.month-nav button {
  background: var(--paper-raised); border: 1px solid var(--line);
  width: 34px; height: 34px; border-radius: 50%; font-size: 16px; color: var(--ink);
}
.month-nav .month-label { font-family: var(--font-display); font-size: 17px; font-weight: 600; min-width: 150px; text-align: center; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 20px;
}
.stat-card {
  background: var(--paper-raised);
  border-radius: var(--radius-m);
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.stat-card .label { font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.stat-card .value { font-family: var(--font-mono); font-size: 22px; margin-top: 6px; }
.stat-card .value small { font-size: 13px; color: var(--ink-soft); }
.stat-card.accent { background: var(--petrol); border-color: var(--petrol); }
.stat-card.accent .label { color: var(--petrol-wash); }
.stat-card.accent .value { color: #fff; }

.chart-card {
  background: var(--paper-raised);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  margin: 14px 20px;
  padding: 16px 16px 8px;
}
.chart-card .chart-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 10px; }
.chart-card canvas { max-width: 100%; }

.legend-list { list-style: none; padding: 0; margin: 10px 0 0; }
.legend-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; border-top: 1px dashed var(--line); }
.legend-list li:first-child { border-top: none; }
.legend-list .sw { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.legend-list .nm { flex: 1; }
.legend-list .amt { font-family: var(--font-mono); font-weight: 600; }
.legend-list .pct { color: var(--ink-soft); font-size: 12px; width: 38px; text-align: right; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 6px;
}
.calendar-grid .dow { font-size: 10.5px; color: var(--ink-faint); text-align: center; font-weight: 700; padding-bottom: 4px; }
.cal-cell {
  aspect-ratio: 1;
  border-radius: 7px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px;
  background: var(--paper-sunken);
  color: var(--ink-soft);
  position: relative;
}
.cal-cell .d { font-weight: 700; font-size: 10.5px; }
.cal-cell.empty { background: transparent; }
.cal-cell.has-spend { color: var(--ink); }
.cal-cell .amt { font-family: var(--font-mono); font-size: 8.5px; margin-top: 1px; }

.compare-bars { margin-top: 8px; }
.compare-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.compare-row .cm-label { width: 64px; font-size: 12px; color: var(--ink-soft); flex: 0 0 auto; }
.compare-row .cm-track { flex: 1; background: var(--paper-sunken); border-radius: var(--radius-pill); height: 20px; position: relative; overflow: hidden; }
.compare-row .cm-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--radius-pill); background: var(--petrol); }
.compare-row .cm-fill.now { background: var(--turmeric-deep); }
.compare-row .cm-amt { width: 76px; text-align: right; font-family: var(--font-mono); font-size: 12.5px; flex: 0 0 auto; }

/* ---------- Transactions tab ---------- */
.filter-bar {
  margin: 12px 20px 4px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.filter-bar input[type="text"] {
  flex: 1 1 100%;
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  font-size: 14px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.filter-chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
select.filter-select {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: var(--radius-pill);
  padding: 7px 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.filtered-total {
  margin: 12px 20px 2px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--ink-soft);
}
.filtered-total b { font-family: var(--font-mono); color: var(--ink); font-size: 15px; }

.txn-list { margin: 8px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.txn-row {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
}
.txn-row .txn-swatch { width: 4px; align-self: stretch; border-radius: 2px; }
.txn-row .txn-main { flex: 1; min-width: 0; }
.txn-row .txn-item { font-weight: 700; font-size: 14.5px; }
.txn-row .txn-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.txn-row .txn-amt { font-family: var(--font-mono); font-size: 15.5px; font-weight: 600; text-align: right; }
.txn-row .txn-actions { display: flex; gap: 6px; }
.txn-row .txn-actions button {
  border: none; background: var(--paper-sunken); width: 28px; height: 28px; border-radius: 50%;
  font-size: 12px; color: var(--ink-soft);
}

.empty-state {
  text-align: center;
  padding: 14px 30px 24px;
  color: var(--ink-soft);
}
.empty-state p { font-size: 13.5px; margin: 4px 0 0; }

/* ---------- Shopping list ---------- */
.shopping-add-bar {
  display: flex;
  gap: 8px;
  padding: 4px 16px 6px;
}
.shopping-add-bar input {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--ink);
}
.shopping-add-bar input::placeholder { color: var(--ink-faint); }
.shopping-add-bar input:focus { border-color: var(--petrol); }
.shopping-add-bar button {
  border: none;
  background: var(--turmeric);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
}
.shopping-add-bar button:active { transform: scale(0.96); }

.shopping-row .shopping-toggle { cursor: pointer; }
.shopping-row.bought .txn-item {
  text-decoration: line-through;
  color: var(--ink-faint);
}

/* ---------- Misc ---------- */
.hidden { display: none !important; }

