.journey-workspace #departuresPanel{background:#fff;border:1px solid #bdcbdc;border-radius:8px;overflow:hidden;margin-bottom:18px}
#departuresPanel summary{background:#343f4e;color:#fff;padding:15px 18px;display:flex;align-items:center;gap:15px;list-style:none}
#departuresPanel .departure-strip-title{display:flex;align-items:center;gap:10px;color:#fff;border-right:1px solid #6c7c91;font-size:15px;padding-right:16px;white-space:nowrap}
#departuresPanel .departure-strip-title img{width:20px;height:20px;filter:brightness(0) invert(1)}
#departuresPanel #departureSummary{color:#d6dfeb;font-size:12px}
#departuresPanel .departure-strip-action{margin-left:auto;color:#fff;font-size:11px;padding:7px 10px;border:1px solid #708096;border-radius:4px;white-space:nowrap}
#departuresPanel .departure-action-close{display:none}
#departureDetails[open] .departure-action-open{display:none}
#departureDetails[open] .departure-action-close{display:inline}
#departuresPanel #departureList{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,480px),1fr));gap:12px;padding:14px;background:#eef1f4}
#departuresPanel .departure-item{background:#fff;border:1px solid #d4dbe3;border-radius:7px;overflow:hidden;min-width:0;color:#344154}
.departure-item-heading{background:#f6f7f9;border-bottom:1px solid #dbe0e6;padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.departure-eyebrow{font-size:9px;font-weight:600;letter-spacing:.5px;color:#718096}
.departure-item-heading h3{font-size:17px;margin:5px 0;color:#26384c}
.departure-item-heading p{font-size:11px;line-height:1.4;margin:0;color:#627184}
.departure-state{font-size:10px;font-weight:650;color:#46586b;background:#e5e9ee;border:1px solid #cdd4de;border-radius:4px;padding:6px 9px;white-space:nowrap}
.departure-item-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:0;padding:16px}
.departure-item-grid>section{min-width:0;padding:0 14px;border-right:1px solid #e0e4e9}
.departure-item-grid>section:first-child{padding-left:0}
.departure-item-grid>section:last-child{border-right:0;padding-right:0}
.departure-item h4{font-size:11px;font-weight:650;margin:0 0 13px;color:#526174}
.departure-facts{display:grid;gap:12px}
.departure-fact{display:grid;gap:4px}
.departure-fact>span{font-size:9px;color:#7a8797}
.departure-fact>strong{font-size:11px;line-height:1.5;color:#37485d;font-weight:550;overflow-wrap:anywhere}
.departure-estimate-main{display:grid;gap:6px}
.departure-estimate-main strong{font-size:16px;color:#34485f}
.departure-estimate-main b{font-size:23px;color:#34485f;line-height:1.2}
.departure-estimate p,.departure-estimate-help{font-size:10px;line-height:1.5;color:#7a8797;margin:9px 0 0;display:block}
.departure-estimate .departure-reason{color:#526174;background:#f1f3f6;border-radius:4px;padding:7px}
.departure-return [data-route-arrival]{font-size:13px;font-weight:600;line-height:1.6;color:#34485f}
.departure-return [data-route-arrival] :is(strong,span,small){color:#34485f!important;display:block}
.departure-item-actions{display:flex;flex-wrap:wrap;gap:8px;padding:11px 16px;background:#f6f7f9;border-top:1px solid #e0e4e9}
.departure-item-actions .btn{font-size:11px;min-height:36px;padding:8px 12px}
.departure-item-actions .primary{background:#45586f;border:1px solid #45586f;color:#fff}
.departure-item-actions .soft{background:#fff;border:1px solid #ccd5df;color:#526174}
.departure-empty{padding:15px;color:#526174}
.departure-empty strong{font-size:13px}
.departure-empty p{font-size:12px}
@media(max-width:600px){
#departuresPanel summary{padding:13px;gap:8px;flex-wrap:wrap}
#departuresPanel .departure-strip-title{font-size:14px;border:0;padding:0;flex:1}
#departuresPanel #departureSummary{font-size:11px;order:3;flex-basis:100%}
#departuresPanel #departureList{padding:9px}
.departure-item-heading{padding:12px;gap:8px;align-items:flex-start}
.departure-state{font-size:9px;padding:5px}
.departure-item-grid{grid-template-columns:1fr 1fr;padding:13px;gap:16px 0}
.departure-item-grid .departure-timing{grid-column:1/-1;border:0;padding:0 0 14px;border-bottom:1px solid #e0e4e9}
.departure-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.departure-item-grid .departure-estimate{padding-left:0}
.departure-item-grid .departure-return{padding-right:0}
.departure-item-actions{padding:10px 12px}
.departure-item-actions .btn{flex:1;min-height:42px}
}
/* Secondary information is quieter; the creation action is the main accent. */
#departuresPanel summary{background:#e8edf3;color:#40546d}
#departuresPanel .departure-strip-title{color:#40546d;border-right-color:#c8d2de}
#departuresPanel .departure-strip-title img{filter:none;opacity:.7}
#departuresPanel #departureSummary{color:#718198}
#departuresPanel .departure-strip-action{background:#f7f9fc;color:#526981;border-color:#c9d5e3}
#departuresPanel summary:hover{background:#e2e9f1}
.journey-workspace .programming-heading>.btn.primary{background:#c93636;border:1px solid #b82c2c;color:#fff;font-weight:700;box-shadow:0 2px 4px #96303024}
.journey-workspace .programming-heading>.btn.primary:hover{background:#b72c2c;border-color:#a82424}
.journey-workspace .programming-heading>.btn.primary:focus-visible{outline:3px solid #efb0b0;outline-offset:3px}

/* Compact operational rows, with supporting details on demand. */
#departuresPanel #departureList{grid-template-columns:minmax(0,1fr);gap:7px;padding:10px 12px;background:#f5f7fa}
#departuresPanel .departure-compact{border-radius:5px;border:1px solid #dce3ec;background:#fff}
#departuresPanel .departure-row-summary{display:grid;grid-template-columns:minmax(150px,1.3fr) minmax(145px,1fr) minmax(120px,1fr) auto 16px;gap:18px;align-items:center;padding:11px 14px;background:#fff;color:#344b67;list-style:none;cursor:pointer}
#departuresPanel .departure-row-summary:hover{background:#f7f9fc}#departuresPanel .departure-row-summary::-webkit-details-marker{display:none}
.departure-compact-vehicle,.departure-compact-date,.departure-compact-return{display:grid;gap:3px;min-width:0}.departure-compact-vehicle>strong{font-size:13px;letter-spacing:.2px}.departure-compact-vehicle>small{font-size:11px;color:#7b8da4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.departure-compact-date>span,.departure-compact-return>span{font-size:9px;color:#8492a6;letter-spacing:.3px}.departure-compact-date>strong{font-size:12px;font-weight:600}.departure-compact-return>[data-route-arrival]{font-size:12px;font-weight:600;line-height:1.4}.departure-compact-return .route-arrival-weekday{display:none}.departure-compact-return .route-arrival-date{font-size:12px;font-weight:600;color:#344b67}.departure-compact .departure-state{font-size:10px;padding:4px 7px;background:#edf2f7;border-color:#d5dfeb}.departure-expand{font-size:15px;color:#8492a6;transition:transform .15s}.departure-compact[open] .departure-expand{transform:rotate(180deg)}.departure-expanded{padding:12px 14px 10px;border-top:1px solid #e3e9f0;background:#fafbfd}.departure-inline-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.departure-inline-facts .departure-fact{gap:4px}.departure-inline-facts .departure-fact>span{font-size:10px}.departure-inline-facts .departure-fact>strong{font-size:11px}.departure-compact-source{font-size:11px;line-height:1.5;color:#7b8da4;margin:12px 0 7px}.departure-expanded .departure-item-actions{padding:7px 0 0;background:none;border:0;gap:7px}.departure-expanded .departure-item-actions .btn{min-height:28px;font-size:11px;padding:5px 9px}.departure-expanded .raw-pickup-icon{width:28px;border:1px solid #dce3ec;border-radius:4px}
@media(max-width:760px){#departuresPanel .departure-row-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px;padding:11px 12px}.departure-compact-vehicle{grid-column:1;grid-row:1}.departure-compact .departure-state{grid-column:2;grid-row:1;justify-self:end}.departure-compact-date{grid-column:1;grid-row:2}.departure-compact-return{grid-column:2;grid-row:2}.departure-expand{display:none}.departure-compact-date>strong{font-size:11px}.departure-inline-facts{grid-template-columns:1fr 1fr;gap:12px}.departure-expanded .departure-item-actions .btn{flex:none;min-height:32px}#departuresPanel #departureList{padding:8px;gap:6px}}
