@charset "UTF-8";
:root{--bg:#f6f7f2;--white:#fff;--ink:#20372e;--muted:#66766c;--green:#174c39;--green2:#246347;--lime:#e2ef94;--line:#e2e8dd;--soft:#edf2e8;--amber:#fff3d6;--radius:20px;--shadow:0 12px 40px #20372e08;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.5}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9eae46;outline-offset:3px}.skip{position:fixed;top:-80px;left:16px;z-index:100;background:var(--green);color:white;padding:14px}.skip:focus{top:10px}h1,h2,h3,p{margin:0}h1{font-size:clamp(28px,4vw,38px);line-height:1.15;letter-spacing:-1.2px;font-weight:730}h2{font-size:21px;line-height:1.3;letter-spacing:-.5px}h3{font-size:16px}.eyebrow{text-transform:uppercase;letter-spacing:1.7px;font-weight:750;font-size:10px}.muted,.help{color:var(--muted)}.help{font-size:12px;margin-top:6px}.small{font-size:12px}.shell{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:33px 23px;position:fixed;width:235px;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:10}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);margin:0 8px 45px}.brand-mark{width:42px;height:42px;border-radius:13px;background:var(--green);color:var(--lime);display:grid;place-items:center;font-size:28px;font-weight:750;letter-spacing:-2px}.brand strong{display:block;font-size:15px;letter-spacing:-.4px}.brand span{font-size:10px;display:block;color:var(--muted)}nav{display:grid;gap:6px}.nav-item{display:flex;align-items:center;gap:12px;border:0;background:none;color:var(--muted);text-decoration:none;padding:13px 15px;border-radius:12px;font-size:13px;font-weight:650;min-height:48px}.nav-item.active{background:var(--green);color:#fff}.icon{width:20px;height:20px;flex-shrink:0;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sidebar-footer{margin-top:auto;padding:26px 10px 0}.sidebar-footer p{font-size:11px;color:var(--muted);margin:9px 0 15px}.sidebar-footer .mini-tag{display:inline-block;border:1px solid var(--line);border-radius:7px;font-size:10px;letter-spacing:1.6px;padding:5px 9px}.page{grid-column:2;max-width:1320px;width:100%;padding:30px 48px 65px;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;padding-bottom:28px;gap:12px}.date-line{font-size:12px;color:var(--muted);text-transform:capitalize}.top-actions{display:flex;align-items:center;gap:12px}.icon-btn{border:1px solid var(--line);border-radius:50%;width:41px;height:41px;background:#fff;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;position:relative}.unread-dot{height:7px;width:7px;border-radius:50%;background:var(--green);position:absolute;top:8px;right:9px}.avatar{width:39px;height:39px;display:grid;place-items:center;border-radius:50%;background:#e8eadf;font-size:13px;font-weight:750}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:27px}.page-head p{color:var(--muted);margin-top:9px;font-size:13px}.page-head .eyebrow{color:var(--green);margin-bottom:10px}.pill{border-radius:30px;display:inline-flex;align-items:center;gap:7px;padding:6px 11px;font-size:11px;font-weight:700;background:var(--soft);color:var(--green);white-space:nowrap}.pill-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.pill.amber{background:var(--amber);color:#805d12}.pill.gray{background:#f1f2ee;color:var(--muted)}.grid{display:grid;gap:20px}.grid.two{grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr)}.grid.equal{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:25px;box-shadow:var(--shadow);min-width:0}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.card-head .text-btn{font-size:11px}.hero{background:var(--green);color:#fff;border:0;position:relative;overflow:hidden;min-height:276px;display:flex;flex-direction:column;justify-content:space-between;padding:30px}.hero .eyebrow{color:#c4d7ca}.hero h2{font-size:35px;letter-spacing:-1px;margin-top:16px;max-width:75%}.hero p{color:#d0e0d4;font-size:13px;margin-top:9px;max-width:75%}.hero .pill{background:#e2ef9420;color:var(--lime);width:max-content}.hero-facts{display:flex;gap:26px;position:relative;z-index:1;margin-top:30px}.hero-facts small{display:block;font-size:10px;color:#c4d7ca;margin-bottom:4px}.hero-facts strong{font-size:13px;font-weight:550}.car-art{position:absolute;width:185px;right:-12px;bottom:58px;color:#7fa28b;opacity:.75}.hero-orbit{position:absolute;width:250px;height:250px;border:1px solid #ffffff0d;border-radius:50%;right:-100px;top:-70px}.hero-orbit:after{content:"";position:absolute;border:1px solid #ffffff0d;border-radius:50%;inset:-45px}.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:19px 0 30px}.quick{border:1px solid var(--line);background:#fff;border-radius:15px;display:flex;flex-direction:column;align-items:center;gap:11px;padding:18px 8px;min-height:93px;font-size:11px;font-weight:650;color:var(--ink)}.quick .icon{width:22px;height:22px}.quick:hover{border-color:#a5b4a1;background:#fcfdf7}.quick.primary{background:var(--lime);border-color:var(--lime)}.btn{background:var(--green);color:#fff;border:1px solid transparent;border-radius:10px;padding:11px 17px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap}.btn.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.btn.soft{background:var(--soft);color:var(--green)}.btn.lime{background:var(--lime);color:var(--green)}.btn.full{width:100%}.btn.small{padding:7px 11px;min-height:36px;font-size:11px}.btn.danger{background:#fff4ed;color:#7b442f;border-color:#f1dfd1}.text-btn{border:0;background:none;color:var(--green);font-size:12px;font-weight:700;padding:7px 0;text-decoration:none}.row{display:flex;align-items:center;gap:13px}.spread{justify-content:space-between}.wrap{flex-wrap:wrap}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.metric{font-size:29px;line-height:1.2;letter-spacing:-1px;font-weight:700;margin:12px 0 7px}.metric small{font-size:13px;color:var(--muted);font-weight:500;letter-spacing:0}.metric-label{color:var(--muted);font-size:11px}.metric-icon{width:37px;height:37px;border-radius:11px;display:grid;place-items:center;background:var(--soft);color:var(--green)}.stat-foot{font-size:11px;color:var(--muted)}.list{display:grid}.list-item{padding:16px 0;border-bottom:1px solid var(--line)}.list-item:first-child{padding-top:0}.list-item:last-child{border-bottom:0;padding-bottom:0}.day-box{background:var(--soft);border-radius:11px;width:46px;min-width:46px;height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--green)}.day-box strong{font-size:18px;line-height:1.1}.day-box span{font-size:9px;text-transform:uppercase}.grow{flex:1;min-width:0}.grow strong{font-size:13px}.subline{font-size:11px;color:var(--muted);margin-top:3px}.person-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:6px;background:#90a86c}.person-dot.filip{background:#8aa7c5}.section-space{margin-top:27px}.empty{text-align:center;padding:28px 15px;color:var(--muted);font-size:13px}.empty .empty-icon{display:grid;place-items:center;width:47px;height:47px;border-radius:50%;background:var(--soft);color:var(--green);margin:0 auto 12px}.empty strong{display:block;color:var(--ink);margin-bottom:5px}.empty p{max-width:320px;margin:auto;font-size:12px}.note{background:var(--soft);border-radius:12px;padding:15px 17px;font-size:12px;line-height:1.6;color:#49614e}.note.amber{background:var(--amber);color:#785b22}.note+.card{margin-top:18px}.offline-banner{position:sticky;top:0;z-index:20;background:var(--amber);padding:12px 20px;text-align:center;font-size:12px;border-bottom:1px solid #e8d4a4}.tabs{display:flex;gap:5px;flex-wrap:wrap;padding:4px;background:#e9eee4;border-radius:12px;width:max-content;max-width:100%;margin-bottom:23px}.tab{border:0;background:none;padding:8px 16px;border-radius:9px;font-size:12px;font-weight:650;color:var(--muted);min-height:39px}.tab.active{background:#fff;color:var(--ink);box-shadow:0 1px 4px #172d1910}.toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-bottom:20px}.filter-date{width:auto}.amount{font-variant-numeric:tabular-nums;font-weight:650;white-space:nowrap}.balance-card{position:relative}.balance-card .metric{font-size:32px}.balance-card.me{border-color:#9db292;background:#fbfcf5}.balance-card .eyebrow{font-size:10px}.balance-card .you-tag{position:absolute;top:21px;right:20px;font-size:10px;background:var(--lime);padding:3px 8px;border-radius:20px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.9px;color:var(--muted);padding:12px 10px;border-bottom:1px solid var(--line)}td{padding:14px 10px;border-bottom:1px solid var(--line);vertical-align:top}tr:last-child td{border:0}th:last-child,td:last-child{text-align:right}.menu-list{display:grid;gap:10px}.menu-card{border:1px solid var(--line);border-radius:15px;background:#fff;padding:18px;display:flex;align-items:center;text-align:left;gap:14px;width:100%;text-decoration:none;color:var(--ink);min-height:76px}.menu-card .arrow{margin-left:auto;color:var(--muted)}.menu-card p{font-size:11px;color:var(--muted);margin-top:3px}.menu-card strong{font-size:13px}.badge{border-radius:20px;background:var(--soft);font-size:10px;padding:3px 8px}.month-card{margin-top:18px}.month-card summary{cursor:pointer;font-size:15px;font-weight:700;display:flex;justify-content:space-between;gap:15px}.month-body{margin-top:20px}.settings-grid{display:grid;gap:15px;grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid .wide{grid-column:1/-1}.notification.unread{border-left:3px solid var(--green);padding-left:13px}.notification p{font-size:12px;margin-top:6px}.notification time{font-size:10px;color:var(--muted)}.phone-link{display:flex;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line);text-decoration:none;font-size:13px}.checklist{padding-left:22px;font-size:13px}.checklist li{padding:7px 0}label{display:grid;gap:7px;font-size:12px;font-weight:650}input,select,textarea{width:100%;min-height:44px;padding:11px 12px;border:1px solid #d9e1d4;border-radius:9px;background:#fff;color:var(--ink);font-size:13px}textarea{min-height:85px;resize:vertical}input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:var(--green);margin:0}.check-label{display:flex;align-items:center;gap:9px;font-weight:500;font-size:12px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-fields{display:grid;gap:15px}.form-fields fieldset{border:1px solid var(--line);border-radius:12px;padding:16px;min-width:0}.form-fields legend{font-size:12px;font-weight:700;padding:0 6px}.checks{display:flex;gap:12px;flex-wrap:wrap}.seg-row{display:grid;grid-template-columns:1fr 90px 38px;gap:8px;margin-bottom:9px;align-items:end}.seg-row .icon-btn{width:36px;height:43px;border-radius:9px}.form-error{background:#fff1e9;border:1px solid #ecd6c8;color:#7c3f27;padding:12px;border-radius:9px;font-size:12px;margin-bottom:15px}.hidden{display:none!important}dialog{border:1px solid var(--line);border-radius:23px;padding:0;width:min(560px,calc(100vw - 24px));max-height:90dvh;color:var(--ink);box-shadow:0 25px 100px #10231730}dialog::backdrop{background:#132e2560;backdrop-filter:blur(3px)}.dialog-head{padding:23px 25px 18px;display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:21px}.dialog-body{padding:24px 25px}.dialog-foot{display:flex;gap:10px;justify-content:flex-end;padding-top:22px}.dialog-foot button{flex:1}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#20372e;color:#fff;border-radius:12px;padding:13px 22px;font-size:13px;z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:calc(100vw - 30px);text-align:center;box-shadow:0 8px 35px #15281e22}.toast.visible{opacity:1;transform:translate(-50%,0)}.loading{min-height:90vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:var(--muted);font-size:13px}.bottom-nav{display:none}.rule-grid input{width:72px;min-width:60px;padding:8px;text-align:right}.rule-grid td:first-child{text-align:left}.rule-grid td:last-child{text-align:right}.chip-line{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.chip-line span{font-size:10px;background:var(--soft);padding:4px 9px;border-radius:20px}.ledger-description{min-width:170px}.mt{margin-top:18px}.mb{margin-bottom:18px}.history{border-left:2px solid var(--line);padding-left:14px;margin-top:10px;font-size:11px}.copy-input{font-family:ui-monospace,monospace;font-size:11px}.booking-day{padding:14px 0 7px;font-size:11px;color:var(--muted);font-weight:650;text-transform:capitalize}.booking-day:first-child{padding-top:0}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));gap:9px;min-width:970px}.week-day{background:var(--soft);border-radius:12px;padding:12px;min-height:180px}.week-day h3{font-size:11px;text-transform:capitalize;margin-bottom:12px}.week-booking{background:#fff;border-radius:9px;padding:10px;margin-bottom:8px;font-size:10px}.week-booking strong{display:block;font-size:11px}.footer-hint{text-align:center;color:var(--muted);font-size:10px;margin-top:35px}.progress-track{height:5px;background:var(--soft);border-radius:5px;margin-top:14px;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--green)}
@media(min-width:1400px){.page{padding-left:65px;padding-right:65px}}
@media(max-width:1100px){.sidebar{width:205px;padding:28px 17px}.shell{grid-template-columns:205px minmax(0,1fr)}.page{padding:25px 28px 55px}.grid.two{grid-template-columns:1fr}.hero{min-height:255px}.car-art{right:15px}.quick-actions{margin-bottom:23px}.grid.three{gap:13px}.card{padding:21px}.hero{padding:27px}.grid.equal{gap:15px}}
@media(max-width:700px),(max-width:950px) and (pointer:coarse){:root{font-size:14px}.shell{display:block}.sidebar{display:none}.page{padding:19px 19px 105px;max-width:580px}.topbar{padding-bottom:23px}.date-line{font-size:10px}.top-actions{gap:9px}.avatar{width:35px;height:35px}.icon-btn{width:37px;height:37px}.page-head{margin-bottom:23px;align-items:center}h1{font-size:29px}.page-head p{font-size:12px;max-width:265px}.page-head .btn{font-size:11px;padding:10px 12px}.grid{gap:15px}.card{padding:20px;border-radius:17px}.hero{padding:25px;min-height:268px;border-radius:19px}.hero h2{font-size:31px;max-width:80%}.hero p{max-width:75%;font-size:12px}.car-art{width:145px;bottom:75px;right:-12px}.hero-facts{gap:19px;margin-top:35px;flex-wrap:wrap}.hero-facts strong{font-size:12px}.quick-actions{gap:7px;margin:14px 0 24px}.quick{padding:15px 4px;font-size:10px;border-radius:12px;min-height:86px;gap:9px}.quick .icon{width:21px;height:21px}.grid.three{grid-template-columns:1fr;gap:10px}.stat-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;padding:17px 19px}.stat-card .metric{margin:0;font-size:23px}.stat-card .stat-foot{display:none}.metric-label{font-size:11px}.stat-card .metric-label{max-width:130px}.stat-card .metric small{font-size:11px}.grid.equal{grid-template-columns:1fr}.bottom-nav{position:fixed;bottom:0;inset-inline:0;background:#ffffffed;backdrop-filter:blur(15px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:7px 7px calc(7px + env(safe-area-inset-bottom));z-index:30}.bottom-nav .nav-item{display:flex;flex-direction:column;gap:4px;padding:8px 2px 5px;border-radius:10px;font-size:9px;font-weight:650;min-height:53px}.bottom-nav .nav-item.active{background:var(--soft);color:var(--green)}.bottom-nav .icon{width:21px;height:21px}.toast{bottom:90px}.card-head{margin-bottom:18px}.card-head h2{font-size:18px}.section-space{margin-top:22px}.toolbar{gap:12px}.tabs{margin-bottom:18px}.tab{padding:8px 12px;font-size:11px}.field-row{gap:10px}.field-row.three{grid-template-columns:1fr}.dialog-head{padding:20px}.dialog-body{padding:20px}.settings-grid{grid-template-columns:1fr}.settings-grid .wide{grid-column:auto}.balance-card .metric{font-size:29px}.balance-card{padding:21px}.balance-grid{grid-template-columns:1fr!important}.balance-grid .balance-card{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.balance-grid .balance-card .metric{margin:0}.balance-grid .balance-card .stat-foot{width:100%}.balance-grid .you-tag{position:static;margin-left:6px}.seg-row{grid-template-columns:1fr 75px 34px}.rule-grid{font-size:11px}.rule-grid td,.rule-grid th{padding:10px 5px}.rule-grid input{width:62px}.offline-banner{font-size:11px;padding:10px}.footer-hint{margin-top:26px}.page-head .eyebrow{font-size:9px}.hero .eyebrow{font-size:9px}.note{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.seg-custom{grid-column:1/-1;padding:12px;background:var(--soft);border-radius:10px}.seg-custom input{min-width:0}

/* Destination choices stay touch-friendly and allow arbitrary text. */
.destination-presets{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.destination-preset{border:1px solid var(--line);border-radius:20px;background:var(--soft);color:var(--green);padding:8px 12px;font-size:11px;min-height:38px;font-weight:650}.destination-preset.selected{background:var(--green);color:#fff;border-color:var(--green)}.copy-booking-panel{background:#f6f8f0}.booking-pending .day-box{background:var(--amber);color:#805d12}.booking-declined{opacity:.8}.booking-pending .pill{white-space:normal;max-width:150px;text-align:left}.booking-pending .grow strong,.destination-field input{overflow-wrap:anywhere}

.list-item .grow strong,.week-booking{overflow-wrap:anywhere}.copy-booking-panel select{min-width:0}

/* Dialog grid tracks must shrink below native date/select intrinsic widths. */
#dialog-form{min-width:0;grid-template-columns:minmax(0,1fr)}
#dialog-form label{min-width:0;grid-template-columns:minmax(0,1fr)}
#dialog-form input,#dialog-form select,#dialog-form textarea,#dialog-form fieldset,#dialog-form .destination-field{min-width:0;max-width:100%}
#dialog-form .field-row{min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}
#dialog-form .field-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:520px){#dialog-form .field-row,#dialog-form .field-row.three{grid-template-columns:minmax(0,1fr)}}

/* Phone-first reading, touch targets and Safari's visible viewport. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-bottom:110px}
input,select,textarea{font-size:16px}
dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.dialog-head{flex-shrink:0}
.dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding:20px 0 110px}
.dialog-foot{position:sticky;bottom:-1px;background:#fff;border-top:1px solid var(--line);padding:14px 0;z-index:2}
body:has(dialog[open]){overflow:hidden}
.ledger-table td,.allocation-table td{overflow-wrap:anywhere}
@media(max-width:700px),(max-width:950px) and (pointer:coarse){
  :root{font-size:16px;--phone-nav-height:82px}
  .page{padding:calc(16px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) calc(var(--phone-nav-height) + 28px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));margin-inline:auto}
  .topbar{padding-bottom:20px}.date-line{font-size:12px}.top-actions{gap:8px}
  .page-head{display:flex;flex-direction:column;align-items:stretch;gap:16px;margin-bottom:24px}
  .page-head>div{min-width:0}.page-head h1{font-size:30px;max-width:100%;line-height:1.15}
  .page-head p{font-size:15px;max-width:100%;line-height:1.5;margin-top:10px}
  .page-head>.btn{width:100%;font-size:15px;min-height:48px}
  .page-head .eyebrow,.hero .eyebrow{font-size:11px}
  .help,.small,.note,.subline,.stat-foot,.metric-label,.notification p,.phone-link,.checklist,.menu-card p{font-size:14px;line-height:1.5}
  .grow strong,.menu-card strong{font-size:16px}.empty,.empty p{font-size:14px}
  .card-head h2{font-size:20px}.card-head{gap:12px;flex-wrap:wrap}
  .btn,.btn.small{min-height:44px;min-width:44px;font-size:14px;padding:11px 14px;white-space:normal;line-height:1.35;text-align:center}
  .icon-btn{width:44px;height:44px;min-width:44px;min-height:44px;flex-shrink:0}
  .text-btn{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
  .tab,.destination-preset{min-height:44px;min-width:44px;font-size:14px;padding:10px 12px}
  .tabs{width:100%;gap:4px}.tab{flex:1}.quick{font-size:12px;line-height:1.35;min-height:92px}
  .hero p,.hero-facts strong{font-size:14px}.hero p{max-width:80%}
  .pill{font-size:12px;white-space:normal}.badge{font-size:12px}.chip-line span{font-size:12px}
  .booking-day{font-size:14px}.day-box span{font-size:11px}
  .row,.list-item,.list-item .row>div,.form-fields{min-width:0}
  .list-item>.row.spread{align-items:flex-start;flex-wrap:wrap;gap:10px}
  .list-item>.row.spread>div:first-child{flex:1 1 175px;min-width:0;overflow-wrap:anywhere}
  .list-item .amount{margin-left:auto}.actions{gap:10px}.actions>.btn{flex:1 1 auto}
  .amount{font-size:16px}.balance-grid .balance-card .stat-foot{font-size:14px}
  label,.form-fields legend{font-size:14px;line-height:1.5}
  input,select,textarea{font-size:16px;min-height:48px;line-height:1.4;padding:12px}
  input[type=checkbox]{width:24px;height:24px;min-height:24px;flex-shrink:0}
  .check-label{min-height:44px;font-size:14px;gap:12px;padding-block:5px}
  .checks{gap:8px 14px}.form-fields fieldset{padding:14px}
  .seg-row{grid-template-columns:minmax(0,1fr) 74px 44px;gap:7px}.seg-row .icon-btn{width:44px;height:48px}
  .seg-row select{padding-inline:8px}.seg-custom{padding:12px}
  .form-error{font-size:14px}.history,.copy-input{font-size:14px}
  dialog{position:fixed;inset:auto 12px;margin:0 auto;width:calc(100% - 24px);max-width:560px;top:calc(var(--visible-top,0px) + var(--visible-height,100dvh) - 12px - env(safe-area-inset-bottom,0px));transform:translateY(-100%);max-height:calc(var(--visible-height,100dvh) - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-radius:22px}
  .dialog-head{padding:16px 18px;gap:12px}.dialog-head h2{font-size:21px;min-width:0;overflow-wrap:anywhere}
  .dialog-body{padding:18px 18px 0}.dialog-foot{gap:10px;margin-top:8px;padding:12px 0}
  .dialog-foot .btn{min-height:48px;flex:1 1 0}
  .bottom-nav{padding:8px max(8px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));gap:3px}
  .bottom-nav .nav-item{font-size:11px;min-height:58px;padding:7px 1px;gap:4px;line-height:1.3}.bottom-nav .icon{width:23px;height:23px}
  .toast{bottom:calc(var(--phone-nav-height) + 12px + env(safe-area-inset-bottom,0px));font-size:14px;max-width:calc(100vw - 32px)}
  .offline-banner{font-size:14px;padding:12px max(16px,env(safe-area-inset-left,0px));padding-top:calc(12px + env(safe-area-inset-top,0px))}
  .footer-hint{font-size:12px}
  .ledger-table,.allocation-table{display:block;width:100%;font-size:14px}
  .ledger-table thead,.allocation-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .ledger-table tbody,.allocation-table tbody{display:grid;gap:12px}
  .ledger-table tr,.allocation-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;border:1px solid var(--line);border-radius:12px;padding:14px}
  .ledger-table td,.allocation-table td{display:block;padding:0;border:0;min-width:0;text-align:left}
  .ledger-table .ledger-description{grid-column:1/-1;grid-row:1;min-width:0;font-size:15px;font-weight:600;line-height:1.5}
  .ledger-description .btn{display:flex;width:100%;margin-top:10px}
  .ledger-table td:first-child{grid-column:1;grid-row:2;font-size:13px;color:var(--muted)}
  .ledger-table td:nth-child(3){grid-column:1;grid-row:3;font-size:14px}
  .ledger-table td:last-child{grid-column:2;grid-row:2/4;align-self:center;font-size:17px;text-align:right;white-space:nowrap}
  .allocation-table td:first-child{grid-column:1;grid-row:1;font-size:16px;font-weight:700}
  .allocation-table td:last-child{grid-column:2;grid-row:1;font-size:16px;text-align:right;white-space:nowrap}
  .allocation-table td:nth-child(2){grid-column:1;grid-row:2;color:var(--muted)}
  .allocation-table td:nth-child(3){grid-column:2;grid-row:2;text-align:right;color:var(--muted)}
  .allocation-table td:nth-child(2)::before{content:'Km: '}.allocation-table td:nth-child(3)::before{content:'Andel: '}
  .ledger-table tr:last-child td,.allocation-table tr:last-child td{border:0}
}

/* Native WebKit selects keep a full touch target and a clear inset chevron. */
@media(max-width:700px),(max-width:950px) and (pointer:coarse){
  select{-webkit-appearance:none;appearance:none;display:block;padding-right:34px;background-image:linear-gradient(45deg,transparent 50%,var(--green) 50%),linear-gradient(135deg,var(--green) 50%,transparent 50%);background-position:calc(100% - 17px) calc(50% - 2px),calc(100% - 12px) calc(50% - 2px);background-size:5px 5px;background-repeat:no-repeat}
  .seg-row select{padding-right:28px}.dialog-head h2:focus{outline:none}
  .bottom-nav{background:#fff}.balance-grid .balance-card.me{order:-1}
  .car-art{width:110px;bottom:85px;right:-8px;opacity:.4}
}

.copy-booking-panel{border:1px solid var(--line);border-radius:12px;padding:12px 14px;min-width:0}
.copy-booking-panel>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:14px;font-weight:650;gap:10px}
.copy-booking-panel>summary::before{content:'+';font-size:20px}.copy-booking-panel[open]>summary::before{content:'−'}
.copy-booking-body{padding-top:12px}

/* Optional manual map points. The basemap is loaded only after opening it. */
.map-picker{min-width:0}.map-point-list{display:grid;gap:12px;margin-top:14px}.map-toolbar{display:flex;gap:10px;margin-top:14px}
.map-point{display:flex;align-items:center;gap:12px;min-width:0}.map-point .grow{min-width:0}.map-point p{overflow-wrap:anywhere}
.map-letter{display:grid;place-items:center;background:var(--green);color:white;width:28px;height:32px;flex-shrink:0;border-radius:8px;font-weight:700}.map-letter.end{background:#795630}
.map-panel{min-width:0;margin-top:18px}.map-mode{display:flex;gap:10px}.map-mode .btn{flex:1;min-width:0}
.map-credit{font-size:12px;margin:12px 0 8px;line-height:1.5}.map-credit a{font-weight:650}.map-privacy{margin-bottom:12px}
.family-map{height:300px;height:min(42svh,300px);min-height:200px;max-width:100%;border:1px solid var(--line);border-radius:12px;background:#edf1e8;isolation:isolate;font-family:inherit}
.family-map .leaflet-control-zoom a{width:44px;height:44px;line-height:44px;font-size:24px;color:var(--green)}
.family-map .leaflet-control-attribution{font-size:11px;line-height:1.5;max-width:95%;white-space:normal;background:#fffffff2}
.family-map-marker{background:var(--green);border:2px solid #fff;border-radius:12px 12px 12px 0;box-shadow:0 2px 7px #173e3240;color:white;display:grid!important;place-items:center;font-family:inherit;font-weight:750;font-size:17px}.family-map-marker.end{background:#795630}
.family-map .leaflet-popup-content{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.family-map a.leaflet-popup-close-button{width:44px;height:44px;line-height:44px;font-size:24px}
@media(max-width:700px),(max-width:950px) and (pointer:coarse){.map-point{flex-wrap:wrap;gap:10px}.map-point .grow{flex:1 1 180px}.map-point .btn{margin-left:auto}.map-credit{font-size:12px}.map-mode .btn{padding-inline:10px}.map-error{color:#785b22}.map-point input{min-width:0}}

.map-picker{border:1px solid var(--line);border-radius:12px;padding:12px 14px}.map-picker>summary{min-height:44px;font-size:14px;font-weight:650;cursor:pointer;display:flex;align-items:center;gap:10px}.map-picker>summary::before{content:'+';font-size:20px}.map-picker[open]>summary::before{content:'−'}.map-content{padding-top:12px}

.map-viewer .map-content>.help,.map-viewer .map-toolbar,.map-viewer .map-hint{display:none}.map-viewer .map-panel{margin-top:0}

.map-location{margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}.map-location .actions{margin-top:10px}.map-location-status{margin-top:0;font-weight:600}.map-location .btn{white-space:normal}.map-location-meta{margin-top:6px;font-size:13px}.map-viewer .map-location-meta{display:block}

/* Latest returned place on the home screen. */
.home-car-map{margin-bottom:20px}.home-car-map .card-head{margin-bottom:12px}.home-map-place{font-size:16px;font-weight:650;overflow-wrap:anywhere}.map-inline{margin-top:16px;border:0;padding:0}.map-inline .map-panel{margin:0}.map-inline .family-map{height:220px}.map-preview-foot{gap:8px;margin-top:10px}.map-preview-foot .map-credit{flex:1;min-width:140px}.map-inline .map-location-meta{margin-top:10px}
