.travel-budget .btn, .travel-check .btn { min-height: 44px; }
.budget-overview {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  column-gap: 9px;
  min-height: 136px;
  border-radius: 19px;
  background: var(--accent);
  color: white;
  padding: 16px;
}
.budget-overview h2 { margin: 0 0 5px; font-size: 14px; font-weight: 650; }
.budget-spent { display: block; font-size: clamp(23px,7vw,39px); font-variant-numeric: tabular-nums; line-height: 1.15; }
.budget-overview p { margin: 7px 0 0; font-size: 13px; line-height: 1.35; }
.budget-balance { grid-column: 1 / -1; border-top: 1px solid #ffffff50; padding-top: 8px; }
.budget-balance:empty { display: none; }
.budget-ring {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 6px solid #7494e9;
  border-radius: 50%;
  background: var(--accent);
  font-size: 17px;
  font-weight: 800;
}
@supports (background: conic-gradient(white, blue)) {
  .budget-ring { border: 0; background: conic-gradient(white 0 var(--budget-fill), #7494e9 var(--budget-fill)); }
  .budget-ring span { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--accent); }
}
.budget-entry-actions { margin: 10px 0; }
.budget-entry-actions .btn { flex: 1 1 auto; }
.budget-entry-actions .btn.primary { background: var(--accent); border: 0; box-shadow: 0 2px 6px #002fa729; }
.budget-categories, .check-progress, .check-list {
  background: var(--tile);
  border: 1px solid var(--travel-line);
  border-radius: 15px;
  box-shadow: var(--travel-shadow);
}
.budget-categories { padding: 10px 12px 2px; }
.budget-categories h2 { margin: 4px 0 3px; font-size: 16px; }
.budget-categories ul, .check-list { list-style: none; margin: 0; padding: 0; }
.budget-categories li {
  display: grid;
  grid-template-columns: 21px minmax(0,1fr) minmax(0,auto);
  min-height: 39px;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--travel-line);
  font-size: 14px;
}
.budget-categories li:first-child { border-top: 0; }
.budget-categories li svg { width: 19px; height: 19px; color: var(--accent); }
.budget-categories li strong { text-align: right; font-variant-numeric: tabular-nums; }
.budget-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 10px 0; }
.budget-links a {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  text-decoration: none;
}
.budget-links svg { width: 16px; height: 16px; }
.budget-detail { scroll-margin-top: calc(9px + env(safe-area-inset-top)); padding: 14px; }
.budget-detail h3 { margin: 0 0 10px; font-size: 17px; }
.budget-detail .expense-pairs { margin: 7px 0 14px; }
.budget-detail .expense-pairs > div { background: #e8efff; }
.budget-detail .flight-form .field, .budget-detail .flight-form input, .budget-detail .flight-form select { min-width: 0; }
.budget-detail input, .budget-detail select { font-size: 16px; }
.check-filter { margin-bottom: 7px; }
.check-filter button { padding-inline: 11px; }
.check-progress { padding: 10px 13px; margin-bottom: 9px; font-size: 14px; }
.check-progress progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 6px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 15px;
  overflow: hidden;
  background: #dbe5f8;
  accent-color: var(--accent);
}
.check-progress progress::-webkit-progress-bar { background: #dbe5f8; }
.check-progress progress::-webkit-progress-value { background: var(--accent); border-radius: 15px; }
.check-progress progress::-moz-progress-bar { background: var(--accent); border-radius: 15px; }
.check-list { padding: 0 9px; }
.check-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 44px;
  gap: 4px;
  align-items: center;
  border-top: 1px solid var(--travel-line);
}
.check-row:first-child { border-top: 0; }
.check-control {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 6px 3px;
  cursor: pointer;
}
.check-control input { flex: 0 0 auto; width: 21px; height: 21px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.check-copy { display: grid; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.35; }
.check-copy small { color: #475571; font-size: 11px; }
.check-control input:checked + .check-copy strong { color: #475571; }
.check-control input:focus-visible { outline: 2px solid #075de0; outline-offset: 3px; }
.check-edit {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
}
.check-edit svg { width: 17px; height: 17px; color: #365991; }
.travel-check .travel-paper { padding-bottom: 16px; }
@media print {
  :is(.travel-budget,.travel-check) { display: none; }
}
