.presets-shell {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 22px 40px;
}

.presets-section + .presets-section {
    margin-top: 38px;
}

.presets-section h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.presets-lead {
    margin: 6px 0 20px;
    color: var(--muted);
    font-size: 14.5px;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

.preset-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 6px 18px rgba(79, 70, 229, .07));
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.preset-card:hover {
    transform: translateY(-3px);
    border-color: #cfc7ec;
    box-shadow: 0 16px 32px rgba(79, 70, 229, .14);
}

.preset-card__preview {
    display: grid;
    place-items: center;
    padding: 22px;
    background: var(--bg, #fff);
    border-bottom: 1px solid var(--border);
}

.preset-card__preview svg {
    width: 100%;
    max-width: 150px;
    height: auto;
}

.preset-card__sample {
    width: 120px;
    height: 120px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 6px;
    padding: 10px;
}

.preset-card__sample i {
    background: var(--fg, #15437b);
}

.preset-card__sample.is-rounded i { border-radius: 3px; }
.preset-card__sample.is-dot i { border-radius: 50%; }

.preset-card__body {
    flex: 1;
    padding: 14px 16px 4px;
}

.preset-card__body h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
}

.preset-card__body p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.preset-apply,
.preset-delete {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.preset-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 16px 16px;
    padding: 11px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-action);
    transition: transform .14s ease, filter .14s ease;
}

.preset-apply:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.preset-apply svg {
    width: 17px;
    height: 17px;
}

.preset-card__actions {
    display: flex;
    gap: 8px;
    margin: 14px 16px 16px;
}

.preset-card__actions .preset-apply {
    flex: 1;
    margin: 0;
}

.preset-delete {
    display: grid;
    place-items: center;
    width: 44px;
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--muted);
    transition: background .14s ease, color .14s ease;
}

.preset-delete:hover {
    background: #fde7ea;
    color: #d6334e;
}

.preset-delete svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 560px) {
    .presets-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
