.mslivee{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;border:1px solid #ddd;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 5px 22px rgba(0,0,0,.07)}
.mslivee-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 16px;background:#14833b;color:#fff}.mslivee-badge{font-size:11px;margin-left:10px;padding:3px 7px;border-radius:99px;background:#fff;color:#14833b}.mslivee-search{display:flex;gap:6px}.mslivee-search input{min-width:190px;padding:8px 10px;border:0;border-radius:7px}.mslivee-search button,.mslivee-replay button{border:0;border-radius:7px;padding:8px 12px;cursor:pointer}.mslivee-stats{display:flex;flex-wrap:wrap;gap:8px;padding:10px 14px}.mslivee-stat{padding:7px 10px;border:1px solid #e5e5e5;border-radius:8px;font-size:13px;display:flex;gap:7px;align-items:center}.mslivee-stat span{font-weight:700}.mslivee-replay{padding:12px 14px;background:#f7f8f8;border-top:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8}.mslivee-replay-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.mslivee-replay-title{display:flex;gap:12px;align-items:center}.mslivee-replay-clock{font-variant-numeric:tabular-nums;font-weight:800;font-size:18px}.mslivee-replay-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.mslivee-replay-actions label{font-size:12px;display:flex;gap:5px;align-items:center}.mslivee-replay-actions select{padding:7px;border:1px solid #ccc;border-radius:7px;background:#fff}.mslivee-replay-range{width:100%;margin:12px 0 2px;accent-color:#14833b}.mslivee-replay-times{display:flex;justify-content:space-between;font-size:11px;color:#666;font-variant-numeric:tabular-nums}.mslivee-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:0}.mslivee-map-wrap{min-height:520px;background:#f2f2f2;position:relative}.mslivee-map{width:100%;height:520px;position:relative;overflow:hidden;background:#f7f7f7}.mslivee-map .leaflet-container{font:inherit}.mslivee-map-legend{position:absolute;z-index:500;left:12px;bottom:12px;background:rgba(255,255,255,.94);border-radius:9px;padding:8px 10px;box-shadow:0 2px 12px rgba(0,0,0,.16);font-size:12px;display:flex;gap:10px;flex-wrap:wrap}.mslivee-map-legend i{font-style:normal}.mslivee-profile-wrap{padding:14px;background:#fff}.mslivee-profile-title{font-weight:700;margin:0 0 8px}.mslivee-profile{display:block;width:100%;height:230px;border:1px solid #eee;border-radius:8px;background:#fafafa}.profile-control-line{stroke:#999;stroke-width:1;stroke-dasharray:4 4}.profile-control-dot{fill:#fff;stroke:#14833b;stroke-width:3}.profile-control-label{font-size:11px;font-weight:600;fill:#333}.profile-runner-line{stroke:#d71920;stroke-width:3;stroke-dasharray:5 4}.profile-runner-dot{fill:#d71920;stroke:#fff;stroke-width:3}.profile-runner-label{font-size:11px;font-weight:700;fill:#b00000}.mslivee-selected{padding:14px;background:#fff;border-top:1px solid #eee;font-size:14px}.mslivee-selected-main{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:5px}.mslivee-selected-main strong{font-size:17px}.mslivee-status{font-size:11px;text-transform:uppercase;padding:3px 7px;border-radius:99px;background:#eee}.mslivee-status.running{background:#ffe1e1;color:#a40000}.mslivee-status.finished{background:#e4f4e9;color:#176b32}.mslivee-status.dnf,.mslivee-status.dsq{background:#eee;color:#555}.mslivee-follow-note{margin-top:8px;font-size:12px;color:#666}.mslivee-empty{color:#666}.mslivee-note{padding:10px 14px;background:#fff6f6;color:#8b2222;font-size:12px}.mslivee-error{padding:12px;border:1px solid #e33;background:#fff5f5;color:#8b1111;border-radius:8px}.mslivee-marker-icon,.mslivee-runner-icon,.mslivee-leader-icon,.mslivee-replay-runner-icon{font-size:27px;line-height:1;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35));text-align:center}.mslivee-runner-icon{font-size:31px}.mslivee-leader-icon{font-size:30px}.mslivee-replay-runner-icon{font-size:14px;color:#111;filter:none;line-height:18px}.mslivee-runner-tooltip{font-weight:700;border:1px solid #14833b!important;box-shadow:0 2px 8px rgba(0,0,0,.15)!important}.leaflet-popup-content{margin:10px 12px}.leaflet-tooltip{font-size:12px}@media(max-width:700px){.mslivee-head{align-items:stretch;flex-direction:column}.mslivee-search input{min-width:0;flex:1}.mslivee-map{height:390px}.mslivee-map-wrap{min-height:390px}.mslivee-profile{height:180px}.mslivee-map-legend{left:8px;right:8px;bottom:8px}.mslivee-replay-actions{width:100%}}
.profile-leader-line{stroke:#b8860b;stroke-width:3;stroke-dasharray:3 3}
.profile-leader-dot{fill:#ffd34d;stroke:#7a5a00;stroke-width:3}
.profile-leader-label{font-size:12px;font-weight:800;fill:#7a5a00}

.mslivee-profile-leader-info{display:inline-block;margin:0 0 8px;padding:6px 10px;border-radius:8px;background:#fff6d6;border:1px solid #d8b34a;color:#6f5200;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}.mslivee-profile{overflow:visible}

.mslivee-modebar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0 12px}.mslivee-mode-btn{border:1px solid #ccc;background:#fff;color:#333;border-radius:8px;padding:8px 11px;font-weight:800;cursor:pointer}.mslivee-mode-btn.active{background:#d71920;color:#fff;border-color:#d71920}.mslivee-mode-btn[data-mode="replay"].active{background:#14833b;border-color:#14833b}.mslivee-mode-help{font-size:11px;color:#666;flex:1;min-width:240px}.mslivee-live-box{margin-top:9px;padding:9px 11px;background:#fff0f0;border-left:4px solid #d71920;border-radius:6px;color:#7b1515;font-size:12px}.mslivee-profile-leader-info{font-size:13px}.mslivee-note{border-top:1px solid #eee}
.mslivee-validation{padding:14px;background:#f8faf8;border-top:1px solid #e8e8e8}.mslivee-validation-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.mslivee-validation-sub{display:block;font-size:11px;color:#777;margin-top:3px;font-weight:400}.mslivee-validation-run{border:0;border-radius:8px;padding:9px 13px;cursor:pointer;background:#14833b;color:#fff;font-weight:800}.mslivee-validation-status{margin-top:10px;padding:9px 11px;border-radius:7px;background:#fff;border:1px solid #e3e7e3;font-size:12px;color:#555}.mslivee-validation-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}.mslivee-validation-card{padding:9px 10px;background:#fff;border:1px solid #e1e5e1;border-radius:8px}.mslivee-validation-card strong{display:block;font-size:11px;color:#666}.mslivee-validation-card span{display:block;margin-top:4px;font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}.mslivee-validation-table-wrap{overflow:auto;margin-top:10px}.mslivee-validation-table{width:100%;border-collapse:collapse;font-size:12px;background:#fff}.mslivee-validation-table th,.mslivee-validation-table td{padding:8px 9px;border:1px solid #e2e5e2;text-align:right;white-space:nowrap}.mslivee-validation-table th:first-child,.mslivee-validation-table td:first-child{text-align:left}.mslivee-validation-table th{background:#eef3ef}.mslivee-validation-detail{margin-top:10px;padding:9px 11px;background:#fff;border-left:4px solid #14833b;border-radius:6px;font-size:12px;color:#555}@media(max-width:700px){.mslivee-validation-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.mslivee-validation-head{align-items:stretch;flex-direction:column}}
.mslivee-selection{padding:12px 14px;background:#f8faf8;border-bottom:1px solid #e8e8e8}
.mslivee-selection-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.mslivee-selection-head div{display:flex;flex-direction:column;gap:3px}
.mslivee-selection-head span{font-size:11px;color:#666}
.mslivee-selection-clear{border:1px solid #ccc;background:#fff;border-radius:7px;padding:7px 10px;cursor:pointer;font-size:12px}
.mslivee-selection-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px;min-height:30px;align-items:center}
.mslivee-selection-chip{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid #cfd8d1;border-radius:999px;padding:5px 7px 5px 10px;font-size:12px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.mslivee-selection-chip strong{font-variant-numeric:tabular-nums;color:#14833b}
.mslivee-selection-chip span{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mslivee-selection-chip button{border:0;background:#eee;border-radius:50%;width:21px;height:21px;line-height:19px;padding:0;cursor:pointer;font-weight:800;color:#555}
.mslivee-selection-empty,.mslivee-comparison-empty{font-size:12px;color:#777}
.mslivee-comparison{padding:14px;background:#fff;border-top:1px solid #eee}
.mslivee-comparison-head{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:9px}
.mslivee-comparison-head span{font-size:11px;color:#666;font-variant-numeric:tabular-nums}
.mslivee-comparison-table-wrap{overflow:auto}
.mslivee-comparison-table{width:100%;border-collapse:collapse;font-size:12px;min-width:720px}
.mslivee-comparison-table th,.mslivee-comparison-table td{padding:8px 9px;border:1px solid #e2e5e2;text-align:right;white-space:nowrap}
.mslivee-comparison-table th:first-child,.mslivee-comparison-table td:first-child,.mslivee-comparison-table th:nth-child(2),.mslivee-comparison-table td:nth-child(2),.mslivee-comparison-table th:nth-child(4),.mslivee-comparison-table td:nth-child(4),.mslivee-comparison-table th:nth-child(5),.mslivee-comparison-table td:nth-child(5){text-align:left}
.mslivee-comparison-table th{background:#eef3ef}
.mslivee-comparison-table .no-position{opacity:.65}
.mslivee-comparison-note{margin-top:9px;padding:8px 10px;background:#f8faf8;border-left:3px solid #14833b;border-radius:5px;font-size:11px;color:#666}
.mslivee-evolution-wrap{padding:14px;background:#fff;border-top:1px solid #eee}
.mslivee-evolution{display:block;width:100%;height:220px;border:1px solid #eee;border-radius:8px;background:#fafafa}
@media(max-width:700px){.mslivee-selection-head{align-items:stretch;flex-direction:column}.mslivee-selection-clear{align-self:flex-start}.mslivee-evolution{height:190px}}

/* Identificación visual de dorsales en mapa y líder */
.mslivee-runner-icon,.mslivee-replay-runner-icon,.mslivee-leader-icon{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;filter:drop-shadow(0 2px 2px rgba(0,0,0,.28));white-space:nowrap}
.mslivee-runner-icon{font-size:28px;line-height:1}
.mslivee-runner-symbol{display:block;line-height:1}
.mslivee-replay-runner-icon{font-size:11px;line-height:1;color:#111;filter:none}
.mslivee-map-dot{font-size:13px;line-height:1}
.mslivee-map-bib{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:11px;line-height:1;font-weight:900;background:#fff;border:1px solid #333;border-radius:4px;padding:2px 4px;color:#111;box-shadow:0 1px 4px rgba(0,0,0,.22)}
.mslivee-runner-icon .mslivee-map-bib{top:100%;margin-top:2px;border-color:#14833b;color:#14833b;font-size:12px}
.mslivee-leader-icon{flex-direction:column;font-size:25px;line-height:1}
.mslivee-leader-icon strong{margin-top:1px;padding:2px 5px;background:#fff;border:2px solid #b8860b;border-radius:5px;color:#6f5200;font-size:12px;line-height:1;box-shadow:0 1px 5px rgba(0,0,0,.25)}
