.jt-stop-card{border:1px solid #c7dccf;border-radius:14px;padding:20px;margin:16px 0;background:#fff}.jt-stop-card legend{display:flex;gap:9px;align-items:center;font-weight:700}.jt-stop-card legend span{cursor:grab}.jt-stop-card button,.jt-stops-actions button,.jt-proposal button,.jt-payment-editor button{border:1px solid #b4cdbc;border-radius:7px;padding:7px 11px;background:#eef8f1;color:#183d28;cursor:pointer}.jt-stop-card button:disabled{opacity:.4}.jt-card-fields,.jt-endpoints{display:grid;grid-template-columns:1fr 1fr;gap:14px}.jt-card-fields label:first-child{grid-column:1/-1}.jt-stops-editor label{display:flex;flex-direction:column;gap:7px;font-size:13px}.jt-stops-editor input,.jt-stops-editor select,.jt-stops-editor textarea,.jt-join-extras input{width:100%;border:1px solid #c9d9cf;border-radius:8px;padding:11px;background:#fff;color:#183d28}.jt-payment-editor{margin-top:16px;padding:15px;background:#edf6ef;border-radius:10px}.jt-payment-row{display:grid;grid-template-columns:1fr 1fr 1fr 35px;gap:8px;margin:10px 0}.jt-stops-actions{display:flex;gap:10px;flex-wrap:wrap}.jt-total{display:block;padding:17px;background:#173e29;color:white;border-radius:10px;margin-top:16px}.jt-old-main-field{display:none!important}.jt-proposal{padding:16px;background:#eaf3ff;border:1px solid #9ebddd;border-radius:10px;margin-top:12px}.jt-proposal button{margin-right:10px}.jt-map{height:330px;margin-top:16px;border-radius:12px;overflow:hidden}.jt-map-number{background:#167849;color:#fff;border:2px solid white;border-radius:50%;text-align:center;font-weight:bold;line-height:22px;width:26px!important;height:26px!important}.jt-canonical-summary{padding:16px;order:2}.jt-canonical-summary li{padding:12px;margin:8px;background:#edf5ef;border-radius:8px}.jt-canonical-summary p{margin:6px 0}.jt-join-extras{padding:16px;background:#f2f7f3}.jt-join-extras label{display:block;margin:8px 0}.jt-drop-target{outline:3px solid #24a95f!important;outline-offset:-3px;background:#b8f3ce77!important}.jt-drag-source{opacity:.6}.jt-saving{opacity:.65;pointer-events:none}.jt-form-v31-banner{font-size:13px}.jt-stop-card:focus-within{box-shadow:0 0 0 2px #42a26733}@media(max-width:650px){.jt-card-fields,.jt-endpoints{grid-template-columns:1fr}.jt-payment-row{grid-template-columns:1fr 1fr}.jt-stop-card{padding:12px}.jt-stop-card legend{flex-wrap:wrap}}
.route-detail-modal .payment-summary,.route-detail-modal .print-stop,.route-detail-modal .print-stops{display:none!important}.jt-canonical-summary{max-height:42vh;overflow:auto;border-bottom:1px solid #c8dccf}.jt-payment-editor>strong{display:block;margin-bottom:10px}.jt-payment-editor>button{margin-top:6px}.jt-stop-card legend{max-width:100%;font-size:15px}

.jt-live-map{padding:15px;border:1px solid #c7dccf;background:#f3f8f5;border-radius:14px;margin:14px 0}.jt-live-map>strong{font-size:13px;letter-spacing:.04em;color:#155c36}.jt-live-map>p{font-size:13px;line-height:1.5;margin:8px 0;color:#53695c}.jt-live-map .jt-map{margin-top:8px;height:300px}.jt-map-number{box-shadow:0 2px 5px #0003}@media(max-width:650px){.jt-live-map .jt-map{height:240px}}
@media(min-width:1000px){
 .modal:has(.jt-stops-editor){width:min(1320px,calc(100vw - 48px));max-width:1320px}
 .jt-stops-editor{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:18px;align-items:start}
 .jt-stops-editor>.jt-endpoints{grid-column:1/-1}
 .jt-stops-editor>.jt-route-fields{grid-column:1;grid-row:2;min-width:0}
 .jt-stops-editor>.jt-live-map{grid-column:2;grid-row:2;position:sticky;top:0;margin:0;min-width:0}
 .jt-live-map .jt-map{height:min(58vh,540px);min-height:340px}
 .jt-route-fields>.jt-stop-card:first-child{margin-top:0}
}
@media(max-width:999px){.jt-route-fields{min-width:0}.jt-live-map .jt-map{height:280px}}

@media screen{
 .route-detail-backdrop{padding:20px;overflow:hidden}
 .route-detail-modal{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:20px;width:min(1320px,100%);max-width:100%;max-height:calc(100dvh - 40px);min-height:0;overflow:auto;align-items:start;box-sizing:border-box;scrollbar-gutter:stable}
 .route-detail-modal>.route-detail-head{grid-column:1/-1;grid-row:1;margin:0;min-width:0;flex-wrap:wrap;align-items:center}
 .route-detail-head-actions{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;max-width:100%;gap:8px}
 .route-detail-modal>.jt-canonical-summary{grid-column:1;grid-row:2;order:0;padding:0;max-height:none;height:auto;overflow:visible;min-width:0;border:0}
 .jt-canonical-summary h3{font-size:16px;margin:0 0 14px;line-height:1.4}
 .jt-canonical-summary ol{list-style:none;counter-reset:jt-stop;margin:0;padding:0}
 .jt-canonical-summary li{counter-increment:jt-stop;position:relative;margin:0 0 12px;padding:16px 16px 16px 52px;border:1px solid #d5e3d9;border-radius:12px;overflow-wrap:anywhere;line-height:1.5}
 .jt-canonical-summary li::before{content:counter(jt-stop);position:absolute;left:13px;top:16px;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#176342;color:#fff;font-size:13px;font-weight:700}
 .jt-canonical-summary>strong:last-child{display:block;padding:15px;border-radius:10px;background:#173e29;color:white;line-height:1.5}
 .route-detail-modal>.route-detail-layout{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:16px;min-width:0;width:100%;align-items:stretch}
 .route-detail-layout>.route-map-section,.route-detail-layout>.route-detail-sidebar{width:100%;min-width:0;max-width:100%}
 .route-detail-modal .map-frame{height:clamp(280px,39vh,420px);width:100%;min-width:0;overflow:hidden;border-radius:12px}
 .route-detail-modal .leaflet-route-map{width:100%;height:100%}
 .route-detail-modal .route-itinerary{min-width:0;overflow-wrap:anywhere}
 .route-detail-modal .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0}
 .route-detail-modal .detail-grid>div{min-width:0;overflow-wrap:anywhere}
 .route-detail-modal .route-detail-actions{display:flex;flex-wrap:wrap;gap:9px}
 .route-detail-modal .route-detail-actions button{max-width:100%;white-space:normal}
 .route-detail-modal .maps-link{white-space:normal;overflow-wrap:anywhere}
}
@media screen and (max-width:999px){
 .route-detail-backdrop{padding:10px}
 .route-detail-modal{grid-template-columns:minmax(0,1fr);max-height:calc(100dvh - 20px);gap:18px;padding:18px;border-radius:12px}
 .route-detail-modal>.jt-canonical-summary{grid-column:1;grid-row:2}
 .route-detail-modal>.route-detail-layout{grid-column:1;grid-row:3}
}
@media screen and (max-width:540px){
 .route-detail-backdrop{padding:0}
 .route-detail-modal{width:100%;max-height:100dvh;border-radius:0;padding:14px}
 .route-detail-head-actions{justify-content:flex-start}
 .route-detail-head h2{font-size:24px}
 .route-detail-head-actions button{font-size:12px;padding:9px}
 .route-detail-modal .map-frame{height:280px}
}

.route-create-page{width:100%;min-width:0;position:static;background:none;animation:none}
.route-create-panel{width:100%;max-width:none;height:auto;max-height:none;overflow:visible;background:var(--surface,#fff);padding:26px;border:1px solid var(--border,#d7dfd8);border-radius:14px;box-sizing:border-box}
.route-create-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #d7dfd8}
.route-create-head h2{font-size:30px;margin:6px 0}
.route-create-head>button{display:inline-flex;align-items:center;min-height:42px;padding:10px 16px;border:1px solid #ccd6cf;border-radius:8px;background:#fff;white-space:normal;cursor:pointer}
.route-create-panel .jt-stops-editor{min-width:0}
.route-create-panel .modal-actions{position:sticky;bottom:0;z-index:15;margin-top:22px;padding:16px 0;background:var(--surface,#fff);border-top:1px solid #d7dfd8;display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.route-create-panel .form-grid{min-width:0}
.route-create-panel .jt-route-fields{min-width:0}
@media(min-width:1000px){.route-create-panel .jt-stops-editor{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}.route-create-panel .jt-live-map{top:16px}}
@media(max-width:650px){.route-create-panel{padding:16px;border-radius:10px}.route-create-head h2{font-size:25px}.route-create-head{align-items:flex-start}.route-create-panel .modal-actions{justify-content:stretch}.route-create-panel .modal-actions button{flex:1}}

/* Neutral palette and full-width text button, 4.0.5 */
.route-create-panel .route-create-head>button{position:static;inset:auto;display:inline-flex;flex:0 0 auto;width:auto!important;min-width:210px;max-width:100%;height:auto!important;min-height:44px;justify-content:center;align-items:center;white-space:nowrap;padding:11px 18px;line-height:1.4;font-size:14px;font-weight:600;color:#334155;background:#f8fafc;border:1px solid #cbd5e1;border-radius:9px;transform:none}
.route-create-head>div{min-width:0;flex:1 1 250px}
.route-create-head>button:hover{background:#f1f5f9;border-color:#94a3b8}
.jt-form-v31-banner{background:#f8fafc;border-color:#d8dee6;border-left:4px solid #f1cf00;color:#334155}
.jt-stop-card,.jt-live-map{border-color:#d8dee6;background:#fff}
.jt-live-map{background:#f8fafc}
.jt-live-map>strong,.jt-stop-card legend{color:#334155}
.jt-live-map>p{color:#64748b}
.jt-stop-card button,.jt-stops-actions button,.jt-proposal button,.jt-payment-editor button{background:#f1f5f9;border-color:#cbd5e1;color:#334155}
.jt-stop-card button:hover,.jt-stops-actions button:hover,.jt-payment-editor button:hover{background:#e2e8f0}
.jt-stops-editor input,.jt-stops-editor select,.jt-stops-editor textarea,.jt-join-extras input{border-color:#cbd5e1;color:#1e293b}
.jt-stops-editor input:focus,.jt-stops-editor select:focus,.jt-stops-editor textarea:focus{outline:2px solid #e8c900;outline-offset:1px}
.jt-payment-editor,.jt-join-extras,.jt-canonical-summary li{background:#f1f5f9;border-color:#d8dee6;color:#334155}
.jt-total,.jt-canonical-summary>strong:last-child{background:#283344;color:#fff}
.jt-canonical-summary li::before,.jt-map-number{background:#334155;color:white}
.jt-stop-card:focus-within{box-shadow:0 0 0 2px #e8c90033}
.route-create-panel,.route-create-head,.route-create-panel .modal-actions{border-color:#d8dee6}
@media(max-width:650px){.route-create-panel .route-create-head>button{width:100%!important;min-width:0;white-space:normal}.route-create-head>div{flex-basis:100%}}
