:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --panel: #ffffff;
  --ink: #18211f;
  --muted: #687570;
  --line: #dfe7e3;
  --green: #177a55;
  --teal: #0f6f7d;
  --red: #b3313a;
  --amber: #a56b00;
  --blue: #315c9b;
  --sidebar: #101716;
  --surface: #fbfdfc;
  --surface-strong: #f7fbf9;
  --shadow-soft: 0 12px 28px rgba(16, 23, 22, 0.075);
  --shadow-lift: 0 22px 44px rgba(16, 23, 22, 0.14);
  --glow-green: 0 0 0 1px rgba(23, 122, 85, 0.1), 0 18px 42px rgba(23, 122, 85, 0.16);
  --glow-blue: 0 0 0 1px rgba(49, 92, 155, 0.11), 0 18px 42px rgba(49, 92, 155, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.home-view {
  grid-template-columns: 1fr;
}

body.home-view .sidebar {
  display: none;
}

body.home-view main {
  width: min(1240px, 100%);
  margin: 0 auto;
}

body:not(.alarm-workspace-view) [data-nav-group="alarmas"],
body.security-workspace-view [data-nav-group="alarmas"],
body.security-workspace-view [data-nav-group="modules"],
body.security-workspace-view [data-nav-group="admin"],
body.operational-module-view [data-nav-group="alarmas"],
body.operational-module-view [data-nav-group="security"],
body.operational-module-view [data-nav-group="admin"],
body.admin-workspace-view [data-nav-group="alarmas"],
body.admin-workspace-view [data-nav-group="security"],
body.admin-workspace-view [data-nav-group="modules"],
body.alarm-workspace-view [data-nav-group="security"],
body.alarm-workspace-view [data-nav-group="modules"],
body.alarm-workspace-view [data-nav-group="admin"],
body.module-detail-view [data-nav-group] {
  display: none;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #101716 0%, #1d3f39 58%, #f4f7f6 58%);
  background-size: 44px 44px, 44px 44px, auto;
}

.login-panel {
  width: min(560px, 100%);
  display: grid;
  gap: 16px;
  border: 1px solid #c8d9d3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 250, 0.98)),
    white;
  padding: 28px;
  box-shadow: 0 22px 60px rgba(16, 23, 22, 0.28);
}

.login-brand {
  margin-bottom: 2px;
  color: var(--ink);
}

.login-brand .brand-mark {
  color: white;
}

.login-panel h1 {
  font-size: 28px;
  line-height: 1.1;
}

.login-options {
  display: grid;
  gap: 10px;
}

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

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  min-height: 54px;
  border: 2px solid #c8d9d3;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-form input:focus {
  border-color: #0f7f6e;
  box-shadow: 0 0 0 4px rgba(15, 127, 110, 0.16);
}

.login-form button {
  min-height: 54px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 950;
}

.login-quick-access {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.login-option {
  min-height: 68px;
  display: grid;
  justify-items: start;
  gap: 3px;
  border-color: #d4e0dc;
  background: #fbfdfc;
  padding: 12px 14px;
  text-align: left;
}

.login-option:hover {
  border-color: rgba(15, 111, 125, 0.36);
  background: #f3f8f6;
}

.login-option strong,
.login-option span {
  display: block;
}

.login-option span {
  color: var(--muted);
  font-size: 13px;
}

.sidebar {
  background: var(--sidebar);
  color: white;
  padding: 24px 18px;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: #1d3f39;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand-copy strong span {
  color: #9ed8c0;
}

.brand-copy small {
  color: #b8c8c2;
  margin-top: 2px;
  font-size: 12px;
}

.brand-copy img {
  width: 104px;
  max-width: 100%;
  display: block;
  margin-top: 8px;
  border-radius: 2px;
  background: white;
  padding: 3px 4px;
}

.brand-byline {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 2px 60px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-byline img {
  width: 142px;
  height: auto;
  display: block;
}

nav {
  display: grid;
  gap: 6px;
}

.nav-section {
  margin: 12px 8px 2px;
  color: #7fa99a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

nav a {
  color: #c8d6d1;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

nav a.active,
nav a:hover {
  background: #20302d;
  color: white;
}

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d92d20;
  color: white;
  font-size: 11px;
  font-weight: 900;
}

main {
  padding: 26px;
  min-width: 0;
}

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

.incident-alert {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #f0a7a1;
  border-left: 6px solid #d92d20;
  border-radius: 8px;
  background: #fff1f0;
  color: #7a271a;
  box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.32);
  animation: alertGlow 1500ms ease-in-out infinite;
}

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

.incident-alert-pulse {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #d92d20;
  box-shadow: 0 0 0 6px rgba(217, 45, 32, 0.14);
  animation: alertPulse 900ms ease-in-out infinite;
}

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

.incident-alert strong {
  font-size: 15px;
  font-weight: 900;
}

.incident-alert span {
  margin-top: 2px;
  color: #912018;
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
}

.incident-alert a {
  color: white;
  text-decoration: none;
  border-radius: 8px;
  background: #b42318;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 2px 5px rgba(180, 35, 24, 0.24), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transition: transform 90ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.rounds-module-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 1.4fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid rgba(202, 217, 212, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.93), rgba(247, 251, 249, 0.98)),
    #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.rounds-module-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(23, 122, 85, 0.075), transparent 42%),
    linear-gradient(90deg, transparent 0 78%, rgba(15, 111, 125, 0.055) 79% 100%);
  pointer-events: none;
}

.rounds-module-header > * {
  position: relative;
  z-index: 1;
}

.rounds-module-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 18px 20px;
  border-left: 6px solid var(--green);
}

.rounds-module-copy span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rounds-module-copy strong {
  font-size: 22px;
  line-height: 1.15;
}

.rounds-module-copy p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.rounds-module-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.rounds-module-stat {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 98px;
  padding: 14px;
  background: #fbfdfc;
}

.rounds-module-stat::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #b9c8c3;
  box-shadow: 0 0 0 5px rgba(185, 200, 195, 0.16);
}

.rounds-module-stat.good::after {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(23, 122, 85, 0.13);
}

.rounds-module-stat.warning::after {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(165, 107, 0, 0.13);
}

.rounds-module-stat.danger::after {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(179, 49, 58, 0.13);
}

.rounds-module-stat small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.rounds-module-stat strong {
  font-size: 20px;
  line-height: 1.15;
}

.rounds-module-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: normal;
}

.rounds-module-stat.good strong {
  color: var(--green);
}

.rounds-module-stat.warning strong {
  color: var(--amber);
}

.rounds-module-stat.danger {
  background: #fff4f2;
}

.rounds-module-stat.danger strong {
  color: var(--red);
}

@keyframes alertPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.32);
    opacity: 0.72;
  }
}

@keyframes alertGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.24);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(217, 45, 32, 0.08);
  }
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 17px;
}

.topbar p,
.panel-header span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 14px;
}

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

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

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

.session-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.session-box select {
  width: 180px;
  min-height: 38px;
  padding: 8px 10px;
}

button {
  min-height: 38px;
  border: 1px solid #cbd8d3;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), inset 0 -1px 0 rgba(16, 24, 40, 0.08);
  transition: transform 90ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease, filter 120ms ease;
  user-select: none;
}

.actions button,
.form-actions button:first-child,
.voice-preview button:first-child,
.executive-actions a:first-child {
  background: var(--green);
  color: white;
  border-color: var(--green);
  box-shadow: 0 2px 5px rgba(23, 122, 85, 0.24), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

button.success,
.mini.success {
  background: var(--green);
  color: white;
  border-color: var(--green);
  box-shadow: 0 2px 5px rgba(23, 122, 85, 0.24), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

button:hover,
.executive-actions a:hover,
.incident-alert a:hover {
  filter: brightness(1.01);
  border-color: #9fb3ab;
  box-shadow: 0 5px 12px rgba(16, 24, 40, 0.15), inset 0 -1px 0 rgba(16, 24, 40, 0.09);
  transform: translateY(-2px);
}

button:active,
button.pressed,
.executive-actions a:active,
.incident-alert a:active {
  filter: brightness(0.94);
  box-shadow: inset 0 2px 4px rgba(16, 24, 40, 0.18);
  transform: translateY(1px) scale(0.99);
}

button.is-busy {
  position: relative;
  overflow: hidden;
  color: transparent !important;
}

button.is-busy::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  color: var(--teal);
  animation: buttonSpin 700ms linear infinite;
}

button.is-busy.danger::after,
.mini.danger.is-busy::after {
  color: var(--red);
}

@keyframes buttonSpin {
  to {
    transform: rotate(360deg);
  }
}

button:focus-visible,
.executive-actions a:focus-visible,
.incident-alert a:focus-visible {
  outline: 3px solid rgba(15, 111, 125, 0.28);
  outline-offset: 2px;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

button.danger {
  border-color: #f2b8b5;
  color: var(--red);
  background: #fff7f7;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.executive {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 16px;
  margin-bottom: 16px;
}

.executive-main {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.executive-main h2 {
  max-width: 780px;
  font-size: 28px;
  line-height: 1.14;
}

.executive-main p {
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.executive-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.executive-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd8d3;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), inset 0 -1px 0 rgba(16, 24, 40, 0.08);
  transition: transform 90ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease, filter 120ms ease;
}

.executive-actions a:first-child {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

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

.value-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.value-card strong {
  font-size: 22px;
}

.value-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.presentation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 16px;
  margin-bottom: 16px;
}

.story-list,
.roadmap {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.story-list div,
.roadmap div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.story-list strong,
.roadmap strong {
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f1f4;
  color: var(--teal);
  font-size: 12px;
}

.roadmap strong {
  width: auto;
  padding: 0 8px;
  border-radius: 8px;
}

.story-list span,
.roadmap span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.demo-panel {
  margin-bottom: 16px;
}

.telephony-panel {
  margin-bottom: 16px;
}

.reports-view {
  display: grid;
  gap: 16px;
}

.escalation-config {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(360px, 1.05fr);
  gap: 16px;
}

.escalation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  padding: 16px;
}

.escalation-summary-card {
  min-height: 100px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #f0faf5;
  padding: 12px;
}

.escalation-summary-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.escalation-summary-card strong {
  font-size: 20px;
  line-height: 1.1;
}

.escalation-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.escalation-posts {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding: 12px 16px 16px;
}

.escalation-post {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 10px 12px;
}

.escalation-post strong {
  font-size: 14px;
}

.escalation-post span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.escalation-post em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--teal);
  padding: 0 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.system-health {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 16px;
}

.health-card {
  min-height: 96px;
  display: grid;
  align-content: space-between;
  gap: 7px;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.health-card small,
.module-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.health-card strong {
  font-size: 22px;
  line-height: 1;
}

.health-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.health-card.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.health-card.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.health-card.danger {
  border-left-color: var(--red);
  background: #fff3f2;
}

.health-center-module {
  display: grid;
  gap: 18px;
}

.health-center-hero-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(21, 69, 59, 0.98), rgba(14, 45, 41, 0.98)),
    var(--ink);
  color: white;
}

.health-center-hero {
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
}

.health-center-hero span {
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.health-center-hero strong {
  display: block;
  margin-top: 6px;
  font-size: 42px;
  line-height: 1;
}

.health-center-hero p {
  max-width: 760px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.health-center-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.health-center-kpi {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px 18px;
}

.health-center-kpi small,
.health-component-row small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.health-center-kpi strong {
  font-size: 28px;
  line-height: 1;
}

.health-center-kpi span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.health-center-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.health-component-list,
.health-issue-list,
.health-event-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.health-component-row,
.health-issue-row,
.health-event-row,
.health-empty {
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.health-component-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.health-component-row small {
  color: var(--muted);
}

.health-component-row strong,
.health-issue-row strong,
.health-event-row strong,
.health-empty strong {
  display: block;
  font-size: 15px;
}

.health-component-row span,
.health-issue-row span,
.health-event-row span,
.health-empty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.health-event-row em {
  display: block;
  margin-top: 6px;
  color: var(--amber);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.health-component-row.good,
.health-empty {
  border-left-color: var(--green);
}

.health-component-row.warning,
.health-issue-row.warning,
.health-event-row.warning,
.health-center-kpi.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.health-component-row.danger,
.health-issue-row.danger,
.health-center-kpi.danger {
  border-left-color: var(--red);
  background: #fff3f2;
}

.health-center-kpi.good,
.health-center-kpi.warning,
.health-center-kpi.danger {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 4px 0 rgba(185, 200, 195, 0.62);
}

.health-center-kpi.good {
  box-shadow: inset 0 4px 0 rgba(25, 135, 84, 0.85);
}

.health-center-kpi.warning {
  box-shadow: inset 0 4px 0 rgba(181, 121, 28, 0.95);
}

.health-center-kpi.danger {
  box-shadow: inset 0 4px 0 rgba(184, 37, 31, 0.95);
}

.operation-now {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 1.4fr) minmax(220px, 0.9fr);
  gap: 10px;
  padding: 0 16px 14px;
}

.operation-now-main,
.operation-now-list {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.operation-now-main {
  display: grid;
  align-content: center;
  gap: 4px;
  border-left: 5px solid #b9c8c3;
}

.operation-now-main small,
.operation-now-list small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-now-main strong {
  font-size: 18px;
}

.operation-now-main span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.operation-now-main.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.operation-now-main.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.operation-now-main.danger {
  border-left-color: var(--red);
  background: #fff3f2;
}

.operation-now-list {
  display: grid;
  gap: 7px;
}

.operation-now-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: center;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 8px 10px;
}

.operation-now-row strong,
.operation-now-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-now-row strong {
  font-size: 13px;
}

.operation-now-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.operation-now-row.good {
  background: #eef9f3;
}

.operation-now-row.danger {
  background: #fff1f0;
}

.print-report-title {
  display: none;
  padding: 18px 16px 4px;
}

.print-report-title strong,
.print-report-title span {
  display: block;
}

.print-report-title strong {
  font-size: 24px;
}

.print-report-title span {
  color: var(--muted);
  margin-top: 3px;
}

.report-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 16px;
}

.report-filters label {
  min-width: 0;
  display: grid;
  gap: 6px;
  text-transform: none;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  padding: 16px;
}

.report-kpi {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
}

.report-kpi strong {
  font-size: 28px;
  line-height: 1;
}

.report-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-kpi.good {
  border-color: #b8dfcd;
  background: #f0faf5;
}

.report-kpi.good strong {
  color: var(--green);
}

.report-kpi.warning {
  border-color: #f0d394;
  background: #fff8e8;
}

.report-kpi.warning strong {
  color: var(--amber);
}

.report-kpi.danger {
  border-color: #f3b8b5;
  background: #fff3f2;
}

.report-kpi.danger strong {
  color: var(--red);
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.report-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.report-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 10px 12px;
}

.report-row strong {
  font-size: 14px;
}

.report-row span,
.report-count {
  min-width: 34px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #eef3f1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.report-count.good {
  background: #e4f3ec;
  color: var(--green);
}

.report-count.warning {
  background: #fff1d6;
  color: var(--amber);
}

.report-count.danger {
  background: #fae8e9;
  color: var(--red);
}

.report-empty {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.post-history-panel {
  margin-top: 16px;
}

.post-history-empty {
  padding: 16px;
  color: var(--muted);
  font-weight: 800;
}

.post-history {
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.post-history-kpis div,
.post-history-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 13px;
}

.post-history-kpis strong {
  font-size: 24px;
}

.post-history-kpis span,
.post-history-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.post-history-kpis span {
  font-weight: 900;
  text-transform: uppercase;
}

.post-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.post-history-card strong {
  font-size: 14px;
}

.post-history-card.force-card {
  border-left: 5px solid var(--teal);
}

.post-history-card span b {
  color: var(--ink);
}

.force-overview {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.force-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.35fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 16px;
}

.force-filters label {
  text-transform: none;
}

.force-dashboard {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(260px, 1.15fr) minmax(150px, 0.55fr) minmax(210px, 0.85fr);
  gap: 12px;
}

.force-gauge-card,
.force-chart-card,
.force-snapshot-card,
.force-attention-card {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
}

.force-gauge-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.force-gauge {
  position: relative;
  width: 128px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -2deg, rgba(16, 23, 22, 0.12) 0 2deg, transparent 2deg 18deg),
    radial-gradient(circle at center, #fbfdfc 0 54%, transparent 55%),
    conic-gradient(var(--green) 0 var(--coverage), #e7eeeb var(--coverage) 360deg);
  box-shadow: inset 0 0 0 1px rgba(23, 122, 85, 0.12), 0 12px 24px rgba(16, 23, 22, 0.1);
}

.force-gauge div {
  width: 86px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(16, 23, 22, 0.08);
}

.force-gauge strong {
  font-size: 27px;
  line-height: 1;
}

.force-gauge span,
.force-gauge-copy span,
.force-gauge-copy small,
.force-chart-card span,
.force-snapshot-card span,
.force-attention-card span,
.force-attention-card em {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.force-gauge-copy small {
  display: block;
}

.force-gauge-copy {
  display: grid;
  gap: 6px;
}

.force-gauge-copy strong,
.force-chart-card > strong,
.force-attention-card > strong {
  font-size: 15px;
}

.force-chart-card {
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.force-bar-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 24px;
  gap: 9px;
  align-items: center;
}

.force-bar-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), transparent),
    #e7eeeb;
  box-shadow: inset 0 1px 2px rgba(16, 23, 22, 0.08);
}

.force-bar-row i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #b9c8c3, #d3ddd9);
  box-shadow: 0 0 12px rgba(16, 23, 22, 0.08);
}

.force-bar-row.good i {
  background: linear-gradient(90deg, #177a55, #42a878);
}

.force-bar-row.warning i {
  background: linear-gradient(90deg, #a56b00, #d99a2b);
}

.force-bar-row.danger i {
  background: linear-gradient(90deg, #b3313a, #df6265);
}

.force-bar-row b {
  font-size: 13px;
  text-align: right;
}

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

.force-snapshot-card div {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.force-snapshot-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.force-snapshot-card strong {
  font-size: 24px;
  line-height: 1;
}

.force-attention-card {
  display: grid;
  align-content: start;
  gap: 8px;
  border-left: 5px solid #b9c8c3;
}

.force-attention-card.active {
  border-left-color: var(--red);
  background: #fffafa;
}

.force-attention-card button {
  display: grid;
  gap: 2px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
  box-shadow: none;
}

.force-attention-card button b {
  font-size: 13px;
}

.force-attention-card button em {
  font-style: normal;
}

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

.force-kpi {
  min-height: 86px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.force-kpi strong {
  font-size: 28px;
  line-height: 1;
}

.force-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.force-kpi.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.force-kpi.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.force-kpi.danger {
  border-left-color: var(--red);
  background: #fff3f2;
}

.force-client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.force-client-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 178px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-left: 7px solid #b9c8c3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 250, 0.98)),
    white;
  color: var(--ink);
  padding: 15px;
  box-shadow: 0 9px 18px rgba(16, 23, 22, 0.065);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.force-client-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 111, 125, 0.075), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent 35%);
  pointer-events: none;
}

.force-client-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(15, 111, 125, 0.12);
  border-radius: 8px;
  transform: rotate(45deg);
  pointer-events: none;
}

.force-client-card > * {
  position: relative;
  z-index: 1;
}

.force-client-card:hover {
  border-color: rgba(15, 111, 125, 0.34);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.force-client-card.selected,
.force-client-card.voice-selected {
  border-color: rgba(15, 111, 125, 0.52);
  border-left-color: var(--teal);
  background:
    linear-gradient(135deg, rgba(15, 111, 125, 0.105), rgba(23, 122, 85, 0.055) 48%, rgba(255, 255, 255, 0.96)),
    white;
  box-shadow: 0 0 0 3px rgba(15, 111, 125, 0.14), 0 20px 42px rgba(16, 23, 22, 0.16);
  transform: translateY(-2px);
}

.force-client-card.selected::after,
.force-client-card.voice-selected::after {
  border-color: rgba(15, 111, 125, 0.28);
  background: rgba(15, 111, 125, 0.06);
}

.force-client-card.covered {
  border-left-color: var(--green);
}

.force-client-card.partial,
.force-client-card.standby {
  border-left-color: var(--amber);
}

.force-client-card.uncovered {
  border-left-color: var(--red);
  background:
    linear-gradient(135deg, rgba(179, 49, 58, 0.08), transparent 48%),
    #fffafa;
  box-shadow: 0 0 0 2px rgba(179, 49, 58, 0.08), 0 12px 24px rgba(179, 49, 58, 0.11);
}

.force-client-card.has-incident {
  border-top-color: rgba(179, 49, 58, 0.4);
}

.force-client-card span,
.force-client-card small,
.force-client-card em,
.force-client-card i,
.force-client-card b,
.force-client-card mark {
  display: block;
}

.force-client-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.force-client-card span {
  min-width: 0;
  overflow: hidden;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.force-client-card i {
  flex: 0 0 auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--muted);
  padding: 0 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: inset 0 -1px 0 rgba(16, 23, 22, 0.07);
}

.force-client-card.covered i {
  background: #dff2e9;
  color: var(--green);
}

.force-client-card.partial i,
.force-client-card.standby i {
  background: #ffedc2;
  color: var(--amber);
}

.force-client-card.uncovered i,
.force-client-card.has-incident i {
  background: #fae8e9;
  color: var(--red);
}

.force-client-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.force-client-meta small {
  width: fit-content;
  border: 1px solid rgba(207, 221, 216, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 4px 8px;
}

.force-client-card > span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.force-client-card strong {
  font-size: 22px;
  line-height: 1.05;
}

.force-client-name {
  display: grid;
  gap: 4px;
}

.force-client-name b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.force-client-card small,
.force-client-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.force-client-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(207, 221, 216, 0.86);
  padding-top: 10px;
}

.force-client-bottom em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.force-client-card mark {
  width: fit-content;
  border-radius: 999px;
  background: #eaf6f0;
  color: var(--green);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.force-client-card.uncovered mark,
.force-client-card.has-incident mark {
  background: #fae8e9;
  color: var(--red);
}

.force-client-card.selected,
.force-client-card.voice-selected {
  border-left-color: var(--teal);
}

.force-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #f0d394;
  border-left: 6px solid var(--amber);
  border-radius: 8px;
  background: #fff8e8;
  padding: 12px 14px;
}

.force-alert.uncovered {
  border-color: #f0c3c0;
  border-left-color: var(--red);
  background: #fff3f2;
}

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

.force-alert strong {
  font-size: 15px;
}

.force-alert span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.force-empty {
  color: var(--muted);
  font-weight: 800;
}

.programming-view {
  display: grid;
  gap: 16px;
}

.scheduler-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}

.scheduler-banner strong,
.scheduler-banner span {
  display: block;
}

.scheduler-banner strong {
  font-size: 14px;
}

.scheduler-banner span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.scheduler-banner.active {
  background: #f0faf5;
  color: var(--green);
}

.scheduler-banner.paused {
  background: #fff3f2;
  color: var(--red);
}

.programming-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.programming-kpi {
  min-height: 86px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 13px;
}

.programming-kpi strong {
  font-size: 26px;
}

.programming-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.users-panel {
  margin-bottom: 16px;
}

.user-admin-form {
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.user-admin-form select[multiple] {
  min-height: 112px;
}

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

.user-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 13px;
}

.user-card.active {
  border-color: rgba(23, 122, 85, 0.42);
  background: #edf8f3;
}

.user-card strong {
  font-size: 14px;
}

.user-card span,
.user-card em,
.user-card small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.user-card em {
  color: var(--green);
  font-weight: 900;
}

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

.connector-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
}

.connector-card.active {
  border-color: rgba(23, 122, 85, 0.42);
  background: #edf8f3;
}

.connector-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.connector-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.connector-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.connector-card li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.connector-ready,
.connector-missing {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.connector-missing {
  color: var(--amber);
}

.connectors-module {
  display: grid;
  gap: 16px;
}

.connectors-hero-panel {
  overflow: hidden;
}

.connectors-hero {
  position: relative;
  min-height: 184px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: center;
  border-left: 6px solid var(--teal);
  background:
    linear-gradient(135deg, rgba(15, 111, 125, 0.12), transparent 48%),
    linear-gradient(180deg, #fbfdfc, #ffffff);
  padding: 22px;
}

.connectors-hero span,
.connector-admin-head span,
.contract-block small {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.connectors-hero strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.1;
}

.connectors-hero p {
  max-width: 720px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.connector-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.connector-kpi {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 3px;
  background: #fbfdfc;
  padding: 14px;
}

.connector-kpi small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.connector-kpi strong {
  font-size: 27px;
  line-height: 1;
}

.connector-kpi.good strong {
  color: var(--green);
}

.connector-kpi.warning strong {
  color: var(--amber);
}

.connector-kpi.danger strong {
  color: var(--red);
}

.admin-tenant-picker {
  min-width: 220px;
  align-self: center;
  display: grid;
  gap: 5px;
  color: rgba(217, 238, 232, 0.84);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-tenant-picker select {
  height: 40px;
  border: 1px solid rgba(207, 221, 216, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  padding: 0 10px;
  box-shadow: 0 12px 24px rgba(5, 32, 28, 0.16);
}

.panel-filter {
  min-width: 220px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.panel-filter select {
  height: 38px;
  border: 1px solid rgba(207, 221, 216, 0.9);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  padding: 0 10px;
}

.tenant-cloud-panel {
  overflow: hidden;
}

.tenant-cloud-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.8fr);
  gap: 0;
  border-top: 1px solid rgba(207, 221, 216, 0.76);
}

.tenant-client-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(13, 72, 64, 0.08), transparent 58%),
    #f8fbfa;
  border-right: 1px solid rgba(207, 221, 216, 0.82);
}

.tenant-client-card {
  width: 100%;
  display: grid;
  gap: 5px;
  text-align: left;
  border: 1px solid rgba(207, 221, 216, 0.95);
  border-left: 5px solid rgba(22, 134, 105, 0.55);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 13px 14px;
  box-shadow: 0 10px 24px rgba(13, 44, 39, 0.07);
  cursor: pointer;
}

.tenant-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.danger-action,
.mini.danger {
  border-color: rgba(180, 35, 24, 0.28);
  color: var(--red);
}

.danger-action:hover,
.mini.danger:hover {
  border-color: rgba(180, 35, 24, 0.48);
  background: rgba(255, 242, 240, 0.92);
}

.tenant-client-card:hover,
.tenant-client-card.selected {
  border-color: rgba(22, 134, 105, 0.78);
  border-left-color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(13, 44, 39, 0.11);
}

.tenant-client-card span,
.tenant-client-card small,
.tenant-client-card em {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tenant-client-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
}

.tenant-client-card em {
  text-transform: none;
  font-style: normal;
  line-height: 1.35;
}

.tenant-settings-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px;
}

.tenant-form-mode {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(22, 134, 105, 0.22);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 246, 240, 0.72), transparent 60%),
    #fbfdfc;
  padding: 13px 15px;
}

.tenant-settings-form.creating .tenant-form-mode {
  border-left-color: var(--red);
  background:
    linear-gradient(135deg, rgba(255, 242, 240, 0.82), transparent 62%),
    #fffdfc;
}

.tenant-settings-form.creating .tenant-form-mode span {
  color: var(--red);
}

.tenant-form-mode span,
.tenant-form-mode small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.tenant-form-mode strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.1;
}

.tenant-form-mode small {
  text-transform: none;
  line-height: 1.35;
}

.tenant-settings-form label,
.tenant-module-toggles {
  min-width: 0;
}

.tenant-module-toggles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 246, 240, 0.5), transparent 52%),
    #fbfdfc;
  padding: 12px;
}

.tenant-module-toggles legend {
  color: var(--green);
  padding: 0 6px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.tenant-module-toggles label {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(207, 221, 216, 0.88);
  border-radius: 8px;
  background: white;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.tenant-module-toggles input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.tenant-settings-form .form-actions {
  grid-column: 1 / -1;
}

.connector-config-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  border-top: 1px solid rgba(207, 221, 216, 0.76);
  border-bottom: 1px solid rgba(207, 221, 216, 0.76);
  background:
    linear-gradient(135deg, rgba(234, 246, 240, 0.58), transparent 54%),
    #f8fbfa;
  padding: 16px;
}

.connector-config-form label {
  min-width: 0;
}

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

.connector-config-form .form-actions {
  grid-column: 1 / -1;
}

.connector-key-reveal {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 16px 16px 0;
  border: 1px solid rgba(20, 121, 84, 0.24);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 246, 240, 0.72), transparent 56%),
    #fbfdfc;
  padding: 12px;
}

.connector-key-reveal[hidden] {
  display: none;
}

.connector-key-reveal strong,
.connector-key-reveal span {
  display: block;
}

.connector-key-reveal strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.connector-key-reveal span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.connector-key-reveal code {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid rgba(207, 221, 216, 0.9);
  border-radius: 8px;
  background: white;
  color: var(--teal);
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 900;
}

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

.connector-admin-list,
.connector-event-list,
.connector-contract {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.connector-admin-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 6px solid #b9c8c3;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.connector-admin-card.good {
  border-left-color: var(--green);
  background:
    linear-gradient(90deg, rgba(234, 246, 240, 0.66), transparent 44%),
    #fbfdfc;
}

.connector-admin-card.warning {
  border-left-color: var(--amber);
  background:
    linear-gradient(90deg, rgba(255, 237, 194, 0.48), transparent 44%),
    #fbfdfc;
}

.connector-admin-card.danger {
  border-left-color: var(--red);
  background:
    linear-gradient(90deg, rgba(250, 232, 233, 0.58), transparent 44%),
    #fbfdfc;
}

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

.connector-admin-head strong,
.connector-admin-head small {
  display: block;
}

.connector-admin-head strong {
  margin-top: 2px;
  font-size: 18px;
}

.connector-admin-head small,
.connector-admin-card p,
.connector-admin-meta span,
.contract-block span,
.connector-event-row span,
.connector-event-row small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.connector-admin-head em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--teal);
  padding: 0 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.connector-admin-card.good .connector-admin-head em {
  background: #eaf6f0;
  color: var(--green);
}

.connector-admin-card.warning .connector-admin-head em {
  background: #ffedc2;
  color: var(--amber);
}

.connector-admin-card.danger .connector-admin-head em {
  background: #fae8e9;
  color: var(--red);
}

.connector-admin-meta {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
}

.connector-admin-meta b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.connector-admin-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.connector-warning {
  border-radius: 8px;
  background: #fff8e8;
  color: var(--amber);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}

.connector-note {
  border-radius: 8px;
  background: #eef7f3;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 850;
}

.connector-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.connector-capabilities span {
  border: 1px solid rgba(15, 111, 125, 0.14);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}

.connector-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.contract-block {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.contract-block strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.connector-contract pre {
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(15, 111, 125, 0.16);
  border-radius: 8px;
  background: #101716;
  color: #d8e4df;
  padding: 14px;
  font-size: 12px;
  line-height: 1.55;
}

.connector-event-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, auto) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.connector-event-row.high,
.connector-event-row.critical {
  border-left-color: var(--red);
}

.connector-event-row.medium {
  border-left-color: var(--amber);
}

.connector-event-row strong,
.connector-event-row span {
  display: block;
}

.connector-event-row em {
  width: fit-content;
  justify-self: end;
  border-radius: 999px;
  background: #eaf6f0;
  color: var(--green);
  padding: 6px 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

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

.demo-panel .panel-header {
  background: #f7fbfa;
}

.demo-copy {
  display: grid;
  gap: 4px;
}

.demo-copy strong {
  font-size: 15px;
}

.demo-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.demo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.demo-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.demo-step {
  min-height: 84px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.demo-step strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f1f4;
  color: var(--teal);
  font-size: 13px;
}

.demo-step span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.demo-step.active {
  border-color: rgba(23, 122, 85, 0.45);
  background: #edf8f3;
}

.demo-step.active strong {
  background: var(--green);
  color: white;
}

.simulator {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.sim-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.sim-header h3 {
  margin: 0;
  font-size: 16px;
}

.sim-header p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
}

.sim-capacity {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 122, 85, 0.28);
  border-radius: 8px;
  background: #edf8f3;
  color: var(--green);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.sim-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f1f4;
  margin-bottom: 14px;
}

.sim-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.sim-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.sim-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

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

.sim-title strong {
  font-size: 14px;
}

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

.call-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.call-slot {
  min-height: 54px;
  display: grid;
  gap: 3px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 8px;
}

.call-slot strong {
  color: var(--muted);
  font-size: 12px;
}

.call-slot span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-slot.busy {
  border-color: rgba(15, 111, 125, 0.34);
  background: #e8f1f4;
}

.call-slot.busy strong,
.call-slot.busy span {
  color: var(--teal);
  font-weight: 800;
}

.queue-list {
  display: grid;
  gap: 7px;
  max-height: 230px;
  overflow-y: auto;
}

.queue-row {
  min-height: 38px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 7px 8px;
}

.sim-recent {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.operation-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.operation-result {
  min-height: 72px;
  display: grid;
  align-content: start;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c9c3;
  border-radius: 8px;
  background: white;
  padding: 9px 10px;
}

.operation-result strong,
.operation-result span,
.operation-result em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-result strong {
  font-size: 13px;
}

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

.operation-result em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.operation-result.success {
  border-left-color: var(--green);
}

.operation-result.warning {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.operation-result.danger {
  border-left-color: var(--red);
  background: #fffafa;
}

.queue-row strong {
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--muted);
  font-size: 12px;
}

.queue-row span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.queue-row.empty span {
  font-weight: 700;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.metric strong {
  display: block;
  font-size: 24px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.config-layout {
  grid-template-columns: 1fr;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd8d3;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  padding: 10px 11px;
  font: inherit;
  font-size: 14px;
  text-transform: none;
}

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

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

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.form-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-status.success {
  color: #147a52;
}

.form-status.error {
  color: #b42318;
}

.voice-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: -4px;
}

.voice-preview select {
  width: min(360px, 100%);
  min-height: 38px;
}

.voice-preview span {
  color: var(--muted);
  font-size: 13px;
}

.schedule-builder,
.force-builder {
  display: grid;
  gap: 12px;
  border: 1px solid #d7e4df;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
}

.force-builder {
  border-left: 5px solid var(--teal);
}

.structured-builder {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

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

.structured-builder-head strong,
.structured-builder-head span {
  display: block;
}

.structured-builder-head strong {
  font-size: 14px;
}

.structured-builder-head span,
.structured-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.structured-input-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  gap: 8px;
}

.structured-input-grid.equipment-inputs {
  grid-template-columns: repeat(6, minmax(105px, 1fr)) auto;
}

.structured-rows {
  display: grid;
  gap: 8px;
}

.structured-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid #b9c8c3;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 9px 10px;
}

.structured-row.critical {
  border-left-color: var(--red);
  background: #fffafa;
}

.structured-row strong {
  font-size: 13px;
}

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

.schedule-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.schedule-builder-head strong {
  font-size: 15px;
}

.schedule-builder-head span,
.schedule-preview {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.schedule-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.schedule-presets button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

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

.schedule-preview {
  border-radius: 8px;
  background: #eef6f3;
  padding: 10px 12px;
}

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

.operation-tabs,
.incident-tabs,
.alarm-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px;
}

.alarm-tabs {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  margin-bottom: 0;
}

.operation-tabs button,
.incident-tabs button,
.alarm-tabs button {
  min-height: 42px;
  border-color: transparent;
  background: #eef3f1;
  color: var(--muted);
  box-shadow: none;
}

.operation-tabs button:hover,
.incident-tabs button:hover,
.alarm-tabs button:hover {
  border-color: #b9c8c3;
  background: #f8fbfa;
  color: var(--ink);
}

.operation-tabs button.active,
.incident-tabs button.active,
.alarm-tabs button.active {
  border-color: rgba(23, 122, 85, 0.36);
  background: #e4f3ec;
  color: var(--green);
  box-shadow: inset 0 -3px 0 var(--green);
}

[data-operation-tab-panel] + [data-operation-tab-panel],
[data-incident-tab-panel] + [data-incident-tab-panel],
[data-alarm-tab-panel] + [data-alarm-tab-panel] {
  margin-top: 16px;
}

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

.table-wrap {
  overflow-x: auto;
}

.compact {
  max-height: 380px;
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  white-space: nowrap;
}

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

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #eef3f1;
  color: var(--muted);
}

.status.completed,
.status.confirmed {
  background: #e4f3ec;
  color: var(--green);
}

.status.calling_guard,
.status.started,
.status.retrying,
.status.dispatching,
.status.queued,
.status.pending {
  background: #e8f1f4;
  color: var(--teal);
}

.status.escalated,
.status.incident_created,
.status.failed,
.status.no_answer,
.status.invalid_response,
.status.no_input {
  background: #fae8e9;
  color: var(--red);
}

.status.open {
  background: #fff1d6;
  color: var(--amber);
}

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

.mini {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  border-color: #b9c9c3;
  background: #fbfdfc;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), inset 0 -1px 0 rgba(16, 24, 40, 0.06);
}

.mini:hover {
  background: #f2f7f5;
  transform: translateY(-1px);
}

.mini.danger {
  border-color: #f2b8b5;
  color: var(--red);
  background: #fff7f7;
}

.mini.danger:hover {
  background: #fff0ef;
  border-color: #e68a84;
}

.mini.danger:active {
  background: #ffe7e5;
}

.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.secondary-action {
  background: white;
  color: var(--ink);
  border-color: #cbd8d3;
}

.cards,
.events {
  padding: 12px;
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.incident-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 12px 0;
}

.incident-overview-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 78px;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 10px 12px;
}

.incident-overview-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.incident-overview-card strong {
  font-size: 22px;
  line-height: 1.05;
}

.incident-overview-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.incident-overview-card.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.incident-overview-card.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.incident-overview-card.danger {
  border-left-color: var(--red);
  background: #fff3f2;
}

.incident-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.incident-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.incident-filters select {
  min-height: 40px;
  border-color: #cbd8d3;
  background: #fbfdfc;
  font-weight: 800;
}

.escalation-map {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
  padding: 14px 16px;
}

.escalation-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
}

.escalation-title strong {
  font-size: 16px;
}

.escalation-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.escalation-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
}

.escalation-step {
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-top: 5px solid #b9c8c3;
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.escalation-step b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f1f4;
  color: var(--teal);
  font-size: 12px;
}

.escalation-step strong {
  font-size: 14px;
}

.escalation-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.escalation-step.active {
  border-top-color: var(--green);
}

.escalation-step.warning {
  border-top-color: var(--amber);
  background: #fffaf0;
}

.escalation-step.danger {
  border-top-color: var(--red);
  background: #fff3f2;
}

.home-experience {
  display: grid;
  gap: 14px;
  padding: 18px 18px 0;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid #b9cdc6;
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 18%, rgba(158, 216, 192, 0.18), transparent 26%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(135deg, rgba(16, 23, 22, 0.96), rgba(29, 63, 57, 0.94)),
    #101716;
  background-size: auto, 42px 42px, 42px 42px, auto;
  color: white;
  padding: 26px;
  box-shadow: 0 18px 42px rgba(16, 23, 22, 0.2);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(115deg, transparent 0 58%, rgba(158, 216, 192, 0.08) 59% 63%, transparent 64%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(158, 216, 192, 0.08) 48%, transparent 52%);
  opacity: 0.65;
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.home-hero-copy span,
.home-hero-copy small {
  color: #9ed8c0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-hero-copy strong {
  font-size: 40px;
  line-height: 1.05;
}

.home-hero-copy p {
  max-width: 760px;
  color: #d9e7e2;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

.home-hero-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.home-hero-status em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(158, 216, 192, 0.28);
  border-radius: 999px;
  background: rgba(158, 216, 192, 0.1);
  color: #d9e7e2;
  padding: 0 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.home-hero-mark {
  position: absolute;
  right: 24px;
  top: 28px;
  width: 260px;
  height: 126px;
  opacity: 0.54;
}

.home-hero-mark i {
  position: absolute;
  display: block;
  border: 1px solid rgba(158, 216, 192, 0.44);
  border-radius: 8px;
}

.home-hero-mark i:nth-child(1) {
  inset: 0 40px 38px 0;
}

.home-hero-mark i:nth-child(2) {
  inset: 18px 0 18px 52px;
}

.home-hero-mark i:nth-child(3) {
  inset: 48px 86px 0 18px;
}

.home-hero-mark i:nth-child(4) {
  width: 9px;
  height: 9px;
  right: 36px;
  top: 38px;
  border-radius: 999px;
  background: #9ed8c0;
}

.home-command {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1.28fr);
  gap: 14px;
}

.home-command-core,
.home-orbit,
.home-live-strip,
.home-event-flow {
  border: 1px solid #cad9d4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.home-command-core {
  position: relative;
  overflow: hidden;
  min-height: 284px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-left: 6px solid var(--green);
  background:
    linear-gradient(135deg, rgba(23, 122, 85, 0.12), transparent 54%),
    #fbfdfc;
  padding: 24px;
  box-shadow: var(--glow-green);
}

.home-command-core::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(23, 122, 85, 0.1);
  border-radius: 8px;
  pointer-events: none;
}

.home-command-core small {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-command-core strong {
  max-width: 320px;
  font-size: 28px;
  line-height: 1.08;
}

.home-command-core span {
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.home-core-pulse {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  border: 1px solid rgba(23, 122, 85, 0.28);
  background:
    radial-gradient(circle, rgba(23, 122, 85, 0.28) 0 18%, transparent 19%),
    radial-gradient(circle, rgba(23, 122, 85, 0.12) 0 48%, transparent 49%);
  box-shadow: 0 0 0 12px rgba(23, 122, 85, 0.06);
}

.home-core-pulse::before,
.home-core-pulse::after {
  content: "";
  position: absolute;
  inset: -13px;
  border: 1px solid rgba(23, 122, 85, 0.14);
  border-radius: inherit;
}

.home-core-pulse::after {
  inset: -26px;
  opacity: 0.55;
}

.home-orbit {
  position: relative;
  min-height: 284px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 111, 125, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 125, 0.05) 1px, transparent 1px),
    #fbfdfc;
  background-size: 36px 36px;
  box-shadow: var(--glow-blue);
}

.home-orbit::before,
.home-orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(15, 111, 125, 0.14);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.home-orbit::before {
  width: 58%;
  height: 54%;
}

.home-orbit::after {
  width: 80%;
  height: 78%;
}

.home-orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(158, 216, 192, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 42%),
    linear-gradient(135deg, #101716, #1d3f39);
  color: white;
  box-shadow: 0 18px 34px rgba(16, 23, 22, 0.2), 0 0 0 10px rgba(23, 122, 85, 0.06);
  transform: translate(-50%, -50%);
}

.home-orbit-center strong {
  font-size: 19px;
  line-height: 1;
}

.home-orbit-center span {
  color: #9ed8c0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-orbit-node {
  position: absolute;
  z-index: 1;
  width: 166px;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid #cfddd8;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  text-decoration: none;
  padding: 10px 12px;
  box-shadow: 0 10px 22px rgba(16, 23, 22, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.home-orbit-node:hover {
  border-color: rgba(15, 111, 125, 0.34);
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(16, 23, 22, 0.14);
  transform: translateY(-3px);
}

.home-orbit-node:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 7px rgba(16, 23, 22, 0.13);
}

.home-orbit-node::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 122, 85, 0.1);
}

.home-orbit-node.ready {
  border-left-color: var(--blue);
}

.home-orbit-node.ready::after {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(49, 92, 155, 0.1);
}

.home-orbit-node.planned {
  border-left-color: var(--amber);
}

.home-orbit-node.planned::after {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(165, 107, 0, 0.1);
}

.home-orbit-node b,
.home-orbit-node span,
.home-orbit-node em {
  display: block;
}

.home-orbit-node span {
  min-width: 0;
}

.home-orbit-node b,
.home-orbit-node em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-orbit-node b {
  font-size: 13px;
}

.home-orbit-node em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.home-orbit-node.node-1 { left: 42%; top: 10%; }
.home-orbit-node.node-2 { right: 7%; top: 34%; }
.home-orbit-node.node-3 { right: 21%; bottom: 8%; }
.home-orbit-node.node-4 { left: 31%; bottom: 10%; }
.home-orbit-node.node-5 { left: 7%; top: 34%; }
.home-orbit-node.node-6 { left: 20%; top: 12%; }

.home-live-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.home-live-strip div {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: #fbfdfc;
  padding: 14px;
  position: relative;
}

.home-live-strip div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(23, 122, 85, 0.35);
}

.home-live-strip small,
.home-event-flow span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-live-strip strong {
  font-size: 26px;
}

.home-live-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.home-event-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.home-event-flow div {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 6px;
  background: white;
  padding: 14px;
  position: relative;
}

.home-event-flow div::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 26px;
  width: 36px;
  height: 1px;
  background: rgba(15, 111, 125, 0.18);
}

.home-event-flow b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e4f3ec;
  color: var(--green);
  font-size: 12px;
}

.home-event-flow strong {
  font-size: 15px;
}

.sentinel-voice-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 18;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(15, 111, 125, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 23, 22, 0.92), rgba(29, 63, 57, 0.94)),
    #101716;
  color: white;
  box-shadow: 0 22px 48px rgba(16, 23, 22, 0.28);
}

.sentinel-voice-head {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-right: 1px solid rgba(158, 216, 192, 0.16);
  background:
    linear-gradient(90deg, rgba(158, 216, 192, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.035);
  padding: 12px 14px;
}

.sentinel-voice-head span,
.voice-response-card small {
  color: #9ed8c0;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.sentinel-voice-head strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.12;
}

.sentinel-voice-status {
  min-height: 22px;
  width: max-content;
  max-width: 108px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(158, 216, 192, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d8e4df;
  padding: 0 8px;
  overflow: hidden;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.sentinel-voice-status.ready {
  border-color: rgba(23, 122, 85, 0.28);
  background: #dff2e9;
  color: var(--green);
}

.sentinel-voice-status.fallback {
  border-color: rgba(165, 107, 0, 0.28);
  background: #ffedc2;
  color: var(--amber);
}

.sentinel-voice-console {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr;
  background: rgba(255, 255, 255, 0.955);
}

.sentinel-voice-controls {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.voice-stage {
  min-height: 36px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  padding: 0;
}

.voice-stage span {
  color: #9ed8c0;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.voice-stage p {
  max-width: 122px;
  margin: 0;
  color: var(--muted);
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sentinel-voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-row: 1 / span 2;
}

.voice-icon-action {
  width: 30px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1px solid rgba(15, 111, 125, 0.16);
  border-radius: 999px;
  background: #f7fcfa;
  color: var(--green);
  padding: 0;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 7px 15px rgba(16, 23, 22, 0.08);
}

.voice-icon-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(16, 23, 22, 0.12);
}

.voice-compact-select {
  min-height: 28px;
  width: 74px;
  border-color: rgba(207, 221, 216, 0.9);
  background: #fbfdfc;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.voice-record-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: 52px;
  min-width: 52px;
  height: 52px;
  justify-content: center;
  padding: 0;
  border-color: rgba(185, 28, 28, 0.26);
  border-radius: 999px;
  background: linear-gradient(180deg, #c92828, #991b1b);
  color: #fff;
  box-shadow: 0 12px 24px rgba(153, 27, 27, 0.24);
}

.voice-record-button #voiceRecordLabel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.voice-record-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(153, 27, 27, 0.28);
}

.voice-record-button.is-recording {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.14), 0 18px 34px rgba(153, 27, 27, 0.32);
}

.voice-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
}

.voice-record-button.is-recording .voice-dot {
  animation: voicePulse 1s infinite;
}

.voice-listening-meter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 5px;
  height: 28px;
  border: 1px solid rgba(207, 221, 216, 0.85);
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fcfa, #eef7f3);
  padding: 6px 8px;
  grid-column: 2 / 4;
}

.voice-listening-meter span {
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 111, 125, 0.28);
  transform-origin: bottom;
}

.sentinel-voice-panel.is-listening .voice-listening-meter span {
  background: linear-gradient(180deg, #36b883, #0f6f7d);
  animation: voiceBar 0.75s infinite ease-in-out;
}

.sentinel-voice-panel.is-listening .voice-listening-meter span:nth-child(2) {
  animation-delay: 0.08s;
}

.sentinel-voice-panel.is-listening .voice-listening-meter span:nth-child(3) {
  animation-delay: 0.16s;
}

.sentinel-voice-panel.is-listening .voice-listening-meter span:nth-child(4) {
  animation-delay: 0.24s;
}

.sentinel-voice-panel.is-listening .voice-listening-meter span:nth-child(5) {
  animation-delay: 0.32s;
}

.sentinel-voice-panel.is-processing .voice-listening-meter {
  background: linear-gradient(90deg, #f7fcfa, #dff2e9, #f7fcfa);
  background-size: 220% 100%;
  animation: voiceProcessing 1s infinite linear;
}

.sentinel-voice-panel.is-speaking .voice-listening-meter span {
  background: linear-gradient(180deg, #9ed8c0, #177a55);
  animation: voiceBar 1.05s infinite ease-in-out;
}

.sentinel-voice-panel.has-voice-error {
  border-color: rgba(185, 28, 28, 0.48);
  box-shadow: 0 20px 42px rgba(185, 28, 28, 0.18);
}

.sentinel-voice-panel.has-voice-success {
  border-color: rgba(23, 122, 85, 0.42);
}

.sentinel-signal-toast {
  position: fixed;
  right: 22px;
  bottom: 124px;
  z-index: 19;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  gap: 6px;
  border: 1px solid rgba(15, 111, 125, 0.28);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 250, 0.98)),
    white;
  color: var(--ink);
  padding: 12px 14px;
  box-shadow: 0 18px 38px rgba(16, 23, 22, 0.18);
  animation: sentinelSignalIn 220ms ease-out;
}

.sentinel-signal-toast[hidden] {
  display: none;
}

.sentinel-signal-toast.critical,
.sentinel-signal-toast.high {
  border-left-color: var(--red);
  box-shadow: 0 18px 38px rgba(179, 49, 58, 0.18);
}

.sentinel-signal-toast.medium {
  border-left-color: var(--amber);
}

.sentinel-signal-toast span {
  width: fit-content;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eaf6f0;
  color: var(--green);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.sentinel-signal-toast.critical span,
.sentinel-signal-toast.high span {
  background: #fae8e9;
  color: var(--red);
}

.sentinel-signal-toast strong {
  font-size: 16px;
  line-height: 1.15;
}

.sentinel-signal-toast p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.sentinel-signal-toast a {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eaf6f0;
  color: var(--green);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.sentinel-signal-toast a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 23, 22, 0.13);
}

.sentinel-signal-toast.critical a,
.sentinel-signal-toast.high a {
  background: #fae8e9;
  color: var(--red);
}

.sentinel-action-tray {
  position: fixed;
  right: 22px;
  bottom: 184px;
  z-index: 19;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 111, 125, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  padding: 10px;
  box-shadow: 0 18px 36px rgba(16, 23, 22, 0.14);
}

.sentinel-action-tray[hidden] {
  display: none;
}

.sentinel-action-tray-head,
.sentinel-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sentinel-action-tray-head span {
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.sentinel-action-tray-head button,
.sentinel-action-row button {
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
}

.sentinel-action-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sentinel-action-row button.confirm {
  border-color: rgba(23, 122, 85, 0.2);
  background: #eaf6f0;
  color: var(--green);
}

.sentinel-action-rows {
  display: grid;
  gap: 7px;
}

.sentinel-action-row {
  border: 1px solid rgba(207, 221, 216, 0.92);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 9px 10px;
}

.sentinel-action-row.pending {
  border-left-color: var(--amber);
}

.sentinel-action-row.pending.confirmable {
  background:
    linear-gradient(90deg, rgba(255, 237, 194, 0.35), transparent 42%),
    #fbfdfc;
}

.sentinel-action-row.running {
  border-left-color: var(--teal);
}

.sentinel-action-row.completed {
  border-left-color: var(--green);
}

.sentinel-action-row.failed,
.sentinel-action-row.cancelled,
.sentinel-action-row.blocked {
  border-left-color: var(--red);
}

.sentinel-action-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sentinel-action-copy strong,
.sentinel-action-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sentinel-action-copy strong {
  font-size: 13px;
}

.sentinel-action-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.sentinel-action-status {
  width: fit-content;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eaf6f0;
  color: var(--green);
  padding: 0 7px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.sentinel-action-row.pending .sentinel-action-status {
  background: #ffedc2;
  color: var(--amber);
}

.sentinel-action-row.failed .sentinel-action-status,
.sentinel-action-row.cancelled .sentinel-action-status,
.sentinel-action-row.blocked .sentinel-action-status {
  background: #fae8e9;
  color: var(--red);
}

@keyframes sentinelSignalIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sentinel-voice-panel #voiceStatus {
  grid-column: 2 / 4;
  min-height: 18px;
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
}

.sentinel-voice-panel #voicePresentation {
  display: none;
}

.voice-response-card[hidden] {
  display: none;
}

#voiceResponse {
  font-size: 14px;
  line-height: 1.38;
}

@keyframes voicePulse {
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes voiceBar {
  0%, 100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(2.4);
  }
}

@keyframes voiceProcessing {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 220% 0;
  }
}

.sentinel-voice-history {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 16px 16px;
}

.sentinel-voice-history > span,
.sentinel-voice-history-item {
  min-height: 86px;
  border: 1px solid rgba(207, 221, 216, 0.9);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 10px;
}

.sentinel-voice-history-item {
  display: grid;
  align-content: start;
  gap: 5px;
}

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

.sentinel-voice-history-item strong {
  font-size: 13px;
}

.sentinel-voice-history-item span,
.sentinel-voice-history > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.sentinel-voice-history-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.sentinel-voice-history-item small {
  display: block;
  border-radius: 6px;
  background: #fff1f1;
  color: #991b1b;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.25;
}

.module-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
  padding: 18px;
}

.module-card {
  position: relative;
  overflow: hidden;
  min-height: 338px;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
  border: 1px solid #cfddd8;
  border-top: 5px solid #b9c8c3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 250, 0.95)),
    #fbfdfc;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 111, 125, 0.08), transparent 42%);
  opacity: 0.55;
  pointer-events: none;
}

.module-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(15, 111, 125, 0.16);
  border-radius: 8px;
  transform: rotate(45deg);
  opacity: 0.56;
  pointer-events: none;
}

.module-card.clickable::before {
  background:
    linear-gradient(135deg, rgba(15, 111, 125, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 28%);
}

.module-card > * {
  position: relative;
  z-index: 1;
}

.module-card.clickable {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.module-card.clickable:hover {
  border-color: rgba(15, 111, 125, 0.38);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.module-card.clickable:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(16, 23, 22, 0.12);
}

.module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.module-head > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.module-head b {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef3f1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(16, 23, 22, 0.08);
}

.module-visual {
  width: 104px;
  height: 62px;
  display: grid;
  grid-template-columns: 50px repeat(3, 1fr);
  align-items: end;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid rgba(207, 221, 216, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.module-visual .module-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.module-icon {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(15, 111, 125, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(244, 249, 247, 0.94)),
    #fbfdfc;
  box-shadow: inset 0 -1px 0 rgba(16, 23, 22, 0.07), 0 7px 14px rgba(16, 23, 22, 0.07);
  color: var(--teal);
  overflow: hidden;
}

.module-icon::before,
.module-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.icon-security::before {
  width: 18px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 7px 7px;
  clip-path: polygon(50% 0, 100% 18%, 88% 76%, 50% 100%, 12% 76%, 0 18%);
}

.icon-security::after {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.icon-alarm::before {
  width: 19px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 7px 7px;
  top: 9px;
}

.icon-alarm::after {
  width: 22px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 999px 999px 0 0;
  top: 6px;
}

.icon-hr::before {
  width: 18px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon-hr::after {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-shadow: 0 10px 0 -3px currentColor;
}

.icon-overtime::before {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.icon-overtime::after {
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(2px, -2px) rotate(-45deg);
}

.icon-rules::before {
  width: 24px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
}

.icon-rules::after {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: -8px -8px 0 currentColor, 8px 8px 0 currentColor;
}

.icon-patrol::before {
  width: 21px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 6px;
  transform: rotate(45deg);
}

.icon-patrol::after {
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: #fbfdfc;
}

.icon-camera::before {
  width: 23px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.icon-camera::after {
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.icon-gps::before {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 999px 999px 999px 0;
  transform: rotate(-45deg);
}

.icon-gps::after {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.icon-analytics::before {
  width: 23px;
  height: 16px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(2px);
}

.icon-analytics::after {
  width: 23px;
  height: 18px;
  background:
    linear-gradient(135deg, transparent 0 34%, currentColor 35% 42%, transparent 43%),
    radial-gradient(circle at 22% 68%, currentColor 0 2px, transparent 3px),
    radial-gradient(circle at 52% 42%, currentColor 0 2px, transparent 3px),
    radial-gradient(circle at 82% 26%, currentColor 0 2px, transparent 3px);
}

.module-visual i {
  display: block;
  border-radius: 6px 6px 2px 2px;
  background: #dce9e4;
  box-shadow: inset 0 -2px 0 rgba(16, 23, 22, 0.07);
  transition: height 140ms ease, background 140ms ease;
}

.module-card.clickable:hover .module-visual i:nth-of-type(1) {
  height: 24px;
}

.module-card.clickable:hover .module-visual i:nth-of-type(2) {
  height: 34px;
}

.module-card.clickable:hover .module-visual i:nth-of-type(3) {
  height: 29px;
}

.module-visual i:nth-of-type(1) {
  height: 18px;
}

.module-visual i:nth-of-type(2) {
  height: 30px;
}

.module-visual i:nth-of-type(3) {
  height: 24px;
}

.module-card > strong {
  font-size: 21px;
  line-height: 1.08;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.module-card-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  align-self: end;
  padding-top: 10px;
  border-top: 1px solid rgba(207, 221, 216, 0.9);
}

.module-card-foot div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.module-card-foot em {
  color: var(--teal);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.module-card-foot span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.module-card-foot small {
  min-height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 111, 125, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--teal);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: inset 0 -1px 0 rgba(16, 23, 22, 0.06);
}

.module-card.clickable:hover .module-card-foot small {
  border-color: rgba(23, 122, 85, 0.28);
  background: #eef9f3;
  color: var(--green);
}

.module-card.active {
  border-top-color: var(--green);
  background:
    linear-gradient(135deg, rgba(23, 122, 85, 0.12), transparent 52%),
    #f0faf5;
}

.module-card.active .module-visual i {
  background: #9ed8c0;
}

.module-card.active .module-icon,
.home-orbit-node.active .module-icon {
  color: var(--green);
  border-color: rgba(23, 122, 85, 0.3);
  background: #eef9f3;
}

.module-card.active .module-head b {
  background: #dff2e9;
  color: var(--green);
}

.module-card.next {
  border-top-color: var(--blue);
  background:
    linear-gradient(135deg, rgba(49, 92, 155, 0.11), transparent 52%),
    #f1f6fd;
}

.module-card.next .module-visual i {
  background: #b8cbed;
}

.module-card.next .module-icon,
.home-orbit-node.ready .module-icon {
  color: var(--blue);
  border-color: rgba(49, 92, 155, 0.28);
  background: #eef5ff;
}

.module-card.next .module-head b {
  background: #e1ecfb;
  color: var(--blue);
}

.module-card.planned {
  border-top-color: var(--amber);
  background:
    linear-gradient(135deg, rgba(165, 107, 0, 0.12), transparent 52%),
    #fff8e8;
}

.module-card.planned .module-visual i {
  background: #f2d28c;
}

.module-card.planned .module-icon,
.home-orbit-node.planned .module-icon {
  color: var(--amber);
  border-color: rgba(165, 107, 0, 0.28);
  background: #fff5db;
}

.module-card.planned .module-head b {
  background: #ffedc2;
  color: var(--amber);
}

.module-card.future {
  border-top-color: var(--teal);
  background:
    linear-gradient(135deg, rgba(15, 111, 125, 0.09), transparent 52%),
    #f2faf9;
}

.module-card.future .module-visual i {
  background: #9ccfd5;
}

.module-card.future .module-icon {
  color: var(--teal);
  border-color: rgba(15, 111, 125, 0.28);
  background: #eef9fa;
}

.alarm-module {
  display: grid;
  gap: 16px;
}

.alarm-hero-panel {
  overflow: hidden;
}

.alarm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(49, 92, 155, 0.08), transparent 54%),
    #fbfdfc;
  padding: 18px;
}

.alarm-hero span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.alarm-hero strong {
  display: block;
  margin-top: 5px;
  font-size: 28px;
  line-height: 1.1;
}

.alarm-hero p {
  max-width: 820px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.alarm-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.alarm-kpi {
  position: relative;
  overflow: hidden;
  min-height: 82px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 250, 0.98)),
    white;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(16, 23, 22, 0.055);
}

.alarm-kpi::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #b9c8c3;
  box-shadow: 0 0 0 5px rgba(185, 200, 195, 0.16);
}

.alarm-kpi.good::after {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(23, 122, 85, 0.13);
}

.alarm-kpi.warning::after {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(165, 107, 0, 0.13);
}

.alarm-kpi.danger::after {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(179, 49, 58, 0.13);
}

.alarm-kpi small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.alarm-kpi strong {
  font-size: 30px;
  line-height: 1;
}

.alarm-kpi.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.alarm-kpi.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.alarm-kpi.danger {
  border-left-color: var(--red);
  background: #fff3f2;
}

.alarm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.alarm-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding: 12px;
}

.alarm-event {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 7px solid #b9c8c3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 250, 0.98)),
    white;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(16, 23, 22, 0.065);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.alarm-event::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(49, 92, 155, 0.065), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 34%);
  pointer-events: none;
}

.alarm-event > * {
  position: relative;
  z-index: 1;
}

.alarm-event:hover {
  border-color: rgba(49, 92, 155, 0.3);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.alarm-event.critical {
  border-left-color: var(--red);
  background:
    linear-gradient(135deg, rgba(179, 49, 58, 0.09), transparent 48%),
    #fffafa;
}

.alarm-event.needs-attention {
  box-shadow: 0 0 0 2px rgba(191, 60, 61, 0.09), 0 14px 28px rgba(179, 49, 58, 0.12);
}

.alarm-event.high {
  border-left-color: var(--amber);
  background:
    linear-gradient(135deg, rgba(165, 107, 0, 0.09), transparent 48%),
    #fffaf0;
}

.alarm-event.medium {
  border-left-color: var(--blue);
}

.alarm-event-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.alarm-event-top strong,
.alarm-event-top span,
.alarm-event-top small {
  display: block;
}

.alarm-event-top strong {
  margin-top: 3px;
  font-size: 22px;
  line-height: 1.06;
}

.alarm-event-top span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.alarm-event-top small,
.alarm-event p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.alarm-event-top em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--muted);
  padding: 0 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(16, 23, 22, 0.08);
}

.alarm-event.critical .alarm-event-top em,
.alarm-event.needs-attention .alarm-event-top em {
  background: #fae8e9;
  color: var(--red);
}

.alarm-event.high .alarm-event-top em {
  background: #ffedc2;
  color: var(--amber);
}

.alarm-event.medium .alarm-event-top em {
  background: #e1ecfb;
  color: var(--blue);
}

.alarm-event-title {
  min-width: 0;
}

.alarm-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alarm-event-meta b {
  width: fit-content;
  border: 1px solid rgba(207, 221, 216, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.alarm-intelligence {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 10px;
}

.alarm-rule,
.alarm-notification,
.alarm-attention-note {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), transparent 52%),
    #f8fbfa;
  padding: 10px;
}

.alarm-rule strong,
.alarm-notification strong,
.alarm-attention-note strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.alarm-rule span,
.alarm-notification span,
.alarm-attention-note span,
.alarm-rule small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.alarm-rule {
  border-left: 4px solid var(--blue);
}

.alarm-notification {
  border-left: 4px solid var(--green);
}

.alarm-action-required {
  border: 1px solid #f0c3c0;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: #fff3f2;
  color: var(--red);
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 900;
}

.alarm-stage {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.alarm-stage span {
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f7f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.alarm-stage span.done {
  border-color: #c9e5d6;
  background: #eef9f3;
  color: var(--green);
}

.alarm-stage span.current {
  border-color: #c2d4f0;
  background: #eef5ff;
  color: var(--blue);
  box-shadow: inset 0 -2px 0 rgba(49, 92, 155, 0.22);
}

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

.alarm-actions span {
  margin-right: auto;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.alarm-flow {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.alarm-flow-step {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.alarm-flow-step.danger {
  border-top-color: var(--red);
  background: #fff3f2;
}

.alarm-flow-step b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f1f4;
  color: var(--teal);
  font-size: 12px;
}

.alarm-flow-step strong {
  font-size: 14px;
}

.alarm-flow-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.alarm-report-panel {
  overflow: hidden;
}

.alarm-report {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
  padding: 12px;
}

.alarm-report-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(220px, 1fr) minmax(190px, 0.85fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.alarm-report-row.attention {
  border-left-color: var(--red);
  background: #fffafa;
}

.alarm-report-row strong,
.alarm-report-row span,
.alarm-report-row small {
  display: block;
}

.alarm-report-row strong {
  font-size: 13px;
}

.alarm-report-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.alarm-report-row small {
  margin-bottom: 3px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.alarm-report-row em {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--ink);
  padding: 0 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.overtime-module {
  display: grid;
  gap: 16px;
}

.overtime-hero-panel {
  overflow: hidden;
}

.overtime-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(23, 122, 85, 0.1), transparent 50%),
    linear-gradient(135deg, #fbfdfc, #f5faf8);
  padding: 18px;
}

.overtime-hero span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.overtime-hero strong {
  display: block;
  margin-top: 5px;
  font-size: 28px;
  line-height: 1.1;
}

.overtime-hero p {
  max-width: 820px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.overtime-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.overtime-kpi {
  min-height: 90px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
}

.overtime-kpi small,
.overtime-audit-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.overtime-kpi strong {
  font-size: 23px;
}

.overtime-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.overtime-kpi.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.overtime-kpi.ready {
  border-left-color: var(--blue);
  background: #f1f6fd;
}

.overtime-kpi.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.overtime-executive-panel {
  overflow: hidden;
}

.overtime-executive-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.overtime-executive-kpi {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
}

.overtime-executive-kpi.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.overtime-executive-kpi.ready {
  border-left-color: var(--blue);
  background: #f1f6fd;
}

.overtime-executive-kpi.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.overtime-executive-kpi.danger {
  border-left-color: var(--red);
  background: #fff3f2;
}

.overtime-executive-kpi small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.overtime-executive-kpi strong {
  font-size: 23px;
}

.overtime-executive-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.overtime-executive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.overtime-executive-grid h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.overtime-ranking {
  display: grid;
  gap: 8px;
}

.overtime-ranking-row {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 10px;
}

.overtime-ranking-row strong,
.overtime-ranking-row span {
  display: block;
}

.overtime-ranking-row strong {
  font-size: 13px;
}

.overtime-ranking-row span,
.overtime-ranking-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.overtime-ranking-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), transparent),
    #e8f0ed;
  box-shadow: inset 0 1px 2px rgba(16, 23, 22, 0.08);
}

.overtime-ranking-bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 0 12px rgba(23, 122, 85, 0.18);
}

.overtime-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.overtime-signal {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fbfffd;
  padding: 10px;
}

.overtime-signal.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.overtime-signal.ready {
  border-left-color: var(--blue);
  background: #f1f6fd;
}

.overtime-signal.danger {
  border-left-color: var(--red);
  background: #fff3f2;
}

.overtime-signal strong,
.overtime-signal span {
  display: block;
}

.overtime-signal strong {
  font-size: 13px;
}

.overtime-signal span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.overtime-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.overtime-filters {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) repeat(3, minmax(0, 0.7fr));
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.overtime-filters label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.overtime-filters input,
.overtime-filters select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.overtime-list,
.overtime-rules,
.overtime-audit,
.overtime-detail {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.overtime-list {
  max-height: 620px;
  overflow-y: auto;
}

.overtime-case {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.overtime-case.selected {
  outline: 2px solid rgba(15, 111, 125, 0.22);
  box-shadow: 0 8px 22px rgba(16, 23, 22, 0.08);
}

.overtime-case.warning,
.overtime-audit-row.warning {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.overtime-case.ready,
.overtime-audit-row.ready {
  border-left-color: var(--blue);
  background: #f7fbff;
}

.overtime-case.good,
.overtime-audit-row.good {
  border-left-color: var(--green);
  background: #fbfffd;
}

.overtime-case.danger,
.overtime-audit-row.danger {
  border-left-color: var(--red);
  background: #fffafa;
}

.overtime-case-top,
.overtime-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.overtime-case-top strong,
.overtime-case-top span,
.overtime-note strong,
.overtime-note span {
  display: block;
}

.overtime-case-top strong {
  font-size: 15px;
}

.overtime-case-top span,
.overtime-case p,
.overtime-note span,
.overtime-actions span,
.overtime-audit-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.overtime-case-top em,
.overtime-audit-row em {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--ink);
  padding: 0 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.overtime-case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.overtime-case-metrics span {
  min-height: 52px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.overtime-case-metrics b {
  color: var(--ink);
  font-size: 17px;
}

.overtime-evidence {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.overtime-evidence span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef5f2;
  color: var(--green);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.overtime-evidence span.missing {
  border: 1px dashed #e2a33a;
  background: #fff8e8;
  color: var(--amber);
}

.overtime-note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 10px;
}

.overtime-note strong {
  font-size: 12px;
  text-transform: uppercase;
}

.overtime-hr-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #bfe4ce;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fbfffd;
  padding: 9px 10px;
}

.overtime-hr-chip.warning,
.overtime-hr-chip.missing {
  border-color: #f0d394;
  border-left-color: var(--amber);
  background: #fffaf0;
}

.overtime-hr-chip strong,
.overtime-hr-chip span {
  display: block;
}

.overtime-hr-chip strong {
  font-size: 12px;
}

.overtime-hr-chip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.overtime-stage {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.overtime-stage span {
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f7f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.overtime-stage span.done {
  border-color: #c9e5d6;
  background: #eef9f3;
  color: var(--green);
}

.overtime-stage span.current {
  border-color: #f4c77c;
  background: #fff5db;
  color: var(--amber);
  box-shadow: inset 0 -2px 0 rgba(165, 107, 0, 0.26);
}

.overtime-rule {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.overtime-rule.warning {
  border-top-color: var(--amber);
  background: #fffaf0;
}

.overtime-rule.danger {
  border-top-color: var(--red);
  background: #fff3f2;
}

.overtime-rule b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f1f4;
  color: var(--teal);
  font-size: 12px;
}

.overtime-rule strong {
  font-size: 14px;
}

.overtime-rule span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.overtime-detail {
  align-content: start;
}

.overtime-detail-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 18px;
  text-align: center;
}

.overtime-detail-empty strong,
.overtime-detail-empty span {
  display: block;
}

.overtime-detail-empty span {
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.overtime-detail-head {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.overtime-detail-head.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.overtime-detail-head.ready {
  border-left-color: var(--blue);
  background: #f1f6fd;
}

.overtime-detail-head.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.overtime-detail-head.danger {
  border-left-color: var(--red);
  background: #fff3f2;
}

.overtime-detail-head span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.overtime-detail-head strong {
  font-size: 20px;
}

.overtime-detail-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.overtime-detail-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.overtime-detail-kpis div,
.overtime-detail-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.overtime-hr-validation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #bfe4ce;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fbfffd;
  padding: 11px 12px;
}

.overtime-hr-validation.warning,
.overtime-hr-validation.missing {
  border-color: #f0d394;
  border-left-color: var(--amber);
  background: #fffaf0;
}

.overtime-hr-validation small,
.overtime-hr-validation strong,
.overtime-hr-validation span {
  display: block;
}

.overtime-hr-validation small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.overtime-hr-validation strong {
  margin-top: 3px;
  font-size: 15px;
}

.overtime-hr-validation span,
.overtime-hr-validation em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.overtime-detail-kpis small,
.overtime-detail-block small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.overtime-detail-kpis strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

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

.overtime-detail-block > strong {
  font-size: 13px;
  text-transform: uppercase;
}

.overtime-detail-block > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.overtime-required {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.overtime-required span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.overtime-required span.done {
  background: #eef9f3;
  color: var(--green);
}

.overtime-required span.missing {
  background: #fff1d6;
  color: var(--amber);
}

.overtime-case-timeline {
  display: grid;
  gap: 8px;
}

.overtime-case-timeline div {
  border-left: 3px solid var(--teal);
  background: #f8fbfa;
  padding: 8px 9px;
}

.overtime-case-timeline b,
.overtime-case-timeline span,
.overtime-case-timeline small {
  display: block;
}

.overtime-case-timeline b {
  font-size: 12px;
}

.overtime-case-timeline span,
.overtime-case-timeline small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.overtime-report-panel {
  overflow: hidden;
}

.overtime-payroll-panel {
  overflow: hidden;
}

.overtime-payroll-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.overtime-payroll-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.overtime-payroll-kpi {
  min-height: 86px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
}

.overtime-payroll-kpi.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.overtime-payroll-kpi.ready {
  border-left-color: var(--blue);
  background: #f1f6fd;
}

.overtime-payroll-kpi.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.overtime-payroll-kpi small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.overtime-payroll-kpi strong {
  font-size: 22px;
}

.overtime-payroll-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.overtime-payroll-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.overtime-payroll-grid h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.overtime-payroll-list {
  display: grid;
  gap: 8px;
}

.overtime-payroll-row,
.overtime-payroll-batch,
.overtime-payroll-empty {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fbfffd;
  padding: 10px;
}

.overtime-payroll-row.blocked {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.overtime-payroll-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.overtime-payroll-row strong,
.overtime-payroll-row span,
.overtime-payroll-batch strong,
.overtime-payroll-batch span {
  display: block;
}

.overtime-payroll-row strong,
.overtime-payroll-batch strong {
  font-size: 13px;
}

.overtime-payroll-row span,
.overtime-payroll-row em,
.overtime-payroll-batch span,
.overtime-payroll-empty {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.overtime-payroll-history {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.overtime-audit {
  max-height: 430px;
  overflow-y: auto;
}

.overtime-audit-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(150px, 0.65fr) minmax(150px, 0.6fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.overtime-audit-row strong,
.overtime-audit-row span,
.overtime-audit-row small {
  display: block;
}

.overtime-audit-row strong {
  font-size: 13px;
}

.rules-module {
  display: grid;
  gap: 16px;
}

.rules-hero-panel {
  overflow: hidden;
}

.rules-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(15, 111, 125, 0.12), transparent 52%),
    linear-gradient(135deg, #fbfdfc, #f4f8fb);
  padding: 18px;
}

.rules-hero span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.rules-hero strong {
  display: block;
  margin-top: 5px;
  font-size: 28px;
  line-height: 1.1;
}

.rules-hero p {
  max-width: 820px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.rules-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.rules-kpi {
  min-height: 90px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
}

.rules-kpi small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.rules-kpi strong {
  font-size: 23px;
}

.rules-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rules-kpi.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.rules-kpi.ready {
  border-left-color: var(--blue);
  background: #f1f6fd;
}

.rules-kpi.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.rules-kpi.danger {
  border-left-color: var(--red);
  background: #fff3f2;
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 16px;
}

.protocol-builder-panel {
  overflow: hidden;
}

.protocol-builder-panel.attention {
  box-shadow: 0 0 0 3px rgba(15, 111, 125, 0.18), 0 18px 42px rgba(16, 23, 22, 0.12);
}

.protocol-builder-panel > .panel-header {
  background:
    linear-gradient(90deg, rgba(21, 69, 59, 0.08), transparent 70%),
    #ffffff;
}

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

.protocol-builder-actions span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6faf8;
  color: var(--muted);
  padding: 0 11px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.protocol-builder-actions span.active {
  border-color: rgba(23, 122, 85, 0.24);
  background: #eaf8f0;
  color: var(--green);
}

.protocol-builder-actions span.saving {
  border-color: rgba(15, 111, 125, 0.24);
  background: #eef7f8;
  color: var(--teal);
}

.protocol-builder-actions span.danger {
  border-color: rgba(190, 31, 28, 0.24);
  background: #fff0ef;
  color: var(--red);
}

.protocol-builder {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 14px;
  padding: 14px;
}

.protocol-builder-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.protocol-builder-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.protocol-builder-form label:first-child {
  grid-column: 1 / -1;
}

.protocol-builder-form input,
.protocol-builder-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-transform: none;
}

.protocol-flow-preview {
  min-height: 280px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(21, 69, 59, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(176, 224, 210, 0.28), transparent 34%),
    linear-gradient(135deg, #fbfdfc, #f3f8f6);
  padding: 14px;
}

.protocol-flow-head {
  display: grid;
  gap: 4px;
}

.protocol-flow-head span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.protocol-flow-head strong {
  font-size: 22px;
  line-height: 1.15;
}

.protocol-flow-lane {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.protocol-flow-node {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  background: white;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(16, 23, 22, 0.06);
}

.protocol-flow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 10px;
  height: 2px;
  background: rgba(21, 69, 59, 0.35);
}

.protocol-flow-node b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f1f4;
  color: var(--teal);
  font-size: 12px;
}

.protocol-flow-node small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.protocol-flow-node strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.32;
}

.protocol-flow-node.event {
  border-top-color: var(--blue);
}

.protocol-flow-node.verify {
  border-top-color: var(--teal);
}

.protocol-flow-node.wait {
  border-top-color: var(--amber);
}

.protocol-flow-node.escalate {
  border-top-color: var(--red);
}

.protocol-flow-node.human {
  border-top-color: #7d8e89;
}

.rules-filters {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(140px, 0.55fr) minmax(200px, 1.2fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.rules-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.rules-filters input,
.rules-filters select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.rule-list,
.rule-detail,
.rules-event-map {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.rule-list {
  max-height: 640px;
  overflow-y: auto;
}

.rule-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.rule-card.selected {
  outline: 2px solid rgba(15, 111, 125, 0.22);
  box-shadow: 0 8px 22px rgba(16, 23, 22, 0.08);
}

.rule-card.critical {
  border-left-color: var(--red);
  background: #fffafa;
}

.rule-card.high {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.rule-card.draft {
  border-left-color: var(--blue);
  background: #f7fbff;
}

.rule-card.paused {
  border-left-color: #9aa8a3;
  background: #f5f7f6;
  opacity: 0.92;
}

.rule-card-top,
.rule-card-actions,
.rule-detail-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rule-card-top strong,
.rule-card-top span {
  display: block;
}

.rule-card-top strong {
  font-size: 15px;
}

.rule-card-top span,
.rule-card p,
.rule-card-actions span,
.rule-detail-block span,
.rule-simulation span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.rule-card-top em {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--ink);
  padding: 0 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.rule-pipeline {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1fr;
  gap: 8px;
}

.rule-pipeline div,
.rule-detail-block,
.rule-detail-head {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 10px;
}

.rule-pipeline small {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.rule-pipeline span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.rule-detail {
  align-content: start;
}

.rule-detail-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 18px;
  text-align: center;
}

.rule-detail-empty strong,
.rule-detail-empty span {
  display: block;
}

.rule-detail-empty span {
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.rule-detail-head {
  display: grid;
  gap: 5px;
  border-left: 5px solid var(--teal);
}

.rule-detail-head.critical {
  border-left-color: var(--red);
  background: #fff3f2;
}

.rule-detail-head.high {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.rule-detail-head.draft {
  border-left-color: var(--blue);
  background: #f1f6fd;
}

.rule-detail-head.paused {
  border-left-color: #9aa8a3;
}

.rule-detail-head span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.rule-detail-head strong {
  font-size: 20px;
}

.rule-detail-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.rule-detail-block {
  display: grid;
  gap: 8px;
  background: white;
}

.rule-detail-block.explainable {
  border-left: 5px solid var(--teal);
  background: linear-gradient(135deg, #f8fffc 0%, #ffffff 100%);
}

.rule-detail-block.publication {
  border-left: 5px solid var(--blue);
  background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
}

.rule-detail-block.explainable span {
  padding-top: 2px;
  border-top: 1px solid rgba(21, 69, 59, 0.08);
}

.rule-detail-block.explainable span:first-of-type {
  border-top: 0;
}

.rule-detail-block strong {
  font-size: 13px;
  text-transform: uppercase;
}

.rule-detail-block b {
  color: var(--ink);
}

.rule-simulation {
  display: grid;
  gap: 8px;
}

.rule-simulation div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.rule-simulation b {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f1f4;
  color: var(--teal);
  font-size: 12px;
}

.rule-simulation strong {
  font-size: 13px;
}

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

.rules-event-group {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.rules-event-group strong {
  font-size: 14px;
}

.rules-event-group div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rules-event-group span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef5f2;
  color: var(--teal);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.patrol-module {
  display: grid;
  gap: 16px;
}

.patrol-hero-panel {
  overflow: hidden;
}

.patrol-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(49, 92, 155, 0.12), transparent 52%),
    linear-gradient(135deg, #fbfdfc, #f5f8fb);
  padding: 18px;
}

.patrol-hero span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.patrol-hero strong {
  display: block;
  margin-top: 5px;
  font-size: 28px;
  line-height: 1.1;
}

.patrol-hero p {
  max-width: 820px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.patrol-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.patrol-kpi {
  min-height: 90px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
}

.patrol-kpi small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.patrol-kpi strong {
  font-size: 23px;
}

.patrol-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.patrol-kpi.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.patrol-kpi.ready {
  border-left-color: var(--blue);
  background: #f1f6fd;
}

.patrol-kpi.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.patrol-kpi.danger {
  border-left-color: var(--red);
  background: #fff3f2;
}

.patrol-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 16px;
}

.patrol-layout.secondary {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
}

.patrol-routes,
.patrol-detail,
.patrol-scans,
.patrol-incidents {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.patrol-route {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.patrol-route.selected {
  outline: 2px solid rgba(49, 92, 155, 0.22);
  box-shadow: 0 8px 22px rgba(16, 23, 22, 0.08);
}

.patrol-route.good,
.patrol-detail-head.good,
.patrol-checkpoint.good {
  border-left-color: var(--green);
  background: #fbfffd;
}

.patrol-route.ready,
.patrol-detail-head.ready,
.patrol-checkpoint.ready {
  border-left-color: var(--blue);
  background: #f7fbff;
}

.patrol-route.warning,
.patrol-detail-head.warning,
.patrol-checkpoint.warning {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.patrol-route.danger,
.patrol-detail-head.danger,
.patrol-checkpoint.danger {
  border-left-color: var(--red);
  background: #fffafa;
}

.patrol-route-top,
.patrol-route-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.patrol-route-top strong,
.patrol-route-top span {
  display: block;
}

.patrol-route-top strong {
  font-size: 15px;
}

.patrol-route-top span,
.patrol-route-actions span,
.patrol-scan span,
.patrol-scan small,
.patrol-incident span,
.patrol-incident small,
.patrol-detail-head p,
.patrol-checkpoint span,
.patrol-checkpoint small,
.patrol-rule-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.patrol-route-top em {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--ink);
  padding: 0 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.patrol-progress {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), transparent),
    #e8efec;
  box-shadow: inset 0 1px 2px rgba(16, 23, 22, 0.08);
}

.patrol-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 0 12px rgba(49, 92, 155, 0.18);
}

.patrol-route-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.patrol-route-metrics span {
  min-height: 48px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.patrol-route-metrics b {
  color: var(--ink);
  font-size: 17px;
}

.patrol-detail-head,
.patrol-rule-note {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.patrol-detail-head span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.patrol-detail-head strong {
  font-size: 20px;
}

.patrol-checkpoints {
  display: grid;
  gap: 8px;
}

.patrol-checkpoint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.patrol-checkpoint b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f1f4;
  color: var(--blue);
  font-size: 12px;
}

.patrol-checkpoint strong,
.patrol-checkpoint span,
.patrol-checkpoint small,
.patrol-rule-note strong,
.patrol-rule-note span,
.patrol-scan strong,
.patrol-scan span,
.patrol-scan small,
.patrol-incident strong,
.patrol-incident span,
.patrol-incident small {
  display: block;
}

.patrol-checkpoint strong,
.patrol-rule-note strong {
  font-size: 13px;
}

.patrol-scan,
.patrol-incident {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: white;
  padding: 11px;
}

.patrol-scan.danger,
.patrol-incident.high {
  border-left-color: var(--red);
  background: #fffafa;
}

.patrol-scan.warning,
.patrol-incident.medium {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.patrol-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 18px;
  text-align: center;
}

.hr-module {
  display: grid;
  gap: 16px;
}

.hr-hero-panel {
  overflow: hidden;
}

.hr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(23, 122, 85, 0.11), transparent 52%),
    linear-gradient(135deg, #fbfdfc, #f6faf8);
  padding: 18px;
}

.hr-hero span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hr-hero strong {
  display: block;
  margin-top: 5px;
  font-size: 28px;
  line-height: 1.1;
}

.hr-hero p {
  max-width: 820px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.hr-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.hr-kpi {
  min-height: 90px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
}

.hr-kpi small,
.hr-detail-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hr-kpi strong {
  font-size: 23px;
}

.hr-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hr-kpi.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.hr-kpi.ready {
  border-left-color: var(--blue);
  background: #f1f6fd;
}

.hr-kpi.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.hr-report-panel {
  overflow: hidden;
}

.hr-report-actions {
  display: flex;
  justify-content: flex-end;
}

.hr-report-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.hr-report-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hr-report-filters select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.hr-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.hr-report-kpi {
  min-height: 86px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-left: 5px solid #b9c8c3;
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
}

.hr-report-kpi small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.hr-report-kpi strong {
  font-size: 22px;
}

.hr-report-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hr-report-kpi.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.hr-report-kpi.ready {
  border-left-color: var(--blue);
  background: #f1f6fd;
}

.hr-report-kpi.warning {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.hr-report-kpi.danger {
  border-left-color: var(--red);
  background: #fff3f2;
}

.hr-report-distribution {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.hr-distribution-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 9px 10px;
}

.hr-distribution-row strong,
.hr-distribution-row span {
  display: block;
}

.hr-distribution-row strong {
  font-size: 13px;
}

.hr-distribution-row span,
.hr-distribution-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.hr-distribution-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), transparent),
    #e8f0ed;
  box-shadow: inset 0 1px 2px rgba(16, 23, 22, 0.08);
}

.hr-distribution-bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #42a878);
  box-shadow: 0 0 12px rgba(23, 122, 85, 0.18);
}

.hr-distribution-row.pending_documents .hr-distribution-bar span {
  background: linear-gradient(90deg, var(--amber), #d99a2b);
}

.hr-distribution-row.available .hr-distribution-bar span {
  background: linear-gradient(90deg, var(--blue), #638bd0);
}

.hr-distribution-row.inactive .hr-distribution-bar span {
  background: #8a9892;
}

.hr-report-table {
  border-top: 1px solid var(--line);
}

.hr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 16px;
}

.hr-layout.secondary {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
}

.hr-filters {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(160px, 0.45fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.hr-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hr-filters input,
.hr-filters select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.hr-people,
.hr-detail,
.hr-capture-modes,
.hr-activity {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.hr-form-panel {
  overflow: hidden;
}

.hr-photo-panel {
  overflow: hidden;
}

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

.hr-save-actions .form-status {
  min-width: 160px;
  text-align: right;
}

.hr-photo-capture {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.hr-photo-card {
  display: grid;
  gap: 10px;
  border: 1px solid #f0d394;
  border-left: 6px solid var(--amber);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.hr-photo-card.captured {
  border-color: #bfe4ce;
  border-left-color: var(--green);
  background: #fbfffd;
}

.hr-photo-preview {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  overflow: hidden;
  border: 1px dashed rgba(155, 111, 22, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 232, 0.74)),
    #fffaf0;
  padding: 12px;
}

.hr-photo-preview.has-image {
  min-height: 128px;
  padding: 0;
  border-style: solid;
  background: #0f1716;
}

.hr-photo-preview img,
.hr-evidence-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hr-photo-card.captured .hr-photo-preview {
  border-color: rgba(23, 122, 85, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(229, 246, 238, 0.78)),
    #fbfffd;
}

.hr-photo-preview strong,
.hr-photo-preview span,
.hr-photo-card-body small,
.hr-photo-card-body strong,
.hr-photo-card-body span {
  display: block;
}

.hr-photo-preview strong {
  color: var(--amber);
  font-size: 18px;
  line-height: 1.05;
}

.hr-photo-card.captured .hr-photo-preview strong {
  color: var(--green);
}

.hr-photo-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.hr-photo-card-body {
  display: grid;
  gap: 6px;
}

.hr-photo-card-body small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.hr-photo-card-body strong {
  font-size: 14px;
}

.hr-photo-card-body span {
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.hr-photo-card-body button {
  min-height: 38px;
  justify-content: center;
  border: 1px solid rgba(23, 122, 85, 0.18);
  background: var(--green);
  color: white;
  box-shadow: 0 7px 14px rgba(23, 122, 85, 0.16);
}

.hr-photo-card:not(.captured) .hr-photo-card-body button {
  background: var(--amber);
  box-shadow: 0 7px 14px rgba(155, 111, 22, 0.16);
}

.hr-photo-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 16px;
}

.hr-photo-empty strong,
.hr-photo-empty span {
  display: block;
}

.hr-photo-empty span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hr-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.hr-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hr-form input,
.hr-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.hr-document-toggles {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 10px;
}

.hr-document-toggles strong {
  width: 100%;
  font-size: 12px;
  text-transform: uppercase;
}

.hr-document-toggles label {
  min-height: 28px;
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #eef5f2;
  color: var(--teal);
  padding: 0 9px;
  font-size: 11px;
}

.hr-document-toggles input {
  width: auto;
  min-height: auto;
}

.hr-form-actions {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hr-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.hr-person.selected {
  outline: 2px solid rgba(23, 122, 85, 0.22);
  box-shadow: 0 8px 22px rgba(16, 23, 22, 0.08);
}

.hr-person.warning,
.hr-detail-head.warning,
.hr-capture-mode.warning {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.hr-person.ready,
.hr-detail-head.ready,
.hr-capture-mode.ready {
  border-left-color: var(--blue);
  background: #f7fbff;
}

.hr-person.good,
.hr-detail-head.good,
.hr-capture-mode.good {
  border-left-color: var(--green);
  background: #fbfffd;
}

.hr-person-photo,
.hr-detail-photo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef3f1;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.hr-person-photo.captured,
.hr-detail-photo.captured {
  background: #e5f6ee;
  color: var(--green);
}

.hr-person-main {
  display: grid;
  gap: 7px;
}

.hr-person-top,
.hr-person-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hr-person-top strong,
.hr-person-top span,
.hr-person p,
.hr-person-actions span {
  display: block;
}

.hr-person-top strong {
  font-size: 15px;
}

.hr-person-top span,
.hr-person p,
.hr-person-actions span,
.hr-detail-head p,
.hr-detail-block span,
.hr-detail-block small,
.hr-capture-mode span,
.hr-activity-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.hr-person-top em {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--ink);
  padding: 0 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.hr-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.hr-detail-head span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hr-detail-head strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.hr-expedient-score {
  display: grid;
  gap: 10px;
  border: 1px solid #bfe4ce;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fbfffd;
  padding: 12px;
}

.hr-expedient-score.warning {
  border-color: #f0d394;
  border-left-color: var(--amber);
  background: #fffaf0;
}

.hr-expedient-score small,
.hr-detail-kpis small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.hr-expedient-score strong {
  display: block;
  margin-top: 2px;
  font-size: 28px;
}

.hr-expedient-score span,
.hr-detail-kpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.hr-score-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f0ed;
}

.hr-score-bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--green);
}

.hr-expedient-score.warning .hr-score-bar span {
  background: var(--amber);
}

.hr-alert-summary {
  display: grid;
  gap: 4px;
  border: 1px solid #f0d394;
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: #fff8e8;
  padding: 11px 12px;
}

.hr-alert-summary strong,
.hr-alert-summary span {
  display: block;
}

.hr-alert-summary strong {
  color: var(--amber);
  font-size: 13px;
  text-transform: uppercase;
}

.hr-alert-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.hr-detail-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hr-detail-kpis div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.hr-detail-kpis strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

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

.hr-detail-grid div,
.hr-detail-block,
.hr-capture-mode,
.hr-activity-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.hr-detail-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

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

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

.hr-detail-block > strong,
.hr-capture-mode strong {
  font-size: 13px;
  text-transform: uppercase;
}

.hr-documents {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hr-documents span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.hr-documents span.verified {
  background: #eef9f3;
  color: var(--green);
}

.hr-documents span.pending {
  background: #fff1d6;
  color: var(--amber);
}

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

.hr-evidence-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: #fffaf0;
  padding: 9px;
}

.hr-evidence-card.captured {
  border-left-color: var(--green);
  background: #fbfffd;
}

.hr-evidence-preview {
  width: 52px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--amber);
  font-size: 10px;
  font-weight: 900;
}

.hr-evidence-card.captured .hr-evidence-preview {
  color: var(--green);
}

.hr-evidence-card strong,
.hr-evidence-card span {
  display: block;
}

.hr-evidence-card strong {
  font-size: 12px;
}

.hr-evidence-card span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.hr-consult-list {
  display: grid;
  gap: 7px;
}

.hr-consult-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: #fffaf0;
  padding: 9px 10px;
}

.hr-consult-row.captured {
  border-left-color: var(--green);
  background: #fbfffd;
}

.hr-consult-row strong,
.hr-consult-row span {
  display: block;
}

.hr-consult-row strong {
  font-size: 12px;
}

.hr-consult-row span,
.hr-consult-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.hr-capture-mode {
  display: grid;
  gap: 7px;
  border-left: 5px solid var(--teal);
}

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

.hr-activity-row b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f1f4;
  color: var(--teal);
  font-size: 12px;
}

.hr-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 18px;
  text-align: center;
}

.module-detail-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.module-detail-hero {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 18px;
}

.module-detail-hero span,
.module-detail-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.module-detail-hero strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.module-detail-hero p,
.module-detail-card p,
.module-detail-card li {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.module-detail-hero em {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--teal);
  padding: 0 12px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.module-detail-hero.next {
  border-left-color: var(--blue);
  background: #f1f6fd;
}

.module-detail-hero.planned {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.module-detail-hero.future {
  border-left-color: var(--teal);
}

.module-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.module-detail-card {
  min-height: 170px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}

.module-detail-card strong {
  font-size: 17px;
}

.module-detail-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.timeline-panel {
  margin-bottom: 16px;
}

.timeline {
  display: grid;
  gap: 0;
  padding: 8px 16px 16px;
}

.timeline-item {
  position: relative;
  padding: 12px 0 12px 22px;
  border-left: 2px solid var(--line);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal);
}

.timeline-item.success::before {
  background: var(--green);
}

.timeline-item.warning::before {
  background: var(--amber);
}

.timeline-item.danger::before {
  background: var(--red);
}

.timeline-item strong {
  display: block;
  font-size: 14px;
}

.timeline-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.incident,
.event {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: white;
}

.event.success {
  border-left: 5px solid var(--green);
  background: #fbfffd;
}

.event.warning {
  border-left: 5px solid var(--amber);
  background: #fffaf0;
}

.event.danger {
  border-left: 5px solid var(--red);
  background: #fffafa;
}

.incident.critical-card {
  border-color: #f0a7a1;
  border-left: 5px solid #d92d20;
  background: #fffafa;
}

.incident.resolved-card {
  border-color: #cfe2d8;
  border-left: 5px solid var(--green);
  background: #fbfffd;
}

.incident-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.incident-priority {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  background: #eef4f3;
  color: var(--teal);
}

.incident-priority.high,
.incident-priority.critical {
  background: #ffe4df;
  color: #b42318;
}

.incident-priority.medium {
  background: #fff2cf;
  color: #8a5a00;
}

.incident-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.incident-flow span {
  min-height: 28px;
  display: grid;
  place-items: center;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f7f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.incident-flow span.done {
  border-color: #c9e5d6;
  background: #eef9f3;
  color: var(--green);
}

.incident-flow span.current {
  border-color: #f4c77c;
  background: #fff5db;
  color: var(--amber);
  box-shadow: inset 0 -2px 0 rgba(165, 107, 0, 0.28);
}

.incident-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.incident-grid div {
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.incident-grid small,
.incident-grid b {
  display: block;
}

.incident-grid small {
  color: var(--muted);
  font-size: 11px;
}

.incident-grid b {
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
}

.incident-attempts {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.incident strong,
.event strong {
  display: block;
  font-size: 14px;
}

.incident span,
.event span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.event .event-narrative,
.timeline-item .event-narrative {
  color: var(--ink);
  font-weight: 750;
}

.incident .context-line,
.event .context-line {
  color: var(--ink);
  font-weight: 800;
}

.incident-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.incident-notes {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #f8fbfa;
}

.incident-secondary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.incident-timeline-panel {
  overflow: hidden;
}

.incident-timeline-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.incident-timeline-summary,
.incident-explain-card,
.incident-timeline-empty {
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
}

.incident-timeline-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.incident-timeline-summary.danger {
  border-left-color: var(--red);
  background: #fff3f2;
}

.incident-timeline-summary.good {
  border-left-color: var(--green);
  background: #f0faf5;
}

.incident-timeline-summary small,
.incident-timeline-meta small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.incident-timeline-summary strong,
.incident-explain-card strong,
.incident-timeline-empty strong {
  display: block;
  font-size: 18px;
}

.incident-timeline-summary span,
.incident-explain-card span,
.incident-timeline-empty span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.incident-timeline-summary em {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

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

.incident-case-strip div {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.incident-case-strip div:nth-child(1) {
  border-top-color: var(--blue);
}

.incident-case-strip div:nth-child(2) {
  border-top-color: var(--teal);
}

.incident-case-strip div:nth-child(3) {
  border-top-color: var(--amber);
}

.incident-case-strip div:nth-child(4) {
  border-top-color: #7d8e89;
}

.incident-case-strip small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.incident-case-strip strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.incident-case-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.incident-explain-card {
  display: grid;
  gap: 6px;
  background: linear-gradient(135deg, #f8fffc 0%, white 100%);
}

.incident-explain-card b {
  color: var(--ink);
}

.incident-timeline-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(360px, 1.45fr);
  gap: 14px;
}

.incident-timeline-meta {
  display: grid;
  gap: 8px;
  align-content: start;
}

.incident-timeline-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.incident-timeline-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.incident-timeline-stream {
  position: relative;
  display: grid;
  gap: 10px;
}

.incident-timeline-stream::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #d7e4df;
}

.incident-timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.incident-timeline-event b {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-size: 11px;
}

.incident-timeline-event > div {
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
}

.incident-timeline-event.warning > div {
  border-left-color: var(--amber);
  background: #fff8e8;
}

.incident-timeline-event.danger > div {
  border-left-color: var(--red);
  background: #fff3f2;
}

.incident-timeline-event.good > div {
  border-left-color: var(--green);
  background: #f0faf5;
}

.incident-timeline-event.protocolo > div {
  border-left-color: var(--blue);
}

.incident-timeline-event.humano > div {
  border-left-color: #7d8e89;
}

.incident-timeline-event.automatizacion > div {
  border-left-color: var(--amber);
}

.incident-timeline-event strong,
.incident-timeline-event span,
.incident-timeline-event em,
.incident-timeline-event small {
  display: block;
}

.incident-timeline-event strong {
  font-size: 14px;
}

.incident-timeline-event span,
.incident-timeline-event em,
.incident-timeline-event small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.incident-timeline-event small {
  color: #7d8e89;
  font-size: 11px;
  text-transform: uppercase;
}

.owner-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f1f4;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

/* Capa visual transversal: eleva todos los modulos sin cambiar su logica. */
.panel,
.rounds-module-header,
.force-gauge-card,
.force-chart-card,
.force-snapshot-card,
.force-attention-card,
.module-detail-card,
.module-detail-hero,
.alarm-hero-panel,
.overtime-hero-panel,
.overtime-executive-panel,
.overtime-report-panel,
.overtime-payroll-panel,
.rules-hero-panel,
.patrol-hero-panel,
.hr-hero-panel,
.hr-report-panel,
.hr-form-panel,
.hr-photo-panel,
.post-history-panel,
.timeline-panel {
  border-color: rgba(193, 210, 204, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 253, 252, 0.96)),
    var(--panel);
  box-shadow: var(--shadow-soft);
}

.panel-header {
  background:
    linear-gradient(90deg, rgba(23, 122, 85, 0.055), transparent 52%),
    rgba(251, 253, 252, 0.94);
}

.panel-header h2 {
  font-size: 18px;
  letter-spacing: 0;
}

.topbar {
  min-height: 72px;
  border: 1px solid rgba(202, 217, 212, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 250, 0.98)),
    white;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

.topbar h1 {
  font-size: 27px;
  line-height: 1.06;
}

.sidebar {
  background:
    linear-gradient(180deg, #101716 0%, #13201e 48%, #0f1514 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.055);
}

nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms ease;
}

nav a.active,
nav a:hover {
  border-color: rgba(158, 216, 192, 0.14);
  background:
    linear-gradient(90deg, rgba(158, 216, 192, 0.12), rgba(255, 255, 255, 0.035)),
    #20302d;
}

nav a:hover {
  transform: translateX(2px);
}

.brand-mark {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    #1d3f39;
}

button,
.mini,
.incident-alert a,
.executive-actions a {
  font-weight: 850;
}

button:not(:disabled):hover,
.mini:not(:disabled):hover {
  box-shadow: 0 9px 18px rgba(16, 24, 40, 0.16), inset 0 -1px 0 rgba(16, 24, 40, 0.1);
}

.actions button,
.form-actions button:first-child,
.voice-preview button:first-child,
.executive-actions a:first-child,
.hr-photo-card-body button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
    var(--green);
}

.mini {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 251, 250, 0.94)),
    #fbfdfc;
}

.mini.danger,
button.danger {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 247, 0.95)),
    #fff7f7;
}

:is(
  .alarm-hero,
  .overtime-hero,
  .rules-hero,
  .patrol-hero,
  .hr-hero
) {
  position: relative;
  overflow: hidden;
  min-height: 174px;
  border-bottom-color: rgba(202, 217, 212, 0.86);
  grid-template-columns: minmax(0, 1fr) auto auto;
}

:is(
  .alarm-hero,
  .overtime-hero,
  .rules-hero,
  .patrol-hero,
  .hr-hero
)::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 58%),
    linear-gradient(115deg, transparent 0 64%, rgba(15, 111, 125, 0.08) 65% 68%, transparent 69%);
  pointer-events: none;
}

:is(
  .alarm-hero,
  .overtime-hero,
  .rules-hero,
  .patrol-hero,
  .hr-hero
) > * {
  position: relative;
  z-index: 1;
}

:is(
  .alarm-hero,
  .overtime-hero,
  .rules-hero,
  .patrol-hero,
  .hr-hero
) span {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 9px;
  box-shadow: inset 0 -1px 0 rgba(16, 23, 22, 0.06);
}

:is(
  .alarm-hero,
  .overtime-hero,
  .rules-hero,
  .patrol-hero,
  .hr-hero
) strong {
  font-size: 31px;
}

.module-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: var(--teal);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 249, 0.86)),
    #fbfdfc;
  box-shadow: 0 14px 28px rgba(16, 23, 22, 0.11), inset 0 -1px 0 rgba(16, 23, 22, 0.08);
}

.module-hero-icon::before,
.module-hero-icon::after {
  transform-origin: center;
}

.alarm-hero .module-hero-icon {
  color: var(--blue);
}

.overtime-hero .module-hero-icon,
.patrol-hero .module-hero-icon {
  color: var(--amber);
}

.rules-hero .module-hero-icon {
  color: var(--teal);
}

.hr-hero .module-hero-icon {
  color: var(--green);
}

:is(
  .alarm-kpi,
  .overtime-kpi,
  .overtime-executive-kpi,
  .overtime-payroll-kpi,
  .rules-kpi,
  .patrol-kpi,
  .hr-kpi,
  .hr-report-kpi,
  .report-kpi,
  .force-kpi,
  .incident-overview-card
) {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(16, 23, 22, 0.055);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

:is(
  .alarm-kpi,
  .overtime-kpi,
  .overtime-executive-kpi,
  .overtime-payroll-kpi,
  .rules-kpi,
  .patrol-kpi,
  .hr-kpi,
  .hr-report-kpi,
  .report-kpi,
  .force-kpi,
  .incident-overview-card
)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 44%);
  pointer-events: none;
}

:is(
  .alarm-kpi,
  .overtime-kpi,
  .overtime-executive-kpi,
  .overtime-payroll-kpi,
  .rules-kpi,
  .patrol-kpi,
  .hr-kpi,
  .hr-report-kpi,
  .report-kpi,
  .force-kpi,
  .incident-overview-card
):hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

:is(
  .alarm-kpi,
  .overtime-kpi,
  .overtime-executive-kpi,
  .overtime-payroll-kpi,
  .rules-kpi,
  .patrol-kpi,
  .hr-kpi,
  .hr-report-kpi,
  .report-kpi,
  .force-kpi,
  .incident-overview-card
) strong {
  line-height: 1.05;
}

:is(
  .alarm-event,
  .alarm-report-row,
  .overtime-case,
  .overtime-audit-row,
  .overtime-payroll-row,
  .overtime-payroll-batch,
  .rule-card,
  .rules-event-group,
  .patrol-route,
  .patrol-checkpoint,
  .patrol-scan,
  .patrol-incident,
  .hr-person,
  .hr-photo-card,
  .hr-evidence-card,
  .hr-consult-row,
  .hr-activity-row,
  .incident,
  .event,
  .report-row,
  .post-history-card,
  .force-client-card,
  .force-alert,
  .timeline-item
) {
  box-shadow: 0 6px 14px rgba(16, 23, 22, 0.045);
  transition: transform 130ms ease, box-shadow 130ms ease, border-color 130ms ease;
}

:is(
  .alarm-event,
  .alarm-report-row,
  .overtime-case,
  .overtime-audit-row,
  .overtime-payroll-row,
  .overtime-payroll-batch,
  .rule-card,
  .rules-event-group,
  .patrol-route,
  .patrol-checkpoint,
  .patrol-scan,
  .patrol-incident,
  .hr-person,
  .hr-photo-card,
  .hr-evidence-card,
  .hr-consult-row,
  .hr-activity-row,
  .incident,
  .event,
  .report-row,
  .post-history-card,
  .force-client-card,
  .force-alert
):hover {
  box-shadow: 0 14px 26px rgba(16, 23, 22, 0.095);
  transform: translateY(-1px);
}

:is(
  .overtime-case.selected,
  .rule-card.selected,
  .patrol-route.selected,
  .hr-person.selected
) {
  border-color: rgba(15, 111, 125, 0.36);
  box-shadow: 0 0 0 3px rgba(15, 111, 125, 0.12), 0 14px 28px rgba(16, 23, 22, 0.11);
}

:is(
  .alarm-stage,
  .overtime-stage,
  .incident-flow
) span.current {
  position: relative;
}

:is(
  .alarm-stage,
  .overtime-stage,
  .incident-flow
) span.current::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(165, 107, 0, 0.12);
}

:is(
  .alarm-stage,
  .overtime-stage,
  .incident-flow
) span.done {
  box-shadow: inset 0 -2px 0 rgba(23, 122, 85, 0.16);
}

input,
select,
textarea {
  min-width: 0;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

main,
section,
.panel,
.reports-view,
.force-overview,
.force-dashboard,
.report-grid,
.report-filters,
.overtime-filters,
.protocol-builder,
.protocol-flow-preview {
  min-width: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 111, 125, 0.48) !important;
  box-shadow: 0 0 0 3px rgba(15, 111, 125, 0.12);
  background: white;
}

table {
  background: white;
}

.empty-state {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px dashed rgba(15, 111, 125, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 246, 240, 0.62), rgba(255, 255, 255, 0.92)),
    #fbfdfc;
  padding: 18px;
}

.empty-state strong {
  font-size: 16px;
}

.empty-state span {
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: #f7fbf9;
}

.status,
.incident-priority,
.owner-pill,
:is(
  .alarm-event-top,
  .overtime-case-top,
  .rule-card-top,
  .patrol-route-top,
  .hr-person-top
) em {
  box-shadow: inset 0 -1px 0 rgba(16, 23, 22, 0.075);
}

.module-detail-hero {
  background:
    linear-gradient(135deg, rgba(15, 111, 125, 0.1), transparent 54%),
    #fbfdfc;
  box-shadow: var(--shadow-soft);
}

.module-detail-card {
  position: relative;
  overflow: hidden;
}

.module-detail-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 111, 125, 0.12);
  border-radius: 8px;
  transform: rotate(45deg);
  pointer-events: none;
}

.hr-photo-preview.has-image,
.hr-evidence-preview.has-image {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 18px rgba(16, 23, 22, 0.1);
}

.incident-alert {
  box-shadow: 0 14px 32px rgba(180, 35, 24, 0.16);
}

@media (max-width: 980px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    padding: 16px;
  }

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

  .topbar,
  .layout,
  .escalation-config,
  .executive,
  .presentation-grid,
  .rounds-module-header,
  .rounds-module-stats,
  .alarm-hero,
  .overtime-hero,
  .rules-hero,
  .patrol-hero,
  .hr-hero,
  .health-center-hero {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .demo-grid,
  .demo-steps,
  .operation-tabs,
  .incident-tabs,
  .alarm-tabs,
  .sim-grid,
  .system-health,
  .operation-now,
  .escalation-steps,
  .telephony-grid,
  .users-grid,
  .connector-kpis,
  .connectors-grid,
  .connector-event-row,
  .connector-config-form,
  .connector-key-reveal,
  .tenant-cloud-layout,
  .tenant-settings-form,
  .tenant-module-toggles,
  .report-grid,
  .module-roadmap,
  .home-command,
  .home-live-strip,
  .home-event-flow,
  .sentinel-voice-panel,
  .sentinel-voice-console,
  .sentinel-voice-controls,
  .sentinel-voice-history,
  .alarm-kpis,
  .alarm-grid,
  .alarm-intelligence,
  .overtime-kpis,
  .overtime-executive-summary,
  .overtime-executive-grid,
  .overtime-signals,
  .overtime-grid,
  .overtime-filters,
  .overtime-payroll-summary,
  .overtime-payroll-grid,
  .overtime-audit-row,
  .rules-kpis,
  .rules-layout,
  .rules-filters,
  .rule-pipeline,
  .rules-event-map,
  .incident-case-strip,
  .patrol-kpis,
  .patrol-layout,
  .hr-kpis,
  .hr-report-filters,
  .hr-report-summary,
  .hr-distribution-row,
  .hr-layout,
  .hr-filters,
  .hr-photo-capture,
  .hr-form,
  .hr-document-toggles,
  .hr-form-actions,
  .hr-evidence-grid,
  .module-detail-grid,
  .health-center-kpis,
  .health-center-layout,
  .incident-timeline-grid,
  .schedule-grid,
  .post-history-grid,
  .executive-grid {
    grid-template-columns: 1fr;
  }

  .sentinel-voice-panel {
    right: 14px;
    bottom: 14px;
    width: min(390px, calc(100vw - 28px));
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .sentinel-signal-toast {
    right: 14px;
    bottom: 112px;
    width: min(390px, calc(100vw - 28px));
  }

  .sentinel-voice-controls {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .voice-compact-select {
    display: none;
  }

  .voice-listening-meter,
  .sentinel-voice-panel #voiceStatus {
    grid-column: 2;
  }

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

  .force-client-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .force-client-meta small {
    max-width: 100%;
  }

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

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

  .force-kpis,
  .force-client-grid,
  .force-filters,
  .force-dashboard,
  .overtime-case-metrics,
  .overtime-stage,
  .overtime-detail-kpis,
  .patrol-route-metrics,
  .hr-detail-kpis,
  .hr-detail-grid,
  .structured-input-grid,
  .structured-input-grid.equipment-inputs,
  .structured-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alarm-report-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

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

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

  .report-filters {
    grid-template-columns: 1fr;
  }

  .incident-filters {
    grid-template-columns: 1fr;
  }

  .escalation-title {
    display: grid;
  }

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

  .module-detail-hero {
    display: grid;
  }

  .escalation-post {
    grid-template-columns: 1fr;
  }

  .sim-header,
  .sim-title {
    display: grid;
  }

  .executive-main h2 {
    font-size: 23px;
  }

  .home-hero-copy strong {
    font-size: 28px;
  }

  .home-hero-mark {
    position: relative;
    right: auto;
    top: auto;
    width: 150px;
    height: 70px;
    margin-top: 14px;
  }

  .home-command-core,
  .home-orbit {
    min-height: auto;
  }

  .home-orbit {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .home-orbit::before,
  .home-orbit::after {
    display: none;
  }

  .home-orbit-center {
    position: static;
    width: auto;
    height: auto;
    min-height: 76px;
    border-radius: 8px;
    transform: none;
  }

  .home-orbit-node,
  .home-orbit-node.node-1,
  .home-orbit-node.node-2,
  .home-orbit-node.node-3,
  .home-orbit-node.node-4,
  .home-orbit-node.node-5,
  .home-orbit-node.node-6 {
    position: static;
    width: auto;
  }
}

/* Pulido visual fuerte: Sentinel como control operativo persistente */
.sentinel-voice-panel {
  width: min(448px, calc(100vw - 32px));
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: stretch;
  border-color: rgba(158, 216, 192, 0.34);
  background:
    linear-gradient(135deg, rgba(10, 21, 19, 0.98), rgba(22, 54, 48, 0.98) 58%, rgba(11, 28, 25, 0.98)),
    #101716;
  box-shadow:
    0 24px 60px rgba(16, 23, 22, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.sentinel-voice-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #9ed8c0, #0f6f7d 55%, #b3313a);
  opacity: 0.92;
  pointer-events: none;
}

.sentinel-voice-panel.is-listening::before {
  background: linear-gradient(90deg, #ef4444, #b3313a, #9ed8c0);
}

.sentinel-voice-panel.is-processing::before,
.sentinel-voice-panel.is-speaking::before {
  background-size: 180% 100%;
  animation: voiceProcessing 1.05s infinite linear;
}

.sentinel-voice-head {
  position: relative;
  min-height: 94px;
  padding: 14px 15px;
}

.sentinel-voice-head::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #36b883;
  box-shadow: 0 0 0 5px rgba(54, 184, 131, 0.14);
}

.sentinel-voice-panel.is-listening .sentinel-voice-head::after {
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.14);
  animation: voicePulse 1s infinite;
}

.sentinel-voice-panel.is-processing .sentinel-voice-head::after {
  background: #0f6f7d;
  box-shadow: 0 0 0 5px rgba(15, 111, 125, 0.14);
}

.sentinel-voice-head span {
  letter-spacing: 0.04em;
}

.sentinel-voice-head strong {
  max-width: 92px;
  font-size: 15px;
}

.sentinel-voice-status {
  max-width: 112px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sentinel-voice-console {
  min-height: 94px;
  background:
    linear-gradient(135deg, rgba(234, 246, 240, 0.44), rgba(255, 255, 255, 0.96) 44%, rgba(247, 251, 249, 0.98)),
    #fbfdfc;
}

.sentinel-voice-controls {
  grid-template-columns: 134px minmax(0, 1fr) 80px;
  gap: 9px;
  padding: 12px;
}

.voice-stage {
  min-height: 48px;
  border: 1px solid rgba(207, 221, 216, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 252, 250, 0.94)),
    #ffffff;
  padding: 7px 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.voice-stage p {
  max-width: none;
  min-height: 30px;
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sentinel-voice-actions {
  align-content: center;
  gap: 7px;
}

.voice-record-button,
.voice-icon-action,
.sentinel-signal-toast a,
.sentinel-action-row button,
.sentinel-action-tray-head button {
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease,
    background 120ms ease,
    color 120ms ease;
}

.voice-record-button {
  box-shadow:
    0 12px 24px rgba(153, 27, 27, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.voice-record-button:active,
.voice-icon-action:active,
.sentinel-action-row button:active,
.sentinel-action-tray-head button:active,
.sentinel-signal-toast a:active {
  transform: translateY(0) scale(0.97);
}

.voice-icon-action {
  width: 32px;
  min-width: 32px;
  height: 32px;
  background:
    linear-gradient(180deg, #ffffff, #f2faf6),
    #ffffff;
  border-color: rgba(15, 111, 125, 0.2);
}

.voice-icon-action:hover {
  border-color: rgba(15, 111, 125, 0.32);
}

.voice-compact-select {
  width: 80px;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.voice-listening-meter {
  height: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 247, 243, 0.95)),
    #f7fcfa;
}

.sentinel-voice-panel #voiceStatus {
  min-height: 22px;
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
  color: var(--green);
  padding-left: 8px;
  font-weight: 950;
}

.sentinel-voice-panel.is-listening #voiceStatus {
  border-left-color: #ef4444;
  color: #991b1b;
}

.sentinel-voice-panel.is-processing #voiceStatus,
.sentinel-voice-panel.is-speaking #voiceStatus {
  border-left-color: var(--teal);
  color: var(--teal);
}

.sentinel-voice-panel.has-voice-error #voiceStatus {
  border-left-color: var(--red);
  color: var(--red);
}

.sentinel-signal-toast {
  bottom: 138px;
  border-color: rgba(15, 111, 125, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 249, 0.98)),
    #ffffff;
  box-shadow:
    0 18px 42px rgba(16, 23, 22, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sentinel-signal-toast.critical,
.sentinel-signal-toast.high {
  background:
    linear-gradient(135deg, rgba(255, 247, 247, 0.99), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.sentinel-signal-toast a {
  border: 1px solid rgba(23, 122, 85, 0.16);
}

.sentinel-signal-toast.critical a,
.sentinel-signal-toast.high a {
  border-color: rgba(179, 49, 58, 0.2);
  box-shadow: 0 8px 18px rgba(179, 49, 58, 0.1);
}

.sentinel-action-tray {
  bottom: 262px;
  max-height: 320px;
  overflow: auto;
  border-color: rgba(15, 111, 125, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 249, 0.98)),
    #ffffff;
  box-shadow:
    0 20px 48px rgba(16, 23, 22, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.sentinel-action-tray-head {
  border-bottom: 1px solid rgba(207, 221, 216, 0.82);
  padding-bottom: 8px;
}

.sentinel-action-tray-head button {
  border-color: rgba(15, 111, 125, 0.16);
  background: #f7fcfa;
  color: var(--green);
}

.sentinel-action-row {
  align-items: flex-start;
  box-shadow: 0 8px 18px rgba(16, 23, 22, 0.055);
}

.sentinel-action-row.pending.confirmable {
  box-shadow:
    0 0 0 3px rgba(165, 107, 0, 0.08),
    0 10px 22px rgba(165, 107, 0, 0.1);
}

.sentinel-action-copy strong,
.sentinel-action-copy span {
  white-space: normal;
}

.sentinel-action-copy span {
  line-height: 1.3;
}

.sentinel-action-buttons {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sentinel-action-row button.confirm {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.sentinel-action-row button.confirm:hover {
  border-color: rgba(23, 122, 85, 0.34);
  box-shadow: 0 8px 18px rgba(23, 122, 85, 0.11);
}

.sentinel-action-status {
  letter-spacing: 0.02em;
}

.sentinel-voice-history {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 168px;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(9, 24, 21, 0.96), rgba(16, 23, 22, 0.98)),
    #101716;
  border-top-color: rgba(158, 216, 192, 0.16);
  padding: 10px 12px 12px;
}

.sentinel-voice-history > span,
.sentinel-voice-history-item {
  min-height: 64px;
  border-color: rgba(158, 216, 192, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #d8e4df;
}

.sentinel-voice-history-item strong,
.sentinel-voice-history-item p,
.sentinel-voice-history-item span,
.sentinel-voice-history > span {
  color: #d8e4df;
}

.sentinel-voice-history-item small {
  background: rgba(250, 232, 233, 0.12);
  color: #ffd7d9;
}

@media (max-width: 980px) {
  .sentinel-voice-panel {
    right: 14px;
    bottom: 14px;
    width: min(408px, calc(100vw - 28px));
    grid-template-columns: 122px minmax(0, 1fr);
  }

  .sentinel-voice-head {
    min-height: 96px;
  }

  .sentinel-voice-controls {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .voice-stage {
    min-height: 46px;
  }

  .sentinel-action-tray {
    right: 14px;
    bottom: 254px;
    width: min(408px, calc(100vw - 28px));
  }

  .sentinel-signal-toast {
    right: 14px;
    bottom: 128px;
    width: min(408px, calc(100vw - 28px));
  }
}

@media (max-width: 620px) {
  .sentinel-voice-panel {
    grid-template-columns: 1fr;
  }

  .sentinel-voice-head {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(158, 216, 192, 0.16);
    padding: 10px 12px;
  }

  .sentinel-voice-head strong {
    max-width: none;
  }

  .sentinel-action-tray {
    bottom: 316px;
  }
}

@media (max-width: 980px) {
  .protocol-builder {
    grid-template-columns: 1fr;
  }

  .protocol-flow-lane {
    grid-template-columns: 1fr;
  }

  .protocol-flow-node {
    min-height: auto;
  }

  .protocol-flow-node:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 25px;
    bottom: -10px;
    width: 2px;
    height: 10px;
  }
}

@media (max-width: 640px) {
  .protocol-builder-form {
    grid-template-columns: 1fr;
  }
}

/* Asistente de voz compacto: presente sin invadir la operacion */
.sentinel-voice-panel {
  right: 18px;
  bottom: 18px;
  width: min(318px, calc(100vw - 24px));
  min-height: 70px;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  border-radius: 999px;
  overflow: visible;
  box-shadow:
    0 14px 34px rgba(16, 23, 22, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sentinel-voice-panel::before {
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px;
}

.sentinel-voice-head {
  min-height: 70px;
  border-right: 1px solid rgba(158, 216, 192, 0.14);
  border-radius: 999px 0 0 999px;
  padding: 10px 12px 10px 16px;
}

.sentinel-voice-head::after {
  right: 13px;
  top: 13px;
  width: 7px;
  height: 7px;
}

.sentinel-voice-head span {
  font-size: 9px;
  line-height: 1;
}

.sentinel-voice-head strong {
  max-width: 54px;
  margin-top: 2px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.sentinel-voice-status {
  display: none;
}

.sentinel-voice-console {
  min-height: 70px;
  border-radius: 0 999px 999px 0;
  background:
    linear-gradient(135deg, rgba(247, 252, 250, 0.98), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.sentinel-voice-controls {
  min-width: 0;
  grid-template-columns: 56px minmax(0, 1fr) 32px 32px;
  grid-template-areas:
    "record stage stop repeat"
    "record status status status";
  gap: 5px 8px;
  padding: 8px 10px;
}

.sentinel-voice-actions {
  display: contents;
}

.voice-record-button {
  grid-area: record;
  width: 54px;
  min-width: 54px;
  height: 54px;
}

#voiceStop {
  grid-area: stop;
}

#voiceRepeat {
  grid-area: repeat;
}

.voice-icon-action {
  width: 30px;
  min-width: 30px;
  height: 30px;
  box-shadow: 0 5px 12px rgba(16, 23, 22, 0.08);
}

.voice-stage {
  grid-area: stage;
  min-width: 0;
  min-height: 29px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.voice-stage span {
  display: none;
}

.voice-stage p {
  max-width: 100%;
  min-height: 0;
  display: block;
  color: var(--ink);
  overflow: hidden;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-compact-select {
  display: none;
}

.voice-listening-meter {
  display: none;
}

.sentinel-voice-panel #voiceStatus {
  grid-area: status;
  min-width: 0;
  min-height: 18px;
  display: block;
  border-left: 0;
  color: var(--muted);
  overflow: hidden;
  padding-left: 0;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sentinel-voice-panel.is-listening #voiceStatus,
.sentinel-voice-panel.is-processing #voiceStatus,
.sentinel-voice-panel.is-speaking #voiceStatus,
.sentinel-voice-panel.has-voice-error #voiceStatus {
  border-left: 0;
}

.sentinel-signal-toast {
  right: 18px;
  bottom: 102px;
  width: min(360px, calc(100vw - 24px));
}

.sentinel-action-tray {
  right: 18px;
  bottom: 162px;
  width: min(360px, calc(100vw - 24px));
}

@media (max-width: 640px) {
  .sentinel-voice-panel {
    right: 12px;
    bottom: 12px;
    width: min(304px, calc(100vw - 24px));
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .sentinel-voice-head {
    padding-left: 13px;
  }

  .sentinel-voice-controls {
    grid-template-columns: 50px minmax(0, 1fr) 28px 28px;
    gap: 4px 6px;
    padding: 8px;
  }

  .voice-record-button {
    width: 50px;
    min-width: 50px;
    height: 50px;
  }

  .voice-icon-action {
    width: 28px;
    min-width: 28px;
    height: 28px;
  }
}

/* Micro asistente: boton flotante, sin bloque permanente de texto */
.sentinel-voice-panel {
  right: 22px;
  bottom: 22px;
  width: 76px;
  min-height: 76px;
  height: 76px;
  display: block;
  border: 1px solid rgba(158, 216, 192, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #0b1c19, #173a34 58%, #101716);
  overflow: visible;
  box-shadow:
    0 16px 34px rgba(16, 23, 22, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.sentinel-voice-panel::before {
  inset: -5px;
  height: auto;
  border: 2px solid rgba(158, 216, 192, 0.26);
  border-radius: 999px;
  background: transparent;
  opacity: 1;
}

.sentinel-voice-panel::after {
  content: "Sentinel";
  position: absolute;
  left: 50%;
  bottom: -23px;
  transform: translateX(-50%);
  color: rgba(16, 23, 22, 0.82);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.sentinel-voice-panel.is-listening::before {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.11);
  animation: voicePulse 1s infinite;
}

.sentinel-voice-panel.is-processing::before,
.sentinel-voice-panel.is-speaking::before {
  border-color: rgba(15, 111, 125, 0.52);
  box-shadow: 0 0 0 8px rgba(15, 111, 125, 0.11);
}

.sentinel-voice-panel.has-voice-error::before {
  border-color: rgba(185, 28, 28, 0.65);
  box-shadow: 0 0 0 8px rgba(185, 28, 28, 0.1);
}

.sentinel-voice-head,
.sentinel-voice-status,
.voice-stage,
.voice-compact-select,
.voice-listening-meter,
.voice-response-card,
.sentinel-voice-history {
  display: none !important;
}

.sentinel-voice-console,
.sentinel-voice-controls,
.sentinel-voice-actions {
  display: contents;
}

.voice-record-button {
  position: absolute;
  inset: 9px;
  width: auto;
  min-width: 0;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 36% 25%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(180deg, #c92828, #991b1b);
  box-shadow:
    0 10px 22px rgba(153, 27, 27, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.voice-dot {
  width: 16px;
  height: 16px;
}

.voice-icon-action {
  position: absolute;
  top: -8px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.94);
}

#voiceStop {
  left: -6px;
}

#voiceRepeat {
  right: -6px;
}

.sentinel-voice-panel:hover .voice-icon-action,
.sentinel-voice-panel.is-speaking .voice-icon-action,
.sentinel-voice-panel.is-processing .voice-icon-action,
.sentinel-voice-panel.has-voice-error .voice-icon-action {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sentinel-voice-panel #voiceStatus {
  position: absolute;
  right: 0;
  bottom: 88px;
  min-height: 26px;
  width: max-content;
  max-width: 170px;
  display: none;
  align-items: center;
  border: 1px solid rgba(15, 111, 125, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--green);
  padding: 0 10px;
  box-shadow: 0 10px 24px rgba(16, 23, 22, 0.14);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.sentinel-voice-panel.is-listening #voiceStatus,
.sentinel-voice-panel.is-processing #voiceStatus,
.sentinel-voice-panel.is-speaking #voiceStatus,
.sentinel-voice-panel.has-voice-error #voiceStatus {
  display: inline-flex;
}

.sentinel-voice-panel.is-listening #voiceStatus {
  color: #991b1b;
}

.sentinel-voice-panel.has-voice-error #voiceStatus {
  color: var(--red);
}

.sentinel-signal-toast {
  bottom: 120px;
}

.sentinel-action-tray {
  bottom: 180px;
}

@media (max-width: 640px) {
  .sentinel-voice-panel {
    right: 14px;
    bottom: 14px;
    width: 68px;
    height: 68px;
    min-height: 68px;
  }

  .voice-record-button {
    inset: 8px;
  }

  .sentinel-voice-panel #voiceStatus {
    bottom: 80px;
    max-width: 150px;
  }
}

@media print {
  body {
    display: block;
    background: white;
  }

  .sidebar,
  .topbar,
  .incident-alert,
  .report-filters,
  .header-actions,
  [data-view]:not(#reporteria) {
    display: none !important;
  }

  main {
    padding: 0;
  }

  #reporteria {
    display: grid !important;
    gap: 12px;
  }

  .print-report-title {
    display: block;
  }

  .panel {
    break-inside: avoid;
    border-color: #d9e2de;
    box-shadow: none;
  }

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

  .events,
  .cards,
  .compact {
    max-height: none;
    overflow: visible;
  }

  button {
    display: none;
  }

  body.hr-print-mode [data-view]:not(#rrhh) {
    display: none !important;
  }

  body.hr-print-mode #rrhh {
    display: grid !important;
    gap: 12px;
  }

  body.hr-print-mode .hr-hero-panel,
  body.hr-print-mode .hr-photo-panel,
  body.hr-print-mode .hr-form-panel,
  body.hr-print-mode .hr-layout.secondary,
  body.hr-print-mode .hr-layout > .panel:first-child {
    display: none !important;
  }

  body.hr-print-mode .hr-layout {
    display: block;
  }

  body.hr-print-mode .hr-detail {
    padding: 0;
  }

  body.hr-print-mode .hr-detail-actions {
    display: none;
  }
}
