:root {
  --green: #16c64f;
  --green-dark: #17863e;
  --green-soft: #edf9ef;
  --bg: #f2f4ef;
  --card: #ffffff;
  --ink: #2e312d;
  --muted: #737a72;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --line: #e2e6df;
  --shadow: 0 2px 8px rgba(28, 40, 31, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { overflow-x: hidden; }
.card, .sheet, form { position: relative; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.4;
}
a { color: inherit; text-decoration: none; }
button, .btn, a.btn { font: inherit; }
.icon { width: 22px; height: 22px; display: block; }
.icon.sm { width: 18px; height: 18px; }

.topbar {
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(0px + env(safe-area-inset-top)) 20px 0;
  min-height: 56px;
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: visible;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.03em; font-size: 20px; padding: 9px 8px 9px 0; }
.brand-symbol { width: 34px; height: 34px; flex: 0 0 34px; filter: drop-shadow(0 3px 7px rgba(4, 67, 42, .24)); }
.auth-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.auth-brand h1, .auth-brand strong { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.auth-brand.compact { margin-bottom: 16px; }
.auth-brand.compact strong { font-size: 21px; }
.auth-brand-symbol { width: 54px; height: 54px; flex: 0 0 54px; filter: drop-shadow(0 8px 16px rgba(8, 123, 77, .2)); }
.auth-remember { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 18px; cursor: pointer; }
.auth-remember input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: var(--green); }
.auth-remember span, .auth-remember strong, .auth-remember small { display: block; }
.auth-remember strong { font-size: 14px; }
.auth-remember small { margin-top: 1px; color: var(--muted); font-size: 12px; font-weight: 400; }

html.app-splash-active, html.app-splash-active body { overflow: hidden; }
.app-splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; background: linear-gradient(155deg, #032e25 0%, #075c43 52%, #087b4d 100%); color: #fff; opacity: 1; transition: opacity .4s ease, visibility .4s ease; }
.app-splash::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 15%, rgba(40, 214, 117, .24), transparent 38%), radial-gradient(circle at 15% 90%, rgba(255, 209, 102, .1), transparent 30%); }
.app-splash-halo { position: absolute; width: min(92vw, 560px); aspect-ratio: 1; border: 1px solid rgba(175, 244, 205, .14); border-radius: 50%; opacity: 0; transform: scale(.62); }
.app-splash-halo::before, .app-splash-halo::after { content: ""; position: absolute; border: 1px solid rgba(175, 244, 205, .1); border-radius: inherit; }
.app-splash-halo::before { inset: 11%; }
.app-splash-halo::after { inset: 24%; }
.app-splash-brand { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.app-splash-mark { width: clamp(116px, 32vw, 164px); height: auto; opacity: 0; transform: translateY(12px) scale(.88); filter: drop-shadow(0 24px 34px rgba(0, 20, 12, .3)); }
.app-splash-brand strong { margin-top: 24px; font-size: clamp(31px, 9vw, 44px); letter-spacing: -.05em; opacity: 0; transform: translateY(12px); }
.app-splash-brand > span { margin-top: 7px; color: #bef5d4; font-size: clamp(13px, 3.8vw, 17px); letter-spacing: .01em; opacity: 0; transform: translateY(9px); }
.app-splash .brand-mark-card, .app-splash .brand-mark-back-card { opacity: 0; transform: translateY(34px) rotate(-4deg); transform-box: fill-box; transform-origin: center; }
.app-splash .brand-mark-route { stroke-dasharray: 310; stroke-dashoffset: 310; }
.app-splash .brand-mark-arrow { opacity: 0; transform-box: fill-box; transform-origin: center; }
.app-splash .brand-mark-lane { opacity: 0; }
.app-splash.is-playing .app-splash-halo { animation: splash-halo 1.25s .08s ease-out forwards; }
.app-splash.is-playing .app-splash-mark { animation: splash-mark-in .48s cubic-bezier(.2,.8,.2,1) forwards; }
.app-splash.is-playing .brand-mark-card, .app-splash.is-playing .brand-mark-back-card { animation: splash-card .52s .12s cubic-bezier(.2,.8,.2,1) forwards; }
.app-splash.is-playing .brand-mark-route { animation: splash-route .58s .4s ease-out forwards; }
.app-splash.is-playing .brand-mark-arrow { animation: splash-arrow .3s .84s cubic-bezier(.2,.9,.25,1.25) forwards; }
.app-splash.is-playing .brand-mark-lane { animation: splash-lane .32s .7s ease-out forwards; }
.app-splash.is-playing .app-splash-brand strong { animation: splash-copy .38s .88s ease-out forwards; }
.app-splash.is-playing .app-splash-brand > span { animation: splash-copy .38s 1.02s ease-out forwards; }
.app-splash.is-leaving { opacity: 0; visibility: hidden; }
.app-splash.is-leaving .app-splash-brand { transform: scale(1.035); transition: transform .4s ease; }
@keyframes splash-mark-in { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes splash-card { to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes splash-route { to { stroke-dashoffset: 0; } }
@keyframes splash-arrow { from { opacity: 0; transform: translate(-10px, 10px) scale(.7); } to { opacity: 1; transform: translate(0, 0) scale(1); } }
@keyframes splash-lane { to { opacity: 1; } }
@keyframes splash-copy { to { opacity: 1; transform: translateY(0); } }
@keyframes splash-halo { 45% { opacity: 1; } to { opacity: 0; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .app-splash, .app-splash * { animation: none !important; transition-duration: .01ms !important; }
  .app-splash-mark, .app-splash-brand strong, .app-splash-brand > span { opacity: 1; transform: none; }
  .app-splash .brand-mark-card, .app-splash .brand-mark-back-card { opacity: 1; transform: none; }
  .app-splash .brand-mark-route { stroke-dashoffset: 0; }
  .app-splash .brand-mark-arrow { opacity: 1; transform: none; }
  .app-splash .brand-mark-lane { opacity: 1; }
}
.nav-desktop { display: flex; gap: 2px; align-self: stretch; }
.nav-desktop a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  opacity: .92;
  text-transform: lowercase;
  font-weight: 500;
  font-size: 14px;
  border-bottom: 3px solid transparent;
}
.nav-desktop a.active { opacity: 1; font-weight: 700; border-bottom-color: #fff; }
.nav-desktop a:hover { opacity: 1; }
.bottom-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 10px;
  opacity: .88;
}
.bottom-nav a.active { opacity: 1; background: rgba(255,255,255,.16); font-weight: 650; }
.top-spacer { margin-left: auto; display: flex; gap: 4px; align-items: center; align-self: stretch; }
.user-chip {
  background: rgba(255,255,255,.22);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 750;
  padding: 0;
}

.page { max-width: 1120px; margin: 0 auto; padding: 20px 16px 108px; }
.accent-red { border-left: 4px solid #ef4444; }
.accent-green { border-left: 4px solid var(--green); }
.pill { background: var(--green-soft); color: var(--green-dark); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 650; }
.card {
  background: var(--card);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
h1, h2, h3 { margin: 0 0 12px; letter-spacing: -.02em; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--green-soft); border-radius: 14px; padding: 12px; }
.money { font-weight: 750; font-variant-numeric: tabular-nums; }
.money.neg { color: var(--danger); }
.money.pos { color: var(--green-dark); }
.money.blue { color: #2563eb; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.topbar .btn.light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 4px; }
input[type="checkbox"], input[type="radio"] { width: auto; margin: 0 6px 0 0; vertical-align: middle; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  min-height: 46px;
  margin-bottom: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  accent-color: var(--green);
}
textarea { min-height: 88px; }
select[multiple] { min-height: 46px; height: 46px; }
input[type="color"] { width: 64px; padding: 4px; }
.row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.share-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(280px, 1.5fr); align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.share-row > .share-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: inherit;
  font-weight: 650;
}
.share-person > span { display: flex; flex-direction: column; gap: 1px; }
.share-person small { color: var(--muted); font-size: 11px; font-weight: 500; }
.share-row input[type="checkbox"] { width: auto; min-height: 0; margin: 0; }
.share-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.share-values > label { min-width: 0; margin: 0; }
.share-values > label > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.share-values .money-input { width: 100%; margin: 0; text-align: right; }
.shares-summary { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 12px 0 2px; }
.shares-summary b { color: var(--green-dark); }
.shares-summary small { grid-column: 1 / -1; color: var(--muted); }
.installment-preview {
  margin: 10px 0 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.installment-preview .ip-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 12px;
  font-size: 14px;
}
.installment-preview .ip-row + .ip-row { border-top: 1px solid var(--line); }
.installment-preview .ip-row.ip-sum { font-weight: 700; background: var(--green-soft); }
.installment-preview .muted { font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.password-field { position: relative; margin-bottom: 10px; }
.password-field input { margin-bottom: 0; padding-right: 46px; }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.password-toggle:hover, .password-toggle:focus-visible { color: var(--ink); background: var(--green-soft); }

.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }
.alert.success { background: var(--green-soft); color: var(--green-dark); }
.alert.warning { background: #ffedd5; }
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: 0; }
.muted { color: var(--muted); font-size: 13px; }
.chart-donut { display: grid; grid-template-columns: minmax(210px, 280px) 1fr; gap: 18px; align-items: center; }
.chart-wrap { position: relative; height: 240px; }
.chart-wrap-wide { height: 280px; }
.chart-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
.chart-toggle .btn { min-height: 36px; padding: 6px 14px; }
.chart-legend-item { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 8px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.chart-legend-item:last-child { border-bottom: 0; }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.chart-legend-name { font-weight: 650; }
.chart-legend-bar { grid-column: 1 / -1; height: 5px; background: #eef3f0; border-radius: 99px; overflow: hidden; }
.chart-legend-bar > span { display: block; height: 100%; border-radius: 99px; }
.chart-empty { text-align: center; color: var(--muted); padding: 28px 8px; margin: 0; }
.export-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.export-pick-item {
  display: flex; align-items: center; gap: 0; margin: 0; padding: 0; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; cursor: pointer; min-height: 64px; overflow: hidden;
}
.export-pick-item input { position: absolute; opacity: 0; pointer-events: none; }
.export-pick-body { display: flex; align-items: center; gap: 10px; padding: 12px 14px; width: 100%; }
.export-pick-body .muted { display: block; font-size: 12px; }
.export-pick-item.on { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.export-pick-item:hover { border-color: #b7cfc0; }

.swal2-popup.scope-swal {
  width: 520px;
  max-width: calc(100vw - 32px);
  padding: 28px 24px 20px;
  border-radius: 8px;
}
.swal2-popup.scope-swal .swal2-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 6px;
}
.swal2-popup.scope-swal .swal2-html-container {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
}
.scope-swal-sub { margin: 0; }
.swal2-popup.scope-swal .swal2-actions {
  width: 100%;
  justify-content: flex-end;
  gap: 10px;
  margin: 22px 0 0;
}
.swal2-popup.scope-swal .swal2-styled.swal2-confirm,
.swal2-popup.scope-swal .swal2-styled.swal2-cancel {
  border-radius: 8px;
  min-width: 92px;
  min-height: 40px;
  padding: 8px 18px;
  font-weight: 650;
  box-shadow: none;
}
.scope-picks {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 4px 4px;
}
.scope-picks label {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  text-align: center;
}
.scope-picks input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 2px solid #c5ccd3;
  border-radius: 50%;
  background: #fff;
  accent-color: var(--green);
  cursor: pointer;
}
.scope-picks input:checked {
  border-color: var(--green);
  background: radial-gradient(circle, var(--green) 0 7px, #fff 8px 100%);
}
.scope-picks input:checked + span { color: #1f2937; font-weight: 650; }
.badge { display: inline-block; background: var(--green-soft); color: var(--green-dark); border-radius: 999px; padding: 3px 8px; font-size: 12px; }
.budget-bar { margin-top: 10px; }
.budget-bar-track { display: flex; height: 10px; border-radius: 999px; background: #e8eeea; overflow: hidden; }
.budget-bar-used, .budget-bar-over { display: block; height: 100%; }
.budget-bar-used { background: var(--green); }
.budget-bar.is-warn .budget-bar-used { background: #f59e0b; }
.budget-bar-over { background: #ef4444; }
.budget-over { margin-top: 8px; color: #dc2626; font-size: 13px; font-weight: 700; }

.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
  z-index: 30;
}
.bottom-nav button { border: 0; background: none; font: inherit; cursor: pointer; display: flex; align-items: center; min-height: 0; }
.bottom-nav a, .bottom-nav button {
  flex: 1;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
  border-radius: 12px;
  padding: 6px 2px;
}
.bottom-nav a.active, .bottom-nav button.active { color: var(--green-dark); background: var(--green-soft); }
.more-backdrop { position: fixed; inset: 0; background: rgba(20, 34, 27, .35); z-index: 40; }
.more-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: #fff; border-radius: 20px 20px 0 0; max-height: 78vh; overflow-y: auto; padding: 8px 12px calc(76px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(20, 34, 27, .15); }
.more-grip { width: 42px; height: 4px; border-radius: 4px; background: #d1d5db; margin: 4px auto 10px; }
.more-sheet a, .more-sheet button { display: block; width: 100%; text-align: left; padding: 12px 10px; border: 0; border-bottom: 1px solid #f1f4f2; background: none; font: inherit; color: var(--ink); min-height: 0; cursor: pointer; }
.more-sheet .menu-sep { padding: 14px 10px 4px; }
.quick-actions, .quick-actions-backdrop { display: none; }
.quick-actions { position: fixed; right: 18px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 46; }
.quick-actions-fab {
  width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 30px; font-weight: 300; line-height: 1; cursor: pointer;
  box-shadow: 0 10px 26px rgba(22, 134, 62, .34); transition: transform .16s ease, background .16s ease;
}
.quick-actions-fab[aria-expanded="true"] { background: #26332b; transform: rotate(90deg); }
.quick-actions-menu {
  position: absolute; right: 0; bottom: 68px; width: min(290px, calc(100vw - 36px)); padding: 8px;
  background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(20, 34, 27, .2);
}
.quick-actions-menu a { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 12px; }
.quick-actions-menu a:active { background: var(--green-soft); }
.quick-actions-menu strong, .quick-actions-menu small { display: block; }
.quick-actions-menu small { color: var(--muted); font-size: 12px; margin-top: 1px; }
.quick-action-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; font-weight: 800; }
.quick-action-icon.fuel { background: #fff7ed; color: #c2410c; }
.quick-action-icon.expense { background: #fef2f2; color: #dc2626; }
.quick-action-icon.income { background: var(--green-soft); color: var(--green-dark); }
.quick-actions-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(20, 34, 27, .3); }

.sheet { background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 18px 18px 8px; margin-bottom: 16px; }
.flow-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 14px; }
.month-switch { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 22px; font-weight: 750; margin: 0; }
.month-switch a { color: var(--ink); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.month-switch a:hover { background: #f3f4f6; }
.flow-tools { justify-self: end; display: flex; gap: 8px; }
.launch, .icon-menu, .filter-drop { position: relative; }
.launch summary, .icon-menu summary, .filter-drop summary { list-style: none; cursor: pointer; }
.launch summary::-webkit-details-marker, .icon-menu summary::-webkit-details-marker, .filter-drop summary::-webkit-details-marker { display: none; }
.launch summary { background: #1f2937; color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 700; width: max-content; }
.launch .menu, .icon-menu .menu, .filter-drop .menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 8; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); min-width: 230px; padding: 6px 0; max-height: 320px; overflow: auto; }
.icon-menu .menu { right: 0; left: auto; }
.launch .menu a, .icon-menu .menu a, .filter-drop .menu a, .filter-drop .menu button { display: flex; justify-content: space-between; width: 100%; text-align: left; background: transparent; border: 0; padding: 8px 14px; color: var(--ink); cursor: pointer; }
.launch .menu a:hover, .icon-menu .menu a:hover, .filter-drop .menu a:hover, .filter-drop .menu button:hover, .filter-drop .menu button.active, .filter-drop .menu a.active { color: var(--green-dark); background: #f4fbf6; }
.launch kbd { color: var(--muted); font-family: inherit; }
.icon-menu summary { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: #6b7280; background: #fff; }
.flow-filters { display: flex; gap: 4px; align-items: center; background: #f3f5f4; border-radius: 999px; padding: 6px 8px 6px 14px; margin-bottom: 8px; position: relative; }
.filter-drop summary { display: flex; align-items: center; gap: 4px; padding: 6px 10px; color: #4b5563; font-weight: 600; }
.filter-drop.on summary { color: var(--green-dark); }
.filter-drop summary i { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.filter-drop .menu strong { display: block; padding: 8px 14px 2px; color: #9ca3af; font-size: 12px; font-weight: 650; }
.filter-drop .menu label { display: flex; gap: 8px; align-items: center; padding: 6px 14px; cursor: pointer; }
.filter-drop .menu label.child { padding-left: 28px; }
.filter-drop .menu input { width: auto; margin: 0; }
.search-wrap { margin-left: auto; display: flex; align-items: center; }
.search-wrap input { width: 0; border: 0; background: transparent; padding: 0; margin: 0; opacity: 0; }
.search-wrap.open input { width: 180px; opacity: 1; padding: 0 8px; }
.search-btn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); cursor: pointer; color: #6b7280; display: grid; place-items: center; }
.clear-filters { margin: 0 0 8px; }
.clear-filters a { color: var(--green-dark); font-size: 13px; }
.flow-tabs { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; }
.flow-tabs a, .flow-tabs span { margin-right: 16px; color: var(--muted); font-weight: 650; }
.flow-tabs a.active { color: var(--green); border-bottom: 2px solid var(--green); padding-bottom: 4px; }
.flow-tab-actions { display: flex; align-items: center; gap: 8px; }
.value-filter-form { margin: 0; }
.value-filter summary { min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; }
.value-filter summary strong { color: var(--green-dark); font-weight: 800; }
.value-filter .menu { right: 0; left: auto; width: 275px; padding: 6px; }
.value-filter .menu button { position: relative; display: block; padding: 10px 34px 10px 11px; border-radius: 8px; font-weight: 700; }
.value-filter .menu button small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.value-filter .menu button.active::after { content: "✓"; position: absolute; top: 13px; right: 12px; color: var(--green); font-weight: 900; }
.flow-day { padding: 4px 0; }
.flow-date { color: var(--muted); font-size: 13px; margin: 10px 0 4px; }
.flow-line { display: flex; align-items: flex-start; gap: 8px; border-radius: 12px; }
.flow-line.is-selected { background: #f3fbf6; }
.flow-line.is-entirely-others .flow-row { opacity: .48; }
.flow-line.is-entirely-others .flow-row:hover { opacity: .72; }
.row-check, .select-all { display: none; align-items: center; gap: 8px; }
body.is-selecting .row-check, body.is-selecting .select-all { display: flex; }
.row-check { padding-top: 16px; }
.select-all { margin: 8px 0; color: var(--muted); font-size: 14px; }
.row-check input, .select-all input { width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: var(--green); }
.select-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 650; }
.select-toggle.on { color: var(--green-dark); border-color: #bbf7d0; }
.select-toggle-ico { width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 11px; }
.mass-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 6px; background: #1f2937; color: #fff; border-radius: 14px; padding: 8px 10px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.mass-x, .mass-act { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.mass-x:hover, .mass-act:hover { background: rgba(255,255,255,.12); }
.mass-danger:hover { background: #7f1d1d; }
.mass-count { display: flex; align-items: center; gap: 6px; padding: 0 8px; white-space: nowrap; font-size: 14px; }
.mass-count i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: block; }
.mass-panel { position: absolute; bottom: calc(100% + 8px); right: 0; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow); min-width: 220px; max-height: 280px; overflow: auto; padding: 8px; }
.mass-panel .mass-search, .mass-panel input { margin: 0 0 8px; min-height: 36px; }
.mass-choice { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px; border-radius: 8px; cursor: pointer; }
.mass-choice:hover { background: var(--green-soft); }
.flow-row { display: grid; grid-template-columns: 36px 1fr auto auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #f1f4f2; color: inherit; flex: 1; }
.flow-row.is-card { margin: 3px 0; padding: 9px 10px; border: 1px solid #eadffd; border-left: 4px solid #8b5cf6; border-radius: 10px; background: linear-gradient(90deg, #f7f2ff 0, #fff 28%); }
.card-origin-badge { display: inline-flex; width: max-content; max-width: 100%; margin-top: 3px; padding: 2px 7px; overflow: hidden; color: #6d3fc0; border-radius: 999px; background: #eee6ff; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.flow-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 16px; }
.flow-ico img, .cat-ico img { width: 18px; height: 18px; display: block; }
.cat-ico { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; vertical-align: middle; }
.bank-logo { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; background: #fff; }
.catalog-row .bank-logo, .list-item .bank-logo { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; }
.bank-logo.lg { width: 46px; height: 46px; border-radius: 12px; }
.bank-option { display: inline-flex; align-items: center; gap: 8px; }
.bank-option img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }
.select-option-visual { display: inline-flex; align-items: center; gap: 10px; }
.select-option-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; }
.select-option-icon img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); }
.select-option-category { width: 100%; min-width: 0; }
.select-option-category.is-parent-category { font-weight: 750; }
.select-option-category.is-subcategory { padding-left: 22px; font-weight: 500; }
.select-option-branch { width: 12px; flex: 0 0 12px; color: #91a198; font-size: 17px; line-height: 1; text-align: center; }
.select2-results__option--highlighted .select-option-branch { color: currentColor; opacity: .8; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.cat-line { display: flex; align-items: center; gap: 8px; }
.page-settings { max-width: 1180px; padding-top: 24px; }
.settings-shell { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.settings-nav a { color: #6b7280; padding: 8px 4px; font-size: 14px; }
.settings-nav a.active { color: var(--green); font-weight: 700; }
.settings-nav a.active::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }
.settings-sep { height: 1px; background: #dde5e0; margin: 10px 0; }
.settings-extra { display: none; }
.settings-main .card { padding: 22px 24px 28px; }
.catalog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.catalog-head h2 { margin: 0; font-size: 22px; }
.btn.ghost-green { background: #e7f8ee; color: #16a34a; font-weight: 700; min-height: 38px; padding: 8px 14px; }
.btn.ghost-green:hover { background: #d7f3e3; }
.catalog-form { padding: 12px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.catalog-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eef1ef; }
.catalog-row:last-child { border-bottom: 0; }
.catalog-row .cat-meta { flex: 1; min-width: 0; }
.catalog-row .cat-meta strong { display: block; font-weight: 650; cursor: pointer; }
.catalog-row .row-actions { margin-left: auto; display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.link-btn { border: 0; background: none; color: #2563eb; cursor: pointer; font: inherit; padding: 0; min-height: 0; }
a.link-btn { color: #2563eb; }
.catalog-child { padding-left: 44px; }
.catalog-child .cat-meta strong { font-weight: 500; color: #374151; }
.cat-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0 8px; }
.cat-tabs a { text-align: center; padding: 10px 8px; color: #9ca3af; border-bottom: 2px solid #e5e7eb; font-weight: 650; }
.cat-tabs a.active { color: var(--green); border-bottom-color: var(--green); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.catalog-search { display: block; margin-top: 14px; }
.tag-edit-item { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tag-chip { display: inline-flex; align-items: center; gap: 8px; background: #f3f4f6; border-radius: 999px; padding: 8px 12px; font-weight: 650; font-size: 13px; }
.tag-chip button { border: 0; background: none; color: #9ca3af; cursor: pointer; font-size: 16px; line-height: 1; padding: 0; min-height: 0; }
.tag-chip .tag-name-button { color: inherit; font: inherit; }
.tag-edit-form { display: flex; gap: 6px; padding: 0; margin: 0; border: 0; }
.tag-edit-form input { min-width: 150px; margin: 0; }
.pref-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pref-block:last-of-type { border-bottom: 0; }
.pref-block h3 { margin: 0 0 4px; font-size: 16px; }
.pref-opt { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--ink); font-size: 14px; }
.pref-opt input { width: auto; min-height: 0; margin: 0; }
.integration { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.integration-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.steps { margin: 8px 0 0; padding-left: 18px; }
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.copy-field input { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.copy-field .btn { white-space: nowrap; }
.webhook-setup .catalog-head { align-items: flex-start; }
.webhook-setup .catalog-head h3 { margin-bottom: 4px; }
.webhook-help { margin-top: 8px; }
.webhook-help summary { cursor: pointer; font-weight: 650; }
.webhook-meta { display: flex; gap: 10px 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 14px; }
.webhook-ok { color: var(--green-dark); font-size: 13px; font-weight: 700; }
.danger-link { border: 0; padding: 0; background: none; color: var(--danger); cursor: pointer; font: inherit; }
.bank-item { padding: 12px 0; border-top: 1px solid var(--line); }
.bank-acc { margin-top: 10px; align-items: center; }
.bank-acc select { margin-bottom: 0; }
.connector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 12px; }
.connector { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 8px; background: #f7faf8; border-radius: 10px; }
.connector img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; background: #fff; }
.reconciliation-card { padding: 0; overflow: hidden; }
.reconciliation-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 24px 16px; }
.reconciliation-head h2 { margin: 3px 0 4px; font-size: 22px; }
.reconciliation-head p { margin: 0; }
.reconciliation-eyebrow { color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.reconciliation-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 24px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.reconciliation-summary > div { padding: 12px 16px; background: #f8faf9; }
.reconciliation-summary span, .reconciliation-summary strong { display: block; }
.reconciliation-summary span { color: var(--muted); font-size: 12px; }
.reconciliation-summary strong { margin-top: 2px; font-size: 21px; }
.reconciliation-summary .is-success { background: #eaf8f0; color: var(--green-dark); }
.reconciliation-summary .is-warning { background: #fff8e8; color: #9a6700; }
.reconciliation-filters { display: flex; gap: 8px; padding: 0 24px 16px; overflow-x: auto; }
.reconciliation-filters a { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 8px 13px; color: #4b5563; font-size: 13px; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.reconciliation-filters a span { min-width: 21px; padding: 2px 6px; text-align: center; font-size: 11px; color: var(--muted); border-radius: 999px; background: #f1f3f2; }
.reconciliation-filters a.active { color: #fff; border-color: var(--green-dark); background: var(--green-dark); }
.reconciliation-filters a.active span { color: var(--green-dark); background: #fff; }
.reconciliation-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfcfb; }
.reconciliation-toolbar .actions { flex: 0 0 auto; }
.reconciliation-toolbar .btn { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.reconciliation-list { max-height: min(64vh, 680px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 10px 14px 10px 24px; background: #f5f7f5; }
.concile-row { display: grid; grid-template-columns: 118px minmax(300px, 1fr) 116px 238px; gap: 14px; align-items: start; margin-bottom: 9px; padding: 15px 14px; border: 1px solid var(--line); border-left: 4px solid #aeb7b1; border-radius: 9px; background: #fff; box-shadow: 0 2px 7px rgba(31, 41, 35, .035); }
.concile-row.is-suggested { border-left-color: #16a34a; background: linear-gradient(90deg, #f0fbf4 0, #fff 22%); }
.concile-row.is-possible { border-left-color: #e0a11b; background: linear-gradient(90deg, #fff9eb 0, #fff 22%); }
.concile-row input, .concile-row select { margin-bottom: 6px; }
.concile-row .money { text-align: right; padding-top: 10px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.concile-meta > strong { display: block; font-size: 14px; }
.origin-badge { display: inline-flex; margin: 5px 0; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.origin-badge.is-card { color: #6741d9; background: #f0ebff; }
.origin-badge.is-account { color: #1769aa; background: #e9f4ff; }
.source-label, .account-label { font-size: 11px; }
.account-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.concile-decision { min-width: 0; }
.match-badge { display: inline-flex; align-items: center; margin-bottom: 7px; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.match-badge.exact { color: #08783d; background: #dff6e9; }
.match-badge.possible { color: #8a5a00; background: #fff0c7; }
.match-badge.new { color: #5f6b64; background: #eef1ef; }
.reconcile-open { display: inline-block; color: var(--green-dark); font-size: 12px; font-weight: 700; }
.reconciliation-submit { display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding: 13px 24px; border-top: 1px solid var(--line); background: #fff; }
.reconciliation-empty { display: grid; gap: 4px; margin: 0 24px 24px; padding: 28px; text-align: center; border: 1px dashed #cbd3ce; border-radius: 10px; background: #f8faf9; }
@media screen and (max-width: 860px) {
  .integration { flex-direction: column; }
  .reconciliation-head { align-items: flex-start; }
  .reconciliation-toolbar { align-items: flex-start; flex-direction: column; }
  .reconciliation-toolbar .actions { width: 100%; }
  .reconciliation-toolbar .btn { flex: 1; }
  .reconciliation-list { max-height: 66vh; }
  .concile-row { grid-template-columns: 92px minmax(0, 1fr) 110px; }
  .concile-decision { grid-column: 2 / -1; }
}
@media screen and (max-width: 560px) {
  .copy-field { grid-template-columns: 1fr; }
  .copy-field .btn { width: 100%; }
  .webhook-setup .catalog-head { flex-direction: column; }
  .reconciliation-head { padding: 17px 16px 13px; }
  .reconciliation-head .btn { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
  .reconciliation-head h2 { font-size: 19px; }
  .reconciliation-head p { font-size: 12px; }
  .reconciliation-summary { margin: 0 16px 13px; }
  .reconciliation-summary > div { padding: 10px; }
  .reconciliation-summary span { min-height: 30px; font-size: 10px; }
  .reconciliation-summary strong { font-size: 18px; }
  .reconciliation-filters { padding: 0 16px 13px; }
  .reconciliation-toolbar { padding: 10px 16px; }
  .reconciliation-toolbar > .muted { display: none; }
  .reconciliation-toolbar .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .reconciliation-list { max-height: 62dvh; padding: 8px; }
  .concile-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; margin-bottom: 8px; padding: 12px; }
  .concile-meta { min-width: 0; }
  .concile-fields { grid-column: 1 / -1; }
  .concile-row .money { grid-column: 2; grid-row: 1; padding-top: 0; font-size: 14px; }
  .concile-decision { grid-column: 1 / -1; }
  .concile-decision select { margin-bottom: 3px; }
  .reconciliation-submit { align-items: stretch; flex-direction: column; gap: 8px; padding: 11px 16px; }
  .reconciliation-submit .btn { width: 100%; }
}

/* Vehicle workspace: Organizze surfaces with the fast timeline used in Drivvo. */
.vehicle-app { min-width: 0; }
.vehicle-context {
  position: relative; z-index: 4; min-height: 82px; display: flex; align-items: center; gap: 18px; padding: 14px 18px;
  background: #fff; border-radius: 8px 8px 0 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.vehicle-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vehicle-title h1 { font-size: 20px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vehicle-title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.vehicle-eyebrow { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 10px; font-weight: 700; }
.vehicle-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; font-size: 21px; }
.vehicle-picker { margin-left: auto; width: 210px; }
.vehicle-picker label { margin: 0; font-size: 11px; }
.vehicle-picker select { margin: 0; min-height: 40px; padding: 8px 10px; }
.vehicle-add { position: relative; }
.vehicle-add > summary { list-style: none; cursor: pointer; border-radius: 999px; padding: 10px 16px; background: #313630; color: #fff; font-weight: 700; white-space: nowrap; }
.vehicle-add > summary::-webkit-details-marker { display: none; }
.vehicle-add-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 310px; padding: 7px; background: #fff; border-radius: 8px; box-shadow: 0 12px 35px rgba(28,40,31,.18); }
.vehicle-add-menu a { display: flex; gap: 11px; align-items: center; padding: 9px; border-radius: 6px; }
.vehicle-add-menu a:hover { background: var(--green-soft); }
.vehicle-add-menu i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f2f4ef; font-style: normal; color: var(--green-dark); font-weight: 800; }
.vehicle-add-menu span, .vehicle-add-menu strong, .vehicle-add-menu small { display: block; }
.vehicle-add-menu small { color: var(--muted); margin-top: 1px; }
.vehicle-tabs { display: flex; gap: 24px; overflow-x: auto; padding: 0 18px; background: #fff; box-shadow: var(--shadow); scrollbar-width: none; }
.vehicle-tabs::-webkit-scrollbar { display: none; }
.vehicle-tabs a { flex: 0 0 auto; padding: 13px 0 11px; color: var(--muted); border-bottom: 2px solid transparent; font-size: 13px; font-weight: 650; }
.vehicle-tabs a.active { color: var(--green-dark); border-color: var(--green); }
.vehicle-summary { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 8px; margin: 14px 0; box-shadow: var(--shadow); }
.vehicle-summary > div { padding: 15px 18px; border-right: 1px solid var(--line); }
.vehicle-summary > div:last-child { border: 0; }
.vehicle-summary span, .vehicle-summary strong { display: block; }
.vehicle-summary span { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.vehicle-summary strong { font-size: 19px; }
.vehicle-filter { display: flex; gap: 8px; align-items: end; background: #fff; border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; box-shadow: var(--shadow); }
.vehicle-filter label { margin: 0; flex: 0 1 155px; }
.vehicle-filter label > span { display: block; margin-bottom: 3px; }
.vehicle-filter input { min-height: 38px; margin: 0; padding: 8px 10px; }
.vehicle-filter .vehicle-search { flex: 1 1 260px; }
.vehicle-filter .btn { min-height: 38px; padding: 7px 16px; }
.vehicle-filter > a { align-self: center; color: var(--green-dark); font-size: 13px; padding: 8px; }
.vehicle-history-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, .75fr); gap: 14px; align-items: start; }
.vehicle-timeline, .vehicle-reminders, .vehicle-list-card { padding: 18px; }
.vehicle-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.vehicle-section-head h2 { margin: 0; font-size: 19px; }
.vehicle-section-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.vehicle-section-head > span, .vehicle-section-head > a { color: var(--muted); font-size: 12px; }
.timeline-month { position: relative; padding: 8px 0 16px; }
.timeline-month + .timeline-month { padding-top: 22px; border-top: 1px solid var(--line); }
.timeline-month::before { content: ""; position: absolute; top: 8px; bottom: 0; left: 20px; width: 10px; border-radius: 3px; background: #545957; box-shadow: inset 2px 0 rgba(255,255,255,.2), inset -2px 0 rgba(0,0,0,.12); }
.timeline-month::after { content: ""; position: absolute; top: 8px; bottom: 0; left: 24px; width: 2px; background: repeating-linear-gradient(to bottom, #f8faf8 0 6px, transparent 6px 11px); }
.timeline-month-summary { position: relative; z-index: 1; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 12px; margin-bottom: 11px; }
.timeline-road-stop { align-self: start; width: 22px; height: 7px; margin: 17px 0 0 14px; border-radius: 4px; background: #cfd5d1; box-shadow: 0 0 0 3px #fff; }
.timeline-summary-card { padding: 14px 16px; border: 1px solid #e0e5e1; border-radius: 12px; background: #f5f6f5; }
.timeline-summary-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timeline-summary-title h3 { margin: 0; color: #71869a; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.timeline-summary-title small { color: var(--muted); font-size: 10px; }
.timeline-month-summary dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 13px 0 0; }
.timeline-month-summary dl > div { min-width: 0; }
.timeline-month-summary dt { color: var(--muted); font-size: 10px; }
.timeline-month-summary dd { margin: 3px 0 0; color: var(--ink); font-size: 13px; font-weight: 750; white-space: nowrap; }
.timeline-comparisons { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #e3e8e4; }
.timeline-comparisons p { margin: 0; color: #536b7d; font-size: 11px; }
.timeline-item { position: relative; z-index: 1; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 12px; min-height: 80px; }
.timeline-item > .timeline-dot { width: 42px; height: 42px; display: grid; place-items: center; margin-top: 8px; border: 0; border-radius: 50%; background: #ff9800; color: #fff; box-shadow: 0 0 0 4px #fff; font-style: normal; }
.timeline-item > .timeline-dot span { display: grid; place-items: center; width: 100%; height: 100%; font-size: 17px; line-height: 1; }
.timeline-item.service > .timeline-dot { background: #765447; }
.timeline-item.expense > .timeline-dot { background: #e15252; font-weight: 800; }
.timeline-item.reading > .timeline-dot { background: #16a765; font-weight: 800; }
.timeline-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; border-bottom: 1px solid #e5e9e6; padding: 10px 0 14px; }
.timeline-body p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.timeline-body > a { grid-column: 1 / -1; color: var(--green-dark); font-size: 12px; width: max-content; }
.timeline-value { text-align: right; }
.timeline-value .money, .timeline-value time { display: block; white-space: nowrap; }
.timeline-value time { margin-top: 5px; color: #8aa0af; font-size: 11px; }
.next-fuel { background: var(--green-soft); border-radius: 7px; padding: 12px; margin-bottom: 12px; }
.next-fuel span, .next-fuel strong, .next-fuel small { display: block; }
.next-fuel span, .next-fuel small { color: var(--muted); font-size: 11px; }
.next-fuel strong { margin: 3px 0; }
.reminder-row { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.reminder-row i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff7e6; color: #a16207; font-style: normal; }
.reminder-row strong, .reminder-row span { display: block; }
.reminder-row span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.vehicle-outline { display: block; text-align: center; margin-top: 14px; padding: 9px; border: 1px solid var(--green); border-radius: 999px; color: var(--green-dark); font-weight: 700; font-size: 13px; }
.vehicle-empty { text-align: center; padding: 38px 20px; }
.vehicle-empty > span { font-size: 34px; }
.vehicle-empty p { color: var(--muted); max-width: 520px; margin: 0 auto 16px; }
.vehicle-empty.compact { padding: 30px 10px 20px; }
.vehicle-empty.compact h3 { margin: 8px 0 4px; }
.vehicle-empty.compact p { margin-bottom: 0; }
.vehicle-record { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.vehicle-record time { color: var(--muted); font-size: 12px; }
.vehicle-record strong, .vehicle-record span { display: block; }
.vehicle-record span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.vehicle-record > a { color: var(--green-dark); font-size: 12px; }
.vehicle-form-layout { display: grid; grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr); gap: 14px; margin-top: 14px; align-items: start; }
.vehicle-form-card { padding: 20px; }
.check-line { display: flex; align-items: center; gap: 7px; color: var(--ink); margin: 8px 0 14px; }
.check-line input { margin: 0; min-height: 0; }
.vehicle-manage { border-bottom: 1px solid var(--line); }
.vehicle-manage summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; }
.vehicle-manage summary::-webkit-details-marker { display: none; }
.vehicle-manage summary > span:nth-child(2) { flex: 1; }
.vehicle-manage summary strong, .vehicle-manage summary small { display: block; }
.vehicle-manage summary small { color: var(--muted); }
.vehicle-manage summary em { color: var(--green-dark); background: var(--green-soft); border-radius: 999px; padding: 4px 8px; font-size: 11px; font-style: normal; }
.vehicle-manage form { padding: 12px; background: #f7f8f5; border-radius: 7px; margin-bottom: 12px; }
.driver-record { grid-template-columns: 48px minmax(0, 1fr); }
.driver-record > .driver-avatar { width: 44px; height: 44px; display: grid; place-items: center; margin: 0; color: var(--green-dark); font-size: inherit; line-height: 1; }
.driver-avatar svg { display: block; width: 25px; height: 25px; }
.vehicle-intelligence .vehicle-section-head { align-items: flex-start; }
.vehicle-insight-lead { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--green-soft); color: #14532d; }
.vehicle-insight-lead > span { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--green-dark); }
.vehicle-insight-lead p { margin: 2px 0 0; }
.vehicle-insight-table th { color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.vehicle-insight-table td { vertical-align: middle; }
.vehicle-insight-table td:first-child { min-width: 210px; }
.vehicle-insight-table td strong, .vehicle-insight-table td span { display: block; }
.vehicle-insight-table td:first-child span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.insight-confidence { width: max-content; color: #92400e; background: #fff7ed; border-radius: 999px; padding: 4px 8px; font-size: 11px; white-space: nowrap; }
.insight-confidence.good { color: var(--green-dark); background: var(--green-soft); }
.insight-note { margin: 12px 0 0; font-size: 12px; }
.service-insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-insight-item { border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
.service-insight-title { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.service-insight-title strong, .service-insight-title span { display: block; }
.service-insight-title span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.service-insight-title > b { color: var(--green-dark); white-space: nowrap; }
.service-provider-prices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.service-provider-prices > span { background: #f4f6f3; border-radius: 8px; padding: 5px 8px; font-size: 12px; }
.service-provider-prices small { color: var(--muted); margin-left: 3px; }
.service-insight-item > p { margin: 10px 0 0; font-size: 12px; }

/* Transaction entry: compact on desktop and app-like on mobile. */
.transaction-entry .page { max-width: 680px; padding-top: 28px; }
.transaction-form-card { padding: 0 26px 28px; border-radius: 12px; overflow: visible; }
.transaction-form-head { display: flex; align-items: center; min-height: 62px; margin: 0 -26px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.transaction-form-head h2 { flex: 1; text-align: center; margin: 0; font-size: 20px; }
.transaction-form-head > a { position: relative; z-index: 3; font-size: 28px; line-height: 1; color: var(--muted); }
.transaction-hero { --entry-color: #e31e38; margin: 0 -26px 22px; padding: 22px 28px 28px; background: var(--entry-color); color: #fff; }
.transaction-hero.type-income { --entry-color: #16b84e; }
.transaction-hero.type-transfer { --entry-color: #2673d9; }
.transaction-type-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.transaction-type-tabs > * { position: relative; padding: 4px 0 12px; text-align: center; color: #fff; opacity: .84; font-size: 16px; }
.transaction-type-tabs > .active { opacity: 1; font-weight: 700; }
.transaction-type-tabs > .active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 16px; height: 4px; transform: translateX(-50%); border-radius: 99px; background: #fff; }
.transaction-amount { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.transaction-amount label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.transaction-amount input { width: min(360px, calc(100% - 48px)); min-height: 68px; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: #fff; font-size: clamp(44px, 9vw, 62px); font-weight: 600; line-height: 1; text-align: right; box-shadow: none; }
.transaction-amount input::placeholder { color: rgba(255,255,255,.96); }
.transaction-amount > span { font-size: 38px; font-weight: 800; }
.transaction-field { position: relative; margin-bottom: 16px; }
.transaction-field > label { margin-bottom: 8px; color: var(--ink); font-size: 15px; font-weight: 650; }
.transaction-control { display: flex; align-items: center; gap: 12px; }
.transaction-control input { flex: 1; width: auto; min-width: 0; margin: 0; }
.transaction-field-icon { flex: 0 0 31px; color: #505650; font-size: 27px; text-align: center; }
.transaction-control.with-clear input { padding-right: 42px; }
.origin-picker-trigger { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.origin-picker-trigger > #origin-picker-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.origin-picker-chevron { color: var(--muted); font-size: 20px; }
.origin-picker-avatar { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; border-radius: 50%; background: #f0f2ef; color: #404640; font-size: 12px; font-weight: 800; }
.origin-picker-avatar img { width: 100%; height: 100%; object-fit: cover; }
.origin-picker-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(18, 25, 20, .48); }
.origin-picker-panel { position: fixed; top: 50%; left: 50%; z-index: 111; width: min(520px, calc(100% - 32px)); max-height: min(720px, calc(100vh - 48px)); overflow: hidden; transform: translate(-50%, -50%); border-radius: 20px; background: #fdfdf9; box-shadow: 0 24px 70px rgba(10,20,13,.28); }
.origin-picker-handle { display: none; width: 120px; height: 5px; margin: 14px auto 4px; border-radius: 99px; background: #d8dcd6; }
.origin-picker-head { display: flex; align-items: center; min-height: 60px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.origin-picker-head h3 { flex: 1; margin: 0; font-size: 19px; }
.origin-picker-head button { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
.origin-picker-options { max-height: calc(min(720px, 100vh - 48px) - 60px); overflow-y: auto; overscroll-behavior: contain; }
.origin-picker-options h4 { margin: 0; padding: 22px 22px 12px; border-top: 1px solid var(--line); font-size: 17px; }
.origin-picker-option { display: grid; grid-template-columns: 48px minmax(0, 1fr) 24px; gap: 14px; align-items: center; width: 100%; min-height: 76px; padding: 12px 20px; border: 0; border-bottom: 1px solid #eceee9; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.origin-picker-option:hover, .origin-picker-option:focus-visible { background: var(--green-soft); outline: 0; }
.origin-picker-option > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.origin-picker-option > b { color: var(--green); font-size: 20px; opacity: 0; }
.origin-picker-option[aria-selected="true"] > b { opacity: 1; }
.origin-picker-empty { padding: 24px; text-align: center; }
body.origin-picker-open { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.category-picker-trigger { display: none; }
.category-picker-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(18, 25, 20, .48); }
.category-picker-panel { position: fixed; top: 50%; left: 50%; z-index: 111; width: min(520px, calc(100% - 32px)); max-height: min(720px, calc(100vh - 48px)); overflow: hidden; transform: translate(-50%, -50%); border-radius: 20px; background: #fdfdf9; box-shadow: 0 24px 70px rgba(10,20,13,.28); }
.category-picker-search { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.category-picker-search input { width: 100%; min-height: 44px; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.category-picker-options { max-height: calc(min(720px, 100vh - 48px) - 130px); overflow-y: auto; overscroll-behavior: contain; }
.category-picker-option { display: grid; grid-template-columns: 42px minmax(0, 1fr) 24px; gap: 12px; align-items: center; width: 100%; min-height: 62px; padding: 9px 20px; border: 0; border-bottom: 1px solid #eceee9; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.category-picker-option:hover, .category-picker-option:focus-visible { background: var(--green-soft); outline: 0; }
.category-picker-option-icon { display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; }
.category-picker-option-icon img { width: 21px; height: 21px; object-fit: contain; filter: brightness(0) invert(1); }
.category-picker-option > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 650; }
.category-picker-option.is-child > span:nth-child(2) { display: grid; gap: 1px; font-weight: 500; }
.category-picker-option.is-child > span:nth-child(2)::before { content: '↳'; float: left; margin-right: 7px; color: #91a198; }
.category-picker-option > span:nth-child(2) small { color: var(--muted); font-size: 11px; font-weight: 600; }
.category-picker-option > b { color: var(--green); font-size: 20px; opacity: 0; }
.category-picker-option[aria-selected="true"] > b { opacity: 1; }
.category-picker-empty { padding: 28px 20px; text-align: center; }
body.category-picker-open { overflow: hidden; }
.transaction-invoice-choice { margin: -4px 0 14px 54px; padding: 9px 12px; border-left: 3px solid var(--green); border-radius: 0 10px 10px 0; background: var(--green-soft); }
.transaction-invoice-choice label { display: block; margin: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 650; }
.transaction-invoice-choice select { width: auto; max-width: 100%; min-height: 28px; margin: 0; padding: 0 22px 0 0; border: 0; background-color: transparent; color: var(--green-dark); font-weight: 700; }
.transaction-invoice-choice small { display: block; margin-top: 2px; color: #607268; font-size: 11px; }
.description-field { z-index: 22; }
.description-clear { position: absolute; right: 8px; bottom: 5px; z-index: 2; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: #505650; font-size: 28px; line-height: 1; cursor: pointer; }
.description-suggestions { position: absolute; top: calc(100% - 6px); left: 43px; right: 0; z-index: 90; max-height: 360px; overflow-y: auto; border: 1px solid #e8ebe6; border-radius: 10px; background: #fff; box-shadow: 0 15px 30px rgba(30,38,31,.22); overscroll-behavior: contain; }
.description-suggestion { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 72px; padding: 10px 14px; border: 0; border-bottom: 1px solid #ecefea; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.description-suggestion:last-child { border-bottom: 0; }
.description-suggestion:hover, .description-suggestion.active { background: var(--green-soft); }
.description-suggestion-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #7c8cff; color: #fff; font-size: 15px; }
.description-suggestion-text { min-width: 0; }
.description-suggestion-text strong, .description-suggestion-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.description-suggestion-text strong { font-size: 16px; font-weight: 500; }
.description-suggestion-text small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.repeat-chips { display: flex; gap: 12px; }
.repeat-chips button { min-width: 108px; min-height: 44px; padding: 8px 18px; border: 2px solid #d9ddd7; border-radius: 999px; background: #fff; color: #4f554f; font-weight: 700; cursor: pointer; }
.repeat-chips button.active { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.repeat-field > .select2-container { display: none; }
.repeat-field > select.series-kind-select:not(.select2-hidden-accessible) { display: none; }
.repeat-field #repeat-box { margin-top: 14px; }
.transaction-more { margin: 8px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.transaction-more > summary { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 4px; list-style: none; color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.transaction-more > summary::-webkit-details-marker { display: none; }
.transaction-more > summary span { transform: rotate(180deg); transition: transform .15s ease; }
.transaction-more[open] > summary span { transform: none; }
.transaction-more-content { padding: 6px 0 4px; }
.notification-fill { background: #f5f7f3; border-radius: 7px; margin-bottom: 14px; }
.notification-fill summary { cursor: pointer; padding: 10px 12px; color: var(--green-dark); font-size: 13px; font-weight: 650; }
.notification-fill label, .notification-fill textarea { margin-left: 12px; width: calc(100% - 24px); }
.paid-toggle { display: flex; align-items: center; gap: 8px; color: var(--ink); margin: 2px 0 14px; cursor: pointer; }
.paid-toggle input { position: absolute; opacity: 0; }
.paid-toggle span { width: 34px; height: 19px; border-radius: 999px; background: #cdd3cc; padding: 2px; transition: .15s; }
.paid-toggle span::after { content: ""; display: block; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: .15s; }
.paid-toggle input:checked + span { background: var(--green); }
.paid-toggle input:checked + span::after { transform: translateX(15px); }
.transaction-save { display: flex; min-width: 118px; margin: 10px auto 0; }
.transaction-save-icon { font-size: 20px; }
.transaction-save-label { display: inline; }
.transaction-form-card .vehicle-box { border: 1px solid #dfe7dd; background: #f7faf6; border-radius: 7px; }

@media screen and (max-width: 720px) {
  .vehicle-context { min-height: 70px; padding: 10px 12px; border-radius: 0; flex-wrap: wrap; }
  .vehicle-title { flex: 1; }
  .vehicle-title h1 { font-size: 17px; }
  .vehicle-title p { max-width: 190px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .vehicle-eyebrow { display: none; }
  .vehicle-picker { order: 3; width: 100%; margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
  .vehicle-picker label { font-size: 10px; white-space: nowrap; }
  .vehicle-picker select { min-height: 36px; }
  .vehicle-avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 18px; }
  .vehicle-add > summary { width: 42px; height: 42px; border-radius: 50%; padding: 0; display: grid; place-items: center; font-size: 0; }
  .vehicle-add > summary::after { content: "+"; font-size: 25px; font-weight: 400; }
  .vehicle-add-menu { position: absolute; left: auto; right: 0; top: calc(100% + 8px); bottom: auto; width: min(310px, calc(100vw - 24px)); max-height: calc(100vh - 180px); overflow-y: auto; }
  .vehicle-tabs-scroll { width: 100%; max-width: 100%; margin: 0; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
  .vehicle-tabs-scroll .vehicle-tabs { width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 0 34px 0 14px; box-sizing: border-box; gap: 20px; box-shadow: none; }
  .vehicle-tabs-scroll .hscroll-btn.left { background: linear-gradient(90deg, #fff 58%, rgba(255, 255, 255, 0)); }
  .vehicle-tabs-scroll .hscroll-btn.right { background: linear-gradient(270deg, #fff 58%, rgba(255, 255, 255, 0)); }
  .driver-record > .driver-avatar { width: 46px; height: 46px; font-size: inherit; }
  .driver-avatar svg { width: 27px; height: 27px; }
  .vehicle-summary { margin: 12px 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vehicle-summary > div { padding: 11px 9px; }
  .vehicle-summary span { font-size: 10px; min-height: 28px; }
  .vehicle-summary strong { font-size: 14px; white-space: nowrap; }
  .vehicle-filter { display: grid; grid-template-columns: 1fr 1fr; }
  .vehicle-filter label { min-width: 0; }
  .vehicle-filter .vehicle-search { grid-column: 1 / -1; }
  .vehicle-filter .btn { min-height: 38px; }
  .vehicle-history-layout, .vehicle-form-layout { grid-template-columns: 1fr; }
  .vehicle-reminders { grid-row: 1; }
  .vehicle-timeline, .vehicle-reminders, .vehicle-list-card { padding: 14px; }
  .timeline-body { grid-template-columns: minmax(0, 1fr) auto; }
  .timeline-month::before { left: 17px; }
  .timeline-month::after { left: 21px; }
  .timeline-item, .timeline-month-summary { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
  .timeline-item > .timeline-dot { width: 36px; height: 36px; margin-top: 9px; }
  .timeline-item > .timeline-dot span { font-size: 15px; }
  .timeline-road-stop { margin-left: 11px; }
  .timeline-summary-card { padding: 12px; }
  .timeline-summary-title small { display: none; }
  .timeline-month-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .timeline-body { gap: 4px 8px; }
  .timeline-body strong { font-size: 13px; }
  .timeline-value .money { font-size: 13px; }
  .vehicle-record { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px; }
  .vehicle-record > a { grid-column: 2 / -1; }
  .vehicle-list-card .vehicle-section-head { align-items: flex-start; }
  .service-insight-grid { grid-template-columns: 1fr; }
  .vehicle-intelligence { padding: 14px; }
  .vehicle-intelligence .table-scroll { overflow: visible; }
  .vehicle-insight-table { min-width: 0; }
  .vehicle-insight-table thead { display: none; }
  .vehicle-insight-table, .vehicle-insight-table tbody { display: block; width: 100%; }
  .vehicle-insight-table tbody { display: grid; gap: 8px; }
  .vehicle-insight-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; }
  .vehicle-insight-table td { display: block; min-width: 0; padding: 0; border: 0; font-size: 13px; }
  .vehicle-insight-table td:first-child { grid-column: 1 / -1; min-width: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .vehicle-insight-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
  .transaction-entry .topbar, .transaction-entry .bottom-nav { display: none; }
  .transaction-entry { background: #fdfdf9; }
  .transaction-entry .page { padding: 0; max-width: none; }
  .transaction-form-card { min-height: 100vh; margin: 0; border-radius: 0; box-shadow: none; padding: 0 16px calc(28px + env(safe-area-inset-bottom)); }
  .transaction-form-head { position: absolute; top: env(safe-area-inset-top); left: 0; right: 0; z-index: 30; min-height: 50px; margin: 0; padding: 0 16px; border: 0; pointer-events: none; }
  .transaction-form-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .transaction-form-head > a { margin-left: auto; color: #fff; pointer-events: auto; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
  .transaction-hero { margin: 0 -16px 0; min-height: 278px; padding: calc(28px + env(safe-area-inset-top)) 20px 32px; border-radius: 0; }
  .transaction-type-tabs { margin-bottom: 54px; gap: 4px; }
  .transaction-type-tabs > * { font-size: 17px; padding-bottom: 14px; }
  .transaction-amount { gap: 10px; }
  .transaction-amount input { width: calc(100% - 46px); min-height: 72px; font-size: clamp(52px, 15vw, 66px); }
  .transaction-amount > span { font-size: 41px; }
  .transaction-form-card > form > .alert, .transaction-form-card > form > .notification-fill { margin: 12px 0; }
  .transaction-field { margin: 0 -16px; padding: 25px 22px 24px; border-bottom: 1px solid #eceee9; }
  .transaction-field > label { margin-bottom: 15px; font-size: 18px; font-weight: 600; }
  .transaction-control { gap: 15px; }
  .transaction-control input, .transaction-field > input, .transaction-field > textarea { min-height: 44px; margin: 0; padding: 4px 6px; border: 0; border-radius: 0; background: transparent; font-size: 19px; box-shadow: none; }
  .transaction-field-icon { flex-basis: 38px; font-size: 29px; }
  .description-clear { right: 20px; bottom: 29px; }
  .description-suggestions { top: calc(100% - 12px); left: 38px; right: 22px; max-height: 360px; border-radius: 10px; }
  .description-suggestion { min-height: 72px; padding: 9px 14px; }
  .description-suggestion-text strong { font-size: 17px; }
  .description-suggestion-text small { font-size: 14px; }
  .transaction-field > .select2-container { margin: 0; }
  .transaction-field > .select2-container .select2-selection--single { height: 46px; border: 0 !important; border-radius: 0 !important; background: transparent; font-size: 19px; box-shadow: none !important; }
  .transaction-field > .select2-container .select2-selection--single .select2-selection__rendered { padding-left: 0; line-height: 46px; }
  .transaction-field > .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
  .category-field > .select2-container { display: none; }
  .category-picker-trigger { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 14px; align-items: center; width: 100%; min-height: 52px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
  .category-picker-icon { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; }
  .category-picker-icon img { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }
  .category-picker-icon span { color: #fff; font-size: 24px; }
  .category-picker-trigger > #category-picker-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; }
  .category-picker-panel { top: auto; bottom: 0; left: 0; width: 100%; max-height: calc(90dvh - env(safe-area-inset-top)); transform: none; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .category-picker-search { padding: 10px 20px 13px; }
  .category-picker-search input { min-height: 48px; font-size: 17px; }
  .category-picker-options { max-height: calc(90dvh - 132px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .category-picker-option { grid-template-columns: 54px minmax(0, 1fr) 24px; gap: 16px; min-height: 74px; padding: 10px 22px; }
  .category-picker-option-icon { width: 52px; height: 52px; }
  .category-picker-option-icon img { width: 27px; height: 27px; }
  .category-picker-option > span:nth-child(2) { font-size: 18px; }
  .category-picker-option > span:nth-child(2) small { font-size: 12px; }
  .origin-picker-trigger { min-height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .origin-picker-trigger > #origin-picker-name { font-size: 19px; }
  .origin-picker-trigger .origin-picker-avatar { flex-basis: 44px; width: 44px; height: 44px; }
  .transaction-invoice-choice { margin: -1px -16px 0; padding: 11px 22px 16px; border-left: 0; border-bottom: 1px solid #dce9df; border-radius: 0; }
  .transaction-invoice-choice select { max-width: calc(100vw - 44px); font-size: 15px; }
  .transaction-invoice-choice small { font-size: 12px; }
  .origin-picker-panel { top: auto; bottom: 0; left: 0; width: 100%; max-height: calc(90dvh - env(safe-area-inset-top)); transform: none; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .origin-picker-handle { display: block; }
  .origin-picker-head { min-height: 48px; padding: 4px 20px 8px; }
  .origin-picker-head h3 { font-size: 18px; }
  .origin-picker-options { max-height: calc(90dvh - 69px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .origin-picker-options h4 { padding: 25px 22px 13px; font-size: 19px; }
  .origin-picker-option { grid-template-columns: 58px minmax(0, 1fr) 24px; gap: 16px; min-height: 88px; padding: 14px 22px; }
  .origin-picker-option .origin-picker-avatar { width: 56px; height: 56px; font-size: 14px; }
  .origin-picker-option > span:nth-child(2) { font-size: 20px; }
  .repeat-chips { gap: 15px; }
  .repeat-chips button { min-width: 118px; min-height: 50px; }
  .repeat-field #repeat-box { margin-top: 18px; }
  .repeat-field #repeat-box label { margin-top: 10px; }
  .transaction-more { margin: 0 -16px 20px; }
  .transaction-more > summary { min-height: 76px; padding: 20px 22px; font-size: 19px; }
  .transaction-more-content { padding: 0; }
  .transaction-more-content > .paid-toggle { margin: 0; padding: 20px 22px; border-bottom: 1px solid #eceee9; }
  .transaction-more-content > .transaction-field { margin: 0; }
  .transaction-more-content > .vehicle-box, .transaction-more-content > #shares { margin: 18px 6px; }
  .share-row { grid-template-columns: 1fr; gap: 10px; padding: 14px 0; }
  .share-values { padding-left: 28px; }
  .share-values .money-input { min-height: 42px; }
  .shares-summary { padding: 14px 0 0 28px; }
  .transaction-field .field-help { margin-top: 8px; }
  .transaction-field > .js-tag-input + .select2-container .select2-selection--multiple { border: 0 !important; background: transparent; }
  .transaction-field > .js-tag-input + .select2-container .select2-selection--multiple .select2-selection__rendered { padding-left: 0; }
  .transaction-form-card .row { display: grid; grid-template-columns: 1fr 1fr; }
  .transaction-form-card .row > * { min-width: 0; }
  .transaction-form-card .vehicle-box .row, .transaction-form-card .part-row { grid-template-columns: 1fr; }
  .transaction-save { position: sticky; z-index: 25; bottom: calc(18px + env(safe-area-inset-bottom)); width: 78px; min-width: 78px; height: 78px; border-radius: 50%; margin: 22px auto 0; font-size: 34px; box-shadow: 0 9px 25px rgba(22,198,79,.34); }
  .transaction-save-label { display: none; }
  .transaction-save-icon { font-size: 34px; }
}
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 34, 27, .35); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fdfdfb; box-shadow: -10px 0 30px rgba(20,34,27,.12); z-index: 61; transform: translateX(100%); transition: transform .2s ease; overflow-y: auto; padding: 28px 28px 32px; }
.drawer.open { transform: translateX(0); }
.drawer-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 26px; color: #9ca3af; cursor: pointer; min-height: 0; }
.drawer-head h2 { margin: 8px 0 14px; font-size: 20px; }
.drawer-chip { display: inline-block; background: #eef1ef; color: #4b5563; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 650; }
.drawer-series { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; text-align: center; font-size: 14px; margin-bottom: 14px; }
.drawer-series b { color: var(--green); }
.drawer-field { background: #f1f4f2; border-radius: 12px; padding: 12px 16px; margin-bottom: 6px; }
.drawer-field > span:first-child { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; margin-bottom: 4px; }
.drawer-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.drawer-line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.drawer-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.drawer-link:hover { color: var(--green); }
.drawer-actions { display: flex; justify-content: center; gap: 22px; margin-top: 22px; }
.drawer-actions a, .drawer-actions button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: 12px; color: #4b5563; cursor: pointer; min-height: 0; padding: 0; }
.drawer-actions i { width: 44px; height: 44px; border-radius: 50%; background: #eef1ef; display: grid; place-items: center; font-style: normal; font-size: 17px; color: #6b7280; }
.drawer-actions .on i { background: #dcfce7; color: var(--green); }
.drawer-invoice-top { display: flex; gap: 14px; align-items: flex-start; }
.drawer-invoice-top .bank-logo { width: 56px; height: 56px; border-radius: 12px; flex: 0 0 56px; }
.drawer-invoice-top h2 { margin: 2px 0; font-size: 20px; }
.drawer-invoice-total { color: var(--danger); font-size: 22px; font-weight: 750; }
.drawer-status { display: inline-block; margin: 14px 0; padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.drawer-status.current { background: #e0f2fe; color: #0369a1; }
.drawer-status.closed { background: #fef3c7; color: #92400e; }
.drawer-status.paid { background: #dcfce7; color: var(--green-dark); }
.drawer-status.future { background: #f3f4f6; color: #4b5563; }
.drawer-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); margin-bottom: 12px; font-size: 14px; }
.drawer-dates span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; margin-bottom: 4px; }
.drawer-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; margin-bottom: 10px; }
.vehicle-box { background: #f7faf8; border-radius: 14px; padding: 14px; margin: 8px 0 14px; }
.vehicle-box h3 { margin-top: 0; }
.vehicle-finance-option { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 12px; padding: 12px; border: 1px solid #cfe8d8; border-radius: 12px; background: #fff; cursor: pointer; }
.vehicle-finance-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.vehicle-finance-option span, .vehicle-finance-option small { display: block; }
.vehicle-finance-option small { margin-top: 2px; color: var(--muted); font-weight: 400; line-height: 1.35; }
.vehicle-finance-status { margin: -2px 0 14px; color: var(--green-dark); font-size: 12px; }
.vehicle-finance-status.only-vehicle { padding: 8px 10px; border-radius: 8px; background: #fff7dc; color: #765a00; }
.vehicle-record-only { color: var(--muted); font-size: 11px; white-space: nowrap; }
.split-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; color: #7c3aed; background: #f5f3ff; border-radius: 999px; padding: 2px 8px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-tag.value-breakdown { overflow: visible; border-radius: 9px; line-height: 1.25; text-overflow: clip; white-space: normal; }
.thumb.clickable { cursor: pointer; border-radius: 50%; width: 26px; height: 26px; }
.thumb.clickable:hover { background: #f0fdf4; color: #16a34a; }
.qe { cursor: pointer; position: relative; }
.drawer-field.qe:hover { background: #e9eeeb; }
.drawer-head .qe:hover h2 { color: var(--green-dark); }
.qe.editing { cursor: default; background: #fff !important; box-shadow: inset 0 0 0 1px var(--green); }
.qe-edit { display: flex; gap: 8px; align-items: flex-start; }
.qe-edit[hidden] { display: none; }
.qe-edit input, .qe-edit select, .qe-edit textarea { margin: 0; min-height: 40px; padding: 8px 10px; }
.qe-save { border: 0; background: none; color: var(--green); cursor: pointer; min-height: 40px; padding: 0 6px; }
.hscroll { position: relative; min-width: 0; }
.subnav, .tab-scroll, .settings-nav, .vehicle-tabs { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.subnav::-webkit-scrollbar, .tab-scroll::-webkit-scrollbar, .settings-nav::-webkit-scrollbar, .vehicle-tabs::-webkit-scrollbar { display: none; }
.hscroll.is-scrollable > .subnav, .hscroll.is-scrollable > .tab-scroll, .hscroll.is-scrollable > .settings-nav, .hscroll.is-scrollable > .vehicle-tabs { scroll-behavior: smooth; cursor: grab; user-select: none; }
.hscroll-btn { position: absolute; top: 0; bottom: 0; z-index: 3; width: 34px; border: 0; padding: 0; min-height: 0; cursor: pointer; font-size: 26px; line-height: 1; color: var(--ink); display: flex; align-items: center; }
.hscroll-btn[hidden] { display: none; }
.hscroll-btn.left { left: 0; justify-content: flex-start; padding-left: 2px; background: linear-gradient(90deg, var(--bg) 55%, rgba(238, 243, 240, 0)); }
.hscroll-btn.right { right: 0; justify-content: flex-end; padding-right: 2px; background: linear-gradient(270deg, var(--bg) 55%, rgba(238, 243, 240, 0)); }
.card .hscroll-btn.left, .sheet .hscroll-btn.left { background: linear-gradient(90deg, #fff 55%, rgba(255, 255, 255, 0)); }
.card .hscroll-btn.right, .sheet .hscroll-btn.right { background: linear-gradient(270deg, #fff 55%, rgba(255, 255, 255, 0)); }
.hscroll-btn:hover { color: var(--green); }
.label-add { display: flex; align-items: center; gap: 8px; }
.add-btn { border: 0; background: none; color: var(--ink); font-size: 18px; line-height: 1; padding: 0 4px; min-height: 0; cursor: pointer; font-weight: 400; }
.add-btn:hover { color: var(--green); }
.part-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 120px 120px 24px; gap: 8px; align-items: center; }
.part-row > * { min-width: 0 !important; }
.part-row select, .part-row input { margin-bottom: 8px; }
.catalog-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.catalog-modal[hidden] { display: none !important; }
.catalog-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 34, 27, .4); }
.catalog-modal-box { position: relative; background: #fff; border-radius: 16px; padding: 20px; width: min(420px, 100%); box-shadow: var(--shadow); }
.tank-hint { font-size: 12px; margin: -2px 0 10px 24px; min-height: 0; }
.tank-hint:empty { display: none; }
.part-row .rm-part { font-size: 18px; }
.part-subtotal { background: #f4f7f4; color: var(--text); }
.odometer-last { display: block; color: var(--green-dark); margin-top: -4px; margin-bottom: 8px; }
.vehicle-attachments { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.attachment-existing { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.attachment-existing small { display: block; color: var(--muted); }
.attachment-existing input { width: auto; }
.vehicle-section-actions { display: flex; align-items: center; gap: 8px; }
.service-record-button { cursor: pointer; border-radius: 10px; padding-inline: 10px; transition: background .15s ease; }
.service-record-button:hover, .service-record-button:focus { background: #f3faf5; outline: 2px solid rgba(19, 171, 78, .18); }
.service-detail-modal { z-index: 110; }
.service-detail-box { width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.service-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.service-modal-head span { color: var(--green-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.service-modal-head h2 { margin: 3px 0 0; }
.service-modal-head button { font-size: 25px; }
.service-value-lock { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; background: #f3f8f4; border: 1px solid #dce9df; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.service-value-lock strong { grid-row: span 2; font-size: 18px; }
.service-value-lock small { color: var(--muted); }
.service-items-detail { margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.service-items-detail > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.service-items-detail > div:last-child { border-bottom: 0; }
.service-items-detail small { display: block; color: var(--muted); margin-top: 2px; }
.inline-form input { margin-bottom: 0; }
.bank-logo.placeholder { width: 40px; height: 40px; border-radius: 50%; background: #eef1ef; display: grid; place-items: center; color: #6b7280; font-weight: 750; }
.activity-bar { display: flex; gap: 8px; background: #f59e0b; border-radius: 10px; padding: 8px; margin-bottom: 16px; }
.activity-bar input { margin: 0; background: transparent; color: #fff; border-color: transparent; }
.activity-bar input::placeholder { color: rgba(255,255,255,.85); }
.activity-date { margin-top: 16px; font-size: 16px; }
.activity-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity-avatar { width: 28px; height: 28px; border-radius: 50%; background: #e5e7eb; display: grid; place-items: center; font-size: 12px; font-weight: 750; }
.fc-row { display: grid; grid-template-columns: 180px 1fr 240px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #f1f4f2; }
.fc-label strong { display: block; }
.fc-label span { font-size: 13px; }
.fc-bars { display: grid; gap: 4px; }
.fc-bar { background: #f3f5f4; border-radius: 999px; height: 8px; overflow: hidden; }
.fc-bar span { display: block; height: 100%; border-radius: 999px; }
.fc-in { background: var(--green); }
.fc-out { background: #ef4444; }
.fc-values { display: grid; gap: 2px; font-size: 13px; }
.fc-values div { display: flex; justify-content: space-between; gap: 10px; }
.date-pill { margin: 0; border: 0; background: transparent; width: auto; min-height: 36px; color: #4b5563; }
.settle-person { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #f1f4f2; }
.settle-row { display: grid; grid-template-columns: 34px 1fr auto auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #f1f4f2; }
.person-phone { display: block; margin-top: 2px; }
.settlement-card { padding: 0; overflow: hidden; }
.settlement-person-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.settlement-person-head .activity-avatar { width: 38px; height: 38px; background: var(--green-soft); color: var(--green-dark); }
.settlement-person-name h3 { margin: 0; }
.settlement-person-name > span, .settlement-person-name > a { color: var(--muted); font-size: 12px; }
.settlement-person-name > a { color: var(--green-dark); }
.settlement-person-total { text-align: right; }
.settlement-person-total span, .settlement-person-total strong { display: block; }
.settlement-person-total span { color: var(--muted); font-size: 11px; }
.settlement-person-total strong { font-size: 18px; }
.whatsapp-btn { background: #25d366; min-height: 40px; padding: 8px 14px; }
.whatsapp-btn:hover { background: #1fbd5a; }
.whatsapp-btn.disabled { color: var(--muted); background: #f3f5f2; border-color: var(--line); cursor: default; }
.settlement-origin { padding: 0 18px; }
.settlement-origin + .settlement-origin { border-top: 6px solid var(--bg); }
.settlement-origin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 8px; }
.settlement-origin-summary { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.settlement-origin-summary > span { color: var(--muted); font-size: 12px; }
.settlement-origin-summary > span b { color: var(--ink); margin-left: 4px; }
.settlement-receive-all { min-height: 32px; padding: 5px 10px; color: var(--green-dark); border-color: #bbdfc7; }
.settlement-entry {
  display: grid;
  grid-template-columns: 76px 34px minmax(180px, 1fr) 92px auto 96px auto;
  gap: 10px;
  align-items: center;
  margin: 2px -10px;
  padding: 10px;
  border-top: 1px solid #edf0eb;
  border-radius: 10px;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.settlement-entry.is-open { background: #fffbeb; box-shadow: inset 4px 0 0 #f59e0b; }
.settlement-entry.is-received { background: #f2fbf5; box-shadow: inset 4px 0 0 var(--green); }
.settlement-entry.is-open .settlement-entry-main strong,
.settlement-entry.is-open > .money { color: #92400e; }
.settlement-entry.is-open > .pill.pending { background: #fef3c7; color: #92400e; }
.settlement-entry.is-received .settlement-entry-main strong { color: var(--green-dark); }
.settlement-entry time { color: var(--muted); font-size: 12px; }
.settlement-entry-main strong, .settlement-entry-main span { display: block; }
.settlement-entry-main span { color: var(--muted); font-size: 12px; }
.settlement-installment { color: var(--muted); font-size: 12px; text-align: center; }
.settlement-entry > .money { text-align: right; }
.settlement-entry-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; position: relative; }
.settlement-entry-actions .btn { min-height: 34px; padding: 6px 11px; font-size: 12px; white-space: nowrap; }
.settlement-person-change { position: relative; }
.settlement-person-change > summary { list-style: none; cursor: pointer; }
.settlement-person-change > summary::-webkit-details-marker { display: none; }
.settlement-person-change > form {
  position: absolute;
  z-index: 35;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  gap: 8px;
  width: 250px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
}
.settlement-person-change label { color: var(--muted); font-size: 12px; }
.settlement-person-change select.no-select2 {
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}
.settlement-total-line { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 13px 18px; background: #fafbf8; border-top: 1px solid var(--line); font-size: 13px; }
.settlement-total-line span { color: var(--muted); }
.settlement-total-line span b { margin-left: 4px; }
.settlement-total-line > strong { font-size: 15px; }
.pill.pending { background: #fef2f2; color: var(--danger); }
.print-only { display: none; }
.flow-ico.expense, .flow-ico.invoice_payment { background: #ef4444; }
.flow-ico.income { background: #16a34a; }
.flow-ico.transfer { background: #64748b; }
.flow-origin { color: #6b7280; display: flex; gap: 6px; align-items: center; font-size: 13px; }
.flow-amount { text-align: right; min-width: 88px; }
.flow-amount small { display: block; margin-bottom: 1px; color: #6d3fc0; font-size: 9px; font-weight: 750; }
.thumb { color: #d1d5db; display: grid; place-items: center; }
.thumb.on { color: #16a34a; }
.day-foot { width: min(460px, 100%); margin-left: auto; }
.day-compact, .day-detail div { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 1px 0; color: #6b7280; font-size: 14px; }
.day-compact b, .day-detail b { min-width: 108px; text-align: right; font-weight: 650; color: #374151; }
.day-detail div:not(:first-child)::after { content: ""; width: 22px; flex: 0 0 22px; }
.day-compact b.pos, .day-detail b.pos, .month-foot b.pos { color: var(--green-dark); }
.day-compact b.neg, .day-detail b.neg, .month-foot b.neg { color: var(--danger); }
.month-foot {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 18px -18px -8px;
  padding: 14px 18px 16px;
  background: #f9f9f6;
  border-top: 1px solid #ecefed;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 -8px 18px rgba(20, 34, 27, .06);
}
.month-extra, .month-main { display: block; width: min(300px, 100%); margin-left: auto; }
.month-extra div, .month-main div { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 2px 0; color: #6b7280; font-size: 14px; }
.month-foot b { min-width: 108px; text-align: right; font-weight: 650; color: #374151; }
.month-foot b.blue { color: #2563eb; }
.balance-mode { display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin: 0 0 9px auto; color: var(--muted); font-size: 11px; }
.balance-mode span { margin-right: 3px; font-weight: 650; }
.balance-mode button { min-height: 28px; padding: 4px 9px; border: 1px solid #dce3de; border-radius: 999px; background: #fff; color: #5f6b64; font: inherit; font-weight: 700; cursor: pointer; }
.balance-mode button.active { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.collapse-btn { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #f3f4f6; color: #9ca3af; cursor: pointer; flex: 0 0 22px; }
[hidden] { display: none !important; }
select.select2-hidden-accessible {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}
.select2-container { margin-bottom: 10px; width: 100% !important; font: inherit; color: var(--ink); }
.select2-container--default .select2-selection--single {
  height: 46px;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: #fff;
  display: flex;
  align-items: center;
}
.select2-container--default .select2-selection--multiple {
  min-height: 46px;
  height: 46px;
  border: 1px solid var(--line) !important;
  border-radius: 7px !important;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: max-content;
  min-height: 44px;
  padding: 4px 8px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice { margin: 0 5px 0 0; }
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  height: 32px;
  min-height: 32px;
  margin: 0;
}
.js-tag-input + .select2-container .select2-selection--multiple { height: auto; min-height: 48px; overflow: visible; border-radius: 12px !important; }
.js-tag-input + .select2-container .select2-selection--multiple .select2-selection__rendered { flex-wrap: wrap; min-width: 0; gap: 5px; padding: 6px 8px; }
.js-tag-input + .select2-container .select2-selection__choice { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 5px; min-height: 30px; margin: 0 !important; padding: 3px 9px !important; border: 0 !important; border-radius: 999px !important; background: var(--green-soft) !important; color: var(--green-dark); font-size: 13px; font-weight: 650; }
.js-tag-input + .select2-container .select2-selection__choice__remove { position: static !important; width: 18px; height: 18px; padding: 0 !important; border: 0 !important; border-radius: 50%; color: #607268 !important; font-size: 16px; line-height: 16px; }
.js-tag-input + .select2-container .select2-selection__choice__remove:hover { background: rgba(8, 123, 77, .12) !important; color: var(--green-dark) !important; }
.js-tag-input + .select2-container .select2-search--inline { flex: 1 0 150px; }
.js-tag-input + .select2-container .select2-search--inline .select2-search__field { width: 100% !important; min-width: 150px; }
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.4;
  padding-left: 12px;
  padding-right: 32px;
  color: var(--ink);
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--muted); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 6px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: #66756c transparent transparent transparent; }
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent #66756c transparent; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}
.select2-dropdown { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); z-index: 80; }
.select2-search--dropdown { padding: 8px; }
.select2-container--default .select2-search--dropdown .select2-search__field {
  width: 100% !important;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  min-height: 0;
}
.select2-results__option { padding: 8px 12px; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background-color: var(--green); color: #fff; }
.select2-container--default .select2-results__option--selected { background: var(--green-soft); color: var(--green-dark); }
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 8px; color: #fff; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary:hover, .gear-drop.active summary { background: rgba(255,255,255,.16); }
.nav-drop .menu { position: absolute; top: calc(100% + 6px); right: 0; background: #fff; color: var(--ink); border-radius: 14px; min-width: 230px; box-shadow: var(--shadow); padding: 8px 6px; z-index: 40; }
.nav-drop .menu a, .nav-drop .menu button { display: block; width: 100%; text-align: left; color: var(--ink); opacity: 1; background: transparent; border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 500; cursor: pointer; min-height: 0; }
.nav-drop .menu a:hover, .nav-drop .menu button:hover { background: var(--green-soft); }
.menu-sep { color: #9ca3af; font-size: 12px; text-transform: lowercase; padding: 10px 12px 4px; }
.menu-user { padding: 8px 12px 10px; font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.invoice-hits { margin: 8px 0 16px; }
.invoice-preview { margin: -4px 0 12px 48px; }
.invoice-preview div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; padding: 2px 0; }
.inv-top { display: flex; align-items: center; gap: 12px; }
.inv-mark { width: 46px; height: 46px; border-radius: 12px; background: #820ad1; color: #fff; display: grid; place-items: center; font-weight: 800; }
.inv-switch { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 22px; font-weight: 750; margin: 18px 0 8px; }
.inv-total { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 14px; }
.invoice-create-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid #dce8df; border-radius: 12px; background: #f6fbf8; }
.invoice-create-actions > span strong, .invoice-create-actions > span small { display: block; }
.invoice-create-actions > span strong { font-size: 13px; }
.invoice-create-actions > span small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.invoice-create-actions > div { display: flex; gap: 7px; }
.invoice-create-actions .btn { min-height: 36px; padding: 7px 12px; white-space: nowrap; }
.invoice-expense-btn { background: #dc2626; }
.invoice-expense-btn:hover { background: #b91c1c; }
.invoice-income-btn { color: var(--green-dark); border-color: #bfe5cd; }
.invoice-view-tools { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 8px; }
.invoice-view-tools .btn { min-height: 34px; padding: 6px 11px; }
.inv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.inv-stat { border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.inv-stat span { display: block; color: var(--muted); font-size: 13px; }
.inv-row { display: grid; grid-template-columns: 52px 1fr auto auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #f1f4f2; color: inherit; }
.inv-row-wrap { position: relative; border-top: 1px solid #f1f4f2; }
.inv-row-wrap.is-entirely-others { opacity: .48; }
.inv-row-wrap.is-entirely-others:hover { opacity: .72; }
.invoice-share-note { display: block; margin-top: 3px; color: #7c3aed; font-size: 10px; font-weight: 650; white-space: normal; }
.inv-row-wrap .inv-row { padding-right: 36px; border-top: 0; }
.inv-row-actions { position: absolute; top: 50%; right: 0; z-index: 4; transform: translateY(-50%); }
.inv-row-actions[open] { z-index: 55; }
.inv-row-actions > summary { display: grid; place-items: center; width: 30px; height: 30px; list-style: none; border-radius: 50%; color: var(--muted); cursor: pointer; font-size: 18px; }
.inv-row-actions > summary::-webkit-details-marker { display: none; }
.inv-row-actions > summary:hover, .inv-row-actions[open] > summary { background: var(--green-soft); color: var(--green-dark); }
.inv-row-actions > div { position: absolute; top: calc(100% + 3px); right: 0; z-index: 8; width: 210px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.inv-row-actions form, .inv-row-actions button { width: 100%; margin: 0; }
.inv-row-actions button { min-height: 0; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; font-size: 13px; }
.inv-row-actions button:hover { background: var(--green-soft); color: var(--green-dark); }
.inv-row-wrap:last-child .inv-row-actions > div { top: auto; bottom: calc(100% + 3px); }
.inv-parcel { background: #f3f4f6; border-radius: 999px; padding: 2px 8px; font-size: 12px; color: #4b5563; }
.subnav { display: flex; gap: 6px; overflow: auto; margin-bottom: 12px; padding-bottom: 2px; }
.subnav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; background: #fff; color: var(--muted); font-weight: 650; }
.subnav a.active { background: var(--green); color: #fff; }
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.hub a { display: block; }
.hub a span { display: block; color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 4px; }
.print-btn { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.print-head-block { text-align: center; }
.print-brand-line { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 700; color: #1f2937; }
.print-brand-logo { display: block; width: 30px; height: 30px; object-fit: contain; }
.print-head-block h1 { font-size: 20px; font-weight: 400; margin: 12px 0 6px; }
.print-head-block p { margin: 0 0 6px; font-size: 12px; }
.print-head-block .print-filters-line { text-align: left; margin-top: 12px; }
.print-head-block hr { border: 0; border-top: 1px solid #111; margin: 10px 0 16px; }
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; overflow: visible !important; }
  body { font-size: 12px; color: #111; }
  .topbar, .bottom-nav, .more-sheet, .more-backdrop, .settings-nav, .hscroll-btn, .tab-scroll, .subnav,
  .flow-filters, .flow-tools, .launch, .flow-tabs, .mass-bar, #bulk, .select-toggle, .select-all, .row-check,
  .collapse-btn, .drawer, .drawer-backdrop, .catalog-modal, .no-print, .alert, form.row, #pagar,
  .inv-switch a, .inv-total .btn, .card > .actions, .flow-head .btn, .flow-head a.btn, .print-btn, .inv-row-actions,
  .settle-row form, .catalog-head, .sheet > p.muted, #inv-cats + .flow-filters, .inv-top, .inv-switch,
  .inv-total .muted + strong + .btn, [onclick*="inv-cats"] { display: none !important; }
  .inv-total { justify-content: flex-end; margin: 0 0 10px; }
  .inv-stats { grid-template-columns: repeat(4, 1fr) !important; }
  .inv-stat, .stat, .fc-summary > *, .settle-summary > * { border-radius: 0 !important; }
  #inv-cats::before { content: attr(data-print-title); display: block; font-weight: 700; margin: 4px 0 6px; }
  #inv-cats { display: block !important; }
  .page, .page-settings { max-width: none; padding: 0 !important; margin: 0; }
  .sheet, .card { box-shadow: none !important; border: 0; border-radius: 0; padding: 0 0 8px; margin: 0 0 10px; background: #fff; }
  .month-foot { position: static; box-shadow: none; background: #fff; border-top: 1px solid #111; margin: 12px 0 0; padding: 8px 0 0; }
  .print-only { display: block !important; }
  .settings-shell { display: block; }
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .flow-row, .inv-row, .list-item, .fc-row, .settle-row { break-inside: avoid; border-color: #d1d5db; }
  .stat, .inv-stat { border: 1px solid #111; border-radius: 0; background: #fff; }
  .money.neg, .money.pos, .money.blue { color: #111 !important; }
  a { color: inherit; text-decoration: none; }
  .fc-bar { border: 1px solid #d1d5db; }
  .fc-bar span, .chart-legend-dot, .chart-legend-bar > span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .chart-wrap, .chart-wrap-wide { height: 220px; break-inside: avoid; }
  .chart-toggle { display: none !important; }
  .chart-panel[hidden] { display: block !important; }
  .settlement-overview { display: none !important; }
  .settlement-card { break-after: page; page-break-after: always; }
  .settlement-card:last-of-type { break-after: auto; page-break-after: auto; }
  .settlement-card .print-head-block { break-after: avoid; page-break-after: avoid; }
  .settlement-origin, .settlement-entry, .settlement-total-line { break-inside: avoid; page-break-inside: avoid; }
  .settlement-print-summary { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 18px; border: 1px solid #111; }
  .settlement-print-summary > div { padding: 8px 10px; text-align: center; border-right: 1px solid #111; }
  .settlement-print-summary > div:nth-child(3) { border-right: 0; }
  .settlement-print-summary span, .settlement-print-summary strong { display: block; }
  .settlement-print-summary span { margin-bottom: 3px; font-size: 10px; color: #4b5563; }
  .settlement-print-summary p { grid-column: 1 / -1; margin: 0; padding: 7px 10px; border-top: 1px solid #111; font-size: 10px; }
  .settlement-print-footer { margin-top: 18px; text-align: right; color: #6b7280; font-size: 9px; }
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table-scroll { overflow-x: auto; }

[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  background: #14221b;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  padding: 6px 8px;
  border-radius: 8px;
  width: max-content;
  max-width: 220px;
  z-index: 40;
  pointer-events: none;
  white-space: normal;
}
.month-foot [data-tip] { cursor: help; }
.month-foot [data-tip]:hover::after, .month-foot [data-tip]:focus-visible::after {
  top: auto;
  bottom: calc(100% + 6px);
  left: auto;
  right: 0;
  transform: none;
  max-width: 260px;
}

@media screen and (max-width: 860px) {
  .nav-desktop { display: none; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-2 > * { min-width: 0; }
  .topbar { padding-left: 14px; padding-right: 10px; }
  .nav-drop .menu { position: fixed; top: calc(56px + env(safe-area-inset-top)); right: 8px; left: auto; max-height: calc(100vh - 150px); overflow-y: auto; }
  .bottom-nav { display: flex; }
  .quick-actions, .quick-actions-backdrop { display: block; }
  .transactions-index .quick-actions { bottom: calc(210px + env(safe-area-inset-bottom)); }
  .scope-picks { flex-direction: column; align-items: stretch; gap: 12px; }
  .scope-picks label { flex-direction: row; justify-content: flex-start; text-align: left; max-width: none; gap: 12px; }
  .chart-wrap { height: 220px; }
  .chart-wrap-wide { height: 240px; }
  .inv-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .inv-stat { padding: 10px; border-radius: 12px; }
  .inv-row { grid-template-columns: 42px minmax(0, 1fr) auto auto; gap: 8px; }
  .inv-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .flow-row { min-width: 0; }
  .flow-row > span:nth-child(2) { min-width: 0; overflow: hidden; }
  .inv-row .inv-cat { display: none; }
  .inv-top { flex-wrap: wrap; }
  .invoice-create-actions { align-items: stretch; flex-direction: column; }
  .invoice-create-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .invoice-create-actions .btn { width: 100%; text-align: center; }
  .invoice-view-tools { align-items: stretch; flex-direction: column; }
  .invoice-view-tools .value-filter-form, .invoice-view-tools .btn { width: 100%; }
  .invoice-view-tools .value-filter summary { justify-content: center; }
  .inv-switch { font-size: 18px; }
  .settings-shell { display: block; }
  .settings-shell > .hscroll { width: 100%; margin: 0 0 12px; }
  .settings-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding: 0 28px 4px; margin: 0; scrollbar-width: none; }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav a { white-space: nowrap; background: #fff; border-radius: 999px; padding: 8px 12px; }
  .settings-nav a.active { background: var(--green); color: #fff; }
  .settings-nav a.active::before { display: none; }
  .settings-sep { display: none; }
  .page-settings { padding-top: 12px; }
  .settings-main .card { padding: 16px; }
  .catalog-row { flex-wrap: wrap; }
  .catalog-row .row-actions { width: 100%; justify-content: flex-end; gap: 16px; }
  .catalog-head { flex-wrap: wrap; }
  .catalog-head h2 { font-size: 20px; }
  .tab-scroll { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 8px; scrollbar-width: none; }
  .tab-scroll > * { min-width: auto !important; flex: 0 0 auto; }
  .month-foot { bottom: calc(60px + env(safe-area-inset-bottom)); margin-left: -18px; margin-right: -18px; }
  .balance-mode { justify-content: stretch; overflow-x: auto; }
  .balance-mode span { flex: 0 0 auto; }
  .balance-mode button { flex: 1 0 auto; }
  .drawer { padding: 22px 18px calc(90px + env(safe-area-inset-bottom)); }
  .stat .money { font-size: 16px; }
  .flow-origin { display: none; }
  .flow-row { grid-template-columns: 28px minmax(0, 1fr) auto auto; }
  .flow-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .month-switch { order: -1; flex: 1 0 100%; font-size: 18px; margin-bottom: 4px; }
  .flow-tools { margin-left: auto; }
  .flow-tabs { align-items: flex-start; flex-wrap: wrap; gap: 9px; }
  .flow-tab-actions { width: 100%; justify-content: space-between; }
  .value-filter .menu { position: fixed; top: auto; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); left: 12px; width: auto; max-height: none; }
  .flow-row.is-card { margin-left: -4px; margin-right: -4px; padding-left: 8px; padding-right: 8px; }
  .launch summary { padding: 8px 12px; font-size: 14px; }
  .flow-filters { flex-wrap: wrap; border-radius: 16px; }
  .fc-row { grid-template-columns: 1fr; gap: 8px; }
  .settle-row { grid-template-columns: 34px 1fr auto; }
  .settle-row form, .settle-row .pill { grid-column: 2 / -1; justify-self: start; }
  .settlement-person-head { grid-template-columns: 38px minmax(0, 1fr); padding: 14px; }
  .settlement-person-total { grid-column: 1 / -1; text-align: left; display: flex; justify-content: space-between; align-items: baseline; }
  .settlement-person-total span, .settlement-person-total strong { display: inline; }
  .settlement-person-head .whatsapp-btn { grid-column: 1 / -1; width: 100%; }
  .settlement-origin { padding: 0 14px; }
  .settlement-origin-head { align-items: flex-start; }
  .settlement-origin-summary { align-items: flex-end; flex-direction: column; gap: 6px; }
  .settlement-origin-summary > span { text-align: right; }
  .settlement-entry { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 7px 10px; }
  .settlement-entry time { grid-column: 1 / -1; }
  .settlement-entry .cat-ico { grid-column: 1; grid-row: 2 / span 2; }
  .settlement-entry-main { grid-column: 2; }
  .settlement-entry > .money { grid-column: 3; grid-row: 2; }
  .settlement-installment { grid-column: 2; text-align: left; }
  .settlement-entry > .pill { grid-column: 2; justify-self: start; }
  .settlement-entry-actions { grid-column: 3; grid-row: 3 / span 2; align-items: flex-end; flex-direction: column; }
  .settlement-person-change > form { position: fixed; z-index: 45; inset: auto 12px calc(78px + env(safe-area-inset-bottom)) 12px; width: auto; }
  .settlement-total-line { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 14px; }
  .settlement-total-line > strong { grid-column: 1 / -1; text-align: right; padding-top: 6px; border-top: 1px solid var(--line); }
  .search-wrap.open input { width: 120px; }
  .row > * { min-width: 100%; }
  .list-item { align-items: flex-start; }
  .page { padding-left: 12px; padding-right: 12px; }
}
