/* Elikser PeopleOps V3 — Shared portal shell styles (framework-independent) */
:root {
  --pc-ink: #0f172a;
  --pc-ink-2: #1e293b;
  --pc-muted: #64748b;
  --pc-line: #e2e8f0;
  --pc-bg: #f8fafc;
  --pc-brand: #4f46e5;
  --pc-brand-2: #4338ca;
  --pc-brand-soft: #eef2ff;
  --pc-ok: #059669;
  --pc-warn: #d97706;
  --pc-bad: #e11d48;
  --pc-radius: 12px;
  --pc-shadow: 0 20px 45px -15px rgba(15, 23, 42, .35);
}
.pc-hidden { display: none !important; }
/* Default icon sizing inside all shell components (specific rules below override) */
.pc-sidebar svg, .pc-cluster svg, .pc-pop svg, .pc-drawer svg, .pc-cmd svg, .pc-access svg,
.pc-toast svg, .pc-preview svg, .pc-help svg, .pc-mobile-menu svg { width: 16px; height: 16px; flex-shrink: 0; }
.pc-sidebar, .pc-cluster, .pc-pop, .pc-drawer, .pc-cmd, .pc-access, .pc-toasts, .pc-preview, .pc-help {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; line-height: 1.35;
}
.pc-me svg { color: #94a3b8; }

/* ---------- Sidebar ---------- */
.pc-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  width: 264px; flex-shrink: 0;
  display: flex; flex-direction: column;
  background: #0b1220; color: #e2e8f0;
  border-right: 1px solid #111b2e;
  transform: translateX(-100%);
  transition: transform .2s ease;
}
.pc-sidebar.pc-open { transform: translateX(0); box-shadow: var(--pc-shadow); }
@media (min-width: 1024px) {
  .pc-sidebar { position: static; transform: none; }
}
.pc-side-backdrop {
  position: fixed; inset: 0; z-index: 55; background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(2px);
}
@media (min-width: 1024px) { .pc-side-backdrop { display: none !important; } }
.pc-brand {
  display: flex; align-items: center; gap: 10px;
  height: 64px; padding: 0 18px; border-bottom: 1px solid #16213a;
  text-decoration: none; color: #fff;
}
.pc-brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #4338ca); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .8);
}
.pc-brand-title { font-weight: 700; font-size: 14px; letter-spacing: -.01em; line-height: 1.1; }
.pc-brand-sub { font-size: 10.5px; color: #a5b4fc; font-weight: 600; letter-spacing: .02em; }
.pc-nav { flex: 1; overflow-y: auto; padding: 10px 10px 14px; }
.pc-nav::-webkit-scrollbar { width: 6px; }
.pc-nav::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 9px; }
.pc-nav-group {
  margin: 14px 10px 6px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: #64748b;
}
.pc-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin: 1px 0; border-radius: 9px;
  color: #cbd5e1; font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background .15s, color .15s;
}
.pc-nav-item:hover { background: #131d33; color: #fff; }
.pc-nav-item:focus-visible { outline: 2px solid #818cf8; outline-offset: 1px; }
.pc-nav-item.pc-active { background: var(--pc-brand); color: #fff; box-shadow: 0 6px 14px -8px rgba(79, 70, 229, .9); }
.pc-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .85; }
.pc-nav-item .pc-nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-nav-item .pc-nav-mod {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 9.5px;
  color: #64748b; padding: 1px 5px; border-radius: 5px; border: 1px solid #1e293b;
}
.pc-nav-item.pc-active .pc-nav-mod { color: #e0e7ff; border-color: rgba(255, 255, 255, .25); }
.pc-nav-item.pc-locked { color: #64748b; }
.pc-nav-item.pc-locked svg.pc-lock { width: 12px; height: 12px; opacity: .7; }
.pc-nav-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: #f59e0b; color: #1f1300; font-size: 10.5px; font-weight: 700;
}
.pc-side-footer { border-top: 1px solid #16213a; padding: 12px; }
.pc-me {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 9px 10px; border-radius: 10px; background: #111a2e; border: 1px solid #1a2540;
  color: #fff; cursor: pointer; font: inherit;
}
.pc-me:hover { background: #16213a; }
.pc-avatar {
  width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff;
}
.pc-me-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-me-role { font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Header cluster ---------- */
.pc-cluster { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pc-hbtn {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 11px; border-radius: 10px;
  border: 1px solid var(--pc-line); background: #fff; color: var(--pc-ink-2);
  font-family: inherit; font-size: 12.5px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.pc-hbtn:hover { background: var(--pc-bg); border-color: #cbd5e1; }
.pc-hbtn:focus-visible { outline: 2px solid var(--pc-brand); outline-offset: 2px; }
.pc-hbtn svg { width: 16px; height: 16px; }
.pc-hbtn.pc-icon { width: 36px; padding: 0; justify-content: center; }
.pc-search-btn { min-width: 190px; justify-content: flex-start; color: var(--pc-muted); }
.pc-search-btn .pc-kbd { margin-left: auto; }
@media (max-width: 1180px) { .pc-search-btn { min-width: 0; } .pc-search-btn .pc-search-txt, .pc-search-btn .pc-kbd { display: none; } }
.pc-kbd {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px;
  padding: 2px 6px; border-radius: 6px; border: 1px solid var(--pc-line); background: var(--pc-bg); color: var(--pc-muted);
}
.pc-badge-dot {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--pc-bad); color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
.pc-persona-btn { padding: 0 8px 0 4px; }
.pc-persona-btn .pc-avatar { width: 28px; height: 28px; font-size: 10.5px; }
.pc-persona-btn .pc-pn { max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; line-height: 1.35; padding: 1px 0; }
@media (max-width: 1280px) { .pc-persona-btn .pc-pn { display: none; } }
.pc-mobile-menu { display: inline-flex; }
@media (min-width: 1024px) { .pc-mobile-menu { display: none !important; } }
@media (max-width: 640px) {
  .pc-cluster { gap: 6px; flex-wrap: nowrap; }
  .pc-hbtn { height: 34px; padding: 0 8px; }
  .pc-hbtn.pc-icon, .pc-search-btn { width: 34px; padding: 0; justify-content: center; }
  .pc-review-btn .pc-rv-txt, .pc-review-btn svg:last-child { display: none; }
  .pc-persona-btn svg:last-child { display: none; }
  header .pc-review-only { display: none !important; }
  header h1 + p, header p.hidden { display: none !important; }
}

/* ---------- Popovers / menus ---------- */
.pc-pop {
  position: fixed; z-index: 90; min-width: 260px; max-width: 340px;
  background: #fff; border: 1px solid var(--pc-line); border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow); padding: 6px; color: var(--pc-ink);
  animation: pc-in .12s ease-out;
}
@keyframes pc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pc-pop-h { padding: 8px 10px 6px; font-size: 10.5px; font-weight: 700; color: var(--pc-muted); text-transform: uppercase; letter-spacing: .08em; }
.pc-pop-item {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 8px 10px; border: 0; background: transparent; border-radius: 8px;
  font: inherit; font-size: 13px; color: var(--pc-ink-2); cursor: pointer; text-decoration: none;
}
.pc-pop-item:hover, .pc-pop-item:focus-visible { background: var(--pc-bg); outline: none; }
.pc-pop-item svg { width: 16px; height: 16px; color: var(--pc-muted); flex-shrink: 0; }
.pc-pop-item .pc-sub { font-size: 11.5px; color: var(--pc-muted); }
.pc-pop-item.pc-on { background: var(--pc-brand-soft); }
.pc-pop-sep { height: 1px; background: var(--pc-line); margin: 6px 4px; }
.pc-switch {
  margin-left: auto; width: 32px; height: 18px; border-radius: 999px; background: #cbd5e1; position: relative; flex-shrink: 0;
  transition: background .15s;
}
.pc-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 999px; background: #fff; transition: transform .15s; }
.pc-switch.pc-on { background: var(--pc-brand); }
.pc-switch.pc-on::after { transform: translateX(14px); }
.pc-chip { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--pc-bg); color: var(--pc-muted); border: 1px solid var(--pc-line); white-space: nowrap; }

/* ---------- Drawer (Inbox) ---------- */
.pc-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); animation: pc-fade .15s; }
@keyframes pc-fade { from { opacity: 0; } to { opacity: 1; } }
.pc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 85; width: min(440px, 100vw);
  background: #fff; display: flex; flex-direction: column; box-shadow: var(--pc-shadow);
  animation: pc-slide .18s ease-out; color: var(--pc-ink);
}
@keyframes pc-slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.pc-drawer-h { padding: 16px 18px 0; border-bottom: 1px solid var(--pc-line); }
.pc-drawer-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-drawer-title h2 { margin: 0; font-size: 16px; font-weight: 700; }
.pc-tabs { display: flex; gap: 4px; margin-top: 12px; }
.pc-tab {
  padding: 9px 12px; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--pc-muted); border-bottom: 2px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.pc-tab.pc-on { color: var(--pc-brand); border-bottom-color: var(--pc-brand); }
.pc-tab .pc-n { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: var(--pc-bg); color: var(--pc-muted); border: 1px solid var(--pc-line); }
.pc-tab.pc-on .pc-n { background: var(--pc-brand-soft); color: var(--pc-brand); border-color: #c7d2fe; }
.pc-drawer-b { flex: 1; overflow-y: auto; padding: 12px 14px 20px; background: var(--pc-bg); }
.pc-drawer-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 12px; color: var(--pc-muted); }
.pc-link-btn { border: 0; background: transparent; color: var(--pc-brand); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 2px 4px; }
.pc-link-btn:hover { text-decoration: underline; }
.pc-card {
  background: #fff; border: 1px solid var(--pc-line); border-radius: 11px; padding: 12px; margin-bottom: 8px;
}
.pc-card.pc-unread { border-left: 3px solid var(--pc-brand); }
.pc-card-top { display: flex; align-items: flex-start; gap: 10px; }
.pc-card-title { font-size: 13px; font-weight: 600; color: var(--pc-ink); }
.pc-card-body { font-size: 12.5px; color: #475569; margin-top: 2px; line-height: 1.45; }
.pc-card-meta { font-size: 11px; color: var(--pc-muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pc-type {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; text-transform: capitalize;
  background: var(--pc-brand-soft); color: var(--pc-brand-2);
}
.pc-status { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pc-status.Pending { background: #fef3c7; color: #92400e; }
.pc-status.Approved { background: #d1fae5; color: #065f46; }
.pc-status.Rejected { background: #ffe4e6; color: #9f1239; }
.pc-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pc-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid var(--pc-line); background: #fff; color: var(--pc-ink-2);
  text-decoration: none;
}
.pc-btn:hover { background: var(--pc-bg); }
.pc-btn svg { width: 14px; height: 14px; }
.pc-btn.pc-ok { background: var(--pc-ok); border-color: var(--pc-ok); color: #fff; }
.pc-btn.pc-ok:hover { background: #047857; }
.pc-btn.pc-bad { color: var(--pc-bad); border-color: #fecdd3; }
.pc-btn.pc-bad:hover { background: #fff1f2; }
.pc-btn.pc-primary { background: var(--pc-brand); border-color: var(--pc-brand); color: #fff; }
.pc-btn.pc-primary:hover { background: var(--pc-brand-2); }
.pc-btn[disabled] { opacity: .5; cursor: not-allowed; }
.pc-reject-box textarea {
  width: 100%; margin-top: 8px; min-height: 58px; resize: vertical; border: 1px solid #fecdd3; border-radius: 8px; padding: 8px;
  font: inherit; font-size: 12.5px;
}
.pc-reject-box textarea:focus { outline: 2px solid #fda4af; }
.pc-empty { text-align: center; padding: 36px 12px; color: var(--pc-muted); font-size: 13px; }
.pc-empty svg { width: 34px; height: 34px; color: #cbd5e1; margin: 0 auto 8px; display: block; }

/* ---------- Command palette ---------- */
.pc-cmd {
  position: fixed; z-index: 95; top: 12vh; left: 50%; transform: translateX(-50%);
  width: min(620px, calc(100vw - 24px)); background: #fff; border-radius: 14px; box-shadow: var(--pc-shadow);
  border: 1px solid var(--pc-line); overflow: hidden; animation: pc-in .12s ease-out; color: var(--pc-ink);
}
.pc-cmd-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--pc-line); }
.pc-cmd-in svg { width: 18px; height: 18px; color: var(--pc-muted); }
.pc-cmd-in input { flex: 1; border: 0; outline: none; font: inherit; font-size: 15px; background: transparent; color: var(--pc-ink); }
.pc-cmd-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
.pc-cmd-sec { padding: 8px 10px 4px; font-size: 10.5px; font-weight: 700; color: var(--pc-muted); text-transform: uppercase; letter-spacing: .08em; }
.pc-cmd-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.pc-cmd-item svg { width: 16px; height: 16px; color: var(--pc-muted); flex-shrink: 0; }
.pc-cmd-item .pc-sub { margin-left: auto; font-size: 11.5px; color: var(--pc-muted); }
.pc-cmd-item.pc-sel { background: var(--pc-brand-soft); color: var(--pc-brand-2); }
.pc-cmd-item.pc-sel svg { color: var(--pc-brand); }
.pc-cmd-foot { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--pc-line); font-size: 11.5px; color: var(--pc-muted); background: var(--pc-bg); }

/* ---------- Access banner ---------- */
.pc-access {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 14px 24px 0; padding: 11px 14px; border-radius: 12px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; font-size: 13px;
}
.pc-access svg { width: 18px; height: 18px; color: #ea580c; flex-shrink: 0; }
.pc-access .pc-access-txt { flex: 1; min-width: 220px; }
.pc-access .pc-access-txt b { color: #431407; }

/* ---------- Device preview ---------- */
.pc-preview {
  position: fixed; inset: 0; z-index: 100; background: #0b1220f2;
  display: flex; flex-direction: column; align-items: center; padding: 14px; gap: 12px; color: #e2e8f0;
}
.pc-preview-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.pc-preview-bar .pc-hbtn { background: #131d33; border-color: #1e293b; color: #e2e8f0; }
.pc-preview-bar .pc-hbtn.pc-on { background: var(--pc-brand); border-color: var(--pc-brand); }
.pc-device {
  flex: 1; min-height: 0; background: #fff; border-radius: 22px; overflow: hidden;
  border: 10px solid #1e293b; box-shadow: 0 30px 80px -20px #000; transition: width .2s;
}
.pc-device iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Review annotations ---------- */
body:not(.pc-notes-off) .pc-annot {
  text-decoration: underline dotted #f59e0b; text-underline-offset: 3px;
}
body:not(.pc-notes-off) .pc-annot-block {
  outline: 1px dashed #fbbf24; outline-offset: 2px; border-radius: 4px;
}
body.pc-notes-off .pc-annot, body.pc-notes-off .pc-annot-block, body.pc-notes-off .pc-review-only { display: none !important; }

/* ---------- Toast ---------- */
.pc-toasts { position: fixed; z-index: 110; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.pc-toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: 11px; background: var(--pc-ink); color: #fff;
  font-size: 13px; box-shadow: var(--pc-shadow); animation: pc-in .15s ease-out;
}
.pc-toast svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.pc-toast.ok svg { color: #34d399; }
.pc-toast.warn svg { color: #fbbf24; }
.pc-toast.bad svg { color: #fb7185; }
.pc-toast .pc-t-action { margin-left: auto; color: #a5b4fc; font-weight: 600; background: none; border: 0; cursor: pointer; font: inherit; font-size: 12.5px; white-space: nowrap; }

/* ---------- Shortcut help ---------- */
.pc-help { position: fixed; z-index: 96; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 24px));
  background: #fff; border-radius: 14px; box-shadow: var(--pc-shadow); padding: 18px; color: var(--pc-ink); }
.pc-help h3 { margin: 0 0 10px; font-size: 15px; }
.pc-help-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--pc-line); font-size: 13px; }
.pc-help-row:last-child { border-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .pc-sidebar, .pc-pop, .pc-drawer, .pc-cmd, .pc-toast, .pc-overlay { animation: none !important; transition: none !important; }
}
