/* ────────────────────────────────────────────────────────────────
   TOOL — Arabic Keyboard

   Scoped under .akb so nothing here can reach the rest of the shell.
   Inherits the shell's tokens rather than restating any colour.
   ──────────────────────────────────────────────────────────────── */

.akb__modes {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
}

.akb__field {
    min-height: 170px;
    font-size: 21px !important;
    line-height: 2.1 !important;
}

.akb__count { margin-bottom: 18px; }

.akb__board {
    background: var(--at-lilac) !important;
    border-radius: var(--at-radius);
    padding: 14px 12px;
    margin-bottom: 20px;
    direction: rtl;
}

.akb__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}
.akb__row:last-child { margin-bottom: 0; }

.akb__key {
    min-width: 46px;
    height: 46px;
    padding: 0 10px;
    border: 1px solid var(--at-line-strong);
    border-radius: var(--at-radius-sm);
    background: var(--at-surface) !important;
    color: var(--at-ink-deep) !important;
    font-family: var(--at-font-ar) !important;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 0 var(--at-line-strong);
    transition: transform .1s var(--at-ease), background .15s var(--at-ease), border-color .15s var(--at-ease);
}
.akb__key:hover {
    background: var(--at-primary-tint) !important;
    border-color: var(--at-primary-soft);
}
.akb__key:active { transform: translateY(1px); box-shadow: none; }
.akb__key:focus-visible { outline: 3px solid var(--at-primary-soft); outline-offset: 2px; }

.akb__key--mark {
    background: var(--at-accent-tint) !important;
    color: var(--at-accent-deep) !important;
    border-color: #F0DCD0;
    font-size: 22px;
}
.akb__key--punct { font-size: 17px; }

.akb__key--wide {
    min-width: 108px;
    font-family: var(--at-font) !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--at-ink-soft) !important;
}

.akb__row--harakat, .akb__row--punct {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--at-line);
}

@media (max-width: 640px) {
    .akb__board { padding: 10px 7px; }
    .akb__key { min-width: 38px; height: 42px; font-size: 18px; padding: 0 6px; }
    .akb__key--wide { min-width: 86px; font-size: 13px; }
    .akb__field { font-size: 19px !important; }
}
