/*
 * Nicebro AIO production visual overlay — 2026-08-22
 *
 * Applied after the current production chunks. The overlay intentionally
 * changes presentation only: existing Vue state, API calls, permissions and
 * editing flows stay untouched.
 */

:root {
  --orb-ink: #08224a;
  --orb-text: #17365d;
  --orb-muted: #5b7292;
  --orb-faint: #7d91aa;
  --orb-blue: #0d6efd;
  --orb-blue-strong: #075bd8;
  --orb-cyan: #20c9e8;
  --orb-teal: #0e9f86;
  --orb-coral: #e84c63;
  --orb-amber: #d7860c;
  --orb-page: #ffffff;
  --orb-soft: #f5f9fe;
  --orb-tint: #eef6ff;
  --orb-line: #d9e5f2;
  --orb-line-strong: #bdd3e9;
  --orb-shadow: 0 12px 34px rgba(8, 34, 74, .08);
  --orb-glow: 0 0 0 1px rgba(32, 201, 232, .58), 0 12px 30px rgba(13, 110, 253, .15), 0 0 22px rgba(32, 201, 232, .12);
  --brand: var(--orb-blue);
  --brand-hover: var(--orb-blue-strong);
  --brand-2: #1054b7;
  --brand-rgb: 13, 110, 253;
  --bg: var(--orb-page);
  --surface: #ffffff;
  --surface-2: var(--orb-soft);
  --surface-3: #f8fbff;
  --text: var(--orb-text);
  --text-strong: var(--orb-ink);
  --heading: var(--orb-ink);
  --text-muted: var(--orb-muted);
  --text-subtle: var(--orb-faint);
  --border: var(--orb-line);
  --border-strong: var(--orb-line-strong);
  --border-soft: #e8f0f8;
  --track: #e8f0f8;
  --hover-1: var(--orb-tint);
  --hover-2: var(--orb-soft);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --shadow-xs: 0 1px 2px rgba(8, 34, 74, .04);
  --shadow-sm: 0 4px 14px rgba(8, 34, 74, .06);
  --shadow-md: var(--orb-shadow);
  --shadow-lg: 0 18px 44px rgba(8, 34, 74, .14);
  --ring: 0 0 0 2px #fff, 0 0 0 4px var(--orb-blue-strong);
  --gradient-brand: linear-gradient(135deg, var(--orb-blue), #0859cf);
  --bg-grad: none;
}

html,
body,
body #pmd-app {
  min-height: 100%;
  color: var(--orb-text);
  background: var(--orb-page);
  background-image: none;
  font-family: "Avenir Next", "DIN Alternate", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

body #pmd-app button,
body #pmd-app input,
body #pmd-app select,
body #pmd-app textarea {
  font: inherit;
}

body #pmd-app .page-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 32px;
}

body #pmd-app :where(.dash, #pa, .risk-center, .talent-page, .quicknav-page, #userAdminPage, .personnel-wrap, .tc, #accountPage, .pd-panel) {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* ---------- authenticated top navigation ---------- */
body #pmd-app .topbar {
  height: 60px;
  padding: 0 24px;
  background: rgba(255, 255, 255, .97);
  border: 0;
  border-bottom: 1px solid var(--orb-line);
  box-shadow: 0 2px 14px rgba(8, 34, 74, .04);
  backdrop-filter: blur(14px) saturate(145%);
}

body #pmd-app .topbar-inner {
  height: 60px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

body #pmd-app .topbar-left { gap: 12px; min-width: 0; }
body #pmd-app .topbar-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(232, 76, 99, .45)) drop-shadow(0 0 8px rgba(32, 201, 232, .22));
  animation: orbLogoReveal 1.2s cubic-bezier(.2, .8, .2, 1) both;
}
body #pmd-app .topbar h1 {
  color: var(--orb-ink);
  font-size: 18px;
  font-weight: 730;
  letter-spacing: -.02em;
  white-space: nowrap;
}
body #pmd-app .topbar-nav {
  margin: 0 auto;
  gap: 8px;
}
body #pmd-app .topbar-nav a {
  height: 60px;
  padding: 0 13px;
  border-radius: 0;
  color: #385677;
  font-size: 14px;
  font-weight: 580;
}
body #pmd-app .topbar-nav a:hover { background: #f5f9fe; color: var(--orb-blue-strong); }
body #pmd-app .topbar-nav a.active {
  color: var(--orb-blue-strong);
  background: linear-gradient(180deg, rgba(238, 246, 255, 0) 0%, #edf6ff 100%);
}
body #pmd-app .topbar-nav a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--orb-blue), var(--orb-cyan));
  box-shadow: 0 0 10px rgba(32, 201, 232, .38);
}
body #pmd-app .user-info { border-radius: 8px; padding: 4px 8px 4px 4px; }
body #pmd-app .user-info:hover { background: var(--orb-soft); }
body #pmd-app .avatar-initials,
body #pmd-app .user-avatar-image {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(13, 110, 253, .28), 0 0 14px rgba(32, 201, 232, .16);
}
body #pmd-app .user-dropdown {
  border: 1px solid var(--orb-line);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(8, 34, 74, .16);
}
body #pmd-app .user-dropdown-header { background: #f5f9fe; border-color: var(--orb-line); }

@keyframes orbLogoReveal {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-6px); }
  62% { opacity: 1; clip-path: inset(0 0 0 0); }
  78% { filter: drop-shadow(0 0 9px rgba(232, 76, 99, .78)) drop-shadow(0 0 13px rgba(32, 201, 232, .52)); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
}

/* ---------- private pre-auth orbital entry ---------- */
body #pmd-app .landing-page.stark-mode {
  background: #020812 url('/orbital-earth-hero.jpg') center 69% / cover no-repeat;
  font-family: "Avenir Next", "DIN Alternate", "PingFang SC", sans-serif;
}
body #pmd-app .landing-page.stark-mode::before {
  background:
    radial-gradient(circle at 76% 66%, rgba(25, 164, 255, .10), transparent 24%),
    linear-gradient(180deg, rgba(1, 7, 18, .10), rgba(1, 7, 18, .24));
}
body #pmd-app .landing-page.stark-mode::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 17% 18%, rgba(255,255,255,.85) 0 1px, transparent 1.4px),
    radial-gradient(circle at 74% 26%, rgba(87,206,255,.75) 0 1px, transparent 1.4px),
    radial-gradient(circle at 84% 44%, rgba(255,255,255,.62) 0 1px, transparent 1.4px);
  background-size: 173px 173px, 227px 227px, 311px 311px;
  opacity: .26;
}
body #pmd-app .landing-card-stark {
  width: min(420px, calc(100vw - 40px));
  padding: 38px 36px 34px;
  gap: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(4, 18, 42, .60), rgba(4, 18, 42, .24));
  border: 1px solid rgba(120, 215, 255, .32);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .10), 0 0 28px rgba(32, 201, 232, .11);
  backdrop-filter: blur(18px) saturate(145%);
  animation: orbEntry .7s cubic-bezier(.2,.8,.2,1) both;
}
body #pmd-app .stark-quote-main {
  color: #fff;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: .08em;
  text-shadow: 0 0 18px rgba(55, 194, 255, .36);
}
body #pmd-app .stark-quote-sub {
  color: #7ee7ff;
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
}
body #pmd-app .btn-stark {
  width: 100%;
  margin-top: 12px;
  padding: 12px 20px;
  border: 1px solid rgba(92, 213, 255, .66);
  border-radius: 8px;
  color: #eafaff;
  background: linear-gradient(135deg, rgba(13,110,253,.62), rgba(32,201,232,.22));
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 0 18px rgba(32,201,232,.16);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .34em;
}
body #pmd-app .btn-stark:hover {
  letter-spacing: .38em;
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(13,110,253,.82), rgba(32,201,232,.34));
  box-shadow: 0 0 0 1px rgba(94, 220, 255, .55), 0 0 30px rgba(32,201,232,.30);
}
body #pmd-app .credit-logos,
body #pmd-app .credits-line { display: none; }
body #pmd-app .landing-credits { padding: 12px 20px 18px; background: none; }
body #pmd-app .credits-icp { color: rgba(218, 238, 255, .58); }

@keyframes orbEntry {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}

/* ---------- shared orbital banner ---------- */
body #pmd-app :where(.home-hero, .kanban-hero, .risk-hero, .talent-hero, .td-hero, .personnel-header, .ua-header, .account-header, .quicknav-header, .detail-header) {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #04132a;
  background-image: linear-gradient(90deg, rgba(2, 12, 29, .90) 0%, rgba(3, 24, 55, .70) 42%, rgba(5, 31, 68, .13) 78%), url('/orbital-earth-hero.jpg');
  background-position: center 69%;
  background-size: cover;
  border: 1px solid rgba(18, 97, 170, .66);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(8, 34, 74, .10), inset 0 1px rgba(255,255,255,.06);
}
body #pmd-app :where(.home-hero, .kanban-hero, .risk-hero, .talent-hero, .td-hero, .personnel-header, .ua-header, .account-header, .quicknav-header, .detail-header)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0 72%, rgba(87, 218, 255, .11) 100%);
  mix-blend-mode: screen;
}
body #pmd-app :where(.home-hero, .kanban-hero, .risk-hero, .talent-hero, .td-hero, .personnel-header, .ua-header, .account-header, .quicknav-header, .detail-header) :where(h1, h2, .home-hero-title, .td-hero-title, .personnel-eyebrow, .account-name, .quicknav-header) {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 20, 55, .45);
}
body #pmd-app :where(.home-hero, .kanban-hero, .risk-hero, .talent-hero, .td-hero, .personnel-header, .ua-header, .account-header, .quicknav-header) :where(p, span, small, .ua-sub, .account-email, .personnel-scope) {
  color: rgba(231, 246, 255, .83);
}
body #pmd-app :where(.home-hero, .kanban-hero, .td-hero) :where(.earth-img, .grid-bg, .binary, .circuit, .orbit, .td-earth, .td-grid, .td-orbit, .td-orbit-dot) {
  display: none;
}

/* ---------- overview ---------- */
body #pmd-app .dash { display: grid; gap: 16px; }
body #pmd-app .home-hero {
  min-height: 118px;
  padding: 22px 28px;
}
body #pmd-app .home-hero-copy { position: relative; z-index: 1; max-width: 720px; }
body #pmd-app .home-hero-meta { position: relative; z-index: 1; }
body #pmd-app .ops-overview {
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--orb-line);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(8, 34, 74, .06);
  overflow: hidden;
}
body #pmd-app .ops-head {
  padding: 18px 20px;
  background: linear-gradient(180deg, #f8fbff, #f2f8fe);
  border-bottom: 1px solid var(--orb-line);
}
body #pmd-app .ops-kpis,
body #pmd-app .ops-primary-grid,
body #pmd-app .ops-secondary-grid { padding-left: 18px; padding-right: 18px; }
body #pmd-app .ops-panel {
  border: 1px solid var(--orb-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
body #pmd-app .workbench-grid { gap: 16px; }
body #pmd-app .work-card,
body #pmd-app .star-card {
  background: #fff;
  border: 1px solid var(--orb-line);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(8, 34, 74, .05);
  overflow: hidden;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
body #pmd-app .work-card:hover,
body #pmd-app .star-card:hover,
body #pmd-app .ops-panel:hover {
  border-color: rgba(32, 201, 232, .58);
  box-shadow: var(--orb-glow);
  transform: translateY(-1px);
}
body #pmd-app .work-card-head {
  background: #f7fbff;
  border: 0;
  border-bottom: 1px solid var(--orb-line);
}

/* ---------- project ledger ---------- */
body #pmd-app #pa { padding: 0; }
body #pmd-app #pa .pa-main { width: 100%; max-width: none; }
body #pmd-app #pa .pa-kpis.kanban-hero {
  position: relative;
  top: auto;
  min-height: 132px;
  margin: 0 0 16px;
  padding: 20px 24px;
  gap: 20px;
}
body #pmd-app #pa .kanban-hero > * { position: relative; z-index: 1; }
body #pmd-app #pa .kanban-hero .kpi-hero,
body #pmd-app #pa .kanban-hero .kpi-stats > * {
  min-width: 112px;
  background: rgba(2, 16, 38, .30);
  border: 1px solid rgba(151, 221, 255, .20);
  border-radius: 8px;
  box-shadow: none;
  backdrop-filter: blur(5px);
}
body #pmd-app #pa .kanban-hero .kpi-hero:hover,
body #pmd-app #pa .kanban-hero .kpi-stats > *:hover { transform: none; border-color: rgba(85, 220, 255, .58); box-shadow: 0 0 18px rgba(32,201,232,.14); }
body #pmd-app #pa .ds {
  margin: 0 0 16px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--orb-line);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(8, 34, 74, .05);
  overflow: hidden;
}
body #pmd-app #pa :where(.dh, .dh-multi) {
  min-height: 46px;
  margin: 0;
  padding: 0 16px;
  background: linear-gradient(180deg, #f9fcff, #f3f8fd);
  border: 0;
  border-bottom: 1px solid var(--orb-line);
  border-radius: 0;
}
body #pmd-app #pa .dh-title { color: var(--orb-ink); font-size: 14px; }
body #pmd-app #pa .dc { color: var(--orb-muted); }
body #pmd-app #pa .orbital-ledger-head {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) 112px 112px 126px minmax(190px, 1.25fr) minmax(190px, 1.2fr) minmax(148px, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  background: #fbfdff;
  border-bottom: 1px solid var(--orb-line);
  color: #657b98;
  font-size: 12px;
  font-weight: 650;
}
body #pmd-app #pa .grid { display: block; margin: 0; padding: 0; }
body #pmd-app #pa .grid + .grid { margin: 0; }
body #pmd-app #pa .grid .card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) 112px 112px 126px minmax(190px, 1.25fr) minmax(190px, 1.2fr) minmax(148px, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #e8eff7;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transform: none;
}
body #pmd-app #pa .grid:last-child .card:last-child { border-bottom: 0; }
body #pmd-app #pa .grid .card:hover {
  z-index: 2;
  background: #f9fcff;
  box-shadow: inset 0 0 0 1px rgba(32, 201, 232, .70), 0 0 20px rgba(32, 201, 232, .10);
  transform: none;
}
body #pmd-app #pa .card .ch { min-width: 0; padding: 0; border: 0; }
body #pmd-app #pa .card .caa { width: 38px; height: 38px; border-radius: 8px; background: #fff; border: 1px solid #e0e9f3; }
body #pmd-app #pa .card .ct { color: var(--orb-ink); font-size: 14px; line-height: 1.45; }
body #pmd-app #pa .card .cc { color: var(--orb-muted); font-size: 12px; }
body #pmd-app #pa .card .ch-tags { margin-top: 4px; }
body #pmd-app #pa .card .paa { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; margin: 0; padding: 0; }
body #pmd-app #pa .card .paa .pl { grid-column: 1 / -1; font-size: 11px; color: var(--orb-muted); }
body #pmd-app #pa .card .paa .pli { display: none; }
body #pmd-app #pa .card .pb { height: 5px; background: #e8f0f8; border-radius: 10px; }
body #pmd-app #pa .card .pp { color: var(--orb-ink); font-size: 13px; }
body #pmd-app #pa .card .mt-chip { margin: 0; padding: 6px 8px; border: 1px solid #dce8f4; border-radius: 7px; background: #f7fbff; font-size: 12px; }
body #pmd-app #pa .card .mr { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 0; padding: 0; border: 0; }
body #pmd-app #pa .card .mrb { padding: 0 7px; border-left: 1px solid #e3ecf5; }
body #pmd-app #pa .card .mrb:first-child { border-left: 0; }
body #pmd-app #pa .card .mrL,
body #pmd-app #pa .card .igl { color: var(--orb-muted); font-size: 11px; }
body #pmd-app #pa .card .mrV,
body #pmd-app #pa .card .igv { color: var(--orb-ink); font-size: 13px; }
body #pmd-app #pa .card .ig { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 0; padding: 0; border: 0; }
body #pmd-app #pa .card .igb { padding: 0 6px; border-left: 1px solid #e3ecf5; }
body #pmd-app #pa .card .igb:first-child { border-left: 0; }
body #pmd-app #pa .card .igb:nth-child(n+4) { display: none; }
body #pmd-app #pa .card .rs { min-width: 0; margin: 0; padding: 6px 8px; border: 0; background: #f7fbff; border-radius: 7px; }
body #pmd-app #pa .card .rl { margin: 0; min-width: 0; font-size: 12px; }
body #pmd-app #pa .card .rl-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body #pmd-app #pa .card .member-alerts { grid-column: 1 / -1; margin: 0; }
body #pmd-app #pa .card .ca { top: 5px; right: 6px; }

/* ---------- risk center: preserve the production left classification rail ---------- */
body #pmd-app .risk-center { display: grid; gap: 14px; }
body #pmd-app .risk-hero { min-height: 126px; padding: 22px 26px; }
body #pmd-app .risk-hero > * { position: relative; z-index: 1; }
body #pmd-app .risk-hero button { align-self: center; }
body #pmd-app .risk-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--orb-line);
  border-radius: 10px;
  overflow: hidden;
}
body #pmd-app .risk-summary article { border: 0; border-right: 1px solid var(--orb-line); border-radius: 0; box-shadow: none; }
body #pmd-app .risk-summary article:last-child { border-right: 0; }
body #pmd-app .risk-list-panel { width: 100%; border: 1px solid var(--orb-line); border-radius: 10px; background: #fff; box-shadow: none; overflow: hidden; }
body #pmd-app .risk-controls { background: #f7fbff; border-bottom: 1px solid var(--orb-line); }
body #pmd-app .risk-row { border: 0; border-bottom: 1px solid #e7eef7; border-radius: 0; box-shadow: none; background: #fff; }
body #pmd-app .risk-row:hover { background: #f8fcff; box-shadow: inset 0 0 0 1px rgba(32,201,232,.56); }
body #pmd-app :where(.risk-catalog, .risk-controls, .risk-row) { font-size: 14px; }
body #pmd-app :where(.risk-row small, .risk-meta, .risk-subtitle) { font-size: 12px; line-height: 1.55; }

/* ---------- talent: always use the continuous ledger ---------- */
body #pmd-app .talent-page { display: grid; gap: 14px; }
body #pmd-app .talent-hero { min-height: 126px; padding: 20px 24px; }
body #pmd-app .talent-hero > * { position: relative; z-index: 1; }
body #pmd-app .talent-hero .hero-metric { background: rgba(3, 18, 42, .34); border: 1px solid rgba(131, 216, 255, .20); box-shadow: none; }
body #pmd-app .segment-tabs,
body #pmd-app .talent-controls { border: 1px solid var(--orb-line); border-radius: 9px; background: #fff; box-shadow: none; }
body #pmd-app .view-switch { display: none; }
body #pmd-app .table-wrap { border: 1px solid var(--orb-line); border-radius: 10px; background: #fff; overflow: auto; box-shadow: 0 6px 20px rgba(8,34,74,.05); }
body #pmd-app .table-wrap table { width: 100%; border-collapse: collapse; }
body #pmd-app .table-wrap thead th { padding: 12px 14px; color: #5d7492; background: #f7fbff; border-bottom: 1px solid var(--orb-line); font-size: 12px; }
body #pmd-app .table-wrap tbody td { padding: 13px 14px; color: var(--orb-text); border-bottom: 1px solid #e8eff7; font-size: 14px; }
body #pmd-app .table-wrap tbody tr:last-child td { border-bottom: 0; }
body #pmd-app .table-wrap tbody tr:hover { background: #f8fcff; box-shadow: inset 0 0 0 1px rgba(32,201,232,.48); }

/* ---------- quick navigation, personnel, todos, account, user admin ---------- */
body #pmd-app .quicknav-page { padding: 0; }
body #pmd-app .quicknav-header {
  display: flex;
  align-items: center;
  min-height: 116px;
  margin-bottom: 14px;
  padding: 22px 26px;
  font-size: 24px;
  font-weight: 720;
}
body #pmd-app .quicknav-grid { display: block; border: 1px solid var(--orb-line); border-radius: 10px; background: #fff; overflow: hidden; }
body #pmd-app .quicknav-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 120px; min-height: 66px; margin: 0; padding: 10px 14px; border: 0; border-bottom: 1px solid #e8eff7; border-radius: 0; box-shadow: none; transform: none; }
body #pmd-app .quicknav-card:last-child { border-bottom: 0; }
body #pmd-app .quicknav-card:hover { background: #f8fcff; border-color: #e8eff7; box-shadow: inset 0 0 0 1px rgba(32,201,232,.52); transform: none; }
body #pmd-app .quicknav-name { color: var(--orb-ink); font-size: 14px; }
body #pmd-app .quicknav-client { color: var(--orb-muted); font-size: 12px; }

body #pmd-app .personnel-wrap { display: grid; gap: 14px; padding: 0; }
body #pmd-app .personnel-header { min-height: 126px; padding: 20px 24px; }
body #pmd-app .personnel-header > * { position: relative; z-index: 1; }
body #pmd-app .personnel-controls,
body #pmd-app .personnel-command,
body #pmd-app .status-rail { border: 1px solid var(--orb-line); border-radius: 9px; background: #fff; box-shadow: none; }
body #pmd-app .personnel-card { border: 1px solid var(--orb-line); border-radius: 9px; background: #fff; box-shadow: none; }
body #pmd-app .personnel-card:hover { border-color: rgba(32,201,232,.58); box-shadow: var(--orb-glow); transform: translateY(-1px); }

body #pmd-app .tc { padding: 0; }
body #pmd-app .td-hero { min-height: 126px; margin: 0 0 14px; padding: 20px 26px; }
body #pmd-app .td-hero > * { position: relative; z-index: 1; }
body #pmd-app .tc-bar,
body #pmd-app .dept-cards,
body #pmd-app .tc-list { margin-left: 0; margin-right: 0; }
body #pmd-app .dept-card { border: 1px solid var(--orb-line); border-radius: 9px; box-shadow: none; background: #fff; }
body #pmd-app .dept-card:hover,
body #pmd-app .dept-card.on { border-color: rgba(32,201,232,.58); box-shadow: var(--orb-glow); }
body #pmd-app .tc-list { border: 1px solid var(--orb-line); border-radius: 10px; background: #fff; overflow: hidden; }

body #pmd-app #accountPage { padding: 0; }
body #pmd-app .account-header { min-height: 126px; margin-bottom: 14px; padding: 20px 26px; }
body #pmd-app .account-header > * { position: relative; z-index: 1; }
body #pmd-app .account-section { border: 1px solid var(--orb-line); border-radius: 10px; box-shadow: none; background: #fff; }

body #pmd-app #userAdminPage { padding: 0; }
body #pmd-app .ua-header { min-height: 126px; margin-bottom: 14px; padding: 20px 24px; align-items: center; }
body #pmd-app .ua-header > * { position: relative; z-index: 1; }
body #pmd-app .ua-card { border: 1px solid var(--orb-line); border-radius: 10px; box-shadow: none; padding: 0; }
body #pmd-app .ua-table th { background: #f7fbff; border-color: var(--orb-line); color: #5d7492; }
body #pmd-app .ua-table td { border-color: #e8eff7; }

/* ---------- project detail and phase ruler ---------- */
body #pmd-app .pd-panel { padding: 0; }
body #pmd-app .detail-header { min-height: 92px; margin-bottom: 14px; padding: 16px 20px; }
body #pmd-app .detail-header > * { position: relative; z-index: 1; }
body #pmd-app .detail-header .dh-title { color: #fff; }
body #pmd-app .detail-header .btn-back { color: #bcecff; }
body #pmd-app .detail-section {
  border: 1px solid var(--orb-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
body #pmd-app .roadmap-section { margin-bottom: 14px; border-top: 3px solid #0d6efd; }
body #pmd-app .rb-rail { height: 6px; border-radius: 3px; background: #dce7f3; box-shadow: none; }
body #pmd-app .rb-fill { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--orb-blue), var(--orb-cyan)); box-shadow: none; }
body #pmd-app .rb-dot { width: 9px; height: 9px; border-radius: 2px; box-shadow: none; }
body #pmd-app .rb-node.current .rb-dot { width: 12px; height: 12px; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--orb-blue); }
body #pmd-app .rb-now-pill { border-radius: 4px; background: var(--orb-blue-strong); box-shadow: none; }
body #pmd-app .dash-main { gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body #pmd-app .sec-head { background: #f7fbff; border-bottom: 1px solid var(--orb-line); }
body #pmd-app .three-blocks,
body #pmd-app .fin-strip,
body #pmd-app .info-grid { gap: 10px; }

/* ---------- shared controls and overlays ---------- */
body #pmd-app :where(button, .el-button) {
  border-radius: 7px;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body #pmd-app :where(.el-button--primary, .ua-btn-primary, .pk-btn-add, .personnel-add, .stark-submit) {
  color: #fff;
  background: linear-gradient(135deg, var(--orb-blue), #0758c8);
  border: 1px solid transparent;
  box-shadow: 0 5px 14px rgba(13,110,253,.20);
}
body #pmd-app :where(.el-button--primary, .ua-btn-primary, .pk-btn-add, .personnel-add, .stark-submit):hover {
  color: #fff;
  background: linear-gradient(135deg, #1678ff, #064fb8);
  box-shadow: 0 0 0 1px rgba(32,201,232,.52), 0 8px 20px rgba(13,110,253,.24), 0 0 18px rgba(32,201,232,.14);
  transform: translateY(-1px);
}
body #pmd-app :where(.el-button:not(.el-button--primary), .tc-btn, .pk-btn-edit) {
  color: var(--orb-blue-strong);
  background: #f1f7ff;
  border-color: #c8dcf0;
  box-shadow: none;
}
body #pmd-app :where(.el-button:not(.el-button--primary), .tc-btn, .pk-btn-edit):hover {
  color: #064fb8;
  background: #e7f3ff;
  border-color: #83b7e9;
}
body #pmd-app :where(.ws-link, .ua-link, .text-link, .risk-open) { color: var(--orb-blue-strong); background: transparent; border: 0; box-shadow: none; }
body #pmd-app :where(.annDelBtn, .ua-danger, .el-button--danger) { color: #b62e43; }
body #pmd-app :where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
body #pmd-app :where(input, select, textarea, .el-input__wrapper, .el-select__wrapper) {
  border-color: var(--orb-line-strong);
  border-radius: 7px;
  color: var(--orb-text);
  background: #fff;
  box-shadow: none;
}
body #pmd-app :where(input, select, textarea):focus,
body #pmd-app :where(.el-input__wrapper, .el-select__wrapper).is-focus {
  border-color: var(--orb-blue);
  box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}

body .el-overlay { background: rgba(2, 15, 35, .38); backdrop-filter: blur(5px); }
body .el-dialog,
body .el-drawer {
  overflow: hidden;
  border: 1px solid rgba(123, 181, 224, .62);
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 28px 80px rgba(2,15,35,.28), 0 0 0 1px rgba(32,201,232,.18), 0 0 32px rgba(32,201,232,.10);
}
body .el-dialog__header,
body .el-drawer__header {
  margin: 0;
  padding: 16px 20px;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(2,12,29,.94), rgba(4,31,68,.68), rgba(4,31,68,.22)), url('/orbital-earth-hero.jpg');
  background-position: center 69%;
  background-size: cover;
  border: 0;
}
body .el-dialog__title,
body .el-drawer__title { color: #fff; font-size: 15px; font-weight: 680; }
body .el-dialog__headerbtn .el-dialog__close,
body .el-drawer__close-btn { color: rgba(230,247,255,.82); }
body .el-dialog__body,
body .el-drawer__body { color: var(--orb-text); background: #fff; }
body .el-dialog__footer { padding: 12px 20px 16px; border-top: 1px solid var(--orb-line); background: #fbfdff; }
body .el-message-box { border: 1px solid rgba(123,181,224,.62); border-radius: 12px; box-shadow: 0 28px 80px rgba(2,15,35,.28); }
body .el-message,
body .el-notification { border: 1px solid rgba(32,201,232,.34); box-shadow: 0 18px 44px rgba(8,34,74,.18); }

@media (max-width: 1480px) {
  body #pmd-app #pa .orbital-ledger-head,
  body #pmd-app #pa .grid .card {
    grid-template-columns: minmax(220px, 1.75fr) 105px 105px 120px minmax(180px, 1.2fr) minmax(165px, 1fr) minmax(138px, .95fr);
    gap: 8px;
  }
}

@media (max-width: 1120px) {
  body #pmd-app .topbar { padding: 0 20px; }
  body #pmd-app .topbar h1 { display: none; }
  body #pmd-app .topbar-nav { overflow-x: auto; justify-content: flex-start; }
  body #pmd-app #pa .orbital-ledger-head { display: none; }
  body #pmd-app #pa .grid .card {
    grid-template-columns: minmax(240px, 1.6fr) 120px 120px minmax(180px, 1fr);
  }
  body #pmd-app #pa .card .mr,
  body #pmd-app #pa .card .ig,
  body #pmd-app #pa .card .rs { grid-column: auto; }
  body #pmd-app #pa .card .ig { display: none; }
  body #pmd-app .dash-main { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body #pmd-app .page-container { padding: 10px 16px 24px; }
  body #pmd-app .topbar { height: 56px; padding: 0 12px; }
  body #pmd-app .topbar-inner { height: 56px; }
  body #pmd-app .topbar-logo { width: 32px; height: 32px; }
  body #pmd-app .topbar-nav a { height: 56px; padding: 0 9px; font-size: 12px; }
  body #pmd-app .user-details { display: none; }
  body #pmd-app :where(.home-hero, .kanban-hero, .risk-hero, .talent-hero, .td-hero, .personnel-header, .ua-header, .account-header, .quicknav-header) {
    min-height: 108px;
    padding: 16px;
    background-position: 61% 69%;
  }
  body #pmd-app .risk-summary { grid-template-columns: repeat(2, 1fr); }
  body #pmd-app .risk-summary article:nth-child(2) { border-right: 0; }
  body #pmd-app .risk-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--orb-line); }
  body #pmd-app #pa .grid .card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
  }
  body #pmd-app #pa .card .ch { grid-column: 1 / -1; }
  body #pmd-app #pa .card .mt-chip,
  body #pmd-app #pa .card .mr,
  body #pmd-app #pa .card .rs { grid-column: 1 / -1; }
  body #pmd-app .quicknav-card { grid-template-columns: 40px minmax(0,1fr); }
  body #pmd-app .quicknav-card > .tag { grid-column: 2; justify-self: start; }
  body .el-dialog { width: calc(100vw - 24px) !important; max-height: calc(100vh - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  body #pmd-app .topbar-logo,
  body #pmd-app .landing-card-stark { animation: none; }
}
