:root {
  --paper: #f5f5ed;
  --ink: #182b21;
  --muted: #526257;
  --green: #184d39;
  --green-dark: #103b2b;
  --line: #dfe5db;
}
.topbar { gap: 12px; padding-bottom: 15px; }
.brand-mark { color: white; background: var(--green); width: 46px; height: 46px; }
.brand-copy h1 { font-size: 23px; }
.settings-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  flex: none; min-height: 44px; padding: 0 8px; border-radius: 9px;
  background: transparent; border: 0; color: var(--green);
  font: inherit; font-size: 14px; font-weight: 750; cursor: pointer;
}
.settings-button[aria-pressed="true"] { background: #e5eee2; }
.department-add { margin-top: 12px; margin-bottom: 0; }
.department-add .action-button { width: 100%; }
.settings-button svg, .settings-action-icon svg {
  display: block; width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.settings-page .page-title { margin: 9px 0 16px; font-size: 24px; }
.settings-card { padding: 14px; }
.settings-card h3 { color: var(--ink); font-size: 16px; margin-bottom: 9px; }
.settings-card p { font-size: 14px; }
.settings-action {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 61px;
  padding: 8px 10px; border: 1px solid #dce7db; border-radius: 13px;
  color: var(--ink); background: #f2f6ef; font: inherit; text-align: start; cursor: pointer;
}
.settings-action + .settings-action { margin-top: 8px; }
.settings-action:active, .settings-button:active { transform: scale(.98); }
.settings-action-icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 11px; color: var(--green); background: #dfebdf;
}
.settings-action strong, .settings-action small { display: block; }
.settings-action strong { font-size: 16px; }
.settings-action small { color: var(--muted); margin-top: 3px; font-size: 13px; line-height: 1.4; }
.settings-version { text-align: center; color: var(--muted); font-size: 13px; }
.list-head { margin: 3px 0 13px; }
.list-heading { font-size: 24px; line-height: 1.3; }
.trip-date { color: var(--muted); font-size: 14px; }
.share-banner {
  display: flex; align-items: center; gap: 10px; text-align: start;
  width: 100%; min-height: 58px; margin: 0 0 10px; padding: 7px 9px;
  border: 1px solid #cddccc; border-radius: 15px; background: #eaf0e6;
  color: var(--green); font: inherit; cursor: pointer;
}
.share-mark {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 11px; color: var(--green); background: #dce9dc;
}
.share-mark svg, .department-chip svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.share-copy { flex: 1; min-width: 0; }
.share-copy strong, .share-copy small { display: block; }
.share-copy small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.share-action { font-size: 14px; font-weight: 750; padding-inline: 6px; }
.progress-card { padding: 12px; margin-bottom: 15px; background: var(--green); }
.progress-top { color: #fff; font-size: 14px; }
.progress-top span:first-child { font-size: 17px; }
.progress-track { height: 6px; background: #ffffff43; }
.progress-fill { background: #b8e0a9; }
.section-heading { font-size: 17px; }
.department-title { font-size: 15px; color: #334c3a; }
.item-card { gap: 7px; padding: 8px; border-color: #e4e8df; }
.item-main {
  appearance: none; border: 0; background: transparent; color: inherit;
  font: inherit; text-align: start; padding: 2px 0; min-height: 44px;
}
.item-name { font-size: 17px; }
.item-meta { color: #48604e; font-size: 14px; font-weight: 650; }
.check-button { width: 48px; height: 48px; border-color: #7c9483; }
.check-button.checked { color: white; }
.purchased-list .item-card { opacity: 1; background: #edf2e9; }
.department-chip, .star-button, .details-toggle, .close-button, .more-button {
  min-height: 44px; min-width: 44px;
}
.department-chip { display: grid; place-items: center; padding: 7px; border-radius: 12px; }
.star-button { color: #66796a; }
.star-button.is-starred { color: #9f650c; }
.empty-state { padding-top: 30px; }
.empty-state h2 { font-size: 21px; }
.empty-state p, .page-subtitle { font-size: 15px; color: var(--muted); }
.quick-add { bottom: calc(71px + var(--safe-bottom) + var(--keyboard-inset, 0px)); gap: 6px; }
.quick-add input::placeholder { color: #626f65; }
.add-button { min-width: 75px; font-size: 16px; }
.detail-fields input, .form-label input, .form-label select, .form-label textarea { font-size: 16px; }
.nav-item { color: #55675a; font-size: 14px; }
.nav-item.active { background: #e5eee2; color: var(--green); }
.toast { bottom: calc(145px + var(--safe-bottom) + var(--keyboard-inset, 0px)); }
.toast button, .history-card .action-button { min-height: 44px; }
body.keyboard-open .bottom-nav { visibility: hidden; }
body.keyboard-open .quick-add { bottom: calc(8px + var(--keyboard-inset)); }
.modal { max-height: calc(min(82dvh, 720px) - var(--keyboard-inset, 0px)); }
.modal-backdrop { padding-bottom: calc(15px + var(--keyboard-inset, 0px)); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #417457; outline-offset: 2px; }
