.when {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  color: var(--ink-muted);
}

.ans {
  min-height: 172px;
}

.word {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
}

.word .glyph {
  width: 16px;
  height: 16px;
}

.word .glyph.closed {
  box-shadow: inset 0 0 0 3px var(--closed);
}

.word .glyph.unknown {
  border-width: 3px;
}

.basis {
  margin-top: var(--space-2);
  color: var(--ink-muted);
}

.basis b {
  color: var(--ink);
  font-weight: 600;
}

.why {
  min-height: 1lh;
  margin-top: var(--space-3);
}

.ans details {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

.ans ul,
.ans li+li {
  margin-top: var(--space-1);
}

figure {
  margin: 0;
}

figcaption .q {
  display: block;
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
}

figcaption .n {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 19px;
}

.trs {
  position: relative;
  --lw: 88px;
}

.tr {
  display: grid;
  grid-template-columns: var(--lw) 1fr;
  column-gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-2);
}

.rl {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--ink-muted);
}

.strip {
  display: grid;
  grid-template-columns: repeat(96, 1fr);
  height: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.strip.thin {
  height: 12px;
}

.track {
  position: relative;
  height: 28px;
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.track .seg {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--open);
}

.nd {
  background: repeating-linear-gradient(135deg, var(--surface-sunken) 0 4px, var(--line-strong) 4px 5px);
}

.track .nd {
  position: absolute;
  top: 0;
  bottom: 0;
}

.lanes {
  position: relative;
}

.evl {
  position: absolute;
  height: 26px;
  font-size: 12px;
  line-height: 26px;
  white-space: nowrap;
  color: var(--ink);
  pointer-events: none;
}

.ev {
  position: absolute;
  height: 26px;
  background: var(--action-soft);
  border: 1.5px solid var(--action);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 16px;
  padding: 3px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.axisrow {
  position: relative;
  height: 20px;
  border-top: 1px solid var(--line-strong);
  margin-top: var(--space-1);
}

.axisrow span {
  white-space: nowrap;
  position: absolute;
  top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-faint);
  transform: translateX(-50%);
}

.axisrow span:first-child {
  transform: none;
}

.axisrow span:last-child {
  transform: translateX(-100%);
}

.ov {
  position: absolute;
  top: -4px;
  bottom: 28px;
  left: calc(var(--lw) + var(--space-3));
  right: 0;
  cursor: crosshair;
  touch-action: pan-y;
}

.mk {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  pointer-events: none;
}

.mk.arrive {
  border-left: 2px solid var(--ink);
}

.mk.now {
  border-left: 2px dashed var(--ink-muted);
}

.mk.hover {
  border-left: 1px solid var(--line-strong);
  display: none;
}

.chartbox {
  position: relative;
}

.readout:empty {
  display: none;
}

.readout {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  z-index: 3;
  margin: 0;
  padding: 2px var(--space-2);
  background: var(--surface);
  border-radius: var(--radius-md);
  pointer-events: none;
  font-size: 13px;
  line-height: 19px;
  color: var(--ink-muted);
}

.readout b {
  color: var(--ink);
  font-weight: 600;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 18px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
  flex: none;
  font-style: normal;
  text-align: center;
  line-height: 14px;
}

.legend .ev-s {
  background: var(--action-soft);
  border: 1.5px solid var(--action);
}

.legend .act {
  background: var(--open);
}

.legend .lm {
  width: 0;
  height: 14px;
  border-radius: 0;
}

.legend .lm.a {
  border-left: 2px solid var(--ink);
}

.legend .lm.n {
  border-left: 2px dashed var(--ink-muted);
}

.legend .ln {
  width: 18px;
  height: 0;
  border-top: 2px dashed var(--ink-muted);
  background: none;
}

.legend .ln.f {
  border-top: 2.5px solid var(--action);
}

.legend .bd {
  background: var(--action);
  opacity: .18;
}

.legend .lbl {
  color: var(--ink-faint);
}

.tip {
  position: absolute;
  pointer-events: none;
  display: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-tip);
  padding: var(--space-2) var(--space-3);
  font-size: 13px;
  line-height: 19px;
  white-space: nowrap;
  z-index: 3;
}

.tip b {
  font-weight: 600;
}

.tip .h {
  display: block;
  color: var(--ink-muted);
}

.chartbox {
  position: relative;
}

.pg {
  position: relative;
}

.pg svg {
  display: block;
}

.pg svg text {
  font: 400 12px var(--font-sans);
}

@media (max-width: 520px) {
  .trs {
    --lw: 72px;
  }

  nav {
    gap: 0 var(--space-3);
  }

  nav a {
    font-size: 13.5px;
  }
}


.herobox {
  margin-top: var(--space-5);
}

.wholine {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 14px;
  line-height: 20px;
}

.wholine>a,
.wholine>span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  color: var(--ink);
  text-decoration: none;
}

.wholine>:first-child {
  flex: 1 1 200px;
}

.wholine .ic {
  color: var(--open);
}

.wholine>span.muted .ic {
  color: var(--ink-faint);
}

.wholine>a:hover {
  background: var(--surface-sunken);
}

.wholine .whoadd {
  flex: none;
  border-left: 1px solid var(--line);
  color: var(--action);
  font-weight: 600;
}

.wholine .whoadd .ic {
  color: var(--action);
  width: 18px;
  height: 18px;
}

.vis {
  position: absolute;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--action-soft);
  border: 1.5px solid var(--action);
  font-size: 11px;
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.vis.here {
  background: color-mix(in srgb, var(--open) 18%, var(--surface));
  border-color: var(--open);
}

.vis.anon {
  background: repeating-linear-gradient(135deg, var(--surface-sunken) 0 4px, var(--surface) 4px 7px);
  border: 1.5px dashed var(--line-strong);
}

.vis.mine {
  font-weight: 700;
}

.legend .vis-s {
  width: 16px;
  height: 10px;
  border-radius: 5px;
  background: var(--action-soft);
  border: 1.5px solid var(--action);
}

.wk {
  display: grid;
  grid-template-columns: 76px 1fr 100px;
  column-gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
}

.wk:first-child {
  border-top: 0;
}

a.wk:hover {
  background: var(--surface-sunken);
}

.wk-head {
  padding-top: var(--space-2);
  padding-bottom: 0;
}

.wk-head + .wk {
  border-top: 0;
}

.wk-d b {
  font-weight: 600;
  margin-right: 2px;
}

.wk-s {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 1px;
  height: 16px;
}

.wk-s i {
  border-radius: 2px;
}

.wk-ax {
  position: relative;
  height: 16px;
  font-size: 11px;
  line-height: 16px;
  color: var(--ink-faint);
}

.wk-ax span {
  position: absolute;
  transform: translateX(-50%);
}

.wk-ax span:nth-child(1) {
  left: 0;
  transform: none;
}

.wk-ax span:nth-child(2) {
  left: 25%;
}

.wk-ax span:nth-child(3) {
  left: 50%;
}

.wk-ax span:nth-child(4) {
  left: 75%;
}

.wk-ax span:nth-child(5) {
  right: 0;
  transform: none;
}


.wk-t {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.wk-e {
  grid-column: 2 / -1;
  margin-top: 2px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .wholine .whoadd {
    flex-basis: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trs {
    --lw: 0px;
  }

  .tr {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .rl {
    font-size: 12px;
    line-height: 16px;
  }

  .tr .rl.faint {
    display: none;
  }

  .ov {
    left: 0;
  }

  .chartbox.panel {
    padding: var(--space-3);
  }

  .wk {
    grid-template-columns: 62px 1fr 76px;
    column-gap: var(--space-2);
    padding: var(--space-3);
  }
}
