/*
 * 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: 15px;
  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: 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 {
  display: none;
}
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: 20px;
  color: #19344f;
  background: #f4f7fa;
  border: 1px solid #d7e1ec;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(24, 53, 83, .07);
}
body #pmd-app .ops-head {
  padding: 0;
  background: transparent;
  border: 0;
}
body #pmd-app .ops-kpis,
body #pmd-app .ops-primary-grid,
body #pmd-app .ops-secondary-grid { padding-left: 0; padding-right: 0; }
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: preserve the user's card / table choice ---------- */
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: inline-flex; }
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;
  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); }

/* ---------- r3 correction layer: readability, real layouts and dialogs ---------- */
body #pmd-app {
  font-size: 15px;
  letter-spacing: 0;
}
body #pmd-app :where(button, input, select, textarea, .el-button, .el-input__inner, .el-select__placeholder) {
  font-size: 14px;
}
body #pmd-app :where(.el-table, table) { font-size: 14px; }
body #pmd-app :where(.el-table th, table th) { font-size: 13px; }
body #pmd-app .el-tag { font-size: 12px !important; }

/* Keep the orbital image crisp: no page-wide veil over the photograph. */
body #pmd-app :where(.home-hero, .kanban-hero, .risk-hero, .talent-hero, .td-hero, .personnel-header, .ua-header, .account-header, .quicknav-header, .detail-header) {
  background-image: url('/orbital-earth-hero.jpg');
  background-color: #031229;
  filter: none;
}
body #pmd-app :where(.home-hero, .kanban-hero, .risk-hero, .talent-hero, .td-hero, .personnel-header, .ua-header, .account-header, .quicknav-header, .detail-header)::before,
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 {
  display: none !important;
}

/* Homepage typography and compact actions. */
body #pmd-app .home-hero-copy p { font-size: 13px; font-weight: 650; letter-spacing: .14em; }
body #pmd-app .home-hero-copy h1 { font-size: 30px; line-height: 1.18; }
body #pmd-app .home-hero-copy > span { font-size: 15px; line-height: 1.55; }
body #pmd-app .home-hero-meta > span { font-size: 13px; }
body #pmd-app .home-hero-meta strong { font-size: 28px; }
body #pmd-app .home-hero-meta small { font-size: 12px; }
body #pmd-app .work-card-head { min-height: 52px; padding: 0 14px; }
body #pmd-app .work-card-head strong { font-size: 16px; }
body #pmd-app .work-card-head > span,
body #pmd-app .work-card-head small { font-size: 12px; }
body #pmd-app .work-card-head :where(button, .btn, .mini-btn) {
  width: auto;
  min-width: 0;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 28px;
}
body #pmd-app .work-card-head .work-card-actions { gap: 8px; }
body #pmd-app .work-list li { min-height: 58px; }
body #pmd-app .work-list li strong { font-size: 14px; line-height: 1.45; }
body #pmd-app .work-list li :where(p, .meta) { font-size: 12.5px; line-height: 1.5; }
body #pmd-app .work-list li :where(time, small) { font-size: 12px; }
body #pmd-app .todo-number { font-size: 15px; }

/* Restore the original operations overview hierarchy, only increasing type. */
body #pmd-app .ops-overview { padding: 20px; background: #f4f7fa; overflow: visible; }
body #pmd-app .ops-head { margin-bottom: 14px; }
body #pmd-app .ops-title h2 { font-size: 22px; }
body #pmd-app .ops-title :where(p, span) { font-size: 13px; }
body #pmd-app .ops-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0;
  background: #d7e1ec;
  border: 1px solid #d7e1ec;
  border-radius: 12px;
  gap: 1px;
}
body #pmd-app .ops-kpis > article { min-height: 96px; padding: 14px 16px; }
body #pmd-app .ops-kpis span { font-size: 12.5px; }
body #pmd-app .ops-kpis strong { font-size: 23px; }
body #pmd-app .ops-kpis small { font-size: 11.5px; }
body #pmd-app .value-chain {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  padding: 0;
}
body #pmd-app .value-chain-label strong { font-size: 15px; }
body #pmd-app .value-chain-label span { font-size: 12px; }
body #pmd-app .value-stage :where(span, small) { font-size: 12px; }
body #pmd-app .value-stage strong { font-size: 19px; }
body #pmd-app .ops-panel-head strong { font-size: 16px; }
body #pmd-app .ops-panel-head :where(span, small) { font-size: 12px; }
body #pmd-app .ops-overview :where(td, .dept-row, .recognition-copy, .cycle-copy) { font-size: 13px; }

/* Project ledger: every information group owns a stable column and never spills below the row. */
body #pmd-app #pa .orbital-ledger-head,
body #pmd-app #pa .grid .card {
  grid-template-columns: minmax(250px, 1.9fr) 94px 94px 126px minmax(178px, 1.18fr) minmax(142px, .92fr) minmax(174px, 1.08fr);
  column-gap: 10px;
}
body #pmd-app #pa .grid .card { grid-template-rows: auto auto; min-height: 110px; }
body #pmd-app #pa .card > .ch { grid-column: 1; grid-row: 1 / 3; }
body #pmd-app #pa .card > .orbital-delivery { grid-column: 2; grid-row: 1 / 3; }
body #pmd-app #pa .card > .orbital-acceptance { grid-column: 3; grid-row: 1 / 3; }
body #pmd-app #pa .card > .mt-chip { grid-column: 4; grid-row: 1 / 3; }
body #pmd-app #pa .card > .mr { grid-column: 5; grid-row: 1 / 3; }
body #pmd-app #pa .card > .ig { grid-column: 6; grid-row: 1 / 3; }
body #pmd-app #pa .card > .member-alerts { grid-column: 7; grid-row: 1; align-self: end; }
body #pmd-app #pa .card > .rs { grid-column: 7; grid-row: 2; align-self: start; }
body #pmd-app #pa .card:not(:has(> .rs)) > .member-alerts,
body #pmd-app #pa .card:not(:has(> .member-alerts)) > .rs { grid-row: 1 / 3; align-self: center; }
body #pmd-app #pa .card .member-alerts { margin: 0; min-width: 0; }
body #pmd-app #pa .card .ct { font-size: 15px; line-height: 1.4; }
body #pmd-app #pa .card .cc,
body #pmd-app #pa .card .paa .pl,
body #pmd-app #pa .card :where(.mrL, .igl) { font-size: 12px; }
body #pmd-app #pa .card :where(.pp, .mrV, .igv) { font-size: 14px; }
body #pmd-app #pa .card .mt-chip,
body #pmd-app #pa .card .rl { font-size: 13px; }

/* Talent keeps both modes; controls and detail content use a readable scale. */
body #pmd-app .view-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #eef4fa;
  border: 1px solid var(--orb-line);
  border-radius: 8px;
}
body #pmd-app .view-switch button { min-height: 30px; padding: 0 13px; font-size: 13px; border-radius: 6px; }
body #pmd-app .talent-controls :where(input, select) { min-height: 40px; font-size: 14px; }
body #pmd-app .talent-card h2 { font-size: 16px; }
body #pmd-app .talent-card :where(.role-line, .block-label, .release-head, footer, small, p) { font-size: 12px; }
body #pmd-app .talent-card :where(.assignment-row strong, .release-head strong) { font-size: 13px; }
body #pmd-app .member-detail :where(p, dt, small, .detail-section-title) { font-size: 12.5px; }
body #pmd-app .member-detail :where(strong, dd) { font-size: 14px; }

/* Rebuild the old milestone rail as the approved phase ruler. */
body #pmd-app .roadmap-section.orbital-phase-ready {
  padding: 16px 18px 14px;
  border: 1px solid var(--orb-line);
  border-radius: 10px;
  background: #fff;
  overflow-x: auto;
}
body #pmd-app .roadmap-section.orbital-phase-ready > :where(.rb-pct-label, .roadmap-bar) { display: none; }
body #pmd-app .orbital-phase-ruler { min-width: 1040px; }
body #pmd-app .orbital-phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
  padding: 0 4px 10px;
}
body #pmd-app .orbital-phase-header > div:first-child { display: flex; align-items: baseline; gap: 10px; }
body #pmd-app .orbital-phase-header h2 { color: var(--orb-ink); font-size: 17px; font-weight: 720; }
body #pmd-app .orbital-phase-header > div:first-child span { color: var(--orb-muted); font-size: 13px; }
body #pmd-app .orbital-phase-summary { display: flex; align-items: center; gap: 0; white-space: nowrap; }
body #pmd-app .orbital-phase-summary > span { display: inline-flex; align-items: baseline; gap: 6px; padding: 0 14px; border-left: 1px solid var(--orb-line); }
body #pmd-app .orbital-phase-summary > span:first-child { border-left: 0; }
body #pmd-app .orbital-phase-summary small { color: var(--orb-muted); font-size: 12px; }
body #pmd-app .orbital-phase-summary strong { color: #075bd8; font-size: 15px; }
body #pmd-app .orbital-phase-progress { height: 3px; background: #dce7f3; }
body #pmd-app .orbital-phase-progress span { display: block; height: 100%; background: #0d6efd; }
body #pmd-app .orbital-phase-stages {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--orb-line);
  border-top: 0;
}
body #pmd-app .orbital-phase-stage {
  min-height: 96px;
  padding: 11px 12px;
  background: #fff;
  border-left: 1px solid var(--orb-line);
}
body #pmd-app .orbital-phase-stage:first-child { border-left: 0; }
body #pmd-app .orbital-phase-stage.is-completed { background: #eef5ff; }
body #pmd-app .orbital-phase-stage.is-current { background: #f7fbff; box-shadow: inset 0 3px #0d6efd, inset 0 0 0 1px #0d6efd; }
body #pmd-app .orbital-phase-stage.is-upcoming { background: #fbfcfe; }
body #pmd-app .orbital-phase-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
body #pmd-app .orbital-phase-stage-head b { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 24px; color: #4f6787; background: #edf3f9; border: 1px solid #cddbea; border-radius: 5px; font-size: 12px; }
body #pmd-app .is-completed .orbital-phase-stage-head b { color: #fff; background: #0d6efd; border-color: #0d6efd; }
body #pmd-app .is-current .orbital-phase-stage-head b { color: #075bd8; background: #fff; border-color: #0d6efd; }
body #pmd-app .orbital-phase-stage-head span { color: #5b7292; font-size: 12px; font-weight: 650; }
body #pmd-app .is-current .orbital-phase-stage-head span { color: #075bd8; }
body #pmd-app .orbital-phase-stage > strong { display: block; overflow: hidden; color: var(--orb-ink); font-size: 14px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
body #pmd-app .orbital-phase-stage > time { display: block; margin-top: 4px; color: #4f6787; font-size: 12.5px; }
body #pmd-app .orbital-phase-footer { display: flex; justify-content: space-between; gap: 20px; padding: 10px 4px 0; color: #4f6787; font-size: 13px; }
body #pmd-app .roadmap-section .rb-foot-actions { padding-top: 10px; }

/* Approved two-column project detail workspace. The cabin rail stays light. */
body #pmd-app .dash-main.orbital-workspace-ready {
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  gap: 14px;
  align-items: start;
}
body #pmd-app .orbital-workspace-ready > :where(.col-left, .col-right) {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--orb-line);
  border-radius: 10px;
}
body #pmd-app .orbital-workspace-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 52px;
  padding: 14px 18px;
  background: #f5f8fc;
  border-bottom: 1px solid var(--orb-line);
}
body #pmd-app .orbital-workspace-title h2 { color: #075bd8; font-size: 18px; font-weight: 720; }
body #pmd-app .orbital-workspace-title span { color: var(--orb-muted); font-size: 13px; }
body #pmd-app .orbital-workspace-ready .col-left { padding-left: 34px; }
body #pmd-app .orbital-workspace-ready .col-left::before {
  content: "";
  position: absolute;
  top: 76px;
  bottom: 28px;
  left: 18px;
  width: 2px;
  background: #d3e5f7;
}
body #pmd-app .orbital-workspace-ready .col-left > .detail-section {
  position: relative;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--orb-line);
  border-radius: 0;
  background: #fff;
}
body #pmd-app .orbital-workspace-ready .col-left > .detail-section::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 18px;
  left: -23px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 3px solid #0d6efd;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #e8f2ff;
}
body #pmd-app .orbital-workspace-ready .col-left > .detail-section:last-child { border-bottom: 0; }
body #pmd-app .orbital-workspace-ready .col-right {
  display: block;
}
body #pmd-app .orbital-workspace-ready .col-right > .detail-section {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--orb-line);
  border-radius: 0;
  background: #fff;
}
body #pmd-app .orbital-workspace-ready .col-right > .onsite-section { border-bottom: 0; }
body #pmd-app .orbital-workspace-ready .sec-head,
body #pmd-app .fin-band-head { min-height: 46px; padding: 0 18px; background: #fbfdff; }
body #pmd-app .orbital-workspace-ready :where(.sec-head h3, .fin-band-head h3) { color: #075bd8; font-size: 16px; }
body #pmd-app .orbital-workspace-ready :where(.info-label, .cm-label, .fm-label, .fr-lbl, .fin-band-hint, .fo-head) { color: #536c8e; font-size: 12.5px; }
body #pmd-app .orbital-workspace-ready :where(.info-item > span:not(.info-label), .cm-item > span:not(.cm-label), .dt-todo-text, .b3-text, .client-name) { color: #163b6e; font-size: 14px; }

/* The execution side is rebuilt from real project rows, not the old section cards. */
body #pmd-app .orbital-workspace-ready .col-left {
  padding-left: 0;
  box-shadow: inset 0 2px 0 rgba(32, 201, 232, .78);
}
body #pmd-app .orbital-workspace-ready .col-left::before { display: none; }
body #pmd-app .orbital-workspace-ready .orbital-execution-source { display: none; }
body #pmd-app .orbital-execution-body {
  position: relative;
  min-height: 720px;
  padding: 18px 18px 30px 112px;
  background: #fff;
}
body #pmd-app .orbital-execution-date {
  position: absolute;
  top: 112px;
  left: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  color: #5b7292;
  font-size: 12px;
  line-height: 1.55;
  white-space: nowrap;
}
body #pmd-app .orbital-execution-date strong { color: #0d6efd; font-size: 13px; }
body #pmd-app .orbital-execution-track {
  position: absolute;
  top: 38px;
  bottom: 36px;
  left: 84px;
  width: 2px;
  background: #d2e5f7;
}
body #pmd-app .orbital-execution-group {
  position: relative;
  margin-bottom: 20px;
}
body #pmd-app .orbital-execution-group:last-child { margin-bottom: 0; }
body #pmd-app .orbital-execution-node {
  position: absolute;
  z-index: 2;
  top: 3px;
  left: -41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: #0d6efd;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #dceaff;
  font-size: 12px;
  font-weight: 800;
}
body #pmd-app .orbital-execution-group--settlement .orbital-execution-node { background: #123f82; }
body #pmd-app .orbital-execution-group--done .orbital-execution-node { background: #0e9f78; box-shadow: 0 0 0 3px #d9f3ea; }
body #pmd-app .orbital-execution-group--problem .orbital-execution-node { background: #e5485c; box-shadow: 0 0 0 3px #ffe3e8; }
body #pmd-app .orbital-execution-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 8px 8px;
}
body #pmd-app .orbital-execution-group-head > div { display: flex; align-items: baseline; gap: 8px; }
body #pmd-app .orbital-execution-group-head h3 { color: #12458c; font-size: 16px; font-weight: 720; }
body #pmd-app .orbital-execution-group-head span { color: #647b98; font-size: 12px; }
body #pmd-app .orbital-execution-group-head b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  color: #df354b;
  background: #fff4f6;
  border: 1px solid #f4aab4;
  border-radius: 12px;
  font-size: 12px;
}
body #pmd-app .orbital-execution-group-head > button { min-height: 28px; padding: 0 9px; }
body #pmd-app .orbital-execution-list { display: grid; gap: 7px; color: #617692; font-size: 13px; }
body #pmd-app .orbital-execution-list > .dt-todo-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  margin: 0;
  padding: 10px 12px;
  color: #173f76;
  background: #fbfdff;
  border: 1px solid #d9e6f3;
  border-radius: 7px;
}
body #pmd-app .orbital-execution-list > .dt-todo-row.dt-ms-row { background: #f3f7ff; border-color: #c9dcfa; }
body #pmd-app .orbital-execution-list .dt-todo-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: #0d6efd;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 720;
}
body #pmd-app .orbital-execution-list .dt-ms-idx { background: #123f82; border-radius: 7px; }
body #pmd-app .orbital-execution-list .dt-todo-body { min-width: 0; }
body #pmd-app .orbital-execution-list .dt-todo-text { color: #173f76; font-size: 14px; line-height: 1.5; }
body #pmd-app .orbital-execution-list .dt-todo-owner { margin-top: 3px; color: #617692; font-size: 12px; }
body #pmd-app .orbital-execution-list :where(.dt-toggle-btn, .tb-done-btn) {
  min-width: 76px;
  min-height: 32px;
  padding: 0 10px;
  color: #075bd8;
  background: #fff;
  border: 1px solid #80aff0;
  border-radius: 6px;
}
body #pmd-app .orbital-phase-entry {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  color: #173f76;
  background: #fbfdff;
  border: 1px solid #d9e6f3;
  border-radius: 7px;
}
body #pmd-app .orbital-phase-entry b { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #fff; background: #123f82; border-radius: 7px; }
body #pmd-app .orbital-phase-entry time { color: #536c8e; font-size: 12px; }
body #pmd-app .orbital-execution-list .tb-done-group { margin: 0; background: #f7fbf9; border: 1px solid #cde8dd; border-radius: 7px; }
body #pmd-app .orbital-execution-list .tb-done-toggle { min-height: 46px; padding: 0 14px; color: #08765a; font-size: 13px; }
body #pmd-app .orbital-execution-list--problem {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body #pmd-app .orbital-execution-list--problem .block-3 {
  min-width: 0;
  min-height: 104px;
  margin: 0;
  padding: 14px;
  background: #fffafb;
  border: 1px solid #f0cbd1;
  border-radius: 7px;
}
body #pmd-app .orbital-execution-list--problem .b3-label { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
body #pmd-app .orbital-execution-list--problem .b3-text { color: #394f6f; font-size: 13px; line-height: 1.6; }

/* Intelligence cabin content follows the selected local layout, without old cards. */
body #pmd-app .orbital-workspace-ready .col-right { box-shadow: inset 0 2px 0 #d6e6f7; }
body #pmd-app .orbital-workspace-ready .col-right > .detail-section { background: #fff; }
body #pmd-app .orbital-finance-ready > .fin-strip { display: none !important; }
body #pmd-app .orbital-finance-ready .fin-sep { display: none; }
body #pmd-app .orbital-finance-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--orb-line);
}
body #pmd-app .orbital-finance-metrics > * {
  min-width: 0;
  min-height: 92px;
  padding: 16px 14px;
  background: #fff;
  border-left: 1px solid var(--orb-line);
}
body #pmd-app .orbital-finance-metrics > :first-child { border-left: 0; }
body #pmd-app .orbital-finance-metrics :where(.fm-label, .fr-lbl) { display: block; margin-bottom: 9px; color: #536c8e; font-size: 12px; white-space: nowrap; }
body #pmd-app .orbital-finance-metrics :where(.fm-val, .fr-pct) { color: var(--orb-ink); font-size: 18px; font-weight: 750; white-space: nowrap; }
body #pmd-app .orbital-finance-metrics .fm-gain .fm-val { color: #08765a; }
body #pmd-app .orbital-finance-metrics .fr-top { display: block; }
body #pmd-app .orbital-finance-metrics .fr-bar { height: 6px; margin-top: 10px; background: #e5edf6; border-radius: 6px; }
body #pmd-app .orbital-basic-section .info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  padding: 10px 18px 16px;
}
body #pmd-app .orbital-basic-section .info-item {
  display: grid;
  grid-template-columns: minmax(112px, .7fr) minmax(0, 1.3fr);
  align-items: baseline;
  min-height: 42px;
  margin: 0;
  padding: 11px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e3ebf4;
  border-radius: 0;
}
body #pmd-app .orbital-basic-section .info-item[style*="grid-column"] { grid-column: 1 / -1 !important; grid-template-columns: 112px minmax(0, 1fr); }
body #pmd-app .orbital-basic-section .info-item :where(.info-label, span:first-child) { color: #536c8e; font-size: 12.5px; }
body #pmd-app .orbital-basic-section .info-item > span:last-child { color: #173f76; font-size: 14px; font-weight: 650; }
body #pmd-app .orbital-workspace-ready .client-section .client-name { margin: 0; padding: 16px 18px; background: #fff; border-bottom: 1px solid var(--orb-line); }
body #pmd-app .orbital-workspace-ready .client-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  padding: 8px 18px 14px;
}
body #pmd-app .orbital-workspace-ready .client-meta .cm-item {
  display: grid;
  grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr);
  align-items: baseline;
  min-height: 40px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e3ebf4;
  border-radius: 0;
}
body #pmd-app .orbital-workspace-ready .client-meta .cm-full { grid-column: 1 / -1; }
body #pmd-app .orbital-workspace-ready .client-history { margin: 0; padding: 12px 18px; border-top: 1px solid var(--orb-line); }
body #pmd-app .orbital-workspace-ready .history-link,
body #pmd-app .orbital-workspace-ready .fo-item { min-height: 38px; margin: 5px 0; padding: 8px 10px; background: #f8fbff; border: 0; border-radius: 6px; }
body #pmd-app .orbital-workspace-ready .onsite-section :where(.onsite-summary, .onsite-filter) { font-size: 12px; }

@media (max-width: 1320px) {
  body #pmd-app .orbital-finance-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body #pmd-app .orbital-finance-metrics > :nth-child(4) { border-left: 0; border-top: 1px solid var(--orb-line); }
  body #pmd-app .orbital-finance-metrics > :nth-child(n+5) { border-top: 1px solid var(--orb-line); }
}

/* Cost information must stay dark on the white intelligence surface. */
body #pmd-app .fin-card.fin-band {
  color: var(--orb-text);
  background: #fff;
  border-color: var(--orb-line);
}
body #pmd-app .fin-card.fin-band :where(h3, .fm-val, .fr-pct, .fo-name, .fo-archived-label) { color: var(--orb-ink); }
body #pmd-app .fin-card.fin-band .fm-gain .fm-val { color: #08765a; }
body #pmd-app .fin-card.fin-band :where(.fm-label, .fr-lbl, .fin-band-hint, .fo-head, .fo-dt) { color: #536c8e; }
body #pmd-app .fin-card.fin-band :where(.fin-sep, .fin-band-head, .fin-orders, .fo-item) { border-color: var(--orb-line); }
body #pmd-app .fin-card.fin-band .fr-bar { background: #e5edf6; }
body #pmd-app .fin-card.fin-band .fo-item { background: #f8fbff; }
body #pmd-app .fin-card.fin-band .fo-item:hover { background: #eef6ff; }
body #pmd-app .fin-card.fin-band .fin-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
body #pmd-app .fin-card.fin-band .fin-strip2 { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
body #pmd-app .fin-card.fin-band .fin-metric,
body #pmd-app .fin-card.fin-band .fin-rate { min-width: 0; padding: 14px 16px; border-left: 1px solid var(--orb-line); }
body #pmd-app .fin-card.fin-band .fin-strip > :first-child { border-left: 0; }

/* Purpose-built dialogs and drawers: quiet header, visible close, structured body. */
body .el-overlay { background: rgba(5, 20, 42, .42); backdrop-filter: blur(3px); }
body .el-dialog,
body .el-drawer {
  position: relative;
  overflow: hidden;
  border: 1px solid #b9cee3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(6, 24, 50, .28);
}
body .el-dialog::before,
body .el-drawer::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #20c9e8 70%, #88e7f6);
}
body .el-dialog__header,
body .el-drawer__header {
  min-height: 64px;
  margin: 0 !important;
  padding: 20px 58px 16px 24px !important;
  color: var(--orb-ink);
  background: #fff;
  background-image: none;
  border-bottom: 1px solid var(--orb-line);
}
body .el-dialog__title,
body .el-drawer__title { color: var(--orb-ink); font-size: 19px; font-weight: 720; }
body .el-dialog__headerbtn,
body .el-drawer__close-btn {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  color: #294d73;
  background: #edf4fb;
  border: 1px solid #cfdeec;
  border-radius: 50%;
}
body .el-dialog__headerbtn .el-dialog__close,
body .el-drawer__close-btn { color: #294d73 !important; font-size: 19px; stroke-width: 2.2; }
body .el-dialog__headerbtn:hover,
body .el-drawer__close-btn:hover { color: #075bd8; background: #e2effc; border-color: #8eb8e5; }
body .el-dialog__body,
body .el-drawer__body { padding: 22px 24px !important; color: var(--orb-text); background: #f7f9fc; font-size: 14px; }
body .el-dialog__footer,
body .el-drawer__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 18px !important;
  background: #fff;
  border-top: 1px solid var(--orb-line);
}
body .el-dialog :where(.form-field, .fg) > label,
body .el-drawer :where(.form-field, .fg) > label { margin-bottom: 7px; color: #36577a; font-size: 13px; font-weight: 650; }
body .el-dialog :where(input, select, textarea, .el-input__wrapper, .el-select__wrapper),
body .el-drawer :where(input, select, textarea, .el-input__wrapper, .el-select__wrapper) { width: 100%; min-height: 42px; color: #17365d; background: #fff; font-size: 14px; }
body .el-dialog textarea,
body .el-drawer textarea { min-height: 108px; line-height: 1.6; }
body .el-dialog :where(.pf-sec, .ue-group, .member-detail, .detail-assignment, .team-editor-row),
body .el-drawer :where(.pf-sec, .ue-group, .member-detail, .detail-assignment, .team-editor-row) {
  background: #fff;
  border: 1px solid var(--orb-line);
  border-radius: 10px;
}
body .el-dialog .member-detail { padding: 16px; }
body .el-dialog .detail-intro { padding-bottom: 14px; border-bottom: 1px solid var(--orb-line); }
body .el-dialog .detail-grid { gap: 1px; overflow: hidden; background: var(--orb-line); border: 1px solid var(--orb-line); border-radius: 8px; }
body .el-dialog .detail-grid > div { padding: 12px; background: #fff; }
body .el-button { min-height: 34px; padding: 0 15px; font-size: 14px; }
body .el-button--small { min-height: 30px; padding: 0 12px; font-size: 13px; }
body .el-dialog__footer .el-button--primary,
body .el-drawer__footer .el-button--primary {
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #0758c8);
  border-color: transparent;
  box-shadow: 0 5px 14px rgba(13, 110, 253, .20);
}

/* Remaining page text: no informative text below 12px. */
body #pmd-app :where(.risk-center, .talent-page, .quicknav-page, #userAdminPage, .personnel-wrap, .tc, #accountPage) :where(p, small, time, .subtitle, .meta, .sub, .hint) { font-size: 12px; line-height: 1.55; }
body #pmd-app :where(.risk-center, .talent-page, .quicknav-page, #userAdminPage, .personnel-wrap, .tc, #accountPage) :where(h3, strong, td, dd, .name) { font-size: 14px; }

/* Global readability floor for information text in all authenticated modules. */
body #pmd-app :where(small, time, .eyebrow, .h3-sub, .ua-sub, .role-line, .user-role, [class*="-label"], [class*="-hint"], [class*="-subtitle"], [class*="-meta"]) {
  font-size: 12px !important;
  line-height: 1.5;
}
body #pmd-app p { font-size: 13px; line-height: 1.55; }
body #pmd-app :where(td, dd) { font-size: 13.5px; }
body #pmd-app :where(button, .btn, .mini-btn) { font-size: 13px; }

@media (max-width: 1120px) {
  body #pmd-app .ops-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body #pmd-app .value-chain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body #pmd-app .value-chain-label { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body #pmd-app .ops-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body #pmd-app .value-chain { grid-template-columns: 1fr; }
}

@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; }
}

/* ---------- r5 project detail: route, equal columns, semantic rows ---------- */
body #pmd-app .orbital-phase-route { min-width: 1040px; }
body #pmd-app .orbital-phase-route-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
  padding: 10px 4px 12px;
  border-bottom: 1px solid var(--orb-line);
}
body #pmd-app .orbital-phase-route-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
body #pmd-app .orbital-phase-route-heading > b {
  color: #0b6bdc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  white-space: nowrap;
}
body #pmd-app .orbital-phase-route-heading > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}
body #pmd-app .orbital-phase-route-heading h2 {
  color: var(--orb-ink);
  font-size: 18px;
  font-weight: 740;
  letter-spacing: -.015em;
  white-space: nowrap;
}
body #pmd-app .orbital-phase-route-heading span {
  color: var(--orb-muted);
  font-size: 12px;
  white-space: nowrap;
}
body #pmd-app .orbital-phase-route-summary {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
body #pmd-app .orbital-phase-route-summary > span {
  display: grid;
  gap: 2px;
  min-width: 104px;
  padding: 0 14px;
  border-left: 1px solid var(--orb-line);
}
body #pmd-app .orbital-phase-route-summary > span:first-child { border-left: 0; }
body #pmd-app .orbital-phase-route-summary small {
  color: var(--orb-muted);
  font-size: 12px;
}
body #pmd-app .orbital-phase-route-summary strong {
  overflow: hidden;
  color: #075bd8;
  font-size: 14px;
  font-weight: 730;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body #pmd-app .orbital-phase-route-period { min-width: 235px !important; }
body #pmd-app .orbital-phase-route-canvas {
  position: relative;
  padding: 14px 24px 8px;
}
body #pmd-app .orbital-phase-route-rail {
  position: absolute;
  top: 44px;
  right: calc(6.25% + 24px);
  left: calc(6.25% + 24px);
  height: 3px;
  background: #d7e2ed;
  border-radius: 2px;
}
body #pmd-app .orbital-phase-route-rail > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0b63d7 0%, #1688e8 68%, #27c8df 100%);
  border-radius: inherit;
}
body #pmd-app .orbital-phase-route-stages {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(8, minmax(118px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
body #pmd-app .orbital-phase-route-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 106px;
  padding: 0 6px;
  color: #617793;
  text-align: center;
}
body #pmd-app .orbital-phase-route-stage > b {
  color: #6a7f9a;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .08em;
  line-height: 18px;
}
body #pmd-app .orbital-phase-route-stop {
  position: absolute;
  top: 23px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #fff;
  background: #fff;
  border: 3px solid #bdcada;
  border-radius: 50%;
  font-size: 11px;
  transform: translateX(-50%);
}
body #pmd-app .orbital-phase-route-stage.is-completed .orbital-phase-route-stop {
  background: #0b63d7;
  border-color: #0b63d7;
}
body #pmd-app .orbital-phase-route-stage.is-current .orbital-phase-route-stop {
  top: 20px;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 5px solid #0b6ff2;
  box-shadow: 0 0 0 5px rgba(39,200,223,.14);
}
body #pmd-app .orbital-phase-route-copy {
  display: grid;
  gap: 2px;
  width: 100%;
  margin-top: 36px;
}
body #pmd-app .orbital-phase-route-copy strong {
  overflow: hidden;
  color: #173b67;
  font-size: 13px;
  font-weight: 690;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body #pmd-app .orbital-phase-route-copy time {
  color: #59708e;
  font-size: 12px;
}
body #pmd-app .orbital-phase-route-stage > span:last-child {
  margin-top: 3px;
  color: #71849d;
  font-size: 11px;
  font-weight: 650;
}
body #pmd-app .orbital-phase-route-stage.is-completed > b,
body #pmd-app .orbital-phase-route-stage.is-completed > span:last-child { color: #0b63d7; }
body #pmd-app .orbital-phase-route-stage.is-current > b,
body #pmd-app .orbital-phase-route-stage.is-current > span:last-child,
body #pmd-app .orbital-phase-route-stage.is-current .orbital-phase-route-copy strong { color: #075ee6; }
body #pmd-app .orbital-phase-route-stage.is-upcoming .orbital-phase-route-copy strong { color: #536b86; }
body #pmd-app .orbital-phase-route-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
  padding: 8px 4px 0;
  color: #526b91;
  border-top: 1px solid var(--orb-line);
  font-size: 12px;
}

body #pmd-app .dash-main.orbital-workspace-ready {
  align-items: stretch;
}
body #pmd-app .orbital-workspace-ready > .col-left,
body #pmd-app .orbital-workspace-ready > .col-right {
  position: relative !important;
  top: auto !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 100%;
}
body #pmd-app .orbital-execution-body {
  min-height: calc(100% - 52px);
}

body #pmd-app .orbital-execution-group--risk .orbital-execution-node {
  background: #d83a4e;
  box-shadow: 0 0 0 3px #ffe4e8;
}
body #pmd-app .orbital-execution-group--problem .orbital-execution-node {
  background: #c57a08;
  box-shadow: 0 0 0 3px #f9edcf;
}
body #pmd-app .orbital-execution-group--risk .orbital-execution-group-head h3 { color: #b62e43; }
body #pmd-app .orbital-execution-group--problem .orbital-execution-group-head h3 { color: #8a5a00; }
body #pmd-app .orbital-execution-list--risk,
body #pmd-app .orbital-execution-list--problem {
  grid-template-columns: 1fr;
}
body #pmd-app .orbital-signal-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  color: #173f76;
  background: #fbfdff;
  border: 1px solid #d9e6f3;
  border-radius: 7px;
}
body #pmd-app .orbital-signal-row > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: #0d6efd;
  border-radius: 50%;
  font-size: 13px;
}
body #pmd-app .orbital-signal-row--risk > b { background: #d83a4e; }
body #pmd-app .orbital-signal-row--problem > b { background: #c57a08; }
body #pmd-app .orbital-signal-row > div { min-width: 0; }
body #pmd-app .orbital-signal-row p {
  margin: 0;
  color: #173f76;
  font-size: 14px;
  line-height: 1.5;
}
body #pmd-app .orbital-signal-row > div > span {
  display: block;
  margin-top: 3px;
  color: #617692;
  font-size: 12px;
}
body #pmd-app .orbital-signal-row > em {
  min-width: 70px;
  padding: 6px 9px;
  color: #b62e43;
  background: #fff;
  border: 1px solid #e2a7b0;
  border-radius: 6px;
  font-size: 12px;
  font-style: normal;
  text-align: center;
}
body #pmd-app .orbital-signal-row--problem > em {
  color: #8a5a00;
  border-color: #dfc48c;
}

body #pmd-app .orbital-finance-metrics > * {
  min-height: 84px;
  padding: 13px 12px;
}
body #pmd-app .orbital-finance-metrics :where(.fm-label, .fr-lbl) {
  color: #526b86;
  font-size: 12px;
}
body #pmd-app .orbital-finance-metrics :where(.fm-val, .fr-pct) {
  color: var(--orb-ink);
  font-size: clamp(16px, 1.35vw, 20px);
}

body #pmd-app .pd-panel > .orbital-onsite-wide {
  width: 100%;
  margin: 14px 0 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--orb-line);
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(24,67,121,.045);
}
body #pmd-app .pd-panel > .orbital-onsite-wide > .sec-head {
  min-height: 62px;
  margin: 0;
  padding: 10px 20px;
  background: #f6f9fc;
  border-bottom: 1px solid var(--orb-line);
}
body #pmd-app .pd-panel > .orbital-onsite-wide > .sec-head::before {
  content: "FIELD CREW";
  margin-right: 12px;
  color: #0b6bdc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
}
body #pmd-app .pd-panel > .orbital-onsite-wide > .sec-head h3 {
  color: var(--orb-ink);
  font-size: 18px;
}
body #pmd-app .pd-panel > .orbital-onsite-wide .onsite-filter {
  min-height: 48px;
  margin: 0;
  padding: 8px 20px;
  border-bottom: 1px solid #e4ecf4;
}
body #pmd-app .pd-panel > .orbital-onsite-wide .onsite-action-board {
  margin: 12px 20px;
}
body #pmd-app .pd-panel > .orbital-onsite-wide .onsite-roster {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 4px 20px 14px;
}
body #pmd-app .pd-panel > .orbital-onsite-wide .onsite-person {
  min-height: 76px;
  border: 0;
  border-bottom: 1px solid #e4ecf4;
  border-left: 1px solid #e4ecf4;
  border-radius: 0;
  box-shadow: none;
}
body #pmd-app .pd-panel > .orbital-onsite-wide .onsite-person:nth-child(3n + 1) { border-left: 0; }
body #pmd-app .pd-panel > .orbital-onsite-wide .onsite-person:hover {
  background: #f8fcff;
  box-shadow: inset 0 0 0 1px rgba(32,201,232,.42);
}
body #pmd-app .pd-panel > .orbital-onsite-wide .onsite-person-head strong { font-size: 14px; }
body #pmd-app .pd-panel > .orbital-onsite-wide :where(.onsite-person-head small, .onsite-person-delivery i, .onsite-person-delivery small, .onsite-person-skills em) { font-size: 12px; }
body #pmd-app .pd-panel > .orbital-onsite-wide :where(.onsite-person-delivery b, .onsite-person-skills i, .onsite-person-open) { font-size: 12px; }

@media (max-width: 1180px) {
  body #pmd-app .dash-main.orbital-workspace-ready { grid-template-columns: 1fr; }
  body #pmd-app .pd-panel > .orbital-onsite-wide .onsite-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body #pmd-app .pd-panel > .orbital-onsite-wide .onsite-person:nth-child(3n + 1) { border-left: 1px solid #e4ecf4; }
  body #pmd-app .pd-panel > .orbital-onsite-wide .onsite-person:nth-child(2n + 1) { border-left: 0; }
}

@media (max-width: 760px) {
  body #pmd-app .pd-panel > .orbital-onsite-wide .onsite-roster { grid-template-columns: 1fr; padding-right: 12px; padding-left: 12px; }
  body #pmd-app .pd-panel > .orbital-onsite-wide .onsite-person { border-left: 0 !important; }
}

/* Keep the 23:32 homepage readability release intact. Project r5 must not
   regress the larger home typography while restoring project pages. */
body #pmd-app .home-hero-copy p { font-size: 11px !important; }
body #pmd-app .home-hero-copy h1 { font-size: 28px !important; }
body #pmd-app .home-hero-copy > span { font-size: 14px !important; line-height: 1.55 !important; }
body #pmd-app .home-hero-meta > span { font-size: 14px !important; }
body #pmd-app .home-hero-meta strong { font-size: 30px !important; }
body #pmd-app .home-hero-meta small { font-size: 12px !important; line-height: 1.45 !important; }
body #pmd-app .work-card-head { min-height: 58px !important; padding: 0 17px !important; }
body #pmd-app .work-card-head strong { font-size: 16px !important; }
body #pmd-app .work-card-head i { min-width: 26px !important; height: 24px !important; font-size: 12px !important; }
body #pmd-app .work-card-head :where(button, .btn, .mini-btn) { padding: 7px 10px !important; font-size: 13px !important; }
body #pmd-app .work-card-body { min-height: 220px !important; padding: 9px 16px 13px !important; }
body #pmd-app .work-list li { gap: 11px !important; min-height: 66px !important; }
body #pmd-app .work-list li strong { font-size: 14px !important; }
body #pmd-app .work-list li > div > span,
body #pmd-app .work-list time { font-size: 12px !important; }
body #pmd-app .todo-number { width: 34px !important; height: 34px !important; font-size: 14px !important; }
body #pmd-app .todo-work-list li > b { font-size: 15px !important; }
body #pmd-app .ops-overview { padding: 24px !important; font-size: 13px !important; }
body #pmd-app .ops-head { margin-bottom: 18px !important; }
body #pmd-app .ops-title > p { font-size: 11px !important; }
body #pmd-app .ops-title h2 { font-size: 24px !important; }
body #pmd-app .ops-title span,
body #pmd-app .ops-freshness { font-size: 13px !important; }
body #pmd-app .ops-kpis > article { min-height: 104px !important; padding: 14px 16px !important; }
body #pmd-app .ops-kpis span { font-size: 13px !important; }
body #pmd-app .ops-kpis strong { font-size: 24px !important; }
body #pmd-app .ops-kpis small { font-size: 12px !important; }
body #pmd-app .ops-primary-grid { grid-template-columns: minmax(0, 1.8fr) minmax(320px, .75fr) !important; }
body #pmd-app .ops-secondary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

@media (max-width: 1120px) {
  body #pmd-app .ops-primary-grid { grid-template-columns: 1fr !important; }
  body #pmd-app .ops-secondary-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 760px) {
  body #pmd-app .home-hero-copy h1 { font-size: 23px !important; }
  body #pmd-app .home-hero-copy > span { font-size: 13px !important; }
  body #pmd-app .home-hero-meta strong { font-size: 27px !important; }
  body #pmd-app .ops-overview { padding: 16px !important; }
  body #pmd-app .ops-title h2 { font-size: 21px !important; }
  body #pmd-app .ops-kpis { grid-template-columns: 1fr 1fr !important; }
  body #pmd-app .ops-kpis > article { min-height: 96px !important; padding: 12px !important; }
  body #pmd-app .ops-secondary-grid { grid-template-columns: 1fr !important; }
}
