:root {
  color-scheme: light;
  --bg: #f5f7f5;
  --sidebar: #fbfcfb;
  --sidebar-ink: #1d2925;
  --sidebar-muted: #68756f;
  --sidebar-line: #e1e6e3;
  --surface: #ffffff;
  --surface-2: #f8faf8;
  --surface-3: #f0f4f1;
  --surface-4: #e6ece8;
  --ink: #34413c;
  --ink-strong: #16201c;
  --muted: #66736d;
  --line: #e0e6e2;
  --line-strong: #bcc8c1;
  --brand: #367568;
  --brand-strong: #285b51;
  --brand-bg: #e9f2ef;
  --brand-line: #b7d2ca;
  --risk: #b33b33;
  --risk-bg: #fbefee;
  --risk-line: #e6bfbc;
  --success: #317052;
  --success-bg: #edf6f0;
  --success-line: #bad7c5;
  --warning: #96651f;
  --warning-bg: #faf4e7;
  --warning-line: #dfc997;
  --info-bg: #f0f3f1;
  --json-bg: #151c19;
  --json-ink: #e5e7eb;
  --mini-json-bg: #f3f6f4;
  --shadow: 0 12px 32px rgba(26, 39, 33, 0.08);
  --toast-success-bg: #ecfdf3;
  --toast-success-line: #9fe6bc;
  --toast-success-ink: #075f3d;
  --toast-error-bg: #fff1f0;
  --toast-error-line: #f5b8b2;
  --toast-error-ink: #a92118;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101512;
  --sidebar: #0c110f;
  --sidebar-ink: #ecf1ee;
  --sidebar-muted: #91a099;
  --sidebar-line: #222b27;
  --surface: #171d1a;
  --surface-2: #131916;
  --surface-3: #1d2621;
  --surface-4: #28332e;
  --ink: #d6dfda;
  --ink-strong: #f4f7f5;
  --muted: #9aa8a1;
  --line: #2a342f;
  --line-strong: #46554e;
  --brand: #75c5b2;
  --brand-strong: #a0ddce;
  --brand-bg: #17372f;
  --brand-line: #2e6558;
  --risk: #f5a19b;
  --risk-bg: #351f1e;
  --risk-line: #75413d;
  --success: #8bd0a5;
  --success-bg: #183225;
  --success-line: #35664a;
  --warning: #e8c57f;
  --warning-bg: #322918;
  --warning-line: #6d582a;
  --info-bg: #202824;
  --json-bg: #0b100e;
  --json-ink: #dbe4ee;
  --mini-json-bg: #111714;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  --toast-success-bg: #10291d;
  --toast-success-line: #256f45;
  --toast-success-ink: #9af0ba;
  --toast-error-bg: #321817;
  --toast-error-line: #79312b;
  --toast-error-ink: #ffb0aa;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

button:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
}

button:active {
  transform: translateY(1px);
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  padding: 20px 16px;
  border-right: 1px solid var(--sidebar-line);
  background: var(--sidebar);
  color: #f8fafc;
}

.brand-block {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 2px 4px 20px;
  border-bottom: 1px solid var(--sidebar-line);
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.22;
}

.brand-block p,
.eyebrow {
  color: var(--sidebar-muted);
  font-size: 12px;
}

.primary-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 18px;
}

.nav-button {
  justify-content: flex-start;
  width: 100%;
  border-color: transparent;
  background: transparent;
  color: #d1d5db;
  text-align: left;
}

.nav-button:hover {
  border-color: #273549;
  background: #1f2937;
  color: #f8fafc;
}

.nav-button.active {
  border-color: #315266;
  background: #0f3f46;
  color: #ecfeff;
}

.nav-group {
  display: grid;
  gap: 2px;
}

.nav-parent {
  font-weight: 720;
}

.nav-submenu {
  display: grid;
  gap: 2px;
  margin: 0 0 4px 14px;
  padding-left: 10px;
  border-left: 1px solid #334155;
}

.nav-subbutton {
  justify-content: flex-start;
  width: 100%;
  min-height: 32px;
  border-color: transparent;
  background: transparent;
  color: var(--sidebar-muted);
  padding: 5px 10px;
  font-size: 12px;
  text-align: left;
}

.nav-subbutton:hover {
  border-color: #273549;
  background: #1f2937;
  color: #f8fafc;
}

.nav-group.active .nav-subbutton.active {
  border-color: #315266;
  background: #12393f;
  color: #99f6e4;
  font-weight: 720;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--sidebar-line);
}

.auth-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 60px rgb(0 0 0 / 32%);
}

.auth-dialog::backdrop {
  background: rgb(4 10 18 / 68%);
}

.auth-dialog form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.auth-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-dialog-heading h2 {
  margin: 0;
  font-size: 18px;
}

.auth-dialog label {
  display: grid;
  gap: 8px;
}

.auth-dialog input {
  width: 100%;
}

.manual-review-dialog {
  width: min(560px, calc(100vw - 32px));
}

.manual-review-dialog textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 10px;
  resize: vertical;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.utility-button {
  width: 100%;
  border-color: #273549;
  background: transparent;
  color: #d1d5db;
}

.utility-button:hover {
  border-color: #315266;
  background: #1f2937;
  color: #f8fafc;
}

.workspace {
  min-width: 0;
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 18px clamp(20px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.workspace-header h2 {
  margin-top: 2px;
  color: var(--ink-strong);
  font-size: 22px;
  font-weight: 760;
}

.eyebrow {
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-icon-button {
  display: inline-grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  place-items: center;
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.header-icon-button:hover {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
}

.header-icon-button[aria-pressed="true"] {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
}

.control-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

#refresh {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
  font-weight: 700;
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 22px clamp(20px, 3.5vw, 40px) 48px;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.dashboard-hero > div:first-child {
  min-width: 0;
}

.dashboard-hero h2 {
  margin-top: 2px;
  color: var(--ink-strong);
  font-size: 24px;
  font-weight: 780;
}

.dashboard-hero p:last-child {
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.dashboard-controls {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.runtime-pill,
.last-refresh {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 720;
}

.last-refresh {
  color: var(--muted);
  font-weight: 650;
}

.mode-toggle {
  min-height: 32px;
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 760;
}

.mode-toggle.active {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
}

.runtime-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--muted);
}

.runtime-dot.ok {
  background: var(--success);
}

.runtime-dot.warn {
  background: var(--warning);
}

.runtime-dot.bad {
  background: var(--risk);
}

.app-footer {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 14px clamp(20px, 3.5vw, 40px) 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.01em;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.secondary-view {
  padding-top: 16px;
}

.secondary-view[hidden] {
  display: none !important;
}

.secondary-view > .panel:first-child,
.secondary-view > .adapter-grid .panel {
  margin-top: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-kpis {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.stats div {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.stats span {
  display: block;
  color: var(--ink-strong);
  font-size: 30px;
  font-weight: 780;
  line-height: 1;
}

.stats label {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.dashboard-grid .panel {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  margin-top: 0;
}

.dashboard-grid .panel-heading {
  flex: 0 0 auto;
}

.health-checks,
.distribution-list,
.intake-health {
  flex: 1 1 auto;
}

.health-score {
  display: inline-flex;
  min-width: 68px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--muted);
  padding: 5px 10px;
  font-weight: 780;
}

.health-score.ok {
  border-color: var(--success-line);
  background: var(--success-bg);
  color: var(--success);
}

.health-score.warn {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
}

.health-score.bad {
  border-color: var(--risk-line);
  background: var(--risk-bg);
  color: var(--risk);
}

.health-check {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

.health-check strong,
.distribution-row strong,
.intake-health-row strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.health-check p,
.health-check small,
.distribution-row small,
.intake-health-row span {
  color: var(--muted);
  font-size: 12px;
}

.health-check.ok {
  border-color: var(--success-line);
}

.health-check.warn {
  border-color: var(--warning-line);
}

.health-check.bad {
  border-color: var(--risk-line);
}

.distribution-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.9fr) minmax(120px, 1.4fr) 42px;
  gap: 10px;
  align-items: center;
}

.health-checks,
.distribution-list,
.intake-health {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 16px 16px;
}

.distribution-row > div:first-child {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 8px;
}

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

.distribution-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-4);
}

.distribution-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.intake-health-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

.intake-health-row.ok {
  border-color: var(--success-line);
}

.intake-health-row.warn {
  border-color: var(--warning-line);
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel + .panel,
.panel {
  margin-top: 16px;
}

.dashboard-grid > .panel {
  margin-top: 0;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2,
.section-title h3 {
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 760;
}

.panel-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.queue-home-panel {
  overflow: hidden;
}

.queue-home-heading {
  min-height: 72px;
}

.case-search-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.case-search-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.case-search-form label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.case-search-form input,
.case-search-form select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 7px 9px;
}

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

.case-list {
  display: grid;
  align-content: start;
  background: var(--surface-2);
}

.list-pagination-slot {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.list-pagination {
  display: flex;
  min-height: 54px;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  color: var(--muted);
  font-size: 12px;
}

.pagination-range {
  min-width: 120px;
}

.pagination-size,
.pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pagination-size select {
  width: 72px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 5px 8px;
}

.pagination-actions button {
  width: 34px;
  height: 34px;
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
  padding: 0;
  font-size: 16px;
}

.pagination-actions button:disabled {
  cursor: default;
  opacity: 0.42;
}

.pagination-actions strong {
  min-width: 82px;
  color: var(--ink);
  text-align: center;
}

.triage-page-header {
  display: flex;
  width: min(1120px, 100%);
  align-items: flex-start;
  gap: 14px;
  margin-right: auto;
  margin-bottom: 14px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.triage-page-header h2 {
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 780;
}

.triage-page-header p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.triage-back {
  flex: 0 0 auto;
  min-height: 34px;
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
}

.triage-back:hover {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
}

.triage-page-content {
  width: min(1120px, 100%);
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}

.triage-page-header > div,
.case-detail-heading > div,
.section-title > * {
  min-width: 0;
}

.case-item {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.case-item:first-child {
  border-top: 0;
}

.case-card {
  display: grid;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 13px 14px;
  text-align: left;
}

.case-card:hover {
  background: var(--surface-3);
}

.case-card-top,
.case-card-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.case-card-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.case-product {
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 790;
  letter-spacing: 0.02em;
}

.case-summary {
  display: -webkit-box;
  min-width: 0;
  margin: 9px 0 10px;
  overflow: hidden;
  color: var(--ink);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.45;
}

.case-time,
.linked-count {
  color: var(--muted);
  font-size: 11px;
}

.case-time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 23px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--muted);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.2;
  white-space: nowrap;
}

.case-status.under-review {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
}

.case-status.analyzing {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
}

.case-status.analysis-deferred {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
}

.case-status.analysis-failed {
  border-color: var(--risk-line);
  background: var(--risk-bg);
  color: var(--risk);
}

.case-status.confirmed-attack {
  border-color: var(--risk-line);
  background: var(--risk-bg);
  color: var(--risk);
}

.case-status.false-positive,
.case-status.closed {
  border-color: var(--success-line);
  background: var(--success-bg);
  color: var(--success);
}

.loading,
.empty-state {
  padding: 20px 16px;
  color: var(--muted);
}

.badge,
.status-dot,
.field-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 23px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--muted);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.2;
}

.badge.high,
.badge.critical,
.status-dot.risk,
.status-dot.malicious,
.status-dot.high {
  border-color: var(--risk-line);
  background: var(--risk-bg);
  color: var(--risk);
}

.status-dot.blocked {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
}

.status-dot.benign,
.status-dot.normal,
.status-dot.allow,
.status-dot.low,
.field-status.mapped {
  border-color: var(--success-line);
  background: var(--success-bg);
  color: var(--success);
}

.status-dot.review,
.status-dot.suspicious,
.status-dot.medium,
.field-status.needs_review {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
}

.field-status.missing {
  border-color: var(--risk-line);
  background: var(--risk-bg);
  color: var(--risk);
}

.case-detail {
  min-height: 0;
}

.triage-page-content .empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  text-align: center;
}

.detail-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.case-detail-overview {
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.case-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.case-detail-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.case-detail-id {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.case-detail-heading h3 {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 780;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.45;
}

.case-detail-confidence {
  display: grid;
  flex: 0 0 auto;
  min-width: 64px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 7px 8px;
  text-align: center;
}

.case-detail-confidence span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.case-detail-confidence strong {
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.15;
}

.case-detail-summary {
  margin-top: 12px;
  color: var(--ink);
  line-height: 1.6;
}

.case-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.case-context-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 8px 9px;
}

.case-context-grid span,
.case-context-grid strong {
  display: block;
}

.case-context-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.case-context-grid strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 740;
}

.detail-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.detailed-information .section-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.detail-link-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.linked-alert-list {
  display: grid;
  gap: 10px;
}

.linked-alert-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.alert-cluster-item {
  border-left: 3px solid var(--brand-line);
}

.alert-cluster-summary dd {
  overflow-wrap: anywhere;
}

.cluster-representative-detail {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.cluster-representative-detail > summary {
  cursor: pointer;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 740;
}

.cluster-representative-detail .linked-alert-item {
  margin-top: 10px;
  background: var(--surface);
}

.cluster-review-tools {
  margin-top: 12px;
}

.linked-alert-heading {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.linked-alert-heading strong {
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-size: 13px;
}

.linked-alert-heading span {
  color: var(--muted);
  font-size: 11px;
}

.detail-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: inherit;
  padding: 13px 14px;
  text-decoration: none;
}

.detail-link-card:hover {
  border-color: var(--brand-line);
  background: var(--brand-bg);
}

.response-pack-link {
  border-left: 3px solid var(--brand);
  background: var(--surface);
}

.response-pack-link .detail-link-copy,
.response-pack-link .detail-link-meta {
  min-width: 0;
}

.response-pack-link .detail-link-meta small {
  max-width: 220px;
  color: var(--brand-strong);
  font-weight: 720;
  overflow-wrap: anywhere;
}

.detail-link-copy,
.detail-link-meta {
  display: grid;
  gap: 4px;
}

.detail-link-copy {
  min-width: 0;
}

.detail-link-copy strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.detail-link-copy span,
.detail-link-meta small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-link-meta {
  flex: 0 0 auto;
  justify-items: end;
  text-align: right;
}

.detail-link-meta b {
  color: var(--brand-strong);
  font-size: 12px;
}

h4 {
  margin: 16px 0 8px;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 760;
}

.summary {
  margin-top: 12px;
  color: var(--ink);
  line-height: 1.6;
}

.case-disposition {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.case-disposition-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.case-disposition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-disposition-button {
  min-height: 30px;
  border-color: var(--line);
  background: var(--surface-2);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 720;
}

.case-disposition-button:hover {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
}

.case-disposition-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.case-disposition-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}

.analysis-state-message {
  margin: 0;
  border-left: 3px solid var(--brand-line);
  background: var(--surface-2);
  color: var(--muted);
  padding: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.validation-gate,
.approval-queue {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.validation-gate.passed .case-disposition-head strong {
  color: var(--success);
}

.validation-gate.review .case-disposition-head strong {
  color: var(--warning);
}

.validation-gate.blocked .case-disposition-head strong {
  color: var(--risk);
}

.prompt-injection-clues {
  display: grid;
  gap: 9px;
  border-left: 3px solid var(--warning);
  background: var(--warning-bg);
  padding: 10px 12px;
}

.prompt-injection-clues-head,
.prompt-injection-clues-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.prompt-injection-clues-head {
  justify-content: space-between;
}

.prompt-injection-clues-title strong,
.prompt-injection-legacy strong {
  color: var(--warning);
  font-size: 12px;
  font-weight: 780;
}

.prompt-injection-untrusted {
  border: 1px solid var(--warning-line);
  border-radius: 999px;
  color: var(--warning);
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 740;
}

.prompt-injection-clues > p,
.prompt-injection-legacy > span {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.prompt-injection-evidence-link {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 740;
  text-decoration: none;
}

.prompt-injection-evidence-link:hover {
  text-decoration: underline;
}

.prompt-injection-clue-list {
  display: grid;
  border-top: 1px solid var(--warning-line);
}

.prompt-injection-clue {
  border-bottom: 1px solid var(--warning-line);
  padding: 8px 0;
}

.prompt-injection-clue dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.prompt-injection-clue dl > div {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  gap: 8px;
}

.prompt-injection-clue dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.prompt-injection-clue dd {
  min-width: 0;
  margin: 0;
}

.prompt-injection-clue code,
.prompt-injection-ref-list code {
  display: block;
  min-width: 0;
  color: var(--ink-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.prompt-injection-legacy {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--warning-line);
  padding-top: 9px;
}

.prompt-injection-ref-list {
  display: grid;
  gap: 4px;
}

.manual-review-continuation,
.manual-review-resolution {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.manual-review-continuation {
  justify-items: start;
}

.validation-review-continue {
  min-height: 30px;
  border-color: var(--warning);
  background: var(--surface-2);
  color: var(--ink-strong);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 720;
}

.validation-review-continue:hover {
  background: color-mix(in srgb, var(--warning) 12%, var(--surface-2));
}

.validation-review-continue:disabled {
  cursor: wait;
  opacity: 0.65;
}

.manual-review-status,
.manual-review-resolution span,
.manual-review-resolution p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.manual-review-resolution strong {
  color: var(--success);
  font-size: 12px;
}

.approval-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 11px;
}

.approval-item p,
.approval-item small {
  margin: 0;
  overflow-wrap: anywhere;
}

.approval-item small {
  color: var(--muted);
  line-height: 1.45;
}

.approval-item .approval-progress {
  color: var(--brand-strong);
  font-weight: 750;
}

.approval-current-head,
.approval-history summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.approval-current-head span,
.approval-history summary span {
  color: var(--muted);
  font-size: 12px;
}

.approval-history {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.approval-history summary {
  cursor: pointer;
}

.approval-history-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.approval-item.compact {
  gap: 4px;
  padding: 8px 10px;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.approval-decision {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 720;
}

.approval-decision:disabled {
  cursor: wait;
  opacity: 0.65;
}

.approval-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.verdict-box {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--brand-bg);
  padding: 11px 12px;
}

.verdict-box span {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 720;
}

.verdict-box strong {
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}

.kv {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 7px 10px;
  margin: 0;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.plain-list,
.dimension-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.dimension-list {
  gap: 0;
  padding-left: 0;
  list-style: none;
}

.dimension-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.dimension-list .status-dot {
  align-self: start;
}

.dimension-list li:first-child {
  border-top: 0;
}

.dimension-list p {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.48;
}

.review-tools {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  border: 1px solid var(--warning-line);
  border-radius: 8px;
  background: var(--warning-bg);
  padding: 10px;
}

.review-button {
  justify-self: start;
  border-color: var(--warning-line);
  background: var(--surface);
  color: var(--warning);
  font-weight: 700;
}

.review-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.review-status {
  color: var(--warning);
  font-size: 13px;
}

.review-status.confirmed {
  color: var(--success);
  font-weight: 700;
}

.evidence-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  table-layout: fixed;
}

.evidence-table th,
.evidence-table td {
  padding: 8px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}

.evidence-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.evidence-value,
.collapsible-text-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.collapsible-text {
  display: grid;
  gap: 6px;
}

.collapsible-text-content {
  max-height: 9em;
  overflow: hidden;
  line-height: 1.45;
}

.collapsible-text[data-expanded="true"] .collapsible-text-content {
  max-height: none;
}

.collapsible-text-toggle {
  justify-self: start;
  min-height: 28px;
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 720;
}

.empty {
  margin: 0;
  color: var(--muted);
}

.json-block,
.mini-json,
.sample-value-preview {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.json-block {
  max-height: 420px;
  overflow: auto;
  border-radius: 8px;
  background: var(--json-bg);
  color: var(--json-ink);
  padding: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.json-details {
  margin-top: 12px;
}

.json-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.json-details .json-block {
  margin-top: 8px;
}

.mini-json {
  max-height: 220px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mini-json-bg);
  color: var(--ink);
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.settings-panel {
  max-width: 1040px;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.settings-form label {
  display: grid;
  gap: 6px;
}

.settings-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.settings-form input,
.settings-form select,
.settings-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 10px;
}

.settings-form textarea {
  min-height: 280px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.settings-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.harness-control-panel,
.harness-versions-panel,
.harness-controls-panel,
.harness-tools-panel {
  overflow: hidden;
}

.harness-control-heading {
  align-items: center;
}

.harness-active-summary {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
}

.harness-active-summary strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.harness-profile-form {
  padding: 0 16px 16px;
}

.harness-form-section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.harness-form-section:first-child {
  border-top: 0;
}

.harness-form-section h3 {
  margin: 0 0 12px;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

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

.harness-field-grid-profile {
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 2fr);
}

.harness-field-grid label {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 6px;
}

.harness-field-grid label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.harness-field-grid input,
.harness-field-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 10px;
}

.harness-field-grid textarea {
  min-height: 72px;
  resize: vertical;
  font-family: inherit;
}

.harness-governance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 12px;
}

.harness-governance-layout > .panel {
  margin-top: 12px;
}

.harness-fixed-controls,
.harness-tool-list,
.harness-version-list {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

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

.harness-control-item,
.harness-tool-item,
.harness-version-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.harness-control-item,
.harness-tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
}

.harness-control-item strong,
.harness-tool-item code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0;
}

.harness-control-item span,
.harness-tool-item span,
.harness-version-item small {
  color: var(--muted);
  font-size: 11px;
}

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

.harness-version-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.harness-version-main > div,
.harness-version-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.harness-version-main p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
}

.harness-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.harness-status.active {
  border-color: var(--success-line);
  background: var(--success-bg);
  color: var(--success);
}

.harness-status.draft {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
}

.model-picker {
  display: flex;
  gap: 8px;
}

.model-picker input {
  flex: 1 1 auto;
}

.model-picker button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.intake-plan-panel {
  overflow: hidden;
}

.intake-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 16px 0;
}

.intake-channel-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.intake-channel-card.recommended {
  border-color: var(--brand-line);
  background: var(--brand-bg);
}

.channel-title-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.channel-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 800;
}

.channel-icon.udp {
  border-color: var(--brand-line);
  color: var(--brand-strong);
}

.channel-title-row h3 {
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 760;
}

.channel-title-row p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.channel-kv {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0;
}

.channel-kv dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.channel-kv dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.channel-kv code,
.intake-notes code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-strong);
  padding: 2px 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
}

.syslog-config-block {
  display: grid;
  gap: 12px;
  margin: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.syslog-config-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.syslog-config-heading h3 {
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 760;
}

.syslog-config-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.syslog-mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface-3);
  font-size: 12px;
  font-weight: 700;
}

.syslog-mode-summary {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  color: var(--ink-strong);
  background: var(--surface-3);
  font-size: 13px;
  line-height: 1.55;
}

.syslog-config-block[data-mode="external_vector"] .syslog-config-table input:disabled,
.syslog-config-block[data-mode="external_vector"] .syslog-config-table select:disabled {
  opacity: 1;
  color: var(--ink-strong);
  cursor: default;
}

.syslog-managed-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.syslog-config-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.syslog-config-heading button,
.save-syslog-row {
  white-space: nowrap;
}

.syslog-config-table {
  min-width: 0;
  overflow-x: auto;
}

.syslog-config-table table {
  width: 100%;
  min-width: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  table-layout: fixed;
}

.syslog-config-table th,
.syslog-config-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}

.syslog-config-table tr:last-child td {
  border-bottom: 0;
}

.syslog-config-table th {
  background: var(--surface-3);
  color: var(--muted);
  font-weight: 760;
}

.syslog-config-table input,
.syslog-config-table select {
  width: 120px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 7px 8px;
}

.syslog-config-table code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 2px 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
}

.save-syslog-row {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
  font-weight: 760;
}

.syslog-deployment-panel {
  display: grid;
  gap: 2px;
}

.syslog-deployment-form > label {
  grid-template-rows: auto minmax(84px, 1fr);
  min-height: 0;
}

.syslog-deployment-form > label > input,
.syslog-deployment-form > label > textarea {
  box-sizing: border-box;
  height: 100%;
}

.syslog-deployment-form textarea {
  min-height: 84px;
}

.syslog-deployment-identity {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.syslog-deployment-identity span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.syslog-deployment-identity code,
.syslog-deployment-target code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
}

.syslog-deployment-targets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.syslog-deployment-target {
  display: grid;
  gap: 5px;
  min-width: 0;
  background: var(--panel);
  padding: 14px 16px 16px;
}

.syslog-deployment-target strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.syslog-deployment-target code {
  font-size: 11px;
  white-space: nowrap;
}

.syslog-deployment-target span {
  color: var(--muted);
  font-size: 12px;
}

.intake-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.intake-flow span:not([aria-hidden="true"]) {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 4px 9px;
}

.intake-flow span[aria-hidden="true"] {
  color: var(--brand-strong);
}

.intake-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.intake-notes div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.intake-notes strong {
  display: block;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 760;
}

.intake-notes p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.adapter-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
}

.mapping-result-panel {
  grid-column: 1 / -1;
}

.profile-form {
  grid-template-columns: 1fr;
}

.profile-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px 12px;
  text-align: left;
}

.profile-item strong {
  display: block;
  color: var(--ink-strong);
}

.profile-item span {
  color: var(--muted);
  font-size: 12px;
}

.profile-item.active {
  border-color: var(--brand-line);
  background: var(--brand-bg);
}

.field-mapping-table {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 0 16px 16px;
  overflow: visible;
}

.field-mapping-table table {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  table-layout: fixed;
}

.mapping-field-col {
  width: 17%;
}

.mapping-path-col {
  width: 31%;
}

.mapping-sample-col {
  width: 40%;
}

.mapping-status-col {
  width: 12%;
}

.field-mapping-table th,
.field-mapping-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.field-mapping-table tr:last-child td {
  border-bottom: 0;
}

.field-mapping-table th {
  background: var(--surface-3);
  color: var(--muted);
  font-weight: 760;
}

.field-mapping-table td strong,
.field-mapping-table td span {
  display: block;
}

.field-mapping-table td span {
  margin-top: 3px;
  color: var(--muted);
}

.field-mapping-table select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 7px 8px;
}

.sample-value-preview {
  max-height: 132px;
  min-height: 36px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 8px 9px;
  font-size: 11px;
  line-height: 1.45;
}

.mapping-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 740;
}

.mapping-summary.success {
  border-color: var(--success-line);
  background: var(--success-bg);
  color: var(--success);
}

.mapping-summary.warn {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
}

.mapping-summary.error {
  border-color: var(--risk-line);
  background: var(--risk-bg);
  color: var(--risk);
}

.advanced-profile {
  margin: 0 16px 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.advanced-profile summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 760;
}

.dry-run-result {
  min-height: 280px;
  margin: 0 16px 16px;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.form-actions button[type="submit"] {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
  font-weight: 760;
}

.form-status {
  grid-column: 1 / -1;
  color: var(--muted);
}

.form-status.error {
  color: var(--risk);
}

.toast-stack {
  position: fixed;
  z-index: 20;
  top: 20px;
  right: 20px;
  display: grid;
  width: min(420px, calc(100vw - 32px));
  gap: 10px;
}

.toast {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--toast-success-line);
  border-radius: 8px;
  background: var(--toast-success-bg);
  box-shadow: var(--shadow);
  color: var(--toast-success-ink);
  padding: 12px 14px;
}

.toast.error {
  border-color: var(--toast-error-line);
  background: var(--toast-error-bg);
  color: var(--toast-error-ink);
}

.toast i {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--success);
  transform-origin: left center;
  animation: toast-progress 4.2s linear forwards;
}

.toast.error i {
  background: var(--risk);
}

.toast.leaving {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

.memory-kpis {
  grid-template-columns: repeat(5, minmax(132px, 1fr));
}

.memory-workbench {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  gap: 16px;
  align-items: start;
}

.memory-workbench > .panel {
  margin-top: 0;
  overflow: hidden;
}

.memory-sweep-button {
  flex: 0 0 auto;
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
  font-weight: 740;
}

.memory-filter-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.memory-filter-form label,
.memory-action-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.memory-filter-form label > span,
.memory-action-form label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.memory-filter-query,
.memory-filter-actions {
  grid-column: 1 / -1;
}

.memory-filter-form input,
.memory-filter-form select,
.memory-action-form input,
.memory-action-form textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 7px 9px;
}

.memory-filter-actions,
.memory-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.memory-filter-actions button:first-child,
.memory-action-buttons button[data-memory-action="promote"] {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
  font-weight: 760;
}

.memory-action-buttons button[data-memory-action="reject"],
.memory-action-buttons button[data-memory-action="quarantine"] {
  border-color: var(--risk-line);
  background: var(--risk-bg);
  color: var(--risk);
}

.memory-list {
  max-height: 720px;
  overflow-y: auto;
}

.memory-list-count {
  position: sticky;
  z-index: 1;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
}

.memory-row {
  display: grid;
  width: 100%;
  gap: 7px;
  min-height: 98px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  padding: 12px 16px;
  text-align: left;
}

.memory-row:hover,
.memory-row.selected {
  background: var(--surface-3);
}

.memory-row.selected {
  box-shadow: inset 3px 0 0 var(--brand);
}

.memory-row-top,
.memory-row-meta,
.memory-detail-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.memory-row-top strong {
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 760;
}

.memory-row-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.memory-row-meta {
  align-items: baseline;
  color: var(--muted);
  font-size: 11px;
}

.memory-row-meta code,
.memory-detail-heading code,
.memory-audit-main code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
}

.memory-status {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 23px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--muted);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 740;
  white-space: nowrap;
}

.memory-status.active {
  border-color: var(--success-line);
  background: var(--success-bg);
  color: var(--success);
}

.memory-status.pending-approval {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
}

.memory-status.quarantined,
.memory-status.revoked {
  border-color: var(--risk-line);
  background: var(--risk-bg);
  color: var(--risk);
}

.memory-detail {
  min-height: 560px;
  padding: 16px;
}

.memory-detail-heading {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.memory-detail-heading > div {
  min-width: 0;
}

.memory-detail-heading h3 {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 1.45;
}

.memory-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
  padding: 8px 0;
}

.memory-meta-grid div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.memory-meta-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.memory-meta-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
}

.memory-gates,
.memory-association-entry,
.memory-content-section,
.memory-action-form,
.memory-detail-audit {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 2px;
}

.memory-association-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}

.memory-association-entry-copy {
  min-width: 0;
}

.memory-association-entry-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.memory-association-entry-title span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-bg);
  color: var(--brand-strong);
  padding: 0 7px;
  font-size: 11px;
  font-weight: 780;
}

.memory-association-entry p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.memory-association-entry button {
  flex: 0 0 auto;
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
  font-weight: 760;
}

.memory-associations-page-header {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-right: auto;
  margin-bottom: 14px;
  margin-left: auto;
  border-bottom: 1px solid var(--line);
  padding: 2px 0 16px;
}

.memory-associations-back {
  align-self: start;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
}

.memory-associations-back:hover {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
}

.memory-associations-page-heading {
  min-width: 0;
}

.memory-associations-page-heading p {
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 760;
}

.memory-associations-page-heading h2 {
  margin-top: 2px;
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 780;
}

.memory-associations-page-heading span {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.memory-associations-page-summary {
  display: grid;
  min-width: 112px;
  justify-items: end;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.memory-associations-page-summary strong {
  color: var(--ink-strong);
  font-size: 24px;
  line-height: 1.15;
}

.memory-associations-page-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.memory-associations-page-panel {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-top: 0;
  margin-left: auto;
  overflow: hidden;
}

.memory-associations-page-panel > .form-status {
  margin: 0;
  padding: 10px 16px 0;
}

.memory-associations-page-panel > .form-status:empty {
  display: none;
}

.memory-associations-page-list {
  padding: 16px;
}

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

.memory-association-row {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 10px;
}

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

.memory-association-heading > span:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.memory-association-heading strong {
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-size: 12px;
}

.memory-association-heading code,
.memory-matched-features code {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 10px;
}

.memory-match-decision {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 740;
  white-space: nowrap;
}

.memory-match-decision.downgraded-to-benign,
.memory-match-decision.classification-reinforced {
  border-color: var(--success-line);
  background: var(--success-bg);
  color: var(--success);
}

.memory-match-decision.attack-signal-veto {
  border-color: var(--risk-line);
  background: var(--risk-bg);
  color: var(--risk);
}

.memory-match-decision.review-only,
.memory-match-decision.review,
.memory-match-decision.apply,
.memory-match-decision.apply-candidate,
.memory-match-decision.apply-disabled-review,
.memory-match-decision.malicious-requires-review,
.memory-match-decision.related-only {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
}

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

.memory-score-grid span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.memory-score-grid small,
.memory-association-time {
  color: var(--muted);
  font-size: 10px;
}

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

.memory-score-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-4);
}

.memory-score-bar i {
  display: block;
  height: 100%;
  background: var(--brand);
}

.memory-matched-features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.memory-matched-features code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  padding: 2px 5px;
}

.memory-gates ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.memory-gates li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 1px 6px;
  align-items: center;
  min-width: 0;
  border-top: 2px solid var(--line);
  background: var(--surface-2);
  padding: 8px;
}

.memory-gates li > span {
  grid-row: span 2;
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: var(--surface);
  font-size: 11px;
  font-weight: 800;
}

.memory-gates li strong,
.memory-gates li small {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.memory-gates li small {
  color: var(--muted);
}

.memory-gates li.passed {
  border-color: var(--success);
}

.memory-gates li.passed > span {
  background: var(--success);
}

.memory-gates li.failed {
  border-color: var(--warning);
}

.memory-gates li.failed > span {
  background: var(--warning);
}

.memory-content-section pre {
  max-height: 320px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--json-bg);
  color: var(--json-ink);
  padding: 12px;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.memory-action-form h4,
.memory-reason-field,
.memory-action-buttons {
  grid-column: 1 / -1;
}

.memory-action-form textarea {
  min-height: 66px;
  resize: vertical;
}

.memory-audit-panel {
  overflow: hidden;
}

.memory-audit-list {
  display: grid;
}

.memory-audit-row {
  display: grid;
  grid-template-columns: 12px minmax(210px, 0.8fr) minmax(260px, 1.2fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-height: 62px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  padding: 10px 16px;
  color: var(--ink);
  text-align: left;
}

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

button.memory-audit-row:hover {
  background: var(--surface-3);
}

.memory-audit-marker {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: var(--surface);
}

.memory-audit-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

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

.memory-audit-main small,
.memory-audit-detail {
  color: var(--muted);
  font-size: 11px;
}

.memory-audit-detail {
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.memory-audit-list.compact {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.memory-audit-list.compact .memory-audit-row {
  grid-template-columns: 10px minmax(160px, 0.8fr) minmax(180px, 1.2fr);
  padding: 9px 10px;
}

.case-details-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.case-details-header,
.case-details-main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.case-details-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 0 20px;
}

.case-details-header h1 {
  color: var(--ink-strong);
  font-size: 22px;
  font-weight: 780;
}

.case-details-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.case-details-back {
  flex: 0 0 auto;
  min-height: 34px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
}

.case-details-back:hover {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
}

.case-details-main {
  padding-bottom: 40px;
}

.case-details-overview,
.case-details-record,
.case-details-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.case-details-overview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.case-details-overview strong {
  margin-right: auto;
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}

.case-details-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.case-details-record {
  display: grid;
  gap: 12px;
}

.case-details-record-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.case-details-record-heading strong {
  color: var(--ink-strong);
  font-size: 14px;
}

.case-details-record-heading span {
  color: var(--muted);
  font-size: 12px;
}

.case-details-record .json-details {
  margin-top: 0;
}

.case-details-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.case-details-pagination strong {
  color: var(--muted);
  font-size: 12px;
}

.case-details-pagination button {
  min-height: 32px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 6px 12px;
}

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

.automation-kpis > div {
  min-width: 0;
}

.automation-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) max-content;
  align-items: end;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.automation-filter-form label,
.automation-form label {
  display: grid;
  gap: 6px;
}

.automation-filter-form label {
  min-width: 0;
}

.automation-filter-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.automation-filter-form select,
.automation-filter-form input,
.automation-filter-form > button {
  width: 100%;
  height: 38px;
  min-height: 38px;
}

.automation-filter-form select,
.automation-filter-form input {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 10px;
}

.automation-filter-form > button {
  align-self: end;
  white-space: nowrap;
}

.automation-task-list,
.automation-connector-list,
.automation-playbook-list,
.automation-shadow-list {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 16px;
}

.automation-task-panel {
  overflow: hidden;
}

.automation-task-item,
.automation-connector-item,
.automation-playbook-item,
.automation-shadow-item {
  display: grid;
  gap: 11px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 13px;
}

.automation-task-item.failed,
.automation-task-item.rollback_failed {
  border-left: 3px solid var(--risk);
}

.automation-task-head,
.automation-task-actions,
.automation-connector-flags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.automation-task-head {
  align-items: flex-start;
  justify-content: space-between;
}

.automation-task-head > div {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 3px;
}

.automation-task-head > .field-status {
  flex: 0 0 auto;
  max-width: min(42%, 180px);
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.automation-task-head > .automation-task-badges {
  display: flex;
  flex: 0 1 auto;
  justify-content: flex-end;
  gap: 6px;
}

.automation-task-badges .field-status {
  white-space: nowrap;
}

.automation-task-badges .priority-critical {
  border-color: var(--risk-line);
  background: var(--risk-bg);
  color: var(--risk);
}

.automation-task-badges .priority-high {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
}

.automation-task-head strong,
.automation-task-head span {
  overflow-wrap: anywhere;
}

.automation-task-head > div span,
.automation-connector-flags {
  color: var(--muted);
  font-size: 12px;
}

.automation-task-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 14px;
  margin: 0;
}

.automation-task-meta div {
  min-width: 0;
}

.automation-task-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.automation-task-meta dd {
  min-width: 0;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.automation-mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.automation-task-error {
  margin: 0;
  border-left: 3px solid var(--risk);
  background: color-mix(in srgb, var(--risk) 8%, transparent);
  color: var(--ink);
  padding: 7px 9px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.automation-task-operations {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.automation-task-operations summary {
  cursor: pointer;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 740;
}

.automation-operations-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  align-items: end;
  margin-top: 10px;
}

.automation-operations-form label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.automation-operations-form label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.automation-operations-form input,
.automation-operations-form select,
.automation-operations-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 9px;
}

.automation-operations-form .automation-acknowledge {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
}

.automation-operations-form .automation-acknowledge input {
  width: 18px;
  height: 18px;
}

.automation-playbook-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.automation-playbook-grid > .panel {
  margin-top: 0;
  overflow: hidden;
}

.automation-shadow-panel {
  grid-column: 1 / -1;
}

.automation-playbook-item > p,
.automation-shadow-item > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.automation-shadow-decision {
  display: grid;
  grid-template-columns: minmax(140px, 0.3fr) minmax(260px, 1fr) max-content;
  gap: 8px;
  align-items: end;
}

.automation-shadow-decision select,
.automation-shadow-decision textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 9px;
}

.automation-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.automation-config-grid > .panel {
  margin-top: 0;
  overflow: hidden;
}

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

.automation-form label,
.automation-form input,
.automation-form select,
.automation-form textarea {
  min-width: 0;
  max-width: 100%;
}

.automation-field-wide {
  grid-column: 1 / -1;
}

.automation-form textarea,
.automation-protected-field textarea {
  min-height: 130px;
}

.automation-toggle {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  min-height: 40px;
  padding: 5px 0;
}

.automation-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.automation-connector-flags {
  flex-wrap: wrap;
}

.automation-connector-flags span {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 4px 7px;
  overflow-wrap: anywhere;
}

.automation-policy-panel {
  max-width: 1040px;
  overflow: hidden;
}

.automation-protected-field,
.automation-policy-panel .automation-toggle,
.automation-policy-panel .form-actions,
.automation-policy-panel .form-status,
.automation-connector-item .automation-task-error {
  grid-column: 1 / -1;
}

.automation-form .form-status {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.automation-task-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.automation-task-actions button {
  max-width: 100%;
  white-space: normal;
}

.automation-task-panel .panel-heading > div,
.automation-config-grid .panel-heading > div,
.automation-policy-panel .panel-heading > div,
.approval-automation-plan > div:first-child > :first-child {
  min-width: 0;
}

.approval-automation-plan {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.approval-automation-plan > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.approval-automation-plan > div:first-child .field-status {
  flex: 0 0 auto;
  max-width: 50%;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.approval-automation-empty {
  color: var(--muted);
  font-size: 12px;
}

.case-response-page {
  min-width: 320px;
}

.case-response-header,
.case-response-main {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
}

.case-response-header {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: start;
  gap: 22px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line-strong);
}

.case-response-back {
  min-height: 34px;
  border-color: var(--line);
  background: var(--surface);
  font-size: 12px;
  font-weight: 720;
}

.case-response-back:hover {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
}

.case-response-heading {
  min-width: 0;
}

.case-response-heading > span {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.case-response-heading h1 {
  color: var(--ink-strong);
  font-size: 25px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.case-response-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.case-response-actions {
  display: flex;
  gap: 8px;
}

.case-response-actions button {
  min-height: 36px;
  white-space: nowrap;
}

.case-response-actions .primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
  font-weight: 720;
}

.case-response-actions .primary:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
}

.case-response-main {
  padding-bottom: 52px;
}

.case-response-status {
  min-height: 38px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
}

.case-response-status[data-state="success"] {
  color: var(--success);
}

.case-response-status[data-state="warning"] {
  color: var(--warning);
}

.case-response-status[data-state="error"] {
  color: var(--risk);
}

.case-response-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(440px, 1fr);
  column-gap: 24px;
  row-gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-response-overview-main {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.case-response-overview-main strong {
  color: var(--ink-strong);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.case-response-overview-main span {
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.case-response-overview dl,
.case-response-containment-item dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  min-width: 0;
  margin: 0;
}

.case-response-overview dl > div,
.case-response-containment-item dl > div {
  min-width: 0;
}

.case-response-overview dt,
.case-response-containment-item dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.case-response-overview dd,
.case-response-containment-item dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}

.case-response-overview-evidence {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.case-response-overview-evidence .case-response-refs {
  margin-top: 0;
}

.case-response-section {
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--line-strong);
}

.case-response-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.case-response-section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 11px;
  min-width: 0;
}

.case-response-section-heading > div > span {
  color: var(--brand-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
}

.case-response-section-heading h2 {
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.3;
}

.case-response-section-heading > strong {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.case-response-section-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.case-response-section-tools > strong {
  color: var(--muted);
  font-size: 12px;
}

.case-response-copy-report {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 720;
}

.case-response-section-body,
.case-response-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

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

.case-response-summary-panel {
  min-width: 0;
}

.case-response-summary-facts {
  grid-column: 1 / -1;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.case-response-summary-uncertainties,
.case-response-summary-pending {
  padding-top: 18px;
}

.case-response-summary-uncertainties {
  padding-right: 18px;
}

.case-response-summary-pending {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.case-response-summary-panel > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.case-response-fact,
.case-response-containment-item,
.case-response-playbook-step {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.case-response-fact {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
}

.case-response-fact-title {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  min-width: 0;
}

.case-response-fact-title > span {
  color: var(--brand-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
}

.case-response-fact-title > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.case-response-fact-title strong {
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}

.case-response-fact-title small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.02em;
}

.case-response-fact > span {
  color: var(--muted);
  font-size: 11px;
}

.case-response-line {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 9px 0;
  overflow-wrap: anywhere;
}

.case-response-line:first-child {
  border-top: 0;
}

.case-response-line > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.case-response-empty {
  color: var(--muted);
  font-size: 13px;
}

.case-response-state,
.case-response-kind {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 780;
  line-height: 1.2;
  overflow-wrap: normal;
  text-align: center;
  white-space: nowrap;
}

.case-response-state.tone-success,
.case-response-state.current,
.case-response-state.passed,
.case-response-state.verified,
.case-response-state.approved {
  border-color: var(--success-line);
  background: var(--success-bg);
  color: var(--success);
}

.case-response-state.tone-warning,
.case-response-state.review,
.case-response-state.stale,
.case-response-state.pending {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
}

.case-response-state.tone-risk,
.case-response-state.blocked,
.case-response-state.failed,
.case-response-state.rejected {
  border-color: var(--risk-line);
  background: var(--risk-bg);
  color: var(--risk);
}

.case-response-state.tone-neutral {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.case-response-kind {
  border-color: var(--brand-line);
  background: var(--brand-bg);
  color: var(--brand-strong);
}

.case-response-kind.kind-alert {
  border-color: var(--risk-line);
  background: var(--risk-bg);
  color: var(--risk);
}

.case-response-kind.kind-approval {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
}

.case-response-kind.kind-response {
  border-color: var(--success-line);
  background: var(--success-bg);
  color: var(--success);
}

.case-response-kind.kind-governance {
  border-color: var(--line-strong);
  background: var(--info-bg);
  color: var(--ink);
}

.case-response-containment-item {
  display: grid;
  gap: 14px;
  padding: 15px;
}

.case-response-containment-item.capability-blocked {
  border-color: var(--risk-line);
  background: var(--risk-bg);
}

.case-response-section-body > .case-response-list + .case-response-containment-item {
  margin-top: 2px;
}

.case-response-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.case-response-item-heading > div {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.case-response-item-heading > .case-response-state {
  flex: 0 0 auto;
  max-width: min(100%, 220px);
}

.case-response-item-heading strong,
.case-response-item-heading code {
  overflow-wrap: anywhere;
}

.case-response-refs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 4px;
}

.case-response-refs > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.case-response-refs code {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  padding: 2px 5px;
  color: var(--ink);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.response-agent-evidence-more {
  min-width: 0;
}

.response-agent-evidence-more > summary {
  cursor: pointer;
  list-style: none;
  color: var(--brand);
  font-size: 10px;
  font-weight: 760;
  user-select: none;
}

.response-agent-evidence-more > summary::-webkit-details-marker {
  display: none;
}

.response-agent-evidence-more[open] > summary {
  margin-bottom: 5px;
}

.response-agent-evidence-more-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-left: 8px;
  border-left: 1px solid var(--brand-line);
}

.response-agent-source-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin-top: 4px;
}

.response-agent-source-summary > small,
.response-agent-source-more-list > small {
  overflow-wrap: anywhere;
}

.response-agent-source-more-list {
  display: grid;
  gap: 3px;
  padding-left: 8px;
  border-left: 1px solid var(--brand-line);
}

.case-response-playbook-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.case-response-step-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--brand-line);
  border-radius: 6px;
  background: var(--brand-bg);
  color: var(--brand-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
}

.case-response-playbook-step > div {
  min-width: 0;
}

.case-response-playbook-step p {
  margin-top: 7px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.case-response-playbook-title {
  align-items: baseline;
}

.case-response-stage {
  flex: 0 0 auto;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 800;
}

.case-response-playbook-details {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.case-response-playbook-details > div {
  display: grid;
  grid-template-columns: minmax(96px, 0.18fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.case-response-playbook-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.case-response-playbook-details dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}

.case-response-report {
  width: min(100%, 960px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
}

.case-response-report-header,
.case-response-report-section,
.case-response-report-notice {
  padding: 22px 26px;
}

.case-response-report-header {
  display: grid;
  gap: 12px;
  background: var(--surface-2);
}

.case-response-report-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.case-response-report-header h3 {
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.case-response-report-meta {
  display: grid;
  gap: 6px;
  margin: 0;
}

.case-response-report-meta > div {
  display: grid;
  grid-template-columns: minmax(116px, 0.2fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.case-response-report-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.case-response-report-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}

.case-response-report-section {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.case-response-report-section h4 {
  color: var(--ink-strong);
  font-size: 15px;
  line-height: 1.4;
}

.case-response-report-lead {
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.case-response-report-assessment,
.case-response-report-progress {
  display: grid;
  gap: 10px;
}

.case-response-report-assessment > div,
.case-response-report-group {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-left: 12px;
  border-left: 3px solid var(--line-strong);
}

.case-response-report-assessment span,
.case-response-report-group h5 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.case-response-report-assessment strong {
  color: var(--ink-strong);
  font-weight: 620;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.case-response-report-assessment small {
  color: var(--warning);
  font-size: 10px;
  font-weight: 650;
}

.case-response-report-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.case-response-report-list li {
  min-width: 0;
  padding-left: 2px;
  overflow-wrap: anywhere;
}

.case-response-report-list li > div {
  display: grid;
  gap: 2px;
}

.case-response-report-list li strong {
  color: var(--ink-strong);
  font-weight: 620;
}

.case-response-report-list li span {
  color: var(--muted);
  font-size: 11px;
}

.case-response-report-empty {
  color: var(--muted);
  font-size: 12px;
}

.case-response-report-follow-up p {
  color: var(--ink);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.case-response-report-notice {
  border-top: 1px solid var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.6;
}

.case-response-clipboard-buffer {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.case-response-timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.case-response-timeline-head > strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}

.case-response-timeline-badges {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  max-width: min(100%, 300px);
}

.case-response-timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.case-response-timeline-marker {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: var(--surface);
}

.case-response-timeline-entry > div {
  min-width: 0;
}

.case-response-time {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.case-response-time > span:not(.case-response-time-basis) {
  display: grid;
  gap: 1px;
}

.case-response-time small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.case-response-time > span > strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.case-response-time-basis {
  align-self: end;
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 760;
}

.case-response-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 36px;
  margin-top: 16px;
}

.case-response-pagination strong {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.case-response-main[aria-busy="true"] .case-response-pagination {
  pointer-events: none;
  opacity: 0.68;
}

.case-response-agent-open,
.response-agent-start-panel .primary {
  min-height: 34px;
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 740;
}

.case-response-agent-open:hover,
.response-agent-start-panel .primary:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
}

.response-agent-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgb(18 24 31 / 44%);
}

.response-agent-drawer {
  position: fixed;
  z-index: 91;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(480px, 100vw);
  height: 100dvh;
  border-left: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: -18px 0 44px rgb(18 24 31 / 18%);
  color: var(--ink);
  overflow: hidden;
  transition: width 180ms ease;
}

.response-agent-drawer.is-expanded {
  width: min(960px, 100vw);
}

.response-agent-drawer[hidden],
.response-agent-backdrop[hidden],
.response-agent-start-panel[hidden],
.response-agent-session-panel[hidden],
.response-agent-input-form[hidden],
.response-agent-report-band[hidden],
.response-agent-controls[hidden] {
  display: none;
}

.response-agent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 19px 20px 16px;
}

.response-agent-header > div {
  min-width: 0;
}

.response-agent-header span {
  display: block;
  margin-bottom: 3px;
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.response-agent-header h2 {
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.response-agent-header-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.response-agent-icon-button {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--muted);
  line-height: 1;
}

.response-agent-close {
  font-size: 22px;
}

.response-agent-expand-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.response-agent-expand-icon[hidden] {
  display: none;
}

.response-agent-expand[data-action="expand"] .response-agent-expand-icon-expand,
.response-agent-expand[data-action="collapse"] .response-agent-expand-icon-collapse {
  display: block;
}

.response-agent-expand[data-action="expand"] .response-agent-expand-icon-collapse,
.response-agent-expand[data-action="collapse"] .response-agent-expand-icon-expand {
  display: none;
}

.response-agent-body {
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 20px 28px;
}

.response-agent-notice {
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.response-agent-notice[data-state="warning"] {
  color: var(--warning);
}

.response-agent-notice[data-state="error"] {
  color: var(--risk);
}

.response-agent-notice[data-state="success"] {
  color: var(--success);
}

.response-agent-start-panel,
.response-agent-session-panel {
  padding-top: 18px;
}

.response-agent-start-panel {
  display: grid;
  gap: 10px;
}

.response-agent-start-panel label,
.response-agent-input-form label {
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 740;
}

.response-agent-start-panel textarea,
.response-agent-input-form textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  border-color: var(--line-strong);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-strong);
  line-height: 1.5;
}

.response-agent-session-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding-bottom: 14px;
}

.response-agent-session-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.response-agent-session-head > div > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 740;
  text-transform: uppercase;
}

.response-agent-session-head strong {
  color: var(--ink-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.response-agent-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--line);
}

.response-agent-metrics > div {
  min-width: 0;
  padding: 11px 8px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.response-agent-metrics > div:first-child {
  border-left: 0;
}

.response-agent-metrics dt {
  color: var(--muted);
  font-size: 10px;
}

.response-agent-metrics dd {
  margin: 4px 0 0;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.response-agent-band {
  min-width: 0;
  padding: 20px 0 4px;
}

.response-agent-band + .response-agent-band {
  border-top: 1px solid var(--line);
}

.response-agent-band h3 {
  margin-bottom: 11px;
  color: var(--ink-strong);
  font-size: 13px;
}

.response-agent-trace-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  gap: 9px;
  align-items: center;
  width: 100%;
  margin: 0 0 11px;
  border: 0;
  border-radius: 4px;
  padding: 5px 4px;
  background: transparent;
  color: var(--ink-strong);
  text-align: left;
}

.response-agent-trace-toggle:hover {
  background: var(--surface-subtle);
}

.response-agent-trace-title {
  margin: 0;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 700;
}

.response-agent-trace-count {
  color: var(--muted);
  font-size: 11px;
}

.response-agent-trace-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 140ms ease;
}

.response-agent-trace-toggle[aria-expanded="false"] .response-agent-trace-chevron {
  transform: translateY(2px) rotate(-45deg);
}

.response-agent-trace-toggle[aria-expanded="false"] {
  margin-bottom: 0;
}

.response-agent-plan-list,
.response-agent-trace-list {
  display: grid;
  min-width: 0;
}

.response-agent-plan-row,
.response-agent-trace-row {
  display: grid;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.response-agent-plan-row:first-child,
.response-agent-trace-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.response-agent-plan-row {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
}

.response-agent-plan-index {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.response-agent-plan-row strong,
.response-agent-trace-row strong {
  color: var(--ink-strong);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.response-agent-trace-row {
  gap: 6px;
}

.response-agent-trace-row > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.response-agent-trace-row.response-agent-trace-row-first,
.response-agent-trace-row.response-agent-trace-row-only,
.response-agent-trace-row.response-agent-trace-row-latest {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px;
  background: var(--surface);
}

.response-agent-trace-row.response-agent-trace-row-latest {
  margin-top: 10px;
  border-left: 3px solid var(--brand);
  background: var(--brand-bg);
}

.response-agent-trace-row.response-agent-trace-row-only {
  border-left: 3px solid var(--brand);
}

.response-agent-trace-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}

.response-agent-trace-role {
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 780;
}

.response-agent-trace-time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.response-agent-trace-middle {
  margin: 9px 0 0;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: var(--surface-subtle);
}

.response-agent-trace-middle > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.response-agent-trace-middle > summary::-webkit-details-marker {
  display: none;
}

.response-agent-trace-middle-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 140ms ease;
}

.response-agent-trace-middle[open] .response-agent-trace-middle-chevron {
  transform: translateY(-2px) rotate(45deg);
}

.response-agent-trace-middle-list {
  padding: 0 11px 5px;
}

.response-agent-trace-middle-list .response-agent-trace-row {
  padding-inline: 0;
}

.response-agent-input-form {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  border-top: 1px solid var(--warning-line);
  padding-top: 16px;
}

.response-agent-report-band {
  padding-bottom: 12px;
}

.response-agent-report {
  display: grid;
  gap: 0;
  min-width: 0;
}

.response-agent-report-section {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.response-agent-report-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.response-agent-report-section-heading {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-bottom: 10px;
}

.response-agent-report-section-number,
.response-agent-report-item-number {
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 5px;
  background: var(--brand-bg);
  color: var(--brand-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

.response-agent-report-section-number {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.response-agent-report-section h4 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.4;
}

.response-agent-report-section-content {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-left: 39px;
}

.response-agent-report-document-title {
  margin: 0;
  color: var(--ink-strong);
  font-size: 13px;
  line-height: 1.5;
}

.response-agent-report-section p {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.response-agent-report-conclusion {
  border-left: 3px solid var(--brand);
  padding-left: 12px;
}

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

.response-agent-risk-grid small {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.response-agent-risk-grid strong {
  color: var(--muted);
  font-size: 9px;
}

.response-agent-report-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.response-agent-report-list > li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.response-agent-report-item-number {
  align-self: start;
  width: 40px;
  min-height: 22px;
  padding: 2px 4px;
  font-size: 9px;
}

.response-agent-report-item-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.response-agent-report-item-content > small {
  display: block;
  color: var(--muted);
}

.response-agent-investigation-detail {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin-top: 8px;
  border-left: 2px solid var(--line-strong);
  padding-left: 9px;
}

.response-agent-investigation-detail > strong {
  color: var(--ink-strong);
  font-size: 10px;
}

.response-agent-report-sublist {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  list-style-type: lower-alpha;
}

.response-agent-report-sublist > li {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.response-agent-technical-appendix {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-subtle);
}

.response-agent-technical-appendix > summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 700;
}

.response-agent-technical-appendix-content {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.response-agent-technical-block {
  display: grid;
  gap: 6px;
}

.response-agent-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 12px 20px;
}

.response-agent-controls > button {
  flex: 0 1 150px;
  min-width: 112px;
}

.response-agent-controls .danger {
  border-color: var(--risk-line);
  color: var(--risk);
}

body.response-agent-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .response-agent-drawer {
    transition: none;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .brand-block {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .primary-nav,
  .sidebar-footer {
    display: flex;
    gap: 8px;
    padding-top: 0;
    border-top: 0;
    flex-wrap: wrap;
  }

  .nav-button,
  .utility-button {
    width: auto;
  }

  .nav-group {
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid var(--sidebar-line);
    border-radius: 6px;
    padding: 3px;
  }

  .nav-submenu {
    display: flex;
    gap: 3px;
    margin: 0;
    padding: 0 0 0 4px;
    border-left-color: var(--sidebar-line);
  }

  .nav-subbutton {
    width: auto;
    white-space: nowrap;
  }

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

  .case-search-actions {
    grid-column: 1 / -1;
  }

  .dashboard-grid,
  .memory-workbench,
  .adapter-grid,
  .intake-channel-grid,
  .intake-notes {
    grid-template-columns: 1fr;
  }

  .automation-config-grid,
  .automation-playbook-grid,
  .harness-governance-layout {
    grid-template-columns: 1fr;
  }

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

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

  .memory-list {
    max-height: 520px;
  }
}

@media (max-width: 900px) {
  .automation-kpis,
  .automation-task-meta,
  .automation-operations-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sidebar,
  .workspace-header,
  main,
  .app-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .workspace-header {
    align-items: stretch;
    flex-direction: column;
  }

  .harness-control-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .harness-active-summary {
    justify-items: start;
  }

  .harness-field-grid,
  .harness-field-grid-profile,
  .harness-tool-list,
  .harness-version-item {
    grid-template-columns: 1fr;
  }

  .harness-version-actions button,
  .harness-profile-form .form-actions button {
    width: 100%;
  }

  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions,
  .dashboard-controls,
  .sidebar-footer,
  .form-actions,
  .memory-browser-panel .panel-heading,
  .memory-audit-panel .panel-heading,
  .memory-associations-page-panel .panel-heading,
  .syslog-config-heading,
  .syslog-deployment-identity {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(2, 36px);
    align-items: center;
  }

  .nav-button,
  .utility-button,
  .header-actions button,
  .form-actions button,
  .memory-browser-panel .panel-heading button,
  .memory-audit-panel .panel-heading button,
  .memory-associations-page-panel .panel-heading button,
  .syslog-config-heading button,
  .syslog-deployment-form .form-actions button {
    width: 100%;
  }

  .header-actions .header-icon-button {
    width: 36px;
  }

  .nav-group {
    display: grid;
    width: 100%;
    padding: 0;
    border: 0;
  }

  .nav-submenu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 4px 14px;
    padding-left: 10px;
  }

  .nav-subbutton {
    width: 100%;
  }

  .primary-nav {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-top: 10px;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .primary-nav > .nav-button,
  .primary-nav > .nav-group {
    flex: 0 0 auto;
  }

  .nav-group {
    display: flex;
    width: auto;
    align-items: center;
    gap: 3px;
  }

  .nav-group:not(.active) .nav-submenu {
    display: none;
  }

  .nav-group.active .nav-submenu {
    display: flex;
    grid-template-columns: none;
    gap: 3px;
    margin: 0;
    padding: 0;
    border-left: 0;
  }

  .primary-nav .nav-button,
  .primary-nav .nav-subbutton {
    width: auto;
    min-height: 40px;
    flex: 0 0 auto;
    padding-inline: 11px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .syslog-deployment-targets {
    grid-template-columns: 1fr;
  }

  .stats,
  .dashboard-kpis,
  .memory-kpis,
  .automation-kpis,
  .automation-task-meta,
  .automation-operations-form,
  .automation-shadow-decision,
  .settings-form {
    grid-template-columns: 1fr;
  }

  .automation-task-head,
  .automation-task-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .automation-task-head > .automation-task-badges {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .automation-filter-form select,
  .automation-filter-form button,
  .automation-task-actions button {
    width: 100%;
  }

  .automation-filter-form label {
    width: 100%;
    min-width: 0;
  }

  .automation-filter-form {
    grid-template-columns: 1fr;
  }

  .automation-task-panel .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .automation-task-panel .panel-heading button {
    width: 100%;
  }

  .automation-task-head > .field-status {
    align-self: flex-start;
    max-width: 100%;
  }

  .approval-automation-plan > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .approval-automation-plan > div:first-child .field-status {
    max-width: 100%;
  }

  .field-mapping-table {
    overflow-x: auto;
  }

  .field-mapping-table table {
    min-width: 680px;
  }

  .runtime-pill,
  .last-refresh,
  .mode-toggle {
    justify-content: center;
    width: 100%;
  }

  .distribution-row,
  .intake-health-row {
    grid-template-columns: 1fr;
  }

  .memory-filter-form,
  .memory-action-form,
  .memory-meta-grid,
  .memory-gates ul,
  .memory-audit-row,
  .memory-audit-list.compact .memory-audit-row {
    grid-template-columns: 1fr;
  }

  .memory-association-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .memory-association-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .memory-association-entry button {
    width: 100%;
  }

  .memory-associations-page-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .memory-associations-back {
    width: 100%;
  }

  .memory-associations-page-summary {
    min-width: 0;
    justify-items: start;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 12px;
    padding-left: 0;
  }

  .memory-associations-page-list {
    padding: 10px;
  }

  .memory-match-decision {
    width: fit-content;
    white-space: normal;
  }

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

  .memory-filter-query,
  .memory-filter-actions,
  .memory-action-form h4,
  .memory-reason-field,
  .memory-action-buttons {
    grid-column: 1;
  }

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

  .case-search-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .case-search-actions button {
    width: 100%;
  }

  .list-pagination {
    align-items: flex-end;
  }

  .pagination-range {
    flex-basis: 100%;
  }

  .pagination-actions {
    margin-left: auto;
  }

  .memory-meta-grid div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .memory-row-meta,
  .memory-detail-heading,
  .memory-filter-actions,
  .memory-action-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .memory-filter-actions button,
  .memory-action-buttons button,
  .memory-sweep-button {
    width: 100%;
  }

  .case-detail-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

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

  .case-context-grid > div:last-child {
    grid-column: 1 / -1;
  }

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

  .triage-back,
  .case-details-back {
    width: 100%;
  }

  body[data-active-view="triage"] .workspace-header {
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body[data-active-view="triage"] .workspace-header > div:first-child {
    display: none;
  }

  body[data-active-view="triage"] .header-actions {
    width: 100%;
  }

  .triage-page-header {
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px;
  }

  .triage-page-header h2 {
    font-size: 18px;
  }

  .triage-page-header p {
    font-size: 12px;
  }

  .triage-back {
    width: fit-content;
    min-height: 40px;
    align-self: flex-start;
  }

  .case-detail-overview,
  .detail-card {
    padding: 12px;
  }

  .case-detail-heading h3 {
    display: block;
    overflow: visible;
    font-size: 15px;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
  }

  .case-detail-confidence {
    display: inline-flex;
    width: fit-content;
    min-width: 0;
    align-items: baseline;
    align-self: flex-start;
    gap: 7px;
    text-align: left;
  }

  .case-disposition-actions,
  .approval-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .case-disposition-actions > :last-child:nth-child(odd),
  .approval-actions > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .case-disposition-button,
  .approval-decision,
  .review-button,
  .validation-review-continue {
    width: 100%;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .approval-current-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .approval-history summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 4px;
  }

  .prompt-injection-clues-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .prompt-injection-clue dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .validation-gate .plain-list li {
    overflow-wrap: anywhere;
  }

  .linked-alerts-card > .section-title,
  .linked-alert-item > .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .linked-alert-item > .section-title .case-status {
    align-self: flex-start;
  }

  .dimension-list li {
    grid-template-columns: minmax(70px, auto) minmax(0, 1fr);
  }

  .detail-link-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-link-meta {
    justify-items: start;
    text-align: left;
  }

  .case-details-header,
  .case-details-main {
    width: min(100% - 28px, 1080px);
  }

  .kv {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .toast-stack {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
  }
}

@media (max-width: 900px) {
  .case-response-header {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .case-response-actions {
    grid-column: 2;
  }

  .case-response-overview,
  .case-response-summary-grid {
    grid-template-columns: 1fr;
  }

  .case-response-summary-panel {
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-response-summary-facts {
    padding-top: 0;
    padding-bottom: 16px;
    border-top: 0;
  }

  .case-response-summary-uncertainties {
    border-top: 0;
  }
}

@media (max-width: 640px) {
  .case-response-header,
  .case-response-main {
    width: min(100% - 28px, 1240px);
  }

  .case-response-header {
    grid-template-columns: 1fr;
    gap: 13px;
    padding-top: 18px;
  }

  .case-response-back,
  .case-response-actions,
  .case-response-actions button {
    width: 100%;
  }

  .case-response-actions {
    display: grid;
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-response-heading h1 {
    font-size: 22px;
  }

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

  .case-response-overview dl,
  .case-response-containment-item dl {
    grid-template-columns: 1fr;
  }

  .case-response-section-heading,
  .case-response-item-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .case-response-section-tools {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .case-response-section-tools .case-response-copy-report {
    width: 100%;
  }

  .case-response-agent-open {
    width: 100%;
  }

  .case-response-section-heading > strong {
    text-align: left;
  }

  .case-response-item-heading .case-response-state {
    align-self: flex-start;
  }

  .case-response-timeline-head {
    align-items: stretch;
    flex-direction: column;
  }

  .case-response-timeline-badges {
    justify-content: flex-start;
    max-width: 100%;
  }

  .case-response-playbook-step {
    grid-template-columns: 1fr;
  }

  .case-response-playbook-details > div,
  .case-response-report-meta > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .case-response-report-header,
  .case-response-report-section,
  .case-response-report-notice {
    padding: 18px 16px;
  }

  .case-response-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .case-response-pagination button {
    width: 100%;
  }

}

@media (max-width: 720px) {
  .response-agent-drawer,
  .response-agent-drawer.is-expanded {
    width: 100vw;
    border-left: 0;
  }

  .response-agent-expand {
    display: none;
  }

  .response-agent-header,
  .response-agent-controls {
    padding-inline: 16px;
  }

  .response-agent-controls > button {
    flex: 1 1 120px;
    max-width: 180px;
  }

  .response-agent-body {
    padding-inline: 16px;
  }

  .response-agent-report-section-content {
    padding-left: 0;
  }

  .response-agent-risk-grid {
    grid-template-columns: 1fr;
  }
}

/* Calm Ops visual system -------------------------------------------------
   A compact, dependency-free presentation layer for the operator console.
   It intentionally relies on native controls, system fonts, flat surfaces,
   and semantic color tokens to keep rendering and interaction inexpensive. */

body {
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--ink-strong);
  color: var(--surface);
  text-decoration: none;
  transform: translateY(-150%);
}

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

button,
input,
select,
textarea {
  border-radius: 8px;
  touch-action: manipulation;
}

button {
  min-height: 40px;
  border-color: var(--line);
  padding: 8px 13px;
  font-weight: 650;
}

button:hover {
  border-color: var(--line-strong);
}

button:active {
  transform: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

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

.sidebar {
  overflow-y: auto;
  padding: 18px 14px;
  border-color: var(--sidebar-line);
  background: var(--sidebar);
  color: var(--sidebar-ink);
}

.brand-block {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 2px 6px 18px;
  border-color: var(--sidebar-line);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--sidebar-line);
  border-radius: 9px;
  box-shadow: none;
}

h1 {
  color: var(--sidebar-ink);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.brand-block p {
  margin-top: 2px;
  color: var(--sidebar-muted);
  font-size: 11px;
}

.primary-nav {
  gap: 3px;
  padding-top: 14px;
}

.nav-button,
.nav-subbutton,
.utility-button {
  border-color: transparent;
  background: transparent;
  color: var(--sidebar-muted);
}

.nav-button {
  min-height: 42px;
  padding: 9px 11px;
  font-weight: 650;
}

.nav-button:hover,
.nav-subbutton:hover,
.utility-button:hover {
  border-color: transparent;
  background: var(--surface-3);
  color: var(--sidebar-ink);
}

.nav-button.active,
.nav-button[aria-current="page"] {
  border-color: transparent;
  background: var(--brand-bg);
  color: var(--brand-strong);
  font-weight: 720;
}

.nav-group {
  gap: 0;
}

.nav-parent {
  font-weight: 680;
}

.nav-submenu {
  gap: 0;
  margin: 1px 0 5px 16px;
  padding-left: 9px;
  border-color: var(--sidebar-line);
}

.nav-subbutton {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
}

.nav-group.active .nav-subbutton.active,
.nav-subbutton[aria-current="page"] {
  border-color: transparent;
  background: transparent;
  color: var(--brand-strong);
  font-weight: 720;
}

.sidebar-footer {
  border-color: var(--sidebar-line);
}

.utility-button {
  color: var(--sidebar-muted);
}

.workspace {
  background: var(--bg);
}

.workspace-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 72px;
  padding: 14px clamp(20px, 3vw, 36px);
  border-color: var(--line);
  background: var(--surface);
}

.workspace-header h2 {
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.08em;
}

.header-actions {
  gap: 8px;
}

.header-icon-button,
.icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 9px;
}

#refresh,
.form-actions button[type="submit"],
button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

#refresh:hover,
.form-actions button[type="submit"]:hover,
button.primary:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
}

main {
  width: min(1520px, 100%);
  padding: 24px clamp(20px, 3vw, 36px) 52px;
}

#main-content:focus {
  outline: none;
}

.dashboard-hero {
  gap: 24px;
  margin-bottom: 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 5px 0 22px;
}

.dashboard-hero h2 {
  font-size: clamp(25px, 2.2vw, 32px);
  font-weight: 740;
  letter-spacing: -0.035em;
}

.dashboard-hero p:last-child {
  max-width: 62ch;
  margin-top: 5px;
}

.dashboard-controls {
  gap: 7px;
}

.runtime-pill,
.last-refresh,
.mode-toggle,
.health-score,
.case-status,
.badge,
.status-dot,
.field-status {
  border-color: transparent;
  background: var(--surface-3);
  box-shadow: none;
}

.mode-toggle {
  min-height: 34px;
}

.stats {
  gap: 10px;
  margin-bottom: 18px;
}

.stats div {
  min-height: 86px;
  border-color: var(--line);
  border-radius: 10px;
  padding: 15px 16px;
}

.stats span {
  font-size: 28px;
  font-weight: 710;
  letter-spacing: -0.045em;
}

.stats label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.035em;
}

.dashboard-grid {
  gap: 12px;
}

.dashboard-grid .panel {
  min-height: 0;
}

.panel,
.triage-page-header,
.case-detail-overview,
.detail-card,
.auth-dialog {
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: none;
}

.panel + .panel,
.panel {
  margin-top: 12px;
}

.panel-grid > .panel {
  align-self: stretch;
  min-width: 0;
  margin-top: 0;
}

.panel-grid.panel-grid-offset > .panel {
  margin-top: 12px;
}

.dashboard-grid > .panel {
  margin-top: 0;
}

.panel-heading {
  min-height: 64px;
  padding: 14px 16px;
  border-color: var(--line);
}

.panel-heading h2,
.section-title h3 {
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.dashboard-status-panel {
  display: grid;
  grid-template-rows: 88px minmax(0, 1fr);
  overflow: hidden;
}

.dashboard-status-panel.health-panel {
  box-shadow: inset 0 2px 0 var(--success-line);
}

.dashboard-status-panel.intake-panel {
  box-shadow: inset 0 2px 0 var(--brand-line);
}

.dashboard-status-panel .panel-heading {
  height: 88px;
  min-height: 88px;
  align-items: center;
}

.dashboard-status-panel .panel-heading > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.dashboard-status-panel .panel-heading p {
  max-width: 50ch;
  line-height: 1.45;
}

.dashboard-status-panel .health-score {
  min-width: 0;
  min-height: 28px;
  flex: 0 0 auto;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.dashboard-status-panel .health-checks,
.dashboard-status-panel .intake-health {
  display: grid;
  min-height: 0;
  height: 100%;
  align-content: stretch;
  gap: 0;
  padding: 6px 16px 14px;
}

.dashboard-status-panel .health-checks {
  grid-auto-rows: minmax(64px, 1fr);
}

.dashboard-status-panel .intake-health {
  grid-auto-rows: minmax(48px, 1fr);
}

.dashboard-status-panel .health-check,
.dashboard-status-panel .intake-health-row {
  height: 100%;
  align-items: center;
}

.dashboard-status-panel .health-check > div,
.dashboard-status-panel .intake-health-row > span {
  min-width: 0;
}

.dashboard-status-panel .health-check small {
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-status-panel .intake-health-row strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-status-panel .intake-health-row strong::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--success);
  content: "";
}

.dashboard-status-panel .intake-health-row.warn strong::before {
  background: var(--warning);
}

.dashboard-status-panel .intake-health-row code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 3px 7px;
  font-size: 11px;
  white-space: nowrap;
}

.health-checks,
.distribution-list,
.intake-health {
  gap: 0;
  padding: 5px 16px 12px;
}

.health-check,
.intake-health-row {
  min-height: 56px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
}

.health-check:first-child,
.intake-health-row:first-child {
  border-top: 0;
}

.health-check.ok,
.health-check.warn,
.health-check.bad,
.intake-health-row.ok,
.intake-health-row.warn {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

.health-check strong,
.distribution-row strong,
.intake-health-row strong {
  font-weight: 680;
}

.distribution-row {
  min-height: 48px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.distribution-row:first-child {
  border-top: 0;
}

.distribution-bar {
  height: 6px;
}

.case-search-form,
.memory-filter-form {
  border-color: var(--line);
  background: var(--surface-2);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.case-search-form input,
.case-search-form select,
.memory-filter-form input,
.memory-filter-form select,
.memory-action-form input,
.memory-action-form textarea {
  min-height: 40px;
  border-radius: 8px;
}

.case-list {
  background: var(--surface);
}

.case-card {
  padding: 15px 16px;
}

.case-card:hover {
  background: var(--surface-2);
}

.case-summary {
  line-height: 1.55;
}

.list-pagination-slot,
.list-pagination {
  background: var(--surface);
}

.toast {
  border-radius: 10px;
}

.app-footer {
  width: min(1520px, 100%);
  border-top: 0;
  background: transparent;
}

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

  .sidebar {
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--sidebar-line);
  }

  .brand-block {
    border-bottom: 0;
  }

  .primary-nav,
  .sidebar-footer {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .nav-group {
    flex: 0 0 auto;
    border-color: var(--sidebar-line);
    border-radius: 8px;
  }

  .dashboard-status-panel {
    grid-template-rows: auto auto;
  }

  .dashboard-status-panel .panel-heading {
    height: auto;
    min-height: 76px;
  }

  .dashboard-status-panel .health-checks,
  .dashboard-status-panel .intake-health {
    height: auto;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .sidebar {
    gap: 10px;
    padding-top: 13px;
    padding-bottom: 9px;
  }

  .brand-block {
    padding: 0 2px 9px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .primary-nav {
    flex-wrap: nowrap;
    padding: 0 0 4px;
  }

  .primary-nav .nav-button,
  .primary-nav .nav-subbutton {
    min-height: 38px;
    padding: 7px 10px;
  }

  .nav-group {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    border: 0;
  }

  .nav-group.active .nav-submenu {
    display: flex;
  }

  .workspace-header {
    position: static;
    min-height: 0;
    gap: 12px;
    padding-top: 13px;
    padding-bottom: 13px;
  }

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

  .header-actions {
    grid-template-columns: minmax(0, 1fr) repeat(2, 40px);
  }

  .header-actions .header-icon-button {
    width: 40px;
  }

  main {
    padding-top: 18px;
    padding-bottom: 40px;
  }

  .dashboard-hero {
    gap: 16px;
    padding: 2px 0 18px;
  }

  .dashboard-hero h2 {
    font-size: 25px;
  }

  .dashboard-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .runtime-pill,
  .mode-toggle {
    width: 100%;
  }

  .last-refresh {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

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

  .stats div {
    min-height: 78px;
    padding: 13px 14px;
  }

  .stats span {
    font-size: 25px;
  }

  .dashboard-grid {
    gap: 10px;
  }

  .dashboard-grid .panel {
    min-height: 0;
  }

  .dashboard-status-panel .panel-heading {
    min-height: 72px;
  }

  .panel-heading {
    min-height: 60px;
    padding: 13px 14px;
  }

  .dashboard-status-panel .health-checks,
  .dashboard-status-panel .intake-health {
    padding-right: 14px;
    padding-left: 14px;
  }

  .health-checks,
  .distribution-list,
  .intake-health {
    padding-right: 14px;
    padding-left: 14px;
  }

  .health-check {
    grid-template-columns: 12px minmax(0, 1fr) auto;
  }

  .intake-health-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .distribution-row {
    grid-template-columns: minmax(86px, 0.9fr) minmax(90px, 1.3fr) 38px;
  }

  .case-search-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 390px) {
  .stats,
  .dashboard-kpis {
    gap: 8px;
  }

  .stats div {
    padding: 12px;
  }

  .intake-health-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .intake-health-row code {
    grid-column: 1 / -1;
  }
}

.user-management-panel {
  overflow: hidden;
}

.user-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.user-create-form > label {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.user-create-form > label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.user-create-form input[type="text"],
.user-create-form select,
.user-role-control select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 10px;
}

.user-create-form .form-actions {
  grid-column: auto;
  margin: 0;
}

.user-create-form .form-status {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
}

.user-list {
  width: 100%;
}

.user-list-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 0.9fr) minmax(150px, 0.7fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

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

.user-source,
.user-token-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
}

.user-identity-cell,
.user-token-cell {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.user-identity-cell strong,
.user-token-cell code {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.user-token-cell code {
  overflow-wrap: normal;
  font-size: 11px;
  white-space: nowrap;
}

.user-identity-cell small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.user-token-state.active {
  border-color: var(--success-line);
  background: var(--success-bg);
  color: var(--success);
}

.user-token-state.revoked {
  border-color: var(--risk-line);
  background: var(--risk-bg);
  color: var(--risk);
}

.user-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-role-control {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.user-role-control select,
.user-role-control button,
.user-row-actions button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
}

.user-row-actions button.danger {
  border-color: var(--risk-line);
  color: var(--risk);
}

.user-list-status {
  min-height: 38px;
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}

.user-empty-state {
  min-width: 0;
  padding: 28px 16px;
}

.user-token-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.auth-user-token-dialog .user-token-copy-row input {
  width: 100%;
  min-width: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
}

@media (max-width: 960px) {
  .user-list-row {
    grid-template-columns: minmax(160px, 1fr) minmax(220px, 1fr);
  }

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

@media (max-width: 720px) {
  .user-create-form {
    grid-template-columns: 1fr;
  }

  .user-create-form .form-actions button {
    width: 100%;
  }

  .user-list-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .user-row-actions {
    justify-content: stretch;
  }

  .user-row-actions button {
    flex: 1 1 0;
  }

  .user-token-copy-row {
    grid-template-columns: 1fr;
  }

  .user-token-copy-row button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
