:root {
  color-scheme: dark;
  --bg: #0c0d0f;
  --bg-elevated: #101114;
  --surface: #151619;
  --surface-solid: #151619;
  --surface-soft: #1a1b1f;
  --surface-hover: #1d1f23;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --text: #f5f5f6;
  --text-soft: #b8b8bf;
  --text-faint: #92939b;
  --red: #f24955;
  --red-bright: #ff6671;
  --red-dark: #b91f2a;
  --red-soft: rgba(242, 73, 85, 0.12);
  --green: #49d69a;
  --green-soft: rgba(73, 214, 154, 0.12);
  --amber: #f4bd5f;
  --amber-soft: rgba(244, 189, 95, 0.12);
  --blue: #65a5ff;
  --blue-soft: rgba(101, 165, 255, 0.12);
  --purple: #ad8cff;
  --purple-soft: rgba(173, 140, 255, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --sidebar-width: 204px;
  --red-rail-width: clamp(340px, 27vw, 400px);
  --red-rail-collapsed-width: 58px;
  --topbar-height: 62px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 750;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 13, 15, 0.96);
}

.brand,
.operator-chip,
.topbar-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  fill: rgba(242, 73, 85, 0.12);
  stroke: var(--red-bright);
  stroke-width: 1.4;
}

.brand-mark svg path:last-child {
  fill: var(--text);
  stroke: none;
}

.brand-copy,
.operator-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand-copy small,
.operator-copy small {
  color: var(--text-faint);
  font-size: 12px;
}

.topbar-actions {
  gap: 10px;
}

.account-button {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 9px;
  padding: 4px 9px 4px 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.account-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.account-avatar,
.profile-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 900;
}

.account-copy {
  display: grid;
  line-height: 1.25;
}

.account-copy strong {
  max-width: 160px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy small {
  color: var(--text-faint);
  font-size: 10px;
}

.runtime-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.status-light {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--text-faint);
}

.runtime-status.is-fixture {
  border-color: rgba(101, 165, 255, 0.24);
  color: #9fc5ff;
}

.runtime-status.is-fixture .status-light {
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.runtime-status.is-locked {
  border-color: rgba(244, 189, 95, 0.23);
  color: #f7ce86;
}

.runtime-status.is-locked .status-light {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}

.runtime-status.is-error {
  border-color: rgba(242, 73, 85, 0.25);
  color: #ff8d95;
}

.runtime-status.is-error .status-light {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  transition: 160ms ease;
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--text);
}

.icon-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.icon-button.is-spinning svg {
  animation: spin 0.8s linear infinite;
}

.notifications-button {
  position: relative;
}

.notifications-button.has-unread {
  border-color: rgba(242, 73, 85, 0.3);
  color: var(--text);
}

.notifications-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid var(--bg-elevated);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.operator-chip {
  gap: 9px;
  min-height: 42px;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.operator-copy strong {
  font-size: 12px;
}

.operator-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(242, 73, 85, 0.28);
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 800;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--red-rail-collapsed-width);
  min-height: 100vh;
  padding-top: var(--topbar-height);
}

.red-rail-open .app-shell {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--red-rail-width);
}

.sidebar {
  position: fixed;
  z-index: 20;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar-width);
  padding: 20px 12px 18px;
  border-right: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-direction: column;
}

.sidebar-intro {
  padding: 0 10px 18px;
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.is-spaced {
  margin-top: 18px;
}

.sidebar-intro p,
.page-header p,
.section-header p {
  margin: 0;
  color: var(--text-soft);
}

.sidebar-intro p {
  font-size: 12px;
  line-height: 1.55;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
  transition: 150ms ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.nav-link.is-active {
  border-color: rgba(242, 73, 85, 0.16);
  background: var(--red-soft);
  color: var(--text);
}

.nav-link.is-active::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: -1px;
  width: 2px;
  border-radius: 999px;
  background: var(--red-bright);
  content: "";
}

.nav-icon {
  display: grid;
  width: 29px;
  place-items: center;
  color: var(--text-faint);
}

.nav-link.is-active .nav-icon {
  color: var(--red-bright);
}

.nav-count {
  min-width: 22px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 11px;
  text-align: center;
}

.workspace {
  grid-column: 2;
  width: min(100%, 1280px);
  min-height: calc(100vh - var(--topbar-height));
  margin: 0 auto;
  padding: 32px clamp(20px, 3.5vw, 48px) 64px;
}

.runtime-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid rgba(101, 165, 255, 0.18);
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: #c9ddff;
}

.runtime-banner.is-locked {
  border-color: rgba(244, 189, 95, 0.18);
  background: var(--amber-soft);
  color: #f6d89f;
}

.runtime-banner.is-error {
  border-color: rgba(242, 73, 85, 0.22);
  background: var(--red-soft);
  color: #ffb5ba;
}

.runtime-banner-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  opacity: 0.8;
}

.runtime-banner strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.runtime-banner p {
  margin: 1px 0 0;
  font-size: 11px;
}

.runtime-banner-tag {
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.view {
  min-width: 0;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.page-header h1,
.section-header h2,
.record-title,
.empty-state h2,
.case-title {
  margin: 0;
  line-height: 1.2;
}

.page-header h1 {
  font-size: clamp(26px, 2.2vw, 30px);
  letter-spacing: -0.035em;
}

.page-header p {
  max-width: 680px;
  margin-top: 6px;
  font-size: 14px;
}

.page-header-actions,
.inline-actions,
.record-badges,
.button-row,
.context-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.freshness {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  color: var(--text-faint);
  font-size: 12px;
  white-space: nowrap;
}

.freshness strong {
  color: var(--text-soft);
  font-size: 13px;
}

.overview-header-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

.overview-next-steps-actions,
.security-action-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.security-action-control {
  min-width: 0;
}

.security-action-control.is-compact .security-action-button {
  min-height: 36px;
  font-size: 12px;
}

.security-action-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.security-action-status::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.security-action-status.is-requested,
.security-action-status.is-coalesced,
.security-action-status.is-queued {
  color: var(--amber);
}

.security-action-status.is-running {
  color: var(--blue);
}

.security-action-status.is-succeeded {
  color: var(--green);
}

.security-action-status.is-inconclusive,
.security-action-status.is-stopped,
.security-action-status.is-failed,
.security-action-status.is-rejected,
.security-action-status.is-unavailable {
  color: #e77a83;
}

.overview-freshness {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.overview-freshness-item {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  white-space: nowrap;
}

.overview-freshness-item small {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-freshness-item strong {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 12px;
}

.primary-button,
.secondary-button,
.danger-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  transition: 150ms ease;
}

.primary-button {
  border: 1px solid rgba(255, 102, 113, 0.28);
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: #fff;
  box-shadow: none;
}

.primary-button:hover {
  filter: brightness(1.06);
}

.secondary-button,
.text-button {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
}

.secondary-button:hover,
.text-button:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.danger-button {
  border: 1px solid rgba(242, 73, 85, 0.28);
  background: var(--red-soft);
  color: #ff929a;
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  filter: none;
  opacity: 0.48;
  transform: none;
}

.brief-card,
.section-card,
.record-card,
.metric-card,
.host-map-summary,
.filter-bar {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
}

.filter-bar.is-scan-filter {
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.3fr);
}

.filter-bar.is-host-filter {
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(120px, 0.3fr));
}

.filter-bar.is-case-filter {
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(130px, 0.3fr));
}

.case-status-tabs {
  display: inline-flex;
  max-width: 100%;
  gap: 3px;
  margin-bottom: 10px;
  padding: 3px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.case-status-tab {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
}

.case-status-tab:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.case-status-tab.is-active {
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.case-status-tab strong {
  display: grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-faint);
  font-size: 10px;
}

.case-status-tab.is-active strong {
  background: var(--red-soft);
  color: var(--red-bright);
}

.brief-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  padding: 20px;
  overflow: hidden;
  border-color: rgba(242, 73, 85, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(242, 73, 85, 0.11), transparent 45%),
    var(--surface);
}

.brief-card::after {
  position: absolute;
  top: -70px;
  right: -55px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(242, 73, 85, 0.13);
  border-radius: 999px;
  content: "";
}

.red-avatar {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid rgba(242, 73, 85, 0.26);
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red-bright);
  font-size: 17px;
  font-weight: 900;
}

.brief-card h2 {
  margin: 1px 0 6px;
  font-size: 15px;
}

.brief-card p {
  max-width: 900px;
  margin: 0;
  color: #d5d5da;
  line-height: 1.65;
  white-space: pre-wrap;
}

.brief-meta {
  margin-top: 9px;
  color: var(--text-faint);
  font-size: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

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

.overview-picture {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 10px;
  padding: 18px;
  border: 1px solid rgba(242, 73, 85, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, rgba(242, 73, 85, 0.09), rgba(21, 22, 25, 0) 46%), var(--surface);
}

.overview-picture-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(242, 73, 85, 0.25);
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--red-bright);
  font-size: 14px;
  font-weight: 900;
}

.overview-picture-copy h2 {
  margin: 2px 0 5px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.overview-picture-copy p {
  max-width: 980px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.metric-card {
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
}

.overview-metric-grid .metric-card {
  min-height: 116px;
  padding: 16px;
}

.metric-card.is-priority {
  border-color: rgba(242, 73, 85, 0.28);
  background: linear-gradient(145deg, rgba(242, 73, 85, 0.11), rgba(21, 22, 25, 0) 66%), var(--surface);
}

.metric-card.is-improvement {
  border-color: rgba(244, 189, 95, 0.22);
  background: linear-gradient(145deg, rgba(244, 189, 95, 0.08), rgba(21, 22, 25, 0) 66%), var(--surface);
}

.metric-card.is-informational {
  border-color: rgba(101, 165, 255, 0.22);
  background: linear-gradient(145deg, rgba(101, 165, 255, 0.08), rgba(21, 22, 25, 0) 66%), var(--surface);
}

.metric-card > small,
.metric-card > .term-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-card > strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.metric-card.is-priority > strong {
  color: #ff858e;
}

.metric-card.is-improvement > strong {
  color: #f6cc83;
}

.metric-card.is-informational > strong {
  color: #91bcff;
}

.metric-card > span:last-child {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.host-map-summary {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: var(--radius);
}

.host-map-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.host-map-summary-heading > strong,
.host-map-summary-heading > .term-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.host-map-summary-heading p {
  max-width: 780px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
}

.host-map-freshness {
  flex: 0 0 auto;
  text-align: right;
}

.host-map-freshness small,
.host-map-metric > small,
.host-map-metric > .term-label {
  display: block;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.host-map-freshness strong {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 12px;
}

.host-map-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 8px;
}

.host-map-metric {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.host-map-metric > strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.overview-main-grid {
  margin-bottom: 16px;
}

.overview-case-list,
.overview-evidence-list {
  display: grid;
  gap: 8px;
}

.overview-case {
  display: block;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
  transition: 150ms ease;
}

.overview-case:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.overview-case-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.overview-case-top h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.overview-case-context {
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.8fr 1.35fr;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.overview-host-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 14px;
}

.overview-host-total strong {
  font-size: 32px;
  letter-spacing: -0.045em;
}

.overview-host-total span {
  color: var(--text-soft);
  font-size: 13px;
}

.overview-host-facts {
  margin-bottom: 12px;
}

.overview-quiet-note {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.55;
}

.overview-evidence-list {
  margin-bottom: 0;
}

.overview-evidence-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.35fr);
  gap: 18px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.overview-evidence-copy h3,
.overview-coverage-item h3 {
  margin: 0;
  font-size: 13px;
}

.overview-evidence-copy p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.overview-evidence-status {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  text-align: right;
}

.overview-evidence-status strong {
  font-size: 12px;
}

.overview-evidence-status span,
.overview-evidence-status time {
  color: var(--text-faint);
  font-size: 11px;
}

.overview-evidence-status span {
  color: var(--text-soft);
}

.overview-main-grid + .section-card,
.overview-evidence-list + .section-card,
.overview-evidence-list {
  min-width: 0;
}

.overview-main-grid ~ .section-card {
  margin-bottom: 16px;
}

.overview-main-grid ~ .section-card:last-child {
  margin-bottom: 0;
}

.overview-coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.overview-coverage-item {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.overview-coverage-item p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.overview-next-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, rgba(242, 73, 85, 0.055), rgba(21, 22, 25, 0) 48%), var(--surface);
}

.overview-next-steps-copy {
  min-width: 0;
}

.overview-next-steps-copy .eyebrow {
  margin-bottom: 4px;
  font-size: 9px;
}

.overview-next-steps-copy h2 {
  margin: 0;
  font-size: 14px;
}

.overview-next-steps-copy p {
  max-width: 640px;
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.overview-next-steps-actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.team-activity-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.team-activity-heading,
.team-activity-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px minmax(180px, 0.55fr);
  gap: 16px;
  align-items: center;
}

.team-activity-heading {
  padding: 8px 13px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.team-activity-row {
  min-height: 58px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.01);
}

.team-activity-row + .team-activity-row {
  border-top: 1px solid var(--border);
}

.team-activity-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.team-activity-identity > span:last-child {
  display: grid;
  min-width: 0;
}

.team-activity-identity strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-activity-identity small {
  color: var(--text-faint);
  font-size: 10px;
}

.team-activity-row > .status-badge {
  justify-self: start;
}

.team-presence {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--text-faint);
  font-size: 11px;
}

.team-presence > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-presence-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--text-faint);
}

.team-presence.is-online {
  color: var(--green);
  font-weight: 750;
}

.team-presence.is-online .team-presence-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.your-work-section {
  margin-bottom: 16px;
}

.your-work-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.your-work-summary > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.your-work-summary strong {
  font-size: 20px;
}

.your-work-summary span,
.your-work-empty {
  color: var(--text-faint);
  font-size: 11px;
}

.your-work-list {
  display: grid;
  gap: 7px;
}

.your-work-case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
}

.your-work-case:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.your-work-case > span:first-child {
  display: grid;
  min-width: 0;
}

.your-work-case > span:first-child > span {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.your-work-empty {
  margin: 0;
  padding: 10px 2px 2px;
}

.assignment-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(101, 165, 255, 0.2);
  border-radius: 10px;
  background: var(--blue-soft);
  text-align: left;
}

.assignment-card.is-pending_confirmation {
  border-color: rgba(244, 189, 95, 0.24);
  background: var(--amber-soft);
}

.assignment-card.is-accepted {
  border-color: rgba(73, 214, 154, 0.23);
  background: var(--green-soft);
}

.assignment-card.is-declined,
.assignment-card.is-cancelled,
.assignment-card.is-superseded {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.assignment-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.assignment-card-heading > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.assignment-card-heading strong {
  font-size: 12px;
  line-height: 1.4;
}

.assignment-card-status {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 750;
}

.assignment-card > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.assignment-card-meta,
.assignment-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.assignment-card-meta {
  color: var(--text-faint);
  font-size: 10px;
}

.assignment-card-source {
  color: #9fc5ff;
  font-size: 10px;
  font-weight: 750;
}

.assignment-card-actions .primary-button,
.assignment-card-actions .secondary-button {
  min-height: 31px;
  padding: 5px 9px;
  font-size: 11px;
}

.message .assignment-card {
  margin-top: 8px;
}

.chat-coordination-inbox {
  display: grid;
  gap: 10px;
  margin: 4px 0 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.chat-coordination-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-coordination-heading .eyebrow,
.coordination-list-label {
  color: var(--text-faint);
}

.chat-coordination-heading small {
  color: var(--text-faint);
  font-size: 10px;
  white-space: nowrap;
}

.notification-list,
.coordination-request-list {
  display: grid;
  gap: 7px;
}

.coordination-request-list {
  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.coordination-list-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.notification-card {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.014);
}

.notification-card.is-unread {
  border-color: rgba(101, 165, 255, 0.24);
  background: var(--blue-soft);
}

.notification-unread-mark {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: transparent;
}

.notification-card.is-unread .notification-unread-mark {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(101, 165, 255, 0.1);
}

.notification-card-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.notification-card-copy strong,
.notification-card-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-card-copy strong {
  font-size: 11px;
}

.notification-card-copy p,
.notification-card-copy time {
  margin: 0;
  color: var(--text-faint);
  font-size: 10px;
}

.notification-card-action {
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 750;
}

.notification-card-action:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.notification-card-action:disabled {
  opacity: 0.5;
}

.host-contact-proposal-card {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(173, 140, 255, 0.24);
  border-radius: 10px;
  background: var(--purple-soft);
  text-align: left;
}

.host-contact-proposal-card.is-applied {
  border-color: rgba(73, 214, 154, 0.23);
  background: var(--green-soft);
}

.host-contact-proposal-card.is-cancelled,
.host-contact-proposal-card.is-superseded {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.host-contact-proposal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.host-contact-proposal-heading > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.host-contact-proposal-heading strong {
  font-size: 12px;
  line-height: 1.4;
}

.host-contact-proposal-status {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 750;
}

.host-contact-proposal-card > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.host-contact-proposal-meta,
.host-contact-proposal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.host-contact-proposal-meta {
  color: var(--text-faint);
  font-size: 10px;
}

.host-contact-proposal-actions .primary-button {
  min-height: 31px;
  padding: 5px 9px;
  font-size: 11px;
}

.content-stack {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.section-card {
  min-width: 0;
  padding: 16px;
  border-radius: var(--radius-lg);
}

.section-card.is-quiet {
  background: rgba(19, 20, 24, 0.65);
  box-shadow: none;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.section-header h2 {
  font-size: 16px;
}

.section-header p {
  margin-top: 4px;
  font-size: 12px;
}

.section-link,
.inline-link {
  color: #ff8b93;
  font-size: 12px;
  font-weight: 750;
}

.section-link:hover,
.inline-link:hover {
  color: var(--red-bright);
  text-decoration: underline;
}

.record-list {
  display: grid;
  gap: 8px;
}

.record-card {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: 150ms ease;
}

a.record-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

[data-focus-id] {
  scroll-margin-block: 110px;
}

.is-workspace-focused {
  border-color: rgba(242, 73, 85, 0.72) !important;
  outline: 3px solid rgba(242, 73, 85, 0.16);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px rgba(242, 73, 85, 0.28), 0 18px 48px rgba(0, 0, 0, 0.35) !important;
  animation: workspace-focus 900ms ease-out 2;
}

.record-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.record-heading {
  min-width: 0;
}

.record-id {
  display: block;
  margin-bottom: 5px;
  color: var(--red-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.record-title {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.record-summary {
  margin: 9px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.record-summary.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.list-row .record-top {
  align-items: center;
}

.list-row .compact-meta {
  margin-top: 10px;
  padding-top: 10px;
}

.compact-meta.is-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.record-badges {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.status-badge,
.severity-badge,
.context-pill,
.type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-new,
.status-queued,
.status-pending {
  border-color: rgba(101, 165, 255, 0.23);
  background: var(--blue-soft);
  color: #9fc5ff;
}

.status-investigating,
.status-running,
.status-in-progress {
  border-color: rgba(173, 140, 255, 0.25);
  background: var(--purple-soft);
  color: #cab6ff;
}

.status-confirmed,
.status-ready-for-retest,
.status-needs-attention,
.status-changed,
.status-review-pending {
  border-color: rgba(244, 189, 95, 0.24);
  background: var(--amber-soft);
  color: #f7ce86;
}

.status-remediating {
  border-color: rgba(101, 165, 255, 0.23);
  background: var(--blue-soft);
  color: #a8caff;
}

.status-resolved,
.status-complete,
.status-completed,
.status-success,
.status-in-scope,
.status-active {
  border-color: rgba(73, 214, 154, 0.23);
  background: var(--green-soft);
  color: #8be7bd;
}

.status-observed {
  border-color: rgba(101, 165, 255, 0.23);
  background: var(--blue-soft);
  color: #9fc5ff;
}

.status-returned {
  border-color: rgba(173, 140, 255, 0.25);
  background: var(--purple-soft);
  color: #cab6ff;
}

.status-missing {
  border-color: rgba(242, 73, 85, 0.22);
  background: rgba(242, 73, 85, 0.08);
  color: #e9a0a5;
}

.status-closed,
.status-stopped,
.status-cancelled,
.status-unknown {
  color: var(--text-faint);
}

.status-failed,
.status-error {
  border-color: rgba(242, 73, 85, 0.25);
  background: var(--red-soft);
  color: #ff929a;
}

.severity-critical {
  border-color: rgba(242, 73, 85, 0.36);
  background: rgba(242, 73, 85, 0.18);
  color: #ff818b;
}

.severity-high {
  border-color: rgba(255, 128, 89, 0.28);
  background: rgba(255, 128, 89, 0.12);
  color: #ffa789;
}

.severity-medium {
  border-color: rgba(244, 189, 95, 0.24);
  background: var(--amber-soft);
  color: #f7ce86;
}

.severity-low {
  border-color: rgba(101, 165, 255, 0.2);
  background: var(--blue-soft);
  color: #a8caff;
}

.severity-informational,
.severity-info,
.severity-unknown {
  color: var(--text-faint);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.meta-grid.is-detailed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-item {
  min-width: 0;
}

.meta-item small {
  display: block;
  margin-bottom: 2px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.meta-item span,
.meta-item a {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 0.32fr));
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: var(--radius);
}

.search-field,
.select-field,
.form-field {
  display: grid;
  gap: 6px;
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-faint);
  transform: translateY(-50%);
  pointer-events: none;
}

.field-label {
  display: flex;
  align-items: center;
  min-height: 20px;
  gap: 5px;
}

.field-label > label,
.form-field > span,
.form-label {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.term-label {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  gap: 5px;
}

.help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.help-tip-trigger {
  display: grid;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-faint);
  cursor: help;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.help-tip-trigger:hover,
.help-tip-trigger:focus-visible {
  border-color: rgba(242, 73, 85, 0.4);
  background: var(--red-soft);
  color: var(--text);
}

.help-tip-content {
  position: absolute;
  z-index: 70;
  bottom: calc(100% + 8px);
  left: 0;
  display: grid;
  visibility: hidden;
  width: min(280px, calc(100vw - 48px));
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #202126;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.help-tip-content strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.help-tip-content span {
  color: var(--text-soft);
  font-size: 12px;
}

.help-tip:hover .help-tip-content,
.help-tip:focus-within .help-tip-content,
.help-tip.is-open .help-tip-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.help-tip.is-dismissed .help-tip-content {
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
}

.host-map-metric:nth-child(n + 3) .help-tip-content {
  right: 0;
  left: auto;
}

.host-glossary {
  margin: -2px 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.host-glossary > summary {
  padding: 11px 14px;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.host-glossary > summary::-webkit-details-marker {
  display: none;
}

.host-glossary > summary::after {
  float: right;
  color: var(--text-faint);
  content: "+";
}

.host-glossary[open] > summary::after {
  content: "−";
}

.host-glossary-list {
  display: grid;
  grid-template-columns: minmax(90px, 130px) minmax(0, 1fr);
  margin: 0;
  padding: 0 14px 14px;
}

.host-glossary-list dt,
.host-glossary-list dd {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.5;
}

.host-glossary-list dt {
  padding-right: 14px;
  color: var(--text);
  font-weight: 700;
}

.host-glossary-list dd {
  color: var(--text-soft);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(8, 8, 10, 0.7);
  color: var(--text);
  outline: none;
  transition: 140ms ease;
}

input,
select {
  min-height: 40px;
  padding: 0 11px;
}

.search-field input {
  padding-left: 36px;
}

textarea {
  min-height: 88px;
  padding: 10px 11px;
  line-height: 1.5;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(242, 73, 85, 0.52);
  box-shadow: 0 0 0 3px rgba(242, 73, 85, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: #5f6067;
}

.result-count {
  margin: 0 2px 10px;
  color: var(--text-faint);
  font-size: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-faint);
  font-size: 11px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--red-bright);
}

.case-hero {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(242, 73, 85, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(242, 73, 85, 0.09), transparent 48%),
    var(--surface);
}

.case-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.case-title {
  max-width: 950px;
  font-size: clamp(21px, 2vw, 29px);
  letter-spacing: -0.03em;
}

.case-summary {
  max-width: 980px;
  margin: 13px 0 0;
  color: #d2d2d7;
  line-height: 1.65;
  white-space: pre-wrap;
}

.lifecycle {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin-top: 18px;
}

.lifecycle-step {
  position: relative;
  min-width: 0;
  padding-top: 11px;
  border-top: 2px solid var(--border-strong);
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.lifecycle-step.is-complete {
  border-color: var(--green);
  color: #8be7bd;
}

.lifecycle-step.is-current {
  border-color: var(--red-bright);
  color: var(--text);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.7fr);
  gap: 16px;
  align-items: start;
}

.case-sidebar {
  display: grid;
  gap: 16px;
}

.case-sidebar .section-card {
  box-shadow: none;
}

.fact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.fact-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.fact-row:first-child {
  padding-top: 0;
}

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

.fact-row dt {
  color: var(--text-faint);
  font-size: 12px;
}

.fact-row dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text-soft);
  font-size: 12px;
}

.prose {
  color: var(--text-soft);
  line-height: 1.65;
  white-space: pre-wrap;
}

.prose.is-empty {
  color: var(--text-faint);
  font-style: italic;
}

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

.asset-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.asset-card strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-card small {
  display: block;
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 11px;
}

.host-list {
  gap: 7px;
}

.host-change-section {
  margin-bottom: 14px;
}

.host-change-list {
  display: grid;
  gap: 6px;
}

.host-change-empty {
  margin: 0;
  padding: 10px 2px 2px;
  color: var(--text-faint);
  font-size: 12px;
}

.host-change-row {
  display: grid;
  width: 100%;
  grid-template-columns: 90px minmax(220px, 1fr) 132px 132px;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease;
}

.host-change-row:hover,
.host-change-row:focus-visible {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  outline: none;
}

.host-change-row > .status-badge {
  justify-self: start;
}

.host-change-copy,
.host-change-check {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.host-change-copy strong,
.host-change-copy span,
.host-change-check strong,
.host-change-row time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-change-copy strong {
  font-size: 12px;
}

.host-change-copy span,
.host-change-check small,
.host-change-row time {
  color: var(--text-faint);
  font-size: 11px;
}

.host-change-check strong {
  color: var(--text-soft);
  font-size: 12px;
}

.host-change-check.is-running strong,
.host-change-check.is-queued strong {
  color: #cab6ff;
}

.host-change-check.is-needs-follow-up strong {
  color: var(--amber);
}

.host-change-row time {
  text-align: right;
}

.host-record {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 140ms ease, background 140ms ease;
}

.host-record:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.host-record.has-pending-review {
  border-color: rgba(244, 189, 95, 0.3);
}

.host-row-main {
  display: grid;
  grid-template-columns: 132px minmax(220px, 1fr) 132px 124px 126px;
  align-items: center;
  min-height: 70px;
  gap: 16px;
  padding: 11px 14px;
}

.host-row-state {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 5px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}

.host-row-state-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.host-row-operational {
  display: grid;
  min-width: 0;
  padding-left: 15px;
  line-height: 1.25;
}

.host-row-operational small {
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
}

.host-row-operational strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-row-operational.is-retiring strong {
  color: var(--amber);
}

.host-row-operational.is-retired strong {
  color: #e77a83;
}

.host-row-state > .status-badge {
  width: max-content;
  min-height: 20px;
  margin-left: 15px;
  padding: 1px 6px;
  font-size: 9px;
}

.host-row-identity {
  min-width: 0;
}

.host-row-identity .record-title,
.host-row-identity p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-row-identity p {
  margin: 4px 0 0;
  color: var(--text-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.host-row-identity .host-row-technology {
  color: var(--text-soft);
  font-family: inherit;
  font-size: 11px;
}

.host-row-cell {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.host-row-cell small {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
}

.host-row-cell strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-row-check > span {
  overflow: hidden;
  color: var(--text-faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-row-check.is-running strong,
.host-row-check.is-queued strong {
  color: #cab6ff;
}

.host-row-check.is-needs-follow-up strong {
  color: var(--amber);
}

.host-row-attention.has-attention strong {
  color: var(--amber);
}

.host-status-mark {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(73, 214, 154, 0.08);
}

.host-row-state.is-not_observed .host-status-mark {
  background: #e77a83;
  box-shadow: 0 0 0 3px rgba(242, 73, 85, 0.08);
}

.host-review-reason {
  margin: 10px 0 0;
  color: #e7c587;
  font-size: 12px;
  line-height: 1.45;
}

.host-row-details {
  border-top: 1px solid var(--border);
}

.host-row-details > summary {
  padding: 9px 14px;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
  user-select: none;
}

.host-row-details > summary::-webkit-details-marker {
  display: none;
}

.host-row-details > summary::after {
  float: right;
  color: var(--text-soft);
  content: "+";
}

.host-row-details[open] > summary::after {
  content: "−";
}

.host-row-details > summary:hover {
  color: var(--text);
}

.host-row-detail-body {
  padding: 2px 14px 14px;
}

.host-detail-summary {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.host-detail-meta {
  margin-top: 12px;
}

.host-services,
.host-relationships {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.host-services > small,
.host-relationship > small {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.host-relationship + .host-relationship {
  margin-top: 10px;
}

.host-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.host-operational-state-mount,
.host-lifecycle-mount,
.host-primary-contact-mount {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.host-operational-card,
.host-lifecycle-card {
  padding: 14px;
}

.host-operational-current {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.host-operational-mark {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--text-faint);
  box-shadow: 0 0 0 3px rgba(146, 147, 155, 0.08);
}

.host-operational-current.is-in_use .host-operational-mark {
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.host-operational-current.is-retiring .host-operational-mark {
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

.host-operational-current.is-retired .host-operational-mark {
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.host-operational-current strong {
  font-size: 13px;
}

.host-operational-current p,
.host-operational-reason,
.host-operational-meta,
.host-lifecycle-empty {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.host-operational-reason {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.host-operational-meta,
.host-lifecycle-empty {
  color: var(--text-faint);
}

.host-operational-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.host-operational-form .secondary-button {
  min-height: 40px;
}

.host-detail-load-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: #ff929a;
  font-size: 11px;
}

.host-contact-card {
  padding: 14px;
}

.host-contact-current {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 10px;
}

.host-contact-current > span:last-child {
  display: grid;
  color: var(--text-soft);
  font-size: 12px;
}

.host-contact-current small {
  color: var(--text-faint);
  font-size: 10px;
}

.host-contact-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.host-contact-form .secondary-button {
  min-height: 40px;
}

.host-red-review-mount {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.host-technology-profile-mount {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.technology-profile-section {
  overflow: hidden;
  padding: 14px;
  border-color: rgba(173, 140, 255, 0.2);
  background:
    linear-gradient(125deg, rgba(173, 140, 255, 0.045), transparent 42%),
    rgba(255, 255, 255, 0.012);
}

.technology-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.technology-profile-header h2 {
  margin-top: 2px;
  font-size: 15px;
}

.technology-profile-state,
.technology-confidence {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.technology-profile-state.is-profile-complete,
.technology-confidence.is-high {
  border-color: rgba(73, 214, 154, 0.23);
  background: var(--green-soft);
  color: #8be7bd;
}

.technology-profile-state.is-profile-incomplete,
.technology-profile-state.is-profile-stopped,
.technology-confidence.is-medium {
  border-color: rgba(244, 189, 95, 0.24);
  background: var(--amber-soft);
  color: #f7ce86;
}

.technology-profile-state.is-profile-failed {
  border-color: rgba(242, 73, 85, 0.25);
  background: var(--red-soft);
  color: #ff929a;
}

.technology-profile-state.is-profiling-now,
.technology-profile-state.is-waiting {
  border-color: rgba(173, 140, 255, 0.25);
  background: var(--purple-soft);
  color: #cab6ff;
}

.technology-profile-disclaimer,
.technology-profile-loading,
.technology-profile-empty,
.technology-profile-summary,
.technology-coverage-summary {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.technology-profile-disclaimer {
  margin: 8px 0 0;
  color: var(--text-faint);
}

.technology-profile-loading,
.technology-profile-empty {
  margin: 14px 0 0;
}

.technology-profile-latest {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.technology-profile-latest.is-compact > strong {
  font-size: 13px;
}

.technology-profile-summary {
  margin: 0 0 12px;
}

.technology-detection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.technology-detection {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: start;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.technology-detection > div {
  display: grid;
  min-width: 0;
}

.technology-detection strong,
.technology-detection > div > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technology-detection strong {
  font-size: 12px;
}

.technology-detection > div > span,
.technology-detection small {
  color: var(--text-faint);
  font-size: 10px;
}

.technology-detection small {
  grid-column: 1 / -1;
}

.technology-confidence.is-low {
  color: var(--text-faint);
}

.technology-profile-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.technology-coverage-summary {
  margin: 10px 0 0;
}

.technology-profile-changes {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(244, 189, 95, 0.18);
  border-radius: 9px;
  background: rgba(244, 189, 95, 0.035);
}

.technology-profile-changes h3 {
  margin: 0 0 6px;
  font-size: 12px;
}

.technology-profile-changes ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
}

.technology-profile-history {
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.technology-profile-history > summary {
  padding: 11px 0 0;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  list-style: none;
}

.technology-profile-history > summary::-webkit-details-marker {
  display: none;
}

.technology-profile-history > summary::after {
  float: right;
  content: "+";
}

.technology-profile-history[open] > summary::after {
  content: "−";
}

.technology-profile-history-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.technology-profile-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 150px;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.012);
}

.technology-profile-history-row > div {
  display: grid;
  min-width: 0;
}

.technology-profile-history-row strong,
.technology-profile-history-row span,
.technology-profile-history-row time {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technology-profile-history-row strong {
  color: var(--text-soft);
  font-size: 11px;
}

.technology-profile-history-row span,
.technology-profile-history-row time {
  color: var(--text-faint);
}

.technology-profile-load-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.technology-profile-load-error p {
  margin: 0;
  color: var(--amber);
  font-size: 11px;
}

.red-review-section {
  overflow: hidden;
  border-color: rgba(101, 165, 255, 0.18);
  background:
    linear-gradient(125deg, rgba(101, 165, 255, 0.045), transparent 42%),
    var(--surface);
}

.host-red-review-mount .red-review-section {
  padding: 14px;
  background:
    linear-gradient(125deg, rgba(101, 165, 255, 0.04), transparent 42%),
    rgba(255, 255, 255, 0.012);
}

.red-review-section.is-unavailable {
  border-color: rgba(244, 189, 95, 0.24);
}

.red-review-header,
.red-review-latest-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.red-review-header {
  margin-bottom: 14px;
}

.red-review-header .eyebrow {
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 10px;
}

.red-review-header h2,
.red-review-latest h3,
.red-review-latest h4,
.red-review-guidance p,
.red-review-guidance small,
.red-review-list ul,
.red-review-list ol,
.red-review-history-row p,
.red-review-history-more,
.red-review-empty p,
.red-review-load-error p {
  margin: 0;
}

.red-review-header h2 {
  font-size: 15px;
}

.red-review-state,
.red-review-disposition {
  display: inline-flex;
  min-height: 25px;
  flex: 0 0 auto;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.red-review-state.is-ready,
.red-review-disposition.is-no-material-change {
  border-color: rgba(73, 214, 154, 0.24);
  background: var(--green-soft);
  color: #8be7bd;
}

.red-review-state.is-queued,
.red-review-state.is-reviewing {
  border-color: rgba(173, 140, 255, 0.25);
  background: var(--purple-soft);
  color: #cab6ff;
}

.red-review-state.is-unavailable,
.red-review-disposition.is-inconclusive {
  border-color: rgba(244, 189, 95, 0.25);
  background: var(--amber-soft);
  color: #e7c587;
}

.red-review-disposition.is-attention-recommended {
  border-color: rgba(242, 73, 85, 0.26);
  background: var(--red-soft);
  color: #ff929a;
}

.red-review-state-copy,
.red-review-empty {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.red-review-state-copy {
  margin: 0;
}

.red-review-empty {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.red-review-empty strong {
  color: var(--text);
  font-size: 12px;
}

.red-review-empty time,
.red-review-latest time {
  color: var(--text-faint);
  font-size: 10px;
}

.red-review-latest {
  display: grid;
  gap: 13px;
}

.red-review-latest-top > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.red-review-latest h3 {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.4;
}

.red-review-summary {
  margin: -2px 0 0;
  color: #d2d2d7;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.red-review-assessments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.red-review-assessments > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.red-review-assessments small,
.red-review-reference-group > small {
  display: block;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.red-review-assessments p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.red-review-list,
.red-review-guidance,
.red-review-references {
  padding-top: 1px;
}

.red-review-latest h4 {
  color: var(--text);
  font-size: 11px;
}

.red-review-list ul,
.red-review-list ol {
  display: grid;
  gap: 5px;
  margin-top: 7px;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.red-review-guidance {
  display: grid;
  gap: 8px;
}

.red-review-guidance > article {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-left: 2px solid rgba(101, 165, 255, 0.48);
  background: rgba(101, 165, 255, 0.045);
}

.red-review-guidance strong {
  font-size: 12px;
}

.red-review-guidance p {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.red-review-guidance small {
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.5;
}

.red-review-references {
  display: grid;
  gap: 9px;
}

.red-review-reference {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.red-review-load-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(244, 189, 95, 0.22);
  border-radius: 9px;
  background: var(--amber-soft);
  color: #e7c587;
  font-size: 11px;
}

.red-review-load-error .text-button {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 5px 9px;
  font-size: 10px;
}

.red-review-history {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.red-review-history > summary {
  width: fit-content;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.red-review-history > summary:hover {
  color: var(--text);
}

.red-review-history-list {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.red-review-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 8px 12px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.014);
}

.red-review-history-row > div {
  min-width: 0;
}

.red-review-history-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.red-review-history-row p {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.red-review-history-row > span,
.red-review-history-row > time {
  color: var(--text-faint);
  font-size: 10px;
  white-space: nowrap;
}

.red-review-history-more {
  padding: 5px 2px 0;
  color: var(--text-faint);
  font-size: 10px;
}

.host-red-button {
  min-height: 36px;
  font-size: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  max-width: 100%;
  padding: 3px 7px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag.is-overflow {
  color: var(--text-faint);
  font-style: italic;
}

.observation-list {
  display: grid;
  gap: 8px;
}

.observation-card {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.observation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.observation-card h3 {
  margin: 0;
  font-size: 12px;
}

.observation-card p {
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.observation-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
  color: var(--text-faint);
  font-size: 11px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-left: 8px;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: var(--border-strong);
  content: "";
}

.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 13px;
  padding: 0 0 18px;
}

.timeline-event:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border: 2px solid var(--surface-solid);
  border-radius: 999px;
  background: var(--red-bright);
  box-shadow: 0 0 0 2px rgba(242, 73, 85, 0.18);
}

.timeline-event h3 {
  margin: 0;
  font-size: 12px;
}

.timeline-event p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 11px;
}

.host-lifecycle-timeline {
  margin-top: 2px;
}

.host-lifecycle-timeline .timeline-event {
  padding-bottom: 13px;
}

.host-lifecycle-timeline .timeline-dot {
  background: var(--blue);
  box-shadow: 0 0 0 2px rgba(101, 165, 255, 0.16);
}

.host-lifecycle-transition {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 750;
}

.action-form,
.note-form {
  display: grid;
  gap: 11px;
}

.assignment-pending {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.assignment-form {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.assignment-form textarea {
  min-height: 68px;
}

.assignment-history {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.assignment-history > summary {
  color: var(--text-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.assignment-history > div {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.assignment-history article {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
}

.assignment-history article strong {
  font-size: 11px;
}

.assignment-history article span,
.assignment-history article time {
  color: var(--text-faint);
  font-size: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.form-hint {
  margin: -3px 0 0;
  color: var(--text-faint);
  font-size: 11px;
}

.policy-note {
  padding: 10px;
  border: 1px solid rgba(244, 189, 95, 0.17);
  border-radius: 9px;
  background: var(--amber-soft);
  color: #e4c88f;
  font-size: 11px;
  line-height: 1.55;
}

.scan-hero {
  margin-bottom: 16px;
}

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

.scan-summary-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.scan-summary-item small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-faint);
  font-size: 11px;
  text-transform: uppercase;
}

.scan-summary-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text-soft);
  font-size: 12px;
}

.scan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.coverage-note {
  padding: 11px;
  border-left: 2px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: var(--blue-soft);
  color: #b7d2ff;
  font-size: 12px;
  line-height: 1.55;
}

.context-pill {
  border-color: rgba(242, 73, 85, 0.2);
  background: var(--red-soft);
  color: #ff9aa1;
}

.message-list {
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-history-control {
  display: flex;
  min-height: 32px;
  justify-content: center;
  margin: -3px 0 15px;
}

.chat-history-control button {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 750;
}

.chat-history-control button:hover:not(:disabled) {
  border-color: rgba(242, 73, 85, 0.3);
  color: var(--text);
}

.chat-history-control button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  max-width: 860px;
  margin-bottom: 18px;
}

.message.is-user {
  margin-left: auto;
  grid-template-columns: minmax(0, 1fr) 34px;
}

.message-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(242, 73, 85, 0.22);
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 850;
}

.message.is-user .message-avatar {
  border-color: var(--border);
  background: var(--surface-hover);
  color: var(--text-soft);
  grid-column: 2;
}

.message-body {
  min-width: 0;
}

.message.is-user .message-body {
  grid-row: 1;
  text-align: right;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 3px 5px;
  color: var(--text-faint);
  font-size: 11px;
}

.message.is-user .message-meta {
  justify-content: flex-end;
}

.message-meta strong {
  color: var(--text-soft);
  font-size: 12px;
}

.message-content {
  display: inline-block;
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 4px 13px 13px;
  background: rgba(255, 255, 255, 0.025);
  color: #dedee2;
  line-height: 1.65;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message.is-user .message-content {
  border-color: rgba(242, 73, 85, 0.16);
  border-radius: 13px 4px 13px 13px;
  background: var(--red-soft);
}

.message-case-link {
  border-radius: 4px;
  color: #ff9aa1;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 154, 161, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.message-case-link:hover {
  color: var(--red-bright);
  text-decoration-color: currentColor;
}

.message-case-link:focus-visible {
  outline: 2px solid rgba(255, 154, 161, 0.9);
  outline-offset: 2px;
}

.message-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.message.is-user .message-links {
  justify-content: flex-end;
}

.message-focus-action {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(242, 73, 85, 0.28);
  border-radius: 9px;
  background: var(--red-soft);
  color: #ff9aa1;
  font-size: 12px;
  font-weight: 800;
}

.message-focus-action:hover {
  border-color: rgba(242, 73, 85, 0.48);
  background: rgba(242, 73, 85, 0.17);
  color: var(--red-bright);
}

.message-reply {
  display: grid;
  gap: 2px;
  margin: 0 3px 6px;
  padding: 7px 9px;
  border-left: 2px solid rgba(242, 73, 85, 0.62);
  border-radius: 0 7px 7px 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-faint);
  font-size: 11px;
}

.message-reply strong {
  color: #ff929a;
}

.message-reply span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.you-marker {
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--red-soft);
  color: #ff9ba2;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.message-actions {
  display: flex;
  gap: 8px;
  margin: 5px 3px 0;
}

.message.is-user .message-actions {
  justify-content: flex-end;
}

.message-actions button {
  padding: 2px 0;
  background: transparent;
  color: var(--text-faint);
  font-size: 10px;
}

.message-actions button:hover {
  color: var(--text);
}

.message.is-pending {
  opacity: 0.72;
}

.message.is-failed .message-content {
  border-color: rgba(242, 73, 85, 0.5);
}

.chat-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.chat-empty-mark,
.empty-state-mark {
  display: grid;
  width: 45px;
  height: 45px;
  margin: 0 auto 13px;
  place-items: center;
  border: 1px solid rgba(242, 73, 85, 0.23);
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red-bright);
  font-size: 15px;
  font-weight: 900;
}

.chat-empty h3 {
  margin: 0;
  font-size: 15px;
}

.chat-empty p {
  max-width: 530px;
  margin: 8px auto 0;
  color: var(--text-soft);
  font-size: 13px;
}

.suggestion-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.suggestion {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 12px;
}

.suggestion:hover {
  border-color: rgba(242, 73, 85, 0.25);
  color: var(--text);
}

.chat-dock {
  position: sticky;
  z-index: 20;
  top: var(--topbar-height);
  grid-column: 3;
  align-self: start;
  display: grid;
  width: 100%;
  height: calc(100dvh - var(--topbar-height));
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--border);
  background: var(--bg-elevated);
  grid-template-rows: minmax(0, 1fr) auto;
  pointer-events: auto;
}

.chat-overlay,
.chat-dock-composer {
  background: var(--bg-elevated);
  pointer-events: auto;
}

.reply-preview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 10px;
  padding: 7px 9px;
  border-left: 2px solid var(--red);
  border-radius: 0 8px 8px 0;
  background: rgba(242, 73, 85, 0.07);
}

.reply-preview > span {
  display: grid;
  min-width: 0;
}

.reply-preview strong {
  color: #ff969e;
  font-size: 11px;
}

.reply-preview small {
  overflow: hidden;
  color: var(--text-faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-preview button {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: transparent;
  color: var(--text-faint);
  font-size: 18px;
}

.reply-preview button:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.login-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(242, 73, 85, 0.1), transparent 38%),
    var(--bg);
}

.login-layout {
  display: grid;
  width: min(980px, 100%);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.login-intro,
.login-access {
  padding: 42px;
}

.login-intro {
  min-width: 0;
}

.login-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 0 18px;
  place-items: center;
  border: 1px solid rgba(242, 73, 85, 0.32);
  border-radius: 15px;
  background: var(--red-soft);
  color: var(--red-bright);
  font-weight: 900;
}

.login-intro h1 {
  margin: 6px 0 8px;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.login-lede {
  max-width: 650px;
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.login-summary {
  display: grid;
  gap: 1px;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--border);
}

.login-summary article {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  background: var(--surface-solid);
}

.login-summary strong,
.login-access h2,
.login-dialog h2 {
  color: var(--text);
}

.login-summary strong {
  font-size: 13px;
}

.login-summary span {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.login-screen code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #e6e6e9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.login-open {
  min-width: 132px;
  min-height: 44px;
}

.login-access {
  border-left: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.login-access h2 {
  margin: 6px 0 22px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.login-access dl {
  display: grid;
  gap: 17px;
  margin: 0;
}

.login-access dl > div {
  display: grid;
  gap: 4px;
}

.login-access dt {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.login-access dd,
.login-privacy {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.login-privacy {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
}

.login-overlay {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(9px);
}

.login-dialog {
  width: min(470px, 100%);
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.login-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.login-dialog h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.login-dialog > p {
  margin: 20px 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.login-dialog-note {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.login-dialog-note strong {
  font-size: 12px;
}

.login-dialog-note span,
.login-dialog small {
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.55;
}

.google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  margin: 18px 0 12px;
  border-radius: 10px;
  background: #fff;
  color: #202124;
  font-weight: 750;
}

.google-login span {
  color: #4285f4;
  font-weight: 900;
}

.login-dialog small {
  display: block;
  text-align: center;
}

.password-login-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.login-field {
  display: grid;
  gap: 6px;
}

.login-field label {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
}

.login-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  outline: 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.login-field input:focus {
  border-color: rgba(255, 102, 113, 0.7);
  box-shadow: 0 0 0 3px rgba(242, 73, 85, 0.12);
}

.login-form-error {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(242, 73, 85, 0.25);
  border-radius: 8px;
  background: var(--red-soft);
  color: #ffabb1;
  font-size: 12px;
}

.password-login-submit {
  width: 100%;
  min-height: 44px;
}

.password-login-form small {
  margin-top: -2px;
}

.settings-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.settings-panel {
  display: grid;
  width: min(760px, 100%);
  max-height: min(760px, calc(100dvh - 44px));
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.settings-panel > header,
.settings-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.settings-panel > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

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

.profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 42px;
  height: 42px;
}

.profile-summary > div:last-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 9px;
}

.profile-summary span:not(.status-badge) {
  width: 100%;
  color: var(--text-faint);
  font-size: 12px;
}

.settings-content {
  min-height: 0;
  overflow: auto;
}

.work-profile-section,
.user-management {
  padding: 18px 20px;
}

.work-profile-section {
  border-bottom: 1px solid var(--border);
}

.work-profile-form {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.work-profile-form textarea {
  min-height: 72px;
}

.work-profile-host-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.work-profile-host-field legend {
  padding: 0;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-profile-host-field > p {
  margin: 5px 0 8px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.5;
}

.work-profile-host-search {
  display: block;
  margin-bottom: 7px;
}

.work-profile-hosts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 180px;
  gap: 5px;
  padding: 7px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(8, 8, 10, 0.45);
}

.work-profile-host-option {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  cursor: pointer;
}

.work-profile-host-option:hover {
  background: var(--surface-hover);
}

.work-profile-host-option input[type="checkbox"] {
  width: 15px;
  min-height: 15px;
  height: 15px;
  flex: 0 0 auto;
  accent-color: var(--red);
}

.work-profile-host-option > span {
  display: grid;
  min-width: 0;
}

.work-profile-host-option strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-profile-host-option small {
  color: var(--text-faint);
  font-size: 9px;
}

.work-profile-host-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  color: var(--text-faint);
  font-size: 11px;
}

.work-profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-profile-actions p {
  color: var(--text-faint);
  font-size: 11px;
}

.user-management {
  min-height: 0;
  overflow: visible;
}

.settings-section-heading p {
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 12px;
}

.users-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.user-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.user-access-row.is-disabled {
  opacity: 0.58;
}

.user-access-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.user-access-identity > span:last-child {
  display: grid;
  min-width: 0;
}

.user-access-identity small {
  overflow: hidden;
  color: var(--text-faint);
  font-size: 11px;
  text-overflow: ellipsis;
}

.user-access-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-access-controls select,
.user-status-button {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 11px;
}

.user-status-button {
  color: #ff9aa1;
}

.settings-error {
  padding: 12px;
  color: #ff9aa1;
}

.chat-overlay {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}

.chat-new-messages {
  position: absolute;
  z-index: 4;
  bottom: 12px;
  left: 50%;
  min-height: 31px;
  padding: 6px 12px;
  border: 1px solid rgba(242, 73, 85, 0.34);
  border-radius: 999px;
  background: #2c171b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  color: #ffadb3;
  font-size: 11px;
  font-weight: 800;
  transform: translateX(-50%);
}

.chat-new-messages:hover {
  border-color: rgba(242, 73, 85, 0.55);
  background: #39191f;
  color: #fff;
}

.chat-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
}

.chat-dock-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.chat-dock-identity > span:last-child {
  display: grid;
  min-width: 0;
}

.chat-dock-identity strong {
  font-size: 13px;
}

.chat-dock-identity small {
  color: var(--text-faint);
  font-size: 11px;
}

.chat-dock-avatar,
.chat-dock-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(242, 73, 85, 0.25);
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 900;
}

.chat-dock-close,
.chat-dock-send {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
}

.chat-dock-close {
  background: transparent;
  color: var(--text-faint);
}

.chat-dock-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.chat-dock-messages {
  padding: 16px 14px;
}

.chat-dock-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: end;
  gap: 10px;
  padding: 11px 12px 13px;
  border-top: 1px solid var(--border);
}

.chat-dock.is-open {
  gap: 0;
}

.chat-dock-composer:focus-within,
.chat-dock.is-open .chat-dock-composer {
  border-color: rgba(242, 73, 85, 0.38);
  box-shadow: inset 0 1px 0 rgba(242, 73, 85, 0.12);
}

.chat-dock-toggle:hover {
  border-color: rgba(242, 73, 85, 0.45);
  background: rgba(242, 73, 85, 0.18);
}

.chat-dock-composer textarea {
  min-height: 36px;
  max-height: 150px;
  padding: 7px 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
  line-height: 1.5;
  resize: none;
}

.chat-dock-composer textarea:focus {
  box-shadow: none;
}

.chat-dock-send {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: #fff;
}

.chat-dock-send:hover:not(:disabled) {
  filter: brightness(1.08);
}

.chat-dock-send:disabled,
.chat-dock-toggle:disabled,
.chat-dock-composer textarea:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.chat-dock.is-unavailable .chat-dock-composer {
  border-color: var(--border);
}

@media (min-width: 1181px) {
  .chat-dock.is-open .chat-dock-toggle {
    display: none;
  }

  .chat-dock:not(.is-open) {
    padding-top: 10px;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .chat-dock:not(.is-open) .chat-dock-composer {
    grid-row: 1;
    grid-template-columns: 1fr;
    padding: 0 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .chat-dock:not(.is-open) .chat-dock-composer textarea,
  .chat-dock:not(.is-open) .chat-dock-send {
    display: none;
  }

  .chat-dock:not(.is-open) .chat-dock-toggle {
    margin-inline: auto;
  }

  .message {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 15px;
  }

  .message.is-user {
    grid-template-columns: minmax(0, 1fr) 30px;
  }

  .message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .message-content {
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.55;
  }

  .chat-empty {
    padding: 20px 16px;
  }

  .suggestion-list {
    align-items: stretch;
    flex-direction: column;
  }

  .suggestion {
    border-radius: 9px;
  }

  .toast-region {
    right: calc(var(--red-rail-collapsed-width) + 20px);
    bottom: 20px;
  }

  .red-rail-open .toast-region {
    right: calc(var(--red-rail-width) + 20px);
  }
}

.thinking-dots {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 5px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 4px 13px 13px;
  background: rgba(255, 255, 255, 0.025);
}

.thinking-dots span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--text-soft);
  animation: pulse 1.2s ease-in-out infinite;
}

.thinking-dots span:nth-child(2) {
  animation-delay: 0.12s;
}

.thinking-dots span:nth-child(3) {
  animation-delay: 0.24s;
}

.empty-state,
.error-state,
.page-loading {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 30px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-soft);
  text-align: center;
}

.empty-state h2,
.error-state h2 {
  font-size: 15px;
}

.empty-state p,
.error-state p {
  max-width: 580px;
  margin: 8px auto 0;
  color: var(--text-faint);
  font-size: 11px;
}

.empty-state .primary-button,
.error-state .secondary-button {
  margin-top: 15px;
}

.page-loading {
  grid-auto-flow: column;
  gap: 7px;
}

.page-loading span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  animation: pulse 1.2s ease-in-out infinite;
}

.page-loading span:nth-child(2) {
  animation-delay: 0.12s;
}

.page-loading span:nth-child(3) {
  animation-delay: 0.24s;
}

.toast-region {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 100px;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 9px;
}

.toast {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(73, 214, 154, 0.22);
  border-radius: 12px;
  background: #131b18;
  box-shadow: var(--shadow);
  animation: toast-in 180ms ease-out;
}

.toast.is-error {
  border-color: rgba(242, 73, 85, 0.26);
  background: #1d1214;
}

.toast-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.toast.is-error .toast-mark {
  background: var(--red-soft);
  color: var(--red-bright);
}

.toast p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
}

.noscript {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: 420px;
  padding: 13px;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: var(--surface-solid);
}

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

@keyframes workspace-focus {
  0% { outline-color: rgba(242, 73, 85, 0.08); }
  45% { outline-color: rgba(242, 73, 85, 0.28); }
  100% { outline-color: rgba(242, 73, 85, 0.16); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 1180px) {
  .app-shell,
  .red-rail-open .app-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .workspace {
    padding-bottom: 150px;
  }

  .chat-dock {
    position: fixed;
    z-index: 30;
    top: auto;
    right: 0;
    bottom: 18px;
    left: var(--sidebar-width);
    display: grid;
    width: min(720px, calc(100vw - var(--sidebar-width) - 48px));
    height: auto;
    margin-inline: auto;
    gap: 10px;
    overflow: visible;
    border: 0;
    background: transparent;
    pointer-events: none;
  }

  .chat-overlay,
  .chat-dock-composer {
    border: 1px solid var(--border-strong);
    background: rgba(16, 17, 20, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px) saturate(1.15);
    pointer-events: auto;
  }

  .chat-overlay {
    height: min(560px, calc(100dvh - 170px));
    min-height: 300px;
    border-radius: 12px;
  }

  .chat-dock-composer {
    grid-template-columns: 34px minmax(0, 1fr) 38px;
    padding: 9px 10px;
    border-radius: 12px;
  }

  .chat-dock.is-open {
    gap: 0;
  }

  .chat-dock.is-open .chat-overlay {
    border-radius: 12px 12px 0 0;
  }

  .chat-dock.is-open .chat-dock-composer {
    border-top: 0;
    border-radius: 0 0 12px 12px;
  }

  .chat-dock-composer:focus-within,
  .chat-dock.is-open .chat-dock-composer {
    border-color: rgba(242, 73, 85, 0.38);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(242, 73, 85, 0.06);
  }

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

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

  .host-map-metrics {
    grid-template-columns: repeat(4, minmax(74px, 1fr));
  }

  .filter-bar {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(130px, 0.4fr));
  }

  .filter-bar > :last-child:nth-child(4) {
    grid-column: 2 / -1;
  }

  .filter-bar.is-host-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar.is-host-filter > .search-field {
    grid-column: 1 / -1;
  }

  .host-row-main {
    grid-template-columns: 128px minmax(190px, 1fr) 100px 122px 122px;
    gap: 12px;
  }

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

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

  .case-layout,
  .scan-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}

@media (max-width: 620px) {
  .account-copy {
    display: none;
  }

  .login-screen {
    padding: 12px;
    place-items: start center;
    overflow-y: auto;
  }

  .login-intro,
  .login-access {
    padding: 28px 22px;
  }

  .login-overlay {
    padding: 12px;
  }

  .login-dialog {
    padding: 20px;
  }

  .settings-overlay {
    padding: 0;
  }

  .settings-panel {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .user-access-row,
  .user-access-controls {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .dashboard-grid,
  .case-layout,
  .scan-layout {
    grid-template-columns: 1fr;
  }

  .case-sidebar {
    grid-template-columns: 1fr;
  }

  .host-row-main {
    grid-template-columns: 128px minmax(0, 1fr) 128px;
    row-gap: 10px;
  }

  .host-row-state {
    grid-column: 1;
    grid-row: 1;
  }

  .host-row-identity {
    grid-column: 2;
    grid-row: 1;
  }

  .host-row-main > .host-row-cell:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .host-row-main > .host-row-cell:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .host-row-main > .host-row-cell:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 78px;
  }

  .login-screen {
    overflow-y: auto;
    place-items: start center;
  }

  .login-layout {
    width: min(680px, 100%);
    grid-template-columns: 1fr;
  }

  .login-access {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .sidebar-intro,
  .nav-link > span:not(.nav-icon):not(.nav-count) {
    display: none;
  }

  .nav-link {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .nav-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 17px;
    padding: 1px 4px;
  }

  .dashboard-grid,
  .case-layout,
  .scan-layout {
    grid-template-columns: 1fr;
  }

  .overview-coverage-grid {
    grid-template-columns: 1fr;
  }

  .case-sidebar {
    grid-template-columns: 1fr;
  }

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

  .host-row-main {
    grid-template-columns: 76px minmax(0, 1fr) 128px;
    row-gap: 10px;
  }

  .host-row-state {
    grid-column: 1;
    grid-row: 1;
  }

  .host-row-identity {
    grid-column: 2;
    grid-row: 1;
  }

  .host-row-main > .host-row-cell:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .host-row-main > .host-row-cell:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .host-row-main > .host-row-cell:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  :root {
    --topbar-height: 64px;
  }

  .topbar {
    padding: 0 14px;
  }

  .brand-copy small,
  .operator-chip,
  .runtime-status span:last-child {
    display: none;
  }

  .runtime-status {
    min-width: 34px;
    padding: 0;
    justify-content: center;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 35;
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(76px + env(safe-area-inset-bottom));
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    border-right: 0;
    background: rgba(9, 9, 11, 0.93);
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .nav-link {
    min-height: 61px;
    gap: 2px;
    font-size: 10px;
    grid-template-rows: 26px 16px;
  }

  .nav-link > span:not(.nav-icon):not(.nav-count) {
    display: block;
  }

  .nav-icon {
    width: auto;
  }

  .nav-link.is-active::before {
    top: -7px;
    right: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    height: 2px;
  }

  .workspace {
    width: 100%;
    padding: 24px 14px 190px;
  }

  .runtime-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .runtime-banner-tag {
    display: none;
  }

  .page-header,
  .case-hero-top {
    align-items: stretch;
    flex-direction: column;
  }

  .overview-header-actions {
    align-items: flex-start;
  }

  .overview-next-steps {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .overview-next-steps-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .overview-freshness,
  .overview-evidence-row {
    width: 100%;
  }

  .overview-freshness-item {
    align-items: flex-start;
  }

  .freshness {
    align-items: flex-start;
  }

  .host-map-summary-top {
    align-items: stretch;
    flex-direction: column;
  }

  .host-map-freshness {
    text-align: left;
  }

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

  .help-tip-content {
    width: min(210px, calc(100vw - 32px));
  }

  .host-map-metric:nth-child(odd) .help-tip-content {
    right: auto;
    left: 0;
  }

  .host-map-metric:nth-child(even) .help-tip-content {
    right: 0;
    left: auto;
  }

  .metric-grid,
  .case-sidebar,
  .asset-grid,
  .scan-summary-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .overview-evidence-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .overview-evidence-status {
    align-items: flex-start;
    text-align: left;
  }

  .overview-case-context {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-bar.is-scan-filter {
    grid-template-columns: 1fr;
  }

  .filter-bar.is-host-filter {
    grid-template-columns: 1fr;
  }

  .filter-bar.is-host-filter > .search-field {
    grid-column: auto;
  }

  .filter-bar > :last-child:nth-child(4) {
    grid-column: auto;
  }

  .record-top {
    flex-direction: column;
  }

  .record-badges {
    justify-content: flex-start;
  }

  .host-row-main {
    grid-template-columns: minmax(0, 1fr) minmax(116px, 0.45fr);
    gap: 10px 14px;
    padding: 12px;
  }

  .host-row-state {
    grid-column: 1;
    grid-row: 1;
  }

  .host-row-identity {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .host-row-main > .host-row-cell:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .host-row-main > .host-row-cell:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .host-row-main > .host-row-cell:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }

  .host-change-row {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .host-change-row > .status-badge {
    grid-column: 1;
    grid-row: 1;
  }

  .host-change-row > time {
    grid-column: 2;
    grid-row: 1;
  }

  .host-change-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .host-change-check {
    grid-column: 1 / -1;
    grid-row: 3;
  }

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

  .red-review-header,
  .red-review-latest-top,
  .red-review-load-error {
    align-items: flex-start;
    flex-direction: column;
  }

  .red-review-assessments {
    grid-template-columns: 1fr;
  }

  .red-review-history-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .red-review-history-row > div {
    grid-column: 1 / -1;
  }

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

  .message-list {
    padding: 16px 12px;
  }

  .chat-dock {
    right: 0;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 0;
    width: calc(100vw - 24px);
  }

  .chat-overlay {
    height: min(480px, calc(100dvh - 170px));
    min-height: 260px;
  }

  .chat-dock-messages {
    padding: 16px 12px;
  }

  .toast-region {
    right: 12px;
    bottom: calc(150px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
  }

  .team-activity-heading {
    display: none;
  }

  .team-activity-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .team-presence {
    grid-column: 1 / -1;
    padding-left: 42px;
  }
}

@media (max-width: 680px) {
  .technology-profile-header,
  .technology-profile-load-error {
    align-items: flex-start;
    flex-direction: column;
  }

  .technology-detection-grid,
  .technology-profile-meta {
    grid-template-columns: 1fr;
  }

  .technology-profile-history-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .filter-bar.is-case-filter,
  .host-operational-form,
  .host-contact-form,
  .work-profile-hosts,
  .your-work-summary {
    grid-template-columns: 1fr;
  }

  .work-profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .work-profile-actions .primary-button {
    width: 100%;
  }

  .assignment-card-heading,
  .host-contact-proposal-heading {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .brand-copy strong {
    font-size: 13px;
  }

  .page-header h1 {
    font-size: 25px;
  }

  .meta-grid,
  .meta-grid.is-detailed {
    grid-template-columns: 1fr;
  }

  .brief-card {
    grid-template-columns: 1fr;
  }

  .red-avatar {
    width: 38px;
    height: 38px;
  }

  .chat-dock-composer {
    grid-template-columns: 32px minmax(0, 1fr) 36px;
    gap: 8px;
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* Investigation source and output remain inert, readable text. */
.investigation-code { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 24rem; overflow: auto; font-size: .8rem; }
#case-investigations details { margin-top: 1rem; }
#case-investigations summary { cursor: pointer; }
