.preset-gallery {
    padding-top: 64px;
    padding-bottom: 80px;
    color: #526075;
}
.preset-gallery header { max-width: 760px; }
.preset-gallery h1 {
    color: #1d2333;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
    margin-bottom: 20px;
}
.preset-eyebrow, .preset-category, .preset-preview-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
}
.preset-eyebrow { color: #4926d6; margin-bottom: 16px; }
.preset-intro { font-size: 1.1rem; line-height: 1.7; }
.preset-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding: 24px 0;
    border-top: 1px solid #e7e8ef;
}
.preset-toolbar-title { color: #1d2333; font-weight: 700; }
.preset-note { font-size: .85rem; line-height: 1.7; }
.preset-toolbar .preset-note { margin: 6px 0 0; }
.preset-sound {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 16px;
    border: 1px solid #e2e3ec;
    border-radius: 12px;
    color: #343d50;
    font-size: .9rem;
    cursor: pointer;
}
.preset-sound input { width: 20px; height: 20px; accent-color: #4926d6; }
.preset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}
.preset-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2e3ec;
    border-radius: 20px;
    box-shadow: 0 4px 20px #23203c06;
}
.preset-preview {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: radial-gradient(ellipse at 50% 40%, #303449, #171c29 80%);
}
.preset-preview iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.preset-preview-label { position: absolute; top: 16px; left: 16px; color: #b7bdce; font-size: .6rem; }
.preset-stop {
    position: absolute;
    bottom: 14px;
    right: 14px;
    border: 1px solid #68738a;
    border-radius: 8px;
    padding: 8px 12px;
    background: #20283c;
    color: #fff;
    font: inherit;
    font-size: .8rem;
    min-height: 44px;
}
.preset-stop:disabled { display: none; }
.preset-details { display: flex; flex: 1; flex-direction: column; padding: 24px 14px 14px; }
.preset-category { color: #737b8e; font-size: .6rem; margin-bottom: 8px; }
.preset-details h2 { color: #1d2333; font-size: 1.5rem; font-weight: 750; margin-bottom: 10px; }
.preset-details p { font-size: .95rem; line-height: 1.6; margin-bottom: 24px; }
.preset-actions { display: grid; gap: 10px; margin-top: auto; }
.preset-actions button, .preset-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #e0e2eb;
    border-radius: 10px;
    background: #f6f7fb;
    color: #30394e;
    font: inherit;
    font-size: .95rem;
    font-weight: 650;
    text-decoration: none;
}
.preset-actions a { justify-content: space-between; color: #fff; background: #4926d6; border-color: #4926d6; }
.preset-actions a:hover { color: #fff; background: #391bb7; }
.preset-actions .preset-download { color: #30394e; background: #f6f7fb; border-color: #e0e2eb; }
.preset-actions .preset-download:hover { color: #30394e; background: #ece9fa; border-color: #c5b9f1; }
.preset-actions button:hover:not(:disabled) { background: #ece9fa; border-color: #c5b9f1; }
.preset-actions button:disabled { opacity: .5; }
.preset-file-note { color: #737b8e; font-size: .7rem; text-align: center; margin-top: 14px; }
.preset-gallery :focus-visible { outline: 3px solid #6741d9; outline-offset: 4px; }
.preset-card.is-playing { border-color: #7d63df; box-shadow: 0 0 0 2px #e4ddfb; }
#preset-status { font-size: .85rem; margin-bottom: 4px; }
.preset-import { margin-top: 48px; padding: 32px; background: #f7f8fb; border: 1px solid #e7e8ef; border-radius: 20px; }
.preset-import li { padding: 6px 0; line-height: 1.7; }
.preset-import h2 { color: #1d2333; font-size: 1.6rem; font-weight: 750; }
.preset-import a { color: #4926d6; }
@media (max-width: 1000px) {
    .preset-grid { grid-template-columns: 1fr; }
    .preset-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
    .preset-details { padding: 16px 24px; }
}
@media (max-width: 600px) {
    .preset-gallery { padding-top: 36px; }
    .preset-toolbar { align-items: flex-start; flex-direction: column; margin-top: 24px; gap: 16px; }
    .preset-card { display: flex; }
    .preset-details { padding: 20px 12px 12px; }
    .preset-import { padding: 24px 20px; }
}
