/* "Clicker buttons" window (js/core/ClickerRemap.js) — outside the zoomed body, side-panel look */
.ck-overlay {
    position: fixed; inset: 0; z-index: 2147483250;
    display: grid; place-items: center; padding: 16px; box-sizing: border-box;
    background: rgba(15, 23, 42, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    font-family: 'Outfit', 'Cairo', system-ui, sans-serif;
}
.ck-box {
    width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
    background: #fff; color: #1e293b; border-radius: 20px; box-shadow: 0 30px 80px rgba(15, 23, 42, .35); overflow: hidden;
}
.ck-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px 20px; border-bottom: 1px solid rgba(100, 116, 139, .22); }
.ck-tile { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #6d5ef6; color: #fff; font-size: 17px; }
.ck-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ck-title b { font-size: 1.1rem; font-weight: 800; }
.ck-title span { font-size: .8rem; color: #64748b; margin-top: 2px; }
.ck-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(100, 116, 139, .22); background: transparent; color: #64748b; cursor: pointer; font-size: 15px; }
.ck-close:hover { background: #f1f5f9; color: #1e293b; }
.ck-last { margin: 12px 20px 4px; padding: 10px 14px; border-radius: 12px; background: #f1f0fd; color: #4f46e5; font-weight: 700; font-size: .88rem; text-align: center; }
.ck-list { overflow-y: auto; padding: 6px 12px 10px; }
.ck-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; }
.ck-row + .ck-row { border-top: 1px solid rgba(100, 116, 139, .12); }
.ck-row.learning { background: #fffbeb; box-shadow: inset 0 0 0 2px #f59e0b; }
.ck-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f1f5f9; color: #6d5ef6; }
.ck-name { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: .95rem; }
.ck-keys { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ck-key { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 8px; background: #1e293b; color: #fff; font: 700 .78rem/1.2 ui-monospace, 'SF Mono', Menlo, monospace; }
.ck-x { width: 20px; height: 20px; border-radius: 6px; border: 0; background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; line-height: 1; }
.ck-default { font-size: .78rem; color: #94a3b8; }
.ck-wait { font-size: .82rem; font-weight: 700; color: #b45309; animation: ck-pulse 1s ease-in-out infinite; }
@keyframes ck-pulse { 50% { opacity: .45; } }
.ck-set { flex: none; min-width: 72px; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 0; background: #6d5ef6; color: #fff; font: 700 .85rem/1 inherit; font-family: inherit; cursor: pointer; }
.ck-row.learning .ck-set { background: #e2e8f0; color: #1e293b; }
.ck-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px 16px; border-top: 1px solid rgba(100, 116, 139, .22); }
.ck-note { flex: 1; font-size: .74rem; color: #64748b; line-height: 1.4; }
.ck-reset { flex: none; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(239, 68, 68, .35); background: #fff; color: #dc2626; font-weight: 700; cursor: pointer; }
@media (max-width: 480px) { .ck-row { flex-wrap: wrap; } .ck-keys { order: 3; flex: 1 1 100%; justify-content: flex-start; padding-inline-start: 46px; } }
@media (prefers-reduced-motion: reduce) { .ck-wait { animation: none; } }
.ck-preset {
    display: flex; align-items: center; gap: 12px; margin: 8px 20px 4px; padding: 12px 14px; border-radius: 14px; text-align: start;
    border: 1.5px dashed rgba(109, 94, 246, .5); background: #fff; color: #1e293b; cursor: pointer; font-family: inherit;
    transition: background .15s ease, border-color .15s ease;
}
.ck-preset:hover { background: #f5f3ff; border-color: #6d5ef6; }
.ck-preset > i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #6d5ef6; color: #fff; }
.ck-preset span { display: flex; flex-direction: column; gap: 2px; }
.ck-preset b { font-size: .92rem; }
.ck-preset small { font-size: .78rem; color: #64748b; }
