.msa-match-timeline{display:grid;gap:18px;--tl-deep:#112e43;--tl-edge:#49768b;--tl-ink:#f2faff}
.msa-event-legend{display:flex;gap:12px 20px;flex-wrap:wrap;color:#24495d;font-size:.95rem}
.msa-event-legend-item{display:inline-flex;gap:6px;align-items:center}
.msa-event-legend svg{width:20px;height:20px}
.msa-half-timeline{background:linear-gradient(140deg,#163d54,#102b41);color:var(--tl-ink);border:1px solid var(--tl-edge);border-radius:16px;overflow:hidden;min-width:0}
.msa-half-timeline>header{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid #78acba50}
.msa-half-timeline>header h3{margin:0;font-size:1.25rem;color:#f4fbff}
.msa-half-timeline>header bdi{font-size:1rem;color:#bbdedb}
.msa-half-timeline>header>span{margin-inline-start:auto;font-size:.88rem;color:#b9d9e5}
.msa-event-teams{display:flex;gap:18px;flex-wrap:wrap;padding:15px 20px 0;font-size:.95rem;font-weight:700}
.msa-event-teams>span:before{content:'';display:inline-block;width:10px;height:10px;margin-inline-end:7px;border-radius:50%;background:#71dfb0}
.msa-event-teams>.team-away:before{background:#b5d5ff}
.msa-event-scroll{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;direction:ltr;padding-inline:12px;outline-offset:-3px}
.msa-event-stage{position:relative;min-width:760px;isolation:isolate;direction:ltr}
.msa-event-axis{position:absolute;left:3%;right:3%;height:4px;top:var(--event-axis);background:linear-gradient(90deg,#62caa7,#a3c5df);border-radius:4px;z-index:-1}
.msa-event-added{position:absolute;height:17px;border-radius:5px;background:#e5bc554f;border:1px solid #f0c866;z-index:-1}
.msa-event-ticks{position:absolute;left:0;right:0;height:24px;color:#c5dce7;font:700 .8rem system-ui,sans-serif}
.msa-event-ticks>span{position:absolute;transform:translateX(-50%);white-space:nowrap}
#content .msa-event-marker{position:absolute;transform:translateX(-50%);display:grid;justify-items:center;gap:3px;width:40px;min-height:38px;padding:5px 3px;border-radius:9px;border:1px solid #73c9a9;background:#146744;color:#f4fff9;font:700 .75rem system-ui,sans-serif;cursor:pointer;z-index:1;box-shadow:0 3px 9px #00172366;touch-action:manipulation}
#content .msa-event-marker svg{width:20px;height:20px;pointer-events:none}
#content .msa-event-marker bdi{color:#fff;font-size:.68rem;white-space:nowrap;line-height:1.3;pointer-events:none}
#content .msa-event-marker:after{content:'';position:absolute;left:50%;top:100%;height:var(--event-stem);width:1px;background:#71dfb06b;pointer-events:none;z-index:-1}
#content .msa-event-marker.team-away{border-color:#b5d5ff;background:#165c49}
#content .msa-event-marker.team-away:after,#content .msa-event-marker.team-neutral:after{top:auto;bottom:100%;background:#b5d5ff65}
#content .msa-event-marker.kind-yellow{color:#ffe17a}
#content .msa-event-marker.kind-red{color:#ff909e}
#content .msa-event-marker:is(:hover,[aria-expanded=true]){outline:2px solid #e3fff3;outline-offset:3px;background:#238453}
#content .msa-event-marker:focus-visible{outline:3px solid #ffdc79;outline-offset:4px}
.msa-event-inspector{border-top:1px solid #78acba50;padding:14px 20px;min-height:82px}
.msa-event-hint{font-size:.92rem;line-height:1.7;color:#c3dce8;margin:0}
.msa-event-detail:not([hidden]){display:flex;gap:15px;align-items:flex-start}
.msa-event-detail[hidden],.msa-event-hint[hidden]{display:none}
.msa-event-detail-icon{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:11px;background:#237653;color:#fff}
.msa-event-detail-icon svg{width:25px;height:25px}
.msa-event-detail.kind-yellow .msa-event-detail-icon{color:#ffe17a}
.msa-event-detail.kind-red .msa-event-detail-icon{color:#ff909e}
.msa-event-detail span{font-size:.88rem;color:#badbd9}
.msa-event-detail h4{margin:.2rem 0;color:#fff;font-size:1.12rem}
.msa-event-detail p{margin:.15rem 0;color:#e2f1f8;line-height:1.65;font-size:1rem}
.msa-event-empty{padding:15px 18px;color:#31566c;background:#eef6f8;border-radius:10px;font-size:1rem;line-height:1.8}
.msa-half-timeline .msa-event-empty{color:#d5e9f2;background:transparent}
html[data-theme=light] .msa-half-timeline{background:linear-gradient(145deg,#173e50,#123043)}
@media(max-width:600px){.msa-half-timeline>header{padding:13px 14px;gap:8px}.msa-half-timeline>header h3{font-size:1.12rem}.msa-event-inspector{padding:13px 14px}.msa-event-legend{gap:10px 14px;font-size:.85rem}.msa-event-stage{min-width:680px}.msa-event-teams{font-size:.88rem;padding-inline:14px}}

.msa-event-legend .kind-yellow svg{color:#a97900}.msa-event-legend .kind-red svg{color:#bc2345}
