.rupt-workspace { --rupt-gold: #d1ab68; --rupt-muted: #aaa99b; --rupt-ink: #eee8da; color: var(--rupt-ink); min-width: 0; }
.rupt-workspace [data-team="1"], .rupt-popup [data-team="1"] { --rupt-team: #91b4dc; }
.rupt-workspace [data-team="2"], .rupt-popup [data-team="2"] { --rupt-team: #d99086; }
[data-outcome="hit"] { --rupt-outcome: #89c7a2; }
[data-outcome="cancel"] { --rupt-outcome: #d3a0e7; }
[data-outcome="cancelled"] { --rupt-outcome: #a9aedf; }
.rupt-marker[data-outcome="cancelled"] .rupt-marker-pair { border-style: dashed; }
.rupt-cancel-note { color: var(--rupt-muted); font-size: .7rem; margin: .65rem 0 0; }
[data-outcome="finished"] { --rupt-outcome: #e1bb73; }
[data-outcome="ineligible"] { --rupt-outcome: #f08f8d; }
[data-outcome="random"] { --rupt-outcome: #87c8db; }
[data-outcome="unknown"] { --rupt-outcome: #adb2b8; }
.rupt-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .8rem; margin-bottom: .65rem; }
.rupt-heading h2, .rupt-panel h3, .rupt-popup h4 { color: var(--rupt-gold, #d1ab68); font-family: var(--font-display, Georgia, serif); margin: 0; }
.rupt-heading h2 { font-size: 1.25rem; }
.rupt-heading p, .rupt-panel-head p { color: var(--rupt-muted); margin: .4rem 0 0; font-size: .82rem; line-height: 1.5; }
.rupt-heading p { margin: 0; font-size: .73rem; }
.rupt-panel { min-width: 0; margin: 1.2rem 0; padding: 1.2rem; border: 1px solid #b58a4a42; border-radius: 5px; background: linear-gradient(130deg, #d1ab6809, transparent 45%), linear-gradient(#191d1b, #111615); box-shadow: inset 0 0 0 1px #0005; }
.rupt-panel-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.rupt-panel h3 { font-size: 1.25rem; }
.rupt-player-heading { display: flex; align-items: center; gap: .65rem; }
.rupt-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.rupt-picker-team { margin: .5rem 0; }
.rupt-picker-perspective { min-width: 0; padding-block: .15rem; }
.rupt-picker-perspective + .rupt-picker-perspective { border-left: 1px solid #b58a4a55; padding-left: 1rem; }
.rupt-picker-perspective h3 { color: var(--rupt-gold); font-size: .78rem; font-weight: 600; margin: 0 0 .4rem; }
.rupt-picker-team > div { display: flex; min-width: 0; flex-wrap: wrap; gap: .25rem; }
.rupt-team-label { display: flex; align-items: center; gap: .3rem; font-size: .7rem; margin-bottom: .2rem; overflow-wrap: anywhere; }
.rupt-picker + .rupt-panel { margin-top: .75rem; }
.rupt-team-label i, .rupt-lane-label i, .rupt-actor i { width: .45rem; height: .45rem; border-radius: 50%; flex: none; background: var(--rupt-team, #999); }
.rupt-group-icon { width: 22px; height: 22px; flex: none; color: var(--rupt-gold); }
.rupt-workspace button, .rupt-workspace select { font: inherit; }
.rupt-workspace button { cursor: pointer; }
.rupt-picker button { display: flex; align-items: center; min-width: 0; min-height: 26px; height: 26px; box-sizing: border-box; max-width: 100%; gap: .25rem; padding: .15rem .35rem; background: #151b1b; border: 1px solid #5b615b; border-radius: 3px; color: #ddd8cc; font-size: .73rem; line-height: 1.3; }
.rupt-choice-name { min-width: 0; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rupt-picker button small { color: #d1ab68; font-size: inherit; font-variant-numeric: tabular-nums; margin-left: .15rem; flex: none; }
.rupt-picker .rupt-picker-match { margin-top: .6rem; }
.rupt-picker .rupt-group-icon { width: 15px; height: 15px; }
.rupt-picker button[aria-pressed="true"], .rupt-skill-counts button[aria-pressed="true"] { background: #d1ab6818; border-color: #d1ab68; color: #fff2d9; }
.rupt-picker .player-tab-professions, .rupt-player-heading .player-tab-professions { display: inline-flex; gap: 2px; flex-shrink: 0; }
.rupt-picker .player-tab-professions img, .rupt-player-heading .player-tab-professions img { width: 18px; height: 18px; object-fit: contain; }
.rupt-picker .player-tab-professions img { width: 14px; height: 14px; }
.rupt-counts, .rupt-list-count { color: var(--rupt-muted); font-size: .8rem; white-space: nowrap; }
.rupt-counts b { color: var(--rupt-ink); font-weight: 600; }
.rupt-counts > span { margin: 0 .5rem; color: #727769; }
.rupt-legend { display: flex; flex-wrap: wrap; gap: .45rem 1.15rem; font-size: .72rem; color: #c2c0b4; }
.rupt-legend > span, .rupt-outcome { display: inline-flex; align-items: center; gap: .35rem; }
.rupt-legend b { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--rupt-outcome); color: var(--rupt-outcome); border-radius: 3px; font-size: .7rem; }
.rupt-timeline { min-width: 0; margin-top: .8rem; }
.rupt-cast-summary { position: relative; z-index: 2; padding: .25rem 0 .55rem; }
.rupt-cast-summary-head { display: flex; align-items: center; justify-content: space-between; gap: .3rem 1rem; margin-bottom: .4rem; flex-wrap: wrap; }
.rupt-cast-summary h4 { color: var(--rupt-muted); font-size: .7rem; font-weight: 400; margin: 0; }
.rupt-cast-summary h4 span { color: #858e85; }
.rupt-cast-totals { display: flex; gap: .9rem; margin: 0; }
.rupt-cast-totals > div { display: flex; align-items: baseline; gap: .35rem; }
.rupt-cast-totals dt { color: var(--rupt-muted); font-size: .7rem; }
.rupt-cast-totals dd { color: var(--rupt-gold); font-size: .8rem; font-variant-numeric: tabular-nums; margin: 0; }
.rupt-cast-skills { display: flex; align-items: center; gap: .45rem; overflow-x: auto; padding: 2px; scrollbar-width: thin; scrollbar-color: #76603e transparent; }
.rupt-cast-skill { display: inline-flex; align-items: center; gap: .35rem; flex: none; padding: .15rem .2rem; border: 1px solid #b58a4a28; border-radius: 3px; font-size: .7rem; font-variant-numeric: tabular-nums; }
.rupt-cast-skill > img, .rupt-cast-skill > .rupt-unknown-icon { width: 22px; height: 22px; flex: none; }
.rupt-cast-skill-count { display: inline-flex; align-items: baseline; gap: .2rem; color: var(--rupt-muted); white-space: nowrap; }
.rupt-cast-skill-count b { color: var(--rupt-ink); font-weight: 500; }
.rupt-cast-skill-count > span { color: #727769; }
.rupt-cast-skill > strong { color: var(--rupt-gold); font-size: .7rem; font-weight: 500; margin-left: .2rem; }
.rupt-cast-skill:focus-visible { outline: 1px solid var(--rupt-gold); outline-offset: 1px; }
.rupt-chart-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-color: #ae8b4c #272e28; scrollbar-width: auto; min-width: 0; padding-bottom: 5px; }
.rupt-chart-track { position: relative; min-width: 100%; height: 160px; }
.rupt-time-axis { position: absolute; inset-inline: 12px; height: 1px; background: #bda67462; }
.rupt-time-tick { position: absolute; color: #a8afa6; font-size: .68rem; font-variant-numeric: tabular-nums; }
.rupt-time-tick > i { display: block; height: 5px; width: 1px; background: #bda67480; }
.rupt-time-tick > span { position: absolute; top: 8px; transform: translateX(-50%); white-space: nowrap; }
.rupt-time-tick:first-of-type > span { transform: none; }
.rupt-lane-label { display: inline-flex; align-items: center; gap: .45rem; position: absolute; left: 12px; font-size: .72rem; color: var(--rupt-team, #c6c4b6); }
.rupt-connectors { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rupt-connectors path { fill: none; stroke: var(--rupt-outcome); stroke-width: .8px; opacity: .3; vector-effect: non-scaling-stroke; }
.rupt-connectors circle { fill: var(--rupt-outcome); opacity: .65; }
.rupt-connectors [data-rupt-missed="true"]:not(.is-active) path { opacity: .14; }
.rupt-connectors [data-rupt-missed="true"]:not(.is-active) circle { opacity: .35; }
.rupt-connectors .is-active path { stroke-width: 1.5px; opacity: 1; }
.rupt-connectors .is-active circle { r: 3px; opacity: 1; }
.rupt-active-time { position: absolute; z-index: 3; transform: translateX(-50%); padding: 2px 5px; border: 1px solid #bda67480; border-radius: 3px; background: #121b17; color: #eee0be; font-size: .68rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.rupt-workspace .rupt-marker { display: block; position: absolute; z-index: 1; width: var(--rupt-marker-width); height: var(--rupt-marker-height); padding: 1px; box-sizing: border-box; color: #ece7d9; background: none; border: 0; border-radius: 3px; }
.rupt-marker[data-rupt-missed="true"] { opacity: .55; }
.rupt-marker[data-rupt-missed="true"] .rupt-marker-pair img { filter: saturate(.4); }
.rupt-marker[data-rupt-missed="true"]:is(:hover, :focus-visible, .is-active) { opacity: 1; }
.rupt-marker[data-rupt-missed="true"]:is(:hover, :focus-visible, .is-active) .rupt-marker-pair img { filter: none; }
.rupt-marker-pair { display: flex; width: 100%; box-sizing: border-box; align-items: center; justify-content: center; gap: 3px; padding: 2px; border: 1px solid var(--rupt-outcome); border-radius: 2px; background: #101716; box-shadow: 0 2px 4px #0005; }
.rupt-marker-pair img, .rupt-marker-pair .rupt-unknown-icon { width: 20px; height: 20px; flex: none; }
.rupt-marker-pair > b { color: #a3a69a; font-weight: 400; font-size: .6rem; }
.rupt-marker-target { display: block; width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; margin-top: 3px; font-size: .6rem; line-height: 13px; color: #c3c6bb; background: #141b18e8; }
.rupt-marker-symbol { position: absolute; top: -3px; right: -2px; background: #121c18; color: var(--rupt-outcome); font-size: .58rem; line-height: 11px; font-weight: 600; font-style: normal; padding: 0 2px; border: 1px solid var(--rupt-outcome); border-radius: 2px; }
.rupt-marker:hover .rupt-marker-pair, .rupt-marker:focus-visible .rupt-marker-pair { box-shadow: 0 0 0 2px #e4cf9c80; }
.rupt-timeline > footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: var(--rupt-muted); font-size: .68rem; padding-top: .8rem; }
.rupt-skill-counts { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.rupt-skill-counts > span { color: var(--rupt-muted); font-size: .73rem; margin-right: .5rem; }
.rupt-skill-counts button { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid #777f674a; border-radius: 3px; background: #20261e; color: #e0ddcf; padding: .25rem .4rem; font-size: .7rem; }
.rupt-skill-counts img { width: 22px; height: 22px; }
.rupt-skill-counts b { color: #d1ab68; }
.rupt-filters { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.rupt-filters label { flex: 1; min-width: 140px; display: grid; gap: .35rem; }
.rupt-filters label > span { font-size: .69rem; color: var(--rupt-muted); }
.rupt-filters select { width: 100%; padding: .55rem; background: #111916; color: #dedfd5; border: 1px solid #6b735c; border-radius: 3px; font-size: .75rem; }
.rupt-filters > button, .rupt-load-more { background: #1d251f; border: 1px solid #777f6766; color: #dfd9c8; padding: .55rem .7rem; border-radius: 3px; font-size: .73rem; }
.rupt-event-list { border-top: 1px solid #88775055; max-height: 680px; overflow-y: auto; scrollbar-color: #8e7953 #202923; }
.rupt-history-row { display: grid; grid-template-columns: 5rem minmax(230px, 1fr) minmax(210px, .85fr); align-items: start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #a799732b; border-left: 2px solid var(--rupt-outcome); padding-left: .8rem; }
.rupt-history-row > time { color: #c5baa2; font-size: .75rem; font-variant-numeric: tabular-nums; margin-top: .4rem; }
.rupt-history-pair { display: grid; grid-template-columns: minmax(90px, 1fr) 15px minmax(120px, 1.1fr); gap: .6rem; align-items: start; }
.rupt-history-pair > b { color: #999e91; margin-top: .4rem; font-weight: 400; }
.rupt-history-pair .rupt-actor { margin: .45rem 0 0; font-size: .72rem; }
.rupt-skill { display: inline-flex; gap: .5rem; align-items: center; min-width: 0; color: #ece7db; font-size: .8rem; line-height: 1.4; }
.rupt-skill img, .rupt-skill .rupt-unknown-icon { height: 30px; width: 30px; flex: none; }
.rupt-unknown-icon { display: inline-grid; place-items: center; color: #bcb5a4; background: #2a302b; border: 1px solid #737768; font: 1rem Georgia, serif; }
.rupt-outcome { color: var(--rupt-outcome); font-size: .75rem; }
.rupt-history-result p { margin: .3rem 0; color: #a7afa3; line-height: 1.5; font-size: .72rem; }
.rupt-history-result > small { display: block; margin-top: .3rem; color: #a7afa3; font-size: .7rem; }
.rupt-history-result details { margin-top: .3rem; }
.rupt-workspace summary, .rupt-popup summary { color: #bcb3a0; cursor: pointer; font-size: .7rem; }
.rupt-load-more { display: block; margin: 1rem auto 0; }
.rupt-coverage { font-size: .73rem; line-height: 1.6; color: var(--rupt-muted); }
.rupt-empty, .rupt-empty-inline { color: var(--rupt-muted); font-size: .8rem; }
.rupt-empty { padding: 1rem; }
.rupt-actor { display: inline-flex; align-items: center; gap: .4rem; color: #d9ddd2; font-size: .78rem; }
.rupt-popup { z-index: 1500; position: fixed; max-width: calc(100vw - 16px); width: 360px; max-height: min(620px, calc(100vh - 16px)); overflow: auto; padding: 1rem; box-sizing: border-box; border: 1px solid #ba965a; border-radius: 5px; background: #121c19; box-shadow: 0 12px 36px #000a; color: #eee8da; }
.rupt-popup-close { position: absolute; right: .3rem; top: .2rem; border: 0; background: none; color: #ccc3ac; font-size: 1.3rem; cursor: pointer; padding: .1rem .35rem; }
.rupt-popup h4 { margin: .3rem 1rem .6rem 0; font-size: .85rem; }
.rupt-event-content { padding: .5rem 0; }
.rupt-event-content + .rupt-event-content { border-top: 1px solid #7c734455; margin-top: .5rem; }
.rupt-event-content > header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-right: 1.6rem; font-size: .76rem; margin-bottom: .75rem; }
.rupt-event-pair { display: grid; grid-template-columns: 1fr 12px 1fr; gap: .65rem; margin: .65rem 0; }
.rupt-event-pair > b { font-weight: 400; color: #9a9f8d; }
.rupt-event-pair small { display: block; font-size: .65rem; color: #a7afa3; margin-top: .4rem; }
.rupt-event-content p, .rupt-event-content > small { color: #b2b8aa; font-size: .75rem; line-height: 1.55; }
.rupt-event-content > button { margin-top: .6rem; background: none; border: 0; color: #dec58e; font: inherit; font-size: .75rem; padding: .3rem 0; cursor: pointer; }
.rupt-workspace :focus-visible, .rupt-popup :focus-visible { outline: 2px solid #e6c57e; outline-offset: 3px; }
@media (max-width: 850px) { .rupt-history-row { grid-template-columns: 4.5rem minmax(0, 1fr); gap: .6rem; } .rupt-history-result { grid-column: 2; } }
@media (max-width: 520px) { .rupt-panel { padding: .8rem; } .rupt-panel-head { gap: .6rem; } .rupt-panel h3 { font-size: 1.1rem; } .rupt-history-row { grid-template-columns: 1fr; gap: .4rem; } .rupt-history-result { grid-column: 1; } .rupt-history-pair { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); gap: .35rem; } .rupt-history-pair .rupt-skill { font-size: .74rem; } .rupt-history-pair img { width: 26px; height: 26px; } .rupt-legend { gap: .45rem .7rem; } .rupt-filters label { min-width: 120px; } .rupt-skill-counts button { font-size: .65rem; } }

@media (min-width: 621px) and (max-width: 1050px) { .rupt-picker-team > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .rupt-picker button { width: 100%; } .rupt-picker button small { margin-left: auto; } }
@media (max-width: 620px) { .rupt-picker { grid-template-columns: minmax(0, 1fr); gap: .5rem; } .rupt-picker-perspective + .rupt-picker-perspective { border-left: 0; border-top: 1px solid #b58a4a55; padding: .65rem 0 0; } }
