#map .moment-overlay{position:absolute;inset:0;width:100%;height:100%;z-index:19;pointer-events:none}
#map .moment-marker-layer{position:absolute;inset:0;z-index:18;pointer-events:none;overflow:hidden}
#map .moment-map-marker{position:absolute;display:grid;place-items:center;width:40px;height:40px;padding:1px;overflow:visible;transform:translate(-50%,calc(-100% - 12px));border:1.5px solid #fff;border-radius:6px;background:#e7f1e8;color:#26765d;box-shadow:0 3px 14px #09231bb3;cursor:pointer;pointer-events:auto}
#map .moment-map-marker[hidden]{display:none!important}
#map .moment-map-marker img{width:100%;height:100%;object-fit:cover;border-radius:4px}
#map .moment-map-marker span{font:700 22px/1 "DM Sans",sans-serif}
#map .moment-map-marker::after{content:"";position:absolute;left:calc(50% - 1.5px);bottom:-12px;width:3px;height:10px;border-radius:2px;background:#fff;box-shadow:0 2px 5px #09231b88}
#map .moment-map-marker::before{content:"";position:absolute;left:calc(50% - 4px);bottom:-18px;width:8px;height:8px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #09231b88}
#map .moment-map-marker:hover{transform:translate(-50%,calc(-100% - 12px)) scale(1.08)}
#map .moment-map-marker:focus-visible{outline:3px solid #1b805f;outline-offset:3px}
.film-tools [data-add-moment]{white-space:nowrap}
.travel-camera-timeline .film-toolbar [data-add-moment]{margin-left:auto}
.film-track.moment-track{--track-border:#d9b5a2;--track-fill:#f9e9dc;--track-ink:#664835}
.moment-track .film-rail{background:#f6f8f6;border-radius:5px}
.film-rail .moment-pause-band{position:absolute;top:0;bottom:0;min-width:3px;z-index:2;display:flex;align-items:center;justify-content:center;overflow:hidden;pointer-events:none;background:repeating-linear-gradient(135deg,#e8d0bd99 0 4px,#f9ecdf99 4px 8px);border-inline:1px solid #c59979;color:#72513e;font-size:9px;font-weight:700;white-space:nowrap}
.editor-timeline-segment[data-kind=moment]{background:#f7e7d8;color:#704d38}
.film-tools .moment-clip{position:absolute;top:2px;height:20px;min-height:20px;min-width:16px;max-width:100%;margin:0;padding:2px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#f5e2d3;color:#603d2d;border:1px solid #dcbaa5;border-radius:5px;font-size:10px;justify-content:flex-start;container-type:inline-size}
.film-tools .moment-clip:hover{background:#ecd2be;border-color:#b98568}
.film-tools .moment-clip-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}
.film-tools .moment-clip small{margin-left:auto;flex:none;font-size:9px;font-weight:700;pointer-events:none}
@container (max-width:72px){.film-tools .moment-clip-title{display:none}}
.film-tools .moment-duration-handle{position:absolute;top:auto;bottom:0;z-index:6;transform:translateX(-100%);width:18px;height:12px;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:3px;background:transparent;color:#8b6049;cursor:ew-resize;touch-action:none}
.film-tools .moment-duration-handle::after{content:"";position:absolute;right:4px;top:2px;bottom:2px;border-left:2px solid currentColor;opacity:.7;pointer-events:none}
.film-tools .moment-duration-handle:hover,.film-tools .moment-duration-handle:focus-visible,.moment-track .moment-is-resizing .moment-duration-handle{background:#eacbb583;outline:1px solid #ba8f73;outline-offset:-1px}
.moment-dialog{position:fixed;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);width:min(460px,calc(100vw - 28px));max-height:min(760px,calc(100dvh - 24px));margin:0;padding:0;border:1px solid #d9e5de;border-radius:16px;background:#fff;color:#203b35;box-shadow:0 18px 70px #152a2455;font:13px/1.5 "DM Sans",system-ui,sans-serif;overflow:auto}
.moment-dialog::backdrop{background:#14292177}
.moment-dialog form{display:grid;gap:16px;padding:22px}
.moment-dialog-head{display:flex;align-items:start;justify-content:space-between}
.moment-dialog-head small{font-size:10px;font-weight:700;letter-spacing:.1em;color:#638271}
.moment-dialog h2{margin:2px 0 0;font-size:20px;line-height:1.3}
.moment-dialog p{margin:0;color:#687b73}
.moment-dialog label{display:grid;gap:6px;font-weight:600}
.moment-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.moment-dialog :is(input:not([type=file]),textarea){width:100%;min-height:42px;padding:9px 11px;border:1px solid #d5e2da;border-radius:9px;background:#fff;color:#203b35;font:inherit}
.moment-dialog textarea{resize:vertical;min-height:70px}
.moment-dialog input[type=file]{width:100%;font:inherit;font-weight:400}
.moment-dialog input[type=file]::file-selector-button{min-height:38px;margin-right:9px;padding:7px 12px;border:1px solid #d4e2d8;border-radius:8px;background:#f3f8f4;color:#225e4c;font:600 12px "DM Sans",sans-serif;cursor:pointer}
.moment-dialog button{min-height:38px;padding:7px 12px;border:1px solid #d4e2d8;border-radius:9px;background:#fff;color:#225e4c;font:inherit;font-weight:600;cursor:pointer}
.moment-dialog button:hover{background:#edf6ef}
.moment-dialog button:focus-visible,.moment-dialog :is(input,textarea,select):focus-visible{outline:2px solid #1b805f;outline-offset:2px}
.moment-dialog [data-close-moment]{font-size:24px;line-height:1;min-width:38px;padding:3px}
.moment-dialog .moment-image-preview{width:100%;max-height:180px;object-fit:cover;border-radius:9px}
.moment-dialog .moment-image-preview[hidden],.moment-dialog [hidden]{display:none!important}
.moment-dialog .moment-options{display:grid;gap:12px;padding-top:14px;border-top:1px solid #e7eee9}
.moment-dialog .moment-options-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.moment-dialog .moment-options-head strong{font-size:14px}
.moment-dialog .moment-options-head span,.moment-dialog [data-elevation-note]{font-size:11px;font-weight:400;color:#687b73}
.moment-dialog [data-gpx-options]{display:grid;gap:9px;margin:0;padding:0;border:0;min-width:0}
.moment-dialog [data-gpx-options] legend{padding:0 0 8px;color:#426153;font-size:12px;font-weight:700}
.moment-dialog .moment-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.moment-dialog label.moment-option{display:flex;align-items:center;gap:8px;min-height:38px;padding:7px 9px;border:1px solid #dce5df;border-radius:8px;background:#fff;color:#61766a;font-size:12px;font-weight:600;cursor:pointer}
.moment-dialog label.moment-option:has(input:checked){border-color:#acd0bc;background:#eaf5ee;color:#217858}
.moment-dialog label.moment-option:has(input:disabled){opacity:.5;cursor:not-allowed}
.moment-dialog .moment-option input[type=checkbox]{width:16px;min-height:16px;height:16px;margin:0;padding:0;flex:none;accent-color:#217858}
.moment-dialog .moment-select{font-size:12px}
.moment-dialog .moment-select select{width:100%;min-height:42px;padding:8px 11px;border:1px solid #d5e2da;border-radius:9px;background:#fff;color:#203b35;font:inherit}
.moment-error:not(:empty){color:#a03d2a}
.moment-actions{position:sticky;bottom:-22px;z-index:2;display:flex;justify-content:space-between;gap:8px;margin:0 -22px -22px;padding:13px 22px 18px;border-top:1px solid #e7eee9;background:#fff;box-shadow:0 -10px 18px #fff}
.moment-actions [type=submit]{margin-left:auto;background:#18775b;color:#fff;border-color:#18775b}
.moment-actions [type=submit]:hover{background:#126449}
.moment-actions [data-remove-moment]{color:#9b5142}
@media(max-width:900px){.film-tools [data-add-moment]{padding-inline:6px}.film-track.moment-track{min-height:28px}.film-tools .moment-duration-handle{width:26px;height:24px}.film-tools .moment-duration-handle::after{right:10px;top:3px;bottom:3px;border-left-width:3px}.moment-dialog form{padding:18px}.moment-actions{bottom:-18px;margin:0 -18px -18px;padding:12px 18px 16px}#map .moment-map-marker{width:34px;height:34px}}
