:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #182230;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

[hidden] {
  display: none !important;
}

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

button,
select,
input,
textarea {
  border: 1px solid #cfd7e3;
  border-radius: 6px;
}

button {
  background: #ffffff;
  color: #182230;
  cursor: pointer;
  min-height: 38px;
  padding: 0 14px;
}

button:hover {
  background: #eef3f8;
}

button.primary {
  background: #175cd3;
  border-color: #175cd3;
  color: #ffffff;
}

button.danger {
  background: #ffffff;
  border-color: #d92d20;
  color: #b42318;
}

button.ghost {
  background: #ffffff;
  border-color: #d0d5dd;
  color: #344054;
}

button.inline-link {
  background: transparent;
  border: 0;
  color: #175cd3;
  font-weight: 700;
  min-height: 0;
  padding: 0;
  text-align: left;
}

button.inline-link:hover {
  background: transparent;
  color: #0b4db3;
  text-decoration: underline;
}

button.danger.ghost {
  border-color: #fecdca;
  color: #b42318;
}

.login-screen {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(16, 24, 40, 0.92), rgba(23, 92, 211, 0.72)),
    #101828;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.login-panel {
  background: #ffffff;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.28);
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 440px;
  padding: 24px;
  width: 100%;
}

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

.login-brand img {
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  height: 72px;
  object-fit: contain;
  width: 72px;
}

.login-brand h1 {
  font-size: 26px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form input {
  margin-top: 6px;
  min-height: 42px;
  padding: 0 11px;
  width: 100%;
}

.login-form button {
  width: 100%;
}

.login-status {
  color: #b42318;
  font-size: 13px;
  margin: 0;
  min-height: 18px;
}

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

.app-shell[data-sidebar-state="collapsed"] {
  grid-template-columns: 76px minmax(0, 1fr);
}

.sidebar {
  background: #101828;
  color: #ffffff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  padding: 18px 12px;
  position: sticky;
  top: 0;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 214px;
  padding: 0 0 18px;
}

.brand-logo {
  background: #ffffff;
  border-radius: 8px;
  display: block;
  height: 196px;
  object-fit: contain;
  width: 196px;
}

.brand-mark {
  background: #ffffff;
  border-radius: 8px;
  display: none;
  flex: 0 0 34px;
  height: 34px;
  object-fit: contain;
  padding: 3px;
  width: 34px;
}

.brand-copy {
  display: none;
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.eyebrow {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  margin: 0 0 4px;
}

.brand .eyebrow {
  color: #98a2b3;
}

.nav-list {
  display: grid;
  gap: 6px;
  align-content: start;
}

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

.nav-item,
.sidebar-toggle {
  align-items: center;
  background: transparent;
  border-color: transparent;
  color: #d0d5dd;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  min-width: 0;
  padding: 0 10px;
  width: 100%;
}

.nav-item:hover,
.sidebar-toggle:hover,
.nav-item.active,
.nav-group.active > .nav-parent {
  background: #1d2939;
  color: #ffffff;
}

.nav-item.active {
  box-shadow: inset 3px 0 0 #47cd89;
}

.nav-parent {
  padding-right: 8px;
}

.nav-chevron {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.nav-group[data-nav-expanded="false"] .nav-chevron {
  transform: rotate(-90deg);
}

.nav-sublist {
  border-left: 1px solid #344054;
  display: grid;
  gap: 4px;
  margin-left: 24px;
  padding-left: 10px;
}

.nav-group[data-nav-expanded="false"] .nav-sublist {
  display: none;
}

.nav-subitem {
  min-height: 34px;
  padding-left: 8px;
}

.nav-dot {
  background: #667085;
  border-radius: 999px;
  flex: 0 0 6px;
  height: 6px;
  width: 6px;
}

.nav-subitem:hover .nav-dot,
.nav-subitem.active .nav-dot {
  background: #47cd89;
}

.nav-icon {
  align-items: center;
  border: 1px solid #344054;
  border-radius: 6px;
  color: #98a2b3;
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon,
.nav-group.active > .nav-parent .nav-icon {
  border-color: #47cd89;
  color: #ffffff;
}

.nav-icon svg {
  display: block;
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell[data-sidebar-state="collapsed"] .brand-copy,
.app-shell[data-sidebar-state="collapsed"] .brand-logo,
.app-shell[data-sidebar-state="collapsed"] .nav-label,
.app-shell[data-sidebar-state="collapsed"] .nav-chevron,
.app-shell[data-sidebar-state="collapsed"] .nav-sublist {
  display: none;
}

.app-shell[data-sidebar-state="collapsed"] .brand-mark {
  display: block;
}

.app-shell[data-sidebar-state="collapsed"] .brand,
.app-shell[data-sidebar-state="collapsed"] .nav-item,
.app-shell[data-sidebar-state="collapsed"] .sidebar-toggle {
  justify-content: center;
}

.content-shell {
  min-width: 0;
  overflow-x: hidden;
  padding: 24px;
}

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

h1 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.health {
  background: #ffffff;
  border: 1px solid #cfd7e3;
  border-radius: 999px;
  color: #475467;
  font-size: 13px;
  padding: 7px 12px;
  white-space: nowrap;
}

.health.ok {
  border-color: #75c69b;
  color: #067647;
}

.health.error {
  border-color: #f2a7a0;
  color: #b42318;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 16px;
}

.summary,
.status-grid,
.dashboard-grid,
.metric-grid {
  display: grid;
  gap: 12px;
}

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

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

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

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

.panel,
.toolbar-panel,
.detail,
.alert-card,
.stat-card,
.status-grid > div {
  background: #ffffff;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
}

.panel,
.toolbar-panel,
.detail {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.stat-card,
.status-grid > div {
  padding: 14px;
}

.stat-card.accent {
  border-left: 4px solid #175cd3;
}

.stat-card.warn {
  border-left: 4px solid #d92d20;
}

.stat-card span,
.status-grid span,
.metric-grid span {
  display: block;
  font-size: 24px;
  font-weight: 780;
}

.stat-card small,
.status-grid small,
.metric-grid small {
  color: #667085;
}

.section-heading,
.inventory-snapshot-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.section-heading h2,
.section-heading h3,
.inventory-snapshot-header h3 {
  margin: 0;
}

.section-heading h2 {
  font-size: 18px;
}

.section-heading h3 {
  font-size: 15px;
}

.section-heading.compact {
  align-items: flex-start;
}

.section-heading > span,
.inventory-snapshot-header p {
  color: #667085;
  font-size: 13px;
  margin: 0;
}

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

.heading-actions span {
  color: #667085;
  font-size: 13px;
}

.section-note {
  color: #475467;
  line-height: 1.5;
  margin: -2px 0 4px;
  max-width: 980px;
}

.section-tabs {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  width: max-content;
}

.section-tab {
  background: transparent;
  border-color: transparent;
  color: #475467;
  min-height: 34px;
  padding: 0 14px;
}

.section-tab.active {
  background: #ffffff;
  border-color: #d0d5dd;
  color: #175cd3;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.user-tab-panel {
  display: grid;
  gap: 14px;
}

.import-panel {
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.import-template-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.import-template-fields span {
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #175cd3;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.import-bar {
  align-items: center;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1.2fr);
  margin-top: 12px;
  padding: 10px 12px;
}

.import-bar input[type="file"] {
  min-width: 0;
}

.import-bar span {
  color: #667085;
  font-size: 13px;
}

.read-only-note {
  align-items: center;
  background: #f2f4f7;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: #475467;
  display: inline-flex;
  font-size: 13px;
  font-weight: 650;
  min-height: 34px;
  padding: 0 10px;
}

.controls {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.controls .wide {
  grid-column: span 2;
}

.controls label,
.save-filter-form,
.comment-form label,
.policy-controls label {
  color: #475467;
  display: grid;
  font-size: 13px;
  font-weight: 650;
  gap: 6px;
}

.controls input,
.controls select,
.controls input[type="date"],
.save-filter-form input,
.comment-form textarea,
.settings-form input,
.settings-form select,
.rule-editor input,
.rule-editor select,
.rule-editor textarea,
.policy-controls select,
.policy-controls button {
  min-height: 38px;
  padding: 0 10px;
  width: 100%;
}

.comment-form textarea,
.rule-editor textarea {
  line-height: 1.45;
  min-height: 86px;
  padding: 10px;
  resize: vertical;
}

.policy-editor-panel {
  border-color: #cdddf3;
}

.rule-editor {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.settings-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 0.38fr) minmax(520px, 1fr);
}

.settings-grid > * {
  min-width: 0;
}

.settings-wide {
  grid-column: 1 / -1;
}

.tenant-table {
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  overflow-x: auto;
}

.tenant-manage-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.2fr) 110px minmax(210px, 0.9fr);
  min-width: 760px;
  padding: 10px 12px;
}

.tenant-manage-row + .tenant-manage-row {
  border-top: 1px solid #eef2f6;
}

.tenant-manage-row.header {
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.tenant-manage-row input {
  min-height: 36px;
  padding: 0 10px;
  width: 100%;
}

.tenant-manage-row small {
  color: #667085;
  display: block;
  font-size: 12px;
}

.status-pill.disabled {
  background: #f2f4f7;
  color: #475467;
}

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

.identity-form {
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  margin: 16px 0;
  padding: 12px;
}

.identity-form .wide {
  grid-column: span 2;
}

.settings-form label {
  color: #475467;
  display: grid;
  font-size: 13px;
  font-weight: 650;
  gap: 6px;
}

.settings-form .checkbox-row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.settings-form .checkbox-row input {
  min-height: auto;
  width: auto;
}

.advanced-options {
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px 12px;
}

.advanced-options summary {
  color: #475467;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.advanced-options[open] summary {
  margin-bottom: 10px;
}

.field-with-action {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.field-with-action button {
  min-height: 40px;
  white-space: nowrap;
  width: auto;
}

.settings-form button {
  width: 100%;
}

.form-status {
  color: #475467;
  font-size: 13px;
  margin: 0;
  min-height: 18px;
}

.rule-editor [hidden] {
  display: none;
}

.rule-editor label {
  color: #475467;
  display: grid;
  font-size: 13px;
  font-weight: 650;
  gap: 6px;
}

.rule-editor .wide,
.editor-actions {
  grid-column: 1 / -1;
}

.editor-guidance {
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 8px;
  color: #344054;
  display: grid;
  gap: 4px;
  line-height: 1.45;
  padding: 12px 14px;
}

.editor-guidance strong {
  color: #182230;
}

.field-help {
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.editor-toggle {
  align-self: end;
  min-height: 38px;
}

.condition-builder {
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.condition-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

.condition-header h3 {
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
}

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

.add-condition-button {
  justify-self: start;
}

.condition-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(170px, 0.45fr) minmax(220px, 1fr) auto;
}

.condition-row button {
  min-width: 96px;
}

.condition-summary {
  background: #f8fafc;
  border: 1px solid #e4eaf1;
  border-radius: 6px;
  color: #344054;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 8px;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

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

.saved-filter-bar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.save-filter-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.saved-filter-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-filter-empty {
  color: #667085;
  font-size: 13px;
}

.saved-filter-item {
  align-items: center;
  display: inline-flex;
}

.saved-filter-item button:first-child {
  border-radius: 999px 0 0 999px;
  min-height: 32px;
  padding: 0 10px;
}

.saved-filter-item .icon-button {
  border-left: 0;
  border-radius: 0 999px 999px 0;
  min-height: 32px;
  padding: 0;
  text-transform: uppercase;
  width: 32px;
}

.alert-status-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.alert-status-tab {
  align-items: center;
  background: #ffffff;
  border-color: #d0d5dd;
  color: #344054;
  display: inline-flex;
  gap: 7px;
  font-weight: 700;
  line-height: 1;
  min-height: 30px;
  padding: 0 10px;
}

.alert-status-tab-count {
  align-items: center;
  background: #eef4ff;
  border-radius: 999px;
  color: #175cd3;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-width: 20px;
  padding: 3px 6px;
}

.alert-status-tab[aria-pressed="true"] {
  background: #175cd3;
  border-color: #175cd3;
  color: #ffffff;
}

.alert-status-tab[aria-pressed="true"] .alert-status-tab-count {
  background: #ffffff;
  color: #175cd3;
}

.alert-bulk-actions {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  width: fit-content;
}

.bulk-select-toggle {
  align-items: center;
  color: #344054;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

.bulk-selection-count {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.bulk-action-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-bar {
  align-items: center;
  color: #475467;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.pagination-bar button {
  background: #ffffff;
  border-color: #d0d5dd;
  color: #344054;
  font-weight: 700;
  min-height: 30px;
  padding: 0 10px;
}

.pagination-bar button:disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.pagination-summary,
.pagination-page {
  font-size: 12px;
  font-weight: 700;
}

.status-filter-control {
  display: none;
}

.layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.2fr);
}

.layout > *,
.dashboard-grid > *,
.summary > *,
.status-grid > * {
  min-width: 0;
}

.queue,
.policy-list,
.user-list,
.inventory-list {
  align-content: start;
  align-items: start;
  display: grid;
  gap: 10px;
  grid-auto-rows: max-content;
}

.inventory-dashboard,
.user-dashboard {
  display: grid;
  gap: 14px;
}

.alert-list-item {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: 28px minmax(0, 1fr);
  width: 100%;
}

.alert-select {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  display: flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.alert-select input {
  accent-color: #175cd3;
  margin: 0;
}

.alert-card {
  align-content: start;
  align-items: start;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-auto-rows: max-content;
  min-height: auto;
  min-width: 0;
  overflow: hidden;
  padding: 9px;
  text-align: left;
  white-space: normal;
  width: 100%;
}

.alert-card * {
  max-width: 100%;
  min-width: 0;
}

.alert-card.selected {
  border-color: #175cd3;
  box-shadow: 0 0 0 2px rgba(23, 92, 211, 0.12);
}

.alert-title-row,
.meta-row,
.action-row,
.policy-title-row,
.user-card-header,
.mode-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.alert-title-row {
  align-items: flex-start;
}

.alert-card .alert-title-row,
.alert-card .meta-row {
  align-items: flex-start;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
}

.action-row {
  flex-wrap: wrap;
}

.detail .action-row {
  background: #f8fafc;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  justify-content: flex-start;
  padding: 10px;
}

.detail .action-row button {
  flex: 1 1 170px;
  min-width: 0;
}

.alert-detail-header {
  align-items: flex-start;
  background: #ffffff;
  border-bottom: 1px solid #eef2f6;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  margin: -16px -16px 0;
  padding: 16px;
  position: sticky;
  top: -16px;
  z-index: 2;
}

.alert-detail-header > div {
  min-width: 0;
}

.quick-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.quick-action {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #d9e2ef;
  border-left: 4px solid #7a5af8;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  color: #182230;
  display: grid;
  gap: 2px;
  justify-content: stretch;
  line-height: 1.2;
  min-height: 72px;
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
  white-space: normal;
}

.quick-action:hover {
  background: #f8fafc;
  border-color: #b8c7dc;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.09);
  transform: translateY(-1px);
}

.quick-action:focus-visible {
  outline: 3px solid rgba(23, 92, 211, 0.22);
  outline-offset: 2px;
}

.quick-action.primary {
  background: #eff6ff;
  border-color: #b2ccff;
  border-left-color: #175cd3;
  color: #123b7a;
}

.quick-action.danger {
  background: #fff6f5;
  border-color: #fecdca;
  border-left-color: #d92d20;
  color: #7a271a;
}

.quick-action.review {
  background: #f7f5ff;
  border-color: #d9d6fe;
  border-left-color: #7a5af8;
  color: #3e1c96;
}

.quick-action.is-current,
.quick-action:disabled {
  background: #f2f4f7;
  border-color: #d0d5dd;
  border-left-color: #667085;
  box-shadow: none;
  color: #667085;
  cursor: default;
  transform: none;
}

.quick-action-kicker {
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-action strong {
  color: inherit;
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.quick-action small {
  color: #667085;
  display: block;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.alert-header-meta {
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px;
  margin-top: 8px;
}

.alert-header-meta span {
  background: #f8fafc;
  border: 1px solid #e4eaf1;
  border-radius: 999px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 4px 8px;
}

.alert-title-row > *,
.policy-title-row > *,
.user-card-header > *,
.mode-row > * {
  min-width: 0;
}

.alert-title-row small,
.policy-target-box small {
  color: #667085;
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alert-card-badges {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.alert-card h2,
.detail h2,
.user-card h3,
.policy-item h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alert-card h2 {
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.alert-card p,
.detail p,
.user-card p,
.policy-item p {
  color: #475467;
  line-height: 1.45;
  margin: 0;
}

.alert-card-facts {
  display: grid;
  gap: 6px 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alert-fact,
.alert-meta-item {
  align-content: start;
  align-items: start;
  border-left: 2px solid #d0d5dd;
  display: grid;
  gap: 2px;
  grid-template-rows: max-content max-content;
  min-width: 0;
  padding-left: 7px;
}

.alert-fact-wide {
  grid-column: 1 / -1;
}

.alert-fact-label {
  color: #98a2b3;
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.alert-fact-value {
  color: #344054;
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alert-card-meta {
  border-top: 1px solid #eef2f6;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding-top: 7px;
}

.alert-card .meta-row span {
  color: #667085;
  display: block;
  font-size: 12px;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alert-card-facts .alert-date,
.alert-header-meta .alert-date {
  color: #101828;
  font-weight: 700;
}

.meta-row {
  color: #667085;
  flex-wrap: wrap;
  font-size: 13px;
  justify-content: flex-start;
}

.meta-row span,
.detail-section > p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail {
  align-items: stretch;
  min-height: 760px;
  min-width: 0;
  overflow: visible;
  position: static;
}

.detail > *,
.detail-section > * {
  min-width: 0;
  width: 100%;
}

.detail * {
  box-sizing: border-box;
  max-width: 100%;
}

.detail-section {
  display: grid;
  gap: 8px;
}

.detail-section h3 {
  color: #344054;
  font-size: 13px;
  margin: 0;
  text-transform: uppercase;
}

.case-flow-panel {
  background: #f8fafc;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  padding: 12px;
}

.case-flow-current {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.case-flow-current strong {
  display: block;
  overflow-wrap: anywhere;
}

.status-flow {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.status-flow li {
  background: #ffffff;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
}

.status-flow li.done {
  border-color: #abefc6;
}

.status-flow li.current {
  border-color: #175cd3;
  box-shadow: 0 0 0 2px rgba(23, 92, 211, 0.1);
}

.status-flow span {
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.status-flow small {
  color: #667085;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.policy-item {
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.38fr);
  padding: 12px;
}

.policy-target-box {
  background: #f8fafc;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 10px;
}

.policy-target-box.warning {
  background: #fffbeb;
  border-color: #fedf89;
}

.policy-target-box span,
.condition-chip small {
  color: #667085;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.policy-target-box strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.policy-condition-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  margin-top: 10px;
}

.policy-condition-cell {
  background: #ffffff;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
}

.policy-condition-cell span {
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.policy-condition-cell strong {
  color: #101828;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.condition-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.condition-chip {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e4eaf1;
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  font-size: 12px;
  gap: 5px;
  line-height: 1.2;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 5px 8px;
}

.user-card {
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.user-card-header {
  align-items: flex-start;
}

.policy-controls {
  align-content: start;
  display: grid;
  gap: 10px;
}

.toggle-label {
  align-items: center;
  grid-template-columns: auto 1fr;
}

.toggle-label input {
  height: 18px;
  width: 18px;
}

.mode-bars {
  display: grid;
  gap: 12px;
}

.mode-bar {
  display: grid;
  gap: 6px;
}

.bar-track {
  background: #eef2f6;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.bar-track span {
  background: #175cd3;
  display: block;
  height: 100%;
}

.mode-bar.warn .bar-track span {
  background: #dc6803;
}

.mode-bar.block .bar-track span {
  background: #d92d20;
}

.rank-list ol {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-list li {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 10px;
}

.rank-list span {
  overflow-wrap: anywhere;
}

.rank-list strong {
  color: #175cd3;
}

.mini-panel {
  background: #ffffff;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

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

.distribution-row {
  display: grid;
  gap: 6px;
}

.distribution-label {
  align-items: center;
  color: #344054;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.distribution-label span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.distribution-label strong {
  color: #175cd3;
}

.paged-section {
  display: grid;
  gap: 10px;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pagination span {
  color: #667085;
  font-size: 13px;
}

.pagination button {
  min-height: 32px;
  padding: 0 10px;
}

.pagination button:disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.inventory-snapshot {
  display: grid;
  gap: 10px;
}

.snapshot-table,
.user-table,
.portal-user-table,
.portal-audit-table {
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  overflow: auto;
}

.snapshot-row,
.user-row,
.portal-user-row,
.portal-audit-row {
  min-width: 920px;
}

.snapshot-row.header,
.snapshot-row summary,
.user-row {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.snapshot-row.header,
.snapshot-row summary {
  grid-template-columns: minmax(185px, 1.15fr) minmax(120px, 0.8fr) 92px minmax(150px, 1fr) minmax(150px, 0.9fr) minmax(190px, 0.85fr);
}

.user-row {
  grid-template-columns: minmax(180px, 1.1fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(130px, 0.8fr) 62px minmax(130px, 0.75fr) minmax(150px, 0.8fr);
}

.portal-user-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1.2fr) 120px 130px minmax(150px, 0.9fr) minmax(220px, 1fr);
  padding: 10px;
}

.settings-wide .portal-user-row {
  min-width: 820px;
}

.extension-token-table .portal-user-row {
  min-width: 1280px;
  grid-template-columns: 56px minmax(180px, 1.2fr) 120px minmax(140px, 0.8fr) minmax(130px, 0.8fr) 130px 130px 130px 120px minmax(150px, 0.8fr);
}

.token-use-radio {
  min-height: auto;
  width: auto;
}

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

.portal-audit-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 0.8fr) minmax(150px, 0.9fr) minmax(170px, 0.9fr) minmax(170px, 1fr) minmax(240px, 1.2fr);
  padding: 10px;
}

.snapshot-row + .snapshot-row,
.user-row + .user-row,
.portal-user-row + .portal-user-row,
.portal-audit-row + .portal-audit-row {
  border-top: 1px solid #eef2f6;
}

.snapshot-row.header,
.user-row.header,
.portal-user-row.header,
.portal-audit-row.header {
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.snapshot-row summary {
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.snapshot-row summary::after {
  border: solid #667085;
  border-width: 0 2px 2px 0;
  content: "";
  height: 7px;
  pointer-events: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 160ms ease;
  width: 7px;
}

.snapshot-row[open] summary::after {
  transform: translateY(-40%) rotate(225deg);
}

.snapshot-row summary > span,
.user-row > span,
.portal-user-row > span,
.portal-audit-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.snapshot-row small,
.user-row small,
.portal-user-row small,
.portal-audit-row small {
  color: #667085;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.portal-user-row select {
  min-height: 34px;
  padding: 0 8px;
  width: 100%;
}

.compact-toggle {
  font-weight: 600;
}

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

.row-actions button {
  min-height: 34px;
  padding: 0 10px;
}

.device-id-trigger {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.device-picker-backdrop {
  align-items: center;
  background: rgba(16, 24, 40, 0.56);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 40;
}

.device-picker-dialog {
  background: #ffffff;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.28);
  display: grid;
  gap: 14px;
  max-height: min(760px, calc(100vh - 48px));
  max-width: 820px;
  overflow: hidden;
  padding: 18px;
  width: min(820px, 100%);
}

.device-picker-header,
.device-picker-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.device-picker-header h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.device-picker-header p:not(.eyebrow),
.device-picker-actions span {
  color: #667085;
  font-size: 13px;
  margin: 4px 0 0;
}

.device-picker-search {
  display: grid;
  gap: 6px;
  font-weight: 650;
}

.device-picker-search input {
  min-height: 40px;
  padding: 0 11px;
  width: 100%;
}

.device-picker-list {
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: grid;
  max-height: 420px;
  overflow: auto;
}

.device-picker-option {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
  padding: 12px;
}

.device-picker-option + .device-picker-option {
  border-top: 1px solid #eef2f6;
}

.device-picker-option:hover {
  background: #f8fafc;
}

.device-picker-option input {
  margin-top: 3px;
  min-height: auto;
}

.device-picker-option strong,
.device-picker-option small {
  display: block;
  overflow-wrap: anywhere;
}

.device-picker-option small {
  color: #667085;
  font-size: 12px;
  margin-top: 3px;
}

.device-picker-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.expand-label {
  color: #175cd3;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.snapshot-row .extension-table {
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  margin: 0;
}

.extension-table {
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  overflow: auto;
}

.extension-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1.3fr) 88px 110px minmax(160px, 1fr) minmax(120px, 0.8fr);
  min-width: 760px;
  padding: 10px;
}

.extension-row + .extension-row {
  border-top: 1px solid #eef2f6;
}

.extension-row.header {
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.extension-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.extension-row small {
  color: #667085;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.risk-flag {
  background: #fff1cf;
  border-radius: 999px;
  color: #93370d;
  display: inline-flex;
  font-size: 12px;
  margin: 0 4px 4px 0;
  padding: 4px 8px;
}

.badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  padding: 6px 8px;
  text-transform: uppercase;
}

.badge.high,
.badge.critical {
  background: #fee4e2;
  color: #b42318;
}

.badge.medium {
  background: #fff1cf;
  color: #93370d;
}

.badge.low,
.badge.informational,
.badge.trigger {
  background: #e8f2ff;
  color: #175cd3;
}

.badge.open {
  background: #ecfdf3;
  color: #067647;
}

.badge.investigating {
  background: #fff1cf;
  color: #93370d;
}

.badge.acknowledged {
  background: #eef2f6;
  color: #475467;
}

.badge.closed {
  background: #f3f4f6;
  color: #667085;
}

.kv {
  display: grid;
  gap: 6px;
  margin: 0;
}

.kv div {
  display: grid;
  gap: 10px;
  grid-template-columns: 132px minmax(0, 1fr);
  min-width: 0;
}

.kv dt {
  color: #667085;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.kv .observed-data-block {
  background: #101828;
  border: 1px solid #344054;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  margin: 4px 0;
  padding: 12px 14px;
}

.kv .observed-data-block dt {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kv .observed-data-block dd {
  color: #d1fadf;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
  white-space: pre-wrap;
}

.kv .observed-data-block code {
  font: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.compact-kv {
  border-top: 1px solid #eef2f6;
  padding-top: 12px;
}

.extension-health {
  display: grid;
  gap: 16px;
}

.overview-kpi-grid { display:grid; gap:12px; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:18px; }
.overview-kpi-grid .stat-card { align-items:flex-start; background:linear-gradient(145deg,#fff,#f8fafc); border:1px solid #e4e7ec; border-top:4px solid #6172f3; border-radius:14px; display:flex; flex-direction:column; min-height:112px; padding:16px; }
.overview-kpi-grid .stat-card small { color:#667085; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.overview-kpi-grid .stat-card span { color:#101828; font-size:30px; font-weight:800; line-height:1.2; }
.overview-kpi-grid .stat-card em { color:#98a2b3; font-size:11px; font-style:normal; margin-top:auto; }
.overview-kpi-grid .healthy{border-top-color:#12b76a}.overview-kpi-grid .warning{border-top-color:#f79009}.overview-kpi-grid .cyan{border-top-color:#06aed4}.overview-kpi-grid .purple{border-top-color:#7f56d9}.overview-kpi-grid .orange{border-top-color:#ef6820}.overview-kpi-grid .danger{border-top-color:#d92d20}.overview-kpi-grid .slate{border-top-color:#475467}
.overview-chart-grid { display:grid; gap:18px; grid-template-columns:minmax(0,2fr) minmax(260px,1fr); margin-bottom:18px; }
.activity-chart { min-height:235px; }
.activity-bars { align-items:end; border-bottom:1px solid #e4e7ec; display:grid; gap:4px; grid-template-columns:repeat(24,minmax(5px,1fr)); height:185px; padding:16px 4px 25px; }
.activity-hour { align-items:end; display:flex; gap:2px; height:100%; position:relative; }
.activity-hour i { border-radius:3px 3px 0 0; flex:1; min-height:2px; }.activity-hour i.observed{background:#6172f3}.activity-hour i.alert{background:#f79009}.activity-hour i.blocked{background:#d92d20}
.activity-hour small { bottom:-22px; color:#98a2b3; font-size:9px; left:0; position:absolute; }
.chart-legend { display:flex; gap:18px; justify-content:center; padding-top:12px; }.chart-legend span:before{border-radius:50%;content:"";display:inline-block;height:8px;margin-right:6px;width:8px}.chart-legend .observed:before{background:#6172f3}.chart-legend .alert:before{background:#f79009}.chart-legend .blocked:before{background:#d92d20}
.device-health-chart { align-items:center; display:flex; flex-direction:column; gap:22px; justify-content:center; min-height:235px; }.health-donut{align-items:center;background:conic-gradient(#12b76a calc(var(--online)*1%),#f79009 0);border-radius:50%;display:flex;height:150px;justify-content:center;width:150px}.health-donut:before{background:#fff;border-radius:50%;content:"";height:104px;position:absolute;width:104px}.health-donut div{display:grid;position:relative;text-align:center}.health-donut strong{font-size:26px}.health-donut small{color:#667085}.health-legend{display:flex;gap:20px}.health-legend span{color:#667085}.health-legend i{border-radius:50%;display:inline-block;height:9px;margin-right:5px;width:9px}.health-legend i.online{background:#12b76a}.health-legend i.offline{background:#f79009}.health-legend strong{color:#101828;margin-left:5px}
.effectiveness-list{display:grid;gap:13px}.effectiveness-row{align-items:center;display:grid;gap:14px;grid-template-columns:minmax(150px,1fr) minmax(160px,3fr) 36px}.effectiveness-row>div:first-child{display:grid}.effectiveness-row small{color:#98a2b3;text-transform:capitalize}.effectiveness-track{background:#eef2f6;border-radius:999px;height:10px;overflow:hidden}.effectiveness-track i{background:linear-gradient(90deg,#7f56d9,#6172f3);border-radius:inherit;display:block;height:100%}.effectiveness-row b{text-align:right}
@media(max-width:900px){.overview-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-chart-grid{grid-template-columns:1fr}}@media(max-width:520px){.overview-kpi-grid{grid-template-columns:1fr 1fr}.effectiveness-row{grid-template-columns:1fr 40px}.effectiveness-track{grid-column:1/-1;grid-row:2}}

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

.fleet-health-metric {
  background: linear-gradient(145deg, #f8fafc, #ffffff);
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px;
}

.fleet-health-metric > span {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.fleet-health-metric strong {
  color: #101828;
  font-size: 28px;
  line-height: 1;
}

.fleet-health-metric small { color: #667085; line-height: 1.35; }
.fleet-health-metric.online { border-top: 3px solid #12b76a; }
.fleet-health-metric.offline { border-top: 3px solid #f79009; }
.fleet-health-metric.devices { border-top: 3px solid #6172f3; }
.fleet-health-metric.users { border-top: 3px solid #7f56d9; }

.fleet-health-footer {
  align-items: center;
  background: #101828;
  border-radius: 10px;
  color: #d0d5dd;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 12px 14px;
}

.fleet-health-footer strong { color: #ffffff; margin-right: 8px; }
.fleet-endpoint { color: #98a2b3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

@media (max-width: 760px) {
  .fleet-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-health-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}

.raw-json {
  background: #101828;
  border-radius: 8px;
  color: #f2f4f7;
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 0;
  max-height: 320px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.timeline,
.event-timeline,
.comment-list,
.response-chain {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.timeline li {
  display: grid;
  gap: 10px;
  grid-template-columns: 14px minmax(0, 1fr);
}

.timeline-marker {
  background: #175cd3;
  border-radius: 999px;
  height: 10px;
  margin-top: 5px;
  width: 10px;
}

.timeline-body {
  border-bottom: 1px solid #eef2f6;
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
}

.timeline li:last-child .timeline-body {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-title {
  font-weight: 750;
}

.timeline-meta {
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px;
}

.event-timeline li {
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 116px minmax(0, 1fr);
  padding: 10px;
}

.event-timeline li.trigger {
  border-color: #175cd3;
  box-shadow: inset 3px 0 0 #175cd3;
}

.event-time {
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.event-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.event-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.event-title {
  font-weight: 750;
  overflow-wrap: anywhere;
}

.event-url {
  color: #475467;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.event-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.event-facts span {
  background: #eef2f6;
  border-radius: 999px;
  color: #475467;
  font-size: 12px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 4px 8px;
  white-space: normal;
  word-break: break-word;
}

.response-chain {
  grid-template-columns: 1fr;
}

.response-chain li {
  align-items: start;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(150px, 0.38fr) minmax(0, 1fr);
  min-width: 0;
  padding: 10px;
}

.response-chain li.pending {
  border-style: dashed;
}

.chain-node,
.chain-detail,
.comment-form {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.chain-node span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.chain-node strong {
  overflow-wrap: anywhere;
}

.chain-detail {
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px;
  min-width: 0;
}

.chain-detail span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.disclosure {
  border-top: 1px solid #eef2f6;
  padding-top: 8px;
}

.disclosure summary {
  color: #344054;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.comment-list li {
  background: #f8fafc;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.comment-form button {
  justify-self: start;
}

.muted {
  color: #667085;
}

.empty,
.error {
  background: #ffffff;
  border: 1px dashed #c8d0da;
  border-radius: 8px;
  color: #667085;
  padding: 24px;
}

.empty.compact {
  padding: 12px;
}

.error {
  border-color: #f2a7a0;
  color: #b42318;
}

@media (max-width: 1100px) {
  .summary,
  .status-grid,
  .dashboard-grid,
  .layout,
  .controls,
  .saved-filter-bar,
  .save-filter-form,
  .settings-grid,
  .policy-item {
    grid-template-columns: 1fr;
  }

  .detail {
    max-height: none;
    position: static;
  }

  .controls .wide {
    grid-column: span 1;
  }

  .response-chain {
    grid-template-columns: 1fr;
  }

  .response-chain li::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .app-shell,
  .app-shell[data-sidebar-state="collapsed"] {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: static;
  }

  .nav-list {
    display: flex;
    overflow-x: auto;
  }

  .nav-item,
  .sidebar-toggle {
    flex: 0 0 auto;
    width: auto;
  }

  .sidebar-toggle {
    display: none;
  }

  .app-shell[data-sidebar-state="collapsed"] .brand-copy,
  .app-shell[data-sidebar-state="collapsed"] .nav-label {
    display: block;
  }

  .content-shell {
    padding: 16px;
  }

  .topbar,
  .section-heading,
  .inventory-snapshot-header,
  .alert-title-row,
  .alert-detail-header,
  .action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .alert-detail-header {
    display: grid;
    grid-template-columns: 1fr;
    position: static;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .controls,
  .saved-filter-bar,
  .save-filter-form,
  .metric-grid,
  .alert-card-facts,
  .import-bar,
  .settings-grid,
  .rule-editor,
  .condition-row,
  .status-flow,
  .event-timeline li,
  .response-chain li {
    grid-template-columns: 1fr;
  }

  .kv div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section-tabs {
    width: 100%;
  }

  .section-tab {
    flex: 1 1 0;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }
}
