.als-arabic-spell-wrapper {
    max-width: 480px;
    margin: 1.5rem auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.als-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    background-color: #ffffff;
}

.als-header {
    margin-bottom: 10px;
}

.als-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.als-subtitle {
    font-size: 0.85rem;
    color: #666666;
}

.als-body {
    margin-top: 8px;
}

.als-original-label,
.als-current-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555555;
    margin-top: 8px;
    margin-bottom: 4px;
}

.als-original-text,
.als-current-step {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 8px 10px;
    min-height: 32px;
    font-size: 1.25rem;
    line-height: 1.6;
    background-color: #fafafa;
}

.als-original-text {
    margin-bottom: 6px;
}

.als-current-step {
    margin-bottom: 10px;
}

.als-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.als-btn {
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    background-color: #007cba;
    color: #ffffff;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.als-btn:hover:not(:disabled) {
    background-color: #0064a0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.als-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.als-btn:disabled {
    background-color: #c2c2c2;
    cursor: not-allowed;
    box-shadow: none;
}

.als-status-message {
    font-size: 0.8rem;
    color: #666666;
    min-height: 16px;
}

@media (max-width: 480px) {
    .als-card {
        padding: 12px 14px;
    }

    .als-original-text,
    .als-current-step {
        font-size: 1.1rem;
    }
}