.logbook-stops{margin-block:1rem;min-width:0}.logbook-stops h2{font-size:1rem}.logbook-stop-row{padding:.55rem 0;border-bottom:1px solid var(--line);font-size:.9rem;overflow-wrap:anywhere}.logbook-stop-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.4rem}.logbook-stop-actions button{padding:.35rem .6rem;min-height:36px}.logbook-stop-row[data-stop-status=confirmed]>strong{color:var(--accent)}.logbook-stop-row[data-stop-status=rejected]{opacity:.75}

#logbookText{width:100%;min-width:0;box-sizing:border-box}

#logbookReadable{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font:inherit} .logbook-coordinate{text-decoration:underline;text-underline-offset:.2em}
#logbookLocationDialog{width:min(900px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;padding:12px;overflow:auto}
#logbookLocationDialog h2{font-size:1.1rem;margin:.3rem 0}#logbookLocationDescription{font-size:.85rem;overflow-wrap:anywhere;margin:.4rem 0}
#logbookLocationMap{width:100%;height:clamp(180px,60dvh,560px);min-width:0}#logbookLocationDialog::backdrop{background:rgb(0 0 0 / .55)}
#logbookLocationDialog,#logbookStopsDialog{background:var(--surface);color:var(--text);font:inherit;border:1px solid var(--line);border-radius:12px}#logbookStopsDialog{width:min(1000px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:12px;overflow:auto}#logbookStopsMap{height:clamp(170px,32dvh,320px);width:100%}#logbookStopsMapLabel{font-size:.85rem;overflow-wrap:anywhere}#logbookStopsDialog h2{font-size:1.1rem}#logbookStopsDialog::backdrop{background:rgb(0 0 0 / .55)}.logbook-stop-row.selected-stop{border-left:3px solid var(--accent);padding-left:.5rem}
/* Only the stop list scrolls; map and dialog controls remain visible. */
#logbookStopsDialog[open]{display:flex;flex-direction:column;height:calc(100dvh - 24px);overflow:hidden}
#logbookStopsDialog>.dialog-close-bar,#logbookStopsTitle,#logbookStopsMapLabel{flex:none;margin-block:.2rem}
#logbookStopsMap{flex:none;height:clamp(100px,28dvh,280px)}
#logbookStopsDialog>#logbookStopsPanel{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;margin:.5rem 0 0;scrollbar-gutter:stable}
