/* Десктоп: усе як було */
#question-nav {
  gap: 0.5rem;
}

.square-btn {
    width: 31px;
    height: 31px;
    padding: 0;
    text-align: center;
}

/* Приховуємо стандартний радіо-круг */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.5em;
    height: 1.5em;
    margin: 0;
    border: 1px solid #999;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    background-color: #fff;
    text-align: center;
    line-height: 1.5em;
    font-weight: bold;
    font-size: 1.2em;
}

/* Обраний — показує ✕ */
input[type="radio"]:checked::after {
    content: "✕";
    display: inline-block;
    color: #000;
}

/* Наведіть мишу — легкий фокус */
input[type="radio"]:hover {
    border-color: #000;
}

.table-sm td,
.table-sm th {
    padding: 0.2rem 0.4rem;  /* ще менше ніж стандарт */
    font-size: 0.85rem;      /* менший шрифт */
    vertical-align: middle;
}

input[type="radio"] {
    width: 1.2em;
    height: 1.2em;
    font-size: 1em;
    line-height: 1.2em;
}

/* Мобільна адаптація */
@media (max-width: 576px) {
  #question-nav {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch; /* плавність для iOS */
  }

  #question-nav::-webkit-scrollbar {
    display: none; /* приховати скролбар */
  }

  #question-nav > button {
    flex: 0 0 auto;
    /* margin: 0 4px;        /* рівномірні відступи */
    min-width: 36px;
    height: 36px;
    line-height: 1;
    border-radius: 6px;   /* помірно округлені */
    font-weight: 500;
  }

}