.moonroot-flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: clamp(8px, 2vmin, 18px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  color-scheme: dark;
  background: #0b1514bc;
  color: #edf0d7;
  font: .9rem/1.45 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.moonroot-flow[hidden],
.moonroot-flow [hidden] {
  display: none;
}

.moonroot-flow *,
.moonroot-flow *::before,
.moonroot-flow *::after {
  box-sizing: border-box;
}

.moonroot-flow .mf-panel {
  flex: none;
  width: min(100%, 36rem);
  min-width: 0;
  margin: auto;
  padding: clamp(12px, 3vmin, 25px);
  display: grid;
  gap: 12px;
  border: 1px solid #5c7765;
  border-radius: 15px;
  background: #182520;
  box-shadow: 0 12px 36px #07121180;
  overflow-wrap: anywhere;
}

.moonroot-flow .mf-title {
  margin: 0;
  font-size: clamp(1.45rem, 5vmin, 2.35rem);
  line-height: 1.15;
  letter-spacing: .06em;
}

.moonroot-flow .mf-title:focus {
  outline: none;
}

.moonroot-flow :is(p, dl, dd) {
  margin: 0;
}

.moonroot-flow .mf-choices,
.moonroot-flow .mf-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.moonroot-flow .mf-choice {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.moonroot-flow :is(.mf-label, .mf-stats dt) {
  font-size: .79rem;
  color: #b8cbbd;
}

.moonroot-flow :is(select, button) {
  min-width: 0;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid #698270;
  border-radius: 7px;
  background: #23362d;
  color: #edf0d7;
  font: inherit;
}

.moonroot-flow button {
  cursor: pointer;
}

.moonroot-flow :is(.mf-choice-detail, .mf-run-info, .mf-changes) {
  color: #c1d2c3;
}

.moonroot-flow .mf-choice-detail {
  font-size: .78rem;
}

.moonroot-flow :is(.mf-actions, .mf-settings) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.moonroot-flow .mf-actions button {
  flex: 1 1 auto;
}

.moonroot-flow .mf-primary {
  background: #c7f18f;
  color: #202c1d;
  border-color: #c7f18f;
  font-weight: 750;
}

.moonroot-flow .mf-primary:hover:enabled {
  background: #def8b7;
}

.moonroot-flow .mf-secondary:hover:enabled {
  background: #30493b;
}

.moonroot-flow :is(button, select):disabled {
  opacity: .56;
  cursor: default;
}

.moonroot-flow :is(button, select, input):focus-visible {
  outline: 2px solid #c7f18f;
  outline-offset: 2px;
}

.moonroot-flow .mf-setting {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  padding: 0 5px;
  cursor: pointer;
}

.moonroot-flow .mf-setting input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #c7f18f;
}

.moonroot-flow .mf-guide {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px 12px;
}

.moonroot-flow .mf-guide dt {
  color: #c7f18f;
  font-weight: 700;
}

.moonroot-flow .mf-stats > div {
  padding: 5px 8px;
  background: #213129;
  border-radius: 6px;
}

.moonroot-flow .mf-stats dd {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.moonroot-flow .mf-result {
  color: #ffbdb2;
}
