:root {
  --brand-primary: #3f7cff;
  --brand-secondary: #245adb;
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #040b15;
  --sidebar: #081525;
  --panel: #0d1a2b;
  --panel-2: #101f33;
  --panel-hover: #12253d;
  --border: #20324a;
  --border-soft: rgba(120, 145, 180, .16);
  --text: #f6f8fc;
  --muted: #a8b5c8;
  --muted-2: #74849a;
  --blue: #3f7cff;
  --blue-2: #245adb;
  --green: #3cc86a;
  --yellow: #f6b817;
  --orange: #ff7b22;
  --red: #ff4242;
  --purple: #9c5cff;
  --cyan: #40c1cf;
  --shadow: 0 18px 48px rgba(0, 0, 0, .22);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg-deep); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 75% -10%, rgba(37, 92, 163, .16), transparent 30%),
    linear-gradient(180deg, #071321 0%, #06101d 100%);
  color: var(--text);
  overflow-x: hidden;
}
button, select { font: inherit; }
button { color: inherit; }

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px 16px;
  border-right: 1px solid rgba(132, 153, 186, .18);
  background:
    radial-gradient(circle at 0 0, rgba(57, 109, 193, .11), transparent 33%),
    linear-gradient(180deg, #091727 0%, #071321 100%);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 86px;
  margin: 0 4px 16px;
}
.brand img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.nav {
  display: grid;
  gap: 6px;
}
.nav-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: #d8e0ec;
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nav-link:hover {
  background: rgba(65, 113, 188, .13);
  color: #fff;
}
.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 76%, transparent), color-mix(in srgb, var(--brand-secondary) 86%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.nav-link .icon { width: 21px; height: 21px; }

.scope {
  margin-top: 26px;
  padding: 0 14px;
}
.eyebrow {
  color: #94a2b6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.scope select {
  margin-top: 12px;
  width: 100%;
  appearance: none;
  color: #e8eef8;
  border: 1px solid #273a55;
  border-radius: 7px;
  padding: 11px 40px 11px 13px;
  background:
    linear-gradient(45deg, transparent 50%, #aebad0 50%) calc(100% - 17px) 50% / 5px 5px no-repeat,
    linear-gradient(135deg, #aebad0 50%, transparent 50%) calc(100% - 13px) 50% / 5px 5px no-repeat,
    #0b1829;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(132, 153, 186, .12);
}
.public-view {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  color: #e2e9f4;
}
.public-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  background: rgba(60, 200, 106, .12);
  border: 1px solid rgba(60, 200, 106, .25);
}
.public-title { font-size: 14px; font-weight: 700; }
.public-sub { margin-top: 2px; color: var(--muted-2); font-size: 12px; }

.main {
  min-width: 0;
  padding: 26px 28px 34px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}
.title-block h1 {
  margin: 0;
  font-size: clamp(28px, 2.35vw, 38px);
  letter-spacing: -.035em;
  line-height: 1.1;
}
.title-block p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.control {
  min-height: 44px;
  border: 1px solid #263850;
  border-radius: 8px;
  background: rgba(11, 24, 41, .84);
  color: #e9eef7;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.control:hover {
  border-color: #3d5575;
  background: #0e1d31;
}
.control.icon-only {
  width: 44px;
  padding: 0;
  justify-content: center;
  position: relative;
}
.badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0 4px;
  background: #2d69ed;
  color: white;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid #071321;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.card {
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(17, 33, 53, .98), rgba(12, 27, 45, .98));
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  min-width: 0;
}
.kpi-card {
  min-height: 230px;
  padding: 17px 17px 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.kpi-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 92% 0%, rgba(73, 120, 207, .08), transparent 30%);
}
.kpi-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: start;
  gap: 10px;
  flex: 1 1 auto;
}
.kpi-head > div:first-child {
  min-width: 0;
  display: grid;
  grid-template-rows: 48px 40px minmax(44px, auto);
  align-content: start;
}
.kpi-label {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  color: #d7dfeb;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}
.icon-chip {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.icon-chip.blue { color: var(--blue); background: rgba(48, 102, 230, .18); }
.icon-chip.yellow { color: var(--yellow); background: rgba(246, 184, 23, .12); }
.icon-chip.red { color: var(--red); background: rgba(255, 66, 66, .13); }
.icon-chip.purple { color: var(--purple); background: rgba(156, 92, 255, .14); }
.kpi-number {
  min-height: 40px;
  margin-top: 0;
  display: flex;
  align-items: flex-start;
  font-size: 31px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.025em;
}
.kpi-note {
  min-height: 44px;
  margin-top: 0;
  padding-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.up { color: #46d875; }
.down { color: #ff5757; }
.sparkline {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 40px;
  width: calc(100% - 28px);
}
.sparkline path.line {
  fill: none;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}
.sparkline path.glow {
  opacity: .12;
  stroke-width: 8;
  fill: none;
}
.health-layout {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}
.gauge {
  width: 84px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) 0 78%, #25394c 78% 100%);
  position: relative;
}
.gauge::before {
  content: "";
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0d1b2d;
}
.gauge-value {
  position: relative;
  text-align: center;
  line-height: 1;
}
.gauge-value strong { display: block; font-size: 28px; }
.gauge-value small { color: var(--muted); font-size: 11px; }
.health-copy .kpi-label { display: block; margin-bottom: 8px; }
.health-status { color: var(--green); font-size: 18px; font-weight: 750; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 1.25fr;
  gap: 12px;
  margin-bottom: 12px;
}
.panel {
  min-height: 292px;
  padding: 16px 16px 14px;
  overflow: hidden;
}
.panel.tall { min-height: 303px; }
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.panel-title {
  margin: 0;
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.panel-title.accent { color: var(--yellow); }
.info {
  color: #8597af;
  font-size: 12px;
  margin-left: 4px;
}
.link-button {
  border: 0;
  background: transparent;
  color: #4e8bff;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
}
.link-button:hover { color: #7ca9ff; }

.donut-layout {
  display: grid;
  grid-template-columns: minmax(150px, .9fr) minmax(190px, 1fr);
  align-items: center;
  gap: 15px;
  min-height: 196px;
}
.donut {
  width: min(176px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.donut.health {
  background: conic-gradient(
    var(--green) 0 40.2%,
    var(--yellow) 40.2% 71.6%,
    var(--orange) 71.6% 89.4%,
    var(--red) 89.4% 99.1%,
    #63738e 99.1% 100%
  );
}
.donut.lifecycle {
  background: conic-gradient(
    var(--blue) 0 8%,
    #5f5be9 8% 14.6%,
    var(--cyan) 14.6% 23.6%,
    var(--green) 23.6% 86.7%,
    var(--yellow) 86.7% 96.4%,
    var(--red) 96.4% 100%
  );
}
.donut::before {
  content: "";
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0c192a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.donut-center {
  position: relative;
  text-align: center;
}
.donut-center strong {
  display: block;
  font-size: 23px;
  letter-spacing: -.02em;
}
.donut-center span {
  color: var(--muted);
  font-size: 12px;
}

.legend {
  display: grid;
  gap: 14px;
}
.legend-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 9px;
  align-items: center;
  color: #e1e7f0;
  font-size: 12px;
}
.legend-row span:last-child {
  color: #d9e1ed;
  font-variant-numeric: tabular-nums;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}
.dot.green { background: var(--green); }
.dot.yellow { background: var(--yellow); }
.dot.orange { background: var(--orange); }
.dot.red { background: var(--red); }
.dot.gray { background: #63738e; }
.dot.blue { background: var(--blue); }
.dot.purple { background: #5f5be9; }
.dot.cyan { background: var(--cyan); }

.panel-footer {
  margin-top: 9px;
}

.age-chart {
  height: 202px;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 10px;
}
.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #8798af;
  font-size: 11px;
  padding: 1px 0 26px;
  text-align: right;
}
.plot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 14px;
  padding: 0 7px 27px;
  border-left: 1px solid rgba(132, 153, 186, .14);
  border-bottom: 1px solid rgba(132, 153, 186, .18);
  background:
    repeating-linear-gradient(to top, transparent 0 47px, rgba(132,153,186,.12) 47px 48px);
}
.bar-wrap {
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  position: relative;
}
.chart-bar {
  width: min(48px, 80%);
  height: var(--h);
  min-height: 10px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #477fff, #2454c5);
  box-shadow: 0 -1px 0 rgba(255,255,255,.16), 0 0 20px rgba(54, 105, 230, .14);
  position: relative;
}
.chart-bar::before {
  content: attr(data-value);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  color: #f2f6fb;
  font-size: 11px;
  white-space: nowrap;
}
.bar-label {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  width: 68px;
  text-align: center;
  color: #9daabd;
  font-size: 11px;
  white-space: nowrap;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 1.25fr;
  gap: 12px;
}
.list-panel {
  min-height: 300px;
  padding: 16px;
}
.category-list {
  display: grid;
  gap: 17px;
  padding-top: 2px;
}
.category-row {
  display: grid;
  grid-template-columns: 28px minmax(82px, 105px) 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.mini-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #dbe4f2;
  background: rgba(132,153,186,.13);
}
.mini-icon .icon { width: 15px; height: 15px; }
.bar-track {
  height: 12px;
  background: rgba(40, 59, 84, .44);
  border-radius: 2px;
  overflow: hidden;
}
.bar-fill {
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, #2456c7, #3c73ed);
}
.category-value {
  color: #d8e0eb;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.risk-list, .activity-list {
  display: grid;
}
.risk-item {
  min-height: 48px;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(132,153,186,.10);
}
.risk-item:first-child { border-top: 0; }
.item-title {
  font-size: 13px;
  color: #f4f6fa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-sub {
  margin-top: 2px;
  font-size: 11px;
  color: #8796ab;
}
.risk-score {
  min-width: 43px;
  padding: 5px 8px;
  border-radius: 5px;
  text-align: center;
  background: rgba(246, 184, 23, .14);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.activity-item {
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
}
.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.activity-icon.green { color: var(--green); background: rgba(60,200,106,.13); }
.activity-icon.yellow { color: var(--yellow); background: rgba(246,184,23,.12); }
.activity-icon.blue { color: var(--blue); background: rgba(63,124,255,.14); }
.activity-icon.purple { color: var(--purple); background: rgba(156,92,255,.14); }
.activity-icon.red { color: var(--red); background: rgba(255,66,66,.13); }
.activity-time {
  color: #8c9aaf;
  font-size: 11px;
  white-space: nowrap;
}

.filter-popover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: start end;
  padding: 78px 24px 24px;
  background: rgba(2, 8, 16, .50);
  backdrop-filter: blur(4px);
}
.filter-popover.open { display: grid; }
.filter-panel {
  width: min(380px, calc(100vw - 32px));
  border: 1px solid #2b405d;
  border-radius: 12px;
  padding: 18px;
  background: #0b192a;
  box-shadow: var(--shadow);
}
.filter-panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.filter-grid {
  display: grid;
  gap: 12px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  color: #a7b5c8;
  font-size: 12px;
}
.field select {
  width: 100%;
  border: 1px solid #2b405d;
  border-radius: 7px;
  padding: 10px;
  color: #ecf2fa;
  background: #0f2035;
}
.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.filter-actions button {
  border: 1px solid #314661;
  border-radius: 7px;
  padding: 9px 13px;
  background: #102239;
  cursor: pointer;
}
.filter-actions .apply {
  border-color: #3168d4;
  background: #2459c8;
}

@media (max-width: 1280px) {
  .app-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .brand img { width: 170px; }
  .main { padding-inline: 20px; }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid, .bottom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid > :last-child,
  .bottom-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .app-shell { display: block; }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding-bottom: 10px;
  }
  .brand { margin-bottom: 10px; }
  .nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav-link {
    justify-content: center;
    padding: 10px 8px;
    font-size: 0;
  }
  .nav-link .icon { width: 22px; height: 22px; }
  .scope, .sidebar-footer { display: none; }
  .main { padding: 20px 14px 28px; }
  .topbar { align-items: stretch; flex-direction: column; }
  .top-actions { justify-content: flex-start; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .bottom-grid { grid-template-columns: 1fr; }
  .dashboard-grid > :last-child,
  .bottom-grid > :last-child { grid-column: auto; }
}
@media (max-width: 560px) {
  .nav { grid-template-columns: repeat(4, 1fr); }
  .kpi-grid { grid-template-columns: 1fr; }
  .donut-layout { grid-template-columns: 1fr; }
  .legend { width: min(280px, 100%); margin-inline: auto; }
  .category-row { grid-template-columns: 28px 78px 1fr; }
  .category-value { grid-column: 3; justify-self: end; }
}

/* Lifecycle Studio v0.0.1 data-driven additions */
.control { position: relative; }
.brand-stack { width: 100%; }
.brand-product {
  margin: -8px 4px 18px;
  color: #dce6f3;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.brand-product span { color: var(--green); }
.nav-link[disabled] { opacity: .44; cursor: default; }
.nav-link[disabled]:hover { background: transparent; color: #d8e0ec; }
.nav-tag {
  margin-left: auto;
  color: #8393a9;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.data-source-note {
  margin-top: 7px;
  color: #708298;
  font-size: 11px;
}
.scope-context {
  margin: -9px 0 15px;
  color: #8fa1b7;
  font-size: 12px;
  min-height: 18px;
}
.scope-context strong { color: #e5edf8; }
.active-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: -5px 0 18px;
  min-height: 25px;
}
.filter-chip {
  border: 1px solid rgba(76,126,203,.32);
  background: rgba(54,100,174,.12);
  color: #cfe0f7;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
}
.filter-chip.clear {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #9fb0c5;
  cursor: pointer;
}
.kpi-card { min-height: 147px; cursor: pointer; }
.kpi-card:hover { border-color: rgba(93,132,194,.38); background: linear-gradient(180deg, rgba(19, 38, 62, .99), rgba(13, 30, 50, .99)); }
.kpi-card[data-filter-status=""] { cursor: default; }
.kpi-card[data-filter-status=""]:hover { border-color: var(--border-soft); }
.kpi-meta {
  min-height: 48px;
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #71839a;
  font-size: 10px;
  line-height: 1.35;
}
.kpi-meta::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
  opacity: .7;
}
.kpi-number { font-variant-numeric: tabular-nums; }
.panel-subtitle {
  margin: -4px 0 13px;
  color: #7f90a7;
  font-size: 10px;
}
.legend-row.clickable, .category-row.clickable, .risk-item.clickable { cursor: pointer; border-radius: 6px; }
.legend-row.clickable:hover, .category-row.clickable:hover, .risk-item.clickable:hover { background: rgba(69,111,178,.09); }
.legend-row.clickable { padding: 4px 5px; margin: -4px -5px; }
.category-row.clickable { padding: 3px; margin: -3px; }
.status-pill {
  justify-self: end;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.status-past { color: #ff7777; background: rgba(255,66,66,.12); }
.status-soon { color: #ffd36c; background: rgba(246,184,23,.12); }
.status-watch { color: #7fb3ff; background: rgba(63,124,255,.12); }
.status-future { color: #7ce49a; background: rgba(60,200,106,.12); }
.status-none { color: #b5c1d3; background: rgba(132,153,186,.10); }
.status-unknown { color: #d6a8ff; background: rgba(156,92,255,.12); }
.priority-list { display: grid; }
.priority-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(132,153,186,.10);
  cursor: pointer;
}
.priority-item:first-child { border-top: 0; }
.priority-item:hover { background: rgba(69,111,178,.08); }
.priority-rank {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #ffd76a;
  background: rgba(246,184,23,.11);
  font-size: 11px;
  font-weight: 900;
}
.priority-rank.neutral { color: #9fb0c5; background: rgba(132,153,186,.10); }
.priority-site {
  color: #8394aa;
  font-size: 10px;
  margin-top: 3px;
}
.coverage-stats {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.coverage-stat {
  padding: 8px;
  border: 1px solid rgba(132,153,186,.10);
  border-radius: 7px;
  background: rgba(7,17,31,.28);
  text-align: center;
}
.coverage-stat strong { display:block; font-size: 14px; }
.coverage-stat span { color:#8192a8; font-size:9px; }
.field input {
  width: 100%;
  border: 1px solid #2b405d;
  border-radius: 7px;
  padding: 10px;
  color: #ecf2fa;
  background: #0f2035;
  outline: none;
}
.field input:focus, .field select:focus { border-color: #4a76b8; }
.filter-actions .secondary {
  border: 1px solid #2b405d;
  background: transparent;
  color: #9fb0c5;
}
.empty-state {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #8394aa;
  font-size: 12px;
  padding: 20px;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: rgba(1,7,14,.58);
  backdrop-filter: blur(3px);
}
.drawer-backdrop.open { display: block; }
.detail-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(620px, 94vw);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  border-left: 1px solid #2a3d57;
  background: linear-gradient(180deg, #0c1a2b, #081523);
  box-shadow: -22px 0 60px rgba(0,0,0,.32);
}
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #2a3d57;
  background: #0e1f34;
  color: #cdd8e8;
  cursor: pointer;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.drawer-kicker { color: var(--green); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.drawer-title { margin: 5px 0 0; font-size: 24px; line-height: 1.2; }
.drawer-meta { margin-top: 7px; color: #8394aa; font-size: 12px; }
.drawer-grid { display: grid; gap: 12px; }
.drawer-section {
  border: 1px solid rgba(132,153,186,.13);
  border-radius: 10px;
  padding: 14px;
  background: rgba(7,17,31,.28);
}
.drawer-section h3 { margin: 0 0 7px; font-size: 11px; color: #a9b8cb; text-transform: uppercase; letter-spacing: .05em; }
.drawer-section p { margin: 0; color: #e0e7f1; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.source-banner {
  margin: 0 0 16px;
  padding: 9px 11px;
  border: 1px solid rgba(60,200,106,.16);
  border-radius: 8px;
  background: rgba(60,200,106,.055);
  color: #93a8bf;
  font-size: 10px;
}
.source-banner strong { color: #cde9d5; }
@media (max-width: 780px) {
  .coverage-stats { grid-template-columns: 1fr; }
}


/* Detail-preserving normalized categories */
.category-panel-subtitle {
  margin: -2px 0 13px;
}
.category-list {
  gap: 11px;
}
.category-row {
  grid-template-columns: 28px minmax(0,1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 5px;
  align-items: center;
  padding: 6px 5px !important;
  margin: -5px !important;
}
.category-copy {
  min-width: 0;
}
.category-name {
  display: block;
  color: #e6edf7;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.category-models {
  display: block;
  margin-top: 3px;
  color: #8293aa;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.category-row .bar-track {
  grid-column: 2 / 4;
  width: 100%;
  height: 7px;
}
.category-value {
  align-self: start;
  padding-top: 1px;
}
.model-detail-list {
  display: grid;
  gap: 8px;
}
.model-detail-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(132,153,186,.14);
  border-radius: 8px;
  background: rgba(15,29,47,.56);
  cursor: pointer;
}
.model-detail-row:hover {
  background: rgba(53,86,135,.16);
  border-color: rgba(86,127,194,.28);
}
.model-detail-name {
  color: #eef4fb;
  font-size: 13px;
  font-weight: 850;
}
.model-detail-meta {
  margin-top: 3px;
  color: #91a2b8;
  font-size: 11px;
  line-height: 1.35;
}
.model-source-label {
  margin-top: 4px;
  color: #6f849f;
  font-size: 10px;
  line-height: 1.35;
}
.model-detail-right {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}
.model-detail-units {
  color: #e7edf6;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.drawer-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.drawer-action {
  border: 1px solid rgba(90,126,180,.35);
  background: rgba(43,83,145,.18);
  color: #dce8f8;
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.drawer-action:hover {
  background: rgba(52,104,190,.28);
}
.drawer-action.primary {
  border-color: rgba(80,180,84,.4);
  background: rgba(55,151,58,.18);
  color: #dff3df;
}
.normalization-note {
  margin-top: 1px;
  padding: 10px 11px;
  border-radius: 7px;
  background: rgba(48,89,148,.10);
  border: 1px solid rgba(89,127,181,.17);
  color: #9eb0c7;
  font-size: 11px;
  line-height: 1.45;
}


.scope-secondary {
  margin-top: 15px;
}
.team-legend-row {
  cursor: pointer;
}
.team-legend-row:hover {
  background: rgba(72,104,151,.09);
  border-radius: 6px;
}
.team-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .02em;
  background: rgba(48,89,148,.13);
  color: #9fb9db;
  border: 1px solid rgba(83,123,181,.18);
}


/* Lifecycle Studio dual lifecycle model: product lifecycle + commercial support */
.support-kpi {
  background:
    radial-gradient(circle at 92% 0%, rgba(60, 200, 106, .055), transparent 30%),
    linear-gradient(180deg, rgba(17, 33, 53, .98), rgba(12, 27, 45, .98));
}
.support-kpi .support-meta { color: #72b88a; }
.icon-chip.green { color: var(--green); background: rgba(60, 200, 106, .12); }

.support-dashboard-grid {
  display: grid;
  grid-template-columns: .95fr 1.35fr;
  gap: 12px;
  margin-bottom: 12px;
}
.support-dashboard-grid .panel {
  min-height: 286px;
}
.support-accent {
  color: #dff3e5;
}
.support-contract {
  background: conic-gradient(#7f91aa 0 100%);
}
.support-renewal-plot .bar-label {
  font-size: 9px;
}

@media (max-width: 1280px) {
  .support-dashboard-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 850px) {
  .support-dashboard-grid { grid-template-columns: 1fr; }
}
