.trip-ui{max-width:680px;margin:auto;overflow-wrap:anywhere}.trip-ui h2{margin:12px 0}.trip-ui small{display:block;line-height:1.6;color:#716773}.trip-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0 12px}.trip-summary>div{background:#f2eaf3;border-radius:20px;padding:18px 14px}.trip-summary strong{display:block;font-size:1.45rem;margin-top:8px;color:#713e6b}.trip-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.trip-actions button{min-height:44px}.trip-list{display:grid;gap:12px;margin-top:20px}.trip-card{display:grid;gap:8px;text-align:left!important;padding:20px!important;border:1px solid #ddd3de!important;border-radius:18px!important;background:#fff!important;color:#3a303b!important}.trip-card span{font-size:.9rem}.trip-row{padding:16px 0;border-bottom:1px solid #e7dfe8}.trip-row-head{display:flex;justify-content:space-between;gap:12px}.trip-row-head strong{white-space:nowrap}.trip-settlement{padding:12px 0;display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #eee}.trip-tag{display:inline-block;background:#eaf3eb;color:#345a43;border-radius:10px;padding:6px 10px;font-size:.85rem;margin:7px 0}.trip-ui fieldset{border:1px solid #d8ced9;border-radius:16px;padding:14px;margin:18px 0}.trip-ui .trip-check{display:flex;align-items:center;gap:12px;min-height:44px;margin:4px 0}.trip-ui .trip-check input{width:22px;height:22px;margin:0;flex:none;accent-color:#78416e}.trip-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.trip-fields input{min-width:0;width:100%;box-sizing:border-box}.trip-ui label{display:block;margin-top:12px}.trip-ui details{margin:22px 0}.trip-ui summary{cursor:pointer;font-weight:700}.trip-void{opacity:.65}.trip-void .trip-row-head{text-decoration:line-through}#tripError{color:#9a283a;white-space:pre-wrap}.trip-ui input,.trip-ui select{max-width:100%;box-sizing:border-box}.trip-ui .note{line-height:1.5}@media(max-width:420px){.trip-fields{grid-template-columns:1fr}.trip-summary strong{font-size:1.2rem}.trip-row-head{flex-wrap:wrap}}

.trip-check[hidden]{display:none}

.trip-payment-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}.trip-payment{border:1px solid #dfd4e1;border-radius:18px;padding:16px;background:linear-gradient(135deg,#faf5fb,#f2f8f4);display:flex;flex-direction:column;gap:10px;min-width:0}.trip-payment-route{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:center}.trip-payment-route small{display:block;font-size:12px;color:#736676;margin-bottom:4px}.trip-payment-route b{overflow-wrap:anywhere}.trip-payment-amount{font-size:24px;color:#744573}.trip-payment .primary{align-self:flex-start}.trip-payment p{margin:0}.trip-balance-list .trip-row-head{flex-wrap:wrap;gap:8px}
.trip-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;margin-top:20px}.trip-gallery-card{min-width:0;border:1px solid #dfd4e1;border-radius:18px;padding:12px}.trip-gallery-card img,.trip-gallery-card video{width:100%;max-height:320px;object-fit:contain;border-radius:12px;background:#f2eef3}.trip-gallery-card b{display:block;margin-top:10px}.trip-gallery-upload{cursor:pointer;padding:12px 18px;border-radius:12px;margin:0!important}.trip-gallery-upload input{display:block;font-size:12px;margin-top:8px;max-width:100%}
.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.gallery-folders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-folder{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;border:1px solid #e0d5e1;border-radius:18px;padding:16px;min-width:0;background:linear-gradient(145deg,#f8eef9,#eff7f1);color:#453345}.gallery-folder-icon{font-size:38px;color:#794571;line-height:1}.gallery-folder b{overflow-wrap:anywhere}.gallery-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.gallery-tile{position:relative;min-width:0}.gallery-open{display:block;padding:0!important;border:0!important;width:100%;aspect-ratio:1;border-radius:12px;overflow:hidden;background:#eee7f0}.gallery-open img{width:100%;height:100%;object-fit:cover;display:block}.gallery-video{display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%;font-size:28px;color:#78416e}.gallery-tile>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;padding:3px}.trip-ui .gallery-check{position:absolute;right:4px;top:4px;margin:0;padding:4px;display:flex;background:#ffffffdb;border-radius:50%}.trip-ui .gallery-check input{width:22px;height:22px;margin:0;accent-color:#78416e}.gallery-selection{position:sticky;top:0;background:#fff;z-index:2;padding:8px 0}.gallery-selection button{font-size:13px;padding:8px 10px}.gallery-progress{display:grid;grid-template-columns:1fr auto;gap:8px;padding:14px;background:#f3edf5;border-radius:14px;margin:12px 0}.gallery-progress progress{grid-column:1/-1}.trip-gallery progress{width:100%;height:10px;accent-color:#78416e}.gallery-file-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:8px 0}.gallery-file-progress>small:first-child{grid-column:1/-1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#tripGalleryPreview img,#tripGalleryPreview video{width:100%;max-height:65vh;object-fit:contain;background:#f4eff5;border-radius:12px}#tripGalleryPreview[hidden],#tripGalleryContent[hidden]{display:none}@media(min-width:600px){.gallery-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.gallery-folders{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Selection stays visible without obscuring the photo with checkboxes. */
.gallery-open{touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.gallery-open img{pointer-events:none}
.gallery-tile.is-selected{outline:3px solid var(--accent,#78436e);outline-offset:-3px;background:#eadbec}
.gallery-tile.is-selected .gallery-open{transform:scale(.92)}
.gallery-open:focus-visible{outline:3px solid #78436e;outline-offset:-3px}

.gallery-download-icon{position:absolute;right:6px;bottom:6px;width:36px;height:36px;display:grid;place-items:center;padding:6px!important;border:0;border-radius:50%;color:#fff!important;background:#18131dc9!important;z-index:1}
#modal.gallery-viewing{max-width:none!important;width:100vw!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important}
.gallery-lightbox{position:fixed;inset:0;background:#101015;color:white;z-index:20000;display:flex;flex-direction:column;overflow:hidden}.gallery-viewer-bar,.gallery-viewer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px max(12px,env(safe-area-inset-right));flex-shrink:0}.gallery-viewer-bar button,.gallery-viewer-bottom button{color:white!important;background:#ffffff18!important;border:0;border-radius:12px;min-height:44px;min-width:44px}.gallery-viewer-bar span{flex:1;text-align:center}.gallery-viewer-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}#tripGalleryPreview.gallery-lightbox img,#tripGalleryPreview.gallery-lightbox video{width:100%;height:100%;max-height:100%;object-fit:contain;border-radius:0;background:#101015}.gallery-viewer-bottom small{color:#ddd!important;text-align:center;font-size:11px}.gallery-upload-review{border:1px solid #ddd;border-radius:18px;padding:12px;margin:16px 0}.gallery-upload-review h3{display:flex;justify-content:space-between}.gallery-review-tile{position:relative;aspect-ratio:1;padding:0!important;border:0;overflow:hidden;border-radius:12px}.gallery-review-tile img,.gallery-review-tile video{width:100%;height:100%;object-fit:cover}.gallery-review-tile[aria-pressed=true]{outline:3px solid #78436e;outline-offset:-3px}.gallery-selection-number{position:absolute;top:6px;right:6px;background:#78436e;color:#fff;border:2px solid #fff;border-radius:50%;min-width:22px;height:22px;display:grid;place-items:center;font-size:11px;font-weight:bold}
