:root {
  --stage_side_width: min(38%, 460px);
}

@media (max-width: 767.9px) {
  .l-stage__main,
  .l-stage__side {
    display: contents;
  }
  .l-stage__input {
    order: 1;
  }
  .l-stage__preview {
    order: 2;
  }
  .l-stage__output {
    order: 3;
  }
}
.c-field_title {
  font-size: 14.5px;
  font-weight: bold;
  color: var(--gray_text);
  margin-bottom: 10px;
}

.c-field_label {
  font-size: 13px;
  font-weight: bold;
  color: var(--green);
  margin-bottom: 3px;
}

.c-panel_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.c-panel_head .c-panel_title {
  margin-bottom: 0;
}

.c-panel_title {
  font-size: 14.5px;
  font-weight: bold;
  letter-spacing: var(--caption_letter_spacing);
  color: var(--gray_text);
  margin-bottom: 12px;
}

.c-panel_hint {
  font-size: 13px;
  color: var(--gray_text);
}

.c-tab_group {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.c-field_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.c-field {
  flex: 1 1 48%;
  background: var(--green_bg-l);
  border: 2px solid var(--green_border);
  border-radius: var(--radius-10);
  padding: 14px 16px 16px;
}
.c-field__col + .c-field__col {
  margin-top: 10px;
}

.c-field_input {
  font-size: 17px;
  font-weight: bold;
  background: #fff;
  border: 2px solid var(--green);
  border-radius: var(--radius-7);
  padding: 8px 10px;
  transition: var(--btn_transition);
}
.c-field_input:focus-visible {
  outline: 4px solid var(--green_focus);
}
.c-field_input[readonly] {
  color: var(--green);
  background: transparent;
  border-style: dashed;
}

.is-hl .c-field_input {
  outline: 3px solid var(--green_focus);
}

.c-input_with_unit {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.c-input_with_unit > small {
  font-size: 14px;
  color: var(--green);
}

.c-point_field {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.c-point_field input {
  width: 120px;
}
.c-point_field__text {
  font-weight: bold;
  color: var(--green);
  padding-bottom: 10px;
}

.c-input_error {
  color: var(--text_danger);
  margin-top: 12px;
}

.u-code_block {
  border-width: 2px;
  border-radius: var(--radius-10);
}
.u-code_block__head {
  border-width: 2px;
}

.c-result_options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
}
.c-result_options__col {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.c-result_options__title {
  font-weight: bold;
}
.c-result_options__input {
  background: #fff;
  border: 2px solid var(--green);
  border-radius: var(--radius-5);
  padding: 5px 8px;
  width: 72px;
  transition: var(--btn_transition);
}
.c-result_options__input:focus-visible {
  outline: 4px solid var(--green_focus);
}
.c-result_options__input_with_unit {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.c-graph_area {
  position: relative;
}

.c-graph svg {
  display: block;
}
.c-graph .g-axis {
  stroke: var(--green);
  stroke-width: 2;
}
.c-graph .g-title {
  font-size: 13px;
  font-weight: bold;
  fill: var(--gray_text);
}
.c-graph .g-grid {
  stroke: var(--green_border);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.c-graph .g-zone {
  fill: transparent;
}
.c-graph .g-line {
  fill: none;
  stroke: var(--green_neon);
  stroke-width: 4;
  stroke-linejoin: round;
}
.c-graph .g-dot {
  fill: var(--green);
  stroke: #fff;
  stroke-width: 4;
}
.c-graph .g-guide {
  stroke: var(--green);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}
.c-graph .g-nowtxt {
  font-size: 14px;
  fill: #fff;
}
.c-graph .g-now {
  fill: var(--green);
}
.c-graph .g-ref {
  fill: #fff;
  stroke: var(--green);
  stroke-width: 2;
}
.c-graph .g-lbl {
  font-size: 14px;
  font-weight: bold;
  fill: var(--green);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.c-graph .g-end {
  font-size: 13px;
  fill: var(--gray_text-l);
}

.c-graph_range {
  position: absolute;
  z-index: 2;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: ew-resize;
}
.c-graph_range::-webkit-slider-runnable-track {
  height: 36px;
  background: transparent;
}
.c-graph_range::-moz-range-track {
  height: 36px;
  background: transparent;
}
.c-graph_range::-webkit-slider-thumb {
  width: 52px;
  height: 36px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 28 16' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2L2 8l6 6M20 2l6 6-6 6'/%3E%3C/svg%3E") center/28px 16px no-repeat;
  border: 3px solid #fff;
  border-radius: 99px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  -webkit-appearance: none;
          appearance: none;
}
.c-graph_range::-moz-range-thumb {
  box-sizing: border-box;
  width: 52px;
  height: 36px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 28 16' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2L2 8l6 6M20 2l6 6-6 6'/%3E%3C/svg%3E") center/28px 16px no-repeat;
  border: 3px solid #fff;
  border-radius: 99px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.c-preview {
  border-top: 2px dashed var(--green_border);
  padding-top: 20px;
  margin-top: 20px;
}
.c-preview__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-bottom: 14px;
}
.c-preview__text {
  flex: 1;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 10px;
  min-width: 400px;
}
.c-preview__text__label {
  font-size: 13.5px;
  font-weight: bold;
  color: var(--green_text-l);
}
.c-preview__text__input {
  font-size: 15px;
  border: 2px solid var(--gray_border);
  border-radius: var(--radius-7);
  padding: 8px 12px;
}

.c-preview_stage {
  display: flex;
  background: var(--green_grd);
  border-radius: var(--radius-10);
  min-height: 200px;
  max-height: 500px;
  padding: 16px;
  overflow: auto;
}

.c-sample_text {
  flex: none;
  margin: auto;
  font-weight: bold;
  white-space: nowrap;
}

.c-sample_div {
  flex: none;
  margin: auto;
  background: #fff;
  border: solid 2px var(--black);
  height: 80px;
  position: relative;
}
.c-sample_div__label {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--green);
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
}
