:root {
  --brand-primary: #1fb5c6;
  --brand-secondary: #1e6fd6;
  --brand-accent: #24b36b;
  --brand-warn: #f5a524;
  --brand-danger: #e5484d;
  --brand-dark: #0a2c3f;
  --text-primary: #0b1724;
  --text-muted: #5c6b7a;
  --surface: #ffffff;
  --surface-alt: #edf7fb;
  --border-soft: #d9e2ec;
  --shadow-soft: 0 18px 50px rgba(10, 35, 58, 0.14);
  --radius-lg: 18px;
  --sidebar: rgba(6, 18, 32, 0.94);
  --portal-zoom: .9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.app-body {
  min-height: 100vh;
  margin: 0;
  zoom: var(--portal-zoom);
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 12% 18%, rgba(38, 201, 218, 0.16), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(36, 179, 107, 0.13), transparent 30%),
    linear-gradient(135deg, #f4fbff 0%, #ebf4ff 52%, #f6fbff 100%);
}

a {
  color: #155bd4;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  padding-top: 2.25rem;
  padding-bottom: 2.5rem;
}

.app-main.with-sidebar {
  margin-left: 270px;
}

.app-main:not(.with-sidebar) {
  padding-top: 1.5rem;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  width: 270px;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(180deg, var(--sidebar), rgba(10, 44, 63, 0.96));
  box-shadow: 0 22px 45px rgba(0, 20, 40, 0.26);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand-stack {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .45rem .55rem;
  color: #fff;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}

.brand-icon {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
}

.brand-stack strong,
.brand-stack small {
  display: block;
  line-height: 1.1;
}

.brand-stack small {
  margin-top: .25rem;
  color: #c3cee6;
  text-transform: uppercase;
  font-size: .72rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.section-title {
  margin: .4rem .35rem .45rem;
  color: rgba(255, 255, 255, .58);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-nav .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255, 255, 255, .82);
  padding: .68rem .78rem;
  border-radius: 12px;
  font-weight: 600;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: #fff;
  background: rgba(31, 181, 198, .18);
}

.sidebar-nav .nav-link i {
  width: 1.1rem;
  color: #91dcf3;
}

.sidebar-nav .nav-link-alerts {
  gap: .55rem;
}

.sidebar-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  max-width: 4.4rem;
  height: 1.35rem;
  margin-left: .08rem;
  padding: 0 .42rem;
  border: 1px solid rgba(248, 113, 113, .7);
  border-radius: 999px;
  background: rgba(254, 226, 226, .98);
  color: #b91c1c;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-alert-badge.is-empty {
  border-color: rgba(148, 163, 184, .42);
  background: rgba(226, 232, 240, .86);
  color: #64748b;
}

.sidebar-nav .nav-link-alerts.active .sidebar-alert-badge,
.sidebar-nav .nav-link-alerts:hover .sidebar-alert-badge {
  background: #fff;
  border-color: rgba(255, 255, 255, .82);
  color: #b91c1c;
}

.sidebar-footer {
  margin-top: auto;
}

.user-chip {
  display: grid;
  gap: .35rem;
  padding: .8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
}

.badge-company {
  width: fit-content;
  color: #dff8ff;
  background: rgba(31, 181, 198, .22);
}

.app-shell.sidebar-collapsed .app-sidebar {
  width: 92px;
  padding-left: .65rem;
  padding-right: .65rem;
}

.app-shell.sidebar-collapsed .app-main.with-sidebar {
  margin-left: 92px;
}

.app-shell.sidebar-collapsed .brand-stack span,
.app-shell.sidebar-collapsed .sidebar-nav span,
.app-shell.sidebar-collapsed .section-title,
.app-shell.sidebar-collapsed .user-chip {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-nav .sidebar-alert-badge {
  display: inline-flex;
  position: absolute;
  top: .42rem;
  right: .34rem;
  min-width: 1rem;
  max-width: 2.15rem;
  height: 1rem;
  padding: 0 .24rem;
  font-size: .54rem;
}

.app-shell.sidebar-collapsed .brand-stack,
.app-shell.sidebar-collapsed .sidebar-nav .nav-link {
  justify-content: center;
}

.app-footer {
  color: var(--text-muted);
  font-size: .9rem;
  padding: 1.4rem 0;
}

.app-footer {
  margin-left: 270px;
}

.app-shell.sidebar-collapsed .app-footer {
  margin-left: 92px;
}

.app-main:not(.with-sidebar) ~ .app-footer {
  margin-left: 0;
}

.card,
.glass-card,
.hero-card {
  border: 1px solid rgba(217, 226, 236, .86);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.card {
  background: rgba(255, 255, 255, .94);
}

.glass-card {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
}

.hero-card {
  min-height: 180px;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background:
    linear-gradient(135deg, rgba(10, 44, 63, .98), rgba(30, 111, 214, .92)),
    #0a2c3f;
}

.badge-soft,
.badge-hint {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.badge-soft {
  color: #dff8ff;
  background: rgba(255, 255, 255, .12);
}

.badge-hint {
  color: #165c75;
  background: #e0f7fb;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.device-token-note {
  padding: .65rem .85rem;
  font-size: .92rem;
}

.device-workspace-nav {
  position: sticky;
  top: .75rem;
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .58rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 16px;
  background: rgba(247, 252, 255, .92);
  box-shadow: 0 12px 32px rgba(10, 35, 58, .1);
  backdrop-filter: blur(10px);
}

.device-workspace-nav .app-tabs {
  margin: 0;
}

.device-workspace-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .45rem .78rem;
}

.device-action-trigger {
  flex: 0 0 auto;
  min-height: 40px;
  font-weight: 800;
}

.device-tab-content {
  margin-top: 1rem;
}

.eyebrow {
  color: #1e6fd6;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}

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

.stat-card .label {
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-card .value {
  margin-top: .35rem;
  font-size: 2.05rem;
  font-weight: 800;
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  margin-bottom: .8rem;
}

.metric-contrast {
  color: #fff;
  background: linear-gradient(135deg, #0a2c3f, #1e6fd6);
}

.metric-contrast .label,
.metric-contrast .metric-sub {
  color: rgba(255, 255, 255, .78);
}

.metric-contrast .metric-icon {
  color: #0a2c3f;
  background: #dff8ff;
}

.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 39, 67, .96), rgba(22, 93, 255, .92)),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, .22), transparent 28%);
  box-shadow: 0 18px 42px rgba(10, 35, 58, .14);
}

.dashboard-hero h2 {
  margin: .25rem 0 .35rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 850;
}

.dashboard-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.dashboard-hero .eyebrow {
  color: #c9f6ff;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .9rem;
}

.dashboard-kpi {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
  min-height: 118px;
  padding: .95rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 16px;
  color: #0c1f3b;
  background: rgba(255, 255, 255, .88);
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(10, 35, 58, .06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.dashboard-kpi:hover {
  color: #0c1f3b;
  border-color: rgba(22, 93, 255, .3);
  box-shadow: 0 18px 38px rgba(10, 35, 58, .1);
  transform: translateY(-2px);
}

.dashboard-kpi-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #155bd4;
  background: #eef6ff;
  font-size: 1.2rem;
}

.dashboard-kpi-main small,
.dashboard-kpi-main strong,
.dashboard-kpi-main em {
  display: block;
}

.dashboard-kpi-main small {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-kpi-main strong {
  margin: .1rem 0;
  font-size: 2.05rem;
  line-height: 1;
}

.dashboard-kpi-main em {
  color: #385466;
  font-size: .84rem;
  font-style: normal;
}

.dashboard-kpi.kpi-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0a2c3f, #1e6fd6);
}

.dashboard-kpi.kpi-primary:hover {
  color: #fff;
}

.dashboard-kpi.kpi-primary .dashboard-kpi-icon {
  color: #0a2c3f;
  background: #dff8ff;
}

.dashboard-kpi.kpi-primary small,
.dashboard-kpi.kpi-primary em {
  color: rgba(255, 255, 255, .78);
}

.dashboard-kpi.kpi-alert .dashboard-kpi-icon {
  color: #b42318;
  background: #fff2f2;
}

.dashboard-kpi.kpi-auto .dashboard-kpi-icon {
  color: #0f6040;
  background: #ecfdf5;
}

.dashboard-ops-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(2, minmax(220px, .75fr));
  gap: .85rem;
}

.dashboard-ops-panel {
  display: grid;
  gap: .7rem;
  min-height: 116px;
  padding: .85rem .95rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 30px rgba(10, 35, 58, .05);
}

.dashboard-ops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
}

.dashboard-ops-head span {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  color: #385466;
  font-size: .84rem;
  font-weight: 850;
}

.dashboard-ops-head i {
  color: #155bd4;
}

.dashboard-ops-head strong {
  color: #0c1f3b;
  font-size: 1.55rem;
  line-height: 1;
}

.dashboard-ratio-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
  border: 1px solid rgba(197, 211, 232, .75);
}

.dashboard-ratio-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a, #20c463);
}

.dashboard-ops-meta,
.dashboard-alert-breakdown {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .42rem;
}

.dashboard-ops-meta small,
.dashboard-alert-breakdown span,
.dashboard-category-chip {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  min-height: 28px;
  padding: .24rem .52rem;
  border: 1px solid rgba(217, 226, 236, .88);
  border-radius: 999px;
  color: #385466;
  background: #f8fcff;
  font-size: .78rem;
  font-weight: 800;
}

.dashboard-alert-breakdown .severity-critical {
  color: #b42318;
  background: #fff2f2;
  border-color: rgba(222, 63, 63, .22);
}

.dashboard-alert-breakdown .severity-high {
  color: #b45309;
  background: #fff8e6;
  border-color: rgba(245, 158, 11, .28);
}

.dashboard-command-panel {
  overflow: hidden;
}

.dashboard-command-list {
  display: grid;
  gap: .6rem;
}

.dashboard-command-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: .72rem;
  align-items: center;
  min-height: 66px;
  padding: .65rem .72rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dashboard-command-row:hover {
  color: inherit;
  border-color: rgba(37, 99, 235, .28);
  box-shadow: 0 14px 30px rgba(15, 45, 80, .08);
  transform: translateY(-1px);
}

.dashboard-command-row strong {
  display: block;
  color: #0c1f3b;
  font-weight: 900;
}

.dashboard-command-row small {
  display: block;
  color: #52677d;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.devices-page-stack {
  display: grid;
  gap: 1rem;
}

.devices-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: 1rem;
  align-items: start;
}

.device-card-list {
  display: grid;
  gap: .7rem;
}

.device-card-list.compact {
  gap: .6rem;
}

.device-card-list.compact .row-main {
  display: block;
}

.device-card-row {
  display: grid;
  grid-template-columns: 28px 42px minmax(310px, .78fr) minmax(500px, 1.2fr) minmax(168px, auto);
  align-items: center;
  gap: .62rem;
  padding: .72rem .8rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 14px;
  color: inherit;
  background: rgba(255, 255, 255, .9);
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.device-card-list.compact .device-card-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.device-card-list .row-main {
  display: grid;
  grid-template-columns: minmax(170px, max-content) minmax(118px, max-content);
  align-items: center;
  column-gap: 1rem;
}

.device-card-list .row-main > strong,
.device-card-list .row-main > .device-display-name-line,
.device-card-list .row-main > small {
  grid-column: 1;
}

.device-display-name-line {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  min-width: 0;
}

.device-display-name-line > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.device-name-editor {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.device-name-edit-toggle {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #5c6f87;
  background: transparent;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.device-name-edit-toggle:hover,
.device-name-edit-toggle:focus-visible,
.device-name-editor.is-open .device-name-edit-toggle {
  color: #155bd4;
  border-color: rgba(21, 91, 212, .18);
  background: #eef6ff;
}

.device-name-edit-form {
  position: absolute;
  z-index: 20;
  top: calc(100% + .36rem);
  left: 0;
  display: flex;
  align-items: center;
  gap: .35rem;
  width: min(320px, 78vw);
  padding: .45rem;
  border: 1px solid rgba(191, 204, 222, .95);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 35, 60, .18);
}

.device-name-edit-form[hidden] {
  display: none;
}

.device-name-edit-form .form-control {
  min-width: 0;
}

.device-row-actions .btn,
.alert-info .btn[href*="installer"] {
  transform: none;
}

.device-row-actions .btn:hover,
.alert-info .btn[href*="installer"]:hover {
  transform: none;
}

.device-card-list .row-main .device-system-network {
  display: contents;
}

.device-card-list .row-main .device-os {
  grid-column: 1;
}

.device-card-list .row-main .device-ip-list {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}

.device-card-row:hover {
  color: inherit;
  border-color: rgba(22, 93, 255, .28);
  box-shadow: 0 12px 26px rgba(10, 35, 58, .06);
  transform: translateY(-1px);
}

.row-icon.device-online {
  color: #087044;
  background: #dff8ea;
}

.row-icon.device-offline {
  color: #6a7787;
  background: #eef2f7;
}

.device-card-meta,
.device-health-panel,
.device-health-chips,
.device-alert-chip,
.device-uptime-chip,
.device-bitlocker-chip,
.device-security-chip,
.device-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}

.device-row-actions {
  justify-content: flex-end;
  gap: .4rem;
  flex-wrap: nowrap;
}

.device-delete-form {
  margin: 0;
}

.device-select-cell,
.device-select-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .34rem;
  margin: 0;
  color: #52677d;
  font-size: .84rem;
  font-weight: 800;
}

.device-select-cell {
  min-width: 24px;
  min-height: 34px;
}

.devices-bulk-form {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
}

.devices-bulk-form .btn {
  min-height: 34px;
}

.device-card-meta {
  flex-direction: column;
  align-items: flex-start;
  min-width: 118px;
}

.device-health-panel {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  justify-content: space-between;
  gap: .5rem;
  padding: .48rem .56rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f5faff);
}

.device-health-chips {
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: .28rem;
}

.device-card-meta small,
.device-os {
  color: var(--text-muted);
}

.device-system-network {
  display: grid;
  grid-template-columns: minmax(210px, max-content) minmax(118px, max-content);
  align-items: center;
  column-gap: 1rem;
  margin-top: .12rem;
}

.device-os {
  display: block;
}

.device-ip-list {
  display: grid;
  gap: .2rem;
  justify-items: center;
  align-self: center;
  align-content: center;
}

.device-ip-list em {
  display: inline-flex;
  align-items: center;
  gap: .24rem;
  padding: .14rem .42rem;
  border-radius: 999px;
  color: #155b70;
  background: #eef8fb;
  font-size: .76rem;
  font-style: normal;
  font-weight: 750;
}

.device-alert-chip {
  width: auto;
  min-width: 48px;
  max-width: 82px;
  height: 32px;
  padding: 0 .42rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 999px;
  color: #6a7787;
  background: #f8fcff;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.device-alert-chip .bi {
  flex: 0 0 auto;
  line-height: 1;
}

.device-alert-chip strong {
  min-width: 0;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
}

.device-uptime-chip {
  min-height: 32px;
  padding: .26rem .5rem;
  border: 1px solid rgba(22, 93, 255, .18);
  border-radius: 999px;
  color: #155bd4;
  background: #eef6ff;
  font-size: .8rem;
  font-weight: 850;
  white-space: nowrap;
}

.device-bitlocker-chip {
  min-height: 32px;
  padding: .26rem .44rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 999px;
  color: #6a7787;
  background: #f8fcff;
  font-size: .8rem;
  font-weight: 850;
  white-space: nowrap;
}

.device-security-chip {
  min-height: 32px;
  padding: .26rem .44rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 999px;
  color: #6a7787;
  background: #f8fcff;
  font-size: .8rem;
  font-weight: 850;
  white-space: nowrap;
}

.device-security-chip.is-on {
  color: #087044;
  border-color: rgba(18, 126, 78, .22);
  background: #e7f8ef;
}

.device-security-chip.is-off {
  color: #b42318;
  border-color: rgba(222, 63, 63, .24);
  background: #fff2f2;
}

.device-bitlocker-chip.is-on {
  color: #087044;
  border-color: rgba(18, 126, 78, .22);
  background: #e7f8ef;
}

.device-bitlocker-chip.is-off {
  color: #b42318;
  border-color: rgba(222, 63, 63, .24);
  background: #fff2f2;
}

.device-alert-chip.has-alerts {
  color: #b42318;
  border-color: rgba(222, 63, 63, .24);
  background: #fff2f2;
}

.diagnostic-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .55rem;
}

.diagnostic-policy-form {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .32rem .42rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 999px;
  background: #fff;
}

.diagnostic-policy-form label,
.diagnostic-policy-form span {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.diagnostic-policy-form input {
  width: 72px;
  min-height: 30px;
  text-align: center;
}

.diagnostic-policy-form select {
  width: auto;
  min-height: 30px;
  padding-top: .18rem;
  padding-bottom: .18rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.diagnostic-policy-form .btn {
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border-radius: 999px;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(86px, .55fr) minmax(190px, 1.25fr) repeat(4, minmax(150px, 1fr));
  gap: .75rem;
  align-items: stretch;
}

.diagnostic-item {
  min-width: 0;
  padding: .5rem 0;
}

.diagnostic-item .fw-semibold,
.diagnostic-item .small {
  overflow-wrap: anywhere;
}

.diagnostic-item-compact {
  max-width: 120px;
}

.event-policy-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .55rem .65rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 14px;
  background: rgba(248, 252, 255, .94);
}

.event-policy-default-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 34px;
  margin: 0 .25rem 0 0;
  padding: .35rem .7rem;
  border: 1px solid rgba(31, 181, 198, .24);
  border-radius: 999px;
  background: #eef9fb;
  color: #0d5366;
  font-size: .82rem;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.event-policy-default-toggle .form-check-input {
  margin: 0;
}

.event-policy-form label,
.event-policy-form span {
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.event-policy-form input {
  width: 86px;
  min-height: 32px;
  text-align: center;
}

.event-policy-form select {
  width: auto;
  min-height: 32px;
  font-size: .82rem;
  font-weight: 800;
}

.event-policy-form input:disabled {
  color: #6c7786;
  background: #eef3f7;
}

.event-policy-hint {
  flex-basis: 100%;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
}

.alert-command-form {
  display: inline-flex;
  margin: 0;
}

.device-open-button {
  white-space: nowrap;
}

.dashboard-alert-list .alert-row {
  grid-template-columns: 10px minmax(0, 1fr) auto;
}

.dashboard-triage-panel .dashboard-alert-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.dashboard-triage-panel .alert-row {
  min-height: 92px;
  gap: .62rem;
  padding: .82rem .9rem;
  border-color: rgba(217, 226, 236, .72);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 252, 255, .92));
  box-shadow: 0 10px 24px rgba(10, 35, 58, .035);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.dashboard-triage-panel .alert-row:hover {
  border-color: rgba(37, 99, 235, .22);
  box-shadow: 0 14px 30px rgba(10, 35, 58, .065);
  transform: translateY(-1px);
}

.dashboard-triage-panel .severity-dot {
  width: 10px;
  height: 10px;
  margin-top: .22rem;
  opacity: .88;
}

.dashboard-triage-panel .alert-main strong {
  color: #13263a;
  font-size: .95rem;
  font-weight: 850;
  line-height: 1.35;
}

.dashboard-triage-panel .alert-main small {
  color: #65768a;
  font-size: .84rem;
}

.dashboard-triage-panel .severity-badge {
  align-self: start;
  min-height: 26px;
  padding: .22rem .56rem;
  border: 1px solid transparent;
  font-size: .76rem;
  font-weight: 850;
}

.dashboard-category-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .85rem;
}

.dashboard-category-chip {
  text-decoration: none;
}

.dashboard-category-chip:hover {
  color: #155bd4;
  border-color: rgba(22, 93, 255, .28);
}

.dashboard-category-chip strong {
  color: #0c1f3b;
}

.dashboard-category-empty {
  color: var(--text-muted);
  font-size: .84rem;
}

.dashboard-auto-resolved {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(217, 226, 236, .9);
}

.dashboard-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .7rem;
}

.dashboard-mini-head span {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  color: #0c1f3b;
  font-weight: 850;
}

.dashboard-mini-head a {
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-auto-list {
  display: grid;
  gap: .55rem;
}

.dashboard-auto-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: .6rem;
  padding: .65rem;
  border: 1px solid rgba(25, 135, 84, .18);
  border-radius: 12px;
  color: inherit;
  background: #f6fef9;
  text-decoration: none;
}

.dashboard-auto-row:hover {
  color: inherit;
  border-color: rgba(25, 135, 84, .34);
}

.auto-row-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #0f6040;
  background: #dcfce7;
}

.dashboard-auto-row strong,
.dashboard-auto-row small,
.dashboard-auto-row em {
  display: block;
}

.dashboard-auto-row strong {
  color: #0c1f3b;
  font-size: .92rem;
}

.dashboard-auto-row small {
  color: var(--text-muted);
  font-size: .8rem;
}

.dashboard-auto-row em {
  margin-top: .18rem;
  color: #0f6040;
  font-size: .78rem;
  font-style: normal;
  line-height: 1.3;
}

.dashboard-auto-empty {
  padding: .75rem;
  border: 1px dashed rgba(25, 135, 84, .25);
  border-radius: 12px;
  color: var(--text-muted);
  background: #fbfffd;
  font-size: .88rem;
}

.devices-main-panel {
  min-width: 0;
}

.devices-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 1.05rem;
}

.device-create-panel {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  align-items: end;
  gap: 1rem;
}

.create-panel-icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #155bd4;
  background: #eef6ff;
}

.create-panel-icon .bi {
  display: inline-block;
  color: currentColor;
  font-size: 1.18rem;
  line-height: 1;
}

.device-create-summary {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}

.device-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) minmax(150px, auto);
  align-items: end;
  gap: .7rem;
}

.device-create-field {
  min-width: 0;
}

.device-create-field .form-label {
  margin-bottom: .32rem;
  color: #0c1f3b;
  font-size: .86rem;
  font-weight: 800;
}

.device-create-submit {
  min-height: 38px;
  white-space: nowrap;
}

.devices-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: .65rem;
  margin-bottom: .85rem;
}

.devices-toolbar .data-search {
  flex: 1 1 260px;
  max-width: 360px;
}

.devices-filter-chips {
  flex: 0 1 auto;
  margin-top: 0;
  justify-content: flex-start;
}

.devices-visible-counter {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 34px;
  padding-inline: .72rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.ad-admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ad-admin-toolbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .55rem;
}

.ad-admin-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .72rem .82rem;
  border: 1px solid rgba(31, 181, 198, .22);
  border-radius: 12px;
  color: #0d5366;
  background: #eef9fb;
  font-size: .88rem;
  font-weight: 700;
}

.ad-admin-table th,
.ad-admin-table td {
  vertical-align: middle;
}

.ad-admin-switch {
  display: inline-flex;
  justify-content: center;
  margin: 0;
}

.ad-admin-switch .form-check-input {
  width: 2.8rem;
  height: 1.4rem;
  cursor: pointer;
}

.ad-admin-identity strong,
.ad-admin-identity small {
  display: block;
}

.ad-admin-identity small {
  color: var(--text-muted);
  font-size: .78rem;
  overflow-wrap: anywhere;
}

.ad-admin-legacy {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(217, 226, 236, .9);
}

.ad-admin-legacy-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.ad-admin-legacy-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .3rem .62rem;
  border: 1px solid rgba(217, 226, 236, .92);
  border-radius: 999px;
  color: #385466;
  background: #f8fcff;
  font-size: .8rem;
  font-weight: 800;
}

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

.device-token-banner span,
.device-token-banner small {
  display: block;
}

.device-token-banner code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.status-pill,
.severity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.status-pill.success {
  color: #0f5132;
  background: #d1f2df;
}

.status-pill.neutral {
  color: #495057;
  background: #eef1f4;
}

.status-pill.danger {
  color: #fff;
  background: #a51622;
}

.severity-low {
  color: #155bd4;
  background: #e8f0ff;
}

.severity-medium {
  color: #805400;
  background: #fff1cc;
}

.severity-high {
  color: #9f3412;
  background: #fff0df;
}

.severity-critical {
  color: #991b1b;
  background: #ffe4e6;
}

.dashboard-triage-panel .severity-critical {
  color: #991b1b;
  border-color: rgba(225, 29, 72, .14);
  background: #fff1f2;
}

.dashboard-triage-panel .severity-high {
  color: #a34410;
  border-color: rgba(245, 158, 11, .18);
  background: #fff7ed;
}

.diagnostic-uptime {
  display: block;
  height: 100%;
  padding: .45rem .58rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 12px;
  background: rgba(248, 252, 255, .88);
}

.diagnostic-uptime .small {
  color: var(--text-muted);
}

.diagnostic-uptime-success {
  border-color: rgba(18, 183, 106, .22);
  background: #f2fff7;
}

.diagnostic-uptime-success .fw-semibold {
  color: #087044;
}

.diagnostic-uptime-warning {
  border-color: rgba(245, 158, 11, .38);
  background: #fff8e6;
}

.diagnostic-uptime-warning .fw-semibold {
  color: #a15c00;
}

.diagnostic-uptime-danger {
  border-color: rgba(222, 63, 63, .36);
  background: #fff2f2;
}

.diagnostic-uptime-danger .fw-semibold {
  color: #b42318;
}

.severity-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.severity-dot.severity-low {
  background: #1e6fd6;
}

.severity-dot.severity-medium {
  background: #f5a524;
}

.severity-dot.severity-high {
  background: #e5484d;
}

.severity-dot.severity-critical {
  background: #8f0c17;
}

.alert-list,
.message-list {
  display: grid;
  gap: .75rem;
}

.alert-row,
.message-row {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .85rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  background: #fff;
}

#deviceAlertList .alert-row {
  display: grid;
  grid-template-columns: 36px 12px minmax(0, 1fr) auto;
}

.alert-row small,
.message-row small {
  display: block;
  margin-top: .2rem;
  color: var(--text-muted);
}

.alert-main {
  min-width: 0;
}

.alert-main strong,
.alert-main small {
  display: block;
}

.alert-main small {
  word-break: break-word;
}

.alert-detail-trigger {
  width: fit-content;
  margin-top: .45rem;
}

.alert-detail-full {
  min-height: 260px;
  max-height: 68vh;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #f8fbfd;
  color: var(--text-main);
  font: inherit;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.alert-auto-note {
  display: inline-flex;
  align-items: flex-start;
  gap: .35rem;
  width: fit-content;
  max-width: 100%;
  margin-top: .45rem;
  padding: .35rem .55rem;
  border: 1px solid rgba(25, 135, 84, .22);
  border-radius: 10px;
  background: #ecfdf5;
  color: #0f6040;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.3;
}

.alert-auto-note i {
  margin-top: .05rem;
}

.alert-inline-action {
  align-self: center;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0;
}

.alert-inline-action .bi {
  display: inline-block;
  min-width: 1em;
  line-height: 1;
}

.alert-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  align-self: center;
}

.device-alert-actions {
  flex-wrap: wrap;
  max-width: 420px;
}

.device-alert-actions .btn {
  white-space: nowrap;
}

.alert-select-check {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(245, 165, 36, .48);
  border-radius: 10px;
  background: #fff7d6;
  cursor: pointer;
}

.alert-resolve-check {
  border-color: rgba(25, 135, 84, .34);
  background: #ecfdf5;
}

.device-alert-select,
.alert-card-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
}

.alert-select-check[hidden] {
  display: none;
}

.alert-select-check .form-check-input {
  margin: 0;
  cursor: pointer;
}

.alert-process-sensitive_tool {
  border-color: rgba(180, 83, 9, .34);
  background: #fffaf0;
}

.alert-process-driver_service {
  border-color: rgba(21, 91, 212, .22);
  background: #f7fbff;
}

.alert-process-unknown_app {
  border-color: rgba(245, 165, 36, .32);
  background: #fffcf4;
}

.alert-table-process-sensitive_tool td {
  background: #fffaf0;
}

.alert-table-process-driver_service td {
  background: #f7fbff;
}

.alert-table-process-unknown_app td {
  background: #fffcf4;
}

.alerts-page-card {
  max-width: 100%;
  overflow: hidden;
}

.alert-flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}

.alert-flow-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  flex-wrap: wrap;
}

.alert-flow-actions form,
.device-alert-resolve-all-form {
  margin: 0;
}

.alerts-resolve-all-button,
.device-alert-resolve-all-form .btn {
  white-space: nowrap;
}

.process-alert-actions,
.workspace-head-side {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
  flex-wrap: wrap;
}

.alert-resolution-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: -.15rem 0 1rem;
  padding: .55rem;
  border: 1px solid rgba(217, 226, 236, .75);
  border-radius: 14px;
  background: rgba(248, 251, 253, .86);
}

.alert-resolution-filter span {
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 850;
}

.alert-resolution-filter a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 34px;
  padding: .38rem .7rem;
  border: 1px solid rgba(217, 226, 236, .95);
  border-radius: 999px;
  color: #24435a;
  background: #fff;
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none;
}

.alert-resolution-filter a.is-active {
  color: #0f6040;
  border-color: rgba(25, 135, 84, .28);
  background: #ecfdf5;
}

.alert-resolution-filter strong {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  padding: 0 .35rem;
  border-radius: 999px;
  color: inherit;
  background: rgba(221, 233, 244, .82);
  font-size: .78rem;
}

.alert-resolution-filter a.is-active strong {
  background: #d2f8e2;
}

.alerts-table-wrap {
  max-width: 100%;
  overflow-x: visible;
}

.alerts-table {
  width: 100%;
  table-layout: fixed;
}

.alerts-col-severity {
  width: 8.5rem;
}

.alerts-col-device {
  width: 9rem;
}

.alerts-col-status {
  width: 7.4rem;
}

.alerts-col-time {
  width: 8.8rem;
}

.alerts-col-treatment {
  width: 14rem;
}

.alerts-col-actions {
  width: 14.5rem;
}

.alerts-table th,
.alerts-table td {
  overflow-wrap: anywhere;
}

.alerts-table th {
  vertical-align: bottom;
}

.alert-detail-cell {
  min-width: 0;
}

.alert-detail-cell .small {
  word-break: break-word;
}

.alert-detail-cell .alert-detail-trigger {
  margin-top: .55rem;
}

.alert-device-cell,
.alert-status-cell,
.alert-time-cell,
.alert-treatment-cell {
  white-space: normal;
}

.alert-treatment-cell strong,
.alert-treatment-cell span {
  display: block;
}

.alert-treatment-cell strong {
  color: #24384a;
}

.alert-treatment-cell span {
  color: var(--text-muted);
}

.alert-history-list {
  display: grid;
  gap: .45rem;
}

.alert-history-item {
  padding: .45rem .55rem;
  border: 1px solid rgba(217, 226, 236, .78);
  border-radius: 10px;
  background: rgba(255, 255, 255, .68);
}

.alert-history-item strong,
.alert-history-item span,
.alert-history-item p {
  display: block;
}

.alert-history-item p {
  margin: .18rem 0 0;
  color: #314356;
  line-height: 1.35;
}

.alert-history-more {
  color: var(--text-muted);
  font-weight: 800;
}

.alert-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .28rem .58rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 850;
  background: #eef2f7;
  color: #385466;
}

.alert-status-badge-open {
  color: #8f0c17;
  background: #ffe3e7;
}

.alert-status-badge-ack {
  color: #805400;
  background: #fff0cc;
}

.alert-status-badge-resolved {
  color: #075c32;
  background: #dff8ea;
}

.alert-actions-cell {
  overflow: visible;
}

.alerts-table .alert-actions {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
}

.alerts-status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
  margin: 0;
}

.alerts-table .btn-sm {
  white-space: nowrap;
}

.alerts-table .alert-select-check {
  flex: 0 0 auto;
}

.alerts-card-list {
  display: grid;
  gap: .75rem;
}

.alerts-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1rem 0 .85rem;
  padding: .72rem .9rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 14px;
  background: #f8fbff;
}

.alerts-pagination-summary {
  color: var(--text-muted);
  font-size: .9rem;
}

.alerts-pagination-summary strong {
  color: var(--text-main);
}

.alerts-page-size {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text-muted);
  font-size: .84rem;
  font-weight: 700;
}

.alerts-page-size .form-select {
  width: 5.2rem;
}

.alerts-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.alerts-page-link,
.alerts-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 .72rem;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
}

.alerts-page-link {
  border: 1px solid rgba(190, 203, 220, .9);
  background: #fff;
  color: #155bd4;
  text-decoration: none;
}

.alerts-page-link:hover,
.alerts-page-link.is-active {
  border-color: #155bd4;
  background: #155bd4;
  color: #fff;
}

.alerts-page-link.is-disabled {
  pointer-events: none;
  opacity: .45;
  color: var(--text-muted);
}

.alerts-page-ellipsis {
  color: var(--text-muted);
}

.alert-card-row {
  display: grid;
  grid-template-columns: 42px minmax(118px, auto) minmax(280px, 1fr) minmax(190px, .55fr) minmax(250px, .7fr) minmax(150px, auto);
  align-items: stretch;
  gap: .75rem;
  padding: .82rem .9rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 16px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 12px 28px rgba(10, 35, 58, .04);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.alert-card-row:hover {
  border-color: rgba(22, 93, 255, .24);
  box-shadow: 0 16px 34px rgba(10, 35, 58, .07);
  transform: translateY(-1px);
}

.alert-card-row.alert-table-process-driver_service {
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.alert-card-row.alert-table-process-unknown_app {
  background: linear-gradient(180deg, #fff, #fffcf4);
}

.alert-card-row.alert-table-process-sensitive_tool {
  background: linear-gradient(180deg, #fff, #fff8f8);
}

.alert-card-severity,
.alert-card-state,
.alert-card-history {
  display: flex;
  min-width: 0;
  border: 1px solid rgba(217, 226, 236, .86);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f6fbff);
}

.alert-card-severity {
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .5rem .55rem;
}

.alert-card-severity .severity-dot {
  flex: 0 0 auto;
}

.alert-card-main {
  min-width: 0;
  align-self: center;
}

.alert-card-main strong,
.alert-card-main small {
  display: block;
}

.alert-card-main strong {
  color: #0c1f3b;
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.25;
}

.alert-card-main small {
  margin-top: .24rem;
  color: #52677d;
  overflow-wrap: anywhere;
}

.alert-card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .55rem;
}

.alert-card-state {
  flex-direction: column;
  justify-content: center;
  gap: .42rem;
  padding: .55rem .62rem;
}

.alert-device-link {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  color: #0c1f3b;
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.alert-device-link:hover {
  color: #155bd4;
}

.alert-card-state small {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 750;
}

.alert-card-history {
  padding: .48rem;
}

.alert-card-history .alert-history-list {
  width: 100%;
  gap: .38rem;
}

.alert-card-history .alert-history-item {
  background: #fff;
}

.alert-history-empty {
  align-self: center;
  color: var(--text-muted);
  font-size: .84rem;
  font-weight: 800;
}

.alert-card-row > .alert-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  gap: .45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.alert-card-row > .alert-actions .btn {
  min-height: 34px;
  white-space: nowrap;
}

.process-class-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .35rem;
  margin-top: .45rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  color: #385466;
  background: #eef6fb;
  font-size: .76rem;
  font-weight: 850;
}

.process-class-sensitive_tool {
  color: #8a4b00;
  background: #fff0cc;
}

.process-class-driver_service {
  color: #0f4fb6;
  background: #e8f0ff;
}

.process-class-unknown_app {
  color: #805400;
  background: #fff5d6;
}

.alert-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1rem;
}

.alert-filter-bar-compact {
  margin-top: -.15rem;
  margin-bottom: .85rem;
}

.alert-filter-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: .42rem;
  padding: .36rem .68rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 999px;
  color: #385466;
  background: #fff;
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none;
}

button.alert-filter-chip {
  appearance: none;
}

.alert-bulk-bar {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-left: auto;
  padding: .34rem .5rem .34rem .62rem;
  border: 1px solid rgba(245, 165, 36, .5);
  border-radius: 12px;
  color: #704600;
  background: #fff7d6;
}

.alert-bulk-bar[hidden] {
  display: none;
}

.alert-bulk-select {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  margin: 0;
  font-size: .82rem;
  font-weight: 850;
  white-space: nowrap;
}

.alert-bulk-count {
  color: #805400;
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.alert-status-filter-bar {
  margin-bottom: 1.15rem;
}

.alert-filter-chip:hover,
.alert-filter-chip.is-active {
  color: #0f4fb6;
  border-color: rgba(22, 93, 255, .42);
  background: #eef6ff;
}

.alert-filter-chip strong {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  padding: 0 .35rem;
  border-radius: 999px;
  color: #0c1f3b;
  background: rgba(217, 226, 236, .72);
  font-size: .78rem;
}

.process-alert-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .45fr);
  gap: 1rem;
  align-items: start;
}

.process-alert-panel {
  min-width: 0;
}

.process-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}

.process-exception-panel {
  padding: .9rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(248, 252, 255, .86);
}

.process-exception-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, .45fr);
  gap: .55rem;
  margin-bottom: .85rem;
}

.process-exception-form input[name="process_path"],
.process-exception-form input[name="reason"],
.process-exception-form button {
  grid-column: 1 / -1;
}

.process-exception-list {
  display: grid;
  gap: .55rem;
}

.process-exception-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  padding: .58rem .65rem;
  border: 1px solid rgba(217, 226, 236, .86);
  border-radius: 12px;
  background: #fff;
}

.process-exception-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #0f62fe;
  background: #edf6ff;
}

.process-exception-main {
  min-width: 0;
}

.process-exception-main strong,
.process-exception-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-exception-main small {
  color: var(--text-muted);
}

.exception-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.exception-central-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1.4fr) minmax(120px, .55fr) minmax(180px, .95fr) minmax(160px, .75fr) minmax(180px, 1fr) auto;
  gap: .65rem;
  align-items: start;
}

.exception-central-form .btn {
  min-height: 38px;
  white-space: nowrap;
}

.exception-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(22, 93, 255, .14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(239, 248, 255, .86));
  box-shadow: 0 18px 42px rgba(10, 35, 58, .08);
}

.exception-hero h3 {
  margin: .2rem 0 .35rem;
  font-weight: 850;
}

.exception-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
}

.exception-kpis {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}

.exception-kpis span {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "icon value"
    "icon label";
  align-items: center;
  column-gap: .5rem;
  min-width: 112px;
  padding: .58rem .72rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 14px;
  background: #fff;
}

.exception-kpis i {
  grid-area: icon;
  color: #155bd4;
  font-size: 1.1rem;
}

.exception-kpis strong {
  grid-area: value;
  color: #0c1f3b;
  font-size: 1.35rem;
  line-height: 1;
}

.exception-kpis small {
  grid-area: label;
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.exceptions-page-stack {
  display: grid;
  gap: 1rem;
}

.exceptions-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.exceptions-filter-chips {
  margin-top: 0;
  justify-content: flex-end;
}

.exception-card-list,
.exception-form {
  display: grid;
  gap: .75rem;
}

.exception-card-row {
  display: grid;
  grid-template-columns: 48px minmax(260px, 1fr) auto minmax(360px, .9fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .82rem .9rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.exception-card-row:hover {
  border-color: rgba(22, 93, 255, .28);
  box-shadow: 0 12px 26px rgba(10, 35, 58, .06);
  transform: translateY(-1px);
}

.siem-hero {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(360px, 1.5fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.siem-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.siem-score-card,
.siem-kpi-grid span,
.siem-category-list span,
.siem-device-list a,
.siem-incident {
  border: 1px solid rgba(217, 226, 236, .9);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(10, 35, 58, .06);
}

.siem-score-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 18px;
}

.siem-score-orbit {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #073b4c, #0f766e);
  font-size: 1.65rem;
}

.siem-score-card small,
.siem-score-card em,
.siem-kpi-grid small,
.siem-device-list small,
.siem-score small {
  display: block;
  color: var(--text-muted);
}

.siem-score-card strong {
  display: block;
  color: #071b33;
  font-size: 2.7rem;
  line-height: 1;
}

.siem-score-card em {
  font-style: normal;
  font-weight: 800;
}

.siem-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .7rem;
}

.siem-kpi-grid span {
  display: grid;
  align-content: center;
  gap: .25rem;
  min-height: 104px;
  padding: .76rem .85rem;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.siem-kpi-grid span::after {
  content: "";
  position: absolute;
  inset: auto -20px -34px auto;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: currentColor;
  opacity: .1;
}

.siem-kpi-grid i {
  font-size: 1.2rem;
}

.siem-kpi-critical {
  color: #dc2626;
  background: linear-gradient(145deg, #fff, #fff1f2) !important;
}

.siem-kpi-high {
  color: #f97316;
  background: linear-gradient(145deg, #fff, #fff7ed) !important;
}

.siem-kpi-medium {
  color: #ca8a04;
  background: linear-gradient(145deg, #fff, #fefce8) !important;
}

.siem-kpi-ioc {
  color: #0f766e;
  background: linear-gradient(145deg, #fff, #ecfdf5) !important;
}

.siem-kpi-device {
  color: #2563eb;
  background: linear-gradient(145deg, #fff, #eff6ff) !important;
}

.siem-kpi-grid strong {
  color: #071b33;
  font-size: 1.75rem;
  line-height: 1;
}

.siem-kpi-grid small {
  font-weight: 850;
  text-transform: uppercase;
}

.siem-score-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.siem-score-legend span {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .42rem .65rem;
  border: 1px solid rgba(196, 222, 227, .85);
  border-radius: 999px;
  color: #3c4f66;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 20px rgba(10, 35, 58, .04);
  font-size: .84rem;
}

.siem-score-legend strong {
  color: #071b33;
}

.siem-score-legend .bi {
  color: #0f766e;
}

.siem-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 1rem;
}

.siem-console {
  display: grid;
  gap: .85rem;
  padding: .85rem;
  border: 1px solid rgba(180, 217, 220, .74);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, .13), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(16, 185, 129, .12), transparent 36%),
    rgba(247, 253, 255, .78);
  box-shadow: 0 18px 48px rgba(10, 35, 58, .07);
}

.siem-tabs {
  position: sticky;
  top: .65rem;
  z-index: 6;
  width: fit-content;
  max-width: 100%;
  padding: .38rem;
  border: 1px solid rgba(217, 226, 236, .92);
  border-radius: 16px;
  background: rgba(248, 253, 255, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(10, 35, 58, .06);
}

.siem-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.siem-tab-content {
  min-height: 360px;
}

.siem-grid-balanced {
  align-items: start;
}

.siem-category-list,
.siem-device-list,
.siem-feed-list,
.siem-ioc-list,
.siem-ioc-source-list,
.siem-rule-list,
.siem-incident-list {
  display: grid;
  gap: .65rem;
}

.siem-scroll-list {
  max-height: 390px;
  overflow: auto;
  padding-right: .25rem;
  scrollbar-color: rgba(15, 118, 110, .36) transparent;
  scrollbar-width: thin;
}

.siem-ioc-scroll {
  max-height: 420px;
}

.siem-feed-strip,
.siem-rule-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.siem-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.siem-source-card {
  display: grid;
  gap: .75rem;
  padding: .9rem;
  border: 1px solid rgba(196, 222, 227, .9);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(238, 252, 249, .92));
  box-shadow: 0 14px 30px rgba(10, 35, 58, .06);
}

.siem-source-card.is-muted {
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(255, 248, 232, .84));
}

.siem-source-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
}

.siem-source-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: #0f766e;
  background: #def7ec;
  font-size: 1.1rem;
}

.siem-source-head strong,
.siem-source-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.siem-source-head small,
.siem-source-card p,
.siem-source-note {
  color: var(--text-muted);
}

.siem-source-card p {
  min-height: 46px;
  margin: 0;
  font-size: .9rem;
}

.siem-source-key {
  display: grid;
  gap: .35rem;
}

.siem-source-key span,
.siem-source-clear {
  color: var(--text-muted);
  font-size: .82rem;
}

.siem-source-key input {
  border-color: rgba(15, 118, 110, .22);
  background: rgba(255, 255, 255, .9);
}

.siem-source-controls {
  display: grid;
  grid-template-columns: minmax(92px, .75fr) minmax(120px, 1fr) minmax(96px, .75fr);
  gap: .5rem;
  align-items: center;
}

.siem-console .workspace-panel,
.siem-console .siem-page-card {
  border-color: rgba(196, 222, 227, .82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(250, 253, 255, .94));
}

.siem-category-list span {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: .35rem .7rem;
  padding: .72rem .78rem .86rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.siem-category-list i,
.siem-device-list span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  color: #0f766e;
  background: #e7f8f4;
}

.siem-category-list small {
  grid-column: 2 / -1;
  color: #5d6f83;
  font-size: .8rem;
}

.siem-category-list b {
  position: absolute;
  left: .78rem;
  right: .78rem;
  bottom: .42rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(217, 226, 236, .9);
  overflow: hidden;
}

.siem-category-list b::after {
  content: "";
  display: block;
  width: var(--siem-bar, 0%);
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.siem-category-list strong,
.siem-device-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.siem-category-list em {
  color: #071b33;
  font-style: normal;
  font-weight: 900;
}

.siem-category-chip {
  color: #0f766e;
}

.siem-category-chip.category-windows-event {
  color: #2563eb;
  background: linear-gradient(145deg, #fff, #eff6ff);
}

.siem-category-chip.category-disk {
  color: #d97706;
  background: linear-gradient(145deg, #fff, #fff7ed);
}

.siem-category-chip.category-memory,
.siem-category-chip.category-process {
  color: #7c3aed;
  background: linear-gradient(145deg, #fff, #f5f3ff);
}

.siem-category-chip.category-security,
.siem-category-chip.category-siem {
  color: #059669;
  background: linear-gradient(145deg, #fff, #ecfdf5);
}

.siem-category-chip.category-dlp {
  color: #be123c;
  background: linear-gradient(145deg, #fff, #fff1f2);
}

.siem-category-chip i {
  color: currentColor;
  background: rgba(255, 255, 255, .72);
}

.siem-device-list a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: .6rem;
  padding: .72rem .78rem;
  border-radius: 14px;
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.siem-device-list a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: currentColor;
  opacity: .75;
}

.siem-device-main {
  display: grid;
  gap: .18rem;
  min-width: 0;
}

.siem-device-list a em {
  display: grid;
  justify-items: end;
  gap: .12rem;
  min-width: 72px;
  padding: .36rem .58rem;
  border-radius: 12px;
  color: currentColor;
  background: rgba(255, 255, 255, .72);
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.siem-device-list a em b {
  color: #071b33;
  font-size: 1.05rem;
  line-height: 1;
}

.siem-device-list a em small {
  color: currentColor;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.siem-device-list code {
  width: fit-content;
  max-width: 100%;
  padding: .22rem .38rem;
  border: 1px solid rgba(217, 226, 236, .86);
  border-radius: 8px;
  color: #344256;
  background: rgba(248, 251, 255, .86);
  font-size: .76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.siem-device-list .score-band-critical {
  color: #dc2626;
  background: linear-gradient(145deg, #fff, #fff1f2);
}

.siem-device-list .score-band-high {
  color: #f97316;
  background: linear-gradient(145deg, #fff, #fff7ed);
}

.siem-device-list .score-band-medium {
  color: #ca8a04;
  background: linear-gradient(145deg, #fff, #fefce8);
}

.siem-device-list .score-band-low {
  color: #059669;
  background: linear-gradient(145deg, #fff, #ecfdf5);
}

.siem-device-list a:hover,
.siem-incident:hover {
  border-color: rgba(15, 118, 110, .32);
  box-shadow: 0 16px 34px rgba(10, 35, 58, .09);
}

.siem-feed-list span,
.siem-ioc-source-list span,
.siem-ioc-row,
.siem-rule-row {
  display: grid;
  align-items: center;
  gap: .6rem;
  padding: .65rem .75rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
}

.siem-ioc-panel,
.siem-hash-panel,
.siem-rules-panel {
  position: relative;
  overflow: hidden;
}

.siem-ioc-panel::before,
.siem-hash-panel::before,
.siem-rules-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #0f766e, #2563eb, #f97316);
}

.siem-ioc-form {
  padding: .78rem;
  border: 1px solid rgba(196, 222, 227, .9);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(240, 253, 250, .9));
}

.siem-feed-list span {
  grid-template-columns: 34px minmax(0, 1fr);
}

.siem-ioc-source-list span {
  grid-template-columns: 36px minmax(0, 1fr);
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(239, 246, 255, .9));
}

.siem-feed-list i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
}

.siem-ioc-source-list i,
.siem-ioc-row > i,
.siem-rule-row > i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #0f766e;
  background: #e7f8f4;
}

.siem-feed-list .is-ok i {
  color: #087044;
  background: #dff8ea;
}

.siem-feed-list .is-fail i {
  color: #a34300;
  background: #fff0d8;
}

.siem-feed-list strong,
.siem-feed-list small,
.siem-feed-list em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.siem-feed-list small,
.siem-feed-list em,
.siem-rule-row small {
  color: var(--text-muted);
}

.siem-feed-list em {
  font-style: normal;
}

.siem-rule-row {
  grid-template-columns: 36px minmax(0, 1fr) 142px auto;
  border-left: 4px solid currentColor;
  color: #ca8a04;
}

.siem-rule-row.severity-critical {
  color: #dc2626;
  background: linear-gradient(145deg, #fff, #fff1f2);
}

.siem-rule-row.severity-high {
  color: #f97316;
  background: linear-gradient(145deg, #fff, #fff7ed);
}

.siem-rule-row.severity-medium {
  color: #ca8a04;
  background: linear-gradient(145deg, #fff, #fefce8);
}

.siem-rule-row.severity-low {
  color: #059669;
  background: linear-gradient(145deg, #fff, #ecfdf5);
}

.siem-rule-row.severity-info {
  color: #2563eb;
  background: linear-gradient(145deg, #fff, #eff6ff);
}

.siem-rule-row.is-disabled {
  color: #64748b;
  background: linear-gradient(145deg, #fff, #f8fafc);
  opacity: .74;
}

.siem-rule-row .form-select,
.siem-rule-row .form-check-input {
  position: relative;
  z-index: 1;
}

.siem-ioc-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 132px;
  gap: .55rem;
  align-items: center;
}

.siem-ioc-form input[name="description"],
.siem-ioc-form input[name="tags"],
.siem-ioc-form .btn {
  grid-column: 1 / -1;
}

.siem-ioc-form .btn {
  white-space: nowrap;
}

.siem-ioc-row {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(236, 253, 245, .86));
}

.siem-ioc-row strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .82rem;
  letter-spacing: 0;
}

.siem-ioc-source-list span,
.siem-ioc-row span {
  min-width: 0;
}

.siem-ioc-source-list strong,
.siem-ioc-source-list small,
.siem-ioc-row strong,
.siem-ioc-row small,
.siem-rule-row strong,
.siem-rule-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.siem-page-card {
  overflow: hidden;
}

.siem-incident-list {
  max-height: 620px;
  overflow: auto;
  padding-right: .25rem;
  scrollbar-color: rgba(15, 118, 110, .36) transparent;
  scrollbar-width: thin;
}

.siem-incident-head {
  margin-bottom: .8rem;
}

.siem-incident-admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
  padding: .58rem;
  border: 1px solid rgba(196, 222, 227, .82);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(240, 253, 250, .86));
}

.siem-incident-admin > span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-right: auto;
  color: #15515a;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.siem-incident-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(260px, 1.4fr) repeat(4, minmax(132px, .65fr));
  gap: .55rem;
  align-items: center;
  margin-bottom: .9rem;
}

.siem-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.siem-filter-chips button {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  min-height: 34px;
  padding: .34rem .58rem;
  border: 1px solid rgba(196, 222, 227, .92);
  border-radius: 999px;
  color: #15515a;
  background: rgba(255, 255, 255, .88);
  font-size: .82rem;
  font-weight: 850;
}

.siem-filter-chips button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  box-shadow: 0 10px 24px rgba(15, 118, 110, .16);
}

.siem-filter-chips strong {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, .22);
  font-size: .76rem;
}

.siem-incident {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 62px;
  gap: .8rem;
  align-items: start;
  padding: .9rem;
  border-radius: 14px;
}

.siem-incident-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.siem-incident-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.siem-incident-main p {
  margin: .35rem 0;
  color: #3c4f66;
}

.siem-incident-main code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: .35rem .45rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 8px;
  color: #123;
  background: #f8fbff;
}

.siem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .45rem;
}

.siem-tags span {
  padding: .18rem .42rem;
  border-radius: 999px;
  color: #15515a;
  background: #e7f8f4;
  font-size: .74rem;
  font-weight: 850;
}

.siem-score {
  text-align: right;
}

.siem-score strong {
  display: block;
  color: #071b33;
  font-size: 1.45rem;
  line-height: 1;
}

.row-icon.exception-company {
  color: #155bd4;
  background: #eef6ff;
}

.row-icon.exception-agent {
  color: #087044;
  background: #dff8ea;
}

.exception-path {
  display: block;
  margin-top: .24rem;
  color: #385466;
  font-size: .84rem;
  overflow-wrap: anywhere;
}

.exception-scope-chip,
.exception-target,
.exception-meta-panel {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 34px;
  padding: .32rem .62rem;
  border: 1px solid rgba(217, 226, 236, .88);
  border-radius: 999px;
  color: #385466;
  background: #f8fcff;
  font-size: .82rem;
  font-weight: 800;
}

.exception-target {
  align-items: flex-start;
  flex-direction: column;
  gap: .05rem;
  min-width: 0;
  border-radius: 12px;
}

.exception-meta-panel {
  min-width: 0;
  justify-content: space-between;
  gap: .48rem;
  padding: .42rem .5rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f5faff);
}

.exception-meta-panel .exception-target {
  flex: 1 1 0;
  min-width: 96px;
  background: #fff;
}

.exception-target small {
  color: var(--text-muted);
  font-size: .68rem;
  text-transform: uppercase;
}

.exception-target strong,
.exception-target a {
  max-width: 180px;
  overflow-wrap: anywhere;
}

.exception-remove-form {
  margin: 0;
}

.exception-create-panel {
  display: grid;
  grid-template-columns: minmax(200px, 230px) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.exception-create-summary {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}

.exception-create-form {
  display: grid;
  grid-template-columns: minmax(116px, .72fr) minmax(142px, .95fr) minmax(176px, auto) minmax(154px, .9fr) minmax(104px, .62fr) minmax(128px, .76fr) 122px;
  align-items: end;
  gap: .5rem;
  min-width: 0;
}

.exception-create-field,
.exception-scope-field {
  min-width: 0;
}

.exception-create-field .form-label,
.exception-scope-field .form-label {
  margin-bottom: .32rem;
  color: #0c1f3b;
  font-size: .86rem;
  font-weight: 800;
}

.exception-create-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 122px;
  min-width: 122px;
  padding-inline: .75rem;
  white-space: nowrap;
}

.exception-scope-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(84px, 1fr));
  gap: .4rem;
  min-width: 178px;
}

.exception-scope-picker label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 42px;
  padding: .45rem .58rem;
  border: 1px solid rgba(22, 93, 255, .25);
  border-radius: 12px;
  color: #155bd4;
  background: #fff;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.exception-scope-picker .btn-check:checked + label {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  box-shadow: 0 12px 22px rgba(17, 91, 212, .16);
}

.trust-process-modal {
  border: 1px solid rgba(18, 183, 106, .18);
}

.trust-process-modal .modal-header {
  background: #f3fff8;
}

.trust-process-summary {
  padding: .72rem .8rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: #0c1f3b;
  background: #fbfdff;
  font-weight: 850;
  word-break: break-word;
}

.trust-process-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: .6rem;
  margin-top: .65rem;
}

.trust-process-details span {
  min-width: 0;
  padding: .62rem .7rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 12px;
  background: #fff;
}

.trust-process-details small,
.trust-process-details strong {
  display: block;
}

.trust-process-details small {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trust-process-details strong {
  margin-top: .16rem;
  color: #0c1f3b;
  overflow-wrap: anywhere;
}

.trust-process-path {
  grid-column: 1 / -1;
}

.trust-scope-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.trust-scope-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: .65rem;
  align-items: center;
  min-height: 96px;
  padding: .8rem;
  border: 1px solid rgba(217, 226, 236, .92);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.trust-scope-card i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #0f62fe;
  background: #edf6ff;
  font-size: 1.15rem;
}

.trust-scope-card strong,
.trust-scope-card small {
  display: block;
}

.trust-scope-card small {
  margin-top: .2rem;
  color: var(--text-muted);
}

.trust-scope-card:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 93, 255, .38);
  box-shadow: 0 12px 24px rgba(17, 91, 212, .1);
}

.trust-scope-options .btn-check:checked + .trust-scope-card {
  border-color: rgba(18, 183, 106, .62);
  background: #f2fff8;
  box-shadow: 0 12px 28px rgba(18, 183, 106, .12);
}

.trust-scope-options .btn-check:checked + .trust-scope-card i {
  color: #087443;
  background: #dff8ea;
}

.message-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .65rem;
}

.modal-message-list .message-row {
  display: grid;
}

.modal-message-list .message-row .text-muted {
  margin-top: .45rem;
  white-space: pre-wrap;
}

.login-wrap {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(460px, 100%);
}

.app-tabs {
  gap: .5rem;
}

.app-tabs .nav-link {
  border-radius: 999px;
  font-weight: 700;
  color: #155b70;
  background: rgba(255, 255, 255, .8);
}

.app-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
}

.info-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: .75rem 1rem;
}

.info-grid dt {
  color: var(--text-muted);
}

.info-grid dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}

.disk-row + .disk-row {
  margin-top: 1rem;
}

.progress {
  height: 9px;
  border-radius: 999px;
  background: #e7edf4;
}

.progress-bar {
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.security-panel {
  min-height: 188px;
  padding: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(248, 252, 255, .92);
}

.security-panel-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .85rem;
  color: #0a4f8f;
  font-weight: 800;
}

.security-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .35rem 0;
  border-bottom: 1px solid rgba(217, 226, 236, .72);
}

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

.security-row span,
.security-note {
  color: var(--text-muted);
}

.security-row strong {
  text-align: right;
  word-break: break-word;
}

.security-note {
  margin: .2rem 0 .55rem;
  font-size: .86rem;
}

.security-panel-actions,
.workspace-head-actions,
.bitlocker-key-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.security-panel-actions {
  margin-top: .75rem;
}

.security-panel-actions form,
.workspace-head-actions form,
.bitlocker-key-actions form {
  margin: 0;
}

.workspace-ignore-form {
  display: inline-flex;
}

.compact-icon-button,
.workspace-head-actions .btn,
.workspace-head-side > .btn {
  min-width: 36px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compact-icon-button {
  width: 36px;
  padding-inline: 0;
}

.bitlocker-ignore-form {
  margin: -.25rem 0 .7rem;
}

.bitlocker-ignore-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 32px;
  padding: .28rem .6rem;
  border: 1px solid rgba(22, 93, 255, .16);
  border-radius: 999px;
  color: #0a4f8f;
  background: #eef8ff;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.bitlocker-ignore-toggle .form-check-input {
  margin: 0;
}

.bitlocker-key-panel {
  padding: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fff;
}

.bitlocker-key-head,
.bitlocker-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
}

.bitlocker-key-head {
  flex-wrap: wrap;
}

.bitlocker-key-head {
  margin-bottom: .75rem;
}

.bitlocker-key-list {
  display: grid;
  gap: .5rem;
}

.bitlocker-key-row {
  padding: .68rem .75rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 10px;
  background: #f8fcff;
}

.bitlocker-recovery-value {
  padding: 1rem;
  border: 1px dashed #9fb7cf;
  border-radius: 10px;
  background: #f7fbff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.05rem;
  font-weight: 700;
  word-break: break-word;
}

.threat-section {
  padding: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fff;
}

.threat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .65rem;
}

.threat-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}

.threat-summary span,
.threat-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .18rem .5rem;
  border-radius: 999px;
  color: #385466;
  background: #eef6fb;
  font-size: .78rem;
  font-weight: 800;
}

.threat-summary .threat-summary-danger {
  color: #842029;
  background: #ffdfe2;
}

.threat-list.compact {
  display: grid;
  gap: .45rem;
}

.threat-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .75rem;
  padding: .62rem .72rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 10px;
  background: #fbfdff;
}

.threat-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .65rem;
}

.threat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #91a4b7;
}

.threat-name {
  min-width: 0;
}

.threat-name strong,
.threat-name small,
.threat-detail-grid small,
.security-empty {
  display: block;
}

.threat-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.threat-name small,
.threat-detail-grid small,
.security-empty {
  color: var(--text-muted);
}

.threat-critical {
  border-color: rgba(229, 72, 77, .35);
  background: #fff8f8;
}

.threat-critical .threat-dot {
  background: var(--brand-danger);
}

.threat-warning {
  border-color: rgba(245, 165, 36, .45);
  background: #fffbf1;
}

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

.threat-success .threat-dot {
  background: var(--brand-accent);
}

.threat-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
}

.threat-actions form {
  margin: 0;
}

.threat-actions .btn {
  min-height: 30px;
  font-weight: 800;
}

.threat-details {
  position: relative;
}

.threat-details summary {
  cursor: pointer;
  list-style: none;
  color: #155bd4;
  font-size: .86rem;
  font-weight: 800;
}

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

.threat-detail-grid {
  position: absolute;
  right: 0;
  z-index: 20;
  width: min(620px, 82vw);
  margin-top: .5rem;
  display: grid;
  grid-template-columns: minmax(160px, .65fr) minmax(220px, 1fr);
  gap: .8rem;
  padding: .85rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.threat-detail-grid small {
  margin-top: .3rem;
  word-break: break-word;
}

.security-empty {
  padding: .85rem;
  border: 1px dashed var(--border-soft);
  border-radius: 10px;
  background: rgba(248, 252, 255, .86);
}

.event-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.event-summary-card {
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfdff;
}

.event-summary-card span {
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-summary-card strong {
  display: block;
  margin-top: .2rem;
  color: #0c1f3b;
  font-size: 1.55rem;
}

.event-summary-card.event-critical strong {
  color: #a51622;
}

.event-summary-card.event-error strong {
  color: #b45309;
}

.event-summary-card.event-audit strong {
  color: #155bd4;
}

.event-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, .3fr) minmax(190px, .34fr);
  gap: .65rem;
}

.event-quick-stats,
.event-channel-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  min-width: 0;
}

.event-quick-stats span,
.event-channel-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: .35rem;
  padding: .28rem .62rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 999px;
  color: #385466;
  background: rgba(255, 255, 255, .82);
  font-size: .82rem;
  font-weight: 750;
}

.event-quick-stats strong,
.event-channel-chip strong {
  color: #0c1f3b;
}

.event-stat-critical strong {
  color: #a51622;
}

.event-stat-error strong {
  color: #b45309;
}

.event-stat-audit strong {
  color: #155bd4;
}

.event-channel-chip {
  max-width: min(280px, 100%);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.event-channel-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-channel-chip:hover,
.event-channel-chip.is-active {
  color: #0f4fb6;
  border-color: rgba(22, 93, 255, .42);
  background: #eef6ff;
}

.event-channel-chip:hover {
  transform: translateY(-1px);
}

.event-channel-chip.is-empty {
  cursor: default;
  color: var(--text-muted);
  border-style: dashed;
}

.event-search-wrap {
  position: relative;
  min-width: 0;
}

.event-search-wrap i {
  position: absolute;
  top: 50%;
  left: .85rem;
  color: var(--text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.event-search-wrap .form-control {
  padding-left: 2.35rem;
}

.event-priority-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem .85rem;
  padding: .55rem .7rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 12px;
  color: #385466;
  background: rgba(248, 252, 255, .86);
}

.event-priority-bar span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .86rem;
}

.event-priority-bar span:first-child {
  color: #0c1f3b;
  font-weight: 850;
}

.event-visible-counter {
  padding: .18rem .5rem;
  border-radius: 999px;
  color: #155b70;
  background: #e0f7fb;
  font-weight: 850;
}

.event-priority-bar .btn {
  margin-left: auto;
}

.event-list {
  display: grid;
  gap: .55rem;
}

.event-row {
  min-width: 0;
  padding: .7rem .75rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 12px;
  background: #fff;
}

.event-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
}

.event-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #91a4b7;
}

.event-critical {
  border-color: rgba(165, 22, 34, .22);
  background: #fff8f8;
}

.event-critical .event-dot {
  background: #a51622;
}

.event-error {
  border-color: rgba(180, 83, 9, .24);
  background: #fffaf0;
}

.event-error .event-dot {
  background: #b45309;
}

.event-warning {
  border-color: rgba(245, 165, 36, .3);
  background: #fffcf4;
}

.event-warning .event-dot {
  background: #f5a524;
}

.event-favorite {
  border-color: rgba(21, 91, 212, .24);
}

.event-row[data-event-priority="0"] {
  opacity: .82;
}

.event-main {
  min-width: 0;
}

.event-main strong,
.event-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-main small {
  color: var(--text-muted);
}

.event-badge {
  padding: .18rem .48rem;
  border-radius: 999px;
  color: #385466;
  background: #eef6fb;
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}

.event-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .38rem;
}

.event-favorite-badge {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #155bd4;
  background: #e8f0ff;
  font-size: .76rem;
}

.event-detail-button {
  width: 32px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.event-message-full {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #1f2937;
  font: inherit;
  line-height: 1.5;
}

.event-collection-errors {
  display: grid;
  gap: .25rem;
  padding: .75rem;
  border: 1px dashed rgba(180, 83, 9, .32);
  border-radius: 12px;
  color: #805400;
  background: #fffaf0;
}

.event-collection-errors small {
  color: #805400;
  word-break: break-word;
}

.table-fixed {
  max-height: 560px;
  overflow: auto;
}

.workspace-panel {
  padding: 1rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 45px rgba(10, 35, 58, .06);
}

.workspace-head,
.data-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 1rem;
}

.workspace-kpis {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}

.workspace-head-side {
  max-width: 100%;
}

.workspace-kpis span,
.workspace-kpi-button,
.row-pill,
.metric-mini,
.service-meta {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 34px;
  padding: .32rem .62rem;
  border: 1px solid rgba(217, 226, 236, .88);
  border-radius: 999px;
  color: #385466;
  background: #f8fcff;
  font-size: .82rem;
  font-weight: 800;
}

.workspace-kpi-button {
  appearance: none;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.workspace-kpi-button:hover,
.workspace-kpi-button[aria-expanded="true"] {
  border-color: rgba(245, 158, 11, .5);
  box-shadow: 0 10px 22px rgba(180, 83, 9, .1);
  transform: translateY(-1px);
}

.workspace-kpis i {
  color: #155bd4;
}

.workspace-kpis strong,
.metric-mini strong {
  color: #0c1f3b;
}

.workspace-kpis .kpi-success strong,
.workspace-kpis .kpi-success i {
  color: #087044;
}

.workspace-kpis .kpi-warning strong,
.workspace-kpis .kpi-warning i {
  color: #b45309;
}

.defender-threat-panel {
  border-color: rgba(245, 158, 11, .34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 251, 235, .82));
  box-shadow: 0 14px 34px rgba(180, 83, 9, .08);
}

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: .9rem;
  margin-bottom: 1rem;
}

.info-panel,
.data-section {
  padding: .95rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 14px;
  background: rgba(248, 252, 255, .72);
}

.info-panel-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .8rem;
  color: #0a4f8f;
  font-weight: 850;
}

.info-list {
  display: grid;
  gap: .48rem;
}

.info-list div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: .75rem;
  align-items: baseline;
  padding-bottom: .48rem;
  border-bottom: 1px solid rgba(217, 226, 236, .72);
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list span,
.disk-card small,
.row-main small,
.service-description,
.service-meta small {
  color: var(--text-muted);
}

.info-list strong,
.row-main strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ip-chip-list,
.service-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .9rem;
}

.ip-chip-list span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .56rem;
  border-radius: 999px;
  color: #155b70;
  background: #eef8fb;
  font-size: .82rem;
  font-weight: 800;
}

.network-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

.network-summary-grid span {
  display: block;
  padding: .55rem;
  border: 1px solid rgba(217, 226, 236, .78);
  border-radius: 10px;
  background: #fff;
}

.network-summary-grid small,
.network-mini-list span {
  color: var(--text-muted);
}

.network-summary-grid small,
.network-summary-grid strong {
  display: block;
}

.network-summary-grid strong {
  color: #0f172a;
}

.network-ip-chip-list {
  margin-top: .75rem;
}

.network-mini-list {
  display: grid;
  gap: .45rem;
  margin-top: .75rem;
}

.network-mini-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .45rem;
  border-top: 1px solid rgba(217, 226, 236, .72);
}

.network-mini-list span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: .35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-mini-list strong {
  flex: 0 0 auto;
  font-size: .84rem;
}

.smtp-company-select {
  display: flex;
  align-items: center;
  gap: .7rem;
  max-width: 420px;
  margin-bottom: 1rem;
}

.smtp-company-select label {
  color: var(--text-muted);
  font-weight: 800;
}

.smtp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: .9rem;
}

.smtp-form {
  display: grid;
  gap: .9rem;
}

.smtp-toggle,
.smtp-clear-password {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #0f172a;
  font-weight: 800;
}

.smtp-clear-password {
  margin-top: .35rem;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 700;
}

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

.smtp-severity-box {
  display: grid;
  gap: .55rem;
  padding: .8rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 10px;
  background: #fff;
}

.smtp-severity-options {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.smtp-severity-options .severity-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}

.smtp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.smtp-alert-preview {
  display: grid;
  gap: .6rem;
}

.smtp-alert-preview div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .2rem .5rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(217, 226, 236, .72);
}

.smtp-alert-preview div:last-child {
  border-bottom: 0;
}

.smtp-alert-preview small {
  grid-column: 2;
  color: var(--text-muted);
}

.disk-list {
  display: grid;
  gap: .65rem;
}

.live-metrics-panel {
  align-self: start;
}

.live-metric-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .55rem;
}

.live-metric-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  min-height: 70px;
  padding: .5rem;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .72);
}

.live-metric-spark {
  position: relative;
  height: 48px;
  border: 1px solid #777;
  background:
    linear-gradient(to top, rgba(14, 165, 233, .14), transparent),
    repeating-linear-gradient(to right, transparent 0 9px, rgba(15, 23, 42, .06) 10px);
  overflow: hidden;
}

.live-metric-spark span {
  position: absolute;
  inset: auto 4px 4px 4px;
  height: 20%;
  background: linear-gradient(180deg, #0ea5e9, #0891b2);
  clip-path: polygon(0 100%, 12% 88%, 24% 92%, 38% 55%, 52% 72%, 66% 36%, 80% 42%, 100% 8%, 100% 100%);
  transition: height .25s ease;
}

.live-metric-spark.disk {
  background:
    linear-gradient(to top, rgba(132, 204, 22, .16), transparent),
    repeating-linear-gradient(to right, transparent 0 9px, rgba(15, 23, 42, .06) 10px);
}

.live-metric-spark.disk span {
  background: linear-gradient(180deg, #84cc16, #65a30d);
}

.live-metric-spark.memory {
  background:
    linear-gradient(to top, rgba(96, 165, 250, .2), transparent),
    repeating-linear-gradient(to right, transparent 0 9px, rgba(15, 23, 42, .06) 10px);
}

.live-metric-spark.memory span {
  background: linear-gradient(180deg, #93c5fd, #60a5fa);
}

.live-metric-body {
  min-width: 0;
}

.live-metric-body strong,
.live-metric-body span,
.live-metric-body small {
  display: block;
}

.live-metric-body strong {
  color: #020617;
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.live-metric-body span {
  color: #52627a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-metric-body b {
  color: #0f172a;
}

.live-metric-body em {
  font-style: normal;
}

.live-metric-updated,
.disk-live-line {
  margin-top: .45rem;
  color: var(--text-muted);
  font-size: .78rem;
}

.disk-card {
  padding: .72rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 12px;
  background: #fff;
}

.disk-card-ok {
  border-color: rgba(26, 116, 232, .22);
}

.disk-card-warning {
  border-color: rgba(245, 158, 11, .42);
  background: #fffaf0;
}

.disk-card-danger {
  border-color: rgba(220, 38, 38, .42);
  background: #fff5f5;
}

.disk-card-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}

.disk-card-head span {
  color: #0a4f8f;
  font-weight: 850;
}

.disk-card-warning .disk-card-head span {
  color: #a16207;
}

.disk-card-danger .disk-card-head span {
  color: #b91c1c;
}

.disk-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .5rem;
  color: var(--text-muted);
  font-size: .78rem;
}

.disk-card-meta span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: .28rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.disk-card-meta span:last-child {
  flex: 1 1 180px;
}

.disk-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf1f7;
}

.disk-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a74e8, #13a8c9);
}

.disk-meter-warning span {
  background: linear-gradient(90deg, #f59e0b, #facc15);
}

.disk-meter-danger span {
  background: linear-gradient(90deg, #dc2626, #f97316);
}

.disk-live-line {
  display: block;
}

.memory-panel {
  grid-column: 1 / -1;
}

.memory-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  margin-bottom: .8rem;
}

.memory-summary-grid span,
.memory-module-card {
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 12px;
  background: #fff;
}

.memory-summary-grid span {
  display: grid;
  gap: .15rem;
  padding: .62rem .72rem;
}

.memory-summary-grid small,
.memory-module-facts small {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.memory-summary-grid strong,
.memory-module-facts strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.memory-module-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: .65rem;
}

.memory-module-card {
  padding: .72rem;
}

.memory-module-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .55rem;
}

.memory-module-head span {
  color: #0a4f8f;
  font-weight: 850;
}

.memory-module-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .48rem .7rem;
}

.memory-module-facts span {
  display: grid;
  min-width: 0;
}

.dlp-section {
  margin-top: 1rem;
}

.dlp-list {
  display: grid;
  gap: .55rem;
}

.dlp-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) minmax(180px, auto);
  align-items: center;
  gap: .7rem;
  min-width: 0;
  padding: .72rem .8rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 12px;
  background: #fff;
}

.dlp-row.severity-critical,
.dlp-row.severity-high {
  border-color: rgba(220, 38, 38, .32);
  background: #fff7f7;
}

.dlp-row.severity-medium {
  border-color: rgba(245, 158, 11, .36);
  background: #fffaf0;
}

.dlp-main {
  display: grid;
  gap: .12rem;
  min-width: 0;
}

.dlp-main strong,
.dlp-main small,
.dlp-main em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dlp-main strong {
  color: #0c1f3b;
  font-size: .92rem;
}

.dlp-main small,
.dlp-main em {
  color: var(--text-muted);
  font-size: .78rem;
  font-style: normal;
}

.dlp-signals {
  display: flex;
  justify-content: flex-end;
  gap: .35rem;
  flex-wrap: wrap;
}

.dlp-signals b {
  padding: .22rem .45rem;
  border-radius: 999px;
  background: #eef6ff;
  color: #0a4f8f;
  font-size: .72rem;
}

.data-search {
  position: relative;
  width: min(420px, 100%);
  min-width: 260px;
}

.data-search i {
  position: absolute;
  top: 50%;
  left: .85rem;
  color: var(--text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.data-search .form-control {
  padding-left: 2.35rem;
}

.activity-search,
.alerts-search {
  margin: .9rem 0 1rem;
}

.filter-search-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: .9rem 0 1rem;
}

.filter-search-row .data-search {
  margin: 0;
}

.filter-visible-counter {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #eef9fb;
  color: #0d5366;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

.alerts-filter-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.alerts-filter-layout .alert-filter-bar {
  margin: 0;
}

.alerts-search-row {
  justify-content: flex-end;
  margin: 0;
  margin-left: auto;
}

.alerts-search-row .alerts-search {
  width: min(430px, 42vw);
}

@media (max-width: 1180px) {
  .alerts-filter-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .alerts-search-row {
    justify-content: flex-start;
    margin-left: 0;
    width: 100%;
  }

  .alerts-search-row .alerts-search {
    width: min(520px, 100%);
  }
}

@media (max-width: 640px) {
  .alerts-search-row {
    align-items: stretch;
  }

  .alerts-search-row .alerts-search,
  .alerts-search-row .filter-visible-counter {
    width: 100%;
  }

  .alerts-search-row .filter-visible-counter {
    justify-content: center;
  }
}

@media (max-width: 980px) {
  #tab-alerts .process-alert-head,
  #tab-activity .alert-flow-head {
    align-items: stretch;
    flex-direction: column;
  }

  #tab-alerts .process-alert-head .btn,
  #tab-activity .alert-flow-head .btn {
    align-self: flex-start;
  }

  #tab-alerts .process-alert-actions {
    justify-content: flex-start;
  }

  #tab-alerts .alert-filter-bar-compact {
    align-items: flex-start;
  }

  #tab-alerts .filter-search-row,
  #tab-activity .filter-search-row {
    align-items: flex-start;
    width: 100%;
  }

  #tab-alerts .filter-search-row .data-search,
  #tab-activity .filter-search-row .data-search {
    width: min(520px, 100%);
  }
}

@media (max-width: 640px) {
  #tab-alerts .process-alert-head .btn,
  #tab-activity .alert-flow-head .btn,
  #tab-alerts .process-alert-actions,
  #tab-alerts .filter-search-row .data-search,
  #tab-alerts .filter-search-row .filter-visible-counter,
  #tab-activity .filter-search-row .data-search,
  #tab-activity .filter-search-row .filter-visible-counter {
    width: 100%;
  }

  #tab-alerts .filter-search-row .filter-visible-counter,
  #tab-activity .filter-search-row .filter-visible-counter {
    justify-content: center;
  }

  #tab-alerts .alert-filter-bar-compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  #tab-alerts .alert-filter-chip {
    justify-content: center;
    width: 100%;
  }

  #tab-alerts .alert-detail-trigger {
    width: 100%;
    justify-content: center;
  }

  #tab-alerts .alert-bulk-bar {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.data-list {
  display: grid;
  gap: .7rem;
}

.data-list-scroll {
  max-height: 590px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: .2rem;
}

.program-row,
.process-row,
.service-row,
.network-connection-row,
.printer-row,
.network-mapping-row,
.local-user-row,
.firewall-rule-row,
.defender-exclusion-row {
  display: grid;
  align-items: center;
  gap: .75rem;
  padding: .78rem .9rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.program-row:hover,
.process-row:hover,
.service-row:hover,
.network-connection-row:hover,
.printer-row:hover,
.network-mapping-row:hover,
.local-user-row:hover,
.firewall-rule-row:hover,
.defender-exclusion-row:hover {
  border-color: rgba(22, 93, 255, .28);
  box-shadow: 0 12px 26px rgba(10, 35, 58, .06);
  transform: translateY(-1px);
}

.program-row {
  grid-template-columns: 46px minmax(0, 1fr) auto minmax(42px, auto);
}

.process-row {
  grid-template-columns: 46px minmax(280px, 1fr) repeat(3, minmax(74px, auto)) minmax(42px, auto);
}

.service-row {
  grid-template-columns: 46px minmax(320px, 1fr) minmax(136px, auto) minmax(112px, auto) minmax(112px, auto);
}

.network-connection-row {
  grid-template-columns: 46px minmax(320px, 1fr) minmax(132px, auto);
}

.printer-row {
  grid-template-columns: 46px minmax(320px, 1fr) minmax(150px, auto) minmax(260px, auto);
}

.network-mapping-row {
  grid-template-columns: 28px 52px minmax(300px, 1fr) minmax(150px, auto) minmax(228px, auto);
}

.mapping-select-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 32px;
  margin: 0;
}

.mapping-bulk-form {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.mapping-bulk-form .form-check {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-muted);
  font-size: .82rem;
}

.printer-meta {
  display: grid;
  gap: .28rem;
  justify-items: start;
  color: var(--text-muted);
  font-size: .8rem;
}

.network-mapping-row .printer-meta {
  align-content: center;
}

.mapping-storage {
  display: grid;
  gap: .22rem;
  max-width: 520px;
  margin-top: .18rem;
}

.mapping-storage-bar {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
  border: 1px solid rgba(197, 211, 232, .72);
}

.mapping-storage-used {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, #20c463, #0ea45a);
}

.mapping-storage-used.is-warning {
  background: linear-gradient(90deg, #f59e0b, #e37b10);
}

.mapping-storage-used.is-danger {
  background: linear-gradient(90deg, #ef4444, #c02626);
}

.mapping-storage small {
  color: var(--text-muted);
  font-size: .76rem;
}

.printer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .45rem;
}

.printer-create-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: .65rem;
  align-items: center;
}

.printer-driver-path {
  grid-column: span 2;
}

.network-adapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: .85rem;
}

.network-adapter-card {
  display: grid;
  gap: .9rem;
  padding: .95rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
}

.network-adapter-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
}

.network-adapter-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}

.network-adapter-facts span {
  min-width: 0;
  display: grid;
  gap: .12rem;
  padding: .55rem .65rem;
  border: 1px solid rgba(217, 226, 236, .8);
  border-radius: 12px;
  background: rgba(248, 251, 255, .9);
}

.network-adapter-facts small {
  color: var(--text-muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.network-adapter-facts strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.network-fact-wide {
  grid-column: span 2;
}

.network-adapter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .5rem;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(440px, 1.25fr) repeat(2, minmax(260px, .75fr));
  gap: .85rem;
  align-items: start;
}

.location-card {
  display: grid;
  gap: .85rem;
  padding: .95rem;
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
}

.location-card-primary {
  min-height: 100%;
}

.location-card-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
}

.network-static-editor {
  position: relative;
}

.network-static-editor summary {
  list-style: none;
}

.network-static-editor summary::-webkit-details-marker {
  display: none;
}

.network-static-editor form {
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: .5rem;
  width: min(560px, calc(100vw - 3rem));
  padding: .75rem;
  border: 1px solid rgba(197, 211, 232, .95);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(10, 35, 58, .12);
}

.network-static-dns {
  grid-column: 1 / -1;
}

.network-static-editor .btn-primary {
  justify-self: end;
}

.network-connection-meta {
  display: grid;
  gap: .28rem;
  justify-items: start;
  color: var(--text-muted);
  font-size: .8rem;
}

.local-user-row {
  grid-template-columns: 46px minmax(320px, 1fr) minmax(156px, auto) minmax(250px, auto) minmax(156px, auto);
}

.firewall-rule-row {
  grid-template-columns: 46px minmax(320px, 1fr) minmax(172px, auto) minmax(230px, auto);
  align-items: start;
}

.firewall-rule-row:has(.firewall-rule-editor[open]) {
  padding-bottom: 9.6rem;
}

.defender-exclusion-row {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.row-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #155bd4;
  background: #eef6ff;
}

.mapping-drive-icon {
  position: relative;
  width: 46px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  color: #4b5563;
  background:
    linear-gradient(180deg, #e8ebef 0 19%, #c3c9d2 19% 20%, #8d96a4 20% 100%);
  border: 1px solid rgba(95, 108, 125, .28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 2px 4px rgba(15, 31, 42, .12);
}

.mapping-drive-icon::before {
  content: "";
  position: absolute;
  inset: 4px 6px auto 6px;
  height: 10px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .64), rgba(255, 255, 255, .08));
}

.mapping-drive-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 5px;
  height: 6px;
  border-radius: 999px;
  background: var(--mapping-bar-color, #21c46b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset;
}

.mapping-drive-icon .mapping-drive-light {
  position: absolute;
  left: 6px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mapping-led-color, #1ac55f);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .28);
}

.mapping-drive-connected {
  --mapping-bar-color: #1ac55f;
  --mapping-led-color: #1ac55f;
}

.mapping-drive-disconnected {
  --mapping-bar-color: #e04b3f;
  --mapping-led-color: #e04b3f;
  opacity: .92;
}

.row-icon.service-state-running {
  color: #087044;
  background: #dff8ea;
}

.row-icon.service-state-stopped {
  color: #6a7787;
  background: #eef2f7;
}

.row-icon.local-user-enabled {
  color: #087044;
  background: #dff8ea;
}

.row-icon.local-user-disabled {
  color: #6a7787;
  background: #eef2f7;
}

.row-icon.firewall-rule-icon-allow,
.row-icon.defender-exclusion-path,
.row-icon.defender-exclusion-process,
.row-icon.defender-exclusion-extension,
.row-icon.defender-exclusion-ip {
  color: #087044;
  background: #dff8ea;
}

.row-icon.firewall-rule-icon-block {
  color: #a51622;
  background: #ffe3e7;
}

.row-main {
  min-width: 0;
}

.row-main strong,
.row-main small,
.service-description {
  display: block;
}

.row-main small,
.service-description {
  overflow-wrap: anywhere;
}

.metric-mini {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 68px;
  border-radius: 12px;
}

.metric-mini small {
  color: var(--text-muted);
  font-size: .7rem;
  text-transform: uppercase;
}

.process-row-new {
  border-color: rgba(245, 158, 11, .45);
  background: #fffaf0;
}

.service-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
  border-radius: 12px;
}

.program-actions,
.process-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.program-actions .btn,
.process-actions .btn,
.local-user-actions .btn,
.local-user-password-form .btn,
.firewall-rule-actions > form .btn,
.defender-exclusion-remove-form .btn,
.service-monitor-action .btn {
  width: 36px;
  min-width: 36px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0;
}

.local-user-meta {
  display: grid;
  gap: .25rem;
}

.local-user-meta small {
  color: var(--text-muted);
  font-size: .78rem;
  white-space: nowrap;
}

.local-user-password-form,
.local-user-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .48rem;
}

.local-user-action-button {
  position: relative;
}

.local-user-password-form .form-control {
  width: min(170px, 100%);
}

.local-user-actions form,
.local-user-password-form {
  margin: 0;
}

.local-user-create-panel {
  display: grid;
  grid-template-columns: minmax(245px, 330px) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(248, 252, 255, .94);
}

.firewall-rule-create-panel,
.defender-exclusion-create-panel {
  display: grid;
  grid-template-columns: minmax(245px, 330px) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(248, 252, 255, .94);
}

.firewall-rule-create-form {
  display: grid;
  gap: .75rem;
  min-width: 0;
}

.firewall-rule-field-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) repeat(4, minmax(120px, .75fr));
  gap: .65rem;
  min-width: 0;
}

.firewall-rule-description-input {
  grid-column: span 2;
}

.firewall-rule-create-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.firewall-rule-create-button {
  min-width: 150px;
}

.firewall-rule-meta {
  display: grid;
  gap: .28rem;
  color: var(--text-muted);
  font-size: .8rem;
  justify-items: start;
}

.firewall-rule-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .45rem;
}

.firewall-rule-actions form,
.defender-exclusion-remove-form {
  margin: 0;
}

.firewall-rule-editor {
  position: relative;
}

.firewall-rule-editor summary {
  list-style: none;
}

.firewall-rule-editor summary::-webkit-details-marker {
  display: none;
}

.firewall-rule-editor[open] summary {
  border-color: rgba(22, 93, 255, .36);
  background: #eef6ff;
}

.firewall-rule-editor form {
  position: absolute;
  right: 4.9rem;
  z-index: 25;
  width: min(760px, calc(100vw - 9rem));
  margin-top: .55rem;
  padding: .8rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.firewall-rule-edit-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(100px, .7fr));
  gap: .55rem;
  align-items: center;
}

.firewall-rule-edit-check {
  min-width: 86px;
  min-height: 32px;
  padding: .26rem .62rem;
  font-size: .82rem;
}

.defender-exclusion-form {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) minmax(240px, 1fr) auto;
  gap: .65rem;
  min-width: 0;
}

.defender-exclusion-remove-form {
  justify-self: end;
}

.local-user-create-copy {
  display: grid;
  gap: .45rem;
  min-width: 0;
}

.local-user-create-panel h5 {
  color: #0c1f3b;
  font-weight: 850;
}

.local-user-create-panel small {
  color: var(--text-muted);
}

.local-user-create-form {
  display: grid;
  gap: .75rem;
  min-width: 0;
}

.remote-desktop-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: end;
  min-width: 0;
}

.remote-desktop-form textarea {
  min-height: 118px;
  resize: vertical;
}

.remote-desktop-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  min-width: 0;
}

.explorer-toolbar,
.explorer-actions-grid,
.explorer-path-form,
.explorer-inline-form,
.explorer-row-actions,
.explorer-rename-form {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.explorer-path-form,
.explorer-inline-form {
  flex: 1 1 auto;
}

.explorer-upload-picker {
  flex: 0 0 auto;
}

.explorer-upload-name {
  min-width: 130px;
  max-width: 260px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: .86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-actions-grid {
  align-items: stretch;
}

.explorer-shell {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 1rem;
  min-height: 520px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.explorer-tree {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  padding: .75rem;
  border-right: 1px solid var(--border-soft);
  background: rgba(248, 252, 255, .92);
  overflow: auto;
}

.explorer-tree-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: .45rem;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: .35rem .5rem;
  background: transparent;
  color: var(--text-main);
  text-align: left;
}

.explorer-tree-item.child {
  grid-template-columns: 14px 18px minmax(0, 1fr);
  padding-left: 1rem;
}

.explorer-tree-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-tree-item:hover,
.explorer-tree-item.is-active {
  background: rgba(25, 111, 212, .1);
  color: var(--primary);
}

.explorer-pane {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
}

.explorer-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.explorer-pane-head div {
  display: grid;
  min-width: 0;
}

.explorer-pane-head strong,
.explorer-pane-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#explorerSelectedLabel {
  color: var(--text-muted);
  font-size: .84rem;
}

.explorer-header-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 110px minmax(280px, auto);
  gap: .85rem;
  padding: .55rem .95rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.explorer-list {
  min-height: 0;
}

.explorer-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 110px minmax(280px, auto);
  gap: .85rem;
  align-items: center;
  padding: .85rem .95rem;
  border-bottom: 1px solid var(--border-soft);
  cursor: default;
}

.explorer-row:hover,
.explorer-row.is-selected {
  background: rgba(25, 111, 212, .08);
}

.explorer-row.is-pending {
  background: rgba(245, 158, 11, .1);
}

.explorer-name-cell {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.explorer-name-cell .row-main {
  min-width: 0;
}

.explorer-row-actions form {
  margin: 0;
  flex: 0 0 auto;
}

.explorer-row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}

.explorer-row-actions .local-user-action-button {
  flex: 0 0 auto;
}

.explorer-rename-form {
  flex: 0 1 230px;
  gap: .45rem;
}

.explorer-rename-form .form-control {
  min-width: 0;
  width: 180px;
  flex: 1 1 150px;
}

.explorer-progress {
  position: relative;
  overflow: hidden;
  width: 120px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .12);
}

.explorer-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width .2s ease;
}

.explorer-progress.is-indeterminate span {
  width: 42% !important;
  background: linear-gradient(90deg, #155bd4, #0ea5e9, #155bd4);
  animation: explorer-progress-slide 1.05s ease-in-out infinite;
}

.explorer-progress.is-done span {
  background: var(--brand-accent);
}

.explorer-progress.is-error span {
  width: 100% !important;
  background: var(--brand-danger);
}

@keyframes explorer-progress-slide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

.local-user-field-grid {
  display: grid;
  grid-template-columns: minmax(140px, .85fr) minmax(150px, .95fr) minmax(180px, 1.2fr) minmax(180px, 1.2fr);
  gap: .65rem;
  min-width: 0;
}

.local-user-create-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.local-user-toggle-group {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}

.local-user-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 96px;
  min-height: 40px;
  margin: 0;
  padding: .42rem .82rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fff;
  color: #153047;
  font-size: .92rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.local-user-check:hover {
  border-color: rgba(22, 93, 255, .3);
  background: #f8fbff;
}

.local-user-check .form-check-input {
  margin: 0;
}

.local-user-create-button {
  min-width: 150px;
}

.local-user-admin-badge {
  color: #0b5c3b;
  background: #dff8ea;
}

.local-user-builtin-badge {
  color: #525d6b;
  background: #eef2f7;
}

.service-meta .status-pill {
  min-height: 24px;
  padding: .18rem .52rem;
  font-size: .75rem;
}

.service-monitor-action form,
.service-actions form {
  margin: 0;
}

.process-lock-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(248, 252, 255, .92);
}

.process-lock-panel h5 {
  color: #0c1f3b;
  font-weight: 850;
}

.process-lock-panel small {
  color: var(--text-muted);
}

.process-lock-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

.process-new-row {
  background: #fff8f8;
}

.process-new-badge {
  display: inline-flex;
  margin-left: .45rem;
  padding: .12rem .42rem;
  border-radius: 999px;
  color: #842029;
  background: #ffdfe2;
  font-size: .72rem;
  font-weight: 850;
  vertical-align: middle;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.action-menu {
  --bs-offcanvas-width: min(820px, calc(100vw - 24px));
  width: var(--bs-offcanvas-width);
  max-width: 100vw;
  overflow-x: hidden;
}

.action-menu .offcanvas-header {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .96);
}

.action-menu .offcanvas-body {
  min-width: 0;
  overflow-x: hidden;
}

.action-menu-body {
  display: grid;
  align-content: start;
  gap: .9rem;
  padding: 1rem;
  background: linear-gradient(180deg, #f7fcff, #eef7fb);
}

.action-menu-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: .9rem;
  min-width: 0;
}

.action-menu-column {
  display: grid;
  align-content: start;
  gap: .9rem;
  min-width: 0;
}

.action-status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: .55rem;
  min-width: 0;
}

.action-status-strip span {
  min-width: 0;
  padding: .65rem .7rem;
  border: 1px solid rgba(20, 110, 173, .13);
  border-radius: 12px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 28px rgba(15, 77, 114, .08);
}

.action-status-strip i {
  color: #0f8fc9;
  font-size: 1rem;
}

.action-status-strip small,
.action-status-strip strong {
  display: block;
}

.action-status-strip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-status-strip small {
  margin-top: .35rem;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.action-status-strip strong {
  color: #0c1f3b;
  font-size: .84rem;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.22;
}

.action-color-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  min-width: 0;
  padding: .15rem .2rem;
  color: #64748b;
  font-size: .75rem;
  font-weight: 750;
}

.action-color-legend span {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  white-space: nowrap;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(15, 35, 59, .04);
}

.legend-blue {
  background: #0f62fe;
}

.legend-green {
  background: #12b76a;
}

.legend-amber {
  background: #f59e0b;
}

.legend-red {
  background: #ef4444;
}

.action-menu-section {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 34px rgba(15, 77, 114, .07);
  overflow: hidden;
}

.action-control-panel {
  display: grid;
  grid-template-columns: minmax(112px, .28fr) minmax(0, 1fr);
  align-items: center;
  gap: .9rem;
}

.action-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
  margin-bottom: .75rem;
}

.action-control-panel .action-menu-heading {
  display: block;
  margin-bottom: 0;
}

.action-menu-heading h6 {
  margin: 0;
  color: #0c1f3b;
  font-weight: 850;
}

.action-menu-heading span {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #165c75;
  background: #e0f7fb;
  font-size: .78rem;
  font-weight: 800;
}

.action-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 62px));
  justify-content: end;
  gap: .65rem;
  min-width: 0;
}

.action-icon-form {
  min-width: 0;
}

.action-icon-button {
  position: relative;
  display: grid;
  width: 58px;
  height: 54px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(22, 93, 255, .45);
  border-radius: 14px;
  color: #0f62fe;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  box-shadow: 0 10px 22px rgba(17, 91, 212, .08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.action-icon-button i {
  font-size: 1.24rem;
  line-height: 1;
}

.action-icon-button:hover,
.action-icon-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(22, 93, 255, .88);
  background: #eef6ff;
  box-shadow: 0 16px 28px rgba(17, 91, 212, .16);
}

.action-icon-button:disabled {
  opacity: .55;
  transform: none;
}

.action-icon-button.is-open,
.action-icon-button.action-tone-primary {
  color: #0f62fe;
  border-color: rgba(22, 93, 255, .46);
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
}

.action-icon-button.is-locked,
.action-icon-button.action-tone-warning {
  color: #9a5b00;
  border-color: rgba(242, 187, 54, .86);
  background: linear-gradient(180deg, #fffdf7, #fff3d2);
}

.action-icon-button.is-on {
  color: #087443;
  border-color: rgba(18, 183, 106, .48);
  background: linear-gradient(180deg, #ffffff, #f1fff8);
}

.action-icon-button.is-off,
.action-icon-button.action-tone-danger {
  color: #b42318;
  border-color: rgba(222, 63, 63, .45);
  background: linear-gradient(180deg, #fff, #fff5f5);
}

.action-state-dot {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, .13);
}

.action-icon-button.is-locked .action-state-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .16);
}

.action-icon-button.is-off .action-state-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .14);
}

.action-icon-button.is-pending .action-state-dot {
  background: #1e6fd6;
  box-shadow: 0 0 0 3px rgba(30, 111, 214, .16);
}

.action-message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 46px;
  gap: .6rem;
  min-width: 0;
}

.message-severity-picker {
  display: inline-grid;
  grid-template-columns: repeat(3, 42px);
  gap: .35rem;
  align-self: stretch;
  min-width: 0;
}

.message-severity-option {
  position: relative;
  display: grid;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(22, 93, 255, .28);
  border-radius: 12px;
  color: #0f62fe;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.message-severity-option i {
  font-size: 1.15rem;
}

.message-severity-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(17, 91, 212, .1);
}

.message-severity-option.severity-warning {
  color: #b45309;
  border-color: rgba(245, 158, 11, .32);
  background: #fffbf0;
}

.message-severity-option.severity-danger {
  color: #b42318;
  border-color: rgba(222, 63, 63, .3);
  background: #fff6f6;
}

.message-severity-picker .btn-check:checked + .message-severity-option {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f62fe, #149bd7);
  box-shadow: 0 12px 24px rgba(17, 91, 212, .2);
}

.message-severity-picker .btn-check:checked + .severity-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.message-severity-picker .btn-check:checked + .severity-danger {
  background: linear-gradient(135deg, #e5484d, #b42318);
}

.message-severity-picker .btn-check:focus-visible + .message-severity-option {
  outline: 3px solid rgba(22, 93, 255, .2);
  outline-offset: 2px;
}

.action-message-form textarea {
  grid-column: 1 / 3;
  min-width: 0;
  resize: vertical;
}

.action-send-button {
  grid-column: 3;
  grid-row: 1 / 3;
  min-height: 100%;
  border-radius: 12px;
}

.action-feed {
  display: grid;
  gap: .55rem;
  min-width: 0;
}

.action-feed-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  padding: .58rem .65rem;
  border: 1px solid rgba(217, 226, 236, .72);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
}

.action-feed-row-with-action {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .55rem;
}

.action-feed-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.action-feed-link:hover,
.action-feed-link:focus {
  color: inherit;
  text-decoration: none;
}

.action-feed-row-with-action form {
  margin: 0;
}

.action-feed-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #0f62fe;
  background: #edf6ff;
}

.action-feed-main {
  min-width: 0;
}

.action-feed-main strong,
.action-feed-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-feed-main strong {
  color: #0c1f3b;
  font-size: .9rem;
}

.action-feed-main small {
  color: var(--text-muted);
  font-size: .78rem;
}

.action-feed-status {
  padding: .24rem .48rem;
  border-radius: 999px;
  color: #115e3b;
  background: #dff8ea;
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}

.action-feed-empty {
  padding: .7rem;
  border: 1px dashed var(--border-soft);
  border-radius: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .62);
}

.activity-list {
  display: grid;
  gap: .7rem;
}

.activity-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .78rem .9rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
}

.activity-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #155bd4;
  background: #eef6ff;
}

.activity-main {
  min-width: 0;
}

.activity-main strong,
.activity-main small,
.activity-output {
  display: block;
}

.activity-main small {
  color: var(--text-muted);
}

.activity-output {
  margin-top: .32rem;
  color: #385466;
  font-size: .84rem;
  overflow-wrap: anywhere;
}

.activity-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: .45rem;
  margin-top: .65rem;
}

.activity-detail-grid > span {
  display: block;
  min-width: 0;
  padding: .48rem .58rem;
  border: 1px solid rgba(217, 226, 236, .86);
  border-radius: 10px;
  background: rgba(248, 252, 255, .88);
}

.activity-detail-grid small {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.activity-detail-grid strong {
  color: #0c1f3b;
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.activity-detail-wide {
  grid-column: span 2;
}

.activity-output {
  padding: .5rem .62rem;
  border: 1px solid rgba(217, 226, 236, .78);
  border-radius: 10px;
  background: #fff;
}

.activity-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .32rem .62rem;
  border-radius: 999px;
  color: #385466;
  background: #eef2f7;
  font-size: .82rem;
  font-weight: 850;
}

.activity-status-succeeded .activity-status-pill {
  color: #075c32;
  background: #dff8ea;
}

.activity-status-failed .activity-status-pill {
  color: #8f0c17;
  background: #ffe3e7;
}

.activity-status-pending .activity-status-pill,
.activity-status-sent .activity-status-pill {
  color: #805400;
  background: #fff0cc;
}

.action-link-button {
  white-space: nowrap;
}

.action-shortcuts {
  margin-bottom: .9rem;
  overflow: visible;
}

.action-shortcuts .action-menu-heading {
  margin-bottom: .55rem;
}

.action-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: .5rem;
  min-width: 0;
}

.action-shortcut-grid .btn {
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  padding-inline: .55rem;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.action-shortcut-grid .btn .bi {
  flex: 0 0 auto;
}

.action-admin-section {
  background: transparent;
  box-shadow: none;
}

.command-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .55rem;
}

.command-history-table {
  margin-bottom: 0;
}

.command-confirm-modal {
  border: 1px solid rgba(222, 63, 63, .16);
}

.command-confirm-modal .modal-header {
  background: #fff8f8;
}

.service-actions {
  display: flex;
  gap: .35rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.service-actions .btn {
  width: 34px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.btn[data-compact-icon-button="1"] .bi {
  line-height: 1;
}

.flash-stack {
  margin-bottom: 1rem;
}

.install-command {
  padding: .8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(12, 31, 59, .08);
}

.install-command code {
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .metric-grid,
  .security-grid,
  .inventory-layout,
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .diagnostic-item-wide {
    grid-column: span 2;
  }

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

  .dashboard-grid,
  .dashboard-ops-grid,
  .devices-grid,
  .exceptions-grid,
  .siem-hero,
  .siem-grid {
    grid-template-columns: 1fr;
  }

  .device-create-panel,
  .exception-create-panel {
    position: static;
  }

  .device-create-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .exception-create-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .device-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(150px, auto);
  }

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

  .exception-create-submit {
    grid-column: 1 / -1;
  }

  .device-card-row {
    grid-template-columns: 28px 42px minmax(0, 1fr);
  }

  .device-health-panel {
    grid-column: 3 / -1;
  }

  .device-row-actions {
    grid-column: 3 / -1;
    justify-content: flex-start;
  }

  .devices-toolbar,
  .exceptions-toolbar {
    grid-template-columns: 1fr;
  }

  .devices-filter-chips,
  .exceptions-filter-chips {
    justify-content: flex-start;
  }

  .exception-card-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .alert-card-row {
    grid-template-columns: 42px minmax(110px, auto) minmax(0, 1fr);
  }

  .alert-card-main,
  .alert-card-state,
  .alert-card-history,
  .alert-card-row > .alert-actions {
    grid-column: 3 / -1;
  }

  .alert-card-row > .alert-actions {
    justify-content: flex-start;
  }

  .exception-meta-panel,
  .exception-target,
  .exception-remove-form {
    grid-column: 2 / -1;
  }

  .service-row,
  .local-user-row,
  .firewall-rule-row {
    grid-template-columns: 46px minmax(260px, 1fr) minmax(132px, auto);
  }

  .service-monitor-action,
  .service-actions,
  .local-user-password,
  .local-user-actions,
  .firewall-rule-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .local-user-create-panel,
  .local-user-field-grid,
  .remote-desktop-form,
  .remote-desktop-control-grid,
  .explorer-shell,
  .explorer-header-row,
  .explorer-row,
  .firewall-rule-create-panel,
  .firewall-rule-field-grid,
  .defender-exclusion-create-panel,
  .defender-exclusion-form,
  .firewall-rule-edit-grid {
    grid-template-columns: 1fr;
  }

  .firewall-rule-description-input {
    grid-column: auto;
  }

  .event-summary-grid,
  .event-toolbar,
  .exception-central-form,
  .siem-kpi-grid,
  .siem-source-grid,
  .siem-incident-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .btn[data-compact-icon-button="1"] {
    display: inline-grid;
    grid-auto-flow: column;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    overflow: hidden;
    gap: 0;
    white-space: nowrap;
    font-size: 0;
  }

  .btn-sm[data-compact-icon-button="1"] {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .btn-lg[data-compact-icon-button="1"] {
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  .btn[data-compact-icon-button="1"] .bi {
    margin: 0;
    font-size: 1rem;
  }

  .btn-sm[data-compact-icon-button="1"] .bi {
    font-size: .95rem;
  }

  .btn[data-compact-icon-button="1"].w-100,
  .device-action-trigger[data-compact-icon-button="1"],
  .action-send-button[data-compact-icon-button="1"] {
    width: 42px !important;
    min-width: 42px;
    max-width: 42px;
  }

  .device-action-trigger[data-compact-icon-button="1"] {
    align-self: flex-start;
  }

  .dashboard-hero-actions,
  .diagnostic-head-actions,
  .process-lock-actions,
  .service-actions,
  .alert-actions,
  .event-actions {
    align-items: center;
    gap: .45rem;
  }

  .app-sidebar {
    position: static;
    width: auto;
    border-radius: 0 0 18px 18px;
  }

  .app-main.with-sidebar,
  .app-shell.sidebar-collapsed .app-main.with-sidebar,
  .app-footer,
  .app-shell.sidebar-collapsed .app-footer {
    margin-left: 0;
  }

  .app-shell.sidebar-collapsed .brand-stack span,
  .app-shell.sidebar-collapsed .sidebar-nav span,
  .app-shell.sidebar-collapsed .section-title,
  .app-shell.sidebar-collapsed .user-chip {
    display: initial;
  }

  .hero-card,
  .dashboard-hero,
  .exception-hero,
  .page-heading,
  .device-workspace-nav,
  .workspace-head,
  .data-section-head,
  .process-lock-panel,
  .local-user-create-panel,
  .firewall-rule-create-panel,
  .defender-exclusion-create-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .local-user-create-form,
  .remote-desktop-form,
  .explorer-toolbar,
  .explorer-actions-grid,
  .explorer-path-form,
  .explorer-inline-form,
  .explorer-row-actions,
  .explorer-pane-head,
  .firewall-rule-create-form {
    width: 100%;
  }

  .local-user-create-controls,
  .explorer-toolbar,
  .explorer-actions-grid,
  .explorer-pane-head,
  .firewall-rule-create-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .local-user-create-button,
  .remote-desktop-form .btn,
  .firewall-rule-create-button,
  .defender-exclusion-form .btn {
    width: 100%;
  }

  .data-search {
    width: 100%;
  }

  .dashboard-hero-actions {
    justify-content: flex-start;
  }

  .exception-kpis {
    justify-content: flex-start;
  }

  .siem-incident {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .siem-heading-actions {
    justify-content: flex-start;
  }

  .siem-rule-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .siem-rule-row .form-select,
  .siem-rule-row .form-check-input {
    grid-column: 2;
    width: fit-content;
  }

  .siem-feed-strip,
  .siem-rule-grid,
  .siem-source-grid,
  .siem-incident-filters {
    grid-template-columns: 1fr;
  }

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

  .siem-incident-admin > span {
    width: 100%;
    margin-right: 0;
  }

  .siem-ioc-form,
  .siem-ioc-row {
    grid-template-columns: 1fr;
  }

  .siem-score {
    grid-column: 2;
    text-align: left;
  }

  .program-row,
  .process-row,
  .network-connection-row,
  .printer-row,
  .local-user-row,
  .firewall-rule-row,
  .defender-exclusion-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .program-row .row-pill,
  .program-actions,
  .process-row .metric-mini,
  .process-actions,
  .network-connection-meta,
  .printer-meta,
  .printer-actions,
  .local-user-meta,
  .local-user-password,
  .local-user-actions,
  .firewall-rule-meta,
  .firewall-rule-actions,
  .defender-exclusion-remove-form {
    grid-column: 2;
    width: fit-content;
  }

  .firewall-rule-editor form {
    position: static;
    width: min(100%, 760px);
  }

  .firewall-rule-row:has(.firewall-rule-editor[open]) {
    padding-bottom: .78rem;
  }

  .device-workspace-nav .app-tabs {
    width: 100%;
  }

  .device-action-trigger {
    width: 100%;
  }

  .process-lock-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .network-adapter-grid {
    grid-template-columns: 1fr;
  }

  .location-layout {
    grid-template-columns: 1fr;
  }

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

  .network-static-editor form {
    position: static;
    width: min(100%, 560px);
    margin-top: .45rem;
  }
}

@media (max-width: 640px) {
  .metric-grid,
  .dashboard-kpi-grid,
  .command-grid,
  .security-grid,
  .inventory-layout,
  .diagnostic-grid,
  .memory-summary-grid,
  .event-summary-grid,
  .exception-summary-grid,
  .event-toolbar,
  .action-menu-layout,
  .action-status-strip,
  .action-shortcut-grid,
  .action-control-panel,
  .action-message-form,
  .exception-central-form,
  .siem-kpi-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-item-wide {
    grid-column: auto;
  }

  .diagnostic-item-compact {
    max-width: none;
  }

  .action-icon-grid {
    justify-content: start;
  }

  .action-message-form textarea,
  .action-send-button {
    grid-column: auto;
    grid-row: auto;
  }

  .activity-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .activity-status-pill {
    grid-column: 2;
  }

  .siem-console {
    padding: .65rem;
    border-radius: 18px;
  }

  .siem-tabs {
    position: static;
    width: 100%;
  }

  .siem-tabs .nav-link {
    width: 100%;
    justify-content: center;
  }

  .activity-detail-grid {
    grid-template-columns: 1fr;
  }

  .activity-detail-wide {
    grid-column: auto;
  }

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

  .info-list div,
  .service-row,
  .network-connection-row,
  .network-mapping-row,
  .printer-row,
  .local-user-row,
  .firewall-rule-row,
  .defender-exclusion-row {
    grid-template-columns: 1fr;
  }

  .program-row,
  .process-row,
  .device-card-row,
  .device-card-list.compact .device-card-row,
  .exception-card-row,
  .device-token-banner {
    grid-template-columns: 1fr;
  }

  .device-create-panel,
  .device-create-form,
  .exception-create-panel,
  .exception-create-form {
    grid-template-columns: 1fr;
  }

  .device-create-summary,
  .exception-create-summary,
  .device-health-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .device-system-network {
    grid-template-columns: 1fr;
    row-gap: .25rem;
  }

  .device-card-list .row-main {
    display: block;
  }

  .device-health-panel,
  .device-row-actions {
    grid-column: auto;
  }

  .exception-meta-panel {
    grid-column: auto;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .exception-meta-panel .exception-target {
    width: 100%;
  }

  .exception-create-submit {
    grid-column: auto;
  }

  .device-card-meta {
    min-width: 0;
  }

  .network-adapter-head,
  .location-card-head,
  .network-adapter-facts,
  .network-static-editor form {
    grid-template-columns: 1fr;
  }

  .network-fact-wide,
  .network-static-dns,
  .printer-driver-path {
    grid-column: auto;
  }

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

  .mapping-bulk-form {
    width: 100%;
    justify-content: space-between;
  }

  .mapping-select-cell {
    justify-content: flex-start;
  }

  .device-row-actions {
    grid-column: auto;
    justify-content: flex-start;
  }

  .device-health-panel {
    grid-column: auto;
    width: 100%;
  }

  .device-health-chips {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .row-icon {
    width: 38px;
    height: 38px;
  }

  .program-row .row-pill,
  .process-row .metric-mini,
  .exception-target,
  .exception-remove-form,
  .service-monitor-action,
  .service-actions,
  .network-connection-meta,
  .local-user-meta,
  .local-user-password,
  .local-user-actions,
  .firewall-rule-meta,
  .firewall-rule-actions,
  .defender-exclusion-remove-form {
    grid-column: auto;
  }

  .threat-head,
  .threat-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .threat-item {
    grid-template-columns: 1fr;
  }

  .event-row {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .alert-card-row {
    grid-template-columns: 1fr;
  }

  .alert-card-severity,
  .alert-card-main,
  .alert-card-state,
  .alert-card-history,
  .alert-card-row > .alert-actions {
    grid-column: auto;
  }

  .alert-card-severity,
  .alert-card-row > .alert-actions {
    justify-content: flex-start;
  }

  .alert-row,
  .process-alert-layout,
  .process-exception-form,
  .trust-process-details,
  .trust-scope-options {
    grid-template-columns: 1fr;
  }

  .dashboard-triage-panel .dashboard-alert-list {
    grid-template-columns: 1fr;
  }

  .alert-actions {
    width: fit-content;
    justify-content: flex-start;
  }

  .alert-bulk-bar {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .trust-process-path {
    grid-column: auto;
  }

  .alert-inline-action {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    margin-left: 0;
  }

  .event-actions {
    grid-column: 2;
    width: fit-content;
  }

  .threat-detail-grid {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: none;
  }
}
