/* =====================================================================
   NŪR AL-ATHAR — Palette de commandes (Ctrl/⌘ + K), toutes les pages
   ===================================================================== */
.pal-backdrop { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(8,26,48,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: pal-fade .15s ease; }
.pal-backdrop[hidden] { display: none; }
html.pal-open { overflow: hidden; }
@keyframes pal-fade { from { opacity: 0; } }
@keyframes pal-rise { from { transform: translateY(-12px) scale(.98); opacity: 0; } }
.pal { width: min(640px, 100%); max-height: 72vh; display: flex; flex-direction: column; border-radius: var(--r-lg, 16px); background: var(--c-paper, #fff); border: 1px solid var(--c-gold, #C89B5E); box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 6px rgba(200,155,94,.12); overflow: hidden; animation: pal-rise .18s cubic-bezier(.2,.8,.2,1); color: var(--c-ink); }
.pal-search { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--c-border-soft); }
.pal-search > i { color: var(--c-gold-text); font-size: 1.15rem; }
.pal-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--c-ink); font-size: 1.08rem; }
.pal-search input::placeholder { color: var(--c-muted); }
.pal kbd { background: var(--c-paper-2); color: var(--c-muted); border: 1px solid var(--c-border-soft); border-bottom-width: 2px; border-radius: 5px; padding: .05rem .38rem; font-size: .7rem; font-family: var(--font-body); }
.pal-list { list-style: none; margin: 0; padding: .4rem; overflow-y: auto; }
.pal-list li[data-ix] { display: flex; align-items: center; gap: .8rem; padding: .62rem .8rem; border-radius: var(--r-md, 12px); cursor: pointer; }
.pal-list li[data-ix] > i:first-child { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--c-gold-soft); color: var(--c-gold-text); flex: none; }
.pal-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-list li small { margin-inline-start: .55rem; color: var(--c-muted); font-size: .76rem; }
.pal-list li mark { background: none; color: var(--c-gold-text); font-weight: 700; padding: 0; }
.pal-list li.active { background: var(--c-primary); color: var(--c-primary-ink); }
.pal-list li.active > i:first-child { background: rgba(255,255,255,.16); color: inherit; }
.pal-list li.active small, .pal-list li.active mark { color: inherit; opacity: .85; }
.pal-enter { opacity: 0; } .pal-list li.active .pal-enter { opacity: .8; }
.pal-sec { padding: .55rem .8rem .25rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); font-weight: 600; }
.pal-empty { padding: 1.4rem; text-align: center; color: var(--c-muted); }
.pal-foot { display: flex; gap: 1.1rem; justify-content: flex-end; padding: .55rem 1rem; border-top: 1px solid var(--c-border-soft); font-size: .72rem; color: var(--c-muted); background: var(--c-paper-2); }
@media (max-width: 560px) { .pal-backdrop { padding-top: 8vh; } .pal-foot { display: none; } }
.nx-palette-btn kbd { font-size: .6rem; padding: 0 .3rem; margin-inline-start: .2rem; background: rgba(255,255,255,.12); color: inherit; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; font-family: var(--font-body); }
@media (max-width: 991px) { .nx-palette-btn kbd { display: none; } }
@media (max-width: 575px) { .nx-palette-btn { display: none !important; } }
