/* die Trennlinien sind die Lücken im Raster, damit sie bei jeder Spaltenzahl stimmen */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat {
  padding: var(--space-4);
  background: var(--surface);
}

.stat .n {
  font-size: 32px;
  line-height: 36px;
  font-weight: 600;
}

.stat .n small {
  font-size: 15px;
  line-height: 23px;
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: var(--space-1);
}

.stat .l {
  margin-top: var(--space-1);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
}

.stat .b {
  margin-top: 2px;
  font-size: 13px;
  line-height: 19px;
  color: var(--ink-muted);
}

.stats.solo {
  grid-template-columns: 1fr;
  border: 0;
  background: none;
}

.stats.solo .stat {
  padding: 0;
  border: 0;
}

@media (max-width: 520px) {
  .stats:not(.solo) {
    grid-template-columns: 1fr 1fr;
  }

  .stats:not(.solo) .stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

  .stat .n {
    font-size: 26px;
    line-height: 30px;
  }
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-top: 1px solid var(--line);
  vertical-align: baseline;
}

th {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--ink-muted);
  border-top: 0;
  padding-top: 0;
}

td.r,
th.r {
  text-align: right;
  padding-right: 0;
  padding-left: var(--space-3);
}

.kv tr:first-child td {
  border-top: 0;
  padding-top: 0;
}

td small {
  display: block;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 16px;
}

.mb {
  display: inline-block;
  width: 64px;
  height: 8px;
  background: var(--surface-sunken);
  border-radius: 2px;
  vertical-align: middle;
  margin-right: var(--space-2);
  position: relative;
  overflow: hidden;
}

.mb i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--open);
}

.hm {
  max-width: 520px;
}

.hm table {
  border-collapse: separate;
  border-spacing: 2px;
  margin-top: var(--space-4);
  table-layout: fixed;
}

.hm th,
.hm td {
  padding: 0;
  border: 0;
  text-align: center;
}

.hm thead th {
  padding-bottom: var(--space-1);
}

.hm th.h {
  text-align: right;
  padding-right: var(--space-2);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-faint);
  width: 52px;
}

.hm tbody td {
  height: 22px;
  font-size: 12px;
  line-height: 22px;
  border-radius: var(--radius-sm);
}

.hm tfoot td {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-faint);
  padding-top: var(--space-1);
}

.hm tfoot th {
  text-align: right;
  padding-right: var(--space-2);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-faint);
}

td.nd {
  color: var(--ink-faint);
}

.list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.erow {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line);
}

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

.erow .when2 {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 23px;
}

.erow .when2 b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  line-height: 23px;
}

.erow a.when2 {
  text-decoration: none;
}

.erow .name {
  font-weight: 600;
}

.erow .cat {
  margin-left: var(--space-2);
  font-size: 13px;
  color: var(--ink-muted);
}

.erow .res {
  margin-top: 2px;
}

.erow .res.mut {
  color: var(--ink-muted);
}

.erow .nt {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 19px;
}

.estrip {
  position: relative;
  height: 12px;
  margin: var(--space-2) 0 2px;
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
}

.estrip .win {
  position: absolute;
  top: -2px;
  bottom: -2px;
  border: 1.5px solid var(--action);
  background: var(--action-soft);
  border-radius: var(--radius-sm);
}

.estrip .seg {
  position: absolute;
  top: 2px;
  bottom: 2px;
  background: var(--open);
  border-radius: 1px;
}

.cap {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-faint);
}

.more {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-size: 13px;
}

.empty {
  padding: var(--space-4);
  color: var(--ink-muted);
}

.hist {
  display: grid;
  grid-template-columns: 84px 1fr 96px;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
}

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

.hist .tk {
  height: 8px;
  background: var(--surface-sunken);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.hist .tk i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--open);
}

.hist .v {
  color: var(--ink-muted);
  font-size: 13px;
  text-align: right;
}

.wgrid {
  display: grid;
  gap: var(--space-4);
}

.wp h3 {
  margin-bottom: var(--space-3);
}

.wp p {
  margin-top: var(--space-3);
  max-width: 62ch;
}

.wp .list {
  margin-top: var(--space-4);
}

@media (max-width: 560px) {
  .erow {
    grid-template-columns: 1fr;
  }

  .hist {
    grid-template-columns: 72px 1fr 80px;
    padding: var(--space-2) var(--space-3);
  }
}



.hatabs {
  margin-top: var(--space-4);
}

.hagrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.hacols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}

.hacard h3,
.hah3 {
  margin: 0 0 var(--space-3);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.haline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: 5px 0;
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.haline:first-of-type,
.hascroll .haline:first-child {
  border-top: 0;
}

.haline>span:last-child {
  text-align: right;
}

.halbl {
  all: unset;
  cursor: pointer;
  color: inherit;
}

.halbl:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.halbl:focus-visible {
  outline: 2px solid var(--action);
}

.hascroll {
  max-height: 260px;
  overflow-y: auto;
}

.habig {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px var(--space-2);
  margin-bottom: var(--space-3);
  cursor: pointer;
}

.habig b,
.hameter b {
  font-size: 26px;
  line-height: 30px;
  font-variant-numeric: tabular-nums;
}

.hameter {
  margin-bottom: var(--space-2);
  color: var(--ink-muted);
}

.hameter b {
  color: var(--ink);
}

.haspark {
  width: 100%;
  height: 34px;
  overflow: visible;
}

.haspark path {
  fill: none;
  stroke: var(--action);
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.hadot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: var(--space-2);
  border-radius: 50%;
  background: var(--line-strong);
}

.hadot.on {
  background: var(--open);
}

.hachip {
  display: inline-block;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
}

.hachip.ok {
  background: color-mix(in srgb, var(--open) 18%, transparent);
  color: var(--open);
}

.hachip.warn {
  background: color-mix(in srgb, #d97706 20%, transparent);
  color: #b45309;
}

.haact,
.hastack {
  width: 100%;
  display: block;
}

.haact {
  height: 110px;
}

.hastack {
  height: 170px;
}

.haact rect {
  fill: var(--action);
  opacity: .75;
}

.haact rect:hover,
.hastack rect:hover {
  opacity: .7;
}

.hachart svg text,
.haact text,
.hastack text,
.hagantt svg text {
  font-size: 11px;
  fill: var(--ink-muted);
}

.hachart {
  position: relative;
}

.hachart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.hal {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.hag {
  stroke: var(--line);
  vector-effect: non-scaling-stroke;
}

.haref {
  stroke: #dc2626;
  stroke-dasharray: 6 4;
  vector-effect: non-scaling-stroke;
}

.hachart .hay.ref {
  fill: #dc2626;
}

.hacross {
  stroke: var(--ink-muted);
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}

.hatip {
  position: absolute;
  top: 0;
  z-index: 2;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 19px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  pointer-events: none;
  white-space: nowrap;
}

.hatip i,
.halegend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
}

.halegend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--space-4);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--ink-muted);
}

.haheat {
  border-collapse: separate;
  border-spacing: 2px;
  font-size: 11px;
}

.haheat th {
  font-weight: 500;
  color: var(--ink-muted);
  text-align: right;
  padding-right: 6px;
  white-space: nowrap;
}

.haheat thead th {
  text-align: center;
  padding: 0;
}

.haheat td {
  width: 26px;
  height: 20px;
  border-radius: 3px;
  background: var(--bg);
}

.hagantt {
  display: grid;
  gap: 4px;
}

.hagr {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr 44px;
  gap: var(--space-3);
  align-items: center;
  font-size: 13px;
}

.hagr .halbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hagr.axis svg {
  width: 100%;
  height: 14px;
}

.hatrack {
  position: relative;
  height: 16px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.hatrack i {
  position: absolute;
  top: 0;
  bottom: 0;
}

.hatrack i.na {
  background: repeating-linear-gradient(45deg, var(--line) 0 3px, transparent 3px 6px);
}

.hatrack.dots b {
  position: absolute;
  top: 3px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #dc2626;
  opacity: .55;
}

.hapct {
  text-align: right;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.habars {
  display: grid;
  gap: 6px;
}

.habar {
  display: grid;
  grid-template-columns: minmax(120px, 260px) 1fr 80px;
  gap: var(--space-3);
  align-items: center;
  font-size: 13px;
}

.habar .halbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.habar .hatrack {
  height: 12px;
  background: transparent;
}

.habar .hatrack i {
  border-radius: 3px;
}

.habar>span {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

.hafilter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  margin-bottom: var(--space-3);
}

.hafilter input {
  flex: 1 1 200px;
  max-width: 280px;
  font-size: 15px;
  padding: 6px var(--space-2);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}

.hachips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hacat {
  --c: var(--ink-muted);
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  color: color-mix(in oklab, var(--c) 55%, var(--ink));
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid transparent;
  white-space: nowrap;
}

button.hacat {
  cursor: pointer;
  font-family: inherit;
}

button.hacat.sel {
  border-color: var(--c);
}

.halog td {
  vertical-align: top;
  font-size: 14px;
}

.halog td.t {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink-muted);
}

.halog td.v {
  font-variant-numeric: tabular-nums;
}

.halog .en {
  display: block;
}

.halog tr.new {
  animation: hanew 2.5s ease-out;
}

@keyframes hanew {
  from { background: color-mix(in srgb, var(--action) 18%, transparent); }
}

.hamodal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px;
  background: rgba(0, 0, 0, .45);
  overflow-y: auto;
}

.hamodal[hidden] {
  display: none;
}

.hasheet {
  width: min(1000px, 100%);
}

.hasheethead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.hasheethead h2 {
  margin: 6px 0 2px;
  font-size: 22px;
}

.hasheethead code {
  font-size: 12px;
  color: var(--ink-muted);
}

.hafacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-bottom: var(--space-4);
}

.hafacts span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.hafacts b {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.hachartwrap {
  margin-bottom: var(--space-4);
}

.hasheetlog {
  max-height: 320px;
  overflow-y: auto;
}

@media (max-width: 560px) {
  .hagr,
  .habar {
    grid-template-columns: 96px 1fr 44px;
  }
}
