.sheet-tools,.sheet-summary{display:none}
@media(max-width:900px){
  .sheet-overlay{inset:auto 0 var(--sheet-bottom,0px);height:var(--sheet-viewport,100dvh);pointer-events:none;padding:0;place-items:end center}
  .sheet-overlay>.trip-backdrop{display:none;pointer-events:none}
  .sheet-overlay[data-sheet-state="2"]>.trip-backdrop{display:block;pointer-events:auto;background:rgba(0,0,0,.42);backdrop-filter:none}
  .sheet-overlay>.sheet-dialog{pointer-events:auto;display:flex;flex-direction:column;width:100%;height:var(--sheet-height,60dvh);max-height:var(--sheet-height,60dvh);border-bottom:0;border-radius:18px 18px 0 0;transition:height .18s ease,max-height .18s ease;overflow:hidden;background:var(--panel);color:var(--text)}
  .sheet-tools{display:block;flex:0 0 auto;background:var(--panel2);border-bottom:1px solid var(--line);padding:0 10px 6px}
  .sheet-grip{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;border:0;background:transparent;color:var(--text);font:inherit;font-size:13px;cursor:ns-resize;touch-action:none;user-select:none}
  .sheet-grip-bar{width:48px;height:5px;border-radius:5px;background:var(--line)}
  .sheet-control-row{display:flex;gap:8px}.sheet-control-row button{flex:1;min-width:0;overflow-wrap:anywhere;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);font:inherit;font-size:14px;font-weight:700;padding:6px 8px;cursor:pointer}.sheet-control-row button:disabled{color:var(--muted);background:var(--panel2);cursor:default}
  .sheet-dialog>.trip-head,.sheet-dialog>.trip-meta,.sheet-dialog>.trip-foot{flex:0 0 auto}
  .sheet-dialog>.trip-head{padding:10px 12px}.sheet-dialog .trip-head h2{font-size:18px;line-height:1.3;overflow-wrap:anywhere}.sheet-dialog .trip-close{width:44px;height:44px}
  .sheet-dialog>.trip-body,.sheet-dialog>.stop-departures{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
  .sheet-dialog .trip-stops{overflow:visible;min-height:0}
  .sheet-summary{flex:1 1 auto;min-height:0;overflow:auto;padding:10px 14px;color:var(--text);background:var(--panel);line-height:1.5;touch-action:pan-y}
  .sheet-summary strong,.sheet-summary span,.sheet-summary small{display:block;overflow-wrap:anywhere}.sheet-summary span{font-size:15px;margin-top:3px;white-space:pre-line}.sheet-summary small{font-size:13px;color:var(--muted);margin-top:4px}
  .sheet-overlay[data-sheet-state="0"] .sheet-summary{display:block}
  .sheet-overlay[data-sheet-state="0"] .sheet-dialog>.trip-body,.sheet-overlay[data-sheet-state="0"] .sheet-dialog>.stop-departures,.sheet-overlay[data-sheet-state="0"] .sheet-dialog>.trip-meta,.sheet-overlay[data-sheet-state="0"] .sheet-dialog>.trip-foot,.sheet-overlay[data-sheet-state="0"] .trip-subtitle{display:none}
  .sheet-overlay[data-sheet-state="0"] .trip-head h2{font-size:16px;max-height:42px;overflow:hidden}
  .sheet-dialog>.trip-foot{padding-bottom:calc(8px + env(safe-area-inset-bottom))}
  .sheet-dragging>.sheet-dialog{transition:none}
}
@media(max-width:900px) and (max-height:450px){.sheet-dialog .trip-subtitle,.sheet-dialog>.trip-meta,.sheet-dialog>.trip-foot{display:none}.sheet-dialog>.trip-head{padding:6px 12px}.sheet-grip{min-height:44px}}
@media(prefers-reduced-motion:reduce){.sheet-overlay>.sheet-dialog{transition:none}}
