:root {
  color-scheme: dark;
  --bg: #111315;
  --surface: #191c1e;
  --surface-2: #202426;
  --surface-3: #151819;
  --line: #353a3c;
  --line-strong: #50575a;
  --text: #f1eee7;
  --muted: #a7aca9;
  --jade: #42bd8b;
  --jade-dark: #23795b;
  --jade-soft: rgba(66, 189, 139, .12);
  --class-color: #00ff98;
  --gold: #d8ac50;
  --gold-light: #f1d28c;
  --danger: #d66b63;
  --danger-soft: rgba(214, 107, 99, .13);
  --purple: #9d78d6;
  --purple-soft: rgba(157, 120, 214, .13);
  --blue: #70a7d9;
  --label-width: 190px;
  --track-width: 1260px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(66, 189, 139, .05), transparent 34rem),
    var(--bg);
}

button, input, select { font: inherit; }
a { color: inherit; }
code { color: #9be1c3; font-family: Consolas, "Cascadia Mono", monospace; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 2px;
}

.app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 19, 21, .96);
  backdrop-filter: blur(12px);
}

.identity { min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.identity img { flex: 0 0 42px; border: 1px solid var(--class-color); border-radius: 7px; background: #111817; }
.identity div { min-width: 0; }
.identity h1 { margin: 0; overflow: hidden; font-size: 19px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.identity p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.view-tabs, .segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101214;
}

.tab, .segment {
  min-height: 34px;
  padding: 6px 15px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.tab:hover, .segment:hover { color: var(--text); background: var(--surface-2); }
.tab.is-active, .segment.is-active { color: #101713; background: var(--jade); font-weight: 700; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.tool-link { color: var(--muted); font-size: 11px; text-decoration: none; }
.tool-link:hover { color: var(--gold-light); }
.source-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid #5d4f2f;
  border-radius: 4px;
  color: var(--gold-light);
  background: #241f16;
  font-size: 11px;
  text-decoration: none;
}
.source-link:hover { border-color: var(--gold); background: #2c2518; }

main { width: min(1700px, 100%); margin: 0 auto; padding: 14px; }

.eyebrow { display: block; color: var(--jade); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.hero-panel {
  min-height: 205px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(430px, .65fr);
  align-items: center;
  gap: 38px;
  margin-bottom: 12px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 91% 12%, rgba(66, 189, 139, .18), transparent 34%),
    radial-gradient(circle at 74% 100%, rgba(157, 120, 214, .09), transparent 40%),
    linear-gradient(135deg, #1c211f, #171a1c 58%, #1b1d1e);
  overflow: hidden;
}

.hero-panel h2 { max-width: 860px; margin: 9px 0 11px; font-size: clamp(25px, 3vw, 40px); line-height: 1.12; letter-spacing: -.035em; }
.hero-panel p { max-width: 850px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.78; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.hero-tag { padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; color: #cdd1ce; background: rgba(15, 18, 19, .64); font-size: 9px; }
.hero-tag strong { color: var(--gold-light); font-weight: 700; }

.dataset-summary { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 7px; background: rgba(16, 18, 20, .68); }
.dataset-summary div { min-height: 82px; display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; }
.dataset-summary div:nth-child(odd) { border-right: 1px solid var(--line); }
.dataset-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.dataset-summary strong { color: var(--gold-light); font-size: 25px; font-variant-numeric: tabular-nums; }
.dataset-summary span { margin-top: 3px; color: var(--muted); font-size: 9px; }

.analysis-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid #2e5e4b;
  border-radius: 6px;
  background: #15231d;
}
.note-mark { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--jade-dark); border-radius: 50%; color: #8de0bb; font-family: Georgia, serif; font-size: 13px; font-weight: 700; }
.analysis-note p { margin: 0; color: #b5c7bf; font-size: 10px; line-height: 1.6; }
.analysis-note strong { color: #dbe7e1; }

.panel { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.panel-heading { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: #171a1c; }
.panel-heading h2 { margin: 4px 0 0; font-size: 17px; }
.panel-heading p { max-width: 800px; margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.timeline-heading { align-items: flex-end; }
.timeline-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 14px; color: var(--muted); font-size: 9px; }
.timeline-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch { width: 9px; height: 9px; display: inline-block; border-radius: 2px; background: var(--line-strong); }
.legend-swatch.is-danger { background: var(--danger); }
.legend-swatch.is-add { background: var(--purple); }
.legend-swatch.is-monk { background: var(--jade); }
.legend-swatch.is-item { background: var(--gold); }
.legend-swatch.is-interrupt { border: 1px solid #58836f; background: transparent; }

.timeline-controls { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #151819; }
.playback-control { min-width: min(560px, 45vw); display: grid; grid-template-columns: 38px 78px minmax(180px, 1fr); align-items: center; gap: 9px; }
.play-button { width: 36px; height: 36px; border: 1px solid var(--jade-dark); border-radius: 50%; color: #95e4c2; background: #17271f; cursor: pointer; }
.play-button.is-playing { color: #111713; background: var(--jade); }
.playback-control output { color: var(--gold-light); font-family: Consolas, "Cascadia Mono", monospace; font-size: 11px; font-variant-numeric: tabular-nums; }
input[type="range"] { accent-color: var(--jade); cursor: pointer; }
.control-groups { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.segment { min-height: 30px; padding: 4px 10px; font-size: 9px; }
.switch-control { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: #111416; font-size: 9px; cursor: pointer; }
.switch-control:has(input:checked) { border-color: #2e6c54; color: #9bd9bd; background: #15241d; }
.switch-control input { width: 13px; height: 13px; margin: 0; accent-color: var(--jade); }
.zoom-control { min-height: 32px; display: grid; grid-template-columns: auto 92px; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: #111416; font-size: 9px; }
.zoom-control input { width: 92px; }

.stage-jumps { display: flex; gap: 6px; padding: 8px 14px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #171a1c; scrollbar-width: thin; }
.stage-button { flex: 0 0 auto; min-height: 30px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: #121516; font-size: 9px; cursor: pointer; }
.stage-button:hover, .stage-button.is-active { border-color: #6e5c33; color: var(--gold-light); background: #251f15; }
.stage-button strong { margin-right: 5px; color: var(--text); }

.timeline-viewport { position: relative; max-width: 100%; overflow: auto; background: #121516; scrollbar-color: #47504c #171a1c; }
.timeline-viewport:focus-visible { outline-offset: -2px; }
.timeline-canvas { position: relative; width: calc(var(--label-width) + var(--track-width)); min-width: 100%; }
.timeline-ruler, .timeline-lane { display: grid; grid-template-columns: var(--label-width) var(--track-width); }
.timeline-ruler { position: sticky; z-index: 14; top: 0; min-height: 42px; border-bottom: 1px solid var(--line-strong); background: rgba(20, 23, 24, .97); }
.ruler-label, .lane-label { position: sticky; z-index: 12; left: 0; border-right: 1px solid var(--line-strong); background: #171a1c; }
.ruler-label { display: flex; align-items: center; padding: 0 14px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.ruler-track { position: relative; min-width: 0; }
.ruler-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: #343a3c; }
.ruler-tick.is-major { background: #535a5d; }
.ruler-tick span { position: absolute; top: 8px; left: 5px; color: #858b88; font-family: Consolas, "Cascadia Mono", monospace; font-size: 8px; white-space: nowrap; }
.ruler-tick.is-major span { color: #b4b9b6; }

.timeline-lane { min-height: 58px; border-bottom: 1px solid #292e30; }
.timeline-lane:last-child { border-bottom: 0; }
.lane-label { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 8px 12px; }
.lane-label::before { content: ""; width: 3px; align-self: stretch; border-radius: 3px; background: var(--line-strong); }
.timeline-lane.is-boss .lane-label::before { background: var(--danger); }
.timeline-lane.is-support .lane-label::before { background: var(--purple); }
.timeline-lane.is-healer .lane-label::before { background: var(--jade); }
.timeline-lane.is-item .lane-label::before { background: var(--gold); }
.lane-label-copy { min-width: 0; }
.lane-label strong { display: block; overflow: hidden; color: #e5e4de; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.lane-label span { display: block; margin-top: 2px; overflow: hidden; color: #737a77; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.lane-track { position: relative; min-height: 58px; overflow: hidden; background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), rgba(255, 255, 255, .028) calc(10% - 1px), rgba(255, 255, 255, .028) 10%); }
.timeline-lane:nth-child(even) .lane-track { background-color: rgba(255, 255, 255, .012); }

.pressure-window { position: absolute; z-index: 0; top: 0; bottom: 0; min-width: 2px; border-inline: 1px solid transparent; pointer-events: none; }
.pressure-window.is-infusion { border-color: rgba(214, 107, 99, .2); background: linear-gradient(90deg, rgba(214, 107, 99, .04), rgba(214, 107, 99, .17), rgba(214, 107, 99, .04)); }
.pressure-window.is-tentacle { border-color: rgba(157, 120, 214, .16); background: linear-gradient(90deg, rgba(157, 120, 214, .03), rgba(157, 120, 214, .13), rgba(157, 120, 214, .03)); }
.pressure-window.is-collapse { border-color: rgba(216, 172, 80, .18); background: repeating-linear-gradient(135deg, rgba(216, 172, 80, .12) 0, rgba(216, 172, 80, .12) 4px, rgba(216, 172, 80, .035) 4px, rgba(216, 172, 80, .035) 8px); }

.timeline-event { position: absolute; z-index: 3; top: var(--event-y, 50%); min-width: 8px; height: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 6px; transform: translate(-1px, -50%); border: 1px solid var(--line-strong); border-radius: 4px; color: #e7e4dc; background: #262b2d; box-shadow: 0 2px 7px rgba(0, 0, 0, .24); font-size: 8px; white-space: nowrap; cursor: pointer; }
.timeline-event:hover { z-index: 7; filter: brightness(1.25); }
.timeline-event.is-selected { z-index: 8; outline: 2px solid #fff1b8; outline-offset: 2px; }
.timeline-event.is-boss { border-color: #864943; background: #3a2322; }
.timeline-event.is-critical { border-color: #a95a52; color: #ffd2ce; background: #4a2724; }
.timeline-event.is-interrupted { min-width: 7px; padding: 0; border-color: #4a7b65; border-radius: 2px; background: #173025; box-shadow: none; }
.timeline-event.is-interrupted::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: #80d5b0; }
.timeline-event.is-support { width: 7px; min-width: 7px; height: 15px; padding: 0; border-color: #71579a; border-radius: 50%; background: #392b4b; box-shadow: none; }
.timeline-event.is-support.is-entry { width: 9px; min-width: 9px; height: 9px; border-radius: 2px; background: #9d78d6; transform: translate(-4px, -50%) rotate(45deg); }
.timeline-event.is-healer { border-color: #2d7759; color: #c7f1dd; background: #173126; }
.timeline-event.is-item { border-color: #80672f; color: #ffe3a0; background: #332a17; }
.timeline-event.is-defense { border-color: #4d7394; color: #cfe8ff; background: #1d2c38; }
.timeline-event.is-resource { border-color: #55797d; color: #c9e9ec; background: #1c3032; }
.timeline-event.is-offense { border-color: #7e6041; color: #e9d2b7; background: #32271d; }
.timeline-event.is-dense { width: 6px; min-width: 6px; height: 6px; padding: 0; transform: translate(-3px, -50%); border: 0; border-radius: 50%; background: #72cfa7; box-shadow: none; }
.timeline-event.is-dense.is-damage { background: #d2a269; }
.timeline-event.is-dense.is-utility { background: #7f9ec0; }
.timeline-event .event-label { overflow: hidden; max-width: 100px; text-overflow: ellipsis; }

.timeline-cursor { position: absolute; z-index: 18; top: 0; bottom: 0; left: var(--label-width); width: 1px; background: rgba(255, 241, 184, .84); pointer-events: none; box-shadow: 0 0 8px rgba(255, 224, 130, .4); }
.timeline-cursor span { position: absolute; top: 4px; left: 50%; width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg); background: var(--gold-light); }
.timeline-hint { display: flex; justify-content: space-between; gap: 18px; padding: 8px 14px; border-top: 1px solid var(--line); color: #767c79; background: #151819; font-size: 8px; }

.selection-panel { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr); gap: 12px; margin-bottom: 12px; }
.selected-event-card, .response-card { min-height: 230px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.selected-event-card { padding: 20px; background: radial-gradient(circle at 95% 0, rgba(66, 189, 139, .08), transparent 36%), var(--surface); }
.selected-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.selected-time { color: var(--gold-light); font-family: Consolas, "Cascadia Mono", monospace; font-size: 11px; }
.selected-badge { padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; font-size: 8px; }
.selected-badge.is-danger { border-color: #814740; color: #efaaa4; background: #33201e; }
.selected-badge.is-success { border-color: #2f7257; color: #9ce5c6; background: #17271f; }
.selected-badge.is-gold { border-color: #775f2e; color: var(--gold-light); background: #292216; }
.selected-event-card h2 { margin: 9px 0 7px; font-size: 24px; }
.selected-summary { max-width: 850px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.selected-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.selected-meta span { padding: 5px 8px; border: 1px solid #303638; border-radius: 4px; color: #c7cbc8; background: #151819; font-size: 9px; }
.selected-meta strong { color: #9ce1c3; }
.focus-button { margin-top: 17px; padding: 7px 10px; border: 1px solid var(--jade-dark); border-radius: 4px; color: #a8e7ca; background: #16261f; font-size: 9px; cursor: pointer; }

.response-card header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #171a1c; }
.response-card h2 { margin: 4px 0 0; font-size: 15px; }
.window-label { padding: 4px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: #121516; font-family: Consolas, "Cascadia Mono", monospace; font-size: 8px; }
.response-list { max-height: 260px; overflow: auto; }
.response-entry { width: 100%; min-height: 50px; display: grid; grid-template-columns: 67px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 14px; border: 0; border-bottom: 1px solid #2a2f31; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.response-entry:last-child { border-bottom: 0; }
.response-entry:hover { background: #1d2223; }
.response-time { color: var(--gold-light); font-family: Consolas, "Cascadia Mono", monospace; font-size: 9px; }
.response-name { display: block; color: #e2e3dd; font-size: 10px; }
.response-detail { display: block; margin-top: 3px; color: #7e8581; font-size: 8px; }
.response-offset { color: #7fd5af; font-family: Consolas, "Cascadia Mono", monospace; font-size: 8px; }
.empty-response { padding: 34px 18px; color: var(--muted); font-size: 10px; text-align: center; }

.round-grid { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 1px; background: var(--line); }
.round-card { min-width: 0; padding: 16px; background: var(--surface); }
.round-card:hover { background: #1d2123; }
.round-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.round-card h3 { margin: 3px 0 0; font-size: 13px; }
.round-time { color: var(--gold-light); font-family: Consolas, "Cascadia Mono", monospace; font-size: 9px; }
.round-flow { display: grid; gap: 5px; margin: 13px 0; }
.round-mechanic { min-height: 29px; display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 7px; padding: 5px 7px; border: 1px solid #2f3436; border-radius: 4px; background: #151819; font-size: 8px; }
.round-mechanic time { color: #d9b96d; font-family: Consolas, "Cascadia Mono", monospace; }
.round-mechanic b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-responses { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 11px; border-top: 1px solid #303537; }
.response-chip { padding: 3px 5px; border: 1px solid #2f684f; border-radius: 3px; color: #9addbd; background: #16251e; font-size: 8px; cursor: pointer; }
.response-chip:hover { border-color: var(--jade); }
.response-chip.is-item { border-color: #715b2d; color: #e8c978; background: #292216; }
.round-empty { color: #747a77; font-size: 8px; }

.sequence-heading { align-items: flex-end; }
.select-control { display: grid; gap: 5px; color: var(--muted); font-size: 8px; }
.select-control select { min-width: 170px; height: 34px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; outline: 0; color: var(--text); background: #111416; font-size: 10px; }
.sequence-table-wrap { overflow: auto; }
.sequence-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.sequence-table th { position: sticky; z-index: 3; top: 0; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); color: var(--muted); background: #151819; font-weight: 500; text-align: left; white-space: nowrap; }
.sequence-table td { padding: 9px 12px; border-bottom: 1px solid #292e30; vertical-align: top; }
.sequence-table tr:last-child td { border-bottom: 0; }
.sequence-table tbody tr { cursor: pointer; }
.sequence-table tbody tr:hover { background: #1e2224; }
.sequence-table tbody tr.is-selected { background: #202b26; }
.sequence-time { color: var(--gold-light); font-family: Consolas, "Cascadia Mono", monospace; white-space: nowrap; }
.sequence-spell { color: #e8e6df; font-size: 10px; }
.sequence-sub { display: block; margin-top: 3px; color: #777e7a; font-size: 8px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: #171a1c; white-space: nowrap; }
.status-pill.is-interrupted { border-color: #315f4b; color: #8bd8b6; background: #16251e; }
.status-pill.is-pressure { border-color: #78453f; color: #e9aaa4; background: #2d1e1c; }
.sequence-responses { display: flex; flex-wrap: wrap; gap: 4px; max-width: 560px; }

.source-footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 2px; padding: 18px 6px 10px; }
.source-footer p { max-width: 930px; margin: 6px 0 0; color: #757c78; font-size: 9px; line-height: 1.65; }
.footer-links { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.footer-links a { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: #151819; font-size: 8px; text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); border-color: #6e5c33; }

@media (max-width: 1180px) {
  .app-header { grid-template-columns: 1fr auto; }
  .view-tabs { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
  .hero-panel { grid-template-columns: 1fr; }
  .dataset-summary { max-width: 660px; }
  .timeline-controls { align-items: flex-start; flex-direction: column; }
  .playback-control { width: 100%; min-width: 0; }
  .control-groups { justify-content: flex-start; }
  .selection-panel { grid-template-columns: 1fr; }
  .round-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}

@media (max-width: 720px) {
  :root { --label-width: 138px; }
  .app-header { gap: 10px; padding: 10px 12px; }
  .identity h1 { font-size: 15px; }
  .identity p { max-width: 200px; }
  .tool-link { display: none; }
  .source-link { padding-inline: 8px; }
  .tab { padding-inline: 9px; font-size: 10px; }
  main { padding: 8px; }
  .hero-panel { min-height: 0; padding: 23px 18px; }
  .dataset-summary { grid-template-columns: 1fr 1fr; }
  .timeline-heading { align-items: flex-start; flex-direction: column; }
  .timeline-legend { justify-content: flex-start; }
  .playback-control { grid-template-columns: 38px 71px minmax(110px, 1fr); }
  .control-groups { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .control-groups .segmented { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .zoom-control { grid-template-columns: auto 1fr; }
  .zoom-control input { width: 100%; }
  .lane-label { padding-inline: 8px; }
  .lane-label strong { font-size: 9px; }
  .event-label { display: none; }
  .timeline-event.is-healer, .timeline-event.is-item, .timeline-event.is-defense, .timeline-event.is-resource, .timeline-event.is-offense { min-width: 9px; width: 9px; padding: 0; border-radius: 50%; }
  .timeline-hint span:last-child { display: none; }
  .round-grid { grid-template-columns: 1fr; }
  .sequence-heading { align-items: flex-start; flex-direction: column; }
  .sequence-table { min-width: 820px; }
  .source-footer { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
