/* Mini keypad under the answer field of the math trainers with automatic checking. */
.mini_keypad {
    display: grid;
    grid-template-columns: repeat(6, 52px);
    gap: 6px;
    margin-top: 14px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.mini_keypad .mini_key {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    min-width: 0;
    padding: 0;
    border: var(--border);
    border-bottom-width: 4px;
    border-radius: 12px;
    background: var(--white);
    color: var(--main);
    font-family: var(--header_font);
    font-size: 22px;
    font-weight: var(--main_bolder_weight);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.mini_keypad .mini_key:hover:not(:disabled) { border-color: var(--accent); }
.mini_keypad .mini_key:active:not(:disabled) { background: var(--lightblue); border-color: var(--blue_border); color: var(--blue_text); }
.mini_keypad .mini_key:focus-visible { outline: none; border-color: var(--blue3); }
.mini_keypad .mini_key:disabled { cursor: default; opacity: .5; }
.mini_keypad .mini_key.is_hidden { visibility: hidden; }
.mini_keypad .mini_key_icon { width: 24px; height: 24px; }
/* Arrows between several fields checked by «Проверить»: a row of two wide keys under the digits. */
.mini_keypad .mini_key_nav { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: inherit; }
.mini_keypad .mini_key_nav[hidden] { display: none; }
@media (max-width: 480px) {
    .mini_keypad { grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; max-width: 360px; margin-top: 12px; }
}
/* On the narrowest phones smaller gaps keep every key at least 44 px wide. */
@media (max-width: 359px) {
    .mini_keypad { gap: 4px; }
}
