/* Performance Studio v5 — shared design system */

:root {
  --ps-navy-dark: #0F1F2E;
  --ps-navy-mid: #1C3A4A;
  --ps-green: #6BAE8A;
  --ps-bg: #F0F4F8;
  --ps-surface: #FFFFFF;
  --ps-red: #E8511A;
  --ps-amber: #F59E0B;
  --ps-blue: #60A5FA;
  --ps-purple: #A78BFA;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --dev-banner-h: 0px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.studio-page {
  font-family: var(--font);
  background: var(--ps-bg);
  color: var(--ps-navy-dark);
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
}

.app { display: flex; height: calc(100vh - var(--dev-banner-h, 0px)); height: calc(100dvh - var(--dev-banner-h, 0px)); }
body.studio-project .app {
  /* Project pages: body already pads for the DEV banner — fill the content box. */
  height: 100%;
  max-height: none;
}

/* Sidebar */
.sb {
  width: 248px;
  background: var(--ps-navy-dark);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: calc(100vh - var(--dev-banner-h, 0px));
  height: calc(100dvh - var(--dev-banner-h, 0px));
  max-height: calc(100vh - var(--dev-banner-h, 0px));
  max-height: calc(100dvh - var(--dev-banner-h, 0px));
  min-height: 0;
  overflow: hidden;
}
.sb-logo {
  padding: 20px 16px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}
.sb-logo:hover .ps { color: #fff; }
.sb-logo:hover .wave { color: rgba(255,255,255,0.9); }
.sb-logo .wave { font-size: 18px; color: rgba(255,255,255,0.7); }
.sb-logo .ps { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.sb-logo .ps em { color: var(--ps-green); font-style: normal; }
.sb-org {
  font-size: 10.5px;
  color: rgba(255,255,255,0.38);
  padding: 0 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.sb-hierarchy {
  display: flex;
  gap: 8px;
  padding: 10px 16px 4px;
  flex-shrink: 0;
}
.sb-hi {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}
.sb-hn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  font-size: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sb-nav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.sb-nav-scroll::-webkit-scrollbar {
  width: 8px;
}
.sb-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 8px;
}
.sb-nav-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.sb-sec { padding: 12px 0 4px; }
.sb-lbl {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.25);
  padding: 0 16px 6px;
}
.sb-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.12s;
  margin: 1px 8px;
  border-radius: 7px;
  border: none;
  background: none;
  width: calc(100% - 16px);
  text-align: left;
  font-family: inherit;
}
.sb-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.sb-item.on { background: var(--ps-navy-mid); color: var(--ps-green); font-weight: 500; }
.sb-item.on .sb-ic { opacity: 1; }
.sb-item.muted { color: rgba(107,174,138,0.8); font-size: 11.5px; }
.sb-ic { font-size: 14px; width: 16px; text-align: center; opacity: 0.6; flex-shrink: 0; }
.d-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dw { background: var(--ps-green); }
.df { background: var(--ps-blue); }
.do { background: var(--ps-amber); }
.dp { background: var(--ps-purple); }
.ds { background: #F472B6; }
.dh { background: #0B3D4A; }
.p-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pr { background: var(--ps-red); }
.pa { background: var(--ps-amber); }
.pg { background: var(--ps-green); }
.p-dot.df { background: var(--ps-blue); }
.p-dot.dw { background: var(--ps-green); }
.p-dot.db { background: #0099cc; }
.p-dot.de { background: #eab308; }
.p-dot.dh { background: #0B3D4A; }
.sb-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
}
.sb-badge.a { background: rgba(245,158,11,0.2); color: #FCD34D; }
.sb-badge.g { background: rgba(107,174,138,0.2); color: var(--ps-green); }
.sb-foot {
  margin-top: 0;
  padding: 12px 8px 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
/* Collapsed sidebar — hidden on load, reveal on left-edge hover */
.sb-hover-edge {
  position: fixed;
  left: 0;
  top: var(--dev-banner-h, 0px);
  width: 14px;
  height: calc(100vh - var(--dev-banner-h, 0px));
  height: calc(100dvh - var(--dev-banner-h, 0px));
  z-index: 299;
  background: linear-gradient(90deg, rgba(15,31,46,0.18) 0%, transparent 100%);
  pointer-events: auto;
}

body.sb-collapsed .sb {
  position: fixed;
  left: 0;
  top: var(--dev-banner-h, 0px);
  height: calc(100vh - var(--dev-banner-h, 0px));
  height: calc(100dvh - var(--dev-banner-h, 0px));
  z-index: 300;
  transform: translateX(calc(-100% + 14px));
  transition: transform 0.22s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
}

body.sb-collapsed.sb-sidebar-open .sb,
body.sb-collapsed .sb:hover {
  transform: translateX(0);
}

body.sb-collapsed.studio-page .app .main {
  width: 100%;
  flex: 1 1 auto;
}

.sb-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s;
}
.sb-user:hover { background: rgba(255,255,255,0.07); }
.sb-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: #2D6A4F;
}
.sb-un { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); }
.sb-urole { font-size: 10px; color: rgba(255,255,255,0.38); }
.sb-chev { margin-left: auto; color: rgba(255,255,255,0.3); font-size: 11px; }
.sb-links { padding: 4px 8px 8px; }
.sb-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.1s;
}
.sb-link:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.04); }

/* Main shell */
.main { flex: 1; overflow-y: auto; background: var(--ps-bg); display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: #fff;
  border-bottom: 1px solid #E4EAF0;
  padding: 0 28px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}
.tb-l h1 { font-size: 22px; font-weight: 700; color: var(--ps-navy-dark); letter-spacing: -0.4px; }
.tb-l p { font-size: 10.5px; color: #8A9BB0; margin-top: 1px; }
.tb-r { display: flex; gap: 8px; align-items: center; }
.btn {
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s;
}
.btn-ghost { background: #fff; color: #2D3748; border-color: #D1D9E0; }
.btn-ghost:hover { background: #F4F6F8; }
.btn-notify { background: #fff; color: #2D3748; border-color: #D1D9E0; position: relative; }
.btn-notify .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--ps-red);
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.btn-dark { background: var(--ps-navy-dark); color: #fff; border-color: var(--ps-navy-dark); }
.btn-dark:hover { background: var(--ps-navy-mid); }
.btn-green { background: var(--ps-green); color: #fff; border-color: var(--ps-green); padding: 7px 13px; }
.btn-green:hover { background: #5A9E7A; }
.content { padding: 14px 22px; flex: 1; }

/* KPI cards */
.kpi-row { display: grid; gap: 10px; margin-bottom: 14px; }
.kpi-row.c4 { grid-template-columns: repeat(4, 1fr); }
.kpi-row.c4-1 { grid-template-columns: repeat(4, 1fr) 1.2fr; }
.kpi-row.c5 { grid-template-columns: repeat(5, 1fr); }
.kpi-row.c6 { grid-template-columns: repeat(6, 1fr); }
.supply-roi-card {
  background: #fff;
  border: 1px solid #E4EAF0;
  border-left: 4px solid #6BAE8A;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  cursor: pointer;
}
.supply-roi-card:hover { border-color: #6BAE8A; }
.supply-roi-label { font-size: 10px; font-weight: 600; color: #8A9BB0; text-transform: uppercase; letter-spacing: 0.04em; }
.supply-roi-value { font-size: 15px; font-weight: 700; color: #1A2332; margin-top: 4px; }
.supply-roi-sub { font-size: 11px; color: #8A9BB0; margin-top: 4px; }
.attrition-staffing-callout {
  background: #fff;
  border: 1px solid #E4EAF0;
  border-left: 4px solid #F59E0B;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  cursor: pointer;
}
.attrition-staffing-callout:hover { border-color: #F59E0B; }
.attrition-staffing-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #8A9BB0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.attrition-staffing-text {
  display: block;
  font-size: 12px;
  color: #5A6B7D;
  line-height: 1.45;
  margin-top: 4px;
}
.chart-ph-note { font-size: 11px; color: #5A6B7D; line-height: 1.45; margin: 0 0 8px; padding: 0 2px; }
.kpi {
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px 10px;
  border: 1px solid #E4EAF0;
  display: flex;
  flex-direction: column;
}
.kpi-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.ki-g { background: #E8F7EF; }
.ki-b { background: #EEF4FF; }
.ki-a { background: #FEF3E2; }
.ki-p { background: #F3EFFF; }
.ki-r { background: #FEE8E5; }
.kpi-num { font-size: 24px; font-weight: 700; color: var(--ps-navy-dark); line-height: 1; }
.kpi-num.r { color: var(--ps-red); }
.kpi-num.a { color: var(--ps-amber); }
.kpi-num.g { color: var(--ps-green); }
.kpi-lbl { font-size: 12px; font-weight: 500; color: #4A5568; margin-top: 1px; }
.kpi-sub { font-size: 10.5px; color: #8A9BB0; margin-bottom: 8px; }
.kpi-bar { height: 3px; border-radius: 2px; margin-top: auto; }
.kpi-bar.g { background: linear-gradient(90deg, #6BAE8A, #A3D9BE); }
.kpi-bar.b { background: linear-gradient(90deg, #60A5FA, #93C5FD); }
.kpi-bar.a { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.kpi-bar.p { background: linear-gradient(90deg, #A78BFA, #C4B5FD); }
.kpi-bar.r { background: linear-gradient(90deg, #E8511A, #F87171); }
.kpi-bar.none {
  background: repeating-linear-gradient(
    90deg,
    #d1d5db 0,
    #d1d5db 6px,
    transparent 6px,
    transparent 10px
  );
  opacity: 0.55;
  height: 2px;
}

.quoting-about {
  margin: 0 0 10px;
  border: 1px solid #c8d0da;
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
}
.quoting-about summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #1a2a4a;
  padding: 10px 0;
  list-style: none;
}
.quoting-about summary::-webkit-details-marker { display: none; }
.quoting-about summary::before {
  content: '▸ ';
  color: #0b6e4f;
}
.quoting-about[open] summary::before { content: '▾ '; }
.quoting-about-body {
  padding: 0 0 14px;
  font-size: 13px;
  color: #334;
  line-height: 1.45;
}
.quoting-about-client {
  margin: 0 0 10px;
  color: #1a2a4a;
}
.quoting-about-body h4 {
  margin: 12px 0 6px;
  font-size: 12px;
  color: #1a2a4a;
}
.quoting-about-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.quoting-about-table th,
.quoting-about-table td {
  border: 1px solid #c8d0da;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
.quoting-about-table th { background: #eef1f5; color: #1a2a4a; }
.chart-explore-affordance {
  color: #0b6e4f;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.chart-explore-affordance:hover {
  color: #085c42;
}
.chart-series-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 6px;
}
.chart-series-toggle button {
  border: 1px solid #c8d0da;
  background: #fff;
  color: #4a5a70;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}
.chart-series-toggle button.is-active {
  background: #0F1F2E;
  border-color: #0F1F2E;
  color: #fff;
}
.chart-series-toggle button:hover:not(.is-active) {
  border-color: #326B8C;
  color: #326B8C;
}
.kpi-health {
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #E4EAF0;
}
.kpi-h-lbl { font-size: 11.5px; font-weight: 600; color: #4A5568; margin-bottom: 6px; }
.kpi-h-val { font-size: 28px; font-weight: 700; color: var(--ps-green); line-height: 1; }
.kpi-h-val span { font-size: 20px; }
.kpi-h-status { font-size: 11.5px; color: var(--ps-green); font-weight: 500; margin-top: 3px; }
.sparkline { margin-top: 8px; }

/* AI insights (admin) */
.insights-row { display: grid; grid-template-columns: 1fr 340px; gap: 10px; margin-bottom: 14px; }
.ai-panel {
  background: #F8FAFC;
  border: 1px solid #E4EAF0;
  border-radius: 10px;
  padding: 12px 16px;
}
.ai-hdr { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.ai-hdr h3 { font-size: 13px; font-weight: 700; color: var(--ps-navy-dark); }
.ai-hdr .spark, .ai-spark { color: var(--ps-green); font-size: 14px; }
.ai-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ai-stat { display: flex; align-items: flex-start; gap: 10px; }
.ai-stat-ic {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #E4EAF0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.ai-stat-num { font-size: 17px; font-weight: 700; color: var(--ps-navy-dark); line-height: 1; margin-bottom: 1px; }
.ai-stat-lbl { font-size: 10px; color: #4A5568; font-weight: 500; line-height: 1.3; }
.ai-stat-sub { font-size: 9.5px; color: #8A9BB0; margin-top: 1px; }
.summary-panel {
  background: #F8FAFC;
  border: 1px solid #E4EAF0;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.sum-hdr { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.sum-hdr h3 { font-size: 13px; font-weight: 700; color: var(--ps-navy-dark); }
.sum-good { font-size: 13px; font-weight: 600; color: var(--ps-green); margin-bottom: 4px; }
.sum-txt { font-size: 12px; color: #4A5568; line-height: 1.5; margin-bottom: 8px; }
.sum-txt em { color: var(--ps-amber); font-style: normal; font-weight: 600; }
.sum-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #D1D9E0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ps-navy-dark);
  cursor: pointer;
  width: fit-content;
  transition: all 0.12s;
  font-family: inherit;
}
.sum-btn:hover { background: #F4F6F8; }

/* Domain cards row */
.sec-hdr, .sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sec-hdr h2, .sh h2 { font-size: 15px; font-weight: 700; color: var(--ps-navy-dark); letter-spacing: -0.2px; }
.sh h2 { font-size: 14px; }
.sec-hdr a, .sh a { font-size: 12px; color: var(--ps-green); cursor: pointer; font-weight: 500; text-decoration: none; }
.sh a { font-size: 11.5px; }
.domain-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.dc {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #E4EAF0;
  padding: 12px 14px 10px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.dc:hover { box-shadow: 0 4px 16px rgba(15,31,46,0.08); }
.dc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.dc-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.dc-name { font-size: 14px; font-weight: 700; color: var(--ps-navy-dark); margin-bottom: 2px; }
.dc-owner { font-size: 10.5px; color: #4A5568; }
.dc-admin { font-size: 10px; color: #8A9BB0; margin-top: 1px; }
.dc-pill { font-size: 9.5px; font-weight: 600; padding: 3px 9px; border-radius: 5px; border: 1px solid transparent; white-space: nowrap; }
.dp-active { background: #F0FAF4; color: #1A6644; border-color: #B7E4C7; }
.dp-review { background: #FEF3C7; color: #855000; border-color: #FDE68A; }
.dp-draft { background: #F1F5F9; color: #4A5568; border-color: #CBD5E1; }
.dc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid #F0F4F7;
  margin-top: 10px;
}
.dc-stat-val { font-size: 13px; font-weight: 600; color: var(--ps-navy-dark); display: flex; align-items: center; gap: 3px; }
.dc-stat-ic { font-size: 11px; opacity: 0.5; }
.dc-stat-lbl { font-size: 9px; color: #8A9BB0; margin-top: 1px; }
.dc-spark { margin-top: 6px; height: 22px; }

/* Tables */
.ptbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; border: 1px solid #E4EAF0; overflow: hidden; }
.card .ptbl, .card .stbl { border: none; border-radius: 0; }
.ptbl th, .stbl th {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #8A9BB0;
  padding: 7px 14px;
  text-align: left;
  background: #F8FAFC;
  border-bottom: 1px solid #E4EAF0;
}
.ptbl th:last-child { width: 32px; }
.ptbl td, .stbl td {
  padding: 9px 14px;
  border-bottom: 1px solid #F0F4F7;
  font-size: 12.5px;
  color: var(--ps-navy-dark);
  vertical-align: middle;
}
.ptbl tr:last-child td, .stbl tr:last-child td { border-bottom: none; }
.ptbl tr:hover td { background: #F8FAFC; cursor: pointer; }
.prow-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-right: 10px;
  flex-shrink: 0;
}
.pname { font-weight: 600; color: var(--ps-navy-dark); font-size: 13px; }
.dtag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 5px;
  margin-right: 4px;
}
.dtag-wf { background: #F0FAF4; color: #1A6644; }
.dtag-fi { background: #EFF6FF; color: #1E40AF; }
.dtag-op { background: #FFFBEB; color: #855000; }
.dtag-su { background: #F5F3FF; color: #4C1D95; }
.dtag-he { background: #E0F2F1; color: #0B3D4A; }
.ow-cell { display: flex; align-items: center; gap: 8px; }
.ow-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.status-cell { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; }
.sdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sr { background: var(--ps-red); }
.sa { background: var(--ps-amber); }
.sg { background: var(--ps-green); }
.time-cell { font-size: 11.5px; color: #8A9BB0; }
.dots-btn {
  color: #8A9BB0;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  border: none;
  background: none;
  font-family: inherit;
}
.dots-btn:hover { background: #F0F4F7; }
.view-all {
  text-align: center;
  padding: 12px;
  border-top: 1px solid #F0F4F7;
  font-size: 12px;
  font-weight: 500;
  color: var(--ps-green);
  cursor: pointer;
  background: #fff;
  border: 1px solid #E4EAF0;
  border-top: none;
  border-radius: 0 0 10px 10px;
}
.view-all:hover { background: #F8FAFC; }

/* Domain page */
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 12px; }
.fc { display: flex; flex-direction: column; gap: 12px; }
.card { background: #fff; border-radius: 10px; border: 1px solid #E4EAF0; overflow: hidden; }
.card-hdr {
  padding: 10px 16px;
  border-bottom: 1px solid #F0F4F7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-hdr .ct { font-size: 12.5px; font-weight: 700; color: var(--ps-navy-dark); }
.card-hdr .ca { font-size: 11px; color: var(--ps-green); cursor: pointer; font-weight: 500; }
.ai-banner {
  background: #F8FAFC;
  border: 1px solid #E4EAF0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.ai-bdr { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ai-bleft { display: flex; align-items: center; gap: 6px; }
.ai-bleft h3 { font-size: 13px; font-weight: 700; color: var(--ps-navy-dark); }
.ai-banner .ai-stats { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.ai-banner .ai-stat { display: flex; align-items: center; gap: 8px; }
.ai-banner .ai-stat-ic { width: 26px; height: 26px; border-radius: 6px; font-size: 12px; }
.ai-banner .ai-stat-num { font-size: 16px; }
.ai-banner .ai-stat-lbl { font-size: 10px; color: #8A9BB0; }
.ai-insight-txt {
  font-size: 11.5px;
  color: #4A5568;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #F0F4F7;
  line-height: 1.5;
}
.ai-insight-txt em { color: var(--ps-green); font-style: normal; font-weight: 600; }
.sig-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid #F0F4F7;
  cursor: pointer;
  transition: background 0.1s;
}
.sig-row:hover { background: #F8FAFC; }
.sig-row:last-child { border-bottom: none; }
.sig-row > .sig-bar { width: 3px; border-radius: 2px; align-self: stretch; min-height: 26px; flex-shrink: 0; }
.sig-row > .sig-bar.r { background: var(--ps-red); }
.sig-row > .sig-bar.a { background: var(--ps-amber); }
.sig-row > .sig-bar.g { background: var(--ps-green); }
.sig-t { font-size: 12px; font-weight: 600; color: var(--ps-navy-dark); margin-bottom: 1px; }
.sig-m { font-size: 10.5px; color: #8A9BB0; }
.sig-proj {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  background: #F0FAF4;
  color: #1A6644;
  margin-left: 5px;
  vertical-align: middle;
}
.req-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid #F0F4F7;
}
.req-row:last-child { border-bottom: none; }
.req-ic {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #F4F6F8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.req-t { font-size: 12px; font-weight: 600; color: var(--ps-navy-dark); margin-bottom: 1px; }
.req-m { font-size: 10.5px; color: #8A9BB0; }
.req-acts { display: flex; gap: 5px; flex-shrink: 0; margin-left: auto; }
.bap, .bdc, .brv {
  border: none;
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.bap { background: #F0FAF4; color: #1A6644; }
.bdc { background: #FEE2E2; color: #991B1B; }
.brv { background: #EFF6FF; color: #1E40AF; }
.priv {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  background: #FEE2E2;
  color: #991B1B;
}
.pub {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  background: #F0F4F7;
  color: #6B7B8D;
}
.nlq {
  background: #fff;
  border-top: 1px solid #E4EAF0;
  padding: 10px 22px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.nlq input {
  flex: 1;
  border: 1.5px solid #E4EAF0;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  outline: none;
  font-family: inherit;
  color: var(--ps-navy-dark);
  background: #F8FAFC;
}
.nlq input:focus { border-color: var(--ps-green); background: #fff; }
.nlq button {
  background: var(--ps-navy-dark);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 1200px) {
  .kpi-row.c4-1, .kpi-row.c5, .kpi-row.c6, .domain-row, .insights-row, .two-col, .ai-stats { grid-template-columns: 1fr; }
  .ai-banner .ai-stats { flex-direction: column; align-items: flex-start; }
}
