/* TASK-0103-FE — per-widget font-size scale 8px..24px. */

.task0103-font-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.task0103-font-icon {
  width: auto;
  min-width: 24px;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.03em;
}

.task0103-font-help {
  margin: 0 0 12px;
}

.task0103-font-field {
  display: grid;
  grid-template-columns: minmax(110px, .42fr) minmax(190px, 1fr);
  align-items: center;
  gap: 12px;
}

.task0103-font-field > label,
.task0103-font-label {
  color: var(--pg-text);
  font-size: 13px;
  font-weight: 700;
}

.task0103-widget-select {
  width: 100%;
  min-width: 0;
}

.task0103-font-divider {
  height: 1px;
  margin: 13px 0;
  background: var(--pg-border-soft);
}

.task0103-font-size-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.task0103-font-value {
  display: inline-flex;
  min-width: 62px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--pg-blue) 38%, var(--pg-border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--pg-surface) 90%, transparent);
  color: var(--pg-cyan);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.task0103-font-slider-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
}

.task0103-font-edge {
  color: var(--pg-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.task0103-font-slider {
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  accent-color: var(--pg-cyan);
  appearance: none;
  -webkit-appearance: none;
}

.task0103-font-slider::-webkit-slider-runnable-track {
  height: 5px;
  border: 1px solid color-mix(in srgb, var(--pg-blue) 38%, var(--pg-border));
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--pg-surface-3) 94%, transparent),
      color-mix(in srgb, var(--pg-blue) 20%, var(--pg-surface-3))
    );
}

.task0103-font-slider::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 2px solid var(--pg-cyan);
  border-radius: 50%;
  background: var(--pg-surface-solid);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--pg-cyan) 12%, transparent),
    0 2px 6px #0005;
  appearance: none;
  -webkit-appearance: none;
}

.task0103-font-slider::-moz-range-track {
  height: 5px;
  border: 1px solid color-mix(in srgb, var(--pg-blue) 38%, var(--pg-border));
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--pg-surface-3) 94%, transparent),
      color-mix(in srgb, var(--pg-blue) 20%, var(--pg-surface-3))
    );
}

.task0103-font-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid var(--pg-cyan);
  border-radius: 50%;
  background: var(--pg-surface-solid);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--pg-cyan) 12%, transparent),
    0 2px 6px #0005;
}

.task0103-font-slider:focus-visible {
  outline: none;
}

.task0103-font-slider:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--pg-cyan) 22%, transparent),
    0 2px 6px #0005;
}

.task0103-font-scale-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: -1px 28px 0 33px;
  color: var(--pg-muted);
  font-size: 9px;
  line-height: 1;
}

.task0103-font-scale-labels span:nth-child(1) {
  text-align: left;
}

.task0103-font-scale-labels span:nth-child(2) {
  text-align: center;
}

.task0103-font-scale-labels span:nth-child(3) {
  text-align: right;
}

.task0103-font-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.task0103-font-note {
  flex: 1 1 auto;
  margin: 0;
}

.task0103-font-reset {
  flex: 0 0 auto;
  min-height: 34px;
  white-space: nowrap;
}

.task0103-font-reset:disabled {
  cursor: default;
  opacity: .45;
}

@media (max-width: 620px) {
  .task0103-font-field {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .task0103-font-size-head {
    margin-bottom: 6px;
  }

  .task0103-font-slider-row {
    grid-template-columns: 22px minmax(0, 1fr) 26px;
    gap: 7px;
  }

  .task0103-font-scale-labels {
    margin-right: 26px;
    margin-left: 29px;
  }

  .task0103-font-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .task0103-font-reset {
    width: 100%;
  }
}
