html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b0c10;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0b0c10;
}

.fsr-live-bootstrap-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 14, 0.78);
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.fsr-live-bootstrap-mask.is-active {
  opacity: 1;
}

.fsr-live-bootstrap-mask.is-fading-out {
  opacity: 0;
}

.fsr-live-bootstrap-card {
  width: min(520px, calc(100vw - 28px));
  padding: 16px 16px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 20, 30, 0.9);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
}

.fsr-live-bootstrap-title {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.3;
  color: #e9edf2;
  letter-spacing: 0.2px;
}

.fsr-live-bootstrap-stage {
  margin-bottom: 8px;
  font-size: 12px;
  color: #c8d1db;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fsr-live-bootstrap-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.fsr-live-bootstrap-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2fcf9f 0%, #46e0bd 100%);
  transition: width 180ms linear;
}

.fsr-live-bootstrap-meta {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 4px;
}

.fsr-live-bootstrap-percent {
  min-width: 56px;
  font-size: 12px;
  color: #eef3f8;
  font-variant-numeric: tabular-nums;
}

.fsr-live-bootstrap-total-elapsed,
.fsr-live-bootstrap-estimate {
  font-size: 11px;
  color: #aeb9c4;
  font-variant-numeric: tabular-nums;
}

.fsr-live-bootstrap-timeline {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 8px;
}

.fsr-live-bootstrap-segment-row {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
}

.fsr-live-bootstrap-segment-row.is-active {
  border-color: rgba(70, 224, 189, 0.44);
  background: rgba(70, 224, 189, 0.1);
}

.fsr-live-bootstrap-segment-row.is-done {
  border-color: rgba(47, 207, 159, 0.45);
  background: rgba(47, 207, 159, 0.11);
}

.fsr-live-bootstrap-segment-head,
.fsr-live-bootstrap-segment-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fsr-live-bootstrap-segment-head {
  margin-bottom: 4px;
}

.fsr-live-bootstrap-segment-foot {
  margin-top: 4px;
}

.fsr-live-bootstrap-segment-label {
  font-size: 11px;
  color: #d8e1ea;
}

.fsr-live-bootstrap-segment-weight {
  font-size: 10px;
  color: #9aabb8;
  font-variant-numeric: tabular-nums;
}

.fsr-live-bootstrap-segment-progress {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.fsr-live-bootstrap-segment-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2fcf9f 0%, #46e0bd 100%);
  transition: width 160ms linear;
}

.fsr-live-bootstrap-segment-progress-text,
.fsr-live-bootstrap-segment-elapsed {
  font-size: 10px;
  color: #c0cbd6;
  font-variant-numeric: tabular-nums;
}

.fsr-live-bootstrap-segment-row.is-pending .fsr-live-bootstrap-segment-progress-text,
.fsr-live-bootstrap-segment-row.is-pending .fsr-live-bootstrap-segment-elapsed {
  color: #8998a5;
}

/* 设置弹窗加宽 */
.klinecharts-pro-modal .inner {
  width: 528px !important;
}

.fsr-setting-section {
  grid-column: 1 / -1;
  width: 100%;
  padding-top: 6px;
  padding-right: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.kline-data-start-setting-section {
  width: 100%;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.kline-data-start-setting-title {
  font-size: inherit;
  color: inherit;
  margin-bottom: 8px;
}

.kline-data-start-setting-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
}

.kline-data-start-setting-row:last-child {
  margin-bottom: 0;
}

.kline-data-start-setting-label {
  width: 108px;
  min-width: 108px;
  font-size: 12px;
  color: #cfd3d6;
}

.kline-data-start-setting-input {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(15, 20, 30, 0.92);
  color: #e9edf2;
  padding: 4px 8px;
  font-size: 12px;
}

.kline-data-start-setting-input.is-invalid {
  border-color: #ef5a5a;
  box-shadow: 0 0 0 1px rgba(239, 90, 90, 0.28);
}

.kline-data-start-setting-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  user-select: none;
}

.kline-data-start-setting-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.kline-data-start-setting-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: background-color 160ms ease;
}

.kline-data-start-setting-switch-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 160ms ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.kline-data-start-setting-switch input:checked + .kline-data-start-setting-switch-slider {
  background: #2d7ef7;
}

.kline-data-start-setting-switch input:checked + .kline-data-start-setting-switch-slider::before {
  transform: translateX(20px);
}

.fsr-setting-title {
  font-size: inherit;
  color: inherit;
  margin-bottom: 8px;
}

.fsr-setting-row {
  display: grid;
  grid-template-columns: 12px 34px repeat(5, max-content);
  justify-content: start;
  column-gap: 10px;
  align-items: center;
  font-size: inherit;
  margin: 4px 0;
}

.klinecharts-pro-modal .button-container {
  padding: 18px 26px 22px 26px;
}

.fsr-setting-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.fsr-setting-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.fsr-setting-text {
  font-size: 12px;
  color: #cfd3d6;
}

.fsr-setting-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  justify-self: center;
}

.fsr-setting-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  justify-self: start;
}
