/* Egen kod, idé från affectUI Command Menu (Pro), ingen kod tagen */
.ncm{--ncm-ink:rgba(0,0,0,.88);--ncm-text:rgba(0,0,0,.61);--ncm-line:rgba(0,0,0,.06);--ncm-wash:rgba(0,0,0,.04);--ncm-ease:cubic-bezier(.22,1,.36,1);
  --ncm-shadow:0 0 0 .5px rgba(0,0,0,.06),0 1px 1px -1px rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.05);
  box-sizing:border-box;width:100%;max-width:380px;overflow:hidden;border-radius:12px;background:#fff;
  box-shadow:0 0 0 .5px rgba(0,0,0,.08),0 16px 36px -16px rgba(0,0,0,.18),0 1px 2px 0 rgba(0,0,0,.05);
  font-family:var(--sans);font-size:13px;line-height:20px;color:var(--ncm-ink);-webkit-font-smoothing:antialiased}
.ncm *,.ncm *::before,.ncm *::after{box-sizing:border-box}
.ncm svg{display:block;flex:none}
.ncm-search{display:flex;align-items:center;gap:8px;height:46px;padding:0 12px 0 14px;border-bottom:.5px solid var(--ncm-line)}
.ncm-search__icon{width:16px;height:16px;fill:none;stroke:var(--grey);stroke-width:1.3;stroke-linecap:round}
.ncm-input{flex:1;min-width:0;height:100%;margin:0;padding:0;border:0;outline:0;background:none;font:inherit;font-size:14px;color:var(--ncm-ink)}
.ncm-input::placeholder{color:var(--grey)}
.ncm kbd{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:5px;background:#fff;box-shadow:var(--ncm-shadow);font-family:var(--sans);font-size:12px;font-weight:400;line-height:1;color:var(--grey);white-space:nowrap}
.ncm-list{height:292px;margin:0;padding:4px;list-style:none;overflow-y:auto;overscroll-behavior:contain;scroll-padding:28px 0 4px}
.ncm-group{padding:10px 8px 4px;font-size:12px;font-weight:500;line-height:16px;color:var(--grey)}
.ncm-item{display:flex;align-items:center;gap:10px;min-height:36px;padding:0 8px;border-radius:7px;cursor:pointer;transition:background-color 90ms ease}
.ncm-item[data-active]{background:var(--ncm-wash)}
.ncm-item[data-ran]{animation:ncm-ran 520ms var(--ncm-ease)}
.ncm-tile{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:6px;background:#fff;box-shadow:var(--ncm-shadow);color:var(--t,var(--ncm-text))}
.ncm-tile svg,.ncm-ico svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.ncm-ico{display:grid;place-items:center;flex:none;width:22px;height:22px;color:var(--grey)}
.ncm-item[data-active] .ncm-ico{color:var(--ncm-ink)}
.ncm-label{display:flex;align-items:baseline;gap:8px;flex:1;min-width:0}
.ncm-label__t{flex:none;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ncm-label__h{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--grey)}
.ncm-label mark{background:rgba(217,96,28,.14);color:inherit;border-radius:2px}
.ncm-keys{display:flex;gap:3px;flex:none}
.ncm-empty{display:grid;place-items:center;gap:2px;height:180px;padding:0 16px;text-align:center;color:var(--grey)}
.ncm-empty b{font-weight:500;color:var(--ncm-ink)}
.ncm-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:6px 12px;border-top:.5px solid var(--ncm-line);font-size:12px;color:var(--grey)}
.ncm-status,.ncm-foot__r{display:inline-flex;align-items:center;gap:6px;min-width:0;white-space:nowrap}
.ncm-foot__r{gap:3px}
.ncm-status[data-done]{color:#1E7A4C}
.ncm-status svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ncm-status span{overflow:hidden;text-overflow:ellipsis}
@keyframes ncm-ran{0%{background:rgba(217,96,28,.14)}100%{background:var(--ncm-wash)}}
@media (max-width:370px){.ncm-foot__r{display:none}.ncm-item .ncm-keys{display:none}}
@media (prefers-reduced-motion:reduce){.ncm *{animation:none!important;transition:none!important}}
/* Mörkt läge, handskrivet */
:where(.dark,[data-theme="dark"]) .ncm-tile{color:color-mix(in srgb,var(--t,#fff) 55%,#fff);background:#242321}

/* Mörkt läge (genererat från ljusa reglerna, Nolmas mörka tokens) */
:where(.dark,[data-theme="dark"]) .ncm{--ncm-ink:rgba(255,255,255,.9);--ncm-text:rgba(255,255,255,.64);--ncm-line:rgba(255,255,255,.08);--ncm-wash:rgba(255,255,255,.04);--ncm-shadow:0 0 0 .5px rgba(255,255,255,.1), 0 1px 1px -1px rgba(0,0,0,.4), 0 1px 2px 0 rgba(0,0,0,.4);background:#1C1B1A;box-shadow:0 0 0 .5px rgba(255,255,255,.1), 0 16px 36px -16px rgba(0,0,0,.54), 0 1px 2px 0 rgba(0,0,0,.4)}
:where(.dark,[data-theme="dark"]) .ncm kbd{background:#1C1B1A}
:where(.dark,[data-theme="dark"]) .ncm-tile{background:#1C1B1A}
:where(.dark,[data-theme="dark"]) .ncm-status[data-done]{color:#3EC27A}
