.graph-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}
.graph-canvas {
  position: relative;
  min-height: 430px;
  border: 1px solid #243d50;
  border-radius: 10px;
  background: radial-gradient(circle at center, rgba(40, 215, 197, 0.08), transparent 45%), #081722;
  overflow: hidden;
}
.graph-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.graph-canvas line {
  stroke: #39708a;
  stroke-width: 2;
  stroke-dasharray: 5 5;
}
.node {
  position: absolute;
  z-index: 1;
  padding: 10px 14px;
  border: 1px solid #3a6d82;
  border-radius: 22px;
  background: #102b3b;
  font-size: 11px;
  box-shadow: 0 0 22px rgba(40, 215, 197, 0.12);
}
.node.n1 {
  left: 11%;
  top: 20%;
}
.node.n2 {
  left: 44%;
  top: 44%;
  background: #183d43;
  border-color: #32a99e;
}
.node.n3 {
  right: 9%;
  top: 17%;
}
.node.n4 {
  right: 16%;
  bottom: 13%;
}
.map-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.map-grid {
  height: 220px;
  border-radius: 9px;
  position: relative;
  display: grid;
  place-items: center;
  background-color: #0a1b28;
  background-image: linear-gradient(#183246 1px, transparent 1px), linear-gradient(90deg, #183246 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}
.map-grid i {
  position: absolute;
  width: 135px;
  height: 90px;
  border-radius: 50%;
  background: rgba(40, 215, 197, 0.15);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 35px rgba(40, 215, 197, 0.2);
}
.map-grid b {
  z-index: 1;
  font-size: 10px;
}
.detector-list {
  display: grid;
  gap: 8px;
}
.detector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 11px 3px;
}
.detector strong,
.detector small {
  display: block;
  font-size: 11px;
}
.detector small {
  color: var(--muted);
  margin-top: 4px;
}
.detector > span {
  font-size: 9px;
  color: var(--amber);
  border: 1px solid #5d4a2e;
  border-radius: 5px;
  padding: 4px 6px;
}
.control-list p {
  font-size: 11px;
  color: #b8cad6;
  border-bottom: 1px solid rgba(32, 53, 72, 0.7);
  padding: 8px 0;
  margin: 0;
}
.muted {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
@media (max-width: 1050px) {
  .graph-shell {
    grid-template-columns: 1fr;
  }
}
.evidence-register {
  display: grid;
  gap: 10px;
  min-width: 0;
}
#view-evidence .grid-main > * {
  min-width: 0;
}
#view-evidence .grid-main > .panel {
  overflow: hidden;
}
.evidence-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.7fr) minmax(150px, 0.85fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line, #26384a);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}
.evidence-row > * {
  min-width: 0;
}
.evidence-row:hover,
.evidence-row:focus {
  border-color: #25b5a5;
  outline: none;
}
.evidence-row strong,
.hash-value {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.evidence-row small {
  display: block;
  color: var(--muted, #8fa4b7);
  margin-top: 4px;
}
.evidence-id,
.evidence-source {
  overflow-wrap: anywhere;
}
.evidence-source {
  line-height: 1.45;
}
.evidence-hash-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #aac0ce;
  font-size: 11px;
}
.integrity-state {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(37, 181, 165, 0.12);
  color: #60d4c7;
  font-size: 12px;
  white-space: nowrap;
}
.hash-value {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 12px;
}
.head-actions select {
  min-width: 230px;
  background: #0b1a28;
  color: #e9f3f7;
  border: 1px solid #294052;
  border-radius: 8px;
  padding: 9px 12px;
}
@media (max-width: 1250px) {
  .evidence-row {
    grid-template-columns: minmax(145px, 0.9fr) minmax(180px, 1.5fr) minmax(130px, 0.75fr);
  }
  .evidence-row .integrity-state {
    grid-column: 1/-1;
    justify-self: start;
  }
}
@media (max-width: 800px) {
  .evidence-row {
    grid-template-columns: 1fr;
  }
  .evidence-row .integrity-state {
    grid-column: auto;
  }
  .head-actions select {
    min-width: 0;
    width: 100%;
  }
}
.evidence-card .evidence-source b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: inherit;
  font-weight: 600;
}
.evidence-post-detail {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(37, 181, 165, 0.05);
}
.evidence-post-detail strong,
.evidence-post-detail small {
  display: block;
}
.evidence-post-detail p {
  line-height: 1.55;
}
.alert-factor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}
.alert-factor-grid div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.alert-factor-grid small,
.alert-factor-grid strong {
  display: block;
}
.alert-factor-grid small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: 0.8px;
}
.alert-factor-grid strong {
  margin-top: 5px;
  font-size: 10px;
}
.alert-review-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.alert-review-form label {
  display: grid;
  gap: 6px;
  font-size: 10px;
}
.alert-review-form select,
.alert-review-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #081622;
  color: var(--text);
}
.alert-review-form textarea {
  min-height: 90px;
  resize: vertical;
}
.alert-alternatives {
  padding-left: 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.nav-label {
  color: #587083;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-weight: 900;
  margin: 18px 12px 5px;
}
.sidebar {
  overflow-y: auto;
}
.sidebar nav {
  padding-bottom: 18px;
}
.sidebar-foot {
  position: sticky;
  bottom: 0;
  background: #061019;
  padding-bottom: 4px;
}
.case-switcher {
  max-width: 260px;
  background: #0b1a27;
  border: 1px solid var(--line);
  color: #c7d7e2;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 10px;
}
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.toolbar input,
.toolbar select,
.assistant-compose textarea,
dialog textarea {
  background: #081722;
  border: 1px solid #2d4658;
  border-radius: 8px;
  color: white;
  padding: 10px;
  outline: 0;
}
.toolbar input {
  flex: 1;
}
.toolbar select {
  min-width: 150px;
}
.data-list {
  display: grid;
  gap: 8px;
}
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}
.data-row.clickable {
  cursor: pointer;
}
.data-row.clickable:hover {
  border-color: #35687a;
}
.data-row strong,
.data-row small {
  display: block;
  font-size: 11px;
}
.data-row small {
  color: var(--muted);
  margin-top: 5px;
}
.status-pill {
  display: inline-block;
  white-space: nowrap;
  border: 1px solid #305064;
  background: #102738;
  color: #9fd5dc;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.status-pill.failed,
.status-pill.denied {
  color: #ff9aa8;
  border-color: #713843;
  background: #381d25;
}
.status-pill.completed,
.status-pill.active,
.status-pill.pass {
  color: #76e2ad;
  border-color: #286147;
  background: #153a2a;
}
.results-panel {
  margin-top: 15px;
}
.search-hints {
  grid-column: 1/-1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.search-hints span {
  font-size: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 6px;
}
.case-banner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 15px;
  border: 1px solid #285365;
  border-radius: 11px;
  background: linear-gradient(105deg, rgba(40, 215, 197, 0.09), rgba(20, 53, 76, 0.55));
}
.case-banner h2 {
  margin: 10px 0 5px;
  font-size: 18px;
}
.case-banner p,
.case-banner small {
  color: var(--muted);
  font-size: 10px;
}
.case-banner > div:last-child {
  text-align: right;
}
.case-banner > div:last-child strong {
  display: block;
  margin-top: 5px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}
.profile-lab {
  margin-bottom: 18px;
}
.profile-lab-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.5fr);
  gap: 18px;
}
.profile-lab select {
  width: 100%;
  margin: 6px 0 14px;
}
.profile-overview,
.profile-findings {
  min-width: 0;
}
.profile-hero {
  align-items: flex-start;
  margin-bottom: 12px;
}
.profile-hero img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-fields {
  display: grid;
  gap: 8px;
}
.profile-fields div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}
.profile-fields dt {
  color: var(--muted);
}
.profile-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.finding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.finding-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #0b1c29;
}
.finding-grid article.wide {
  grid-column: 1 / -1;
}
.finding-grid p {
  overflow-wrap: anywhere;
}
.finding-grid p span,
.finding-grid p small {
  display: block;
  color: var(--muted);
}
.module-card {
  display: grid;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(145deg, #102436, #0a1926);
  color: white;
  padding: 16px;
  min-height: 118px;
}
.module-card.is-action {
  cursor: pointer;
  transition:
    border-color 120ms ease,
    transform 120ms ease;
}
.module-card.is-action:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}
.module-card.is-action:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.module-card > span {
  color: var(--cyan);
  font-size: 22px;
  font-weight: 800;
}
.module-card strong {
  font-size: 12px;
  margin: 13px 0 5px;
}
.module-card small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.4;
}
.module-card:is(button) {
  cursor: pointer;
}
.module-card:is(button):hover {
  border-color: #318677;
  transform: translateY(-1px);
}
blockquote {
  border-left: 2px solid #31566c;
  margin: 10px 0;
  padding: 8px 12px;
  color: #b5c6d2;
  font-size: 10px;
}
blockquote small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.profile-list {
  display: grid;
  gap: 8px;
}
.profile-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0b1c29;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  text-align: left;
  cursor: pointer;
}
.profile-card > span,
.profile-hero > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e4554;
  color: var(--cyan);
  font-weight: 900;
}
.profile-card strong,
.profile-card small {
  display: block;
  font-size: 11px;
}
.profile-card small {
  color: var(--muted);
  margin-top: 4px;
}
.profile-hero {
  display: flex;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.profile-hero h2 {
  font-size: 20px;
}
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.mini-metrics > div {
  background: #091824;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
}
.mini-metrics strong,
.mini-metrics small {
  display: block;
}
.mini-metrics small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.section-gap {
  margin-top: 18px !important;
}
.legend {
  display: grid;
  gap: 9px;
  margin: 15px 0;
}
.legend span {
  font-size: 10px;
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--cyan);
}
.dot.media {
  background: var(--blue);
}
.dot.place {
  background: var(--amber);
}
.graph-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 8px 11px;
  background: #133749;
  border: 1px solid #38859a;
  border-radius: 20px;
  font-size: 9px;
  box-shadow: 0 0 20px #07111b;
}
.assistant-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 15px;
}
.assistant-main {
  min-height: 620px;
  display: flex;
  flex-direction: column;
}
.assistant-messages {
  display: grid;
  gap: 12px;
  overflow: auto;
  max-height: 490px;
}
.assistant-message {
  max-width: 85%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
  background: #0a1a27;
}
.assistant-message.user {
  margin-left: auto;
  background: #12343d;
  border-color: #27606a;
}
.assistant-message strong {
  font-size: 10px;
  color: var(--cyan);
}
.assistant-message p {
  font-size: 11px;
  line-height: 1.6;
  margin: 7px 0;
}
.assistant-compose {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  padding-top: 14px;
}
.assistant-compose textarea {
  min-height: 70px;
  resize: vertical;
}
.prompt-chip {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a1a27;
  color: #adc0ce;
  padding: 9px;
  text-align: left;
  font-size: 9px;
  margin-top: 7px;
  cursor: pointer;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 7px;
  margin-top: 12px;
  min-width: 0;
}
#view-media {
  min-width: 0;
  max-width: 100%;
}
#view-media .panel,
#view-media .panel-head,
#view-media .grid-main > * {
  min-width: 0;
}
#mediaActions,
#mediaProfiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  width: 100%;
}
#mediaActions .button,
#mediaProfiles .button {
  min-width: 0;
  min-height: 50px;
  padding: 10px 12px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
#mediaProfiles {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}
.success {
  color: var(--green) !important;
}
.workflow-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
  margin-bottom: 15px;
  background: #091925;
  overflow: auto;
}
.workflow-map div {
  min-width: 88px;
  text-align: center;
}
.workflow-map b {
  display: grid;
  place-items: center;
  margin: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #153e43;
  color: var(--cyan);
  border: 1px solid #2e7775;
}
.workflow-map span {
  display: block;
  font-size: 9px;
  margin-top: 7px;
  color: #b7c7d2;
}
.workflow-map i {
  color: #49687b;
}
.workflow-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}
.workflow-row strong,
.workflow-row small {
  display: block;
  font-size: 10px;
}
.workflow-row small {
  color: var(--muted);
  margin-top: 4px;
}
.stage-strip {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.stage-strip span {
  font-size: 8px;
  border: 1px solid #2b485b;
  padding: 4px 6px;
  border-radius: 5px;
  color: #92a9b9;
}
.stage-strip span.complete {
  border-color: #2b6b50;
  color: #67d99e;
}
.stage-strip span.pending {
  border-color: #735a2e;
  color: #ffd184;
}
.mini-bar {
  height: 3px;
  background: #172c3a;
  margin: 12px 0;
  border-radius: 3px;
  overflow: hidden;
}
.mini-bar i {
  height: 100%;
  background: var(--cyan);
  display: block;
}
.audit-row {
  display: grid;
  grid-template-columns: 48px 1fr 180px;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 11px 3px;
}
.audit-row strong,
.audit-row small {
  display: block;
  font-size: 10px;
}
.audit-row small,
.audit-row time {
  color: var(--muted);
  margin-top: 4px;
  font-size: 9px;
}
.http-status {
  display: grid;
  place-items: center;
  background: #183d2e;
  color: #74dfaa;
  border-radius: 6px;
  padding: 6px;
  font-size: 10px;
}
.http-status.denied {
  background: #48212b;
  color: #ff9ba8;
}
.readiness-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.readiness {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.readiness b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #17382c;
  color: var(--green);
}
.readiness.warn b {
  background: #4b3a1f;
  color: var(--amber);
}
.readiness.fail b {
  background: #49232b;
  color: var(--red);
}
.readiness strong,
.readiness small {
  display: block;
  font-size: 9px;
}
.readiness small {
  color: var(--muted);
  margin-top: 3px;
}
.spaced {
  margin-top: 24px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.setting-list {
  display: grid;
  margin-top: 13px;
}
.setting-list > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 11px 0;
  font-size: 10px;
}
.setting-list span {
  color: var(--muted);
}
.setting-list strong {
  text-align: right;
}
.toast.error {
  background: #3f2027;
  border-color: #7b3945;
  color: #ffd0d6;
}
dialog textarea {
  min-height: 100px;
  resize: vertical;
}
dialog input[type='file'] {
  padding: 8px;
}
.clickable {
  cursor: pointer;
}
@media (max-width: 1200px) {
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-switcher {
    max-width: 180px;
  }
  .workflow-map {
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  .assistant-shell,
  .settings-grid,
  .profile-lab-layout {
    grid-template-columns: 1fr;
  }
  .case-switcher {
    display: none;
  }
  .workflow-row {
    grid-template-columns: 1fr;
  }
  .audit-row {
    grid-template-columns: 45px 1fr;
  }
  .audit-row time {
    display: none;
  }
  .readiness-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
  }
  .toolbar select {
    min-width: 0;
  }
  .assistant-compose {
    grid-template-columns: 1fr;
  }
  .case-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .case-banner > div:last-child {
    text-align: left;
  }
  .workflow-map i {
    display: none;
  }
  .workflow-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .mini-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .finding-grid {
    grid-template-columns: 1fr;
  }
  .finding-grid article.wide {
    grid-column: auto;
  }
}
.intel-svg {
  width: 100%;
  height: 100%;
  min-height: 430px;
  cursor: grab;
  touch-action: none;
}
.intel-svg:active {
  cursor: grabbing;
}
.intel-svg line {
  stroke: #39708a;
  stroke-width: 2;
  stroke-dasharray: 5 5;
}
.viz-node circle {
  fill: #143c4d;
  stroke: #39a89c;
  stroke-width: 2;
}
.viz-node text {
  fill: #dcebf2;
  font-size: 12px;
}
.viz-help {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 8px;
  color: #7992a4;
  background: #07131fcc;
  padding: 5px 7px;
  border-radius: 5px;
}
.confidence-region {
  fill: #28d7c522;
  stroke: #28d7c5;
  stroke-width: 1;
}
.map-point {
  fill: #ffbd5c;
}
.map-svg {
  min-height: 220px;
}
.map-card .map-grid:has(.intel-svg) {
  height: 320px;
  display: block;
}
.map-card .map-grid:has(.intel-svg) > i,
.map-card .map-grid:has(.intel-svg) > b {
  display: none;
}
.case-row {
  grid-template-columns: minmax(110px, 0.8fr) minmax(220px, 2fr) 75px 85px minmax(110px, 0.8fr) 80px 86px;
}
.case-row > span:nth-child(2) b,
.case-row > span:nth-child(2) small {
  display: block;
}
.case-row > span:nth-child(2) small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.case-dialog {
  width: min(920px, calc(100% - 30px));
  max-height: calc(100vh - 32px);
}
.case-dialog form {
  padding: 26px 30px;
}
.case-dialog .dialog-head {
  position: sticky;
  top: -26px;
  z-index: 3;
  background: #0b1b28;
  padding: 26px 0 12px;
}
.case-dialog .dialog-head p {
  max-width: 650px;
  margin: -12px 0 18px;
  color: var(--muted);
  font-size: 11px;
}
.case-dialog textarea {
  width: 100%;
}
.case-dialog label > small {
  color: var(--muted);
  font-size: 9px;
}
.case-form-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 13px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.case-form-step > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #163a40;
  border: 1px solid #2d7774;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}
.case-form-step strong,
.case-form-step small {
  display: block;
}
.case-form-step strong {
  font-size: 12px;
}
.case-form-step small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.template-guidance {
  margin: 10px 0 4px;
  padding: 11px 13px;
  border-left: 3px solid var(--cyan);
  background: #0a1925;
}
.template-guidance strong {
  font-size: 10px;
  color: var(--cyan);
}
.template-guidance p {
  margin: 5px 0 0;
  color: #b5c7d3;
  font-size: 10px;
  line-height: 1.5;
}
.capability-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.capability-option {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: start;
  gap: 10px !important;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #091925;
}
.capability-option input {
  margin-top: 3px;
}
.capability-option span strong,
.capability-option span small,
.capability-option span em {
  display: block;
}
.capability-option span strong {
  color: var(--text);
  font-size: 10px;
}
.capability-option span small {
  margin-top: 5px;
  line-height: 1.45;
}
.capability-option span em {
  margin-top: 6px;
  color: #7fa4b8;
  font-style: normal;
  font-size: 8px;
}
.capability-option > b {
  font-size: 8px;
  text-transform: uppercase;
  border-radius: 9px;
  padding: 4px 6px;
  color: var(--amber);
  background: #43351f;
}
.capability-option > b.readiness-ready {
  color: var(--green);
  background: #17382a;
}
.analysis-boundary {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #315263;
  border-radius: 9px;
  background: rgba(40, 215, 197, 0.05);
}
.analysis-boundary strong {
  font-size: 10px;
  color: var(--cyan);
}
.analysis-boundary p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.sticky-actions {
  position: sticky;
  bottom: -26px;
  z-index: 3;
  margin: 20px -30px -26px;
  padding: 14px 30px 24px;
  background: linear-gradient(transparent, #0b1b28 25%);
}
.analysis-plan {
  margin-bottom: 15px;
}
.objective-card {
  padding: 15px;
  border: 1px solid #2c5861;
  border-radius: 9px;
  background: linear-gradient(105deg, rgba(40, 215, 197, 0.08), rgba(11, 27, 40, 0.7));
}
.objective-card small,
.objective-card strong {
  display: block;
}
.objective-card small {
  color: var(--cyan);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.objective-card strong {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
}
.question-list {
  padding: 14px 3px;
}
.question-list > strong {
  font-size: 10px;
}
.question-list ol {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #b6c8d4;
  font-size: 10px;
  line-height: 1.7;
}
.plan-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.plan-capability {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #091925;
}
.plan-capability > div strong,
.plan-capability > div small {
  display: block;
}
.plan-capability > div strong {
  font-size: 10px;
}
.plan-capability > div small,
.plan-capability > small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 4px;
}
.plan-capability p {
  grid-column: 1/-1;
  margin: 1px 0;
  color: #a8bdca;
  font-size: 9px;
  line-height: 1.45;
}
.plan-capability p b {
  display: block;
  margin-bottom: 3px;
  color: #6f8da1;
  text-transform: uppercase;
  font-size: 7px;
  letter-spacing: 0.8px;
}
.plan-capability > small {
  grid-column: 1/-1;
}
.status-pill.model-review,
.status-pill.review-required {
  color: var(--amber);
  border-color: #6c542b;
  background: #3a2e1b;
}
.status-pill.awaiting-evidence {
  color: #91a6b6;
}
.status-pill.ready {
  color: var(--green);
  border-color: #286147;
  background: #153a2a;
}
@media (max-width: 900px) {
  .capability-selector,
  .plan-capabilities {
    grid-template-columns: 1fr;
  }
  .case-row {
    grid-template-columns: 110px 1fr 70px 85px;
  }
  .case-row > *:nth-child(5),
  .case-row > *:nth-child(6),
  .case-row.head > *:nth-child(5),
  .case-row.head > *:nth-child(6) {
    display: none;
  }
}
@media (max-width: 600px) {
  .case-dialog form {
    padding: 20px;
  }
  .case-dialog .dialog-head {
    top: -20px;
    padding-top: 20px;
  }
  .sticky-actions {
    bottom: -20px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .case-dialog .form-row {
    grid-template-columns: 1fr;
  }
  .case-row {
    grid-template-columns: 90px 1fr 70px;
  }
  .case-row > *:nth-child(n + 4) {
    display: none;
  }
}
.capability-option > b.readiness-baseline-ready {
  color: #9fd5dc;
  background: #173247;
}
.capability-option > b.readiness-enhanced-ready {
  color: var(--green);
  background: #17382a;
}
.suggestions {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}
.suggestions small {
  color: var(--muted);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  background: #173247;
  color: #9fd5dc;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.chip.ghost {
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.chip:hover,
.chip:focus-visible {
  border-color: #9fd5dc;
}
.person-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.person-option[hidden] {
  display: none;
}
.person-option small,
.person-option em {
  display: block;
  color: var(--muted);
  font-style: normal;
}
.capability-option > b.readiness-model-required {
  color: var(--amber);
  background: #43351f;
}
.capability-option em.capability-limited {
  color: var(--amber);
}
.capability-option em.capability-blocked {
  color: #f0a3a3;
}
.analysis-run-summary {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #091925;
}
.analysis-run-summary > strong {
  color: var(--cyan);
  font-size: 10px;
}
.analysis-run-summary p,
.analysis-run-summary li,
.analysis-run-summary summary {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}
.status-pill.queued,
.status-pill.completed-baseline-enhancement-queued {
  color: #9fd5dc;
  border-color: #305d73;
  background: #142f40;
}
.status-pill.completed-review-required {
  color: var(--green);
  border-color: #286147;
  background: #153a2a;
}
.status-pill.setup-required,
.status-pill.completed-with-errors {
  color: var(--amber);
  border-color: #6c542b;
  background: #3a2e1b;
}
.status-pill.completed-partial-review-required,
.status-pill.enhancement-runtime-required {
  color: var(--amber);
  border-color: #6c542b;
  background: #3a2e1b;
}
.plan-capability .capability-limited {
  color: var(--amber);
  font-size: 0.85rem;
}
.lexicon-card {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.lexicon-card:first-of-type {
  border-top: 0;
}
.lexicon-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.lexicon-entries {
  margin: 8px 0 0;
  padding-left: 18px;
  max-height: 240px;
  overflow: auto;
  font-size: 0.85rem;
}
.lexicon-entries small {
  color: var(--muted);
}
