/* =====================================================================
   NPSIMS · Adaptive App Shell (Flockr pattern — NO left sidebar)

     Desktop: sticky top bar with inline nav + rich avatar dropdown.
     Mobile:  compact top bar + fixed bottom tab bar + slide-up drawer.

     Every page renders its own content full-width. No persistent chrome
     except the top bar and (on mobile) the bottom tabbar.
   ===================================================================== */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
}

/* ============================ TOP BAR ============================ */
.app-topbar {
  position: sticky; top: 0;
  z-index: var(--z-topbar);
  height: var(--topbar-h);
  background: linear-gradient(180deg, var(--nps-navy-950) 0%, var(--nps-navy-900) 100%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}
.app-topbar::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg,
    var(--ke-black) 0%, var(--ke-black) 20%,
    var(--ke-red)   20%, var(--ke-red)   45%,
    #FFF            45%, #FFF            55%,
    var(--ke-green) 55%, var(--ke-green) 100%);
  opacity: 0.35;
}
.tb-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 700px) { .tb-inner { padding: 0 14px; gap: 12px; } }

.tb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.tb-brand .crest {
  width: 30px; height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(201, 162, 39, 0.4));
  flex-shrink: 0;
}
.tb-brand .txt {
  display: flex; flex-direction: column; line-height: 1.1;
}
.tb-brand .txt .b1 {
  font-size: 14px;
  font-weight: var(--fw-bold);
  color: #FFF;
  letter-spacing: var(--tracking-wide);
}
.tb-brand .txt .b1 em { font-style: normal; color: var(--nps-gold-500); }
.tb-brand .txt .b2 {
  font-size: 9px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1px;
}
@media (max-width: 480px) { .tb-brand .txt .b2 { display: none; } }

/* Optional page title chip after brand (e.g. "Dashboard") */
.tb-page {
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: rgba(255, 255, 255, 0.75);
  padding-left: 16px;
  margin-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: var(--tracking-snug);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
@media (max-width: 700px) { .tb-page { display: none; } }

/* Back button + breadcrumb */
.tb-back {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #FFF;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}
.tb-back:hover { background: rgba(255,255,255,0.14); }
.tb-back svg { width: 16px; height: 16px; }
.tb-back:disabled { opacity: 0.4; cursor: not-allowed; }

.tb-crumb {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
}
.tb-crumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out);
}
.tb-crumb a:hover { background: rgba(255,255,255,0.08); color: #FFF; }
.tb-crumb .sep { color: rgba(255,255,255,0.3); font-family: var(--font-mono); font-size: 10px; padding: 0 2px; }
.tb-crumb .current {
  color: var(--nps-gold-400);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) { .tb-crumb { display: none; } }

/* Recently visited flyout on hover of back button */
.tb-back-wrap { position: relative; }
.recent-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 260px;
  background: var(--surface-0);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
  padding: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
  z-index: 60;
}
.tb-back-wrap.is-open .recent-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.recent-menu .rm-head {
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 800;
}
.recent-menu .rm-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-1);
  cursor: pointer;
  text-decoration: none;
}
.recent-menu .rm-item:hover { background: var(--surface-1); color: var(--nps-navy-900); }
.recent-menu .rm-item .rm-ic { font-size: 15px; opacity: 0.7; }
.recent-menu .rm-item .rm-lb { flex: 1; }
.recent-menu .rm-item .rm-t { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); }
.recent-menu .rm-empty { padding: 14px; text-align: center; color: var(--ink-3); font-size: 12px; }

/* Inline nav (desktop only) */
.tb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  height: 100%;
}
.tb-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  position: relative;
  letter-spacing: var(--tracking-snug);
}
.tb-nav a svg { width: 15px; height: 15px; opacity: 0.85; }
.tb-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #FFF; }
.tb-nav a.is-active {
  color: var(--nps-gold-400);
  background: rgba(201, 162, 39, 0.1);
}
.tb-nav a.is-active svg { color: var(--nps-gold-500); }
.tb-nav .tag {
  padding: 1px 5px;
  background: linear-gradient(135deg, var(--nps-gold-500), var(--nps-gold-600));
  color: var(--nps-navy-900);
  border-radius: var(--r-full);
  font-size: 9px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-widest);
}

@media (max-width: 900px) {
  .tb-nav { display: none; }
}

/* Right-side actions */
.tb-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
@media (min-width: 901px) { .tb-actions { margin-left: 12px; } }
@media (max-width: 900px) { .tb-actions { margin-left: auto; } }

.tb-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  color: rgba(255, 255, 255, 0.78);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  position: relative;
}
.tb-btn:hover { background: rgba(255, 255, 255, 0.08); color: #FFF; }
.tb-btn svg { width: 20px; height: 20px; }
.tb-btn .badge {
  position: absolute; top: 6px; right: 6px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: #EF4444;
  color: #FFF;
  font-size: 10px;
  font-weight: var(--fw-bold);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--nps-navy-900);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.tb-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nps-gold-500), var(--nps-gold-600));
  color: var(--nps-navy-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: var(--fw-bold);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.1);
  margin-left: 4px;
  transition: transform var(--dur-fast) var(--ease-out);
  overflow: hidden;
  padding: 0;
}
.tb-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.tb-avatar:hover { transform: scale(1.04); border-color: rgba(255, 255, 255, 0.25); }

/* Bottom mobile-only hamburger (opens drawer) */
.tb-menu-btn { display: none; }
@media (max-width: 900px) {
  .tb-menu-btn { display: flex; }
  /* Hide the desktop-only avatar on mobile — the tabbar Menu handles nav */
}

/* ============================ NOTIFICATIONS DROPDOWN ============================ */
.tb-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 20px;
  min-width: 360px;
  max-width: 400px;
  background: var(--surface-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-4);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  z-index: var(--z-elevated);
  max-height: 75vh;
  display: flex;
  flex-direction: column;
}
.tb-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tb-dropdown .dd-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: space-between;
}
.tb-dropdown .dd-head h4 { font-size: 14px; color: var(--ink-0); margin: 0; }
.tb-dropdown .dd-head .mark-all {
  font-size: 12px; color: var(--nps-navy-700);
  background: none; border: 0; cursor: pointer; font-weight: var(--fw-semi);
}
.tb-dropdown .dd-body { flex: 1; overflow-y: auto; }
.tb-dropdown .nx-item {
  padding: 12px 18px;
  display: flex; gap: 12px;
  border-bottom: 1px solid var(--border-1);
  transition: background var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.tb-dropdown .nx-item:hover { background: var(--surface-1); }
.tb-dropdown .nx-item.unread { background: rgba(201, 162, 39, 0.05); }
.tb-dropdown .nx-item .nx-ic {
  width: 34px; height: 34px;
  background: var(--nps-navy-50);
  color: var(--nps-navy-700);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tb-dropdown .nx-item .nx-ic svg { width: 16px; height: 16px; }
.tb-dropdown .nx-body { flex: 1; min-width: 0; }
.tb-dropdown .nx-title { font-size: 13px; color: var(--ink-1); line-height: 1.4; font-weight: var(--fw-medium); }
.tb-dropdown .nx-meta { font-size: 11px; color: var(--ink-4); margin-top: 4px; letter-spacing: 0.02em; }
.tb-dropdown .dd-foot {
  padding: 10px 18px;
  border-top: 1px solid var(--border-1);
  text-align: center;
}
.tb-dropdown .dd-foot a { font-size: 12px; color: var(--nps-navy-700); font-weight: var(--fw-semi); text-decoration: none; }

@media (max-width: 480px) {
  .tb-dropdown {
    left: 12px; right: 12px;
    min-width: 0;
    max-width: none;
  }
}

/* ============================ USER MENU (rich dropdown from avatar) ============================ */
.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 20px;
  width: 320px;
  max-height: 82vh;
  background: var(--surface-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-4);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  z-index: var(--z-elevated);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.user-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.um-header {
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border-1);
  background: linear-gradient(180deg, var(--nps-navy-50), var(--surface-0));
  flex-shrink: 0;
}
.um-header .um-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nps-gold-500), var(--nps-gold-600));
  color: var(--nps-navy-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.28);
}
.um-header .um-txt { flex: 1; min-width: 0; }
.um-header .um-name {
  font-size: 14px;
  font-weight: var(--fw-bold);
  color: var(--nps-navy-900);
  letter-spacing: var(--tracking-snug);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.um-header .um-role {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.um-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}
.um-scroll::-webkit-scrollbar { width: 6px; }
.um-scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

.um-group + .um-group { border-top: 1px solid var(--border-1); margin-top: 4px; padding-top: 4px; }
.um-group-title {
  padding: 8px 16px 4px;
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: var(--fw-bold);
}
.um-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px;
  color: var(--ink-1);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out);
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
}
.um-item:hover { background: var(--nps-navy-50); }
.um-item .um-ic {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--nps-navy-700);
  flex-shrink: 0;
}
.um-item .um-ic svg { width: 16px; height: 16px; }
.um-item .um-lb { flex: 1; }
.um-item .um-tag {
  margin-left: auto;
  padding: 1px 6px;
  background: var(--nps-gold-100);
  color: var(--nps-gold-800);
  border-radius: var(--r-full);
  font-size: 9px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-widest);
}
.um-item.danger { color: var(--danger); }
.um-item.danger .um-ic { color: var(--danger); }
.um-item.danger:hover { background: rgba(220, 38, 38, 0.06); }

/* ============================ MAIN ============================ */
.app-main {
  flex: 1;
  padding: 28px 24px;
  max-width: var(--page-max);
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}
@media (max-width: 900px) {
  .app-main {
    padding: 18px 14px calc(var(--mobile-tabbar-h) + 20px);
  }
}

/* ============================ MOBILE DRAWER ============================ */
.app-drawer {
  position: fixed; inset: 0;
  z-index: var(--z-drawer);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.app-drawer.open { opacity: 1; pointer-events: auto; }
.app-drawer .scrim {
  position: absolute; inset: 0;
  background: rgba(6, 15, 36, 0.7);
  backdrop-filter: blur(6px);
}
.app-drawer .sheet {
  position: absolute; bottom: 0; left: 0; right: 0;
  max-height: 85vh;
  background: linear-gradient(180deg, var(--nps-navy-950), var(--nps-navy-900));
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease-emphasis);
  border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.app-drawer.open .sheet { transform: translateY(0); }
.app-drawer .handle {
  width: 44px; height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}
.app-drawer .head {
  padding: 12px 20px 8px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.app-drawer .head h4 {
  font-size: 14px;
  color: #FFF;
  letter-spacing: var(--tracking-snug);
}
.app-drawer .head .close {
  width: 32px; height: 32px;
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
}
.app-drawer .head .close:hover { background: rgba(255,255,255,0.06); color: #FFF; }
.app-drawer .body { flex: 1; overflow-y: auto; padding: 8px 0; }

.drawer-group + .drawer-group {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 6px; padding-top: 6px;
}
.drawer-group-title {
  padding: 10px 20px 4px;
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: var(--fw-bold);
}
.drawer-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out);
}
.drawer-item:hover { background: rgba(255, 255, 255, 0.06); color: #FFF; }
.drawer-item .di-ic {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--nps-gold-400);
  flex-shrink: 0;
}
.drawer-item .di-ic svg { width: 18px; height: 18px; }
.drawer-item.is-active { color: var(--nps-gold-400); background: rgba(201, 162, 39, 0.08); }
.drawer-item .di-tag {
  margin-left: auto;
  padding: 1px 6px;
  background: linear-gradient(135deg, var(--nps-gold-500), var(--nps-gold-600));
  color: var(--nps-navy-900);
  border-radius: var(--r-full);
  font-size: 9px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-widest);
}
.drawer-item.danger { color: #FCA5A5; }
.drawer-item.danger .di-ic { color: #FCA5A5; }

/* ============================ BOTTOM TAB BAR (mobile only) ============================ */
.app-tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-topbar);
  height: calc(var(--mobile-tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(6, 15, 36, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  justify-content: space-around;
  align-items: stretch;
}
@media (max-width: 900px) { .app-tabbar { display: flex; } }

.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: var(--fw-semi);
  letter-spacing: var(--tracking-wide);
  padding: 6px 4px;
  position: relative;
  min-height: 44px;
  transition: color var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.tab:active { transform: scale(0.96); }
.tab svg { width: 22px; height: 22px; }
.tab.is-active { color: var(--nps-gold-500); }
.tab.is-active::before {
  content: "";
  position: absolute; top: 0; left: 30%; right: 30%;
  height: 2px;
  background: var(--nps-gold-500);
  border-radius: 0 0 2px 2px;
}
.tab .tab-badge {
  position: absolute; top: 4px; right: 25%;
  min-width: 14px; height: 14px;
  padding: 0 3px;
  background: #DC2626;
  color: #FFF;
  font-size: 9px;
  font-weight: var(--fw-bold);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
}

/* ============================ COMMAND PALETTE (⌘K) ============================ */
.cmd-scrim {
  position: fixed; inset: 0;
  background: rgba(6, 15, 36, 0.6);
  backdrop-filter: blur(6px);
  z-index: var(--z-modal);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 20px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.cmd-scrim.open { opacity: 1; pointer-events: auto; }
.cmd-panel {
  width: 100%;
  max-width: 560px;
  background: var(--surface-0);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-4);
  overflow: hidden;
  transform: translateY(-16px);
  transition: transform var(--dur-base) var(--ease-spring);
}
.cmd-scrim.open .cmd-panel { transform: translateY(0); }
.cmd-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-1);
}
.cmd-input-row svg { width: 20px; height: 20px; color: var(--ink-4); }
.cmd-input {
  flex: 1;
  font-size: 16px;
  border: 0; outline: none;
  background: transparent;
  color: var(--ink-0);
  font-family: var(--font-sans);
}
.cmd-esc {
  padding: 2px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.cmd-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 8px;
}
.cmd-cat {
  padding: 8px 12px 4px;
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: var(--fw-semi);
}
.cmd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-1);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.cmd-item:hover, .cmd-item.is-highlighted {
  background: var(--nps-navy-50);
  color: var(--nps-navy-900);
}
.cmd-item .ic {
  width: 28px; height: 28px;
  background: var(--surface-2);
  color: var(--ink-2);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cmd-item:hover .ic, .cmd-item.is-highlighted .ic {
  background: var(--nps-navy-100);
  color: var(--nps-navy-700);
}
.cmd-item .ic svg { width: 14px; height: 14px; }
.cmd-item .lb { flex: 1; }
.cmd-item .lb .n { font-weight: var(--fw-semi); }
.cmd-item .lb .m { font-size: 11px; color: var(--ink-4); }
.cmd-item .chev { color: var(--ink-4); }
.cmd-item .chev svg { width: 14px; height: 14px; }
.cmd-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-4);
  font-size: 13px;
}
.cmd-foot {
  padding: 10px 20px;
  border-top: 1px solid var(--border-1);
  display: flex; align-items: center; gap: 16px;
  font-size: 11px;
  color: var(--ink-4);
  background: var(--surface-1);
}
.cmd-foot .k {
  padding: 2px 6px;
  background: var(--surface-0);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 10px;
}

@media (max-width: 900px) {
  .desktop-only { display: none !important; }
}
@media (min-width: 901px) {
  .mobile-only { display: none !important; }
}
