/* Shared mobile sheet motion. The map keeps its viewport beneath these panels. */
dialog.fluid-sheet {position:fixed;inset:auto 12px 0 auto;z-index:800;box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-width:none;height:var(--sheet-height,380px);margin:0;padding:0 18px 18px;border:1px solid #cdd7d1;border-radius:20px 20px 0 0;background:#fdfefa;box-shadow:0 -4px 24px #143c3526;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;transition:height 230ms cubic-bezier(.2,.75,.25,1);scroll-padding-top:85px;}
dialog.fluid-sheet:not([open]){display:none}dialog.fluid-sheet::backdrop{background:transparent}
.sheet-handle {display:flex;position:sticky;top:0;z-index:5;align-items:center;justify-content:center;width:100%;height:25px;min-height:25px;padding:0;margin:0;border:0;background:#fdfefa;cursor:grab;touch-action:none}
.sheet-handle span{width:36px;height:4px;background:#a7b5ad;border-radius:4px}
.fluid-sheet .sheet-top,.fluid-sheet .route-editor-heading {position:sticky;top:25px;margin:0 0 12px;padding:6px 0 10px;background:#fdfefa;touch-action:none;cursor:grab}
.fluid-sheet .sheet-top h2,.fluid-sheet .route-editor-heading h1{font-size:18px;margin:0}
.fluid-sheet .close-sheet{width:36px;height:36px;min-height:36px;font-size:23px}
.fluid-sheet.sheet-dragging,.fluid-sheet.sheet-no-motion{transition:none}.sheet-dragging,.sheet-dragging .sheet-top,.sheet-dragging .sheet-handle{cursor:grabbing;user-select:none}
.fluid-sheet.sheet-closing{pointer-events:none}
.fluid-sheet label{font-size:13px}.fluid-sheet input,.fluid-sheet textarea,.fluid-sheet select{font-size:16px}
@media(max-width:700px){dialog.fluid-sheet{left:0;right:0;width:100%;border-left:0;border-right:0;max-width:100%}}
@media(prefers-reduced-motion:reduce){dialog.fluid-sheet{transition:none}}
.pin-form label{display:block;margin:14px 0}.pin-form input,.pin-form textarea,.pin-form select{box-sizing:border-box;display:block;width:100%;padding:10px;margin-top:6px}
.pin-context{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}.pin-context button{border:0;background:transparent;color:var(--accent);min-height:36px;padding:6px 0;font:inherit;text-decoration:underline}
.pin-location{font-size:12px;padding:10px 12px;border-radius:8px;background:#edf2e7}.pin-location small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.pin-private{font-size:11px;color:#83571b}
.pin-footer{position:sticky;bottom:-18px;display:flex;gap:12px;padding:12px 0;background:#fdfefa;border-top:1px solid var(--line)}.pin-footer .button{flex:1}.pin-form [data-pin-status]{font-size:12px}
.personal-pin{display:grid;place-items:center;background:#155e62;color:#fff;border:2px solid white;border-radius:50% 50% 50% 3px;box-shadow:0 2px 6px #0005}.personal-pin svg{width:20px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.hazard-pin{background:#b04a28}
.personal-place-list>button{display:flex;gap:12px;align-items:center;padding:14px 0;min-height:64px;text-align:left;border:0;border-bottom:1px solid var(--line);width:100%;background:transparent;color:var(--ink)}.personal-place-list strong,.personal-place-list small{display:block}.personal-place-list small{font-size:11px;color:var(--muted);margin-top:5px}.personal-place-list svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}
.placing-personal-pin .waterway-sheet{display:none}.placing-personal-pin .map-add{display:none}
/* The resize grip gets a compact keyboard indicator, not a full-width blue box. */
dialog.fluid-sheet:focus,.sheet-handle:focus{outline:none}
.sheet-handle:focus-visible span{background:#143c35;box-shadow:0 0 0 2px #d7f4a5}
/* Keep the two remaining map tools on the shared sheet layout. */
dialog.route-editor.fluid-sheet,dialog.waterway-sheet.fluid-sheet{left:auto;right:12px;max-height:none}
.fluid-sheet .route-editor-body{padding:0}.fluid-sheet .sheet-top,.fluid-sheet .route-editor-heading{z-index:4}
.waterway-sheet.fluid-sheet .sheet-handle{min-height:25px;height:25px;padding:0}
.waterway-sheet-body{display:contents}.waterway-sheet.fluid-sheet .sheet-top h2{margin:3px 0}
.route-editor-restore{position:absolute;z-index:500;top:20px;left:16px;box-shadow:0 2px 12px #143c3526}
@media(max-width:700px){dialog.route-editor.fluid-sheet,dialog.waterway-sheet.fluid-sheet{left:0;right:0;width:100%;border-radius:20px 20px 0 0}.route-editor-restore{top:14px;left:12px}}
.route-editor-restore[hidden]{display:none}.route-editor-restore{top:76px}@media(max-width:700px){.route-editor-restore{top:68px}}
.area-transfer[hidden],.area-download-actions button[hidden]{display:none}
