@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#111212;--panel:#1a1b1b;--line:#323434;--muted:#929692;--orange:#ff5a2b;--text:#f3f1ec}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px 'DM Sans',sans-serif}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;color:inherit;background:none;transition:background .15s}button:hover{filter:brightness(1.16)}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--orange);outline-offset:4px}a{color:inherit;text-decoration:none}button:disabled{opacity:.4;cursor:not-allowed}.rail{position:fixed;inset:0 auto 0 0;width:76px;border-right:1px solid var(--line);display:flex;align-items:center;flex-direction:column;gap:25px;z-index:5;background:#131414}.brand{font:900 38px 'Barlow Condensed',Impact,sans-serif;margin:24px 0 28px;position:relative}.brand span{font-size:23px;color:var(--orange);position:absolute;top:0;right:-11px}.rail button{font-size:26px;width:44px;height:44px;border-radius:8px}.rail-active{background:#ff5a2b1c;color:var(--orange)}.rail-bottom{margin-top:auto;padding-bottom:26px;font-size:10px;line-height:1.7;letter-spacing:3px;color:#727672}.shell{margin-left:76px}header{height:87px;display:flex;align-items:center;gap:72px;padding:0 42px;border-bottom:1px solid var(--line)}.wordmark{font:800 29px 'Barlow Condensed',Impact,sans-serif;letter-spacing:-.7px}.wordmark span{font-weight:600;color:#ccc}.wordmark i,footer i{color:var(--orange);font-style:normal;margin-left:3px}nav{display:flex;gap:28px;height:100%}nav button{color:var(--muted);font-size:12px;padding:0;position:relative}nav .active{color:#fff}nav .active:after{content:'';height:2px;background:var(--orange);position:absolute;bottom:0;left:0;right:0}.top-right{margin-left:auto;display:flex;gap:22px;align-items:center}#network{font-size:10px;color:#b4b8af}.small{border:1px solid #454743;padding:10px 16px;border-radius:5px;font-size:11px}.avatar,.faces span{display:grid;place-items:center;border-radius:50%;background:#675340;font-size:11px;font-weight:bold}.avatar{width:34px;height:34px}main{max-width:1550px;margin:auto;padding:28px 42px 0}.hero{height:322px;border-radius:9px;overflow:hidden;position:relative;background:#37362c url('/roadtrip-hero.png') center 48%/cover}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,#0b0c0cde,transparent),linear-gradient(0deg,#0b0c0cdb,transparent 80%)}.hero-top,.hero-content,.hero-bottom{position:absolute;left:32px;right:32px}.hero-top{top:24px;display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:700;color:#a6aaa1}.hero .eyebrow{color:#ddd6ca}.badge{font-size:9px;letter-spacing:1px;background:#131414aa;border:1px solid #ffffff44;border-radius:4px;padding:7px 10px}.hero-content{top:70px}.kicker{color:#ff8a5e;font-size:10px;font-weight:bold;letter-spacing:2px}h1{font:800 clamp(40px,5.2vw,72px)/.94 'Barlow Condensed',Impact,sans-serif;letter-spacing:.3px;margin:14px 0}h1 em{font-style:normal;color:#ff6537}#rideMeta{font-size:11px;color:#c5c4be}.hero-bottom{bottom:22px;display:flex;align-items:center;gap:12px;font-size:10px;color:#d2d2c9}.faces{display:flex;padding-left:5px}.faces span{width:30px;height:30px;margin-left:-5px;border:2px solid #292b27}.faces span:nth-child(2){background:#5b6651}.faces span:nth-child(3){background:#626573}.faces span:nth-child(4){background:#87664d}.outline{border:1px solid #ffffff66;border-radius:5px;padding:11px 17px;font-size:11px;margin-left:auto}.stats{display:grid;grid-template-columns:repeat(4,1fr);padding:24px 0 26px;border-bottom:1px solid var(--line)}.stats>div{padding-left:28px;border-left:1px solid var(--line)}.stats>div:first-child{padding:0;border:0}.stat-label{display:block;font-size:9px;letter-spacing:1.4px;color:var(--muted);margin-bottom:9px}.stats strong{font:700 35px 'Barlow Condensed',Impact,sans-serif}.stats small{font:12px 'DM Sans',sans-serif;color:#969b93;margin-left:5px}.section-toolbar{display:flex;align-items:center;justify-content:space-between;height:75px}.tabs{display:flex;gap:10px}.tabs button{padding:10px 15px;border-radius:5px;color:#93978f;font-size:12px}.tabs .selected{background:#ff5a2b1c;color:#ff7950}.tabs span{font-size:9px;background:#343630;padding:2px 5px;border-radius:3px}.text-button{font-size:11px;color:#b5b9b0}.story-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,1fr);border:1px solid var(--line);border-radius:8px;overflow:hidden;min-height:460px}.map-wrap{position:relative;min-height:460px;background:#222923}#map{height:100%;position:absolute;inset:0;background:#232825}.leaflet-container{font-family:'DM Sans',sans-serif}.map-label,.map-legend,.map-fit,.map-notice{position:absolute;z-index:500;background:#161b18e8;border:1px solid #475044;border-radius:5px}.map-label{top:18px;left:18px;padding:11px;font-size:9px;letter-spacing:1.1px;display:flex;align-items:center;gap:8px}.live-dot{width:6px;height:6px;border-radius:50%;background:var(--orange)}.map-fit{top:18px;right:18px;font-size:23px;width:36px;height:36px}.map-legend{bottom:25px;left:18px;padding:10px;font-size:9px;color:#b8beb5}.map-legend b{color:var(--orange);margin-right:6px}.map-legend span{color:#efebe1;margin:0 6px 0 15px}.map-notice{bottom:68px;left:18px;padding:7px;font-size:10px}.timeline{background:#1b1d1b;padding:25px}.timeline-heading{display:flex;justify-content:space-between;margin-bottom:23px}.timeline-heading>span{font-size:26px;color:var(--orange)}h2{font:700 26px 'Barlow Condensed',Impact,sans-serif;letter-spacing:.2px;margin:7px 0 15px}.timeline-heading h2{margin-bottom:0}.event{display:grid;grid-template-columns:40px 20px 1fr;gap:7px;text-align:left;width:100%;padding:0;min-height:60px}.event time{color:#949b91;font-size:10px;padding-top:4px}.event .dot{position:relative}.event .dot:before{content:'';display:block;width:8px;height:8px;border:2px solid #ff7647;background:#1c1e1c;border-radius:50%;margin-top:3px;z-index:2;position:relative}.event .dot:after{content:'';position:absolute;top:14px;bottom:0;left:5px;border-left:1px dashed #51554b}.event:last-child .dot:after{display:none}.event strong{display:block;font-size:12px;font-weight:500;padding:2px 0 5px}.event small{font-size:10px;color:#91978b}.primary{background:var(--orange);border-radius:5px;color:#150d09;padding:13px 18px;font-size:12px;font-weight:700}.wide{width:100%;margin-top:12px}.privacy{text-align:center;font-size:9px;color:#94998f;margin:10px 0 0}footer{display:flex;justify-content:space-between;padding:27px 0;font-size:9px;letter-spacing:1.2px;color:#737970}footer span:last-child{letter-spacing:0}.gallery-heading{display:flex;align-items:center;justify-content:space-between}.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;min-height:250px}.media-card{border:1px solid var(--line);border-radius:7px;overflow:hidden;background:var(--panel)}.media-card img,.media-card video{width:100%;height:170px;object-fit:cover}.media-card p{margin:12px;font-size:11px}.empty{grid-column:1/-1;border:1px dashed #41473b;border-radius:8px;padding:55px;text-align:center;color:var(--muted);line-height:1.8}.crew-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;min-height:180px}.crew-card{border:1px solid var(--line);background:var(--panel);padding:24px;border-radius:7px}.crew-card .avatar{margin-bottom:18px;width:45px;height:45px}.crew-card small{display:block;color:var(--muted);margin-top:10px}dialog{background:#1c1e1b;color:var(--text);border:1px solid #44493e;border-radius:12px;padding:32px;width:min(580px,92vw);max-height:88vh}dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.close{position:absolute;right:12px;top:10px;font-size:26px;color:var(--muted)}dialog h2{font-size:34px}dialog p{color:#acb2a6;line-height:1.65;font-size:12px}label{display:block;font-size:11px;color:#b9bfb2;margin:15px 0 6px}input:not([type=checkbox]){background:#111410;border:1px solid #434a3d;color:#f1f3ed;border-radius:4px;padding:12px;width:100%}.upload-item{border-top:1px solid var(--line);margin-top:15px;padding-top:12px;display:grid;grid-template-columns:22px 1fr;gap:9px}.upload-item input[type=checkbox]{accent-color:var(--orange)}.upload-item small{display:block;color:#9ca592;line-height:1.6}.upload-item img{width:65px;height:45px;object-fit:cover;float:right;border-radius:4px}.warning{color:#ffb382!important}.qr{background:white;width:max-content;padding:12px;margin:20px auto}.qr img{display:block}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#eceee5;color:#222;border-radius:6px;padding:14px 20px;z-index:3000;display:none;box-shadow:0 8px 40px #0008;max-width:90vw;font-size:12px}[hidden]{display:none!important}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#22271f;color:#eee}.leaflet-control-attribution{font-size:8px!important;background:#151c14dc!important;color:#aaa!important}.leaflet-control-attribution a{color:#c8d5bd!important}.stop-marker{background:#f2efe7;color:#20261c;border:3px solid #353d2d;border-radius:50%;text-align:center;line-height:23px;font-weight:700;font-size:10px}.moment-marker{background:var(--orange);border:2px solid #ffe9df;border-radius:5px;color:#171a14;text-align:center;line-height:21px}.leaflet-control-zoom{display:none}
@media(min-width:1500px){.hero{height:360px}.hero-content{top:90px}.map-wrap{min-height:500px}}@media(max-width:1000px){header{gap:32px;padding:0 25px}main{padding:22px 25px 0}.top-right #network{display:none}.story-grid{grid-template-columns:1.25fr 1fr}.timeline{padding:20px 16px}.gallery{grid-template-columns:repeat(3,1fr)}.crew-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.rail{display:none}.shell{margin:0}header{height:70px;padding:0 18px}.wordmark{font-size:27px}nav{display:none}.top-right{gap:12px}.avatar{width:30px;height:30px}main{padding:15px 14px 0}.hero{height:310px}.hero-top,.hero-content,.hero-bottom{left:20px;right:20px}.hero-top .eyebrow{max-width:160px;font-size:8px;line-height:1.6}.hero-content{top:89px}h1{font-size:57px}.hero-bottom{flex-wrap:wrap;gap:7px}#crewSummary{display:none}.stats{grid-template-columns:1fr 1fr;gap:23px 0;padding:24px 5px}.stats>div:nth-child(3){padding:0;border:0}.stats strong{font-size:31px}.stat-label{font-size:8px;letter-spacing:1px}.section-toolbar{height:72px}.tabs{gap:1px}.tabs button{padding:10px 8px;font-size:11px}.text-button{font-size:9px}.story-grid{grid-template-columns:1fr}.map-wrap{min-height:350px}.timeline{padding:22px}.gallery{grid-template-columns:repeat(2,1fr)}.gallery-heading{gap:12px}.gallery-heading .primary{font-size:10px;padding:11px}.empty{padding:30px 15px}.media-card img,.media-card video{height:130px}footer{gap:15px;font-size:8px;line-height:1.6}footer span:last-child{text-align:right}.hero .badge{font-size:8px}}

.leaflet-tile-pane{filter:grayscale(1) invert(1) brightness(.58) sepia(.12)}
/* Album export and cinematic route replay */
.album-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0}.album-toolbar span{color:#aaa;font-size:13px}.album-check{display:flex;align-items:center;gap:8px;padding:12px;background:#20221f;cursor:pointer}.album-check input{width:20px;height:20px;accent-color:#ff5a2b}.album-check span{font-size:12px;color:#ddd}.media-card{position:relative}.media-card video{width:100%}.wide:disabled,button:disabled{opacity:.45;cursor:not-allowed}
#replayLayer{position:fixed;inset:0;z-index:10000;background:#0b100e;color:#fff;overflow:hidden} .replay-map-scene{position:absolute;inset:-15% -15% 0;perspective:1300px}#replayMap{height:110%;width:100%;transform:rotateX(20deg) scale(1.15);transform-origin:center 60%}.replay-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#080b09c9,transparent 28%,transparent 60%,#080b09f5)}.replay-heading{position:absolute;inset:20px 28px auto;display:flex;justify-content:space-between;align-items:start;border:0;padding:0}.replay-heading h2{font-size:clamp(28px,5vw,58px);margin:8px 0}.replay-controls{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:5%;right:5%;max-width:900px;margin:auto}.replay-controls input[type=range]{width:100%;accent-color:#ff5a2b;margin:14px 0}.replay-meta,.replay-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.replay-meta{font-size:12px;color:#e1e2d7}.replay-actions label{display:flex;gap:8px;align-items:center;font-size:12px}.replay-actions select{background:#262b25;color:#fff;border:1px solid #50584d;border-radius:8px;padding:10px}.replay-vehicle{font-size:36px;filter:drop-shadow(0 4px 6px #000);display:grid;place-items:center}.replay-vehicle span{background:#181d18bb;border-radius:50%;padding:5px}.replay-polaroid{position:absolute;right:calc(7% + var(--slot)*35px);top:calc(25% + var(--slot)*18px);width:clamp(160px,25vw,290px);padding:10px 10px 26px;background:#f7f1e4;box-shadow:0 18px 50px #0008;transform:rotate(var(--tilt));animation:polaroid-in .7s both;animation-delay:var(--delay);margin:0}.replay-polaroid img{display:block;width:100%;height:clamp(140px,20vw,230px);object-fit:cover}.replay-polaroid figcaption{font:11px system-ui;color:#48443b;margin-top:12px;letter-spacing:2px}@keyframes polaroid-in{from{opacity:0;transform:translateY(45px) rotate(calc(var(--tilt) + 6deg)) scale(.85)}to{opacity:1;transform:rotate(var(--tilt))}}
@media(max-width:650px){.replay-heading{inset:18px 18px auto}.replay-actions{flex-wrap:wrap}.replay-actions label{font-size:10px}.replay-polaroid{right:calc(6% + var(--slot)*13px);top:calc(25% + var(--slot)*12px);width:175px}.replay-polaroid img{height:150px}.album-toolbar button{font-size:12px;padding:12px}.replay-controls{bottom:max(18px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.replay-polaroid{animation:none}.replay-map-scene{perspective:none}#replayMap{transform:none}}

.replay-attribution{position:absolute;bottom:4px;right:8px;color:#ccc;background:#111b;padding:3px 5px;font-size:10px;z-index:3}

/* Actual photo crops make the map and each stop part of the story. */
.photo-pin{display:block;background:#f5efdf;padding:4px 4px 3px;border-radius:5px;box-shadow:0 6px 18px #0009;transform:rotate(-4deg);color:#171914;position:relative}.photo-pin:after{content:'';position:absolute;bottom:-8px;left:31px;border-left:7px solid transparent;border-right:7px solid transparent;border-top:9px solid #f5efdf}.photo-pin img{width:68px;height:47px;object-fit:cover;display:block;background:#363c33;border-radius:2px}.photo-pin>span{display:block;text-align:center;font:bold 9px system-ui;padding:4px 0 2px}.photo-marker:hover{z-index:2000!important}.photo-marker:hover .photo-pin{transform:rotate(0) scale(1.12)}.event{padding-bottom:16px}.event-photos{display:flex;align-items:center;gap:6px;margin:10px 0 3px}.event-photos img{width:72px;height:57px;object-fit:cover;background:#34392e;border:3px solid #eee7d6;border-radius:3px;transform:rotate(-3deg)}.event-photos img:nth-child(2){transform:rotate(4deg)}.event-photos b{font-size:12px;color:#ff875d}.media-open{display:block;width:100%;padding:0;min-height:140px;overflow:hidden}.media-open img{display:block;cursor:zoom-in}.media-placeholder{display:block;padding:40px 12px;color:#aaa}.video-teaser{display:grid;place-items:center;height:47px;background:#262c24;color:#fff;font-size:11px}.moment-switcher{display:flex;gap:9px;overflow-x:auto;margin:14px 0}.moment-switcher button{padding:3px;margin:0}.moment-switcher img{width:66px;height:55px;object-fit:cover}.preview-failed{font-size:9px}#momentViewer img,#momentViewer video{display:block;width:100%;max-height:60vh;object-fit:contain;border-radius:6px}.section-toolbar{gap:10px;flex-wrap:wrap;height:auto;min-height:75px;padding:12px 0}.event strong{overflow-wrap:anywhere}
#map .photo-pin img{width:68px!important;height:47px!important;max-width:68px!important;object-fit:cover}.photo-pin{width:76px}.photo-pin .video-teaser{width:68px;height:47px}

#tripBar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}#tripBar strong,#tripBar small{display:block;margin-top:6px}#tripBar strong{font-size:18px}#tripBar small{font-size:13px;color:#b9c0b3}#tripBar>div:last-child{display:flex;gap:8px}.trip-day:disabled{opacity:.7}.trip-day time{font-size:12px}.photo-pin>span{font-size:10px}.replay-polaroid{width:clamp(120px,17vw,220px);top:calc(25% + var(--slot)*16px);right:auto;padding-bottom:25px}.replay-polaroid.left{left:4%;right:auto}.replay-polaroid.right{left:auto;right:4%;top:calc(40% + var(--slot)*12px)}.replay-polaroid img{height:auto;aspect-ratio:1;object-fit:cover}.replay-polaroid figcaption{font-size:10px;letter-spacing:1px}@media(max-width:650px){#tripBar{align-items:start;flex-direction:column}.replay-polaroid{width:32vw;padding:7px 7px 22px}.replay-polaroid.left{left:3%}.replay-polaroid.right{right:3%}.replay-polaroid figcaption{font-size:9px;margin-top:9px}.map-label{max-width:calc(100% - 80px);font-size:10px;line-height:1.4}}

.live-location{display:grid;place-items:center;background:#ff5a2b;color:#101410;border:2px solid #fff;border-radius:50%;font-size:22px;box-shadow:0 0 0 5px #ff5a2b33}

/* Trip crew cash book */
.cash-actions,.cash-fields,.cash-balances{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.cash-card{background:#1c1e1c;border:1px solid #353a35;border-radius:12px;padding:18px;color:#f7f5ee;text-align:left}.cash-card strong,.cash-card small{display:block}.cash-card small{color:#b5b9ae;margin:8px 0}.cash-balances strong{font-size:30px}.cash-list{display:grid;gap:10px}.cash-list button{display:flex;justify-content:space-between;align-items:center;width:100%;gap:15px}.cash-fields>label{flex:1;min-width:120px}#cashForm label{display:block;margin:12px 0 6px}#cashForm select,#cashForm textarea,#cashForm input:not([type=checkbox]){width:100%;background:#171a17;color:#fff;padding:12px;border:1px solid #4b5048;border-radius:8px;font:inherit}#cashForm fieldset{border:1px solid #4b5048;border-radius:8px;margin:18px 0}.cash-person{display:flex;align-items:center;justify-content:space-between;gap:15px}.cash-person label{flex:1}.cash-person input[type=checkbox]{width:20px;height:20px;margin-right:10px;accent-color:#ff5c29}.cash-person input[data-share]{max-width:110px}#cashError{color:#ff9673}.cash-receipt{max-width:100%;max-height:65vh;object-fit:contain}#cashView{padding-bottom:35px}#cashStatus{color:#bbb;font-size:13px}.tabs{flex-wrap:wrap}
body.needs-entry > :not(#entryLanding):not(dialog):not(#toast):not(script){display:none!important}
#entryLanding{max-width:560px;margin:8vh auto;padding:28px}#entryLanding h1{font-size:36px;line-height:1.1}#entryLanding p{line-height:1.6;color:#bcbfbe}#entryLanding button{margin:8px 0}#entryLanding img{border-radius:22px}#removedCrew{margin-top:24px}#removedCrew button{margin:5px}#accessCode{width:100%;min-height:110px;background:#1c201e;color:#fff;border:1px solid #454a47;padding:12px;border-radius:10px}

/* Keep a crew emblem intact; landscape covers remain visible beside the trip title. */
.hero.has-trip-cover{background:#151714}.trip-header-image{position:absolute;right:24px;top:20px;width:260px;height:280px;object-fit:contain;border-radius:12px}.has-trip-cover .hero-content{right:315px}.has-trip-cover h1{font-size:clamp(35px,4vw,58px)}.has-trip-cover .badge{display:none}.trip-day:disabled{opacity:1;cursor:default}
@media(max-width:650px){.hero.has-trip-cover{height:365px}.trip-header-image{right:18px;top:18px;width:105px;height:105px}.has-trip-cover .hero-content{top:142px;right:22px}.has-trip-cover h1{font-size:36px}.has-trip-cover .hero-top{max-width:170px}.has-trip-cover .hero-bottom{bottom:20px}}

/* Personal cash view; the complete ledger stays available on demand. */
.cash-debt{display:flex;align-items:center;justify-content:space-between;gap:16px}.cash-debt span{min-width:0;overflow-wrap:anywhere}.cash-debt b{white-space:nowrap;font-size:19px}.cash-personal{margin:24px 0}.cash-overview{margin:26px 0;padding:16px;border:1px solid var(--line);border-radius:12px}.cash-overview summary{cursor:pointer;font-weight:700;padding:6px 0}.cash-overview summary small{display:block;font-weight:400;color:var(--muted);margin:8px 0 0}.cash-overview[open] summary{margin-bottom:18px}.cash-settled{padding:18px;background:#1c1e1c;border-radius:12px}

/* Two distinct directions, with the net position as a separate summary. */
.cash-position{margin:24px 0;padding:20px;background:#191c1b;border:1px solid var(--line);border-radius:16px}.cash-position h3{margin:0 0 14px}.cash-position>p{color:#b5b9ae;font-size:12px;line-height:1.6;margin:14px 0 0}.cash-net-list{display:flex;gap:24px;flex-wrap:wrap}.cash-net{display:flex;flex-direction:column;gap:7px}.cash-net span{font-size:12px}.cash-net strong{font-size:clamp(24px,5vw,34px);overflow-wrap:anywhere}.cash-net.positive{color:#91dbb1}.cash-net.negative{color:#ffae87}.cash-net.neutral{color:#eee9dd}.cash-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.cash-direction{min-width:0;padding:22px;border-radius:16px;border:1px solid #43584b;background:linear-gradient(145deg,#203029,#191d1b)}.cash-direction.outgoing{border-color:#624a3b;background:linear-gradient(145deg,#32251f,#201c19)}.cash-direction-heading{display:flex;gap:10px;align-items:center}.cash-direction-heading h3{margin:0;font-size:18px;line-height:1.4}.cash-direction-icon{font-size:24px;color:#91dbb1}.outgoing .cash-direction-icon{color:#ffae87}.cash-direction-total{margin:20px 0;padding-bottom:18px;border-bottom:1px solid #ffffff20;display:grid;gap:8px}.cash-direction-total small{color:#c5c7be}.cash-direction-total>strong{font-size:clamp(23px,5vw,30px);overflow-wrap:anywhere}.cash-direction .cash-card{padding:14px 0;background:none;border:0;border-radius:0;border-bottom:1px solid #ffffff12}.cash-direction .cash-debt>strong{min-width:0;overflow-wrap:anywhere}.cash-direction .cash-debt b{font-size:16px}.cash-direction-empty{font-size:13px;color:#c5c7be;line-height:1.6}@media(max-width:700px){.cash-split{grid-template-columns:1fr}.cash-direction{padding:18px}}

#photoActions{position:sticky;top:0;z-index:450;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px;margin:16px 0;background:#171b18f5;border:1px solid #48513f;border-radius:12px;box-shadow:0 8px 20px #0005}#photoActions>div{flex:1;min-width:160px}#photoActions small{display:block;color:#b6bbb1;font-size:11px;margin-top:6px}#addPhotosTop{min-height:48px;padding:14px 18px;font-weight:700}#installTop{font-size:11px;min-height:40px}#files{display:block;width:100%;padding:16px 0;white-space:normal}#files::file-selector-button{background:var(--orange);border:0;color:#fff;border-radius:8px;padding:16px;font:inherit;font-weight:700;margin-right:12px;cursor:pointer}@media(max-width:700px){#photoActions>div{flex-basis:100%}#addPhotosTop{flex:1;font-size:13px}#installTop{padding:10px;font-size:10px}}@media(display-mode:standalone){#installTop{display:none}}

/* Keep the way out visible on small screens, including installed web apps. */
#tripNavigation{position:sticky;top:0;z-index:460;display:flex;align-items:center;gap:8px;min-height:60px;padding:8px 0;background:#111212f5;border-bottom:1px solid var(--line);margin-bottom:14px}#tripNavigation button{min-height:44px;font-size:14px;padding:10px 14px;white-space:nowrap}#navigationContext{font-size:14px;color:#b9c0b3;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#photoActions{top:62px}.trip-library-list{display:grid;gap:12px;margin:20px 0}.trip-library-item{text-align:left;display:grid;gap:8px;min-height:70px;padding:16px!important}.trip-library-item strong{font-size:17px;overflow-wrap:anywhere}.trip-library-item small{font-size:14px;color:#b9c0b3}.trip-library-item.current{border-color:var(--orange)}#tripLibraryError{color:#ffb382;font-size:14px}#tripLibraryHelp{font-size:14px;line-height:1.6}@media(max-width:600px){#navigationContext{display:none}#tripNavigation button{flex:1}#photoActions>div{display:none}#photoActions{padding:10px;gap:8px}}

.cash-receipt-card{display:flex;align-items:center;gap:16px;width:100%;padding:12px;margin:16px 0;border:1px solid #555b50;border-radius:12px;text-align:left;background:#141714}.cash-receipt-card strong,.cash-receipt-card small{display:block}.cash-receipt-card small{margin-top:8px;color:#b8beb2}.cash-receipt-thumb{width:76px;height:96px;flex:none;display:grid;place-items:center;background:#30352d;border-radius:5px;overflow:hidden}.cash-receipt-thumb img{width:100%;height:100%;object-fit:cover;object-position:top}.receipt-open{width:min(1050px,96vw);max-height:94dvh;padding:24px}.receipt-stage{overflow:auto;max-height:65dvh;min-height:150px;background:#101210;border-radius:8px;text-align:center}.receipt-stage img{display:block;margin:auto;width:100%;height:65dvh;object-fit:contain}.receipt-stage.zoomed img{width:max(100%,1000px);max-width:none;height:auto;object-fit:initial}.receipt-stage object{display:block;width:100%;height:60dvh;border:0}.receipt-stage a{display:inline-block;margin:12px}.receipt-open h2{padding-right:24px;font-size:26px}.receipt-open #receiptError{color:#ffb08c}.receipt-open .cash-actions{justify-content:space-between}.receipt-open .cash-actions button{margin:0}

.cash-blue{color:#73bcff!important}.cash-debt .cash-blue{display:block;flex-basis:100%;font-size:12px;line-height:1.5}.cash-debt{flex-wrap:wrap}.cash-confirmations{border:1px solid #376487;background:#14212b;padding:18px;border-radius:14px;margin:22px 0}.cash-refund-card{display:block;width:100%;margin:10px 0}.cash-stat-total{display:block;font-size:32px;margin:12px 0}.cash-statistics{margin:20px 0 30px}.cash-stat-bars>div{margin:16px 0}.cash-stat-bars span{display:flex;justify-content:space-between;gap:12px}.cash-stat-bars progress{width:100%;height:10px;accent-color:#ff6537}.cash-statistics .cash-card{font-size:12px}

/* Photo selection: retain the system selection and allow batches without replacing it. */
.upload-bulk{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.upload-bulk .outline{margin:0;min-height:44px}.upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.upload-tile{min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#141615}.upload-photo{display:block;position:relative;margin:0;cursor:pointer}.upload-thumb{display:flex;aspect-ratio:1;align-items:center;justify-content:center;background:#292d29;text-align:center;font-size:12px;color:#bbb}.upload-thumb img,.upload-thumb video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}.upload-photo input[type=checkbox]{position:absolute;top:8px;right:8px;width:26px;height:26px;accent-color:var(--orange);margin:0}.upload-photo:has(input:checked){outline:3px solid var(--orange);outline-offset:-3px}.upload-filename{display:block;padding:10px;font-size:11px;overflow-wrap:anywhere}.upload-tile details{padding:10px;font-size:11px}.upload-tile summary{cursor:pointer;min-height:32px;line-height:1.5}.upload-tile small{font-size:10px;color:var(--muted)}.upload-tile input:not([type=checkbox]){min-width:0;padding:8px;font-size:11px}.upload-submit{position:sticky;bottom:-32px;background:#1c1e1bf5;backdrop-filter:blur(10px);padding:8px 0;z-index:2}.upload-submit p{margin-bottom:0;font-size:11px}.picker-help{font-size:12px}#pickPhotos{min-height:48px}@media(max-width:380px){.upload-grid{gap:8px}.upload-tile details{padding:7px}.upload-bulk .outline{padding:10px}}

.cash-debt{width:100%;text-align:left;color:inherit;cursor:pointer}.cash-debt small{flex-basis:100%}.cash-pair-filter{display:flex;align-items:center;gap:12px;margin-top:24px}.cash-pair-filter input{width:22px;height:22px}.cash-pair-item{display:flex;flex-direction:column;align-items:stretch;gap:12px}.cash-list .cash-pair-entry{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;color:inherit;white-space:normal}.cash-pair-entry strong{font-size:1.1rem}.cash-pair-item>small,.cash-pair-entry small{color:var(--muted,#aaa)}
