/* Page coordinates (CSS px): no container, pure black. Content 32..508; the main track is 60 bars of 4px on an 8px pitch (476px). */
.mt {
  --lemon: #f2ea3a;
  --white: #ffffff;
  --grey: #8d8d8d;
  --off: #2b2b2b;
  width: 540px;
  height: 540px;
  box-sizing: border-box;
  padding: 31px 32px 0;
  background: #000000;
  color: var(--white);
  font-family: "Chakra Petch", sans-serif;
}

.mt * { box-sizing: border-box; }

.mt-main { display: block; }

.mt-top {
  display: flex;
  justify-content: space-between;
}

.mt-label {
  color: var(--grey);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mt-top .mt-label:last-child,
.mt-free .mt-label { margin-right: -0.09em; }

.mt-read {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 102px;
  padding-bottom: 10px;
}

.mt-value {
  display: flex;
  align-items: baseline;
  margin-left: -5px;
  font-size: 88px;
  font-weight: 500;
  line-height: 70px;
  letter-spacing: -0.02em;
}

.mt-value small {
  margin-left: 10px;
  color: var(--grey);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
}

.mt-figs span { display: inline-block; }
.mt-figs span[data-digit] { width: 0.6em; text-align: center; }
/* a leading 1 sits in the middle of its cell: pull it back to the margin */
.mt-value .mt-figs span[data-digit="1"]:first-child { margin-left: -0.105em; }

.mt-free {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin: 0 0 7px;
}

.mt-free b {
  font-size: 28px;
  font-weight: 500;
  line-height: 30px;
}

.mt-track {
  height: 56px;
  background: repeating-linear-gradient(90deg, var(--off) 0 4px, transparent 4px 8px);
}

.mt-fill {
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--lemon) 0 4px, transparent 4px 8px);
}

.mt-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--grey);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.06em;
}

.mt-rows {
  margin-top: 14px;
  border-top: 1px solid var(--off);
}

.mt-row {
  display: flex;
  align-items: center;
  height: 40px;
  border-bottom: 1px solid var(--off);
}

.mt-name {
  width: 150px;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.mt-line {
  flex: 1;
  height: 4px;
  background: var(--off);
}

.mt-line-fill {
  height: 100%;
  background: var(--white);
}

.mt-size {
  width: 96px;
  color: var(--grey);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: right;
  white-space: nowrap;
}

.mt-size .mt-figs { color: var(--white); font-size: 18px; }

.mt-clear {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 46px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: none;
  color: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: scale 90ms ease-out;
}

.mt-clear:focus-visible { outline: 2px solid var(--lemon); outline-offset: 3px; }

/* press inverts */
.mt-clear:active:not(:disabled) {
  background: var(--white);
  color: #000000;
  scale: 0.98;
}

.mt-clear:disabled {
  border-color: var(--off);
  color: var(--grey);
  cursor: default;
}
