/* Progress screen: filter row, hero figure, chart cards, tooltip, table view. */

.filterrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.filterrow a {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  background: #f0f1f4;
  color: var(--muted);
  text-decoration: none;
}
.filterrow a.on { background: var(--ink); color: #fff; }
.filterrow a.right { margin-left: auto; background: #fff; border: 1px solid var(--line); }
.filterrow a.right.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.hero { margin-bottom: 18px; }
.hero .lbl { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.hero .fig { font-size: 52px; line-height: 1; font-weight: 650; letter-spacing: -.02em; }
.hero .delta { font-size: 13px; font-weight: 600; margin-top: 5px; }
.hero .delta.up { color: var(--good); }
.hero .delta.down { color: var(--danger); }
.hero .delta.flat { color: var(--muted); }
.hero .delta em { color: var(--muted); font-style: normal; font-weight: 400; }

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 8px;
  margin-bottom: 12px;
}
.card .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.card h3 { font-size: 13px; margin: 0; font-weight: 700; }
.card .unit { font-size: 11px; color: var(--muted); white-space: nowrap; }
.card .picker { font-size: 12px; color: var(--accent); font-weight: 600; }

.legend { display: flex; gap: 12px; margin: 6px 0 2px; }
.legend span { font-size: 11px; color: var(--muted); font-weight: 600; }
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: 1px;
}

.scale { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.scale u { display: inline-block; width: 11px; height: 11px; border-radius: 2px; text-decoration: none; }

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:focus { outline: none; }

.tip {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity .1s;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  line-height: 1.45;
  padding: 6px 8px;
  border-radius: 7px;
  white-space: nowrap;
  z-index: 9;
  transform: translate(-50%, -100%);
}
.tip b { font-weight: 600; }
.tip i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 5px;
  font-style: normal;
}

.card .thin { font-size: 12px; color: var(--muted); padding: 14px 2px; text-align: center; }

/* --- table view: the twin that needs no color to read --- */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
table.data th {
  text-align: right;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
}
table.data th:first-child { text-align: left; }
table.data td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: right; }
table.data td:first-child { text-align: left; color: var(--muted); }
table.data tr:last-child td { border-bottom: 0; }
