/* Eigene Befehle: Vorlagen-Galerie (commands-templates.js) */
.ctpl-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; margin-right: 8px; border-radius: 12px; cursor: pointer; font: 700 0.88rem Inter, system-ui, sans-serif; color: #e6e8ef; border: 1px solid rgba(88, 101, 242, 0.45); background: rgba(88, 101, 242, 0.12); }
.ctpl-btn:hover { background: rgba(88, 101, 242, 0.24); color: #fff; }
.ctpl { position: fixed; inset: 0; z-index: 10070; display: flex; justify-content: center; align-items: center; padding: 16px; background: rgba(2, 4, 10, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: Inter, system-ui, sans-serif; }
.ctpl__box { width: min(980px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid rgba(88, 101, 242, 0.35); background: rgba(14, 16, 26, 0.98); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); color: #e6e8ef; }
.ctpl__head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.ctpl__head h3 { margin: 0; color: #fff; font-size: 1.1rem; }
.ctpl__head p { margin: 4px 0 0; font-size: 0.84rem; color: rgba(220, 224, 240, 0.6); line-height: 1.5; }
.ctpl__x { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: #fff; cursor: pointer; }
.ctpl__grid { overflow-y: auto; padding: 16px 18px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ctpl-card { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 14px; border-radius: 14px; cursor: pointer; font: inherit; color: inherit; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); transition: border-color 0.15s, transform 0.15s, background 0.15s; min-width: 0; }
.ctpl-card:hover, .ctpl-card:focus-visible { border-color: rgba(88, 101, 242, 0.6); background: rgba(88, 101, 242, 0.08); transform: translateY(-1px); outline: none; }
.ctpl-card__top { display: flex; align-items: center; gap: 10px; }
.ctpl-card__top strong { display: block; color: #fff; font-size: 0.92rem; }
.ctpl-card__top code { font-size: 0.74rem; color: #aab4ff; }
.ctpl-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: rgba(88, 101, 242, 0.16); color: #aab4ff; }
.ctpl-desc { font-size: 0.78rem; color: rgba(220, 224, 240, 0.6); }
.ctpl-embed { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 6px; border-left: 4px solid var(--c); background: #2b2d31; font-size: 0.76rem; min-width: 0; }
.ctpl-embed strong { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctpl-embed span, .ctpl-msg { color: #dbdee1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctpl-msg { margin: 0; padding: 8px 10px; border-radius: 6px; background: #2b2d31; font-size: 0.76rem; }
@media (prefers-reduced-motion: reduce) { .ctpl-card { transition: none; } }
@media (max-width: 760px) {
    .ctpl-btn span { display: none; }
    .ctpl-btn { padding: 0 12px; }
    .ctpl__grid { grid-template-columns: 1fr; }
}
