*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #fff;
  color: #333;
  min-height: 100vh;
  padding: 28px 36px 0 36px; }

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5em; }

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #E87722;
  display: flex;
  align-items: center;
  padding-top: 1.5em; }
  .logo img {
    display: inline-block;
    margin-right: 1em; }
  .logo span {
    color: #333;
    font-weight: 400;
    font-size: 14px;
    margin-left: 10px;
    letter-spacing: .02em; }

.title-block {
  text-align: center;
  flex: 1; }
  .title-block h1 {
    font-size: 20px;
    font-weight: 500;
    color: #333; }
  .title-block p {
    font-size: 13px;
    color: #888780;
    margin-top: 2px; }

.mrow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0.5em; }

.met {
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 10px 16px; }

.ml {
  font-size: 11px;
  color: #888780;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px; }

.mv {
  font-size: 24px;
  font-weight: 500;
  line-height: 1; }

.ms {
  font-size: 11px;
  color: #888780;
  margin-top: 3px; }

.controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px; }

.ctrl-group {
  display: flex;
  align-items: center;
  gap: 10px; }
  .ctrl-group label {
    font-size: 13px;
    color: #666;
    white-space: nowrap; }
  .ctrl-group span {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    min-width: 42px; }

input[type=range] {
  -webkit-appearance: none;
  width: 140px;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer; }

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E87722;
  cursor: pointer; }

button {
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  color: #aaa;
  transition: background .15s, border-color .15s; }
  button:hover {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.35); }
  button:active {
    transform: scale(0.98); }
  button:disabled {
    opacity: 0.45;
    cursor: not-allowed; }

#btn-go {
  background: #E87722;
  border-color: #E87722;
  color: #fff; }
  #btn-go:hover {
    background: #d46a18;
    border-color: #d46a18; }

#status {
  font-size: 12px;
  color: #888780; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #888780;
  align-items: center;
  margin-bottom: 10px; }

.ld {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle; }

.ll {
  display: inline-block;
  width: 22px;
  height: 2px;
  vertical-align: middle;
  margin-right: 4px; }

.chart-wrap {
  position: relative;
  width: 100%;
  height: calc(100vh - 310px);
  min-height: 380px; }

#tip {
  position: absolute;
  background: #1c1f28;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  max-width: 210px;
  transition: opacity .1s; }

.tn {
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 4px;
  color: #e8e6df; }

.tr {
  color: #888780;
  line-height: 1.7; }
  .tr b {
    color: #e8e6df; }

hr.d {
  border: none;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  margin: 14px 0; }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 5px;
  background: rgba(232, 119, 34, 0.18);
  color: #F5C07A;
  letter-spacing: .04em; }
