.speech-gallery-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px;min-width:0}
.speech-gallery-heading h3{font-size:13px;line-height:1.5;font-weight:500;margin:0 auto 0 0;color:var(--muted)}
.speech-gallery-navigation{display:flex;gap:2px}
.speech-gallery-navigation button{width:30px;height:34px;border:0;background:transparent;color:var(--muted);padding:5px}
.speech-gallery-navigation button:disabled{opacity:.3;cursor:default}
.speech-voice-gallery{display:grid;grid-template-columns:120px;grid-auto-flow:column;grid-auto-columns:184px;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;padding:3px 2px 12px}
.speech-voice-card,.speech-voice-create{position:relative;height:216px;min-width:0;scroll-snap-align:start;border:1px solid var(--border);border-radius:8px;background:var(--theme-surface,#fff);color:inherit;overflow:hidden}
.speech-voice-card canvas{display:block;width:72px;height:72px;margin:10px 0 2px 10px;color:#467caf}
.speech-voice-card:nth-child(3) canvas{color:#248476}
.speech-voice-card:nth-child(4) canvas{color:#bf6f38}
.speech-voice-card:nth-child(5) canvas{color:#a35983}
.speech-voice-card:nth-child(6) canvas{color:#7a75ab}
.speech-voice-card:has([aria-pressed=true]),.speech-voice-card:hover{border-color:var(--green)}
.speech-audition-play{position:absolute;top:14px;right:12px;display:grid;place-items:center;width:34px;height:34px;padding:7px;border:1px solid var(--border);border-radius:50%;background:transparent;color:var(--muted)}
.speech-audition-play svg{width:15px;height:15px}
.speech-audition-play[aria-busy=true] svg{animation:speech-spin .8s linear infinite}
.speech-voice-card.is-playing .speech-audition-play{color:var(--green);border-color:var(--green)}
.speech-voice-choose{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:7px;width:100%;height:130px;text-align:left;padding:8px 14px 14px;border:0;background:transparent;color:inherit}
.speech-voice-choose strong{font-size:14px;font-weight:600;line-height:1.45}
.speech-voice-choose span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5}
.speech-voice-choose:focus-visible{outline-offset:-4px}
.speech-voice-create{display:flex;flex-direction:column;gap:18px;align-items:center;justify-content:center;padding:18px;border-style:dashed;font-size:13px}
.speech-voice-create>svg{width:30px;height:30px;color:var(--muted)}
.speech-gallery-error{min-height:20px;margin:6px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}
.speech-gallery-error button{border:0;padding:0;background:transparent;color:var(--green);text-decoration:underline;font-size:inherit}
@media(max-width:380px){.speech-voice-gallery{grid-template-columns:94px;grid-auto-columns:170px}}
@media(prefers-reduced-motion:reduce){.speech-audition-play[aria-busy=true] svg{animation:none}}
#speech-voice-showcase{min-width:0;max-width:100%}
