.azbuka-shell {
    display: grid;
    gap: 1rem;
}

.azbuka-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.azbuka-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.9rem;
}

.azbuka-card {
    border: 1px solid #dbe2f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(24, 37, 66, 0.08);
    padding: 0.75rem;
}

.azbuka-card img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 10px;
    background: #f7f9ff;
}

.azbuka-letter-preview {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    border: 1px solid #c7d2e6;
    border-radius: 10px;
    background: repeating-conic-gradient(#f3f4f6 0 25%, #e5e7eb 0 50%) 50% / 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.azbuka-letter-preview img {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(17, 24, 39, 0.7));
}

.azbuka-letter {
    font-size: 90px;
    line-height: 1;
    font-weight: 700;
}

.azbuka-meta {
    color: #5c677d;
    font-size: 0.95rem;
}

.upload-inline input[type=file] {
    max-width: 280px;
}

@media (max-width: 768px) {
    .azbuka-letter {
        font-size: 64px;
    }
}
