/* ── Offroad Route Planner ── */

#orp-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    color: #1a1a1a;
}

/* ── Form Card ── */
#orp-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    margin-bottom: 32px;
}

#orp-form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #1a3a2a 0%, #2d6a4f 100%);
    color: #fff;
    padding: 24px 28px;
}

#orp-form-header svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: #74c69d;
}

#orp-form-header h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    border: none;
    padding: 0;
}

#orp-form-header p {
    margin: 0;
    font-size: .875rem;
    color: #b7e4c7;
}

#orp-form {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.orp-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.orp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}

.orp-field--short {
    flex: 0 0 160px;
    min-width: 140px;
}

.orp-row--middle {
    align-items: flex-end;
}

.orp-field--checkboxes {
    flex: 1;
}

.orp-field-hint {
    font-size: .75rem;
    color: #94a3b8;
    font-style: italic;
    line-height: 1.4;
    margin-top: -12px;
}

.orp-field--checkboxes .orp-checkboxes {
    margin-top: 2px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.orp-field label {
    font-size: .8125rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.orp-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.orp-dot.start { background: #2d6a4f; }
.orp-dot.end   { background: #d62828; }

.orp-field input[type="text"],
.orp-field input[type="number"],
.orp-field textarea {
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: .9375rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    resize: vertical;
}

.orp-field input:focus,
.orp-field textarea:focus {
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45,106,79,.12);
    background: #fff;
}

/* ── Checkboxes ── */
.orp-checkboxes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.orp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: .9375rem;
    font-weight: 500;
    padding: 8px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    transition: all .2s;
    user-select: none;
}

.orp-checkbox-label:hover {
    border-color: #2d6a4f;
    background: #f0faf4;
}

.orp-checkbox-label input[type="checkbox"] {
    display: none;
}

.orp-checkbox-box {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s;
    background: #fff;
}

.orp-checkbox-box svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    color: #fff;
    transition: opacity .15s;
}

.orp-checkbox-label input:checked ~ .orp-checkbox-box { background: #2d6a4f; border-color: #2d6a4f; }
.orp-checkbox-label input:checked ~ .orp-checkbox-box svg { opacity: 1; }
.orp-checkbox-label input:checked ~ span:last-child { color: #2d6a4f; }

.orp-difficulty-easy:hover     { border-color: #16a34a; background: #f0fdf4; }
.orp-difficulty-moderate:hover { border-color: #ca8a04; background: #fefce8; }
.orp-difficulty-hard:hover     { border-color: #dc2626; background: #fef2f2; }

.orp-difficulty-easy input:checked     ~ .orp-checkbox-box { background: #16a34a; border-color: #16a34a; }
.orp-difficulty-moderate input:checked ~ .orp-checkbox-box { background: #ca8a04; border-color: #ca8a04; }
.orp-difficulty-hard input:checked     ~ .orp-checkbox-box { background: #dc2626; border-color: #dc2626; }

.orp-difficulty-easy input:checked     ~ span:last-child { color: #16a34a; }
.orp-difficulty-moderate input:checked ~ span:last-child { color: #ca8a04; }
.orp-difficulty-hard input:checked     ~ span:last-child { color: #dc2626; }

/* ── Submit Button ── */
#orp-submit {
    background: linear-gradient(135deg, #2d6a4f, #1b4332);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s, transform .15s;
    align-self: flex-start;
}

#orp-submit:hover  { opacity: .9; transform: translateY(-1px); }
#orp-submit:active { transform: translateY(0); }
#orp-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

@keyframes orp-spin { to { transform: rotate(360deg); } }
.orp-spin { animation: orp-spin .9s linear infinite; width: 18px; height: 18px; }

/* ── Error ── */
#orp-error {
    background: #fff0f0;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 16px 20px;
    color: #b91c1c;
    margin-bottom: 24px;
    font-weight: 500;
}

/* ── Results ── */
#orp-results-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#orp-route-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3a2a;
    margin: 0 0 8px;
    border: none;
    padding: 0;
}

#orp-route-summary {
    color: #475569;
    margin: 0 0 12px;
    line-height: 1.6;
}

#orp-route-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.orp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: .8125rem;
    font-weight: 600;
}

.orp-badge--difficulty-Easy     { background: #d1fae5; color: #065f46; }
.orp-badge--difficulty-Moderate { background: #fef3c7; color: #92400e; }
.orp-badge--difficulty-Hard     { background: #fee2e2; color: #991b1b; }
.orp-badge--difficulty-Expert   { background: #ede9fe; color: #4c1d95; }
.orp-badge--miles  { background: #e0f2fe; color: #0c4a6e; }
.orp-badge--days   { background: #f0fdf4; color: #14532d; }

/* ── Loading banner ── */
#orp-loading-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d6a4f 100%);
    color: #fff;
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.orp-banner-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.orp-banner-spin {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    animation: orp-spin 1s linear infinite;
    color: #fff;
    opacity: .95;
}

@keyframes orp-spin {
    to { transform: rotate(360deg); }
}

/* ── Map ── */
#orp-map-wrap {
    position: relative;
    margin-bottom: 32px;
}

#orp-map {
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: border-radius .2s;
}

#orp-map-wrap.orp-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    margin: 0;
    padding: 0;
    background: #000;
}

#orp-map-wrap.orp-fullscreen #orp-map {
    height: 100%;
    border-radius: 0;
    border: none;
}

#orp-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1001;
    width: 34px;
    height: 34px;
    background: #fff;
    border: 2px solid rgba(0,0,0,.2);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 5px rgba(0,0,0,.25);
    transition: background .15s;
    padding: 0;
}
#orp-fullscreen-btn:hover { background: #f4f4f4; }
#orp-fullscreen-btn svg { width: 16px; height: 16px; color: #333; display: block; }

/* ── Itinerary ── */
#orp-itinerary {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.orp-day-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.orp-day-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0faf4, #e8f5e9);
    border-bottom: 1px solid #d1fae5;
}

.orp-day-number {
    background: #2d6a4f;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.orp-day-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a3a2a;
}

.orp-day-miles {
    margin-left: auto;
    font-size: .8125rem;
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
}

.orp-day-body {
    padding: 16px 20px;
}

.orp-day-desc {
    color: #475569;
    line-height: 1.65;
    margin: 0 0 16px;
}

.orp-waypoints {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.orp-waypoint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.orp-wp-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.orp-wp-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: .9375rem;
}

.orp-wp-notes {
    font-size: .8125rem;
    color: #64748b;
    margin-top: 2px;
}

.orp-wp-dist {
    margin-left: auto;
    font-size: .75rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    padding-left: 8px;
    flex-shrink: 0;
    font-style: italic;
}

/* ── Data Sources ── */
.orp-sources-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.orp-sources-card h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a3a2a;
}

.orp-sources-card ul {
    padding-left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #475569;
    font-size: .875rem;
}

.orp-sources-card li { line-height: 1.55; }

.orp-sources-card a {
    color: #2d6a4f;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.orp-sources-card a:hover { color: #1b4332; }
#orp-tips {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

#orp-tips h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a3a2a;
}

#orp-tips-list {
    padding-left: 20px;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #475569;
}

#orp-tips-list li { line-height: 1.5; }

#orp-season {
    margin: 0;
    font-size: .875rem;
    color: #64748b;
    font-style: italic;
}

.orp-wp-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Leaflet Custom Markers ── */
.orp-marker-start  { background: #2d6a4f; }
.orp-marker-end    { background: #d62828; }
.orp-marker-camp   { background: #7c3aed; }
.orp-marker-fuel   { background: #b45309; }
.orp-marker-wp     { background: #0369a1; }

.orp-marker-pin {
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.orp-marker-pin-inner {
    transform: rotate(45deg);
    font-size: 10px;
    color: #fff;
    line-height: 1;
    font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    #orp-form { padding: 20px; }
    .orp-row  { flex-direction: column; }
    .orp-field--short { flex: 1; }
    #orp-map  { height: 300px; }
    #orp-results-header { flex-direction: column; }
    #orp-gpx-btn { width: 100%; justify-content: center; }
}

/* ── Auth Bar ── */
#orp-auth-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.orp-auth-guest {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.orp-auth-prompt {
    font-size: .9rem;
    color: #64748b;
    margin-right: auto;
}

.orp-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
}
.orp-login-btn:hover { opacity: .85; }

.orp-login-google {
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
}

.orp-login-patreon {
    background: #FF424D;
    color: #fff;
    border: none;
}

.orp-auth-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.orp-auth-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d6a4f, #0369a1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.orp-auth-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: auto;
}
.orp-auth-info strong { font-size: .95rem; color: #111827; }

.orp-auth-tier {
    font-size: .75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}
.orp-tier-trail_runner { background: #dcfce7; color: #166534; }
.orp-tier-overlander   { background: #fef3c7; color: #92400e; }
.orp-tier-free         { background: #f1f5f9; color: #64748b; }

.orp-auth-btn {
    padding: 7px 14px;
    border-radius: 7px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity .15s;
}
.orp-auth-btn:hover { opacity: .8; }
.orp-btn-secondary { background: #e0f2fe; color: #0369a1; }
.orp-btn-ghost     { background: #f1f5f9; color: #64748b; }

/* ── Disclaimer ── */
#orp-disclaimer {
    display: flex;
    gap: 12px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #78350f;
    font-size: .85rem;
    line-height: 1.5;
}
#orp-disclaimer p { margin: 0; }

/* ── Action buttons ── */
#orp-action-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

#orp-action-btns button, #orp-action-btns a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
    white-space: nowrap;
}
#orp-action-btns button:hover, #orp-action-btns a:hover {
    opacity: .88;
    transform: translateY(-1px);
}
#orp-action-btns button:active, #orp-action-btns a:active {
    transform: translateY(0);
}
#orp-action-btns button svg, #orp-action-btns a svg {
    width: 18px;
    height: 18px;
}

#orp-gpx-btn,
#orp-save-btn,
#orp-share-btn,
#orp-print-btn { background: linear-gradient(135deg, #2d6a4f, #1b4332); color: #fff; }

#orp-share-btn.orp-btn-disabled,
#orp-share-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: .6;
    transform: none;
}

.orp-upgrade-btn {
    background: linear-gradient(135deg, #FF424D, #d62828) !important;
    color: #fff !important;
}

/* ── Toast ── */
#orp-save-toast {
    margin: 10px 0;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
}
.orp-toast--success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.orp-toast--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Saved Routes Modal ── */
#orp-routes-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#orp-routes-modal[hidden] { display: none; }

#orp-routes-modal-inner {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

#orp-routes-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
}
#orp-routes-modal-header h3 { margin: 0; font-size: 1.1rem; }
#orp-routes-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 6px;
}
#orp-routes-close:hover { background: #f1f5f9; }

#orp-routes-list {
    overflow-y: auto;
    flex: 1;
    padding: 12px 24px;
}

#orp-routes-limit-note {
    padding: 12px 24px;
    margin: 0;
    font-size: .8rem;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.orp-route-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.orp-route-item:last-child { border-bottom: none; }

.orp-route-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.orp-route-item-info strong {
    font-size: .9rem;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.orp-route-item-info span { font-size: .78rem; color: #94a3b8; }

.orp-route-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.orp-route-item-actions button {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #374151;
    transition: all .15s;
}
.orp-route-item-actions button:hover { background: #f8fafc; }
.orp-btn-load        { border-color: #2d6a4f !important; color: #2d6a4f !important; }
.orp-btn-copy-share  { border-color: #0369a1 !important; color: #0369a1 !important; }
.orp-btn-delete      { border-color: #ef4444 !important; color: #ef4444 !important; }

/* ── Print styles ── */
@media print {
    #orp-auth-bar,
    #orp-form-card,
    #orp-disclaimer,
    #orp-action-btns,
    #orp-save-toast,
    #orp-loading-banner,
    #orp-fullscreen-btn,
    #orp-tips,
    #orp-sources,
    #orp-routes-modal,
    .orp-wp-dist,
    .leaflet-control-zoom,
    .leaflet-control-attribution { display: none !important; }

    #orp-map { height: 400px !important; border-radius: 0 !important; }
    #orp-map-wrap { margin-bottom: 16px !important; }
    #orp-results-header { flex-direction: column; gap: 8px; }
    body { background: #fff !important; }

    .orp-day-block { break-inside: avoid; }

    /* Print disclaimer at bottom */
    #orp-wrap::after {
        content: "⚠️ AI-Generated Route: These routes are provided as-is. Verify all route information before travel. Driver and vehicle capability are your responsibility.";
        display: block;
        margin-top: 24px;
        padding: 12px;
        border: 1px solid #ccc;
        font-size: .8rem;
        color: #555;
        border-radius: 6px;
    }
}

/* ── My Routes button — matches Generate Route style ── */
#orp-my-routes-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #2d6a4f, #1b4332);
    color: #fff;
    font-family: inherit;
    transition: opacity .2s, transform .15s;
    white-space: nowrap;
}
#orp-my-routes-btn svg { width: 18px; height: 18px; }
#orp-my-routes-btn:hover  { opacity: .88; transform: translateY(-1px); }
#orp-my-routes-btn:active { transform: translateY(0); }

/* ── Form actions row — Generate + My Routes side by side ── */
.orp-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Saved Routes Modal ── */
#orp-routes-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#orp-routes-modal[hidden] { display: none; }

#orp-routes-modal-inner {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

#orp-routes-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
}
#orp-routes-modal-header h3 { margin: 0; font-size: 1.05rem; border: none; padding: 0; }
#orp-routes-close {
    background: none; border: none; font-size: 1.2rem;
    cursor: pointer; color: #64748b; padding: 4px 8px; border-radius: 6px;
}
#orp-routes-close:hover { background: #f1f5f9; }

#orp-routes-list { overflow-y: auto; flex: 1; padding: 12px 24px; }

.orp-route-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}
.orp-route-item:last-child { border-bottom: none; }

.orp-route-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.orp-route-item-info strong { font-size: .9rem; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orp-route-item-info span   { font-size: .78rem; color: #94a3b8; }
.orp-route-expires           { color: #ef4444 !important; font-weight: 600; }

.orp-route-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.orp-route-item-actions button {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #374151;
    transition: all .15s;
}
.orp-route-item-actions button:hover { background: #f8fafc; }
.orp-btn-load        { border-color: #2d6a4f !important; color: #2d6a4f !important; }
.orp-btn-copy-share  { border-color: #0369a1 !important; color: #0369a1 !important; }
.orp-btn-delete      { border-color: #ef4444 !important; color: #ef4444 !important; }
