:root {
  --bg: #12110e;
  --bg-deep: #0c0b09;
  --bg-hot: #231e14;
  --bg-soon: #1a1814;
  --bg-selected: #1c1914;
  --bg-hover: #1a1815;
  --ink: #1a1408;
  --text: #f3efe4;
  --muted: #a39c90;
  --faint: #857f76;
  --line: rgba(243, 239, 228, 0.08);
  --brass: #e0b85a;
  --brass-2: #f0d48a;
  --warm: #e7a090;
  --bad: #e06a62;
  --go: #6fbf86;
  --mono: Consolas, "Cascadia Mono", "Microsoft YaHei", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  height: 100%;
  display: flex;
  background: var(--bg-deep);
  color: var(--text);
  font: 14px/1.45 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

button:focus-visible,
input:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 2px;
}

::selection { background: var(--brass); color: var(--ink); }

[hidden] { display: none !important; }

.app {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.top {
  flex: none;
  min-height: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand { font-size: 15px; font-weight: 650; white-space: nowrap; }
.brand b {
  color: var(--brass);
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-right: 10px;
}
.brand span { color: var(--muted); font-weight: 500; }

.nav { display: flex; gap: 4px; }
.nav button,
.filters button {
  color: var(--muted);
  padding: 6px 10px;
}
.nav button[aria-pressed="true"],
.filters button[aria-pressed="true"] {
  color: var(--text);
  box-shadow: inset 0 -1px 0 var(--brass);
}
.nav em:not(:empty) {
  display: inline-block;
  min-width: 1.25em;
  margin-left: 6px;
  padding: 0 4px;
  color: var(--ink);
  background: var(--brass);
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  vertical-align: 1px;
}

.tools { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.tool-links { display: flex; align-items: center; }
.tools button { color: var(--muted); padding: 6px 8px; }
.tools button:hover,
.nav button:hover,
.filters button:hover,
.boss-pick:hover { color: var(--text); }
.tools button[aria-pressed="true"] { color: var(--brass); }

.clock-block { display: flex; align-items: baseline; gap: 8px; }
.tz { color: var(--faint); font-size: 12px; }
.clock {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.body { flex: 1; min-height: 0; display: flex; }

.sidebar {
  width: 232px;
  flex: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  border-right: 1px solid var(--line);
}

.side-head { padding: 16px 16px 8px; }
.side-label {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.08em;
}

#boss-search,
.dialog input {
  width: 100%;
  margin-top: 8px;
  padding: 8px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}
#boss-search:focus,
.dialog input:focus { border-bottom-color: var(--brass); outline: none; }

.boss-list { flex: 1; overflow: auto; min-height: 0; padding: 4px 0 8px; }

.boss-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  gap: 1px;
  padding: 9px 16px;
}
.pick-name { line-height: 1.35; }
.pick-meta { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.boss-pick.is-active {
  background: var(--bg-selected);
  box-shadow: inset 2px 0 0 var(--brass);
  color: var(--text);
}
.boss-pick.is-active .pick-meta { color: var(--muted); }
.boss-pick.is-active:hover { background: #221e16; }
.search-empty { margin: 12px 16px; color: var(--muted); }

.side-clear {
  margin: 0 16px 10px;
  padding: 4px 0;
  text-align: left;
  color: var(--faint);
  font-size: 12px;
}
.side-clear:hover { color: var(--warm); }

#selftest-result {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.help {
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
}
.help summary { cursor: pointer; color: var(--faint); }
.help summary:hover { color: var(--text); }
.help p { margin: 8px 0 0; }

.workspace {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.stage.is-enter { animation: rise 180ms ease-out; }

.boss-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 0;
}
.boss-head h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.boss-head h1 small {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.place { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.interval {
  color: var(--muted);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  padding-bottom: 4px;
  white-space: nowrap;
}

.forecast { padding: 14px 28px 8px; }
.lead {
  margin: 0;
  max-width: 46em;
  font-size: 16px;
  line-height: 1.55;
}
.do-note { margin: 8px 0 0; color: var(--muted); }
.alt { margin: 8px 0 0; max-width: 46em; color: var(--brass-2); line-height: 1.5; }
.ask { flex: none; max-height: 46%; overflow: auto; padding: 18px 28px 0; }
.ask-hero h2 { margin: 0; font-size: 36px; font-weight: 650; letter-spacing: -0.03em; }
.ask-hero p { margin: 6px 0 0; color: var(--muted); }
.ask-hero.is-open h2,
.ask-hero.is-hot h2 { color: var(--go); }
.ask-hero.is-wait h2 { color: #f0b4ae; }
.ask-hero.is-soon h2 { color: var(--brass); }
.ask-hero.is-warn h2 { color: var(--warm); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask-chips button { border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; }
.ask-chips button:hover { color: var(--text); }
.ask-form { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.ask-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding: 8px 0;
}
.ask-answer { margin: 12px 0 0; max-width: 46em; line-height: 1.5; }
.alarm {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 8vw;
  background: #0c0b09;
}
.alarm h2 {
  margin: 0;
  font-size: 64px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--go);
}
.alarm-ch { margin: 10px 0 0; font-size: 28px; }
.alarm-count {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--brass);
}
.alarm .lead { margin-top: 8px; }
.alarm-more { margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); }
.alarm-more li { padding: 4px 0; }
.loot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.loot-ask { color: var(--muted); font-size: 13px; margin-right: 4px; }
.loot button {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 12px;
}
.loot button[aria-pressed="true"] {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--ink);
  font-weight: 700;
}
.loot button[data-kind="none"][aria-pressed="true"] {
  background: transparent;
  color: var(--text);
  border-color: var(--muted);
}
.loot-log { margin: 4px 28px 0; }
.loot-log summary {
  color: var(--muted);
  cursor: pointer;
  padding: 8px 0;
}
.loot-log summary::-webkit-details-marker { color: var(--faint); }
.loot-log[open] summary { color: var(--text); }
.loot-log ul { list-style: none; margin: 0 0 8px; padding: 0; }
.loot-log li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.loot-log li span { color: var(--muted); min-width: 9em; }
.loot-log li b { font-weight: 650; }
.loot-log .linkish { margin-left: auto; padding: 0; }
.loot-empty { color: var(--faint); }
.line-stage { overflow: auto; }
.kill-block { padding: 8px 28px 18px; }
.kill-block h2 { margin: 12px 0 0; font-size: 18px; font-weight: 650; }
.kill-block .queue-note { padding: 6px 0 0; }
.kill-log {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--line);
}
.kill-log li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 0 0 16px 16px;
}
.kill-log li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--faint);
}
.kill-log time {
  min-width: 7.5em;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.kill-log strong { display: block; font-weight: 650; }
.kill-log span,
.kill-log em { color: var(--muted); font-style: normal; }
.kill-log em { margin-left: 8px; }
.kill-log .linkish { margin-left: 0; padding: 0; }
.kill-log li.is-open::before,
.kill-log li.is-hot::before { background: var(--go); }
.kill-log li.is-open time,
.kill-log li.is-open em,
.kill-log li.is-hot time,
.kill-log li.is-hot em { color: var(--go); }
.kill-log li.is-wait::before { background: var(--bad); }
.kill-log li.is-wait em { color: #f0b4ae; }
.kill-log.is-hop li::before { background: var(--brass); }
.do { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.do .solid,
.do .line { min-width: 112px; min-height: 42px; }
.line {
  border: 1px solid var(--brass);
  color: var(--text);
  padding: 8px 16px;
  font-weight: 700;
}
.line:hover { background: var(--brass); color: var(--ink); }
.more { position: relative; }
.more summary {
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  padding: 6px 8px;
}
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { color: var(--text); }
.more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  min-width: 128px;
  background: #17150f;
  border-top: 2px solid var(--brass);
  padding: 4px 0;
}
.more-panel button { text-align: left; padding: 8px 14px; color: var(--text); }
.more-panel button:hover { color: var(--brass); }
.ai-line {
  margin: 8px 0 0;
  max-width: 46em;
  color: var(--brass);
}
.route-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 28px 0;
  color: var(--muted);
}
.route-bar input {
  width: 3em;
  margin: 0 4px;
  padding: 2px 0;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--brass);
  text-align: center;
  font-family: var(--mono);
}
.route-list { list-style: none; margin: 8px 0 32px; padding: 0 28px; }
.route-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.route-list li.is-open strong { color: var(--go); }
.route-list li.is-hot strong { color: var(--go); }
.route-list li.is-wait strong { color: #f0b4ae; }
.route-list li.is-soon strong { color: var(--brass); }
.route-list li.is-warn strong { color: var(--warm); }
.route-bar + .legend,
.queue-note + .legend { margin: 0 28px 12px; }
.route-list b {
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  line-height: 1.3;
}
.route-main strong { display: block; font-size: 16px; }
.route-main span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.route-main small { display: block; margin-top: 3px; color: var(--muted); }
.route-list button { color: var(--brass); padding: 4px 0; }
.route-list button:hover { color: var(--brass-2); }
.solid:disabled { opacity: 0.55; cursor: default; }
.reset {
  margin-top: 8px;
  color: var(--brass);
  padding: 4px 0;
}

.tl { margin-top: 16px; max-width: 560px; }
.tl-track {
  position: relative;
  height: 2px;
  background: rgba(243, 239, 228, 0.14);
}
.tl-fill { height: 100%; width: 0; background: var(--brass); }
.tl-pin,
.tl-now {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--text);
  transform: translate(-50%, -50%);
}
.tl-pin.is-go { width: 9px; height: 9px; background: var(--brass); }
.tl-now { border-radius: 50%; background: var(--warm); }
.tl-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--faint);
  font-size: 12px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.tl-labels span:nth-child(2) { color: var(--brass); text-align: center; }
.tl-labels span:last-child { text-align: right; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 28px 0;
}
.filters { display: flex; gap: 2px; }
.legend {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot {
  width: 8px;
  height: 8px;
  background: var(--faint);
}
.dot.is-wait { background: var(--bad); }
.dot.is-soon { background: var(--brass); }
.dot.is-open { background: transparent; box-shadow: inset 0 0 0 2px var(--go); }
.dot.is-hot { background: var(--go); }
.queue-note {
  margin: 0;
  padding: 18px 28px 0;
  color: var(--muted);
  max-width: 46em;
}

.table-scroll { flex: 1; min-height: 0; overflow: auto; margin-top: 8px; }
.grid { width: 100%; min-width: 880px; border-collapse: collapse; }
.grid th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.grid td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(243, 239, 228, 0.045);
  vertical-align: middle;
}
.grid tbody tr:hover { background: var(--bg-hover); }
.grid tbody tr.is-selected { background: var(--bg-selected); }
.grid tbody tr.is-selected:hover { background: #221e16; }
.grid tbody tr.is-wait { box-shadow: inset 3px 0 0 var(--bad); }
.grid tbody tr.is-soon { box-shadow: inset 3px 0 0 var(--brass); }
.grid tbody tr.is-open { box-shadow: inset 3px 0 0 var(--go); }
.grid tbody tr.is-hot { background: #142018; box-shadow: inset 3px 0 0 var(--go); }
.grid tbody tr.is-hot:hover { background: #1a2a20; }
.grid tbody tr.is-warn { box-shadow: inset 3px 0 0 var(--warm); }
.row.is-wait .prob-num,
.row.is-wait .advice strong,
.row.is-wait .meter span { color: var(--bad); }
.row.is-wait .meter span { background: var(--bad); }
.row.is-soon .prob-num,
.row.is-soon .advice strong { color: var(--brass); }
.row.is-open .win,
.row.is-hot .win { color: var(--go); font-weight: 700; }
.row.is-hot .prob-num,
.row.is-hot .advice strong,
.row.is-hot .countdown { color: var(--go); }
.row.is-hot .meter span { background: var(--go); }
.row.is-warn .prob-num,
.row.is-warn .advice strong { color: var(--warm); }
.forecast.is-wait { box-shadow: inset 3px 0 0 var(--bad); }
.forecast.is-soon { box-shadow: inset 3px 0 0 var(--brass); }
.forecast.is-open { box-shadow: inset 3px 0 0 var(--go); }
.forecast.is-hot { box-shadow: inset 3px 0 0 var(--go); }
.forecast.is-warn { box-shadow: inset 3px 0 0 var(--warm); }
.forecast.is-hot .lead { color: #d7f0df; }
.forecast.is-wait .lead { color: #f3d2ce; }
.now-strip {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 14px 28px 0;
  padding: 4px 0 4px 12px;
  text-align: left;
  box-shadow: inset 3px 0 0 var(--faint);
}
.now-strip strong { font-size: 20px; font-weight: 650; }
.now-strip span:last-child {
  color: var(--muted);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.now-strip.is-open { box-shadow: inset 3px 0 0 var(--go); }
.now-strip.is-open strong { color: var(--go); }
.now-strip.is-hot { box-shadow: inset 3px 0 0 var(--go); }
.now-strip.is-hot strong { color: var(--go); }
.now-strip.is-wait { box-shadow: inset 3px 0 0 var(--bad); }
.now-strip.is-wait strong { color: #f0b4ae; }
.now-strip.is-soon { box-shadow: inset 3px 0 0 var(--brass); }
.now-strip.is-soon strong { color: var(--brass); }
.now-strip.is-warn { box-shadow: inset 3px 0 0 var(--warm); }
.guide-hero { padding: 8px 28px 4px; }
.guide-kicker {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}
.guide-hero h2 {
  margin: 4px 0 0;
  font-size: 52px;
  font-weight: 650;
  line-height: 1.1;
}
.guide-hero.is-open h2 { color: var(--go); }
.guide-hero.is-hot h2 { color: var(--go); }
.guide-hero.is-wait h2 { color: #f0b4ae; }
.guide-hero.is-soon h2 { color: var(--brass); }
.guide-hero.is-warn h2 { color: var(--warm); }
.guide-count {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.guide-count b {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.guide-hero .lead { margin-top: 10px; }
.guide-hero .solid { margin-top: 16px; }
.grid tr.group td {
  padding: 22px 16px 6px;
  color: var(--brass);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-bottom: 0;
  background: var(--bg);
}
.col-late,
.countdown { text-align: right; }

.ch { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.record, .win, .countdown, .advice strong {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.row.is-empty { color: var(--faint); }
.row.is-empty .record,
.row.is-empty .win,
.row.is-empty .prob-num,
.row.is-empty .advice strong { color: var(--faint); font-weight: 500; }
.row.is-empty .ops .ghost { color: var(--faint); }

.prob-num { display: inline-block; min-width: 3em; }
.meter {
  height: 2px;
  width: 64px;
  margin-top: 7px;
  background: rgba(243, 239, 228, 0.1);
}
.meter span { display: block; height: 100%; width: 0; background: var(--brass); }

.advice strong { display: block; color: var(--brass); font-weight: 650; }
.advice small { color: var(--muted); font-size: 12px; }
.countdown { color: var(--warm); font-size: 15px; white-space: nowrap; }
.countdown.is-idle { color: var(--faint); }
.countdown.is-close { font-weight: 700; }

.ops { white-space: nowrap; text-align: right; }
.ops button { padding: 6px 8px; }
.ops .kill,
.ops .miss {
  display: inline-block;
  margin-left: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(224, 184, 90, 0.55);
}
.ops .kill { background: var(--brass); color: var(--ink); font-weight: 700; }
.ops .miss { color: var(--text); }
.ops .kill:hover { background: var(--brass-2); color: var(--ink); }
.ops .ghost { color: var(--muted); }
.ops .danger,
.ops .ghost.danger { color: var(--warm); }
.ops button:hover { color: var(--brass-2); }

.empty-line { margin: 0; padding: 36px 28px; color: var(--muted); max-width: 36em; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
  padding: 24px;
}
.dialog {
  width: min(420px, 100%);
  max-height: calc(100% - 48px);
  overflow: auto;
  background: #17150f;
  border-top: 2px solid var(--brass);
  padding: 22px 24px 18px;
  animation: rise 160ms ease-out;
}
.dialog h2 { margin: 0 0 4px; font-size: 20px; font-weight: 650; }
.share-dialog { width: min(460px, 100%); }
.share-dialog p { margin: 8px 0 0; line-height: 1.55; }
.share-dialog textarea {
  width: 100%;
  margin-top: 12px;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  resize: vertical;
  font-family: var(--mono);
  font-size: 13px;
}
.dialog label {
  display: block;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.dialog input { color-scheme: dark; }
.miss-row { display: flex; gap: 12px; align-items: flex-end; }
.miss-row label { flex: 1; }
.linkish { color: var(--muted); padding: 8px 0; }
.linkish:hover,
.danger-text:hover { color: var(--text); }
.danger-text { color: var(--warm); }
.dialog-links { display: flex; gap: 16px; margin-top: 8px; }
.dialog-links button { padding: 4px 0; }
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 22px;
}
.solid {
  background: var(--brass);
  color: var(--ink);
  padding: 8px 16px;
  font-weight: 700;
}
.solid:hover { background: var(--brass-2); color: var(--ink); }

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 40;
  transform: translateX(-50%);
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 16px;
  background: #2a2418;
  color: var(--text);
  border-top: 2px solid var(--brass);
  pointer-events: none;
  line-height: 1.5;
}
#toast:empty { display: none; }
#toast.show { animation: toast-in 160ms ease-out; }

.row.is-flash { animation: flash 700ms ease-out; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to { opacity: 1; transform: translateX(-50%); }
}
@keyframes flash {
  from { background: rgba(224, 184, 90, 0.28); }
  to { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .stage.is-enter,
  .dialog,
  #toast.show,
  .row.is-flash { animation: none; }
}

@media (max-width: 1100px) {
  .col-window { display: none; }
  .grid { min-width: 720px; }
  .boss-head,
  .forecast,
  .toolbar,
  .queue-note,
  .route-bar,
  .empty-line { padding-left: 18px; padding-right: 18px; }
  .route-list { padding-left: 18px; padding-right: 18px; }
  .queue-note + .legend,
  .route-bar + .legend { margin-left: 18px; margin-right: 18px; }
  .grid th,
  .grid td { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 860px) {
  .body { flex-direction: column; }
  .sidebar {
    width: auto;
    max-height: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side-head { grid-column: 1; padding-bottom: 0; }
  .side-clear {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0 14px 8px;
  }
  .boss-list {
    grid-column: 1 / -1;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
  }
  .boss-pick {
    width: auto;
    min-width: 112px;
    flex: none;
  }
  .help { display: none; }
  .side-clear { margin-bottom: 8px; }
  .top { height: auto; flex-wrap: wrap; padding: 12px 14px; gap: 8px 14px; }
  .tools { margin-left: 0; width: 100%; justify-content: space-between; }
  .boss-head h1 { font-size: 26px; }
  .lead { font-size: 15px; }
}

.boss-list::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.boss-list::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb { background: #3a3428; }
