:root {
  color-scheme: light;
  --page: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f2f5fa;
  --surface-teal: rgba(51, 199, 201, 0.14);
  --ink: #102b5c;
  --text: #1b2430;
  --muted: #667085;
  --faint: #8c99b4;
  --line: #e6ebf2;
  --line-soft: #edf2f7;
  --teal: #33c7c9;
  --teal-strong: #087b80;
  --teal-soft: rgba(51, 199, 201, 0.14);
  --purple: #6d4aff;
  --blue: #3b82f6;
  --green: #22c55e;
  --green-strong: #15803d;
  --orange: #f59e0b;
  --red: #ef4444;
  --red-strong: #b91c1c;
  --shadow-xs: 0 1px 2px rgba(7, 22, 56, 0.04);
  --shadow-sm: 0 8px 24px rgba(16, 43, 92, 0.06);
  --shadow-md: 0 18px 50px rgba(16, 43, 92, 0.08);
  --radius: 16px;
  --sidebar: 236px;
  --topbar: 82px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 64% 7%, rgba(109, 74, 255, 0.045), transparent 31rem),
    linear-gradient(180deg, #fff 0, #f7f9fc 24rem);
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(0, 138, 131, 0.2);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 18px 0 40px rgba(7, 22, 56, 0.03);
  backdrop-filter: blur(20px);
}

.brand {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.brand-word {
  color: var(--ink);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: 0;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px 8px;
}

.nav-item {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 760;
  text-align: left;
}

.nav-item:hover {
  background: #f4f8fb;
}

.nav-item.active {
  color: var(--purple);
  background: linear-gradient(90deg, rgba(109, 74, 255, 0.11), rgba(51, 199, 201, 0.08));
  box-shadow: inset 3px 0 0 var(--purple);
}

.nav-item.nav-subitem {
  min-height: 42px;
  margin-top: -4px;
  padding-left: 48px;
  color: var(--muted);
  font-size: 12px;
}

.nav-item.nav-subitem .nav-icon {
  width: 18px;
  height: 18px;
}

.nav-icon,
.briefcase-icon,
.chart-icon,
.radar-icon,
.bookmark-icon,
.book-icon,
.report-icon,
.doc-icon,
.eye-icon,
.search-glyph,
.bell-icon,
.grid-icon,
.download-icon,
.target-icon,
.compass-icon,
.refresh-icon,
.star-icon,
.trend-icon,
.globe-icon {
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: 0 0 auto;
  color: currentColor;
}

.view-toggle span,
.ghost-button span {
  pointer-events: none;
}

.search-icon::before,
.search-glyph::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-icon::after,
.search-glyph::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.briefcase-icon::before,
.report-icon::before,
.book-icon::before,
.bookmark-icon::before,
.gear-icon::before,
.radar-icon::before,
.chart-icon::before,
.bell-icon::before,
.grid-icon::before,
.download-icon::before,
.doc-icon::before,
.eye-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
}

.briefcase-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 5px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.chart-icon::before {
  border-left: 0;
  border-top: 0;
}

.chart-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 4px;
  bottom: 6px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skewX(-18deg);
}

.radar-icon::before {
  border-radius: 50%;
}

.radar-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 5px;
  width: 2px;
  height: 10px;
  background: currentColor;
  transform: rotate(42deg);
  transform-origin: bottom;
}

.bookmark-icon::before {
  border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

.book-icon::before {
  border-radius: 2px;
  box-shadow: inset 6px 0 0 rgba(16, 35, 75, 0.08);
}

.report-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 2px;
  height: 6px;
  background: currentColor;
  box-shadow: 4px -2px 0 currentColor, 8px 2px 0 currentColor;
}

.gear-icon::before {
  border-radius: 50%;
}

.gear-icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.bell-icon::before {
  border-radius: 9px 9px 5px 5px;
  border-bottom: 0;
}

.bell-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 2px;
  width: 5px;
  height: 2px;
  border-radius: 3px;
  background: currentColor;
}

.grid-icon::before {
  border: 0;
  border-radius: 2px;
  background:
    linear-gradient(currentColor 0 0) left top / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) right top / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) left bottom / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) right bottom / 7px 7px no-repeat;
}

.download-icon::before {
  inset: 14px 4px 4px;
  border-top: 0;
}

.download-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 3px;
  width: 2px;
  height: 10px;
  background: currentColor;
  box-shadow: -4px 6px 0 -1px currentColor, 4px 6px 0 -1px currentColor;
}

.doc-icon::before {
  border-color: currentColor;
}

.doc-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 7px;
  top: 9px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.eye-icon::before {
  inset: 7px 3px;
  border-radius: 50% 50% 50% 50% / 70% 70% 70% 70%;
}

.eye-icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: currentColor;
}

.target-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #fff;
}

.target-icon::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--teal);
  border-top: 2px solid var(--teal);
}

.compass-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.compass-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 7px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 50% 76%, 0 100%);
  transform: rotate(38deg);
}

.refresh-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
}

.refresh-icon::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(18deg);
}

.star-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: currentColor;
  clip-path: polygon(50% 6%, 61% 37%, 94% 38%, 68% 57%, 78% 89%, 50% 70%, 22% 89%, 32% 57%, 6% 38%, 39% 37%);
}

.trend-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 6px;
  width: 15px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skewX(-24deg);
}

.trend-icon::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
}

.globe-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.globe-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 3px;
  bottom: 3px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 50%;
}

.sidebar-minimize {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 0 17px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 720;
}

.sidebar-minimize > span:first-child {
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: var(--topbar);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(380px, 560px) minmax(280px, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px 0 26px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.breadcrumbs strong {
  color: var(--ink);
}

.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-xs);
  font-weight: 860;
}

.menu-toggle {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: relative;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 4px;
}

.global-search {
  height: 52px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px 0 17px;
  color: var(--muted);
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 22, 56, 0.065);
}

.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  font-weight: 640;
}

.global-search kbd {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: var(--muted);
  background: #f6f8fb;
  font-family: inherit;
  font-size: 12px;
  font-weight: 760;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 13px;
}

.notification-button {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.notification-badge {
  position: absolute;
  right: 4px;
  top: 4px;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 10px;
  font-weight: 850;
}

.help-button {
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 19px;
}

.profile {
  display: grid;
  grid-template-columns: 42px auto 14px;
  align-items: center;
  gap: 12px;
}

.avatar,
.source-avatar {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #01a79b, #006f69);
  font-weight: 850;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 12px;
}

.profile strong,
.profile small {
  display: block;
  white-space: nowrap;
}

.profile strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.profile small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.chevron {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.content {
  width: min(100%, 1720px);
  margin: 0 auto;
  padding: 24px 26px 34px;
}

.page-heading,
.analysis-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

.page-heading p,
.analysis-title p,
.report-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--teal-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.view-toggle,
.ghost-button,
.sort-button,
.back-button,
.rail-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.research-grid {
  display: grid;
  grid-template-columns: minmax(510px, 1fr) minmax(520px, 0.97fr);
  gap: 28px;
  margin-top: 28px;
}

.search-panel,
.metric-card,
.result-panel,
.analysis-hero,
.summary-grid article,
.report,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.search-panel {
  min-height: 226px;
  padding: 20px 22px 18px;
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 820;
}

.search-box {
  min-height: 56px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 6px 0 18px;
  color: var(--muted);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 9px 22px rgba(7, 22, 56, 0.055);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
  font-weight: 680;
}

.search-submit {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  box-shadow: 0 14px 24px rgba(109, 74, 255, 0.18);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.filter-chips button,
.filter-chips span,
.filter-chips em {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--teal-strong);
  background: var(--surface-teal);
  font-size: 12px;
  font-weight: 790;
}

.filter-chips em {
  color: var(--muted);
  background: transparent;
  font-style: normal;
  font-weight: 720;
}

.filter-chips button span {
  margin-left: 7px;
  font-size: 15px;
}

.filter-chips .add-filter {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.live-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.live-note span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(51, 199, 201, 0.16);
}

.live-note[data-mode="loading"] span {
  background: var(--purple);
  animation: pulseStatus 1.1s ease-in-out infinite;
}

.live-note[data-mode="fallback"] span {
  background: var(--orange);
}

.live-note[data-mode="error"] span {
  background: var(--red);
}

@keyframes pulseStatus {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  min-height: 206px;
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 20px;
}

.metric-icon {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  background: var(--surface-teal);
}

.metric-card:nth-child(2) .metric-icon {
  color: var(--orange);
  background: #fff4e7;
}

.metric-card:nth-child(3) .metric-icon {
  color: var(--green);
  background: #e7f8ee;
}

.metric-card:nth-child(4) .metric-icon {
  color: var(--blue);
  background: #edf3ff;
}

.metric-card small {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.metric-card strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  font-weight: 840;
}

.metric-card em {
  color: var(--teal);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.metric-card em.positive {
  width: fit-content;
  border-radius: 999px;
  padding: 2px 8px;
  background: #e7f8ee;
}

.list-section {
  margin-top: 20px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 24px;
}

.cockpit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  margin-top: 28px;
}

.next-action-panel {
  min-height: 232px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(51, 199, 201, 0.14), transparent 42%),
    #fff;
  box-shadow: var(--shadow-sm);
}

.next-action-copy h2 {
  max-width: 760px;
  margin: 14px 0 10px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.12;
}

.next-action-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.48;
  font-weight: 680;
}

.cockpit-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.cockpit-context span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 820;
}

.next-action-score {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.next-action-score .progress-ring {
  width: 92px;
  height: 92px;
  font-size: 22px;
}

.cockpit-rail {
  display: grid;
  gap: 14px;
}

.cockpit-rail .workspace-card {
  min-height: 109px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 20px;
}

.cockpit-rail small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.cockpit-rail strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.cockpit-rail span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.cockpit-kpis {
  margin-top: 20px;
}

.workspace-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.metric-tile {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
}

.metric-tile small,
.metric-tile span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.metric-tile strong {
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
  font-weight: 860;
}

.metric-tile.accent-purple {
  background: linear-gradient(135deg, rgba(109, 74, 255, 0.08), #fff 58%);
}

.metric-tile.accent-cyan {
  background: linear-gradient(135deg, rgba(51, 199, 201, 0.12), #fff 58%);
}

.workspace-card-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 22px 24px;
}

.workspace-card-header h2,
.workspace-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
}

.workspace-card-header h2 {
  font-size: 20px;
}

.workspace-card-header p,
.workspace-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.workspace-rail {
  display: grid;
  align-content: start;
  gap: 18px;
}

.workspace-rail .workspace-card {
  padding: 22px;
}

.project-table,
.analysis-queue,
.cockpit-pipeline {
  display: grid;
}

.cockpit-pipeline-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.84fr) minmax(128px, 0.58fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px 24px;
}

.cockpit-pipeline-row:last-child {
  border-bottom: 0;
}

.cockpit-pipeline-row:hover {
  background: #fbfcff;
}

.cockpit-pipeline-row strong,
.cockpit-pipeline-row span {
  display: block;
}

.cockpit-pipeline-row strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.cockpit-pipeline-row > div:first-child > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.cockpit-task-list {
  display: grid;
  gap: 10px;
}

.cockpit-task {
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcff;
}

.cockpit-task.review {
  border-left-color: var(--orange);
  background: #fffaf1;
}

.cockpit-task.risk {
  border-left-color: var(--red);
  background: #fff5f5;
}

.cockpit-task.go {
  border-left-color: var(--green);
  background: #f2fbf6;
}

.cockpit-task strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.cockpit-task span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.task-meta b,
.task-meta em,
.task-meta time {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.task-meta b {
  color: var(--teal-strong);
  background: var(--teal-soft);
}

.task-meta em {
  color: var(--ink);
  background: #eef3fb;
}

.task-meta time {
  color: #7a4d04;
  background: #fff3d7;
}

.cockpit-extension-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.comparison-matrix {
  display: grid;
  gap: 14px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.comparison-card {
  min-height: 310px;
  display: grid;
  align-content: start;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  background: #fbfcff;
}

.comparison-card header {
  display: grid;
  gap: 5px;
}

.comparison-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.comparison-card header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.comparison-score {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 57%, transparent 58%),
    conic-gradient(var(--teal) var(--score), #e9eef6 0);
  color: var(--teal-strong);
  font-size: 16px;
  font-weight: 880;
}

.comparison-card dl {
  display: grid;
  grid-template-columns: minmax(86px, auto) 1fr;
  gap: 7px 8px;
  margin: 0;
}

.comparison-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.comparison-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
}

.ghost-button.compact {
  min-height: 44px;
  padding: 0 12px;
  justify-self: start;
}

.learning-loop-panel {
  display: grid;
  gap: 14px;
}

.learning-outcome-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  background: #f6f8fb;
}

.learning-outcome-toggle button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-weight: 820;
  cursor: pointer;
}

.learning-outcome-toggle button.active {
  color: var(--teal-strong);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.learning-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.learning-summary article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: #fbfcff;
}

.learning-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.learning-summary strong {
  color: var(--ink);
  font-size: 16px;
}

.learning-summary span,
.learning-entry-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.learning-entry-list {
  display: grid;
  gap: 9px;
}

.learning-entry-list span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
}

.learning-entry-list strong {
  color: var(--ink);
  font-size: 13px;
}

.project-table-head,
.project-row {
  display: grid;
  grid-template-columns: minmax(270px, 1.35fr) minmax(112px, 0.56fr) minmax(92px, 0.46fr) 68px minmax(140px, 0.7fr);
  align-items: center;
  gap: 14px;
}

.project-table-head {
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  color: var(--muted);
  background: #fafbfd;
  font-size: 12px;
  font-weight: 780;
}

.project-row {
  width: 100%;
  min-height: 82px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.project-row.selected {
  background: linear-gradient(90deg, rgba(51, 199, 201, 0.08), #fff 42%);
}

.project-row:last-child {
  border-bottom: 0;
}

.project-row:hover,
.analysis-queue-item:hover {
  background: #fbfcff;
}

.project-row strong,
.project-row span {
  display: block;
}

.project-row strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.project-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.fit-score,
.queue-score {
  color: var(--purple);
  font-size: 20px;
  font-weight: 860;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-button.compact {
  min-height: 44px;
  padding: 0 11px;
  font-size: 12px;
  box-shadow: none;
}

.implementation-plan {
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.plan-dashboard {
  display: grid;
  gap: 18px;
  padding: 22px 24px 24px;
}

.plan-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.plan-dashboard-head h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 18px;
}

.plan-dashboard-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.plan-dashboard-head > span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 820;
}

.plan-hero,
.plan-kpis,
.plan-grid {
  display: grid;
  gap: 14px;
}

.plan-hero {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-grid {
  grid-template-columns: 1fr 1fr;
}

.plan-hero article,
.plan-kpis article,
.plan-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.plan-hero article {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
}

.plan-hero small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.plan-hero strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
}

.plan-hero p,
.plan-grid li,
.plan-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
  font-weight: 650;
}

.plan-kpis article {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 16px;
}

.plan-kpis strong {
  color: var(--purple);
  font-size: 22px;
  line-height: 1.1;
}

.plan-kpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.plan-timeline {
  display: grid;
  gap: 12px;
}

.plan-timeline article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  background: #fff;
}

.plan-timeline b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 16px;
}

.plan-timeline strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.plan-timeline p {
  margin: 4px 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.plan-timeline em {
  color: var(--teal-strong);
  font-style: normal;
  font-size: 12px;
  font-weight: 820;
}

.plan-grid article {
  padding: 16px;
}

.plan-grid h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
}

.plan-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-chip-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: #f0f4f9;
  font-size: 12px;
  font-weight: 760;
}

.plan-grid ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.decision-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.decision-stack span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  line-height: 1.45;
}

.decision-stack strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.capacity-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  margin: 16px 0 14px;
  background: #e9eef5;
}

.capacity-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--purple));
}

.analysis-queue-item {
  min-height: 94px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 90px auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
}

.analysis-queue-item:last-child {
  border-bottom: 0;
}

.tracking-list,
.bookmark-list,
.knowledge-library,
.report-center {
  display: grid;
}

.tracking-item,
.bookmark-item,
.knowledge-item {
  min-height: 86px;
  display: grid;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  background: #fff;
}

.tracking-item {
  grid-template-columns: 14px minmax(0, 1fr) minmax(150px, auto) auto;
}

.bookmark-item {
  grid-template-columns: 38px minmax(0, 1fr) 92px auto;
}

.knowledge-item {
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

.tracking-item:last-child,
.bookmark-item:last-child,
.knowledge-item:last-child {
  border-bottom: 0;
}

.tracking-item:hover,
.bookmark-item:hover,
.knowledge-item:hover,
.report-row:hover {
  background: #fbfcff;
}

.tracking-status {
  width: 10px;
  height: 54px;
  border-radius: 999px;
  background: var(--orange);
}

.tracking-status.hot {
  background: var(--purple);
}

.tracking-status.warm {
  background: var(--teal);
}

.tracking-item strong,
.tracking-item span,
.bookmark-item strong,
.bookmark-item span,
.knowledge-item strong,
.knowledge-item span,
.report-row strong,
.report-row span {
  display: block;
}

.tracking-item strong,
.bookmark-item strong,
.knowledge-item strong,
.report-row strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.tracking-item > div:nth-child(2) > span,
.bookmark-item > div:nth-child(2) > span,
.knowledge-item > div:nth-child(2) > span,
.report-row > div:first-child > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.bookmark-ribbon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: var(--purple);
  background: rgba(109, 74, 255, 0.1);
}

.knowledge-topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
  background: #fafbfd;
}

.knowledge-topic-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 780;
}

.knowledge-topic-strip strong {
  color: var(--ink);
}

.knowledge-index-summary,
.knowledge-category-grid,
.profile-grid {
  display: grid;
  gap: 14px;
  padding: 18px 24px 0;
}

.knowledge-index-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.knowledge-index-summary article,
.knowledge-category-card,
.profile-card,
.knowledge-topic-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.knowledge-index-summary article {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px;
}

.knowledge-index-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.knowledge-index-summary strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.knowledge-index-summary span,
.knowledge-category-card small,
.profile-card span,
.profile-card p,
.knowledge-topic-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.knowledge-category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.knowledge-category-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.knowledge-category-card > div:first-child {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.knowledge-category-card strong,
.profile-card strong,
.knowledge-topic-row strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.28;
}

.knowledge-document-list {
  display: grid;
  gap: 7px;
}

.knowledge-document-list a {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  background: #f6f8fb;
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}

.knowledge-document-list a:hover {
  color: var(--teal-strong);
  background: var(--teal-soft);
}

.knowledge-document-list em {
  flex: 0 0 auto;
  color: var(--teal-strong);
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
}

.knowledge-section {
  display: grid;
  gap: 14px;
  padding: 22px 24px 0;
}

.knowledge-section:last-child {
  padding-bottom: 24px;
}

.knowledge-section header h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 16px;
}

.knowledge-section header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.profile-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  padding: 16px;
}

.profile-card p {
  grid-column: 1 / -1;
  margin: 0;
}

.profile-link {
  grid-column: 1 / -1;
  width: max-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #bce5dd;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 820;
}

.profile-link:hover {
  border-color: var(--teal);
}

.profile-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  font-size: 14px;
  font-weight: 880;
}

.knowledge-topic-list {
  display: grid;
  gap: 10px;
}

.knowledge-topic-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(130px, 0.72fr) minmax(180px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

.intelligence-layout {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.bid-process-map {
  display: grid;
}

.bid-process-phase {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 104px;
  align-items: center;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.bid-process-phase:hover {
  background: #fbfcff;
}

.bid-process-phase.selected {
  background: linear-gradient(90deg, rgba(51, 199, 201, 0.12), #fff 44%);
  box-shadow: inset 4px 0 0 var(--teal);
}

.bid-process-phase:focus-visible {
  outline: 3px solid rgba(51, 199, 201, 0.35);
  outline-offset: -3px;
}

.bid-process-phase:last-child {
  border-bottom: 0;
}

.bid-process-phase.status-review {
  background: #fffdf8;
}

.bid-process-phase.status-planned {
  background: #fffafa;
}

.phase-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 15px;
  font-weight: 880;
}

.bid-process-phase strong,
.buyer-intelligence-card strong,
.intelligence-card h3,
.expert-stack strong {
  display: block;
  color: var(--ink);
}

.bid-process-phase strong {
  font-size: 14px;
  line-height: 1.3;
}

.bid-process-phase p,
.bid-process-phase span,
.buyer-intelligence-card span,
.buyer-intelligence-card dd,
.intelligence-card p,
.intelligence-card li,
.expert-stack span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.bid-process-phase p {
  margin: 4px 0;
  color: var(--text);
}

.phase-score {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.phase-score b {
  color: var(--purple);
  font-size: 20px;
  line-height: 1;
}

.phase-detail-card {
  display: grid;
  gap: 14px;
}

.phase-detail-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.phase-detail-card p,
.phase-detail-card dd,
.next-step-box span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.phase-detail-card dl {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr;
  gap: 9px 12px;
  margin: 0;
}

.phase-detail-card dt {
  color: var(--ink);
  font-size: 12px;
  font-weight: 840;
}

.phase-detail-card dd {
  margin: 0;
}

.next-step-box {
  display: grid;
  gap: 4px;
  border: 1px solid #bce5dd;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #edf9f6, #e8f7f4);
}

.next-step-box strong {
  margin: 0;
  color: var(--teal-strong);
  font-size: 13px;
}

.buyer-intelligence-card {
  display: grid;
  gap: 14px;
}

.buyer-intelligence-card > strong {
  font-size: 17px;
}

.buyer-intelligence-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.buyer-intelligence-card dt {
  color: var(--ink);
  font-size: 12px;
  font-weight: 840;
}

.buyer-intelligence-card dd {
  margin: 0;
}

.intelligence-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.intelligence-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.intelligence-card h3 {
  margin: 0;
  font-size: 16px;
}

.intelligence-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.intelligence-score-ring {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
}

.intelligence-score-ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
}

.intelligence-score-ring span {
  position: relative;
  z-index: 1;
  color: var(--teal-strong);
  font-size: 20px;
  font-weight: 880;
}

.todo-stack,
.expert-stack,
.risk-stack {
  display: grid;
  gap: 9px;
}

.todo-stack span,
.risk-stack span,
.expert-stack div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbfcff;
}

.todo-stack .todo-missing,
.risk-stack .risk-red {
  border-color: #ffd2d2;
  color: #b42318;
  background: #fff5f5;
}

.todo-stack .todo-review,
.risk-stack .risk-yellow {
  border-color: #ffe2b6;
  color: #9f5800;
  background: #fffaf1;
}

.risk-stack .risk-green {
  border-color: #bce5dd;
  color: var(--teal-strong);
  background: var(--teal-soft);
}

.market-metric-grid {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.market-trigger-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  margin-top: 20px;
}

.market-trigger-list {
  display: grid;
}

.market-trigger-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px minmax(220px, 0.62fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}

.market-trigger-card:last-child {
  border-bottom: 0;
}

.market-trigger-main h3,
.market-evidence-item h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.28;
}

.market-trigger-main p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.tag-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--text);
  background: #f0f4f8;
  font-size: 12px;
  font-weight: 790;
}

.market-trigger-scores {
  display: grid;
  gap: 10px;
}

.market-trigger-scores dl {
  display: grid;
  grid-template-columns: minmax(86px, auto) 1fr;
  gap: 7px 10px;
  margin: 0;
}

.market-trigger-scores dt,
.market-evidence-item dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 840;
  text-transform: uppercase;
}

.market-trigger-scores dd,
.market-evidence-item dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
}

.market-trigger-action {
  display: grid;
  gap: 6px;
  border: 1px solid #bce5dd;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #edf9f6, #f8fffd);
}

.market-trigger-action strong,
.market-source-item strong,
.market-timeline-item strong {
  color: var(--ink);
  font-size: 13px;
}

.market-trigger-action span,
.market-source-item span,
.market-timeline-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.market-source-stack,
.market-timeline,
.market-evidence-panel,
.market-playbook {
  display: grid;
  gap: 12px;
}

.market-source-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcff;
}

.market-source-item .accuracy-bar {
  grid-column: 1 / -1;
}

.market-source-item b {
  color: var(--teal-strong);
  font-size: 13px;
}

.market-timeline-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: #fff;
}

.timeline-dots {
  display: flex;
  gap: 6px;
}

.timeline-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d9e2f1;
}

.timeline-dots i.active {
  background: var(--teal);
}

.market-detail-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
  margin-top: 20px;
}

.market-evidence-panel,
.market-playbook {
  padding: 20px 24px 24px;
}

.market-evidence-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fbfcff;
}

.market-evidence-item dl {
  display: grid;
  grid-template-columns: minmax(82px, auto) 1fr;
  gap: 8px 12px;
  margin: 0;
}

.accuracy-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.accuracy-metric-grid {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.accuracy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 20px;
  margin-top: 20px;
}

.accuracy-precision-card,
.accuracy-heatmap-card {
  overflow: hidden;
}

.accuracy-precision-list {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.accuracy-row {
  display: grid;
  gap: 9px;
}

.accuracy-row-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.accuracy-row-head strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.accuracy-row-head span,
.accuracy-row-head b {
  font-size: 12px;
  font-weight: 850;
}

.accuracy-row-head .negative {
  color: #d44545;
}

.accuracy-row-head .positive {
  color: var(--teal-strong);
}

.accuracy-row-head b {
  color: var(--ink);
  font-size: 14px;
}

.accuracy-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.accuracy-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ink), var(--teal));
}

.accuracy-bar.compact {
  height: 6px;
}

.accuracy-heatmap-card {
  color: #f7fbff;
  background:
    radial-gradient(circle at 20% 0%, rgba(51, 199, 201, 0.18), transparent 32%),
    linear-gradient(135deg, #101a2e, #172238);
}

.accuracy-heatmap-card .workspace-card-header {
  border-color: rgba(255, 255, 255, 0.1);
}

.accuracy-heatmap-card h2,
.accuracy-heatmap-card .section-eyebrow {
  color: #ffffff;
}

.accuracy-heatmap-card p {
  color: #b8c8df;
}

.accuracy-heatmap {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.heatmap-head,
.heatmap-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(3, minmax(78px, 0.58fr));
  align-items: center;
  gap: 10px;
}

.heatmap-head {
  color: #96abc9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heatmap-row strong {
  color: #f7fbff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.heatmap-cell {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.heatmap-cell.hot {
  background: #0e9f82;
}

.heatmap-cell.warm {
  background: #1f6f8b;
}

.heatmap-cell.cool {
  background: #6d6b22;
}

.heatmap-scale {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  color: #9cb1ce;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.accuracy-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.accuracy-log,
.accuracy-training-queue {
  display: grid;
  gap: 12px;
  padding: 20px 24px 24px;
}

.accuracy-log-item,
.training-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fbfcff;
}

.accuracy-log-item {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.accuracy-log-item strong,
.training-item strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.accuracy-log-item p,
.training-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.report-table-head,
.report-row {
  display: grid;
  grid-template-columns: minmax(320px, 1.6fr) minmax(110px, 0.55fr) minmax(150px, 0.75fr) auto;
  align-items: center;
  gap: 16px;
}

.report-table-head {
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  color: var(--muted);
  background: #fafbfd;
  font-size: 12px;
  font-weight: 780;
}

.report-row {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
}

.report-row:last-child {
  border-bottom: 0;
}

.analysis-queue-item strong,
.analysis-queue-item span {
  display: block;
}

.analysis-queue-item strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.analysis-queue-item > div:nth-child(2) > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.analysis-queue-item .result-tags {
  margin-top: 8px;
}

.queue-action {
  min-height: 38px;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.bookmark-ribbon,
.tracking-item [aria-hidden="true"],
.bookmark-item [aria-hidden="true"],
.knowledge-item [aria-hidden="true"],
.report-row [aria-hidden="true"] {
  pointer-events: none;
}

.section-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-toolbar h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.sort-button {
  min-width: 228px;
  box-shadow: none;
}

.result-panel {
  overflow: hidden;
}

.list-head,
.tender-result {
  display: grid;
  grid-template-columns: minmax(175px, 1.02fr) minmax(300px, 2fr) minmax(86px, 0.58fr) minmax(140px, 0.82fr) minmax(220px, 1.55fr) minmax(104px, 0.58fr) minmax(156px, 0.82fr);
  align-items: center;
  gap: 18px;
}

.list-head {
  min-height: 52px;
  padding: 0 22px;
  color: var(--muted);
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 790;
}

.search-results {
  display: grid;
}

.tender-result {
  min-height: 78px;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 22px;
  background: #fff;
  transition: background 160ms ease;
}

.tender-result:hover {
  background: #fbfdfd;
}

.tender-result:last-child {
  border-bottom: 0;
}

.source-cell,
.result-title-cell,
.result-action-cell,
.result-score-cell {
  min-width: 0;
  display: flex;
  align-items: center;
}

.source-cell {
  gap: 15px;
}

.source-logo {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}

.source-logo.eu {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(145deg, #3274f6, #0b49cd);
}

.source-logo.it,
.source-logo.dtpv {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(145deg, #00ad9b, #007d77);
}

.source-logo.ad {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(145deg, #7d3af2, #5719c7);
}

.cell-main,
.cell-sub,
.result-date,
.procedure-cell {
  overflow-wrap: anywhere;
}

.result-next-action {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 9px 10px;
  background: #f6fbfb;
}

.result-next-action strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
}

.result-next-action span {
  color: var(--teal-strong);
  font-size: 12px;
  font-weight: 840;
  line-height: 1.25;
}

.result-next-action em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
}

.cell-main {
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.28;
}

.cell-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.result-date,
.procedure-cell {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.result-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.result-tags span,
.status-pill,
.outcome-pill,
.ratio-pill,
.relevance-dot,
.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 790;
}

.result-tags span {
  min-height: 25px;
  padding: 0 10px;
  color: var(--text);
  background: #f0f4f8;
}

.result-score-cell {
  justify-content: center;
}

.score-ring,
.progress-ring,
.mini-ring {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  border-radius: 50%;
  color: var(--green);
  background: conic-gradient(var(--green) 0deg, #edf2f6 0deg);
  font-weight: 880;
}

.score-ring {
  width: 66px;
  height: 66px;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.score-ring::before,
.progress-ring::before,
.mini-ring::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
  z-index: -1;
}

.score-ring::before {
  inset: 7px;
}

.score-ring.medium {
  color: var(--orange);
}

.result-action-cell {
  justify-content: flex-end;
  gap: 9px;
}

.row-action {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
}

.row-action.primary-action {
  width: auto;
  min-width: 128px;
  padding: 0 12px;
  gap: 8px;
  color: var(--teal-strong);
  font-size: 12px;
  font-weight: 840;
}

.row-action *,
.score-ring * {
  pointer-events: none;
}

.table-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding: 0 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.table-footer button,
.pagination button {
  min-width: 38px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font-weight: 760;
}

.pagination {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.pagination button.active {
  color: #fff;
  border-color: var(--purple);
  background: var(--purple);
}

.analysis-heading,
.analysis-page-heading {
  align-items: center;
  margin-bottom: 18px;
}

.analysis-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.analysis-page-heading h1 {
  margin-bottom: 6px;
}

.analysis-page-heading p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.analysis-page-heading .back-button {
  min-height: 22px;
  padding: 0;
  justify-content: flex-start;
}

.back-button {
  border: 0;
  box-shadow: none;
  color: var(--teal-strong);
  background: transparent;
  padding: 0 4px;
}

.analysis-actions {
  display: flex;
  gap: 12px;
}

.analysis-hero {
  min-height: 142px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(92px, 118px) minmax(92px, 116px) minmax(128px, 168px) minmax(150px, 0.7fr);
  align-items: center;
  gap: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.analysis-hero > * {
  min-width: 0;
}

.analysis-summary {
  display: none;
}

.source-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(145deg, #3274f6, #0b49cd);
}

.analysis-title h1 {
  margin-bottom: 5px;
  font-size: 21px;
}

.analysis-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.analysis-score,
.analysis-chip {
  display: grid;
  gap: 8px;
}

.analysis-score small,
.analysis-chip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 790;
}

.progress-ring {
  width: 72px;
  height: 72px;
  font-size: 14px;
}

.progress-ring::before {
  inset: 8px;
}

.analysis-chip strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.analysis-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.analysis-chip #recommendation {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 13px;
  font-weight: 870;
}

.analysis-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.analysis-topics span {
  max-width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  overflow-wrap: anywhere;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--text);
  background: #f0f4f8;
  font-size: 12px;
  font-weight: 780;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.summary-grid.analysis-summary {
  display: none;
}

.summary-grid article {
  min-height: 98px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 20px;
}

.summary-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 790;
}

.summary-grid strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.analysis-tabs {
  min-height: 70px;
  display: flex;
  align-items: flex-end;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.analysis-tabs::-webkit-scrollbar {
  display: none;
}

.analysis-tabs button {
  position: relative;
  min-height: 52px;
  flex: 0 0 auto;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 13px;
  font-weight: 740;
}

.analysis-tabs button.active {
  color: var(--purple);
}

.analysis-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 18px;
}

.analysis-layout.document-generation-mode {
  grid-template-columns: minmax(0, 1fr);
}

.analysis-layout.document-generation-mode .insight-rail {
  display: none;
}

.report {
  overflow: hidden;
}

.report-header {
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.analysis-layout .table-tools {
  display: none;
}

.report-header h2 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 18px;
}

.table-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.table-tools input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  outline: none;
  font-size: 13px;
  font-weight: 620;
}

.table-tools button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 820;
}

.match-list {
  min-height: 240px;
}

.analysis-loading {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 36px;
  color: var(--text);
  text-align: center;
}

.analysis-loading strong {
  color: var(--ink);
  font-size: 18px;
}

.analysis-loading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.loading-pulse {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(var(--purple), var(--teal), var(--purple));
  position: relative;
  animation: spinPulse 1.1s linear infinite;
}

.loading-pulse::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

@keyframes spinPulse {
  to {
    transform: rotate(360deg);
  }
}

.document-details {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.document-workbench {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.doc-workbench-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.doc-workbench-kpis article {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.doc-workbench-kpis strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.doc-workbench-kpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.doc-generation-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.doc-generation-head,
.doc-generation-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.05fr) minmax(130px, 0.76fr) minmax(190px, 1.18fr) minmax(170px, 1fr) minmax(150px, 0.9fr);
  align-items: center;
  gap: 12px;
}

.doc-generation-head {
  min-height: 48px;
  padding: 0 16px;
  color: var(--muted);
  background: #fafbfd;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 780;
}

.doc-generation-row {
  min-height: 92px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.doc-generation-row:last-child {
  border-bottom: 0;
}

.doc-generation-row.status-missing {
  background: #fffafa;
}

.doc-generation-row.status-review {
  background: #fffdf8;
}

.doc-generation-row > div {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
  overflow-wrap: break-word;
}

.doc-generation-row strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.32;
}

.doc-generation-row p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.document-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.document-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.doc-card-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--teal-strong);
  background: var(--teal-soft);
}

.document-card.missing .doc-card-icon {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}

.document-card.optional .doc-card-icon {
  color: var(--ink);
  background: #f2f5fa;
}

.document-card small,
.document-card strong {
  display: block;
}

.document-card small {
  color: var(--text);
  font-size: 12px;
  font-weight: 780;
}

.document-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  font-weight: 860;
}

.warning-icon::before,
.info-icon::before,
.pdf-icon::before {
  content: "";
  position: absolute;
}

.warning-icon,
.info-icon,
.pdf-icon {
  position: relative;
  display: inline-block;
}

.warning-icon::before {
  left: 9px;
  top: 7px;
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 24px solid currentColor;
}

.warning-icon::after {
  content: "!";
  position: absolute;
  left: 18px;
  top: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.info-icon::before {
  inset: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.info-icon::after {
  content: "i";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: currentColor;
  font-size: 17px;
  font-weight: 900;
}

.missing-documents {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.missing-documents header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.missing-documents h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 17px;
}

.missing-documents p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.missing-doc-head,
.missing-doc-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.08fr) 78px minmax(160px, 1.16fr) minmax(180px, 1.24fr);
  align-items: center;
  gap: 10px;
}

.missing-doc-head > span,
.missing-doc-row > div {
  min-width: 0;
}

.missing-doc-head {
  min-height: 48px;
  padding: 0 18px;
  color: var(--muted);
  background: #fafbfd;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 780;
}

.missing-doc-row {
  min-height: 72px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.missing-doc-row:last-child {
  border-bottom: 0;
}

.doc-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.doc-name strong,
.doc-reason,
.doc-impact span {
  overflow-wrap: break-word;
  hyphens: auto;
}

.pdf-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--red);
  background: rgba(239, 68, 68, 0.1);
}

.pdf-icon::before {
  left: 9px;
  top: 6px;
  width: 13px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.pdf-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 16px;
  width: 12px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.importance-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 780;
}

.importance-pill.high {
  color: var(--red-strong);
  background: rgba(239, 68, 68, 0.12);
}

.importance-pill.medium {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}

.doc-reason,
.doc-impact {
  color: var(--text);
  font-size: 12px;
  font-weight: 660;
  line-height: 1.48;
}

.doc-impact strong,
.doc-impact span {
  display: block;
}

.doc-impact strong {
  color: #b45309;
  font-weight: 820;
}

.doc-impact span {
  margin-top: 2px;
  color: var(--muted);
}

.document-accordion {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 820;
}

.analysis-implementation {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.analysis-plan-dashboard {
  margin: 0;
}

.implementation-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.implementation-workstreams {
  display: grid;
  gap: 10px;
}

.implementation-workstreams article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcff;
}

.implementation-workstreams strong {
  color: var(--ink);
  font-size: 13px;
}

.implementation-workstreams span,
.implementation-workstreams p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.analysis-view {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.decision-view {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.decision-hero-panel {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(51, 199, 201, 0.12), transparent 48%),
    #fff;
  box-shadow: var(--shadow-xs);
}

.decision-hero-panel h3 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.decision-hero-panel p {
  max-width: 740px;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.decision-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.decision-meta-row span {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 820;
}

.decision-score-block {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.decision-score-block .progress-ring.large {
  width: 92px;
  height: 92px;
  font-size: 21px;
}

.decision-score-block strong {
  color: var(--ink);
  font-size: 13px;
}

.decision-score-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.decision-kpi-grid,
.decision-two-column {
  display: grid;
  gap: 14px;
}

.decision-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.decision-two-column {
  grid-template-columns: 1fr 1fr;
}

.decision-kpi-grid article,
.decision-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.decision-kpi-grid article {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px;
}

.decision-kpi-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.decision-kpi-grid strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.decision-kpi-grid span,
.decision-reason span,
.decision-action span,
.evidence-strip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.decision-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.decision-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.decision-reason-list,
.decision-action-list,
.evidence-strip {
  display: grid;
  gap: 10px;
}

.decision-reason,
.decision-action {
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fbfcff;
}

.decision-reason.review,
.decision-action.review {
  border-left-color: var(--orange);
  background: #fffaf1;
}

.decision-reason.risk,
.decision-action.risk {
  border-left-color: var(--red);
  background: #fff5f5;
}

.decision-reason.positive,
.decision-action.positive {
  border-left-color: var(--green);
  background: #f2fbf6;
}

.decision-reason strong,
.decision-action strong,
.evidence-strip strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.evidence-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.evidence-strip span {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #f8fafc;
  overflow-wrap: anywhere;
}

.command-center {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.command-hero {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(51, 199, 201, 0.14), transparent 48%),
    #fff;
  box-shadow: var(--shadow-xs);
}

.command-hero h3 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.12;
}

.command-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.command-readiness-score {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  color: var(--teal-strong);
}

.command-readiness-score span,
.command-readiness-score small {
  display: block;
  position: relative;
  z-index: 1;
  text-align: center;
}

.command-readiness-score span {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.command-readiness-score small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.readiness-score-grid,
.gate-status-row,
.command-grid {
  display: grid;
  gap: 14px;
}

.readiness-score-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gate-status-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.command-focus-grid .gate-status-row {
  height: 100%;
}

.risk-prominent {
  border-left: 4px solid var(--orange);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 56%),
    #fff;
}

.risk-prominent h3 {
  margin: 8px 0 4px;
}

.submission-blocker-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.blocker-metric {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.blocker-metric.blocked {
  border-left-color: var(--red);
  background: #fff5f5;
}

.blocker-metric.review {
  border-left-color: var(--orange);
  background: #fffaf1;
}

.blocker-metric.done {
  border-left-color: var(--green);
  background: #f2fbf6;
}

.blocker-metric strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.blocker-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.command-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.command-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.readiness-score-grid article,
.gate-status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.readiness-score-grid article {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
}

.readiness-score-grid article.partial,
.gate-status-card.review {
  border-left: 4px solid var(--orange);
  background: #fffaf1;
}

.readiness-score-grid article.gap,
.gate-status-card.blocked {
  border-left: 4px solid var(--red);
  background: #fff5f5;
}

.readiness-score-grid small,
.gate-status-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.readiness-score-grid small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.score-help {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 11px;
  font-weight: 900;
}

.readiness-score-grid strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.readiness-score-grid span,
.gate-status-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.gate-status-card {
  min-height: 124px;
  display: grid;
  align-content: start;
  gap: 8px;
  border-left: 4px solid var(--green);
  padding: 16px;
}

.gate-status-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.gate-status-card em {
  justify-self: start;
  font-style: normal;
}

.approval-audit-trail {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.approval-audit-trail h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.approval-audit-trail > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.approval-audit-trail article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fbfcff;
}

.approval-audit-trail article.review {
  border-left-color: var(--orange);
  background: #fffaf1;
}

.approval-audit-trail article.blocked {
  border-left-color: var(--red);
  background: #fff5f5;
}

.approval-audit-trail strong {
  color: var(--ink);
  font-size: 13px;
}

.approval-audit-trail span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.submission-gap-list,
.document-status-stack,
.evidence-mini-list,
.command-timeline,
.executive-summary-draft {
  display: grid;
  gap: 10px;
}

.submission-gap {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcff;
}

.submission-gap.done {
  opacity: 0.78;
  border-left-color: var(--green);
  background: #f2fbf6;
}

.gap-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-strong);
  font-size: 12px;
  font-weight: 820;
}

.gap-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.submission-gap.review {
  border-left-color: var(--orange);
  background: #fffaf1;
}

.submission-gap.risk {
  border-left-color: var(--red);
  background: #fff5f5;
}

.submission-gap.positive {
  border-left-color: var(--green);
  background: #f2fbf6;
}

.submission-gap strong,
.evidence-mini-list strong,
.command-timeline strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.submission-gap span,
.evidence-mini-list span,
.command-timeline span,
.executive-summary-draft p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.46;
  font-weight: 650;
}

.submission-gap .task-meta select,
.submission-gap .task-meta input {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 760;
}

.gap-actions,
.summary-actions,
.summary-tone-control,
.summary-source-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gap-actions .ghost-button.compact,
.summary-actions .ghost-button.compact {
  min-height: 38px;
}

.document-status-stack span,
.evidence-mini-list > span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fbfcff;
}

.document-status-stack span.ready {
  border-left: 4px solid var(--green);
}

.document-status-stack span.review {
  border-left: 4px solid var(--orange);
}

.document-status-stack span.blocked {
  border-left: 4px solid var(--red);
}

.document-status-stack strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.command-timeline article {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fbfcff;
}

.command-timeline b {
  color: var(--teal-strong);
  font-size: 12px;
}

.executive-summary-card {
  align-content: start;
}

.executive-summary-draft p {
  margin: 0;
}

.executive-summary-draft p strong {
  color: var(--ink);
}

.summary-tone-control {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  background: #f6f8fb;
}

.summary-tone-control button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 820;
}

.summary-tone-control button.active {
  color: var(--teal-strong);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.summary-source-anchors span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 11px;
  font-weight: 760;
}

body.presentation-mode {
  background: #f7f9fc;
}

.mobile-next-action {
  display: none;
}

.presentation-mode .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

.presentation-mode .sidebar,
.presentation-mode .topbar,
.presentation-mode .analysis-tabs,
.presentation-mode .insight-rail,
.presentation-mode .back-button,
.presentation-mode .analysis-page-heading p,
.presentation-mode .analysis-actions .icon-button,
.presentation-mode .analysis-actions .ghost-button:not(.presentation-toggle) {
  display: none !important;
}

.presentation-mode .workspace {
  min-width: 0;
}

.presentation-mode .content {
  padding: 22px 28px 36px;
}

.presentation-mode .analysis-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.presentation-mode .analysis-actions {
  justify-content: flex-end;
}

.presentation-mode .presentation-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 90;
  width: auto;
  min-width: 190px;
  box-shadow: var(--shadow-md);
}

.presentation-mode .analysis-layout {
  grid-template-columns: minmax(0, 1fr);
}

.presentation-mode .command-center {
  max-width: 1320px;
  margin: 0 auto;
}

.evidence-drawer[hidden] {
  display: none;
}

.evidence-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
}

.evidence-backdrop {
  background: rgba(7, 20, 45, 0.32);
  backdrop-filter: blur(2px);
}

.evidence-panel {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
}

.evidence-panel > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 24px;
}

.evidence-panel h2,
.evidence-panel h3,
.evidence-panel p {
  margin: 0;
}

.evidence-panel h2 {
  color: var(--ink);
  font-size: 22px;
}

.evidence-panel header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.evidence-drawer-content {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 15px;
  overflow-y: auto;
  padding: 18px 24px 24px;
}

.evidence-confidence {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(51, 199, 201, 0.12), transparent 54%),
    #fbfcff;
}

.evidence-confidence strong {
  color: var(--ink);
  font-size: 15px;
}

.evidence-confidence p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
  font-weight: 650;
}

.evidence-confidence .intelligence-score-ring {
  width: 66px;
  height: 66px;
  font-size: 15px;
}

.evidence-drawer-section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  background: #fff;
}

.evidence-drawer-section h3 {
  color: var(--ink);
  font-size: 15px;
}

.evidence-drawer-section dl {
  display: grid;
  grid-template-columns: minmax(112px, auto) 1fr;
  gap: 8px 10px;
  margin: 0;
}

.evidence-drawer-section dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.evidence-drawer-section dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
}

.drawer-match-list,
.drawer-source-list,
.evidence-claim-list,
.drawer-assumption-list {
  display: grid;
  gap: 9px;
}

.drawer-match-list article,
.drawer-source-list button,
.drawer-assumption-list span {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
  background: #fbfcff;
}

.drawer-source-list button {
  color: inherit;
  text-align: left;
}

.drawer-source-list button:hover,
.drawer-source-list button.active-source {
  border-color: rgba(51, 199, 201, 0.55);
  background: var(--teal-soft);
}

.drawer-match-list strong,
.drawer-source-list strong,
.evidence-claim strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.drawer-match-list span,
.drawer-source-list button,
.drawer-assumption-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  font-weight: 650;
}

.evidence-claim {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcff;
}

.evidence-claim.review {
  border-left-color: var(--orange);
  background: #fffaf1;
}

.evidence-claim.risk {
  border-left-color: var(--red);
  background: #fff5f5;
}

.evidence-claim > button {
  justify-self: start;
  min-height: 30px;
  border: 1px solid rgba(51, 199, 201, 0.3);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 11px;
  font-weight: 820;
}

.evidence-claim dl {
  grid-template-columns: 88px minmax(0, 1fr);
}

.drawer-match-list p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.42;
  font-weight: 650;
}

.analysis-kpi-row,
.project-match-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.analysis-kpi-row article,
.project-stage,
.project-match-hero,
.topic-card,
.similar-item,
.note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.analysis-kpi-row article {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
}

.analysis-kpi-row small,
.project-match-hero small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.analysis-kpi-row strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
}

.analysis-kpi-row span,
.project-stage p,
.project-match-hero p,
.topic-card p,
.similar-item p,
.note-card p,
.note-card footer {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
  font-weight: 650;
}

.topic-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.topic-card {
  min-height: 188px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  color: inherit;
  text-align: left;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.topic-card:hover,
.project-match-row:hover,
.similar-item:hover {
  border-color: #cbd7e7;
  box-shadow: 0 16px 38px rgba(16, 43, 92, 0.09);
  transform: translateY(-1px);
}

.topic-card h3 {
  margin: 12px 0 7px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.topic-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.project-match-hero {
  min-height: 138px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 20px;
  background: linear-gradient(135deg, #f7fbff, #eef9f7);
}

.project-match-hero strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.project-stage {
  min-height: 138px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 20px;
}

.project-stage span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 17px;
  font-weight: 860;
}

.project-stage strong {
  color: var(--ink);
  font-size: 15px;
}

.project-match-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.project-match-head,
.project-match-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(130px, 0.78fr) minmax(240px, 1.35fr) minmax(140px, 0.8fr);
  align-items: center;
  gap: 16px;
}

.project-match-head {
  min-height: 48px;
  padding: 0 18px;
  color: var(--muted);
  background: #fafbfd;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 780;
}

.project-match-row {
  width: 100%;
  min-height: 82px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 18px;
  color: inherit;
  background: #fff;
  text-align: left;
}

.project-match-row:last-child {
  border-bottom: 0;
}

.project-match-row strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.project-match-row span {
  font-size: 12px;
}

.soft-chip {
  max-width: 100%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  margin: 3px 5px 3px 0;
  padding: 0 9px;
  color: var(--ink);
  background: #f0f4f9;
  font-size: 11px;
  font-weight: 760;
}

.muted-chip {
  color: var(--muted);
}

.similar-list,
.notes-board {
  display: grid;
  gap: 14px;
}

.similar-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.similar-item strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.similar-score {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 15px;
  font-weight: 880;
}

.notes-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-left: 4px solid var(--teal);
}

.note-card.high {
  border-left-color: var(--red);
}

.note-card.medium {
  border-left-color: var(--orange);
}

.note-card div {
  display: grid;
  gap: 5px;
}

.note-card span {
  width: max-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 11px;
  font-weight: 800;
}

.note-card.high span {
  color: var(--red-strong);
  background: rgba(239, 68, 68, 0.12);
}

.note-card.medium span {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}

.note-card strong {
  color: var(--ink);
  font-size: 15px;
}

.note-card footer {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
  color: var(--text);
  font-weight: 760;
}

.mapping-table {
  display: grid;
}

.mapping-head,
.mapping-row {
  display: grid;
  grid-template-columns: minmax(145px, 1.1fr) minmax(70px, 0.48fr) minmax(72px, 0.5fr) minmax(78px, 0.52fr) minmax(126px, 0.9fr) minmax(92px, 0.68fr) minmax(76px, 0.54fr);
  align-items: center;
  gap: 9px;
}

.mapping-head {
  min-height: 48px;
  padding: 0 16px;
  color: var(--muted);
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 790;
}

.mapping-row {
  width: 100%;
  border: 0;
  min-height: 76px;
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 16px;
  color: inherit;
  background: #fff;
  text-align: left;
}

.mapping-row:last-child {
  border-bottom: 0;
}

.mapping-title {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.28;
  font-weight: 820;
}

.category-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.relevance-dot {
  gap: 7px;
  color: var(--green);
}

.relevance-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.relevance-dot.medium {
  color: var(--orange);
}

.relevance-dot.low {
  color: #7b89a9;
}

.match-meter {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.meter-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}

.meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.meter-fill.medium {
  background: var(--orange);
}

.meter-fill.low {
  background: var(--red);
}

.capability-cell,
.evidence-cell {
  color: var(--text);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.38;
}

.capability-cell strong,
.evidence-cell strong {
  display: block;
  color: var(--ink);
  font-weight: 820;
}

.status-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  text-align: center;
  line-height: 1.15;
  font-size: 11px;
  font-weight: 820;
}

.status-badge.partial,
.status-badge.review {
  color: #b46900;
  background: #fff2db;
}

.status-badge.gap,
.status-badge.error {
  color: var(--red);
  background: #ffecef;
}

.detail-page {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.detail-summary,
.recommendation-box,
.doc-list,
.qa-alert,
.evidence-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fbfcfe;
}

.detail-summary h3 {
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.22;
}

.detail-summary p,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.status-pill {
  min-height: 28px;
  padding: 0 11px;
  color: var(--teal-strong);
  background: var(--teal-soft);
}

.status-partial {
  color: #a66000;
  background: #fff3dd;
}

.status-gap {
  color: var(--red);
  background: #ffecef;
}

.mini-ring {
  width: 96px;
  height: 96px;
}

.mini-ring::before {
  inset: 9px;
}

.mini-ring.large {
  width: 126px;
  height: 126px;
  font-size: 22px;
}

.mini-ring.large::before {
  inset: 12px;
}

.recommendation-box {
  display: flex;
  align-items: center;
  gap: 13px;
  border-color: #bce5dd;
  padding: 15px;
  color: var(--teal-strong);
  background: linear-gradient(135deg, #edf9f6, #e8f7f4);
}

.recommendation-box strong,
.recommendation-box span {
  display: block;
}

.recommendation-box span {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 730;
}

.ai-trust-card {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: 12px;
  padding: 13px;
  background: #fbfaff;
}

.ai-trust-card strong {
  color: var(--ink);
  font-size: 13px;
}

.ai-trust-card span,
.ai-trust-card dd {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  font-weight: 650;
}

.ai-trust-card dl {
  display: grid;
  grid-template-columns: minmax(84px, auto) 1fr;
  gap: 6px 10px;
  margin: 0;
}

.ai-trust-card dt {
  color: var(--ink);
  font-size: 11px;
  font-weight: 840;
}

.ai-trust-card dd {
  margin: 0;
}

.match-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.doc-list {
  padding: 15px;
}

.doc-list h4,
.recommendation-box h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 780;
}

.keyword-row.missing span {
  color: #b46900;
  background: #fff3dd;
}

.evidence-details {
  overflow: hidden;
}

.evidence-details summary {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
  list-style: none;
}

.evidence-details summary::-webkit-details-marker {
  display: none;
}

.evidence-details summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.evidence-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.evidence-details[open] summary::after {
  transform: rotate(225deg);
}

.evidence-details .match-columns {
  padding: 16px;
}

.evidence {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line-soft);
  margin-top: 10px;
  padding-top: 10px;
}

.evidence:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.evidence strong {
  color: var(--ink);
  font-size: 12px;
}

.evidence span {
  color: var(--teal-strong);
  font-size: 12px;
  font-weight: 780;
}

.evidence p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.qa-alert {
  margin: 18px 18px 0;
  padding: 16px;
  border-color: #ffd9ad;
  background: #fffaf1;
}

.qa-alert h3 {
  margin: 0 0 12px;
  color: #9f5800;
  font-size: 14px;
}

.open-questions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.open-questions.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.open-questions h5 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.open-question {
  border: 1px solid #ffd9ad;
  border-radius: var(--radius);
  padding: 12px;
  background: #fffaf1;
}

.open-question strong {
  display: block;
  color: #9f5800;
  font-size: 12px;
}

.open-question p {
  margin: 5px 0;
  color: var(--text);
  font-size: 12px;
}

.open-question span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.insight-rail {
  display: grid;
  align-content: start;
  gap: 18px;
}

.side-card {
  padding: 22px;
}

.side-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 16px;
}

.side-card p {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.62;
}

.next-steps {
  display: grid;
  gap: 13px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.rail-action {
  width: 100%;
  justify-content: space-between;
  box-shadow: none;
}

.rail-action + .rail-action {
  margin-top: 10px;
}

.empty {
  min-height: 140px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 650;
}

@media (max-width: 1360px) {
  :root {
    --sidebar: 218px;
  }

  .topbar {
    grid-template-columns: auto minmax(300px, 1fr) auto;
  }

  .research-grid,
  .analysis-layout,
  .intelligence-layout,
  .market-trigger-layout,
  .accuracy-layout,
  .cockpit-hero,
  .cockpit-extension-grid,
  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-cards {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }

  .analysis-hero {
    grid-template-columns: 58px minmax(300px, 1fr) repeat(3, minmax(112px, auto));
  }

  .analysis-topics {
    grid-column: 2 / -1;
  }

  .insight-rail,
  .workspace-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto;
    max-width: 100vw;
    overflow: hidden;
  }

  .brand {
    min-height: 68px;
  }

  .side-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(155px, auto);
    max-width: 100%;
    overflow-x: auto;
    padding: 0 12px 14px;
  }

  .sidebar-minimize {
    display: none;
  }

  .topbar {
    top: 0;
  }

  .list-head,
  .tender-result,
  .cockpit-pipeline-row,
  .mapping-head,
  .mapping-row,
  .project-match-head,
  .project-match-row,
  .project-table-head,
  .project-row,
  .analysis-queue-item,
  .tracking-item,
  .bookmark-item,
  .knowledge-item,
  .report-table-head,
  .report-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .list-head,
  .mapping-head,
  .project-match-head,
  .project-table-head,
  .report-table-head {
    display: none;
  }

  .tender-result,
  .cockpit-pipeline-row,
  .mapping-row,
  .project-match-row,
  .project-row,
  .analysis-queue-item,
  .tracking-item,
  .bookmark-item,
  .knowledge-item,
  .report-row {
    gap: 10px;
  }

  .result-action-cell,
  .result-score-cell {
    justify-content: flex-start;
  }

  .project-match-row {
    align-items: start;
  }
}

@media (max-width: 820px) {
  .content {
    padding: 18px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 18px;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .analysis-hero,
  .analysis-tabs,
  .analysis-layout,
  .market-trigger-layout,
  .accuracy-layout,
  .report,
  .command-center {
    max-width: 100%;
    min-width: 0;
  }

  .analysis-tabs {
    padding: 0 18px;
    gap: 22px;
    overflow-x: auto;
  }

  .analysis-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .analysis-actions .ghost-button {
    width: auto;
    flex: 1 1 128px;
  }

  .analysis-actions .icon-button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .analysis-hero {
    min-height: auto;
    gap: 14px;
    padding: 16px;
  }

  .analysis-hero .source-avatar,
  .analysis-hero .analysis-topics,
  .analysis-hero .analysis-chip:last-of-type {
    display: none;
  }

  .page-heading,
  .section-toolbar,
  .analysis-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .view-toggle,
  .sort-button,
  .ghost-button {
    width: 100%;
  }

  .research-grid,
  .metric-cards,
  .workspace-grid,
  .market-metric-grid,
  .market-detail-grid,
  .market-trigger-card,
  .accuracy-metric-grid,
  .accuracy-review-grid,
  .summary-grid,
  .next-action-panel,
  .command-hero,
  .command-focus-grid,
  .readiness-score-grid,
  .submission-blocker-bar,
  .approval-audit-trail > div,
  .gate-status-row,
  .command-grid,
  .command-grid.three,
  .decision-hero-panel,
  .decision-kpi-grid,
  .decision-two-column,
  .evidence-strip,
  .plan-hero,
  .plan-kpis,
  .plan-grid,
  .implementation-work-grid,
  .doc-workbench-kpis,
  .intelligence-detail-grid,
  .knowledge-index-summary,
  .knowledge-category-grid,
  .profile-grid,
  .knowledge-topic-row,
  .bid-process-phase,
  .analysis-kpi-row,
  .topic-card-grid,
  .project-match-grid,
  .notes-board,
  .analysis-hero,
  .report-header,
  .table-tools,
  .match-columns,
  .open-questions.compact,
  .insight-rail,
  .workspace-rail,
  .document-stats,
  .cockpit-extension-grid,
  .comparison-grid,
  .learning-summary,
  .evidence-confidence,
  .evidence-drawer-section dl,
  .command-timeline article {
    grid-template-columns: 1fr;
  }

  .accuracy-actions {
    justify-content: stretch;
  }

  .accuracy-actions .view-toggle {
    width: 100%;
  }

  .heatmap-head,
  .heatmap-row {
    grid-template-columns: minmax(132px, 1fr) repeat(3, minmax(58px, 0.55fr));
  }

  .evidence-drawer {
    grid-template-columns: 1fr;
  }

  .evidence-backdrop {
    display: none;
  }

  .evidence-panel {
    width: 100%;
  }

  .analysis-topics {
    grid-column: auto;
  }

  .filter-chips {
    margin-top: 18px;
  }

  .missing-doc-head {
    display: none;
  }

  .doc-generation-head {
    display: none;
  }

  .doc-generation-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .missing-doc-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .bid-process-phase {
    align-items: start;
  }

  .phase-score {
    justify-items: start;
  }

  .doc-impact {
    padding-left: 44px;
  }

  .similar-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .plan-dashboard-head,
  .project-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-box {
    grid-template-columns: 26px minmax(0, 1fr) 48px;
  }

  .metric-card {
    min-height: 150px;
  }

  .profile span:not(.avatar),
  .breadcrumbs span:not(:first-child),
  .breadcrumbs strong {
    display: none;
  }
}

@media (max-width: 520px) {
  body[data-view="result"] .sidebar {
    display: none;
  }

  body[data-view="result"] .topbar {
    min-height: 54px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 14px;
  }

  body[data-view="result"] .global-search,
  body[data-view="result"] .top-actions,
  body[data-view="result"] .analysis-page-heading p,
  body[data-view="result"] .analysis-actions .icon-button,
  body[data-view="result"] .analysis-actions .ghost-button:not(#openEvidenceDrawer):not(#presentationModeToggle) {
    display: none;
  }

  body[data-view="result"] .content {
    padding: 14px 14px 88px;
  }

  body[data-view="result"] .analysis-page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
  }

  body[data-view="result"] .analysis-page-heading h1 {
    margin: 0 0 4px;
    font-size: 23px;
  }

  body[data-view="result"] .analysis-page-heading .back-button {
    min-height: 20px;
    font-size: 12px;
  }

  body[data-view="result"] .analysis-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-view="result"] .analysis-actions .ghost-button {
    min-height: 42px;
    width: 100%;
    padding: 0 10px;
    font-size: 12px;
  }

  body[data-view="result"] .analysis-hero {
    grid-template-columns: minmax(0, 1fr) 70px;
    align-items: center;
    gap: 10px;
    padding: 14px;
  }

  body[data-view="result"] .analysis-hero .source-avatar,
  body[data-view="result"] .analysis-hero .analysis-chip,
  body[data-view="result"] .analysis-hero .analysis-topics {
    display: none;
  }

  body[data-view="result"] .analysis-title h1 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 18px;
    line-height: 1.15;
  }

  body[data-view="result"] .analysis-meta {
    margin-top: 6px;
    font-size: 11px;
  }

  body[data-view="result"] .analysis-score {
    justify-items: center;
    gap: 4px;
  }

  body[data-view="result"] .analysis-score small {
    font-size: 10px;
  }

  body[data-view="result"] .analysis-score .progress-ring {
    width: 58px;
    height: 58px;
    font-size: 12px;
  }

  body[data-view="cockpit"] .content {
    padding-bottom: 88px;
  }

  body[data-view="result"] .mobile-next-action,
  body[data-view="cockpit"] .mobile-next-action {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 70;
    min-height: 52px;
    display: block;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal-strong), var(--purple));
    box-shadow: 0 18px 44px rgba(16, 43, 92, 0.24);
    font-size: 13px;
    font-weight: 880;
    text-align: center;
  }

  .brand-word {
    font-size: 24px;
  }

  .side-nav {
    grid-auto-columns: 58px;
    gap: 6px;
    padding: 0 12px 10px;
  }

  .nav-item {
    min-height: 50px;
    justify-content: center;
    padding: 0;
  }

  .nav-item span:not(.nav-icon) {
    display: none;
  }

  .page-heading .view-toggle {
    position: sticky;
    top: 8px;
    z-index: 12;
    box-shadow: var(--shadow-sm);
  }

  h1 {
    font-size: 27px;
  }

  .search-panel,
  .metric-card,
  .analysis-hero,
  .report-header,
  .side-card {
    padding: 16px;
  }

  .table-footer {
    flex-wrap: wrap;
  }

  .pagination {
    width: 100%;
    margin-left: 0;
  }
}

/* Screenshot-aligned cockpit theme */
:root {
  --page: #eaf2f7;
  --surface: #ffffff;
  --surface-soft: #eef5f9;
  --ink: #172844;
  --text: #17202e;
  --muted: #536172;
  --faint: #76879a;
  --line: #c7d4df;
  --line-soft: #dbe6ee;
  --teal: #315b82;
  --teal-strong: #17395d;
  --teal-soft: #e4edf4;
  --purple: #315b82;
  --shadow-xs: 0 1px 2px rgba(8, 22, 38, 0.08);
  --shadow-sm: 0 6px 14px rgba(12, 31, 54, 0.14), 0 18px 36px rgba(12, 31, 54, 0.08);
  --shadow-md: 0 14px 34px rgba(12, 31, 54, 0.16);
  --radius: 10px;
  --sidebar: 220px;
  --topbar: 62px;
}

html,
body {
  background: #eaf2f7;
}

body {
  color: #17202e;
  background:
    radial-gradient(circle at 86% 11%, rgba(255, 255, 255, 0.8), transparent 22rem),
    radial-gradient(circle at 48% 7%, rgba(255, 255, 255, 0.72), transparent 28rem),
    linear-gradient(180deg, #eef7fb 0, #dfeaf2 58%, #eaf2f7 100%);
}

.sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 10% 0%, rgba(72, 119, 160, 0.28), transparent 14rem),
    linear-gradient(180deg, #0d2a45 0%, #071f39 48%, #08223d 100%);
  box-shadow: 14px 0 34px rgba(5, 18, 34, 0.26);
}

.brand {
  min-height: 70px;
  padding: 0 21px;
  color: #9bb4c9;
}

.brand-mark {
  width: 31px;
  height: 31px;
  filter: saturate(0.8) brightness(1.25);
}

.brand-word {
  color: #9fb6cb;
  font-size: 23px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.side-nav {
  gap: 8px;
  padding: 12px 10px;
}

.nav-item {
  min-height: 46px;
  border-radius: 7px;
  padding: 0 17px;
  color: #dbe7f2;
  font-size: 13px;
  font-weight: 720;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.11));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 8px 22px rgba(0, 0, 0, 0.18);
}

.nav-item.nav-subitem {
  min-height: 32px;
  padding-left: 42px;
  color: rgba(219, 231, 242, 0.62);
  font-size: 11px;
}

.sidebar-minimize {
  min-height: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(219, 231, 242, 0.78);
  background: rgba(2, 17, 34, 0.18);
}

.sidebar-minimize > span:first-child {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(219, 231, 242, 0.92);
  background: rgba(255, 255, 255, 0.08);
}

.topbar {
  grid-template-columns: minmax(210px, 1fr) minmax(340px, 465px) minmax(245px, 1fr);
  min-height: 62px;
  border-bottom: 1px solid rgba(129, 151, 171, 0.35);
  padding: 0 19px;
  background: rgba(236, 245, 250, 0.86);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

.breadcrumbs {
  gap: 11px;
  color: #4b5968;
  font-size: 12px;
  font-weight: 720;
}

.breadcrumbs strong {
  color: #111b2c;
  font-weight: 820;
}

.global-search {
  height: 42px;
  border-color: #c5d1dc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 18px rgba(23, 45, 72, 0.15);
}

.global-search input {
  font-size: 13px;
  font-weight: 620;
}

.global-search kbd {
  height: 22px;
  min-width: 22px;
  color: #617080;
  background: #edf3f7;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.avatar {
  width: 38px;
  height: 38px;
  background: #17395d;
}

.profile {
  grid-template-columns: 38px auto 12px;
  gap: 10px;
}

.profile strong {
  color: #111b2c;
  font-size: 13px;
}

.profile small {
  color: #536172;
  font-size: 11px;
}

.content {
  width: min(100%, 1088px);
  padding: 18px 24px 32px;
}

.page-heading {
  align-items: center;
  margin-bottom: 18px;
}

h1 {
  margin-bottom: 4px;
  color: #324963;
  font-size: 31px;
  font-weight: 760;
  line-height: 1.1;
}

.page-heading p,
.analysis-title p,
.report-header p {
  color: #17202e;
  font-size: 13px;
  font-weight: 560;
}

.view-toggle,
.ghost-button,
.sort-button,
.back-button,
.rail-action {
  min-height: 42px;
  border-color: #bfcddb;
  border-radius: 8px;
  color: #17395d;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(21, 45, 70, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.workspace-card {
  border-color: #b9c8d5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 5px 12px rgba(14, 32, 51, 0.13), 0 16px 30px rgba(14, 32, 51, 0.06);
}

.cockpit-hero {
  display: block;
  margin-top: 18px;
}

.cockpit-rail {
  display: none;
}

.next-action-panel {
  min-height: 178px;
  grid-template-columns: minmax(0, 1fr) 135px;
  gap: 20px;
  border-color: #adbfce;
  border-radius: 10px;
  padding: 24px;
  background:
    radial-gradient(circle at 94% 12%, rgba(255, 255, 255, 0.82), transparent 12rem),
    linear-gradient(135deg, rgba(218, 230, 239, 0.94), rgba(199, 214, 226, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(17, 38, 61, 0.16);
}

.next-action-copy h2 {
  max-width: 690px;
  margin: 12px 0 4px;
  color: #1b2d48;
  font-size: 26px;
  font-weight: 760;
  line-height: 1.12;
}

.next-action-copy p {
  color: #111b2c;
  font-size: 13px;
  font-weight: 760;
}

.status-badge {
  min-height: 25px;
  padding: 0 11px;
  color: #315b82;
  background: #e4edf4;
  font-size: 11px;
  font-weight: 780;
}

.status-badge.partial,
.status-badge.review {
  color: #315b82;
  background: #e9f0f5;
}

.cockpit-context {
  gap: 8px;
  margin-top: 17px;
}

.cockpit-context span,
.result-tags span,
.task-meta b,
.task-meta em,
.task-meta time {
  min-height: 24px;
  border-radius: 999px;
  color: #26364a;
  background: #e8eef3;
  font-size: 11px;
  font-weight: 760;
}

.next-action-score {
  gap: 14px;
}

.next-action-score .progress-ring {
  width: 82px;
  height: 82px;
  color: #315b82;
  font-size: 18px;
  background:
    radial-gradient(circle at center, #dce8f1 57%, transparent 58%),
    conic-gradient(#315b82 var(--score), #91a8bc 0);
}

.next-action-score .ghost-button,
.cockpit-pipeline-row .ghost-button,
.comparison-card .ghost-button {
  min-height: 41px;
  border-color: #16375c;
  color: #ffffff;
  background: linear-gradient(180deg, #315b82, #17395d);
  box-shadow: 0 8px 16px rgba(23, 57, 93, 0.24);
}

.cockpit-kpis,
.workspace-grid {
  gap: 20px;
  margin-top: 20px;
}

.metric-tile {
  min-height: 112px;
  gap: 6px;
  padding: 22px 24px;
}

.metric-tile small {
  color: #111b2c;
  font-size: 12px;
  font-weight: 820;
}

.metric-tile strong {
  color: #101820;
  font-size: 33px;
  font-weight: 860;
}

.metric-tile span {
  color: #17202e;
  font-size: 12px;
  font-weight: 720;
}

.metric-tile.accent-purple,
.metric-tile.accent-cyan {
  background: rgba(255, 255, 255, 0.88);
}

.workspace-layout {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
  margin-top: 18px;
}

.workspace-card-header {
  min-height: 72px;
  padding: 18px 22px;
}

.workspace-card-header h2 {
  color: #111b2c;
  font-size: 18px;
  font-weight: 800;
}

.workspace-card-header p,
.workspace-card > p {
  color: #17202e;
  font-size: 12px;
  font-weight: 560;
}

.workspace-rail {
  gap: 14px;
}

.workspace-rail .workspace-card {
  padding: 18px;
}

.workspace-rail .workspace-card h3 {
  color: #111b2c;
  font-size: 18px;
  font-weight: 820;
}

.cockpit-pipeline-row {
  min-height: 76px;
  grid-template-columns: minmax(240px, 1.45fr) minmax(160px, 0.9fr) auto;
  gap: 12px;
  padding: 13px 22px;
}

.cockpit-pipeline-row > div:nth-child(3) {
  display: none;
}

.cockpit-pipeline-row strong {
  color: #0e1622;
  font-size: 13px;
  font-weight: 820;
}

.cockpit-pipeline-row > div:first-child > span {
  color: #1f2f42;
  font-size: 11px;
  font-weight: 620;
}

.cockpit-pipeline-row:hover {
  background: #f4f9fc;
}

.cockpit-task-list {
  gap: 9px;
}

.cockpit-task {
  border-color: #b9c8d5;
  border-left: 5px solid #6e90ac;
  border-radius: 9px;
  padding: 11px;
  background: #f9fcfe;
}

.cockpit-task.review,
.cockpit-task.go,
.cockpit-task.risk {
  border-left-color: #6e90ac;
  background: #f9fcfe;
}

.cockpit-task strong {
  color: #111b2c;
  font-size: 12px;
  font-weight: 820;
}

.cockpit-task span {
  color: #17202e;
  font-size: 11px;
  font-weight: 560;
}

.cockpit-extension-grid {
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 18px;
}

.comparison-card {
  min-height: 268px;
  border-color: #c2d0dc;
  border-radius: 9px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.comparison-card strong {
  color: #0e1622;
  font-size: 13px;
  font-weight: 820;
}

.comparison-card header span,
.comparison-card dt,
.comparison-card dd {
  color: #17202e;
  font-size: 11px;
}

.comparison-score {
  width: 62px;
  height: 62px;
  color: #315b82;
  background:
    radial-gradient(circle at center, #f4f8fb 57%, transparent 58%),
    conic-gradient(#315b82 var(--score), #b4c4d3 0);
}

.learning-loop-panel {
  gap: 12px;
  padding: 0 0 16px;
}

.learning-outcome-toggle {
  width: 100%;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: #edf4f8;
}

.learning-outcome-toggle button {
  min-height: 34px;
  border-radius: 7px;
  color: #2d4259;
}

.learning-outcome-toggle button.active {
  color: #17395d;
  background: #ffffff;
}

.learning-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px;
}

.learning-summary article,
.learning-entry-list span {
  border-color: #c2d0dc;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
}

.learning-entry-list {
  gap: 8px;
  padding: 0 16px;
}

@media (max-width: 1360px) {
  .content {
    width: min(100%, 1050px);
  }
}

@media (max-width: 1120px) {
  .sidebar {
    background: linear-gradient(180deg, #0d2a45 0%, #071f39 100%);
  }

  .side-nav {
    background: transparent;
  }
}

@media (max-width: 820px) {
  html,
  body,
  .app-shell,
  .workspace,
  .topbar,
  .content,
  .sidebar {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .app-shell,
  .workspace,
  .topbar,
  .content {
    min-width: 0;
  }

  .sidebar {
    width: 100%;
  }

  .side-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 58px;
  }

  .global-search {
    width: 100%;
    min-width: 0;
  }

  .content {
    padding: 16px 14px 90px;
  }

  .next-action-panel {
    grid-template-columns: 1fr;
  }

  .next-action-score {
    justify-items: start;
  }

  .workspace-layout,
  .comparison-grid,
  .learning-summary {
    grid-template-columns: 1fr;
  }
}
