:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --surface-hover: #f8fbfd;
  --text: #17202a;
  --muted: #667085;
  --line: #d7dee8;
  --line-strong: #b8c4d1;
  --accent: #116b5f;
  --accent-strong: #0b554c;
  --accent-soft: #dff3ed;
  --blue: #275d9f;
  --amber: #96630f;
  --red: #b42318;
  --focus: rgba(17, 107, 95, 0.24);
  --green-soft: #e7f4ef;
  --blue-soft: #e8f1fb;
  --amber-soft: #fff4dc;
  --red-soft: #fee9e7;
  --shadow: 0 18px 42px rgba(25, 35, 45, 0.08);
  --shadow-soft: 0 14px 32px rgba(25, 35, 45, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 42%, #eef3f5 100%);
  color: var(--text);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.clipboard-fallback {
  position: fixed;
  left: -9999px;
}

.asset-update-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.24);
}

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

button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

a.link-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

button:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(17, 107, 95, 0.08);
  transform: translateY(-1px);
}

a.link-button:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(17, 107, 95, 0.08);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 12px 24px rgba(17, 107, 95, 0.22);
}

.danger {
  border-color: var(--red);
  color: var(--red);
}

.danger.primary {
  background: var(--red);
  color: #fff;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

a {
  color: var(--blue);
}

.app-root {
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
}

.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(320px, 460px) 1fr;
}

.login-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  background: linear-gradient(180deg, #13212b 0%, #17202a 100%);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.brand-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
}

.sidebar .brand {
  padding: 2px 2px 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar .brand-mark {
  width: 36px;
  height: 36px;
}

.sidebar .brand-title {
  font-size: 24px;
}

.brand-subtitle {
  color: #cbd5e1;
}

.login-main {
  align-content: center;
  display: grid;
  gap: 18px;
  padding: 34px;
}

.auth-panel {
  width: min(100%, 560px);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: panel-enter 220ms ease-out;
}

.nav button[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 3px 0 0 var(--accent);
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 8px 0 28px rgba(25, 35, 45, 0.04);
}

.nav {
  display: grid;
  gap: 7px;
}

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

.nav button:hover {
  background: var(--surface-hover);
  border-color: var(--line);
  box-shadow: none;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(25, 35, 45, 0.04);
}

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--amber);
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 700;
}

.impersonation-banner button {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--surface);
}

.content {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
  max-width: 100%;
  padding: 24px;
}

.section {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(25, 35, 45, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.section:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  margin: 0;
  font-size: 20px;
}

.compact-title {
  margin: 0;
  font-size: 18px;
}

.section-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 12px;
}

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

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

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

.profile-token {
  display: grid;
  gap: 12px;
}

.token-field {
  display: grid;
  gap: 8px;
}

.token-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.admin-panel,
.admin-panel-content {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tabs button[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hive-admin {
  gap: 18px;
}

.method-grid {
  display: grid;
  gap: 14px;
}

.method-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.method-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

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

.hive-result {
  display: grid;
  gap: 10px;
}

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

.hive-result-row {
  display: grid;
  gap: 4px;
}

.hive-result-row span {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.72;
}

.hive-result-json {
  min-height: 0;
  max-height: 240px;
  margin-top: 2px;
  overflow: auto;
  border: 1px solid #1f3343;
  border-radius: 10px;
  background: #10202d;
  color: #e9f2f8;
  padding: 12px 14px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  line-height: 1.58;
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.regex-code {
  display: inline-block;
  max-width: 520px;
  white-space: pre-wrap;
  word-break: break-word;
}

.content-digger-editor {
  margin: 12px 0;
}

.content-digger-transform-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.content-digger-transform-editor label,
.content-digger-active-editor {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.content-digger-transform-editor input,
.content-digger-active-editor input {
  width: auto;
  min-height: 0;
}

.regex-debug-results {
  display: grid;
  gap: 10px;
}

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

.cloud-details > div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.cloud-details span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.cloud-details strong {
  overflow-wrap: anywhere;
}

.project-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.project-edit-form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.project-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 12px;
}

.project-scope-column {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.project-scope-column h3 {
  margin: 0;
  font-size: 15px;
}

.scope-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.scope-list.plain {
  padding-left: 20px;
}

.scope-list li {
  overflow-wrap: anywhere;
}

.scope-list button {
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  text-align: left;
  overflow-wrap: anywhere;
}

.scope-list button:hover {
  color: var(--accent);
  text-decoration: underline;
}

.poc-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.scope-list .poc-link-row button {
  width: auto;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 12px;
}

.project-scope-drilldown {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.project-scan-history,
.project-leaks,
.project-findings,
.project-ms-ad {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.project-tabs {
  margin-top: 2px;
}

.project-tabs button {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
}

.project-tab-label {
  line-height: 1.2;
}

.project-tab-badge {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-2px);
}

.project-tab-content {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.project-mep,
.admin-mep,
.mep-content,
.mep-admin-layout,
.mep-settings-layout,
.mep-card-grid,
.mep-connection-list,
.mep-card,
.mep-review,
.mep-review-section,
.mep-job-detail,
.mep-audit-list {
  min-width: 0;
  max-width: 100%;
}

.project-mep,
.admin-mep,
.mep-content,
.mep-connection-list,
.mep-card,
.mep-review,
.mep-review-section,
.mep-job-detail,
.mep-audit-list {
  display: grid;
  gap: 12px;
}

.project-mep,
.admin-mep {
  overflow: hidden;
}

.mep-heading {
  margin-bottom: 0;
}

.mep-heading .section-subtitle,
.mep-card p,
.mep-card dd,
.mep-card code,
.mep-review p,
.mep-review dd,
.mep-review code,
.mep-audit-row dd {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mep-tabs {
  margin-top: 0;
}

.mep-tabs button {
  flex: 1 1 118px;
}

.mep-admin-layout,
.mep-settings-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 14px;
  align-items: start;
}

.mep-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 12px;
}

.mep-batch-panel {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--green-soft);
}

.mep-batch-panel > div,
.mep-batch-panel h4,
.mep-batch-panel p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.mep-batch-panel > div:first-child {
  display: grid;
  gap: 6px;
}

.mep-batch-status {
  grid-column: 1 / -1;
}

.mep-filter-panel {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
}

.inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .mep-batch-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .mep-batch-panel button {
    width: 100%;
  }

  .mep-batch-status {
    grid-column: 1;
  }
}

.mep-card,
.mep-review,
.mep-audit-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mep-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
}

.mep-card h3,
.mep-card h4,
.mep-review h4,
.mep-review h5,
.mep-list-heading h3,
.mep-publication-box h5 {
  margin: 0;
}

.mep-card p,
.mep-review p,
.mep-publication-box p {
  margin: 0;
  line-height: 1.45;
}

.mep-card-head,
.mep-list-heading,
.mep-audit-row > div:first-child {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.mep-card-head > div,
.mep-list-heading > * {
  min-width: 0;
}

.mep-card-head .pill,
.mep-audit-row .pill {
  flex: 0 0 auto;
}

.mep-definition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 8px;
  margin: 0;
}

.mep-definition-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr));
}

.mep-definition-grid > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.mep-definition-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mep-definition-grid dd {
  min-width: 0;
  margin: 0;
  font-weight: 700;
}

.mep-secret-box,
.mep-review-section,
.mep-publication-box {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.mep-secret-box {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.mep-publication-box {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.mep-evidence-intake {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-2);
}

.mep-evidence-intake summary {
  cursor: pointer;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mep-evidence-intake[open] {
  border-style: solid;
}

.mep-evidence-form {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.mep-evidence-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.mep-evidence-status {
  overflow-wrap: anywhere;
}

.mep-safety-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
  gap: 8px;
}

.mep-safety-item {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  overflow-wrap: anywhere;
}

.mep-safety-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mep-safety-item.safe {
  border-color: var(--accent);
  background: var(--green-soft);
}

.mep-safety-item.blocked {
  border-color: var(--red);
  background: var(--red-soft);
}

.mep-safety-item.unknown {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.mep-pipeline-phases {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mep-phase;
}

.mep-pipeline-phases li {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  counter-increment: mep-phase;
}

.mep-pipeline-phases li > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.mep-pipeline-phases li > span:first-child::before {
  content: counter(mep-phase) ". ";
  color: var(--muted);
}

.mep-validation-summary dd {
  font-variant-numeric: tabular-nums;
}

.mep-rule-plan-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 10px;
}

.mep-rule-plan-grid > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.mep-rule-plan-grid h6,
.mep-rule-plan-grid ul,
.mep-rule-plan-grid p {
  min-width: 0;
  margin: 0;
}

.mep-endpoint-list code {
  display: block;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mep-service-results {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.mep-service-result {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(90px, auto) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.mep-service-result code,
.mep-service-result time {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mep-service-result time {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 560px) {
  .mep-service-result {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mep-service-result code,
  .mep-service-result time {
    grid-column: 1 / -1;
  }
}

.topbar-actions {
  align-items: center;
}

.mail-inbox-button {
  position: relative;
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 8px;
  border-radius: 999px;
  background: var(--surface);
}

.mail-inbox-button[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.mail-inbox-button.is-unavailable {
  color: var(--muted);
}

.mail-inbox-icon {
  font-size: 20px;
  line-height: 1;
}

.mail-unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.mail-section {
  min-height: min(760px, calc(100vh - 120px));
}

.mail-privacy-warning {
  margin: 0;
}

.mail-mailbox-status:empty {
  display: none;
}

.mail-address-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-2);
}

.mail-address-card > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mail-address-card.status-suspended,
.mail-address-card.status-revoked {
  border-left-color: var(--red);
}

.mail-address-card.status-not_provisioned {
  border-left-color: var(--amber);
}

.mail-address {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.mail-owner-picker {
  max-width: 560px;
}

.mail-box-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
  min-width: 0;
}

.mail-box-controls[hidden] {
  display: none;
}

.mail-box-controls label {
  flex: 0 1 320px;
  min-width: 0;
}

.mail-box-controls label select,
.mail-box-controls label input {
  width: 100%;
  min-width: 0;
}

.mail-box-controls .muted {
  align-self: center;
  font-size: 12px;
}

.mail-row-recipient,
.mail-detail-recipient {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.mail-address-card strong {
  overflow-wrap: anywhere;
}

.mail-workspace {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mail-workspace[hidden] {
  display: none;
}

.mail-message-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}

.mail-message-list {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
}

.mail-message-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  justify-items: stretch;
  align-items: start;
  min-width: 0;
  overflow-wrap: anywhere;
  gap: 5px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.mail-message-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  min-width: 0;
}

.mail-message-item-admin {
  grid-template-columns: minmax(0, 1fr);
}

.mail-message-select {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18px;
  border-bottom: 1px solid var(--line);
}

.mail-message-select input,
.mail-select-all input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.mail-message-item.is-checked {
  background: var(--surface);
}

.mail-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.mail-select-all {
  display: flex;
  flex-basis: 100%;
  align-items: center;
  gap: 8px;
}

.mail-bulk-toolbar button,
.mail-bulk-toolbar .muted {
  font-size: 12px;
}

.mail-message-row:hover,
.mail-message-row:focus-visible,
.mail-message-row[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--accent);
}

.mail-message-row.unread strong {
  font-weight: 850;
}

.mail-message-row.expired {
  color: var(--muted);
}

.mail-message-row-head {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mail-message-row-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mail-list-state,
.mail-detail-empty {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.mail-load-more {
  margin: 12px;
}

.mail-detail {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
  overflow: auto;
}

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

.mail-detail-header h3,
.mail-detail-header p {
  overflow-wrap: anywhere;
}

.mail-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.mail-detail-meta > div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.mail-detail-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.mail-detail-meta dd {
  margin: 0;
}

.mail-text {
  min-height: 160px;
  max-width: 100%;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mail-links {
  display: grid;
  gap: 10px;
}

.mail-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mail-link-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mail-link-row code {
  overflow-wrap: anywhere;
}

.mail-link-dialog {
  max-width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mail-link-dialog::backdrop {
  background: rgba(10, 20, 30, 0.55);
}

.mail-confirm-host,
.mail-confirm-unicode-host {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.mail-unicode-host {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .mail-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .mail-message-pane {
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .topbar > div:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .mail-address-card,
  .mail-detail-header,
  .mail-link-row {
    align-items: stretch;
    flex-direction: column;
  }

  .mail-address-card button,
  .mail-link-row button,
  .mail-link-dialog .actions button {
    width: 100%;
  }

  .mail-detail {
    padding: 14px;
  }

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

.mep-audit-row {
  display: grid;
  gap: 10px;
}

.mep-hold-note strong {
  color: inherit;
}

.icon-button {
  width: 38px;
  min-width: 38px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.toolbar.vertical {
  align-items: stretch;
  grid-template-columns: 1fr;
}

.compact-panel {
  align-content: start;
}

.module-picker {
  display: grid;
  gap: 10px;
}

.entrypoint-picker {
  display: grid;
  gap: 8px;
  align-content: start;
}

.entrypoint-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entrypoint-options .module-check {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.module-picker-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.module-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 0.55fr) minmax(0, 2fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.module-row.unavailable {
  opacity: 0.62;
}

.module-row.mode-mismatch {
  border-color: rgba(150, 99, 15, 0.42);
  background: linear-gradient(180deg, var(--amber-soft) 0%, var(--surface-2) 100%);
}

.module-row.unavailable .module-check strong {
  color: var(--muted);
}

.module-execution-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  color: var(--muted);
}

.module-execution {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.module-execution.mode-agent {
  border-color: rgba(27, 127, 75, 0.32);
  background: var(--green-soft);
  color: var(--green);
}

.module-execution.mode-hybrid {
  border-color: rgba(43, 105, 179, 0.28);
  background: var(--blue-soft);
  color: var(--blue);
}

.module-execution.mode-server {
  color: var(--muted);
}

.agent-execution-coverage {
  margin: 12px 0 16px;
}

.module-unavailable-reason {
  margin-top: 4px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.module-check {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  align-items: center;
  color: var(--text);
}

.module-check input {
  width: 18px;
  min-height: 18px;
}

.module-check span {
  display: grid;
  gap: 2px;
}

.module-check.compact {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.module-check small,
.module-description {
  color: var(--muted);
  font-size: 12px;
}

.module-order input {
  max-width: 90px;
}

.scan-flow {
  display: grid;
  gap: 10px;
}

.scan-flow-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.scan-flow-lane {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.scan-flow-lane-compact {
  padding: 10px;
}

.scan-flow-node {
  display: grid;
  gap: 8px;
  min-width: min(190px, 100%);
  max-width: 260px;
  flex: 1 1 190px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.scan-flow-node span,
.scan-flow-meta,
.scan-flow-empty {
  color: var(--muted);
  font-size: 12px;
}

.scan-flow-node strong {
  color: var(--text);
  font-size: 14px;
}

.scan-flow-node-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.scan-flow-node-head {
  display: flex;
  gap: 8px;
  align-items: center;
}

.scan-flow-node-head span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.scan-flow-module {
  cursor: grab;
}

.scan-profile-context {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.scan-outcome,
.scan-result-summary,
.scan-issues {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.scan-outcome.status-running,
.scan-outcome.status-queued {
  border-color: #bfd4ee;
  background: var(--blue-soft);
}

.scan-outcome.status-retrying,
.scan-outcome.status-partial,
.scan-outcome.status-attention {
  border-color: #e8c472;
  background: var(--amber-soft);
}

.scan-outcome.status-failed {
  border-color: #efb4ae;
  background: var(--red-soft);
}

.scan-outcome.status-cancelled {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.scan-outcome.status-completed {
  border-color: #b8d8cc;
  background: var(--green-soft);
}

.scan-outcome-head,
.scan-progress-copy,
.scan-result-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.scan-outcome-title,
.scan-result-summary h4 {
  margin: 2px 0 0;
  font-size: 20px;
}

.scan-outcome p,
.scan-result-summary p,
.scan-issues p {
  margin: 0;
  line-height: 1.5;
}

.scan-outcome-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scan-progress-bar {
  width: 100%;
  height: 12px;
  accent-color: var(--accent);
}

.scan-progress-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.scan-progress-facts div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(102, 112, 133, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.scan-progress-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.scan-progress-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.scan-result-summary {
  align-items: center;
  background: var(--surface-2);
}

.scan-result-summary.partial-saved {
  border-color: #e8c472;
  background: var(--amber-soft);
}

.scan-result-summary > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.scan-result-summary .actions {
  flex: 0 0 auto;
}

.scan-result-summary .primary,
.project-profile-submit .primary {
  min-height: 44px;
}

.scan-issues {
  border-color: #e8c472;
  background: var(--amber-soft);
}

.scan-issues details,
.scan-step-details {
  min-width: 0;
}

.scan-issues summary,
.scan-step-details summary {
  cursor: pointer;
  font-weight: 700;
}

.scan-issues li,
.scan-step-details div {
  margin-top: 6px;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.scan-profile-step {
  cursor: default;
  min-width: min(210px, 100%);
}

.scan-step-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.scan-step-results {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.scan-step-result-totals,
.scan-step-result-types {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scan-step-result-totals span,
.scan-step-result-type {
  min-width: 0;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.scan-step-result-totals strong,
.scan-step-result-type strong {
  color: var(--accent-strong);
}

.scan-dag-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.dag-state-pill.ready {
  border-color: #bfd4ee;
  background: var(--blue-soft);
  color: var(--blue);
}

.dag-state-pill.running {
  border-color: #b8d8cc;
  background: var(--green-soft);
  color: var(--accent-strong);
}

.dag-state-pill.waiting {
  border-color: #e8c472;
  background: var(--amber-soft);
  color: var(--amber);
}

.dag-state-pill.blocked {
  border-color: #efb4ae;
  background: var(--red-soft);
  color: var(--red);
}

.dag-state-pill.terminal {
  background: var(--surface-2);
  color: var(--muted);
}

.stage-subtasks-row td {
  background: var(--surface-2);
}

.stage-subtasks {
  display: grid;
  gap: 8px;
  padding: 8px 0;
}

.stage-subtasks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-subtasks-summary {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

.stage-subtasks-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.stage-subtasks-statuses {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stage-subtask-ref {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stage-subtask-ref code {
  overflow-wrap: anywhere;
}

.scan-profile-step.current {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(17, 107, 95, 0.14);
}

.scan-profile-step.dag-waiting {
  border-color: #e8c472;
}

.scan-profile-step.dag-blocked {
  border-color: #efb4ae;
}

.scan-profile-step.dag-ready {
  border-style: dashed;
}

.scan-profile-step.running .scan-flow-node-head span,
.scan-profile-step.queued .scan-flow-node-head span,
.scan-profile-step.created .scan-flow-node-head span,
.scan-profile-step.started .scan-flow-node-head span,
.scan-profile-step.waiting .scan-flow-node-head span,
.scan-profile-step.experience-running .scan-flow-node-head span,
.scan-profile-step.experience-queued .scan-flow-node-head span {
  background: var(--blue-soft);
  color: var(--blue);
}

.scan-profile-step.succeeded .scan-flow-node-head span,
.scan-profile-step.experience-completed .scan-flow-node-head span {
  background: var(--green-soft);
  color: var(--accent-strong);
}

.scan-profile-step.failed .scan-flow-node-head span,
.scan-profile-step.cancelled .scan-flow-node-head span,
.scan-profile-step.blocked .scan-flow-node-head span,
.scan-profile-step.experience-failed .scan-flow-node-head span {
  background: var(--red-soft);
  color: var(--red);
}

.scan-profile-step.pending .scan-flow-node-head span,
.scan-profile-step.skipped .scan-flow-node-head span,
.scan-profile-step.unknown .scan-flow-node-head span,
.scan-profile-step.experience-retrying .scan-flow-node-head span,
.scan-profile-step.experience-partial .scan-flow-node-head span,
.scan-profile-step.experience-attention .scan-flow-node-head span {
  background: var(--amber-soft);
  color: var(--amber);
}

.scan-profile-step.unknown .scan-flow-node-head span {
  background: var(--surface);
  color: var(--muted);
}

.scan-profile-step.experience-running .scan-flow-node-head span,
.scan-profile-step.experience-queued .scan-flow-node-head span {
  background: var(--blue-soft);
  color: var(--blue);
}

.scan-profile-step.experience-retrying .scan-flow-node-head span,
.scan-profile-step.experience-partial .scan-flow-node-head span,
.scan-profile-step.experience-attention .scan-flow-node-head span {
  background: var(--amber-soft);
  color: var(--amber);
}

.scan-profile-step.experience-failed .scan-flow-node-head span {
  background: var(--red-soft);
  color: var(--red);
}

.scan-profile-step.experience-completed .scan-flow-node-head span {
  background: var(--green-soft);
  color: var(--accent-strong);
}

.scan-flow-module:active {
  cursor: grabbing;
}

.scan-profile-step:active {
  cursor: default;
}

.scan-flow-start {
  border-color: var(--accent);
}

.scan-flow-output {
  border-style: dashed;
}

.scan-flow-module.broken {
  border-color: var(--red);
  background: var(--red-soft);
}

.scan-flow-error {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.scan-flow-arrow {
  display: grid;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.scan-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scan-flow-actions button {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 12px;
}

.scan-run-modules {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.scan-run-module {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.scan-run-module strong,
.scan-run-module small {
  overflow-wrap: anywhere;
}

.scan-run-module small {
  color: var(--muted);
  font-size: 12px;
}

.project-profile-launcher {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.project-profile-controls {
  min-width: 0;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.project-profile-controls[disabled] {
  opacity: 0.72;
}

.project-profile-picker {
  display: grid;
  gap: 10px;
}

.project-profile-option.unavailable {
  opacity: 0.68;
}

.project-profile-option.unavailable strong {
  color: var(--muted);
}

.project-profile-option {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.project-profile-option:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
}

.project-profile-all-targets {
  width: max-content;
  max-width: 100%;
}

.project-profile-summary {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

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

.project-profile-summary-grid div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.project-profile-summary-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-profile-summary-grid strong {
  overflow-wrap: anywhere;
}

.project-profile-summary-warning {
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 700;
}

.project-profile-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.project-profile-submit > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.project-leaks-filter {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.project-triage {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.project-triage-filter {
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  align-items: end;
}

.project-triage-filter .actions {
  align-self: end;
}

.project-triage-quick,
.project-triage-source-counts,
.project-triage-kind-tabs {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-triage-kind-tabs button {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-wrap: anywhere;
}

.project-triage-list,
.project-triage-detail {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 12px;
}

.project-triage-card,
.project-triage-detail-card {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
}

.project-triage-card.priority-p0,
.project-triage-card.priority-p1 {
  border-left-color: var(--red);
}

.project-triage-card.priority-p2 {
  border-left-color: var(--amber);
}

.project-triage-card-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-triage-card-head > div,
.project-triage-action,
.project-triage-reason,
.project-triage-primary-context,
.project-triage-facts > div {
  min-width: 0;
}

.project-triage-card h4,
.project-triage-detail-card h4,
.project-triage-action strong,
.project-triage-reason p,
.project-triage-facts strong,
.project-triage-source-counts .pill {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.project-triage-primary-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 6px;
  background: var(--surface);
}

.project-triage-primary-context > span {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-triage-card h4,
.project-triage-detail-card h4 {
  margin: 8px 0 0;
}

.project-triage-facts {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 8px;
}

.project-triage-facts > div,
.project-triage-action,
.project-triage-reason {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 6px;
  background: var(--surface);
}

.project-triage-facts span,
.project-triage-action span,
.project-triage-reason span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-triage-reason p {
  margin: 0;
}

.project-triage-decision-form {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.project-triage-decision-inline {
  min-width: 0;
  max-width: 100%;
  border-color: color-mix(in srgb, var(--blue) 48%, var(--line));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--blue) 68%, transparent);
  overflow: hidden;
}

.project-triage-decision-inline.readonly {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
}

.project-triage-decision-heading,
.project-triage-decision-submit {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.project-triage-decision-heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.project-triage-decision-heading span:not(.pill) {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-triage-decision-heading strong,
.project-triage-decision-inline.readonly span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-triage-decision-fields {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-triage-decision-fields label {
  min-width: 0;
}

.project-triage-decision-action,
.project-triage-decision-reason {
  grid-column: 1 / -1;
}

.project-triage-decision-submit button {
  min-width: 0;
  max-width: 100%;
}

.project-triage-decision-submit .checkbox-row {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex: 1 1 180px;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
}

.project-triage-decision-submit .checkbox-row input[type="checkbox"] {
  width: auto;
  min-height: 0;
  flex: 0 0 auto;
}

.project-triage-evidence,
.project-triage-evidence-section,
.project-triage-evidence-grid,
.project-triage-evidence-card,
.project-triage-evidence-card > div {
  min-width: 0;
  max-width: 100%;
}

.project-triage-evidence {
  display: grid;
  gap: 14px;
}

.project-triage-evidence-section {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.project-triage-evidence-section > h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.project-triage-evidence-section > summary {
  cursor: pointer;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.project-triage-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 10px;
}

.project-triage-evidence-card {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  overflow: hidden;
}

.project-triage-evidence-card > div {
  display: grid;
  gap: 4px;
}

.project-triage-evidence-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-triage-evidence-card strong,
.project-triage-evidence-card p,
.project-triage-evidence-card a,
.project-triage-evidence-card li,
.project-triage-value,
.project-triage-evidence-raw {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.project-triage-evidence-card p,
.project-triage-evidence-card ul {
  margin: 0;
}

.project-triage-evidence-card ul {
  display: grid;
  gap: 5px;
  padding-inline-start: 20px;
}

.project-triage-cve-card,
.project-triage-cve-card-head,
.project-triage-cve-service,
.project-triage-cve-technology,
.project-triage-cve-technology-head,
.project-triage-cve-aliases,
.project-triage-chip-list,
.project-triage-cve-proofs,
.project-triage-cve-proof-list,
.project-triage-cve-proof,
.project-triage-cve-proof > div {
  min-width: 0;
  max-width: 100%;
}

.project-triage-cve-card {
  gap: 12px;
  border-left: 3px solid color-mix(in srgb, var(--blue) 70%, var(--line));
}

.project-triage-cve-card > .project-triage-cve-card-head,
.project-triage-cve-technology-head,
.project-triage-cve-proof-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.project-triage-cve-card-head > div,
.project-triage-cve-service,
.project-triage-cve-technology,
.project-triage-cve-proof {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.project-triage-cve-service,
.project-triage-cve-technology,
.project-triage-cve-proof {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  overflow: hidden;
}

.project-triage-cve-card code,
.project-triage-cve-card strong,
.project-triage-cve-card p,
.project-triage-cve-card a,
.project-triage-cve-card summary {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.project-triage-cve-aliases > summary,
.project-triage-cve-proofs > summary {
  cursor: pointer;
  font-weight: 800;
}

.project-triage-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
}

.project-triage-chip-list code {
  flex: 0 1 auto;
}

.project-triage-cve-proof-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 8px;
  padding-top: 8px;
}

.project-triage-cve-proof > div:not(.project-triage-cve-proof-head) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.project-triage-cve-card > .project-triage-decision-inline {
  margin-top: 2px;
}

.project-triage-value,
.project-triage-evidence-raw {
  display: block;
  white-space: pre-wrap;
}

.project-triage-value.sensitive {
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--amber) 55%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--amber) 8%, var(--surface));
}

.project-triage-sensitive {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 7px;
}

.project-triage-sensitive .actions {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-triage-sensitive .actions button {
  min-width: 0;
  max-width: 100%;
}

.project-triage-value.masked {
  letter-spacing: 0.12em;
  user-select: none;
}

.project-triage-sensitive-status {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.project-triage-completeness {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.project-triage-completeness span,
.project-triage-completeness button {
  min-width: 0;
  max-width: 100%;
}

.project-triage-completeness.incomplete {
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--amber) 55%, var(--line));
  background: color-mix(in srgb, var(--amber) 8%, var(--surface));
}

.project-triage-evidence-raw {
  max-height: 320px;
  margin: 0;
  padding: 8px;
  border-radius: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface);
}

.project-leaks-bulk {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.project-leaks-bulk .actions {
  align-items: center;
}

.row-checkbox {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.finding-group-row td {
  background: color-mix(in srgb, var(--surface-2) 82%, var(--accent) 18%);
}

.finding-group-card {
  display: grid;
  gap: 10px;
}

.finding-group-list {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.finding-group-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.finding-group-list code {
  overflow-wrap: anywhere;
}

.technology-stack {
  display: grid;
  gap: 8px;
}

.technology-stack-item {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.technology-stack-item > strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.technology-stack-item .compact-details {
  flex-basis: 100%;
  min-width: 0;
}

.technology-poc-details {
  min-width: min(220px, 100%);
}

.technology-poc-details summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.technology-poc-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.technology-poc-item {
  display: grid;
  gap: 6px;
  max-width: 520px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

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

.technology-poc-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.technology-poc-links {
  margin: 0;
  padding-left: 16px;
}

.technology-poc-links a {
  overflow-wrap: anywhere;
}

.project-technology-tree-shell {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.project-technology-tree {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.project-technology-tree-node {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.project-technology-tree-node.host {
  background: var(--surface-2);
}

.project-technology-tree-node.service,
.project-technology-tree-node.port,
.project-technology-tree-node.app,
.project-technology-tree-node.server-stack,
.project-technology-tree-node.software,
.project-technology-tree-node.cpe {
  background: var(--surface);
}

.project-technology-tree-node summary {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
}

.project-technology-tree-node summary::marker {
  color: var(--muted);
}

.project-technology-tree-children {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0 10px 10px 22px;
}

.tree-label {
  min-width: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tree-label code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tree-meta {
  min-width: 0;
  flex: 1 1 180px;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tree-badges {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.project-technology-tree-preview,
.project-technology-tree-summary-ports {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.project-technology-tree-preview {
  flex: 1 1 260px;
}

.project-technology-tree-tech-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.project-technology-tree-summary-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.project-technology-tree-summary-port {
  display: flex;
  min-width: min(220px, 100%);
  flex: 1 1 260px;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.project-technology-tree-section-title {
  padding: 2px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.project-technology-tree-aliases {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0;
}

.project-technology-tree-alias {
  display: inline-flex;
  max-width: 100%;
  gap: 6px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.project-technology-tree-alias.direct {
  border-style: dashed;
}

.project-technology-tree-cves {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.project-technology-tree-cve {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.project-technology-tree-cve-title {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.project-technology-cve-snippet {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
}

.project-technology-cve-snippet:hover,
.project-technology-cve-snippet:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(14, 118, 110, .14);
  outline: none;
}

.project-technology-cve-card {
  flex-basis: 100%;
  min-width: 0;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.project-technology-cve-card.loading {
  color: var(--muted);
}

.project-technology-cve-card.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.project-technology-cve-card-inner {
  display: grid;
  gap: 8px;
}

.project-technology-cve-card-inner p {
  margin: 0;
  line-height: 1.45;
  white-space: pre-wrap;
}

.project-technology-cve-card-head,
.project-technology-cve-card-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.project-technology-cve-card-meta {
  color: var(--muted);
  font-size: 12px;
}

.project-technology-tree-empty {
  padding: 8px 10px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.section-header.compact {
  margin-bottom: 0;
}

.target-sections {
  display: grid;
  gap: 10px;
}

.target-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.target-block summary {
  cursor: pointer;
  font-weight: 700;
}

.secret-value {
  overflow-wrap: anywhere;
  white-space: normal;
}

.who-result {
  display: grid;
  gap: 12px;
}

.who-card {
  background: var(--surface);
}

.leak-form {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.leak-form .compact-title {
  margin: 0;
}

.policy-filter {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-filter legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.policy-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.policy-options .module-check {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.source-selector,
.input-group-card {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.source-selector legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.source-selector {
  grid-template-columns: 1fr;
}

.ms-ad-spray-form {
  max-width: 100%;
  overflow-x: hidden;
}

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

.ms-ad-spray-form .module-check {
  align-items: flex-start;
}

.input-group-card h4 {
  margin: 0;
  font-size: 14px;
}

.builder-preview {
  display: grid;
  gap: 6px;
}

.inline-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inline-preview li {
  max-width: 100%;
}

.inline-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  color: inherit;
}

.target-block > :not(summary) {
  margin-top: 10px;
}

.xurl-js-source-toggle {
  display: inline-flex;
  max-width: min(760px, 70vw);
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.xurl-js-source-toggle:hover {
  color: var(--accent);
}

.xurl-js-source-toggle strong {
  overflow-wrap: anywhere;
}

.xurl-js-source-row > td {
  vertical-align: top;
}

.xurl-js-source-row .actions {
  display: flex;
  min-width: 250px;
  flex-wrap: wrap;
  gap: 6px;
}

.xurl-js-source-files-row > td {
  padding: 0 12px 14px 38px;
  background: var(--surface-2);
}

.xurl-js-source-files {
  border-left: 2px solid var(--accent);
  background: var(--surface);
}

.xurl-js-source-files td:first-child {
  min-width: 360px;
  overflow-wrap: anywhere;
}

.incident-form {
  display: grid;
  gap: 12px;
}

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

.traceback-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.traceback-window {
  min-height: 260px;
  max-height: 560px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1720;
  color: #edf4fb;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.toolbar > label {
  min-width: min(220px, 100%);
  flex: 1 1 220px;
}

.compact-toolbar {
  gap: 8px;
  margin: 8px 0 10px;
}

.compact-toolbar > label {
  min-width: min(150px, 100%);
  flex: 1 1 150px;
}

.callback-journal {
  white-space: normal;
}

.callback-journal [hidden],
.callback-journal-status:empty {
  display: none;
}

.callback-journal-status {
  margin: 0;
}

.callback-journal-pagination button {
  width: auto;
}

.callback-journal-facts {
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  margin: 0;
}

.callback-journal-facts dt {
  color: var(--muted);
  font-size: 13px;
}

.callback-journal-facts dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.oast-workspace {
  white-space: normal;
}

.oast-workspace [hidden],
.oast-message:empty {
  display: none;
}

.oast-workspace button[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.oast-workspace [data-oast-panel],
.oast-workspace [data-oast-content],
.oast-workspace [data-oast-facts] > div {
  min-width: 0;
}

.oast-message {
  margin: 0;
  overflow-wrap: anywhere;
}

.column-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.column-selector summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

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

.column-selector summary:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.column-selector-menu {
  position: absolute;
  z-index: 15;
  top: calc(100% + 8px);
  right: 0;
  min-width: min(240px, 80vw);
  max-width: min(360px, 80vw);
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(25, 35, 45, 0.14);
}

.column-selector-menu label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.column-selector-menu input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  padding: 0;
  accent-color: var(--accent);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pagination button {
  width: 42px;
  padding: 8px;
}

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

.pagination-size select {
  min-width: 84px;
}

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

.pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.pill.admin {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: #e8c472;
}

.pill.user {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: #bfd4ee;
}

.pill.online,
.pill.provisioned,
.pill.succeeded,
.pill.done,
.pill.completed,
.pill.complete,
.pill.success,
.pill.valid,
.pill.low {
  background: var(--green-soft);
  color: var(--accent);
  border-color: #b8d8cc;
}

.pill.stale,
.pill.degraded,
.pill.running,
.pill.retrying,
.pill.pending,
.pill.queued,
.pill.waiting,
.pill.partial,
.pill.attention,
.pill.warning,
.pill.skipped,
.pill.unreviewed,
.pill.medium {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: #e8c472;
}

.pill.failed,
.pill.expired,
.pill.token_revoked,
.pill.token_expired,
.pill.blocked,
.pill.invalid,
.pill.high,
.pill.critical {
  background: var(--red-soft);
  color: var(--red);
  border-color: #efb4ae;
}

.pill.cancelled {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line-strong);
}

.table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(25, 35, 45, 0.03);
}

.storage-list {
  display: grid;
  gap: 12px;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 0;
}

th,
td {
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

th > *,
td > *,
th a,
td a,
th code,
td code,
th input,
td input,
th select,
td select,
th textarea,
td textarea,
th button,
td button {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.table-sort-button {
  min-height: 0;
  width: 100%;
  justify-content: flex-start;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  box-shadow: none;
}

.table-sort-button:hover {
  color: var(--accent-strong);
  box-shadow: none;
  transform: none;
}

.table-sort-button.active {
  color: var(--accent-strong);
}

.table-sort-arrow {
  font-size: 12px;
  color: var(--muted);
}

tbody tr {
  transition: background-color 140ms ease;
}

tbody tr:hover td {
  background: var(--surface-hover);
}

tr:last-child td {
  border-bottom: 0;
}

pre,
.json-output {
  min-height: 54px;
  max-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101828;
  color: #e5eef8;
  line-height: 1.45;
  white-space: pre-wrap;
}

.notice {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(39, 93, 159, 0.05);
}

.notice.error {
  border-color: #f6b7b2;
  background: var(--red-soft);
  color: var(--red);
}

.notice.ok {
  border-color: #a8d8c6;
  background: var(--green-soft);
  color: var(--accent-strong);
}

.notice.warning {
  border-color: #e8c472;
  background: var(--amber-soft);
  color: var(--amber);
}

.risk-recalc-status,
.job-progress-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.risk-recalc-status div,
.job-progress-status div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.risk-recalc-progress,
.job-progress-bar {
  width: 100%;
  height: 10px;
  accent-color: var(--accent);
}

.finding-details {
  margin-top: 8px;
}

.finding-details summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 700;
}

.finding-details pre {
  margin: 8px 0 0;
  max-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
}

.finding-card-panel {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.finding-card-panel section {
  min-width: 0;
}

.finding-status-form {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  align-items: end;
}

.compact-table table {
  min-width: 0;
}

.compact-table td,
.compact-table th {
  white-space: normal;
}

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

.timeline-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-hover);
}

.timeline-item p {
  margin: 6px 0 0;
}

.compact-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.compact-list li + li {
  margin-top: 4px;
}

.hidden {
  display: none !important;
}

.content > .section,
.admin-panel-content > .section {
  animation: panel-enter 220ms ease-out;
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1180px) {
  .scan-flow-arrow {
    display: none;
  }

  .scan-flow-node {
    max-width: none;
  }

  .table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .responsive-table {
    display: block;
    background: transparent;
  }

  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .responsive-table tbody {
    display: grid;
    gap: 12px;
  }

  .responsive-table tbody tr {
    min-width: 0;
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(25, 35, 45, 0.03);
    overflow: hidden;
  }

  .responsive-table tbody td {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(108px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-bottom: 1px solid var(--line);
  }

  .responsive-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }

  .responsive-table tbody td[colspan] {
    grid-template-columns: minmax(0, 1fr);
  }

  .responsive-table tbody td[colspan]::before,
  .responsive-table tbody td[data-label=""]::before {
    display: none;
  }

  .responsive-table tbody tr:last-child td:last-child,
  .responsive-table tbody td:last-child {
    border-bottom: 0;
  }
}

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

  .login-side {
    min-height: 210px;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid.two,
  .grid.three,
  .cloud-details,
  .project-scope-grid,
  .module-row,
  .project-profile-summary-grid,
  .scan-progress-facts {
    grid-template-columns: 1fr;
  }

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

.report-engine-layout {
  align-items: start;
}

.report-engine-preview-card {
  margin-top: 12px;
  color: var(--text);
}

.report-engine-preview-text {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.report-engine-preview-text h5 {
  margin: 0;
  color: #22313f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.report-engine-preview-text pre {
  max-width: 100%;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid #c8d4e2;
  border-radius: 10px;
  padding: 14px 16px;
  background: #ffffff;
  color: #17202a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.62;
  letter-spacing: 0;
  box-shadow: inset 4px 0 0 var(--accent-soft), 0 1px 2px rgba(25, 35, 45, 0.04);
}

.report-engine-wiki {
  margin-top: 10px;
}

.report-engine-wiki summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.report-engine-wiki .table-scroll {
  margin-top: 12px;
}

.compact-help {
  margin: -4px 0 0;
  font-size: 13px;
}

.detection-rule-library {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fbff;
}

.detection-rule-library summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.detection-rule-library-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.detection-rule-library-item {
  align-items: flex-start;
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: left;
  white-space: normal;
}

.detection-rule-library-item small,
.detection-rule-library-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.detection-rules-tabs {
  margin: 14px 0;
}

.detection-rules-library-layout {
  margin-top: 10px;
}

.detection-rules-library-layout td:last-child {
  white-space: normal;
}

.detection-rules-library-layout td:last-child button {
  margin: 2px;
}

.detection-rule-details h4 {
  margin: 14px 0 6px;
}

.risk-workflow-panel {
  margin: 16px 0;
}

.risk-workflow-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.risk-workflow-card {
  background: #ffffff;
  border: 1px solid #d7e1ee;
  box-shadow: 0 8px 24px rgba(16, 31, 52, 0.06);
}

.risk-workflow-decision {
  align-items: end;
  margin: 12px 0;
}

.risk-workflow-decision input,
.risk-workflow-decision select {
  min-width: 0;
}

.sms-reader-inbox,
.admin-sms-readers,
.sms-reader-admin-list,
.sms-reader-admin-card,
.sms-reader-modems,
.sms-reader-reader-settings,
.sms-reader-create-form,
.sms-reader-credential-actions {
  min-width: 0;
}

.sms-reader-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.85fr) minmax(340px, 1.15fr);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.sms-reader-list {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.sms-reader-list-head,
.sms-reader-list-footer,
.sms-reader-detail {
  padding: 14px;
}

.sms-reader-list-head,
.sms-reader-list-footer {
  border-bottom: 1px solid var(--line);
}

.sms-reader-list-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.sms-reader-list-body {
  min-height: 0;
  max-height: 620px;
  overflow: auto;
}

.sms-reader-copy {
  margin-bottom: 14px;
}

.sms-reader-select-toolbar,
.sms-reader-select-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.sms-reader-select-actions[hidden] {
  display: none;
}

.sms-reader-select-actions label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.sms-reader-multi-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding-inline-start: 12px;
  border-bottom: 1px solid var(--line);
}

.sms-reader-multi-row .sms-reader-row {
  border-bottom: 0;
}

.sms-reader-multi-row input[type="checkbox"],
.sms-reader-select-actions input[type="checkbox"] {
  inline-size: 1rem;
  block-size: 1rem;
  margin: 0;
}

.sms-reader-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  width: 100%;
  gap: 6px;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sms-reader-row:hover,
.sms-reader-row:focus-visible,
.sms-reader-row[aria-pressed="true"] {
  position: relative;
  z-index: 1;
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.sms-reader-row-head,
.sms-reader-credential-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sms-reader-row-head > strong {
  min-width: 0;
}

.sms-reader-detail {
  min-width: 0;
}

.sms-reader-detail-empty {
  display: grid;
  place-content: center;
  min-height: 180px;
  gap: 6px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.sms-reader-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.sms-reader-meta > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft, #f8fafc);
}

.sms-reader-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sms-reader-meta dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.sms-reader-body {
  max-width: 100%;
  min-height: 150px;
  max-height: 480px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.sms-reader-admin-list,
.sms-reader-modems {
  display: grid;
  gap: 14px;
}

.sms-reader-admin-card {
  gap: 16px;
}

.sms-reader-modem-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.sms-reader-modem-card h4,
.sms-reader-modems h4 {
  margin: 0;
}

.sms-reader-enrollment,
.sms-reader-create-form {
  display: grid;
  gap: 12px;
}

.sms-reader-enrollment input.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.sms-reader-reader-settings {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sms-reader-credential-actions {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sms-reader-credential-actions p {
  margin: 4px 0 0;
}

.compact-notice {
  margin: 0;
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .sms-reader-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sms-reader-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sms-reader-list-body {
    max-height: 420px;
  }
}

@media (max-width: 560px) {
  .login-main,
  .content,
  .topbar,
  .sidebar,
  .login-side {
    padding: 16px;
  }

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

  .section-header,
  .project-card-head,
  .project-triage-card-head,
  .project-profile-submit,
  .scan-outcome-head,
  .scan-result-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .section-header .actions,
  .project-card-head .actions,
  .mep-card .actions,
  .mep-card .actions button,
  .mep-review-form > button,
  .mep-publication-box button,
  .project-triage-card-head button,
  .project-profile-submit button,
  .scan-result-summary .actions,
  .scan-result-summary .actions button {
    width: 100%;
  }

  .sms-reader-layout {
    min-height: 0;
  }

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

  .sms-reader-row-head,
  .sms-reader-credential-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sms-reader-credential-actions .actions,
  .sms-reader-credential-actions button,
  .sms-reader-list-footer button,
  .sms-reader-modem-card .actions,
  .sms-reader-modem-card .actions button {
    width: 100%;
  }

  .mep-tabs button {
    flex: 1 1 calc(50% - 8px);
  }

  .project-triage-kind-tabs button {
    flex: 1 1 calc(50% - 8px);
  }

  .project-triage-decision-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-triage-decision-action,
  .project-triage-decision-reason {
    grid-column: auto;
  }

  .project-triage-decision-submit,
  .project-triage-decision-submit button {
    width: 100%;
  }

  .scan-progress-facts {
    grid-template-columns: 1fr;
  }

  .scan-flow-lane {
    padding: 8px;
  }

  .responsive-table tbody td {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .pagination-size {
    width: 100%;
    margin-left: 0;
  }
}
.oast-raw-box {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.oast-raw-box summary {
  padding: 4px;
  font-weight: 700;
  cursor: pointer;
}

.oast-raw-box summary:focus-visible,
.oast-raw-viewport:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.oast-raw-box .oast-message:not(:empty) {
  margin-top: 8px;
}

.oast-raw-panels:not(:empty) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 12px;
  margin-top: 12px;
}

.oast-raw-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.oast-raw-header,
.oast-raw-pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 8px 10px;
  background: var(--surface-2);
}

.oast-raw-header .compact-title,
.oast-raw-pager span {
  margin-right: auto;
  font-size: 13px;
}

.oast-raw-empty {
  padding: 6px 10px 10px;
}

.oast-raw-viewport {
  display: flex;
  min-width: 0;
  max-height: 20rem;
  overflow: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
  direction: ltr;
  unicode-bidi: isolate;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  tab-size: 4;
}

.oast-raw-viewport:focus-visible {
  outline-offset: -2px;
}

.oast-raw-gutter,
.oast-raw-viewport .oast-raw-code {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  white-space: pre;
}

.oast-raw-gutter {
  position: sticky;
  left: 0;
  align-self: flex-start;
  min-width: 3ch;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  text-align: right;
  user-select: none;
}

.oast-raw-first {
  color: var(--accent-strong);
  font-weight: 700;
}

.oast-raw-key {
  color: var(--blue);
}

.oast-raw-pager {
  border-top: 1px solid var(--line);
}

.oast-workspace [data-oast-detail] > .section-header > div {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.oast-event-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.oast-event-card [hidden] {
  display: none !important;
}

.oast-event-card > .section-header {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.oast-event-card > .section-header > .actions {
  width: auto;
  flex-wrap: nowrap;
}

.oast-event-summary,
.oast-event-summary-group,
.oast-event-ip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  gap: 4px 8px;
}

.oast-event-summary {
  gap: 4px 14px;
}

.oast-event-summary time {
  color: var(--muted);
  font-size: 12px;
}

.oast-event-ip {
  flex-wrap: nowrap;
  gap: 3px;
}

.oast-event-ip code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.oast-event-protocol,
.oast-event-decision {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.oast-event-protocol {
  color: var(--blue);
  background: var(--blue-soft);
}

.oast-event-decision {
  color: var(--amber);
  background: var(--amber-soft);
}

.oast-event-decision[data-reviewed="true"] {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.oast-decision-compact {
  display: none;
}

.oast-copy-icon,
.oast-icon-button {
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}

.oast-icon-button {
  font-size: 20px;
}

.oast-copy-icon svg {
  flex: 0 0 16px;
}

.oast-event-review {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  gap: 8px;
}

.oast-finding-box > summary {
  padding-block: 6px;
  cursor: pointer;
}

.oast-finding-box label {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.oast-event-result [data-oast-event-comment] {
  margin: 0 0 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.oast-service-box {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-hover);
}

.oast-service-box > summary {
  padding: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.oast-service-box > summary span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.oast-service-box > summary:focus-visible,
.oast-finding-box > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.oast-service-facts {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.oast-service-facts > div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 4px 12px;
}

.oast-service-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.oast-service-facts dd {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.oast-service-facts dd span {
  min-width: 0;
}

@media (pointer: coarse) {
  .oast-copy-icon,
  .oast-icon-button {
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .oast-event-review :is(input, select, textarea) {
    font-size: 16px;
  }
}

.oast-check-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
  margin-bottom: 12px;
}

.oast-check-identity code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.oast-row-identity {
  max-width: 100%;
  min-width: 0;
}

.oast-id-compact {
  display: none;
}

@media (max-width: 560px) {
  .oast-workspace [data-oast-detail] {
    padding-inline: 0;
    border: 0;
    box-shadow: none;
  }

  .oast-event-card > .section-header {
    justify-content: flex-start;
  }

  .oast-event-card > .section-header > .compact-title {
    font-size: 16px;
  }

  .oast-event-summary {
    display: grid;
    gap: 4px;
  }

  .oast-event-summary-group {
    gap: 4px;
  }

  .oast-event-summary time,
  .oast-event-protocol,
  .oast-event-decision {
    font-size: 11px;
  }

  .oast-event-protocol,
  .oast-event-decision {
    padding-inline: 5px;
    white-space: nowrap;
  }

  .oast-decision-full {
    display: none;
  }

  .oast-decision-compact {
    display: inline;
  }

  .oast-event-ip {
    gap: 0;
  }

  .oast-event-ip code {
    font-size: 11px;
    padding: 0;
  }

  .oast-service-facts > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .oast-row-identity {
    white-space: nowrap;
  }

  .oast-id-full {
    display: none;
  }

  .oast-id-compact {
    display: inline;
  }

  .oast-workspace.section {
    /* Use the project card's existing gutter rather than nesting another card. */
    margin-inline: -8px;
    padding-inline: 0;
    max-width: none;
    border: 0;
    box-shadow: none;
  }

  .oast-workspace [data-oast-event-detail] {
    padding-inline: 9px;
  }

  .project-tab-content > .oast-workspace.section {
    margin-inline: -18px;
  }

  .oast-raw-box,
  .oast-raw-header,
  .oast-raw-pager {
    padding-inline: 8px;
  }

  .oast-raw-gutter,
  .oast-raw-viewport .oast-raw-code {
    padding-inline: 7px;
  }
}
.proxygate-panel {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.proxygate-panel [hidden],
.proxygate-panel .proxygate-message:empty {
  display: none !important;
}

.proxygate-panel [data-proxygate-heading] {
  scroll-margin-top: 130px;
}

.proxygate-panel .proxygate-grid,
.proxygate-panel .proxygate-records {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.proxygate-panel .proxygate-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 8px 12px;
}

.proxygate-panel :is(.proxygate-facts, .proxygate-facts dd, .proxygate-message, .proxygate-records, .proxygate-record p, .proxygate-secret p) {
  margin: 0;
}

.proxygate-panel .proxygate-facts dt {
  color: var(--muted);
  font-size: 13px;
}

.proxygate-panel .proxygate-facts dd {
  font-weight: 600;
}

.proxygate-panel .proxygate-records {
  list-style: none;
  padding: 0;
}

.proxygate-panel .proxygate-record,
.proxygate-panel .proxygate-secret,
.proxygate-panel fieldset {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proxygate-panel .proxygate-record {
  display: grid;
  gap: 6px;
}

.proxygate-panel .proxygate-secret {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.proxygate-panel .proxygate-error {
  color: var(--red);
}

.proxygate-panel .proxygate-upstream,
.proxygate-panel .proxygate-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 8px;
  align-items: end;
}

.proxygate-panel .proxygate-value {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.proxygate-panel :is(label, input, select, button, .table-wrap, .actions) {
  min-width: 0;
  max-width: 100%;
}

.proxygate-panel .proxygate-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
}

.proxygate-panel button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent);
}

@media (max-width: 420px) {
  .proxygate-panel.section {
    padding-inline: 12px;
  }
}
