.trip-timeline{border:1px solid var(--line);border-radius:22px;padding:16px;background:var(--surface);margin:14px 0}
.trip-timeline header{display:flex;align-items:center;justify-content:space-between;gap:8px}.trip-timeline h3{display:flex;align-items:center;gap:8px;font-size:17px;margin:0}
.trip-timeline button,.timeline-actions a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;box-sizing:border-box;text-decoration:none;padding:8px 10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:inherit;font:inherit;font-size:12px;cursor:pointer}.trip-timeline button svg,.trip-timeline h3 svg,.timeline-node svg{width:20px;height:20px;flex-shrink:0}
.timeline-source{font-size:11px;color:var(--muted);margin:8px 0 16px}.timeline-day h4{font-size:12px;margin:16px 0 8px;color:var(--muted)}.timeline-day ol{list-style:none;padding:0;margin:0}
.timeline-point,.timeline-stop{position:relative;display:flex;align-items:flex-start;gap:10px;padding:12px 8px;border-radius:16px;min-width:0;transition:background .18s ease,box-shadow .18s ease}.timeline-point strong,.timeline-stop strong{display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.timeline-node{display:grid;place-items:center;width:32px;height:32px;border-radius:12px;background:#e9f3f0;color:#236e5c;flex-shrink:0}.timeline-content{min-width:0;flex:1}.timeline-purpose{display:block;font-size:11px;font-weight:650;color:#236e5c;margin-bottom:3px}
.timeline-stop[data-selected=true]{background:#edf7f4;box-shadow:inset 0 0 0 2px #77b9a6}.timeline-clocks{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:8px 0}.timeline-clocks b{color:var(--ink);font-weight:650}.timeline-note{display:flex;align-items:center;gap:4px;font-size:11px;line-height:1.5;color:var(--muted);margin:4px 0}.timeline-note svg{width:14px;height:14px;flex-shrink:0}.timeline-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.timeline-drive{display:flex;align-items:center;gap:10px;margin-left:23px;padding:10px 0 10px 23px;border-left:2px dotted #c7d5d0;color:var(--muted);font-size:12px}.timeline-drive svg{width:18px;height:18px}.timeline-scope{font-size:11px;color:var(--muted);margin-top:14px}.timeline-scope summary{min-height:44px;display:flex;align-items:center;gap:6px;cursor:pointer}.timeline-scope svg{width:16px;height:16px}.timeline-scope p{line-height:1.6;margin:0}
@media(max-width:360px){.trip-timeline{padding:12px}.trip-timeline header{align-items:flex-start}.trip-timeline header button{max-width:115px}.timeline-stop,.timeline-point{padding:10px 2px;gap:8px}.timeline-actions button{font-size:11px;padding:8px}}
@media(prefers-reduced-motion:reduce){.timeline-stop,.timeline-point{transition:none}}

.timeline-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
@media(max-width:599px){
 body[data-journey-focus=true][data-view=planner]:not([data-picking=true]) .journey-panel{display:none}
 body[data-journey-focus=true][data-route-ready=true][data-view=planner]:not([data-picking=true]):has(#trip-preferences) #workspace #trip-sheet:not(.sheet-collapsed){max-height:min(64%,calc(100% - 245px));}
 body[data-journey-focus=true][data-view=planner]:not([data-picking=true]):has(#trip-sheet:not(.sheet-collapsed)) .route-map__attribution{top:8px;bottom:auto;left:12px;right:65px}
 body[data-journey-focus=true][data-view=planner]:not([data-picking=true]):has(#trip-sheet:not(.sheet-collapsed)) .route-map__controls{top:14px;bottom:auto}
 body[data-journey-focus=true][data-view=planner]:not([data-picking=true]):has(#trip-sheet:not(.sheet-collapsed)) .map-locate{top:126px;bottom:auto}
}

@media(max-width:599px) and (max-height:700px){
 body[data-journey-focus=true][data-route-ready=true][data-view=planner]:not([data-picking=true]):has(#trip-preferences) #workspace #trip-sheet:not(.sheet-collapsed){max-height:min(64%,calc(100% - 245px))!important}
 body[data-journey-focus=true][data-route-ready=true][data-view=planner]:not([data-picking=true]):has(#trip-sheet:not(.sheet-collapsed)) #workspace :is(.route-map__controls,.map-locate){display:grid}
}
