/* Shared map workspace: one docked rail, one map, one mobile sheet. */
.workspace-sheet .sheet-grip { display:none; }
@media (max-width:860px) {
  .workspace-sheet { --sheet-peek:138px; --sheet-half:43dvh; --sheet-expanded:calc(100dvh - 250px); position:absolute; z-index:12; left:0; right:0; bottom:0; width:auto; max-height:none; height:var(--sheet-drag-height,var(--sheet-half)); background:var(--panel); border-radius:18px 18px 0 0; box-shadow:0 -2px 12px #233a321a; border:1px solid var(--rule); border-bottom:0; overflow:hidden; display:flex; flex-direction:column; min-height:0; padding-bottom:env(safe-area-inset-bottom); transition:height 240ms var(--ease); }
  body[data-sheet="peek"] .workspace-sheet { height:var(--sheet-drag-height,var(--sheet-peek)); }
  body[data-sheet="expanded"] .workspace-sheet { height:var(--sheet-drag-height,var(--sheet-expanded)); }
  .workspace-sheet.is-dragging { transition:none; user-select:none; }
  .workspace-sheet .sheet-grip { display:block; flex:none; background:var(--panel); position:relative; z-index:4; padding:0 16px 7px; border-bottom:1px solid var(--line); }
  .sheet-drag { height:44px; width:100%; display:grid; place-items:center; border:0; padding:0; background:transparent; cursor:ns-resize; touch-action:none; }
  .sheet-drag span { display:block; width:36px; height:4px; border-radius:4px; background:#8b978f; }
  .sheet-heading { display:flex; align-items:center; justify-content:space-between; min-height:36px; gap:8px; }
  .sheet-heading>p { margin:0; font-size:14px; font-weight:750; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .sheet-stops { display:flex; gap:2px; flex:none; }
  .sheet-stops button { min-width:44px; min-height:44px; padding:4px 8px; border:0; border-radius:5px; background:transparent; font-size:12px; font-weight:700; color:var(--ink-2); }
  .sheet-stops button[aria-pressed="true"] { background:var(--page-2); color:var(--fence); }
  .sheet-content { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; }
}
@media (prefers-reduced-motion:reduce) { .workspace-sheet { transition:none!important; } }
