@import url("https://fonts.googleapis.com/css2?family=Michroma&display=swap");

:root {
  --sc-bg: #07111d;
  --sc-bg-2: #091625;
  --sc-sidebar: #071421;
  --sc-surface: #0d1b2a;
  --sc-surface-2: #102235;
  --sc-surface-3: #13283d;
  --sc-border: #1e3a52;
  --sc-border-soft: #173047;
  --sc-text: #f2f6fb;
  --sc-text-2: #c4d2df;
  --sc-muted: #8fa4b8;
  --sc-muted-2: #6f879c;
  --sc-blue: #2f9cff;
  --sc-cyan: #39bdf8;
  --sc-green: #22c990;
  --sc-purple: #9567f5;
  --sc-yellow: #e7b94e;
  --sc-orange: #f08b43;
  --sc-red: #ef5f70;
  --sc-radius: 12px;
  --sc-radius-lg: 16px;
  --sc-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  --sc-sidebar-width: 252px;
  --sc-topbar-height: 74px;
  --bs-body-bg: var(--sc-bg);
  --bs-body-color: var(--sc-text);
  --bs-primary: #2f9cff;
  --bs-primary-rgb: 47, 156, 255;
  --bs-border-color: var(--sc-border);
  --bs-secondary-color: var(--sc-muted);
  --bs-link-color: #70bfff;
  --bs-link-hover-color: #a6d7ff;
  --bs-font-sans-serif:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  background: var(--sc-bg);
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--sc-bg);
  color: var(--sc-text);
  font-family: var(--bs-font-sans-serif);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-weight: 600;
}
.is-hidden {
  display: none !important;
}
.role-hidden {
  display: none !important;
}
.muted {
  color: var(--sc-muted) !important;
}

/* Bootstrap theme overrides */
.btn {
  --bs-btn-border-radius: 9px;
  --bs-btn-font-size: 0.9rem;
  --bs-btn-font-weight: 650;
  min-height: 40px;
  padding: 0.58rem 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  box-shadow: none !important;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  --bs-btn-bg: var(--sc-blue);
  --bs-btn-border-color: var(--sc-blue);
  --bs-btn-hover-bg: #238ce8;
  --bs-btn-hover-border-color: #238ce8;
  --bs-btn-active-bg: #1d7dce;
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--sc-border);
  color: var(--sc-text-2);
}
.btn-ghost:hover {
  background: var(--sc-surface-2);
  border-color: #2b526f;
  color: #fff;
}
.btn-soft {
  background: #0e2a40;
  border: 1px solid #244b68;
  color: #b8ddf8;
}
.btn-soft:hover {
  background: #12344e;
  border-color: #2f668b;
  color: #fff;
}
.btn-block {
  width: 100%;
}
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.38rem 0.72rem;
  border-radius: 8px;
  border: 1px solid #28506d;
  background: #0d2639;
  color: #b8d6ea;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  transition: 0.15s ease;
}
.small-btn:hover {
  background: #12344d;
  border-color: #3b7095;
  color: #fff;
  transform: translateY(-1px);
}
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--sc-border);
  background: var(--sc-surface);
  color: var(--sc-text-2);
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.icon-btn:hover {
  background: var(--sc-surface-2);
  color: #fff;
}
.icon-btn b {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sc-red);
  color: #fff;
  font-size: 0.67rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--sc-bg);
}

/* Login */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 20px;
  background:
    radial-gradient(
      circle at 14% 14%,
      rgba(47, 156, 255, 0.1),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 82%,
      rgba(149, 103, 245, 0.07),
      transparent 25%
    ),
    #07111d;
  position: relative;
  overflow: hidden;
}
.login-orb {
  position: absolute;
  border: 1px solid rgba(62, 142, 197, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.login-orb-a {
  width: 420px;
  height: 420px;
  left: -160px;
  top: -180px;
}
.login-orb-b {
  width: 520px;
  height: 520px;
  right: -260px;
  bottom: -280px;
}
.login-card {
  position: relative;
  width: min(460px, 100%);
  padding: 32px;
  border: 1px solid var(--sc-border);
  border-radius: 18px;
  background: rgba(12, 28, 43, 0.97);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--sc-border-soft);
}
.login-brand img {
  width: 42px;
  height: 42px;
}
.login-brand strong,
.login-brand span {
  display: block;
}
.login-brand strong {
  font-size: 1rem;
  letter-spacing: 0.07em;
  color: #fff;
}
.login-brand span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: #7da0b9;
  margin-top: 3px;
}
.login-copy {
  padding: 24px 0 18px;
}
.login-copy h1 {
  font-size: 1.9rem;
  line-height: 1.16;
  margin: 0.2rem 0 0.55rem;
  font-weight: 760;
  letter-spacing: -0.025em;
}
.login-copy > p:last-child {
  color: var(--sc-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}
.eyebrow {
  margin: 0;
  color: #55bdf8;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  text-transform: uppercase;
}
.login-card form {
  display: grid;
  gap: 14px;
}
.login-card label,
.modal-card label {
  display: grid;
  gap: 7px;
  color: var(--sc-text-2);
  font-size: 0.83rem;
  font-weight: 650;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #25465f;
  border-radius: 9px;
  background: #091724;
  color: var(--sc-text);
  padding: 0.72rem 0.85rem;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: #5f7689;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #378fd0;
  background: #0a1a29;
  box-shadow: 0 0 0 3px rgba(47, 156, 255, 0.12);
}
select {
  color-scheme: dark;
}
.login-mode-note {
  display: flex;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid #1f455e;
  border-radius: 10px;
  background: #0a1e2e;
}
.login-mode-note > span {
  color: var(--sc-green);
}
.login-mode-note p {
  margin: 0;
  font-size: 0.76rem;
  color: #86a5ba;
  line-height: 1.55;
}
.login-card > small {
  display: block;
  margin-top: 18px;
  color: #60798d;
  font-size: 0.73rem;
  line-height: 1.45;
}
.form-message {
  min-height: 1.2em;
  margin: 0;
  color: #ff9da6;
  font-size: 0.8rem;
}

/* Main shell */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sc-sidebar-width) minmax(0, 1fr);
  background: var(--sc-bg);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #071522, #08131f);
  border-right: 1px solid var(--sc-border-soft);
  z-index: 30;
}
.side-brand {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--sc-border-soft);
}
.side-brand img {
  width: 38px;
  height: 38px;
}
.side-brand strong,
.side-brand span {
  display: block;
}
.side-brand strong {
  font-size: 0.94rem;
  letter-spacing: 0.055em;
  color: #fff;
}
.side-brand span {
  font-size: 0.63rem;
  color: #6d8ca3;
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.side-nav {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.side-nav a {
  min-height: 44px;
  border-radius: 9px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #a8bac8;
  font-size: 0.9rem;
  font-weight: 560;
  border: 1px solid transparent;
  position: relative;
}
.side-nav a:hover {
  background: #0c2132;
  color: #f4f8fb;
}
.side-nav a.active {
  background: #102a3e;
  border-color: #214a68;
  color: #fff;
}
.side-nav a.active:before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--sc-blue);
}
.nav-icon {
  width: 21px;
  text-align: center;
  color: #78a5c3;
  font-size: 1rem;
}
.side-nav a.active .nav-icon {
  color: #57b6f5;
}
.nav-caption {
  margin: 15px 10px 5px;
  color: #587188;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  font-weight: 800;
}
.nav-count {
  margin-left: auto;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: #842b3b;
  color: #ffdbe0;
  font-size: 0.68rem;
  display: grid;
  place-items: center;
}
.sidebar-foot {
  margin-top: auto;
  padding: 16px 14px;
  border-top: 1px solid var(--sc-border-soft);
}
.sidebar-foot p {
  margin: 0 4px 12px;
  color: #58778d;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.sidebar-foot > span {
  display: block;
  margin: 10px 4px 0;
  color: #486176;
  font-size: 0.64rem;
}
.sidebar-logout {
  width: 100%;
  height: 39px;
  border-radius: 8px;
  border: 1px solid #243f54;
  background: transparent;
  color: #9cb1c2;
  text-align: left;
  padding: 0 12px;
  font-size: 0.82rem;
}
.sidebar-logout:hover {
  background: #28161b;
  border-color: #65313b;
  color: #ffc1c7;
}

.main-column {
  min-width: 0;
  display: grid;
  grid-template-rows: var(--sc-topbar-height) minmax(
      calc(100vh - var(--sc-topbar-height) - 46px),
      auto
    ) 46px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  height: var(--sc-topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 22px;
  background: rgba(7, 17, 29, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sc-border-soft);
}
.global-search {
  flex: 1;
  max-width: 610px;
  position: relative;
}
.global-search > span {
  position: absolute;
  left: 13px;
  top: 50%;
  translate: 0 -50%;
  color: #6d879b;
  font-size: 1rem;
}
.global-search input {
  height: 42px;
  padding-left: 38px;
  background: #0b1a28;
  border-color: #1d3a50;
  font-size: 0.88rem;
}
.top-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #91a7b7;
  font-size: 0.78rem;
  white-space: nowrap;
}
.clock {
  display: grid;
  text-align: right;
  margin-right: 9px;
  padding-right: 14px;
  border-right: 1px solid var(--sc-border-soft);
}
.clock small {
  font-size: 0.68rem;
  color: #617b8f;
}
.clock strong {
  font-size: 0.82rem;
  color: #d6e2ec;
  font-weight: 650;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sc-green);
  box-shadow: 0 0 0 4px rgba(34, 201, 144, 0.08);
}
.user-account {
  position: relative;
}
.user-account summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}
.user-account summary::-webkit-details-marker {
  display: none;
}
.user-account summary:hover,
.user-account[open] summary {
  background: #0d2131;
  border-color: #203e55;
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #d7e5f2;
  color: #12283b;
  font-weight: 800;
  font-size: 0.76rem;
  display: grid;
  place-items: center;
}
.user-copy strong,
.user-copy small {
  display: block;
}
.user-copy strong {
  font-size: 0.82rem;
  color: #edf5fb;
  line-height: 1.2;
}
.user-copy small {
  font-size: 0.69rem;
  color: #718ba0;
  margin-top: 2px;
}
.session-badge {
  padding: 3px 6px;
  border: 1px solid #28536f;
  border-radius: 6px;
  color: #65c7ff;
  background: #0a2132;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  font-weight: 800;
}
.session-badge[data-mode="operator"] {
  border-color: #28644f;
  color: #58d2a2;
  background: #0b2821;
}
.session-badge[data-mode="demo"] {
  border-color: #715a2c;
  color: #e9c66b;
  background: #28200d;
}
.chevron {
  color: #6f879a;
  font-size: 0.8rem;
}
.user-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 265px;
  padding: 9px;
  border: 1px solid var(--sc-border);
  border-radius: 12px;
  background: #0b1b29;
  box-shadow: var(--sc-shadow);
}
.session-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}
.avatar.large {
  width: 42px;
  height: 42px;
}
.session-card strong,
.session-card small,
.session-card em {
  display: block;
}
.session-card strong {
  font-size: 0.84rem;
}
.session-card small {
  font-size: 0.72rem;
  color: #86a0b3;
}
.session-card em {
  font-style: normal;
  font-size: 0.68rem;
  color: #5f778a;
  margin-top: 3px;
}
.user-popover-sep {
  height: 1px;
  background: var(--sc-border-soft);
  margin: 6px 0;
}
.user-popover button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #a6bac9;
  padding: 9px 10px;
  border-radius: 8px;
  text-align: left;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 9px;
}
.user-popover button:hover {
  background: #102536;
  color: #fff;
}
.user-popover .logout-action {
  color: #f3a0a8;
}
.user-popover .logout-action:hover {
  background: #2c171d;
  color: #ffc3c9;
}

.workspace {
  padding: 24px clamp(18px, 2vw, 32px) 34px;
  min-width: 0;
  overflow-x: hidden;
}
.app-footer {
  height: 46px;
  border-top: 1px solid var(--sc-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: #587186;
  font-size: 0.7rem;
}

/* Page headers */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 20px;
}
.page-head h1 {
  margin: 0.22rem 0 0.28rem;
  font-size: clamp(1.65rem, 2.1vw, 2.15rem);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: -0.03em;
  color: #fff;
}
.page-head > div > p:last-child {
  margin: 0;
  color: var(--sc-muted);
  font-size: 0.95rem;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

/* Panels and cards */
.panel {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border-soft);
  border-radius: var(--sc-radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.panel-head {
  min-height: 68px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--sc-border-soft);
}
.panel-head h2 {
  margin: 0;
  color: #f5f8fb;
  font-size: 1.02rem;
  font-weight: 720;
  letter-spacing: -0.01em;
}
.panel-head p {
  margin: 4px 0 0;
  color: var(--sc-muted);
  font-size: 0.8rem;
}
.panel-head > small {
  color: var(--sc-muted-2);
  font-size: 0.74rem;
}
.panel-body {
  padding: 18px;
}
.stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.kpi-card {
  position: relative;
  min-height: 126px;
  padding: 16px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-border-soft);
  border-radius: var(--sc-radius);
  overflow: hidden;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: #2b4f69;
  background: #102033;
}
.kpi-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.kpi-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9fb3c3;
  font-size: 0.77rem;
  font-weight: 650;
}
.kpi-icon {
  color: var(--accent);
  font-size: 1.05rem;
}
.kpi-card > div:nth-child(2) {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 11px;
}
.kpi-value {
  font-size: 1.68rem;
  line-height: 1;
  font-weight: 780;
  letter-spacing: -0.035em;
  color: #fff;
}
.delta {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--sc-green);
}
.delta.down {
  color: var(--sc-red);
}
.kpi-foot {
  margin-top: 10px;
  color: #71899c;
  font-size: 0.73rem;
  line-height: 1.35;
}

/* Overview */
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.8fr);
  gap: 14px;
  align-items: start;
}
.module-orbit {
  position: relative;
  min-height: 500px;
  background:
    radial-gradient(
      circle at 50% 52%,
      rgba(39, 126, 190, 0.08),
      transparent 34%
    ),
    var(--sc-surface);
  isolation: isolate;
}
.orbit-title {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 16px;
  z-index: 7;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: start;
}
.orbit-title h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 720;
}
.orbit-title p {
  margin: 4px 0 0;
  color: var(--sc-muted);
  font-size: 0.79rem;
}
.orbit-title > span {
  color: #6f91a9;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.core-links {
  position: absolute;
  inset: 58px 0 0;
  width: 100%;
  height: calc(100% - 58px);
  z-index: 1;
  pointer-events: none;
}
.core-link-base {
  fill: none;
  stroke: #24445b;
  stroke-width: 1.2;
  opacity: 0.6;
}
.core-link-flow {
  fill: none;
  stroke: #37aef2;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 3 18;
  opacity: 0.42;
  animation: flowDash 2.1s linear infinite;
}
.path-threats.core-link-flow {
  stroke: #9b74ed;
}
.path-iam.core-link-flow {
  stroke: #2fc7a0;
}
.path-comply.core-link-flow {
  stroke: #5aa8ef;
}
.data-packet {
  opacity: 0.6;
}
.core-radar {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 210px;
  height: 210px;
  translate: -50% -50%;
  z-index: 1;
  pointer-events: none;
}
.core-radar i {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(67, 151, 207, 0.14);
  border-radius: 50%;
  animation: radarPing 5.5s ease-out infinite;
}
.core-radar i:nth-child(2) {
  animation-delay: 1.8s;
}
.core-radar i:nth-child(3) {
  animation-delay: 3.6s;
}
.core-node {
  position: absolute;
  left: 50%;
  top: 55%;
  translate: -50% -50%;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: #0a1d2d;
  border: 1px solid #2a6d99;
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.26),
    inset 0 0 30px rgba(45, 156, 231, 0.08);
  z-index: 5;
}
.core-node img {
  width: 48px;
}
.core-node strong {
  display: block;
  margin-top: 7px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}
.core-node small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 3px;
  color: #6e91aa;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}
.core-node small i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sc-green);
}
.core-activity {
  position: absolute;
  left: 50%;
  top: 74px;
  translate: -50% 0;
  display: flex;
  gap: 12px;
  color: #59778d;
  font-size: 0.64rem;
  z-index: 5;
}
.core-activity span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.core-activity i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3aaef3;
}
.core-activity span:nth-child(2) i {
  background: #9c72f0;
}
.core-activity span:nth-child(3) i {
  background: #589fe1;
}
.core-activity span:nth-child(4) i {
  background: #28c99c;
}
.orbit-card {
  position: absolute;
  width: 270px;
  min-height: 130px;
  padding: 16px 16px 13px;
  text-align: left;
  border: 1px solid var(--sc-border);
  border-radius: 11px;
  background: #0b1a28;
  color: var(--sc-text);
  z-index: 5;
  transition: 0.16s ease;
}
.orbit-card:hover {
  background: #102234;
  border-color: color-mix(in srgb, var(--accent) 55%, #25445b);
  transform: translateY(-2px);
}
.orbit-card.map {
  left: 20px;
  top: 105px;
  --accent: #39bdf8;
}
.orbit-card.threats {
  right: 20px;
  top: 105px;
  --accent: #9567f5;
}
.orbit-card.comply {
  left: 20px;
  bottom: 20px;
  --accent: #539ee7;
}
.orbit-card.iam {
  right: 20px;
  bottom: 20px;
  --accent: #2dc7a0;
}
.orbit-card h3 {
  margin: 0 0 3px;
  font-size: 0.92rem;
  font-weight: 720;
}
.orbit-card > p {
  margin: 0;
  color: #7892a6;
  font-size: 0.72rem;
}
.module-live {
  position: absolute;
  right: 13px;
  top: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6f8da2;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.module-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sc-green);
}
.module-metric {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 17px;
}
.module-metric strong {
  font-size: 1.42rem;
  line-height: 1;
  font-weight: 780;
}
.module-metric p {
  margin: 4px 0 0;
  color: #728b9f;
  font-size: 0.67rem;
}
.score {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--accent) calc(var(--score) * 1%), #20384b 0);
}
.score:after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #0b1a28;
}
.score b {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
}
.module-signal {
  display: flex;
  align-items: end;
  gap: 3px;
  position: absolute;
  left: 16px;
  bottom: 8px;
  opacity: 0.22;
}
.module-signal i {
  width: 3px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent);
  animation: signal 1.8s ease-in-out infinite;
}
.module-signal i:nth-child(2) {
  animation-delay: 0.15s;
}
.module-signal i:nth-child(3) {
  animation-delay: 0.3s;
}
.module-signal i:nth-child(4) {
  animation-delay: 0.45s;
}
.module-signal i:nth-child(5) {
  animation-delay: 0.6s;
}
.module-signal i:nth-child(6) {
  animation-delay: 0.75s;
}
.module-orbit[data-focus="map"] .path-map,
.module-orbit[data-focus="threats"] .path-threats,
.module-orbit[data-focus="comply"] .path-comply,
.module-orbit[data-focus="iam"] .path-iam {
  opacity: 1;
  stroke-width: 2.5;
}
.module-orbit[data-focus="map"] .orbit-card:not(.map),
.module-orbit[data-focus="threats"] .orbit-card:not(.threats),
.module-orbit[data-focus="comply"] .orbit-card:not(.comply),
.module-orbit[data-focus="iam"] .orbit-card:not(.iam) {
  opacity: 0.55;
}

/* Tables and filters */
.filters {
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--sc-border-soft);
  background: #0a1826;
}
.filters input {
  max-width: 360px;
}
.filters select {
  width: auto;
  min-width: 180px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.data-table th {
  padding: 12px 14px;
  background: #0a1724;
  border-bottom: 1px solid var(--sc-border);
  color: #7891a5;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #132b3e;
  color: #c6d4df;
  font-size: 0.82rem;
  vertical-align: middle;
}
.data-table tbody tr:hover {
  background: #0f2131;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table td small {
  font-size: 0.72rem !important;
  color: #71899d !important;
}
.name-cell {
  font-weight: 650;
  color: #eef5fa !important;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}
.pill.critical {
  color: #ffb0b8;
  background: #351921;
  border-color: #6f2d39;
}
.pill.high {
  color: #ffc59c;
  background: #342114;
  border-color: #70452a;
}
.pill.medium {
  color: #f5d982;
  background: #302713;
  border-color: #635328;
}
.pill.low {
  color: #80e7bd;
  background: #0d2a22;
  border-color: #286b54;
}

/* Client detail */
.client-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(285px, 0.72fr);
  gap: 14px;
  align-items: start;
}
.client-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
.client-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.client-logo {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  background: #d6e2ed;
  color: #af2639;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 850;
}
.client-name h2 {
  margin: 0;
  font-size: 1.08rem;
}
.client-name p {
  margin: 4px 0 0;
  color: #7b94a8;
  font-size: 0.76rem;
}
.module-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.module-status {
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--sc-border-soft);
  border-radius: 10px;
  background: #0a1927;
  transition: 0.15s ease;
}
.module-status.active {
  border-color: color-mix(in srgb, var(--module-color) 50%, #244256);
  background: #0c1d2c;
}
.module-status h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 720;
}
.module-status p {
  margin: 6px 0 18px;
  color: #718b9e;
  font-size: 0.69rem;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toggle-row span {
  font-size: 0.72rem !important;
}
.switch {
  width: 38px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #274156;
  position: relative;
  padding: 0;
}
.switch:after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8198aa;
  transition: 0.18s ease;
}
.switch.on {
  background: #0b5b4c;
}
.switch.on:after {
  left: 20px;
  background: #24d0a0;
}
.domain-list {
  display: grid;
  gap: 8px;
}
.domain-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #153048;
  border-radius: 9px;
  background: #0a1927;
}
.domain-row strong,
.domain-row small {
  display: block;
}
.domain-row strong {
  font-size: 0.82rem;
  color: #e8f0f6;
}
.domain-row small {
  margin-top: 3px;
  color: #70899c;
  font-size: 0.7rem;
}
.domain-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 8px;
  align-items: center;
}
.remove-domain {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #4b2d33;
  background: #29171c;
  color: #ffafb5;
}

/* Risk, alerts, content blocks */
.risk-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: conic-gradient(
    var(--sc-red) 0 14%,
    var(--sc-orange) 14% 38%,
    var(--sc-yellow) 38% 72%,
    var(--sc-green) 72% 100%
  );
  display: grid;
  place-items: center;
}
.donut:before {
  content: "";
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--sc-surface);
}
.donut-center {
  position: absolute;
  text-align: center;
}
.donut-center strong,
.donut-center span {
  display: block;
}
.donut-center strong {
  font-size: 1.4rem;
}
.donut-center span {
  color: #7890a4;
  font-size: 0.68rem;
}
.legend {
  display: grid;
  gap: 8px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9fb2c1;
  font-size: 0.76rem;
}
.legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.alert-list {
  display: grid;
}
.alert-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 10px 64px minmax(0, 1fr) auto 64px;
  gap: 9px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid #142a3d;
  font-size: 0.74rem;
}
.alert-row:last-child {
  border-bottom: 0;
}
.alert-row > b,
.alert-row strong {
  font-size: 0.7rem;
}
.sev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sev-critical {
  background: var(--sc-red);
}
.sev-high {
  background: var(--sc-orange);
}
.sev-medium {
  background: var(--sc-yellow);
}
.sev-low {
  background: var(--sc-green);
}

/* Ingestion */
.ingest-hero {
  padding: 20px;
  display: grid;
  gap: 20px;
  margin-bottom: 14px;
}
.ingest-copy {
  max-width: 820px;
}
.ingest-copy h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.4rem;
}
.ingest-copy > p:last-child {
  margin: 0;
  color: var(--sc-muted);
  font-size: 0.87rem;
  line-height: 1.6;
}
.pipeline-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border: 1px solid var(--sc-border-soft);
  border-radius: 10px;
  overflow: hidden;
}
.pipeline-strip div {
  min-height: 68px;
  padding: 11px;
  border-right: 1px solid var(--sc-border-soft);
  background: #0a1927;
}
.pipeline-strip div:last-child {
  border-right: 0;
}
.pipeline-strip span,
.pipeline-strip b {
  display: block;
}
.pipeline-strip span {
  color: #4eaef0;
  font-size: 0.64rem;
  font-weight: 800;
}
.pipeline-strip b {
  margin-top: 8px;
  color: #aabcca;
  font-size: 0.69rem;
  font-weight: 650;
}
.ingestion-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ingestion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.batch-card {
  padding: 13px;
  border: 1px solid #173047;
  border-radius: 9px;
  background: #0a1927;
}
.batch-card strong,
.batch-card span {
  display: block;
}
.batch-card strong {
  font-size: 1.2rem;
  color: #f1f6fa;
}
.batch-card span {
  margin-top: 4px;
  color: #7891a4;
  font-size: 0.7rem;
}
.capability-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.capability-chip {
  padding: 6px 9px;
  border-radius: 7px;
  border: 1px solid #29455a;
  background: #0a1927;
  color: #8ca5b8;
  font-size: 0.7rem;
}
.capability-chip.ok {
  border-color: #226249;
  color: #69dcb0;
  background: #0b2821;
}
.capability-chip.warn {
  border-color: #6d552b;
  color: #e5c36e;
  background: #29210f;
}
.parser-lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.parser-label {
  display: block;
  color: #68859b;
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  margin-bottom: 10px;
}
.parser-family-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.parser-family-list span {
  padding: 8px 10px;
  border-radius: 8px;
  background: #0a1927;
  border: 1px solid #173047;
  color: #d8e2ea;
  font-size: 0.75rem;
}
.parser-family-list i {
  font-style: normal;
  color: #6c8ba1;
  font-size: 0.64rem;
  margin-left: 8px;
}
.parser-count {
  font-size: 1.9rem;
}
.parser-lab-grid p {
  color: #7d95a7;
  font-size: 0.77rem;
}
.proposal-strip {
  display: flex;
  gap: 8px;
  padding: 0 18px 18px;
  overflow: auto;
}
.proposal-strip span {
  min-width: 190px;
  padding: 10px;
  border: 1px solid #173047;
  border-radius: 8px;
  background: #0a1927;
}
.proposal-strip b,
.proposal-strip small {
  display: block;
}
.proposal-strip b {
  font-size: 0.72rem;
}
.proposal-strip small {
  margin-top: 4px;
  color: #718a9c;
  font-size: 0.64rem;
}
.batch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}
.batch-card-rich {
  padding: 14px;
  border: 1px solid #173047;
  border-radius: 10px;
  background: #0a1927;
  cursor: pointer;
}
.batch-card-rich:hover {
  border-color: #2c5877;
  background: #0d2031;
}
.batch-card-head,
.batch-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.batch-card-head strong {
  font-size: 0.83rem;
}
.batch-card-rich > p {
  margin: 8px 0;
  color: #718a9e;
  font-size: 0.72rem;
}
.batch-card-foot {
  color: #7891a4;
  font-size: 0.68rem;
}
.progress {
  height: 7px;
  background: #162d40;
  border-radius: 999px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--sc-blue);
  border-radius: inherit;
}
.batch-detail-hero {
  padding: 20px;
  margin-bottom: 14px;
}
.batch-detail-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.batch-detail-title h2 {
  font-size: 1.35rem;
}
.batch-detail-title p {
  color: var(--sc-muted);
  font-size: 0.8rem;
}
.batch-progress-big {
  margin-top: 18px;
}
.batch-progress-big > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #91a7b7;
  font-size: 0.75rem;
}
.batch-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.batch-stats span {
  padding: 11px;
  border: 1px solid #173047;
  border-radius: 8px;
  background: #091a28;
}
.batch-stats small,
.batch-stats b {
  display: block;
}
.batch-stats small {
  color: #708a9e;
  font-size: 0.66rem;
}
.batch-stats b {
  margin-top: 5px;
  font-size: 0.92rem;
}
.detail-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stage-track {
  display: grid;
  gap: 8px;
}
.stage-track span {
  padding: 10px 12px;
  border-left: 3px solid #27495f;
  background: #0a1927;
  color: #8ba2b4;
  font-size: 0.74rem;
}
.stage-track span.active {
  border-left-color: var(--sc-blue);
  color: #dce8f0;
}
.stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.stat-list span {
  padding: 10px;
  border: 1px solid #173047;
  border-radius: 8px;
  background: #0a1927;
}
.stat-list small,
.stat-list b {
  display: block;
}
.stat-list small {
  color: #71899b;
  font-size: 0.66rem;
}
.stat-list b {
  margin-top: 5px;
  font-size: 0.86rem;
}
.family-bars {
  display: grid;
  gap: 10px;
}
.family-bar {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
  font-size: 0.72rem;
}
.family-bar > div {
  height: 7px;
  background: #163047;
  border-radius: 999px;
  overflow: hidden;
}
.family-bar i {
  display: block;
  height: 100%;
  background: var(--sc-purple);
}
.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.safety-grid div {
  padding: 12px;
  border: 1px solid #173047;
  border-radius: 8px;
  background: #0a1927;
}
.safety-grid strong,
.safety-grid span {
  display: block;
}
.safety-grid strong {
  font-size: 0.75rem;
}
.safety-grid span {
  margin-top: 4px;
  color: #7891a4;
  font-size: 0.68rem;
}
.error-sample {
  margin: 0 18px 18px;
  padding: 12px;
  border: 1px solid #5a392c;
  border-radius: 8px;
  background: #241812;
}
.error-sample strong,
.error-sample span {
  display: block;
}
.error-sample strong {
  font-size: 0.76rem;
  color: #efbd9a;
}
.error-sample span {
  margin-top: 5px;
  color: #bb9982;
  font-size: 0.67rem;
}

/* Modal / forms */
.sc-dialog[open] {
  display: block;
}
.sc-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  margin: auto;
}
.sc-dialog::backdrop {
  background: rgba(2, 8, 14, 0.72);
  backdrop-filter: blur(3px);
}
.modal-card {
  width: min(680px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--sc-border);
  border-radius: 14px;
  background: #0d1b2a;
  color: var(--sc-text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}
.modal-card-wide {
  width: min(820px, calc(100vw - 32px));
}
.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sc-border-soft);
  margin-bottom: 16px;
}
.modal-head h2 {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
}
.close-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  background: #0a1826;
  color: #9eb1c0;
  font-size: 1.2rem;
}
.form-grid {
  display: grid;
  gap: 12px;
}
.form-grid.two {
  grid-template-columns: 1fr 1fr;
}
.modal-card fieldset {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--sc-border-soft);
  border-radius: 10px;
}
.modal-card legend {
  float: none;
  width: auto;
  padding: 0 5px;
  color: #d9e4ec;
  font-size: 0.81rem;
  font-weight: 700;
}
.field-note {
  color: #758ea1;
  font-size: 0.72rem;
}
.module-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.module-picks label {
  display: flex;
  align-items: start;
  gap: 9px;
  padding: 10px;
  border: 1px solid #173047;
  border-radius: 8px;
  background: #0a1927;
}
.module-picks input {
  width: auto;
  margin-top: 3px;
}
.module-picks span,
.module-picks small {
  display: block;
}
.module-picks span {
  font-size: 0.77rem;
}
.module-picks small {
  color: #718a9d;
  font-size: 0.66rem;
  margin-top: 2px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.safety-note {
  padding: 11px 12px;
  border: 1px solid #24583f;
  border-radius: 8px;
  background: #0c261e;
  color: #9dd8bd;
  font-size: 0.75rem;
  margin-bottom: 15px;
}
.dropzone {
  margin-top: 14px;
  min-height: 180px;
  border: 1px dashed #33627f !important;
  border-radius: 11px;
  background: #091a28 !important;
  display: grid !important;
  place-items: center;
  text-align: center;
  padding: 24px !important;
  cursor: pointer;
}
.dropzone input {
  display: none;
}
.dropzone .drop-icon {
  font-size: 1.7rem;
  color: #57b8f2;
}
.dropzone strong {
  font-size: 0.9rem;
}
.dropzone small,
.dropzone em {
  color: #7891a4;
  font-size: 0.69rem;
  font-style: normal;
}
.dropzone.dragging {
  border-color: #52bdf8 !important;
  background: #0d2537 !important;
}
.selected-files {
  margin-top: 10px;
  color: #7891a4;
  font-size: 0.72rem;
}
.upload-meter {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #173047;
  border-radius: 9px;
  background: #091927;
}
.upload-meter > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 8px;
}
.upload-meter small {
  display: block;
  margin-top: 7px;
  color: #718a9d;
  font-size: 0.68rem;
}

/* Empty states, toasts */
.empty-state {
  min-height: 230px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
}
.empty-state > div {
  max-width: 520px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: #0e2638;
  border: 1px solid #24516e;
  color: #64bdf2;
  font-size: 1.25rem;
}
.empty-state h2 {
  margin: 0;
  font-size: 1.05rem;
}
.empty-state p {
  margin: 7px 0 0;
  color: #7891a4;
  font-size: 0.82rem;
  line-height: 1.55;
}
.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: 8px;
}
.toast {
  width: min(340px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid #25506d;
  border-radius: 10px;
  background: #0c2030;
  color: #e9f2f8;
  box-shadow: var(--sc-shadow);
}
.toast strong,
.toast span {
  display: block;
}
.toast strong {
  font-size: 0.8rem;
}
.toast span {
  margin-top: 3px;
  color: #88a4b7;
  font-size: 0.71rem;
}
.toast.error {
  border-color: #68323d;
  background: #27171d;
}
.toast.error strong {
  color: #ffb5bc;
}

/* Motion: restrained and meaningful */
.kpi-card,
.panel,
.orbit-card {
  animation: fadeLift 0.28s ease both;
}
.status-dot,
.module-live i {
  animation: statusPulse 2.6s ease-in-out infinite;
}
.mini-chart svg polyline:last-child {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: chartDraw 1.15s ease forwards;
}
@keyframes flowDash {
  to {
    stroke-dashoffset: -42;
  }
}
@keyframes radarPing {
  0% {
    inset: 50%;
    opacity: 0.36;
  }
  85%,
  100% {
    inset: -8%;
    opacity: 0;
  }
}
@keyframes signal {
  0%,
  100% {
    height: 3px;
    opacity: 0.3;
  }
  50% {
    height: 8px;
    opacity: 0.9;
  }
}
@keyframes statusPulse {
  0%,
  100% {
    opacity: 0.68;
  }
  50% {
    opacity: 1;
  }
}
@keyframes chartDraw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fadeLift {
  from {
    opacity: 0.72;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1480px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .client-layout {
    grid-template-columns: 1fr;
  }
  .module-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1180px) {
  :root {
    --sc-sidebar-width: 220px;
  }
  .top-status > span:last-child {
    display: none;
  }
  .user-copy,
  .session-badge {
    display: none;
  }
  .orbit-card {
    width: 235px;
  }
  .pipeline-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .pipeline-strip div:nth-child(4) {
    border-right: 0;
  }
  .ingestion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
  }
  .side-brand {
    height: 64px;
  }
  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-caption {
    grid-column: 1/-1;
  }
  .sidebar-foot {
    display: none;
  }
  .main-column {
    grid-template-rows: auto auto auto;
  }
  .topbar {
    position: sticky;
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 14px;
  }
  .global-search {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }
  .workspace {
    padding: 18px 14px 28px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .kpi-grid,
  .ingestion-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .module-orbit {
    min-height: 760px;
  }
  .core-links,
  .core-radar,
  .core-activity {
    display: none;
  }
  .core-node {
    top: 50%;
  }
  .orbit-card {
    position: absolute;
    width: calc(50% - 30px);
  }
  .orbit-card.map {
    left: 18px;
    top: 100px;
  }
  .orbit-card.threats {
    right: 18px;
    top: 100px;
  }
  .orbit-card.comply {
    left: 18px;
    bottom: 24px;
  }
  .orbit-card.iam {
    right: 18px;
    bottom: 24px;
  }
  .detail-two-col,
  .parser-lab-grid {
    grid-template-columns: 1fr;
  }
  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  html {
    font-size: 15px;
  }
  .side-nav {
    grid-template-columns: 1fr;
  }
  .top-status {
    display: none;
  }
  .page-head h1 {
    font-size: 1.55rem;
  }
  .kpi-grid,
  .ingestion-kpis {
    grid-template-columns: 1fr;
  }
  .module-status-grid {
    grid-template-columns: 1fr;
  }
  .module-orbit {
    min-height: auto;
    padding: 78px 14px 16px;
    display: grid;
    gap: 10px;
  }
  .orbit-title {
    left: 14px;
    right: 14px;
  }
  .orbit-title > span {
    display: none;
  }
  .core-node {
    position: relative;
    left: auto;
    top: auto;
    translate: none;
    margin: 0 auto 10px;
    order: 1;
  }
  .orbit-card {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    order: 2;
  }
  .pipeline-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline-strip div:nth-child(even) {
    border-right: 0;
  }
  .form-grid.two,
  .module-picks,
  .domain-form-row {
    grid-template-columns: 1fr;
  }
  .domain-row {
    grid-template-columns: 1fr auto;
  }
  .domain-row .small-btn {
    grid-column: 1/-1;
  }
  .batch-grid,
  .batch-stats,
  .stat-list,
  .safety-grid {
    grid-template-columns: 1fr;
  }
  .risk-grid {
    grid-template-columns: 1fr;
  }
  .donut {
    margin: auto;
  }
  .app-footer {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .data-packet {
    display: none;
  }
}

/* Phase 4 — Bootstrap client detail cards */
.client-detail-bootstrap {
  --bs-card-bg: #0c1a28;
  --bs-card-border-color: #1b3448;
  --bs-body-color: var(--sc-text);
  font-size: 0.95rem;
}
.client-detail-bootstrap .min-w-0 {
  min-width: 0;
}
.sc-bs-card {
  background: linear-gradient(180deg, #0d1d2c 0%, #0b1926 100%);
  border: 1px solid #1d384d;
  border-radius: 14px;
  color: var(--sc-text);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.sc-bs-card:hover {
  border-color: #294b63;
}
.sc-card-header {
  padding: 1rem 1.25rem;
  background: #0e2030;
  border-bottom: 1px solid #1c384d;
  color: var(--sc-text);
}
.sc-card-header h3 {
  font-size: 1rem;
  font-weight: 750;
  color: #f2f7fb;
  letter-spacing: -0.01em;
}
.sc-card-header p {
  font-size: 0.8rem;
  color: #94aabd;
  line-height: 1.45;
}
.sc-card-header-icon {
  font-size: 1.15rem;
  color: #5eaee3;
}
.client-profile-card {
  background: linear-gradient(135deg, #0e2233 0%, #0c1b29 58%, #0b1722 100%);
}
.client-logo-lg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 1.55rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.client-detail-name {
  font-size: 1.55rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  color: #f6f9fc;
}
.client-detail-meta {
  font-size: 0.88rem;
  color: #9bb0c1;
}
.sc-status-badge {
  padding: 0.45rem 0.65rem;
  color: #55d9a8 !important;
  background: #0c3328 !important;
  border: 1px solid #1f624c;
}
.sc-status-badge i {
  font-size: 0.42rem;
  margin-right: 0.25rem;
  vertical-align: middle;
}
.sc-contract-badge,
.sc-neutral-badge {
  padding: 0.48rem 0.65rem;
  background: #102638;
  color: #a8bfd0;
  border: 1px solid #28465b;
  font-weight: 650;
}
.sc-module-card {
  position: relative;
  background: #0a1926;
  border: 1px solid #1b3447;
  border-radius: 12px;
  color: var(--sc-text);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
  overflow: hidden;
}
.sc-module-card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--module-color);
  opacity: 0.3;
}
.sc-module-card.is-active {
  background: #0d2030;
  border-color: color-mix(in srgb, var(--module-color) 45%, #244357);
}
.sc-module-card.is-active:before {
  opacity: 1;
}
.sc-module-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--module-color) 55%, #2b4b60);
}
.sc-module-card .card-body {
  display: flex;
  flex-direction: column;
  min-height: 182px;
}
.sc-module-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--module-color) 12%, #0a1926);
  border: 1px solid color-mix(in srgb, var(--module-color) 35%, #173047);
  color: var(--module-color);
  font-size: 1rem;
}
.sc-module-card .card-title {
  font-size: 0.95rem;
  font-weight: 750;
  color: #eef5fa;
  margin: 0 0 0.35rem;
}
.sc-module-card .card-text {
  font-size: 0.78rem;
  color: #8ea5b6;
  line-height: 1.45;
  margin-bottom: 1rem;
  min-height: 2.25rem;
}
.sc-inactive-badge {
  background: #15293a;
  color: #839aab;
  border: 1px solid #294457;
}
.sc-module-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto !important;
}
.sc-module-switch .form-check-input {
  width: 2.35rem;
  height: 1.25rem;
  margin: 0;
  background-color: #273f52;
  border-color: #38556a;
  cursor: pointer;
}
.sc-module-switch .form-check-input:checked {
  background-color: #198b6d;
  border-color: #26b98e;
}
.sc-module-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(48, 168, 255, 0.12);
}
.sc-module-switch .form-check-label {
  font-size: 0.72rem;
  color: #91a7b7;
}
.sc-domain-list {
  background: transparent;
}
.sc-domain-list .list-group-item {
  background: transparent;
  border-color: #193448;
  color: var(--sc-text);
}
.sc-domain-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}
.sc-domain-item:hover {
  background: #0e2130 !important;
}
.sc-domain-item strong {
  font-size: 0.9rem;
  color: #eef5fa;
}
.sc-domain-item small {
  font-size: 0.75rem;
  color: #839bae;
}
.sc-domain-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #10283a;
  border: 1px solid #26465d;
  color: #64b6ea;
  flex: 0 0 auto;
}
.sc-empty-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  color: #8da4b6;
}
.sc-empty-inline > i {
  font-size: 1.35rem;
  color: #5aafdf;
}
.sc-empty-inline strong,
.sc-empty-inline span {
  display: block;
}
.sc-empty-inline strong {
  color: #dce8f0;
  font-size: 0.88rem;
}
.sc-empty-inline span {
  margin-top: 0.15rem;
  font-size: 0.75rem;
}
.sc-client-table {
  --bs-table-bg: transparent;
  --bs-table-color: #cbd8e1;
  --bs-table-border-color: #193448;
  --bs-table-hover-bg: #0e2231;
  --bs-table-hover-color: #f4f8fb;
  color: #cbd8e1;
}
.sc-client-table thead th {
  padding: 0.8rem 1rem;
  background: #0b1b29;
  color: #7f98aa;
  border-bottom: 1px solid #1d3b51;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 750;
  white-space: nowrap;
}
.sc-client-table tbody td {
  padding: 0.9rem 1rem;
  border-color: #173246;
  font-size: 0.82rem;
}
.sc-table-subtext {
  margin-top: 0.2rem;
  color: #6e899d;
  font-size: 0.68rem;
}
.sc-family-badge {
  background: #17283a;
  color: #b4c5d1;
  border: 1px solid #304a5e;
  font-weight: 650;
}
.sc-table-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 1.5rem;
  text-align: center;
  color: #849bad;
}
.sc-table-empty i {
  font-size: 1.55rem;
  color: #42bf91;
  margin-bottom: 0.6rem;
}
.sc-table-empty strong {
  font-size: 0.9rem;
  color: #dbe7ef;
}
.sc-table-empty span {
  max-width: 520px;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  line-height: 1.45;
}
.sc-mini-stat-card {
  background: #0a1926;
  border: 1px solid #1b3447;
  border-radius: 11px;
  color: var(--sc-text);
}
.sc-mini-stat-card .card-body {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
  padding: 1rem;
}
.sc-mini-stat-icon {
  grid-row: 1/3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 0.95rem;
}
.sc-mini-stat-icon.tone-danger {
  background: #2a171d;
  color: #ff7580;
  border: 1px solid #58313a;
}
.sc-mini-stat-icon.tone-warning {
  background: #2a2214;
  color: #e8bd62;
  border: 1px solid #5d4b28;
}
.sc-mini-stat-icon.tone-info {
  background: #102838;
  color: #5eb7eb;
  border: 1px solid #28506a;
}
.sc-mini-stat-card strong {
  font-size: 1.2rem;
  line-height: 1.05;
  color: #f4f8fb;
}
.sc-mini-stat-card small {
  font-size: 0.7rem;
  color: #7f98aa;
  margin-top: 0.2rem;
}
.sc-score-label {
  display: block;
  color: #8098aa;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sc-score-value {
  font-size: 2.15rem;
  font-weight: 780;
  line-height: 1.1;
  color: #f4f8fb;
  letter-spacing: -0.04em;
}
.sc-score-value small {
  font-size: 0.8rem;
  color: #6f8a9d;
  letter-spacing: 0;
}
.sc-posture-badge {
  padding: 0.45rem 0.6rem;
  font-weight: 700;
}
.sc-progress {
  height: 8px;
  background: #142b3d;
  border-radius: 999px;
}
.sc-progress .progress-bar {
  background: linear-gradient(90deg, #2fa7ed, #34c996);
  border-radius: inherit;
}
.sc-posture-list .list-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  background: transparent;
  border-color: #193448;
  color: #9eb2c1;
}
.sc-posture-list .list-group-item:first-child {
  padding-top: 0;
}
.sc-posture-list .list-group-item:last-child {
  padding-bottom: 0;
}
.sc-posture-list span {
  font-size: 0.78rem;
}
.sc-posture-list span i {
  width: 1.25rem;
  color: #63b4e6;
  margin-right: 0.3rem;
}
.sc-posture-list strong {
  font-size: 0.8rem;
  color: #e4edf3;
}
.sc-notes-body {
  color: #9aafbf;
  font-size: 0.82rem;
  line-height: 1.65;
  min-height: 96px;
}
.client-detail-bootstrap .btn-sm {
  --bs-btn-padding-y: 0.42rem;
  --bs-btn-padding-x: 0.7rem;
  --bs-btn-font-size: 0.75rem;
  --bs-btn-border-radius: 0.45rem;
}
.client-detail-bootstrap .btn-outline-info {
  --bs-btn-color: #67bdf0;
  --bs-btn-border-color: #2d688a;
  --bs-btn-hover-bg: #173a50;
  --bs-btn-hover-border-color: #4c9bc8;
  --bs-btn-hover-color: #e8f5fd;
}
.client-detail-bootstrap .btn-outline-light {
  --bs-btn-color: #b8c9d5;
  --bs-btn-border-color: #3a566a;
  --bs-btn-hover-bg: #193044;
  --bs-btn-hover-border-color: #567487;
}
.client-detail-bootstrap .text-bg-success-subtle {
  color: #58dca9 !important;
  background: #0e3329 !important;
  border: 1px solid #205d49;
}
.client-detail-bootstrap .text-bg-warning-subtle {
  color: #e7c16f !important;
  background: #2b2312 !important;
  border: 1px solid #66522b;
}
.client-detail-bootstrap .text-bg-danger-subtle {
  color: #ff8d96 !important;
  background: #2b171d !important;
  border: 1px solid #65333d;
}
.client-detail-bootstrap .text-bg-secondary {
  color: #9badba !important;
  background: #1b2c39 !important;
  border: 1px solid #344b5c;
}
@media (max-width: 767px) {
  .client-detail-name {
    font-size: 1.3rem;
  }
  .client-logo-lg {
    width: 54px;
    height: 54px;
  }
  .sc-domain-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .sc-domain-item > div:last-child {
    width: 100%;
    justify-content: space-between;
  }
  .sc-module-card .card-body {
    min-height: auto;
  }
  .sc-client-table {
    min-width: 760px;
  }
}

/* Phase 4.5: acciones de cliente separadas */
.client-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
}
.client-actions .btn {
  border-radius: 8px !important;
  min-width: 40px;
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  box-shadow: none !important;
}
.client-actions .btn-info {
  min-width: 96px;
}
.client-actions .btn:hover {
  transform: translateY(-1px);
}
@media (max-width: 1180px) {
  .client-actions {
    gap: 0.4rem;
  }
  .client-actions .btn-info {
    min-width: 42px;
  }
  .client-actions .btn-info .d-xl-inline {
    display: none !important;
  }
}

/* Phase 4.6 — ingestion diagnostics + password-gated archives */
.optional-label {
  margin-left: 0.35rem;
  color: #6f8da2;
  font-size: 0.72rem;
  font-weight: 600;
}
.password-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.password-input-wrap input {
  width: 100%;
}
.password-visibility {
  height: 40px;
  border: 1px solid #29485f;
  border-radius: 8px;
  background: #0d2030;
  color: #9eb4c5;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.password-visibility:hover {
  background: #132b3d;
  color: #e6f1f8;
  border-color: #3d6f8f;
}
.password-recovery-panel {
  margin-top: 12px;
  border-color: #6b5628;
  background: linear-gradient(180deg, #17170f 0%, #101923 100%);
}
.password-recovery-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.password-recovery-form label {
  display: block;
  margin-bottom: 4px;
  color: #d9e4ec;
  font-size: 0.82rem;
  font-weight: 700;
}
.password-recovery-form small {
  display: block;
  margin-top: 7px;
  color: #869cab;
  font-size: 0.72rem;
}
.password-recovery-form .form-message {
  grid-column: 1/-1;
  margin: 0;
  color: #e4bf68;
}
.ingestion-console-panel {
  margin-top: 12px;
  overflow: hidden;
}
.ingestion-console-panel .panel-head {
  background: #08131d;
}
.terminal-live-dot {
  color: #4bd5a3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.ingestion-console {
  margin: 0;
  padding: 18px 20px;
  min-height: 190px;
  max-height: 360px;
  overflow: auto;
  background: #050b11;
  color: #a9c9dc;
  border-top: 1px solid #183246;
  font:
    500 0.78rem/1.65 "Cascadia Code",
    "SFMono-Regular",
    Consolas,
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.ingestion-console::selection {
  background: #28506a;
  color: #fff;
}
@media (max-width: 760px) {
  .password-recovery-form {
    grid-template-columns: 1fr;
  }
  .password-recovery-form .btn {
    width: 100%;
  }
  .password-input-wrap {
    grid-template-columns: minmax(0, 1fr) 40px;
  }
}

/* Phase 5 · ingestion history, card actions and structural explorer */
.ingestion-history-head {
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.ingestion-view-tabs {
  display: flex;
  gap: 0.45rem;
  padding: 0.3rem;
  border: 1px solid #1e3a52;
  border-radius: 12px;
  background: #071521;
}
.ingestion-view-tabs button {
  border: 0;
  background: transparent;
  color: #91a9bd;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}
.ingestion-view-tabs button:hover,
.ingestion-view-tabs button.active {
  background: #15324a;
  color: #f4f8fc;
}
.ingestion-view-tabs span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 0.3rem;
  padding: 0 0.3rem;
  border-radius: 10px;
  background: #0b2031;
  color: #80cfff;
  font-size: 0.72rem;
}
.batch-card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}
.batch-more {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #27465f;
  border-radius: 9px;
  background: #0a1a28;
  color: #a8bed0;
  cursor: pointer;
}
.batch-more:hover {
  background: #15324a;
  color: #fff;
}
.batch-menu {
  display: none;
  position: absolute;
  z-index: 30;
  right: 0;
  top: 42px;
  min-width: 205px;
  padding: 0.4rem;
  border: 1px solid #29465e;
  border-radius: 11px;
  background: #0a1724;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}
.batch-menu.open {
  display: grid;
}
.batch-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: #c9d7e3;
  text-align: left;
  padding: 0.62rem 0.7rem;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
}
.batch-menu button:hover {
  background: #132b40;
  color: #fff;
}
.batch-menu i {
  width: 17px;
  color: #66c6ff;
}
.inventory-explorer-panel .panel-body {
  padding: 0;
}
.inventory-tree {
  max-height: 420px;
  overflow: auto;
}
.inventory-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 1rem;
  border-top: 1px solid #142b3d;
  color: #dce8f2;
}
.inventory-row:first-child {
  border-top: 0;
}
.inventory-row > i {
  color: #62c7ff;
}
.inventory-row.kind-password > i {
  color: #b486ff;
}
.inventory-row.kind-info > i {
  color: #35d6aa;
}
.inventory-row.kind-archive > i {
  color: #ffb75f;
}
.inventory-row div {
  min-width: 0;
}
.inventory-row b {
  display: block;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inventory-row small {
  display: block;
  color: #6f8aa0;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.12rem;
}
.inventory-row > span {
  color: #7892a8;
  font-size: 0.74rem;
}
.inventory-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  text-align: center;
  color: #7691a8;
}
.inventory-empty i {
  font-size: 1.8rem;
  color: #39b8ff;
}
.inventory-empty strong {
  color: #dce8f2;
}
@media (max-width: 800px) {
  .ingestion-view-tabs {
    width: 100%;
    overflow: auto;
  }
  .batch-menu {
    right: auto;
    left: 0;
  }
  .inventory-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }
  .inventory-row > span {
    display: none;
  }
}

/* Phase 5.2 · horizontal pipeline timeline + smoother live refresh */
.ingestion-timeline-panel {
  margin-top: 12px;
  overflow: hidden;
}
.timeline-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.timeline-status.is-live {
  background: rgba(49, 184, 255, 0.12);
  color: #7dd8ff;
  border: 1px solid rgba(49, 184, 255, 0.28);
}
.timeline-status.is-done {
  background: rgba(34, 201, 151, 0.12);
  color: #89efca;
  border: 1px solid rgba(34, 201, 151, 0.28);
}
.timeline-status.is-failed {
  background: rgba(255, 92, 112, 0.12);
  color: #ffb6c2;
  border: 1px solid rgba(255, 92, 112, 0.28);
}
.timeline-progress-shell {
  padding: 18px 20px 22px;
  background: linear-gradient(180deg, #07131d 0%, #091724 100%);
}
.timeline-progress-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #102638;
  border: 1px solid #1a3a52;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.timeline-progress-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #31b8ff 0%, #24d0df 50%, #22c997 100%);
  box-shadow: 0 0 18px rgba(49, 184, 255, 0.25);
  transition: width 0.45s ease;
}
.timeline-stages {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 16px;
  align-items: start;
}
.timeline-stage {
  position: relative;
  min-width: 0;
  padding-top: 18px;
}
.timeline-stage::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 20px;
  width: 2px;
  height: 22px;
  background: #1f455f;
}
.timeline-stage-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0b1b28;
  border: 2px solid #36566d;
  box-shadow: 0 0 0 4px #091724;
  position: relative;
  z-index: 2;
  transition: all 0.25s ease;
}
.timeline-stage-marker span {
  font-size: 0.78rem;
  font-weight: 900;
  color: #8ea6b9;
}
.timeline-stage-copy {
  margin-top: 10px;
  min-width: 0;
}
.timeline-stage-copy strong,
.timeline-stage-copy small {
  display: block;
}
.timeline-stage-copy strong {
  font-size: 0.8rem;
  color: #bfd0dc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-stage-copy small {
  margin-top: 5px;
  color: #6c879c;
  font-size: 0.66rem;
  line-height: 1.4;
  max-width: 155px;
}
.timeline-stage.done .timeline-stage-marker {
  background: #0d392f;
  border-color: #22c997;
  box-shadow:
    0 0 0 4px #091724,
    0 0 16px rgba(34, 201, 151, 0.18);
}
.timeline-stage.done .timeline-stage-marker span {
  color: #96f2d4;
}
.timeline-stage.done .timeline-stage-copy strong {
  color: #daf7ec;
}
.timeline-stage.active .timeline-stage-marker {
  background: #0d3550;
  border-color: #31b8ff;
  box-shadow:
    0 0 0 4px #091724,
    0 0 18px rgba(49, 184, 255, 0.28);
}
.timeline-stage.active .timeline-stage-marker span {
  color: #effbff;
}
.timeline-stage.active .timeline-stage-copy strong {
  color: #f5fbff;
}
.timeline-stage.failed .timeline-stage-marker {
  background: #4a1a22;
  border-color: #ff5c70;
  box-shadow:
    0 0 0 4px #091724,
    0 0 16px rgba(255, 92, 112, 0.16);
}
.timeline-stage.failed .timeline-stage-marker span {
  color: #ffd6dc;
}
.timeline-stage.failed .timeline-stage-copy strong {
  color: #ffc4cd;
}
@media (max-width: 1180px) {
  .timeline-progress-shell {
    overflow-x: auto;
  }
  .timeline-stages {
    min-width: 900px;
  }
}
@media (max-width: 720px) {
  .timeline-progress-shell {
    padding: 16px;
  }
  .timeline-stages {
    min-width: 860px;
  }
}
.processing-observations {
  margin-top: 12px;
  overflow: hidden;
}
.observation-list {
  display: grid;
  gap: 8px;
  padding: 14px 18px 18px;
}
.observation-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid #3e3421;
  border-radius: 10px;
  background: #17150f;
}
.observation-index {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #3b2d0f;
  color: #ffd873;
  font-size: 0.68rem;
  font-weight: 800;
}
.observation-item strong {
  display: block;
  color: #f3d38a;
  font-size: 0.73rem;
}
.observation-item p {
  margin: 4px 0 0;
  color: #b7a684;
  font:
    500 0.69rem/1.45 "Cascadia Code",
    "SFMono-Regular",
    Consolas,
    monospace;
  white-space: normal;
  overflow-wrap: anywhere;
}
.observation-more {
  padding: 9px 12px;
  border-radius: 9px;
  background: #0b1b29;
  color: #7f9bb0;
  font-size: 0.7rem;
  text-align: center;
}
@media (max-width: 1180px) {
  .ingestion-timeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 18px;
  }
  .timeline-step:nth-child(3)::after {
    display: none;
  }
}
@media (max-width: 720px) {
  .ingestion-timeline {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .timeline-step {
    padding: 0 0 18px;
  }
  .timeline-step:not(:last-child)::after {
    top: 32px;
    bottom: 0;
    left: 15px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline-copy small {
    max-width: none;
  }
}

/* Phase 6.0 — React dashboard + focused ingestion UX */
.app-shell,
.sidebar,
.side-brand,
.side-nav a,
.sidebar-foot,
.main-column {
  transition:
    grid-template-columns 0.2s ease,
    width 0.2s ease,
    padding 0.2s ease,
    gap 0.2s ease;
}
.sidebar-toggle {
  flex: 0 0 auto;
}
.app-shell.sidebar-collapsed {
  --sc-sidebar-width: 78px;
}
.app-shell.sidebar-collapsed .side-brand {
  justify-content: center;
  padding: 0 10px;
}
.app-shell.sidebar-collapsed .side-brand > div,
.app-shell.sidebar-collapsed .side-nav a > span:not(.nav-icon),
.app-shell.sidebar-collapsed .nav-caption,
.app-shell.sidebar-collapsed .sidebar-version,
.app-shell.sidebar-collapsed .sidebar-logout-label {
  display: none;
}
.app-shell.sidebar-collapsed .side-nav {
  padding: 18px 10px;
  align-items: stretch;
}
.app-shell.sidebar-collapsed .side-nav a {
  justify-content: center;
  padding: 0;
  gap: 0;
}
.app-shell.sidebar-collapsed .side-nav a.active:before {
  left: -10px;
}
.app-shell.sidebar-collapsed .nav-icon {
  width: auto;
  font-size: 1.08rem;
}
.app-shell.sidebar-collapsed .nav-count {
  position: absolute;
  right: 3px;
  top: 2px;
  min-width: 17px;
  height: 17px;
  font-size: 0.58rem;
  padding: 0 4px;
}
.app-shell.sidebar-collapsed .sidebar-foot {
  padding: 14px 10px;
}
.app-shell.sidebar-collapsed .sidebar-logout {
  display: grid;
  place-items: center;
  padding: 0;
  text-align: center;
}
.app-shell.sidebar-collapsed .sidebar-logout > span:first-child {
  margin: 0;
}

.date-field {
  position: relative;
  display: flex;
  align-items: center;
}
.date-field > i {
  position: absolute;
  left: 12px;
  z-index: 2;
  color: #6dbbe9;
  pointer-events: none;
}
.date-field input[type="date"] {
  padding-left: 38px;
  padding-right: 42px;
  min-height: 44px;
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(180deg, #0b1c2a, #091724);
  border-color: #25465f;
  letter-spacing: 0.01em;
}
.date-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.date-picker-button {
  position: absolute;
  right: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  border-left: 1px solid #244359;
  background: transparent;
  color: #789cb4;
  display: grid;
  place-items: center;
  border-radius: 0 7px 7px 0;
  z-index: 3;
}
.date-picker-button:hover {
  color: #d9edf9;
  background: #0d2638;
}

.dropzone {
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.dropzone > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dropzone-empty,
.dropzone-selected {
  width: 100%;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.dropzone.has-file {
  border-style: solid !important;
  border-color: #2a6a76 !important;
  background: linear-gradient(180deg, #0b2130, #091b28) !important;
}
.dropzone.has-file:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #27c79b;
}
.selected-file-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #0c302b;
  border: 1px solid #245f53;
  color: #63dfbb;
  font-size: 1.25rem;
}
.dropzone-selected strong {
  max-width: 88%;
  font-size: 0.94rem;
  color: #eef7fa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropzone-selected small {
  color: #88a8b9;
  font-size: 0.74rem;
}
.dropzone-selected em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6ec9a9 !important;
  font-size: 0.7rem !important;
}
.dropzone-selected em i {
  font-size: 0.78rem;
}
.upload-meter {
  position: relative;
  overflow: hidden;
}
.upload-meter:not(.is-hidden) {
  animation: fadeLift 0.18s ease both;
}

/* React dashboard */

.sc6-dashboard {
  display: grid;
  gap: 12px;
}
.sc6-page-head {
  margin-bottom: 0;
}
.sc6-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sc6-live-badge,
.sc6-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #24516b;
  border-radius: 999px;
  background: #0a1d2b;
  color: #91c9e9;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.sc6-live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25c995;
  box-shadow: 0 0 0 4px rgba(37, 201, 149, 0.08);
}
.sc6-demo-badge {
  border-color: #6d582c;
  background: #241d0d;
  color: #e9c66b;
}
.sc6-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sc6-summary-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 15px 16px;
  border: 1px solid #1b374c;
  border-radius: 13px;
  background: linear-gradient(180deg, #0d1d2b, #0a1825);
  overflow: hidden;
}
.sc6-summary-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sc6-tone, #4eb4ef);
}
.sc6-summary-card.tone-red {
  --sc6-tone: #ef6573;
}
.sc6-summary-card.tone-orange {
  --sc6-tone: #e99a52;
}
.sc6-summary-card.tone-green {
  --sc6-tone: #2fc59b;
}
.sc6-summary-card.tone-blue {
  --sc6-tone: #4aa9e9;
}
.sc6-summary-icon {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #10273a;
  border: 1px solid #244963;
  color: var(--sc6-tone);
  font-size: 1rem;
}
.sc6-summary-card small,
.sc6-summary-card strong,
.sc6-summary-card span {
  display: block;
}
.sc6-summary-card small {
  color: #86a0b2;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 750;
}
.sc6-summary-card strong {
  margin-top: 3px;
  color: #f4f8fb;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.sc6-summary-card div > span {
  margin-top: 5px;
  color: #657f92;
  font-size: 0.67rem;
}

.sc6-intelligence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 12px;
  align-items: start;
}
.sc6-world-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #0c1b29, #081521);
}
.sc6-world-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 0;
}
.sc6-world-head h2 {
  margin: 4px 0 5px;
  font-size: 1.02rem;
  color: #edf5fa;
}
.sc6-world-head > div > span {
  color: #7892a5;
  font-size: 0.73rem;
  line-height: 1.5;
}
.sc6-map-filters {
  display: flex;
  gap: 5px;
  padding: 0 18px;
  overflow: auto;
}
.sc6-map-filters button {
  border: 1px solid #1d3d54;
  background: #0a1a27;
  color: #7895aa;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.67rem;
  font-weight: 720;
  white-space: nowrap;
}
.sc6-map-filters button:hover,
.sc6-map-filters button.active {
  background: #102b3f;
  border-color: #2d5f7f;
  color: #d9edf8;
}
.sc6-map-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px;
}
.sc6-map-kpis span {
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1a3850;
  background: #0a1824;
  overflow: hidden;
}
.sc6-map-kpis span:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--chip-tone, #4fb5ea);
}
.sc6-map-kpis .tone-blue {
  --chip-tone: #4eb4ef;
}
.sc6-map-kpis .tone-red {
  --chip-tone: #ef6573;
}
.sc6-map-kpis .tone-amber {
  --chip-tone: #e8a758;
}
.sc6-map-kpis .tone-violet {
  --chip-tone: #a17fff;
}
.sc6-map-kpis small,
.sc6-map-kpis b {
  display: block;
}
.sc6-map-kpis small {
  color: #708ba0;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sc6-map-kpis b {
  margin-top: 4px;
  color: #eff7fb;
  font-size: 1.12rem;
  line-height: 1;
}
.sc6-map-description {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin: 0 18px;
  border: 1px solid #1a3850;
  border-radius: 12px;
  background: linear-gradient(180deg, #0a1823, #081420);
}
.sc6-map-description i {
  color: #62baeb;
  font-size: 1rem;
  line-height: 1;
}
.sc6-map-description strong,
.sc6-map-description span {
  display: block;
}
.sc6-map-description strong {
  color: #e8f3f9;
  font-size: 0.8rem;
}
.sc6-map-description span {
  margin-top: 4px;
  color: #718c9f;
  font-size: 0.67rem;
  line-height: 1.45;
}
.sc6-map-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: 10px;
  padding: 0 18px;
}
.sc6-map-stage {
  position: relative;
  min-height: 430px;
  border: 1px solid #173449;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 30% 18%,
      rgba(44, 119, 167, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at 78% 16%,
      rgba(113, 84, 188, 0.14),
      transparent 28%
    ),
    linear-gradient(180deg, #081522, #07111b);
}
.sc6-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(64, 117, 151, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 117, 151, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 16%,
    #000 84%,
    transparent
  );
}
.sc6-map-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.32;
  pointer-events: none;
}
.sc6-map-glow-a {
  width: 220px;
  height: 220px;
  left: 6%;
  top: 22%;
  background: rgba(52, 129, 181, 0.18);
}
.sc6-map-glow-b {
  width: 220px;
  height: 220px;
  right: 10%;
  top: 8%;
  background: rgba(120, 78, 181, 0.13);
}
.sc6-map-corner {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  color: #6f8899;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sc6-world-svg {
  position: absolute;
  inset: 24px 18px 18px 18px;
  width: auto;
  height: auto;
  z-index: 1;
}
.sc6-continent path {
  fill: url(#sc6ContinentFill);
  stroke: #356884;
  stroke-width: 1.42;
  opacity: 0.98;
  filter: drop-shadow(0 10px 24px rgba(8, 20, 32, 0.34));
}
.sc6-map-meridians {
  fill: none;
  stroke: #274d68;
  stroke-width: 0.9;
  opacity: 0.35;
}
.sc6-lat-grid line {
  stroke: #21465d;
  stroke-width: 0.6;
  opacity: 0.26;
}
.sc6-world-arcs path {
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  opacity: 0.92;
  stroke-dasharray: 4 7;
  animation: sc6-dash 14s linear infinite;
}
.sc6-world-arcs path.tone-amber {
  stroke: url(#sc6ArcAmber);
}
.sc6-world-arcs path.tone-red {
  stroke: url(#sc6ArcRed);
}
.sc6-world-arcs path.tone-cyan {
  stroke: url(#sc6ArcCyan);
}
.sc6-world-arcs path.tone-violet {
  stroke: url(#sc6ArcViolet);
}
.sc6-world-points .point-pulse {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.6;
  opacity: 0.24;
  animation: sc6-pulse 2.4s ease-out infinite;
}
.sc6-world-points .point-ring {
  fill: rgba(8, 21, 33, 0.88);
  stroke: currentColor;
  stroke-width: 1.3;
}
.sc6-world-points .point-core {
  fill: currentColor;
}
.sc6-world-points g {
  color: #57bee9;
}
.sc6-world-points g.tone-amber {
  color: #edb158;
}
.sc6-world-points g.tone-red {
  color: #ee6775;
}
.sc6-world-points g.tone-cyan {
  color: #57bee9;
}
.sc6-world-points g.tone-violet {
  color: #a07fff;
}
.sc6-point-label rect {
  fill: rgba(8, 20, 31, 0.84);
  stroke: #23445a;
  stroke-width: 1;
}
.sc6-point-label .label-name {
  fill: #eef6fa;
  font-size: 10px;
  font-weight: 700;
}
.sc6-point-label .label-meta {
  fill: #7c98ab;
  font-size: 8.5px;
}
.sc6-map-sidecards {
  display: grid;
  gap: 10px;
}
.sc6-side-panel {
  padding: 12px;
  border: 1px solid #1a3850;
  border-radius: 14px;
  background: linear-gradient(180deg, #091723, #08131d);
}
.sc6-side-panel-head strong,
.sc6-side-panel-head span {
  display: block;
}
.sc6-side-panel-head strong {
  color: #eef7fb;
  font-size: 0.82rem;
}
.sc6-side-panel-head span {
  margin-top: 3px;
  color: #748ea2;
  font-size: 0.65rem;
}
.sc6-rank-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  margin-top: 8px;
  border: 1px solid #173347;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(14, 29, 43, 0.88),
    rgba(8, 20, 31, 0.92)
  );
}
.sc6-rank-row > span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #0d2636;
  border: 1px solid #203f54;
  color: #8bc8eb;
  font-size: 0.61rem;
  font-weight: 800;
}
.sc6-rank-row strong,
.sc6-rank-row small {
  display: block;
}
.sc6-rank-row strong {
  color: #eaf3f8;
  font-size: 0.72rem;
}
.sc6-rank-row small {
  margin-top: 3px;
  color: #6f899c;
  font-size: 0.62rem;
}
.sc6-rank-row b {
  color: #f2f8fb;
  font-size: 0.87rem;
}
.sc6-mix-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.sc6-mix-list span {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #173347;
  border-radius: 10px;
  background: #0a1824;
}
.sc6-mix-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.sc6-mix-list label {
  color: #dfeaf0;
  font-size: 0.69rem;
}
.sc6-mix-list b {
  color: #f2f8fb;
  font-size: 0.79rem;
}
.sc6-map-bottom-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px;
}
.sc6-map-bottom-stats span {
  padding: 9px 10px;
  border: 1px solid #17364b;
  border-radius: 10px;
  background: #0a1926;
  min-width: 0;
}
.sc6-map-bottom-stats small,
.sc6-map-bottom-stats b {
  display: block;
}
.sc6-map-bottom-stats small {
  color: #70899b;
  font-size: 0.59rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sc6-map-bottom-stats b {
  margin-top: 4px;
  color: #ebf4f8;
  font-size: 0.77rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc6-map-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  padding: 0 18px 16px;
  color: #718b9d;
  font-size: 0.64rem;
}
.sc6-map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc6-map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.legend-stealer {
  background: #dca14b;
}
.legend-ransomware {
  background: #e96573;
}
.legend-infra {
  background: #50b7e8;
}
.legend-customer {
  background: #9870e7;
}

.sc6-module-rail {
  display: grid;
  gap: 10px;
}
.sc6-module-card {
  position: relative;
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #1c384d;
  border-radius: 12px;
  background: linear-gradient(180deg, #0d1d2b, #0a1825);
  color: #dce8ef;
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
  min-height: 142px;
}
.sc6-module-card:hover {
  transform: translateY(-1px);
  border-color: #315c77;
  background: #102132;
}
.sc6-module-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--module-tone);
}
.sc6-module-card.tone-blue {
  --module-tone: #49abea;
}
.sc6-module-card.tone-purple {
  --module-tone: #9a70e9;
}
.sc6-module-card.tone-green {
  --module-tone: #34c5a0;
}
.sc6-module-card.tone-cyan {
  --module-tone: #50c2d5;
}
.sc6-module-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sc6-module-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #24455c;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--module-tone);
  background: #0e2434;
  font-size: 0.95rem;
}
.sc6-module-link {
  color: #48677c;
  font-size: 0.72rem;
}
.sc6-module-title small,
.sc6-module-title strong {
  display: block;
}
.sc6-module-title small {
  color: #6c879a;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sc6-module-title strong {
  margin-top: 2px;
  color: #eef4f8;
  font-size: 0.88rem;
}
.sc6-module-value b,
.sc6-module-value span {
  display: block;
}
.sc6-module-value b {
  color: #f2f9fc;
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.sc6-module-value span {
  margin-top: 4px;
  color: #70889a;
  font-size: 0.67rem;
}
.sc6-module-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.sc6-module-mini span {
  padding: 8px 9px;
  border: 1px solid #173347;
  border-radius: 9px;
  background: #0a1824;
}
.sc6-module-mini small,
.sc6-module-mini b {
  display: block;
}
.sc6-module-mini small {
  color: #6d879b;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sc6-module-mini b {
  margin-top: 4px;
  color: #ebf4f8;
  font-size: 0.76rem;
}

.sc6-lower-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}
.sc6-lower-card {
  min-height: 310px;
  overflow: hidden;
}
.sc6-ingestion-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 18px 10px;
}
.sc6-ingestion-stats span {
  padding: 10px;
  border: 1px solid #18354a;
  border-radius: 9px;
  background: #091824;
}
.sc6-ingestion-stats small,
.sc6-ingestion-stats b {
  display: block;
}
.sc6-ingestion-stats small {
  color: #668195;
  font-size: 0.62rem;
}
.sc6-ingestion-stats b {
  margin-top: 3px;
  color: #dce8ef;
  font-size: 0.9rem;
}
.sc6-bar-chart {
  height: 145px;
  margin: 6px 18px 18px;
  padding: 9px 8px 0;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  border-left: 1px solid #1a394f;
  border-bottom: 1px solid #1a394f;
  background: linear-gradient(180deg, rgba(34, 78, 104, 0.04), transparent);
}
.sc6-bar-chart > span {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  min-width: 14px;
}
.sc6-bar-chart i {
  display: block;
  width: min(26px, 65%);
  min-height: 6px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #42b5e7, #2387c3);
  transition: height 0.3s ease;
}
.sc6-bar-chart small {
  color: #58758a;
  font-size: 0.58rem;
}
.sc6-chart-empty {
  margin: auto;
  color: #617c8f;
  font-size: 0.72rem;
}
.sc6-threat-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 18px;
}
.sc6-threat-summary span {
  position: relative;
  padding: 10px 10px 10px 20px;
  border: 1px solid #18354a;
  border-radius: 9px;
  background: #091824;
}
.sc6-threat-summary i {
  position: absolute;
  left: 9px;
  top: 13px;
  width: 5px;
  height: 24px;
  border-radius: 4px;
}
.sc6-threat-summary i.critical {
  background: #ed6572;
}
.sc6-threat-summary i.high {
  background: #e5a04f;
}
.sc6-threat-summary i.identity {
  background: #9871e7;
}
.sc6-threat-summary small,
.sc6-threat-summary b {
  display: block;
}
.sc6-threat-summary small {
  color: #668195;
  font-size: 0.61rem;
}
.sc6-threat-summary b {
  margin-top: 2px;
  color: #e5eef4;
  font-size: 0.9rem;
}
.sc6-threat-chart {
  height: 155px;
  margin: 11px 18px 18px;
  border: 1px solid #18344a;
  border-radius: 9px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 30px,
    rgba(54, 92, 118, 0.13) 31px
  );
  color: #5eb7e7;
  padding: 13px;
}
.sc6-threat-chart svg {
  width: 100%;
  height: 100%;
}
.sc6-feed-card {
  overflow: hidden;
}
.sc6-live-feed {
  display: grid;
}
.sc6-feed-row {
  display: grid;
  grid-template-columns: 54px 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 18px;
  border-top: 1px solid #153044;
}
.sc6-feed-row:hover {
  background: #0c1e2c;
}
.sc6-feed-row time {
  color: #668296;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}
.sc6-feed-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 68px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #143047;
  color: #8dcdf1;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.sc6-feed-type.critical {
  background: #3a1a22;
  color: #ff9eaa;
}
.sc6-feed-type.high {
  background: #302515;
  color: #e8bd6b;
}
.sc6-feed-type.ingestion {
  background: #123129;
  color: #78d9b8;
}
.sc6-feed-row strong,
.sc6-feed-row small {
  display: block;
}
.sc6-feed-row strong {
  color: #dce7ee;
  font-size: 0.75rem;
}
.sc6-feed-row small {
  margin-top: 2px;
  color: #6e8799;
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc6-feed-empty {
  padding: 28px;
  text-align: center;
  color: #668094;
  font-size: 0.75rem;
}
.batch-view-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid #234761;
  background: #102434;
  color: #a6cde4;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.batch-view-state.hidden {
  border-color: #375368;
  color: #9fb7c8;
  background: #172635;
}
.batch-view-state.archived {
  border-color: #59472a;
  color: #dfc17c;
  background: #2b210f;
}
.upload-transfer-panel {
  margin-top: 12px;
}
.upload-transfer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.upload-transfer-grid span {
  padding: 10px;
  border: 1px solid #18374d;
  border-radius: 10px;
  background: #0b1723;
}
.upload-transfer-grid small,
.upload-transfer-grid b {
  display: block;
}
.upload-transfer-grid small {
  color: #6f8b9e;
  font-size: 0.62rem;
}
.upload-transfer-grid b {
  margin-top: 4px;
  color: #ebf4f8;
  font-size: 0.85rem;
  word-break: break-word;
}
.batch-foot-actions,
.batch-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.batch-detail-actions {
  justify-content: flex-end;
}
@keyframes sc6-pulse {
  0% {
    transform: scale(0.35);
    opacity: 0.42;
  }
  70% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@keyframes sc6-dash {
  to {
    stroke-dashoffset: -120;
  }
}
@media (max-width: 1320px) {
  .sc6-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sc6-map-bottom-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1120px) {
  .sc6-intelligence-grid {
    grid-template-columns: 1fr;
  }
  .sc6-module-rail {
    grid-template-columns: repeat(2, 1fr);
  }
  .sc6-map-content {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}
@media (max-width: 960px) {
  .sc6-lower-grid {
    grid-template-columns: 1fr;
  }
  .sc6-map-content {
    grid-template-columns: 1fr;
  }
  .sc6-map-sidecards {
    grid-template-columns: 1fr 1fr;
  }
  .sc6-map-stage {
    min-height: 400px;
  }
}
@media (max-width: 760px) {
  .sc6-map-kpis,
  .sc6-summary-grid,
  .sc6-module-rail,
  .sc6-map-bottom-stats,
  .sc6-ingestion-stats,
  .sc6-threat-summary {
    grid-template-columns: 1fr 1fr;
  }
  .sc6-map-sidecards {
    grid-template-columns: 1fr;
  }
  .upload-transfer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .sc6-map-kpis,
  .sc6-summary-grid,
  .sc6-module-rail,
  .sc6-map-bottom-stats,
  .sc6-ingestion-stats,
  .sc6-threat-summary {
    grid-template-columns: 1fr;
  }
  .sc6-map-stage {
    min-height: 340px;
  }
  .sc6-world-svg {
    inset: 14px 8px 12px 8px;
  }
  .sc6-live-feed .sc6-feed-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .sc6-feed-type {
    display: none;
  }
  .sc6-page-head .sc6-head-actions {
    justify-content: flex-start;
  }
  .upload-transfer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Shadow Core Phase 6.5 refined dashboard ===== */
.sc7-dashboard {
  display: grid;
  gap: 12px;
}
.sc7-page-head {
  margin-bottom: 0;
}
.sc7-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sc7-live-badge,
.sc7-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #24516b;
  border-radius: 999px;
  background: #0a1d2b;
  color: #91c9e9;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.sc7-live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25c995;
  box-shadow: 0 0 0 4px rgba(37, 201, 149, 0.08);
}
.sc7-demo-badge {
  border-color: #6d582c;
  background: #241d0d;
  color: #e9c66b;
}

.sc7-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sc7-summary-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 15px 16px;
  border: 1px solid #1b374c;
  border-radius: 13px;
  background: linear-gradient(180deg, #0d1d2b, #0a1825);
  overflow: hidden;
}
.sc7-summary-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sc7-tone, #4eb4ef);
}
.sc7-summary-card.tone-red {
  --sc7-tone: #ef6573;
}
.sc7-summary-card.tone-orange {
  --sc7-tone: #e99a52;
}
.sc7-summary-card.tone-green {
  --sc7-tone: #2fc59b;
}
.sc7-summary-card.tone-blue {
  --sc7-tone: #4aa9e9;
}
.sc7-summary-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #10273a;
  border: 1px solid #244963;
  color: var(--sc7-tone);
  font-size: 1rem;
}
.sc7-summary-card small,
.sc7-summary-card strong,
.sc7-summary-card span {
  display: block;
}
.sc7-summary-card small {
  color: #86a0b2;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 750;
}
.sc7-summary-card strong {
  margin-top: 3px;
  color: #f4f8fb;
  font-size: 1.46rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.sc7-summary-card div > span {
  margin-top: 5px;
  color: #657f92;
  font-size: 0.66rem;
}

.sc7-intelligence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  align-items: start;
}

.sc7-world-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #0c1b29, #081521);
}
.sc7-world-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 0;
}
.sc7-world-head h2 {
  margin: 4px 0 5px;
  font-size: 1.02rem;
  color: #edf5fa;
}
.sc7-world-head > div > span {
  color: #7892a5;
  font-size: 0.73rem;
  line-height: 1.5;
  display: block;
  max-width: 760px;
}
.sc7-map-filters {
  display: flex;
  gap: 5px;
  padding: 0 18px;
  overflow: auto;
}
.sc7-map-filters button {
  border: 1px solid #1d3d54;
  background: #0a1a27;
  color: #7895aa;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.67rem;
  font-weight: 720;
  white-space: nowrap;
}
.sc7-map-filters button:hover,
.sc7-map-filters button.active {
  background: #102b3f;
  border-color: #2d5f7f;
  color: #d9edf8;
}

.sc7-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 226px;
  gap: 10px;
  padding: 0 18px;
}
.sc7-map-stage {
  position: relative;
  min-height: 486px;
  border: 1px solid #173449;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 18%,
      rgba(44, 119, 167, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at 82% 12%,
      rgba(113, 84, 188, 0.14),
      transparent 28%
    ),
    linear-gradient(180deg, #081522, #07111b);
}
.sc7-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(64, 117, 151, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 117, 151, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}
.sc7-map-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.28;
  pointer-events: none;
}
.sc7-map-glow-a {
  width: 260px;
  height: 260px;
  left: 4%;
  top: 16%;
  background: rgba(52, 129, 181, 0.18);
}
.sc7-map-glow-b {
  width: 240px;
  height: 240px;
  right: 8%;
  top: 8%;
  background: rgba(120, 78, 181, 0.13);
}
.sc7-map-kpis {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 14px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.sc7-map-kpis span {
  position: relative;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(32, 67, 92, 0.95);
  background: rgba(8, 22, 34, 0.76);
  backdrop-filter: blur(5px);
  overflow: hidden;
}
.sc7-map-kpis span:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--chip-tone, #4fb5ea);
}
.sc7-map-kpis .tone-blue {
  --chip-tone: #4eb4ef;
}
.sc7-map-kpis .tone-red {
  --chip-tone: #ef6573;
}
.sc7-map-kpis .tone-amber {
  --chip-tone: #e8a758;
}
.sc7-map-kpis .tone-violet {
  --chip-tone: #a17fff;
}
.sc7-map-kpis small,
.sc7-map-kpis b {
  display: block;
}
.sc7-map-kpis small {
  color: #708ba0;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sc7-map-kpis b {
  margin-top: 4px;
  color: #eff7fb;
  font-size: 1rem;
  line-height: 1;
}
.sc7-map-callout {
  position: absolute;
  left: 16px;
  top: 70px;
  max-width: 430px;
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid rgba(29, 64, 88, 0.95);
  border-radius: 12px;
  background: rgba(7, 20, 31, 0.72);
  backdrop-filter: blur(6px);
}
.sc7-map-callout i {
  color: #62baeb;
  font-size: 1rem;
  line-height: 1;
}
.sc7-map-callout strong,
.sc7-map-callout span {
  display: block;
}
.sc7-map-callout strong {
  color: #e8f3f9;
  font-size: 0.78rem;
}
.sc7-map-callout span {
  margin-top: 3px;
  color: #718c9f;
  font-size: 0.64rem;
  line-height: 1.42;
}
.sc7-map-corner {
  position: absolute;
  top: 72px;
  right: 16px;
  z-index: 3;
  color: #6f8899;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sc7-world-svg {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  top: 116px;
  width: calc(100% - 36px);
  height: calc(100% - 128px);
  z-index: 1;
}
.sc7-map-meridians line {
  stroke: #21465d;
  stroke-width: 0.7;
  opacity: 0.18;
}
.sc7-countries path {
  fill: #142638;
  stroke: #24475f;
  stroke-width: 0.52;
  transition:
    fill 0.18s ease,
    stroke 0.18s ease,
    opacity 0.18s ease;
}
.sc7-countries path.country-base {
  opacity: 0.96;
}
.sc7-countries path.active.tone-cyan {
  fill: rgba(71, 174, 221, 0.28);
  stroke: #59c0ea;
  stroke-width: 0.86;
}
.sc7-countries path.active.tone-red {
  fill: rgba(232, 102, 116, 0.24);
  stroke: #f0727f;
  stroke-width: 0.86;
}
.sc7-countries path.active.tone-amber {
  fill: rgba(235, 170, 86, 0.22);
  stroke: #efb25b;
  stroke-width: 0.86;
}
.sc7-countries path.active.tone-violet {
  fill: rgba(157, 127, 255, 0.22);
  stroke: #ae90ff;
  stroke-width: 0.86;
}
.sc7-world-arcs path {
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  opacity: 0.92;
  stroke-dasharray: 4 7;
  animation: sc7-dash 14s linear infinite;
}
.sc7-world-arcs path.tone-amber {
  stroke: url(#sc7ArcAmber);
}
.sc7-world-arcs path.tone-red {
  stroke: url(#sc7ArcRed);
}
.sc7-world-arcs path.tone-cyan {
  stroke: url(#sc7ArcCyan);
}
.sc7-world-arcs path.tone-violet {
  stroke: url(#sc7ArcViolet);
}
.sc7-world-points .point-pulse {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.6;
  opacity: 0.24;
  animation: sc7-pulse 2.4s ease-out infinite;
}
.sc7-world-points .point-ring {
  fill: rgba(8, 21, 33, 0.88);
  stroke: currentColor;
  stroke-width: 1.3;
}
.sc7-world-points .point-core {
  fill: currentColor;
}
.sc7-world-points g {
  color: #57bee9;
}
.sc7-world-points g.tone-amber {
  color: #edb158;
}
.sc7-world-points g.tone-red {
  color: #ee6775;
}
.sc7-world-points g.tone-cyan {
  color: #57bee9;
}
.sc7-world-points g.tone-violet {
  color: #a07fff;
}
.sc7-point-label rect {
  fill: rgba(8, 20, 31, 0.84);
  stroke: #23445a;
  stroke-width: 1;
}
.sc7-point-label .label-name {
  fill: #eef6fa;
  font-size: 10px;
  font-weight: 700;
}
.sc7-point-label .label-meta {
  fill: #7c98ab;
  font-size: 8.4px;
}

.sc7-map-side {
  display: grid;
  gap: 10px;
}
.sc7-side-panel {
  padding: 12px;
  border: 1px solid #1a3850;
  border-radius: 14px;
  background: linear-gradient(180deg, #091723, #08131d);
}
.sc7-side-head strong,
.sc7-side-head span {
  display: block;
}
.sc7-side-head strong {
  color: #eef7fb;
  font-size: 0.8rem;
}
.sc7-side-head span {
  margin-top: 3px;
  color: #748ea2;
  font-size: 0.64rem;
}
.sc7-rank-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px 9px;
  margin-top: 8px;
  border: 1px solid #173347;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(14, 29, 43, 0.88),
    rgba(8, 20, 31, 0.92)
  );
}
.sc7-rank-row > span {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #0d2636;
  border: 1px solid #203f54;
  color: #8bc8eb;
  font-size: 0.58rem;
  font-weight: 800;
}
.sc7-rank-row strong,
.sc7-rank-row small {
  display: block;
}
.sc7-rank-row strong {
  color: #eaf3f8;
  font-size: 0.71rem;
}
.sc7-rank-row small {
  margin-top: 3px;
  color: #6f899c;
  font-size: 0.6rem;
}
.sc7-rank-row b {
  color: #f2f8fb;
  font-size: 0.84rem;
}
.sc7-mix-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.sc7-mix-list span {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid #173347;
  border-radius: 10px;
  background: #0a1824;
}
.sc7-mix-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.sc7-mix-list label {
  color: #dfeaf0;
  font-size: 0.68rem;
}
.sc7-mix-list b {
  color: #f2f8fb;
  font-size: 0.76rem;
}

.sc7-map-bottom-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px;
}
.sc7-map-bottom-stats span {
  padding: 9px 10px;
  border: 1px solid #17364b;
  border-radius: 10px;
  background: #0a1926;
  min-width: 0;
}
.sc7-map-bottom-stats small,
.sc7-map-bottom-stats b {
  display: block;
}
.sc7-map-bottom-stats small {
  color: #70899b;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sc7-map-bottom-stats b {
  margin-top: 4px;
  color: #ebf4f8;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc7-map-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 18px 16px;
  color: #718b9d;
  font-size: 0.63rem;
}
.sc7-map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc7-map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.legend-stealer {
  background: #dca14b;
}
.legend-ransomware {
  background: #e96573;
}
.legend-infra {
  background: #50b7e8;
}
.legend-customer {
  background: #9870e7;
}

.sc7-module-rail {
  display: grid;
  gap: 10px;
}
.sc7-module-card {
  position: relative;
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #1c384d;
  border-radius: 12px;
  background: linear-gradient(180deg, #0d1d2b, #0a1825);
  color: #dce8ef;
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
  min-height: 116px;
}
.sc7-module-card:hover {
  transform: translateY(-1px);
  border-color: #315c77;
  background: #102132;
}
.sc7-module-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--module-tone);
}
.sc7-module-card.tone-blue {
  --module-tone: #49abea;
}
.sc7-module-card.tone-purple {
  --module-tone: #9a70e9;
}
.sc7-module-card.tone-green {
  --module-tone: #34c5a0;
}
.sc7-module-card.tone-cyan {
  --module-tone: #50c2d5;
}
.sc7-module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sc7-module-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #24455c;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--module-tone);
  background: #0e2434;
  font-size: 0.92rem;
}
.sc7-module-link {
  color: #48677c;
  font-size: 0.7rem;
}
.sc7-module-title small,
.sc7-module-title strong {
  display: block;
}
.sc7-module-title small {
  color: #6c879a;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sc7-module-title strong {
  margin-top: 2px;
  color: #eef4f8;
  font-size: 0.86rem;
}
.sc7-module-value b,
.sc7-module-value span {
  display: block;
}
.sc7-module-value b {
  color: #f2f9fc;
  font-size: 1.25rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.sc7-module-value span {
  margin-top: 3px;
  color: #70889a;
  font-size: 0.64rem;
}
.sc7-module-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.sc7-module-mini span {
  padding: 7px 8px;
  border: 1px solid #173347;
  border-radius: 9px;
  background: #0a1824;
}
.sc7-module-mini small,
.sc7-module-mini b {
  display: block;
}
.sc7-module-mini small {
  color: #6d879b;
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sc7-module-mini b {
  margin-top: 4px;
  color: #ebf4f8;
  font-size: 0.73rem;
}

.sc7-ops-panel {
  padding-bottom: 14px;
}
.sc7-ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 18px 2px;
}
.sc7-ops-grid span {
  padding: 10px;
  border: 1px solid #18354a;
  border-radius: 9px;
  background: #091824;
}
.sc7-ops-grid small,
.sc7-ops-grid b {
  display: block;
}
.sc7-ops-grid small {
  color: #668195;
  font-size: 0.6rem;
}
.sc7-ops-grid b {
  margin-top: 3px;
  color: #dce8ef;
  font-size: 0.86rem;
}

.sc7-lower-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}
.sc7-lower-card {
  min-height: 310px;
  overflow: hidden;
}
.sc7-ingestion-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 18px 10px;
}
.sc7-ingestion-stats span {
  padding: 10px;
  border: 1px solid #18354a;
  border-radius: 9px;
  background: #091824;
}
.sc7-ingestion-stats small,
.sc7-ingestion-stats b {
  display: block;
}
.sc7-ingestion-stats small {
  color: #668195;
  font-size: 0.62rem;
}
.sc7-ingestion-stats b {
  margin-top: 3px;
  color: #dce8ef;
  font-size: 0.9rem;
}
.sc7-bar-chart {
  height: 145px;
  margin: 6px 18px 18px;
  padding: 9px 8px 0;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  border-left: 1px solid #1a394f;
  border-bottom: 1px solid #1a394f;
  background: linear-gradient(180deg, rgba(34, 78, 104, 0.04), transparent);
}
.sc7-bar-chart > span {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  min-width: 14px;
}
.sc7-bar-chart i {
  display: block;
  width: min(26px, 65%);
  min-height: 6px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #42b5e7, #2387c3);
  transition: height 0.3s ease;
}
.sc7-bar-chart small {
  color: #58758a;
  font-size: 0.58rem;
}
.sc7-chart-empty {
  margin: auto;
  color: #617c8f;
  font-size: 0.72rem;
}
.sc7-threat-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 18px;
}
.sc7-threat-summary span {
  position: relative;
  padding: 10px 10px 10px 20px;
  border: 1px solid #18354a;
  border-radius: 9px;
  background: #091824;
}
.sc7-threat-summary i {
  position: absolute;
  left: 9px;
  top: 13px;
  width: 5px;
  height: 24px;
  border-radius: 4px;
}
.sc7-threat-summary i.critical {
  background: #ed6572;
}
.sc7-threat-summary i.high {
  background: #e5a04f;
}
.sc7-threat-summary i.identity {
  background: #9871e7;
}
.sc7-threat-summary small,
.sc7-threat-summary b {
  display: block;
}
.sc7-threat-summary small {
  color: #668195;
  font-size: 0.61rem;
}
.sc7-threat-summary b {
  margin-top: 2px;
  color: #e5eef4;
  font-size: 0.9rem;
}
.sc7-threat-chart {
  height: 155px;
  margin: 11px 18px 18px;
  border: 1px solid #18344a;
  border-radius: 9px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 30px,
    rgba(54, 92, 118, 0.13) 31px
  );
  color: #5eb7e7;
  padding: 13px;
}
.sc7-threat-chart svg {
  width: 100%;
  height: 100%;
}

.sc7-feed-card {
  overflow: hidden;
}
.sc7-live-feed {
  display: grid;
}
.sc7-feed-row {
  display: grid;
  grid-template-columns: 54px 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 18px;
  border-top: 1px solid #153044;
}
.sc7-feed-row:hover {
  background: #0c1e2c;
}
.sc7-feed-row time {
  color: #668296;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}
.sc7-feed-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 68px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #143047;
  color: #8dcdf1;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.sc7-feed-type.critical {
  background: #3a1a22;
  color: #ff9eaa;
}
.sc7-feed-type.high {
  background: #302515;
  color: #e8bd6b;
}
.sc7-feed-type.ingestion {
  background: #123129;
  color: #78d9b8;
}
.sc7-feed-row strong,
.sc7-feed-row small {
  display: block;
}
.sc7-feed-row strong {
  color: #dce7ee;
  font-size: 0.75rem;
}
.sc7-feed-row small {
  margin-top: 2px;
  color: #6e8799;
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc7-feed-empty {
  padding: 28px;
  text-align: center;
  color: #668094;
  font-size: 0.75rem;
}

@keyframes sc7-pulse {
  0% {
    transform: scale(0.35);
    opacity: 0.42;
  }
  70% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@keyframes sc7-dash {
  to {
    stroke-dashoffset: -120;
  }
}

@media (max-width: 1360px) {
  .sc7-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sc7-map-bottom-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1160px) {
  .sc7-intelligence-grid {
    grid-template-columns: 1fr;
  }
  .sc7-map-shell {
    grid-template-columns: minmax(0, 1fr) 226px;
  }
  .sc7-module-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sc7-ops-panel {
    grid-column: 1/-1;
  }
}
@media (max-width: 980px) {
  .sc7-lower-grid {
    grid-template-columns: 1fr;
  }
  .sc7-map-shell {
    grid-template-columns: 1fr;
  }
  .sc7-map-side {
    grid-template-columns: 1fr 1fr;
  }
  .sc7-map-stage {
    min-height: 440px;
  }
  .sc7-world-svg {
    top: 126px;
  }
}
@media (max-width: 760px) {
  .sc7-summary-grid,
  .sc7-map-bottom-stats,
  .sc7-ingestion-stats,
  .sc7-threat-summary,
  .sc7-module-rail,
  .sc7-ops-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sc7-map-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .sc7-map-side {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .sc7-summary-grid,
  .sc7-map-bottom-stats,
  .sc7-ingestion-stats,
  .sc7-threat-summary,
  .sc7-module-rail,
  .sc7-ops-grid,
  .sc7-map-kpis {
    grid-template-columns: 1fr;
  }
  .sc7-map-stage {
    min-height: 380px;
  }
  .sc7-map-callout {
    right: 16px;
    max-width: none;
  }
  .sc7-world-svg {
    left: 8px;
    right: 8px;
    top: 150px;
    width: calc(100% - 16px);
    height: calc(100% - 162px);
  }
  .sc7-feed-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .sc7-feed-type {
    display: none;
  }
  .sc7-head-actions {
    justify-content: flex-start;
  }
}

/* ===== Phase 6.6 refinements ===== */
.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 0 14px;
  font-weight: 700;
}
.sidebar-logout .sidebar-logout-label {
  white-space: nowrap;
  line-height: 1;
}

.sc7-module-mini-3 {
  grid-template-columns: repeat(3, 1fr);
}
.sc7-module-card {
  min-height: 128px;
}
.sc7-module-mini-3 span {
  min-width: 0;
}
.sc7-module-mini-3 b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc7-threat-references {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 18px;
}
.sc7-threat-references span {
  padding: 10px;
  border: 1px solid #18354a;
  border-radius: 9px;
  background: #091824;
}
.sc7-threat-references small,
.sc7-threat-references b {
  display: block;
}
.sc7-threat-references small {
  color: #678094;
  font-size: 0.61rem;
}
.sc7-threat-references b {
  margin-top: 4px;
  color: #e8f0f5;
  font-size: 0.74rem;
  line-height: 1.4;
}

.sc7-ransomware-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 356px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-left: 1px solid #163147;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 29, 0.97),
    rgba(7, 17, 27, 0.98)
  );
  backdrop-filter: blur(8px);
  transform: translateX(102%);
  transition: transform 0.22s ease;
  z-index: 5;
}
.sc7-ransomware-drawer.open {
  transform: translateX(0);
}
.sc7-ransomware-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.sc7-ransomware-drawer-head strong,
.sc7-ransomware-drawer-head span {
  display: block;
}
.sc7-ransomware-drawer-head strong {
  color: #eef5fa;
  font-size: 0.88rem;
}
.sc7-ransomware-drawer-head span {
  margin-top: 4px;
  color: #728c9f;
  font-size: 0.65rem;
  line-height: 1.4;
}
.sc7-ransomware-drawer-search input {
  width: 100%;
  height: 38px;
  border: 1px solid #1d3b51;
  border-radius: 10px;
  background: #0b1b29;
  color: #d7e5ef;
  padding: 0 12px;
}
.sc7-ransomware-drawer-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 2px;
}
.sc7-ransomware-item {
  padding: 11px;
  border: 1px solid #1a3850;
  border-radius: 12px;
  background: #0a1824;
}
.sc7-ransomware-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sc7-ransomware-item-head strong {
  color: #eef5fa;
  font-size: 0.78rem;
}
.sc7-ransomware-item > small {
  display: block;
  margin-top: 4px;
  color: #758fa1;
  font-size: 0.63rem;
}
.sc7-ransomware-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}
.sc7-ransomware-meta span {
  padding: 8px;
  border: 1px solid #163147;
  border-radius: 9px;
  background: #091520;
}
.sc7-ransomware-meta b {
  display: block;
  color: #f1f7fa;
  font-size: 0.59rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.sc7-ransomware-meta span {
  color: #8ba4b5;
  font-size: 0.63rem;
}
.sc7-ransomware-item p {
  margin: 8px 0 0;
  color: #92a9b9;
  font-size: 0.65rem;
  line-height: 1.5;
}
.sc7-ransomware-empty {
  padding: 24px;
  border: 1px dashed #21445b;
  border-radius: 12px;
  color: #6f8798;
  text-align: center;
  font-size: 0.72rem;
}

.incident-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 12px;
}
.incident-form-panel,
.incident-list-panel {
  overflow: hidden;
}
.incident-form {
  padding: 0 18px 18px;
}
.incident-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.incident-form label {
  display: grid;
  gap: 6px;
}
.incident-form label span {
  color: #87a0b2;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.incident-form input,
.incident-form select,
.incident-form textarea,
.incident-toolbar input,
.incident-toolbar select {
  width: 100%;
  border: 1px solid #1d3c52;
  border-radius: 10px;
  background: #0b1b29;
  color: #d8e4ec;
  padding: 10px 12px;
  font-size: 0.8rem;
  outline: none;
}
.incident-form textarea {
  resize: vertical;
  min-height: 108px;
}
.incident-form input:focus,
.incident-form select:focus,
.incident-form textarea:focus,
.incident-toolbar input:focus,
.incident-toolbar select:focus {
  border-color: #2f678a;
  box-shadow: 0 0 0 3px rgba(72, 134, 174, 0.12);
}
.incident-toolbar {
  display: grid;
  grid-template-columns: auto 1fr 160px;
  gap: 10px;
  padding: 0 18px 14px;
}
.incident-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #24455d;
  border-radius: 10px;
  background: #0e2334;
  color: #ddebf4;
  font-weight: 700;
  font-size: 0.75rem;
}
.incident-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
  max-height: 780px;
  overflow: auto;
}
.incident-card {
  padding: 12px;
  border: 1px solid #1a3850;
  border-radius: 12px;
  background: linear-gradient(180deg, #0b1b29, #091723);
}
.incident-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.incident-card-head strong,
.incident-card-head small {
  display: block;
}
.incident-card-head strong {
  color: #eef5fa;
  font-size: 0.84rem;
}
.incident-card-head small {
  margin-top: 3px;
  color: #748ea1;
  font-size: 0.65rem;
}
.incident-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.incident-grid span {
  padding: 8px;
  border: 1px solid #173248;
  border-radius: 9px;
  background: #0a1824;
}
.incident-grid small,
.incident-grid b {
  display: block;
}
.incident-grid small {
  color: #6b8699;
  font-size: 0.56rem;
  text-transform: uppercase;
}
.incident-grid b {
  margin-top: 3px;
  color: #eaf2f7;
  font-size: 0.68rem;
  line-height: 1.3;
}
.incident-card p {
  margin: 10px 0;
  color: #8fa5b5;
  font-size: 0.68rem;
  line-height: 1.5;
}
.incident-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6d889b;
  font-size: 0.67rem;
}
.muted {
  color: #748ea1;
  font-size: 0.72rem;
}

@media (max-width: 1180px) {
  .incident-layout-grid {
    grid-template-columns: 1fr;
  }
  .incident-form-grid,
  .incident-grid,
  .sc7-threat-references {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .sc7-ransomware-drawer {
    width: 100%;
    max-width: 100%;
  }
  .incident-form-grid,
  .incident-grid,
  .sc7-threat-references {
    grid-template-columns: 1fr;
  }
  .incident-toolbar {
    grid-template-columns: 1fr;
  }
}

/* ===== Shadow Core Phase 6.8 fixes ===== */
.sc8-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sc8-page-head {
  margin-bottom: 0;
}
.sc8-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sc8-demo-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #2b4e68;
  background: #0a1c2b;
  color: #7fd4ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.sc8-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #23584f;
  background: #0a1c21;
  color: #8fe0c8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.sc8-live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ed198;
  box-shadow: 0 0 0 4px rgba(46, 209, 152, 0.1);
}
.sc8-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sc8-intelligence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 12px;
  align-items: start;
}

.sc8-world-panel {
  padding: 16px 18px 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #0c1b29, #081521);
}
.sc8-world-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.sc8-world-head h2 {
  margin: 4px 0 4px;
  font-size: 1.05rem;
  color: #eef5fa;
}
.sc8-world-head > div > span {
  color: #7892a5;
  font-size: 0.74rem;
  line-height: 1.45;
  display: block;
  max-width: 760px;
}
.sc8-map-filters {
  display: flex;
  gap: 6px;
  padding-top: 10px;
  overflow: auto;
}
.sc8-map-filters button {
  border: 1px solid #1d3d54;
  background: #0a1a27;
  color: #7895aa;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.67rem;
  font-weight: 720;
  white-space: nowrap;
}
.sc8-map-filters button:hover,
.sc8-map-filters button.active {
  background: #102b3f;
  border-color: #2d5f7f;
  color: #d9edf8;
}
.sc8-map-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.sc8-map-kpis span {
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1a3850;
  background: #0a1824;
  overflow: hidden;
}
.sc8-map-kpis span:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--chip-tone, #4fb5ea);
}
.sc8-map-kpis .tone-blue {
  --chip-tone: #4eb4ef;
}
.sc8-map-kpis .tone-red {
  --chip-tone: #ef6573;
}
.sc8-map-kpis .tone-amber {
  --chip-tone: #e8a758;
}
.sc8-map-kpis .tone-violet {
  --chip-tone: #a17fff;
}
.sc8-map-kpis small,
.sc8-map-kpis b {
  display: block;
}
.sc8-map-kpis small {
  color: #708ba0;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sc8-map-kpis b {
  margin-top: 4px;
  color: #eff7fb;
  font-size: 1.14rem;
  line-height: 1;
}
.sc8-map-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
}
.sc8-map-callout,
.sc8-country-count {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid #1a3850;
  border-radius: 11px;
  background: linear-gradient(180deg, #0a1823, #081420);
}
.sc8-map-callout i,
.sc8-country-count i {
  color: #62baeb;
  font-size: 1rem;
  line-height: 1;
}
.sc8-map-callout strong,
.sc8-map-callout span,
.sc8-country-count small,
.sc8-country-count b {
  display: block;
}
.sc8-map-callout strong {
  color: #e8f3f9;
  font-size: 0.8rem;
}
.sc8-map-callout span {
  margin-top: 3px;
  color: #718c9f;
  font-size: 0.66rem;
  line-height: 1.45;
}
.sc8-country-count {
  min-width: 190px;
  align-items: center;
}
.sc8-country-count small {
  color: #70899b;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.sc8-country-count b {
  margin-top: 3px;
  color: #eef6fa;
  font-size: 0.82rem;
}
.sc8-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: 10px;
  margin-top: 10px;
}
.sc8-map-stage {
  position: relative;
  min-height: 470px;
  border: 1px solid #173449;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 30% 18%,
      rgba(44, 119, 167, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at 78% 16%,
      rgba(113, 84, 188, 0.14),
      transparent 28%
    ),
    linear-gradient(180deg, #081522, #07111b);
}
.sc8-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(64, 117, 151, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 117, 151, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 16%,
    #000 84%,
    transparent
  );
}
.sc8-map-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.28;
  pointer-events: none;
}
.sc8-map-glow-a {
  width: 220px;
  height: 220px;
  left: 6%;
  top: 22%;
  background: rgba(52, 129, 181, 0.18);
}
.sc8-map-glow-b {
  width: 220px;
  height: 220px;
  right: 10%;
  top: 8%;
  background: rgba(120, 78, 181, 0.13);
}
.sc8-world-svg {
  position: absolute;
  inset: 20px 16px 14px 16px;
  width: auto;
  height: auto;
  z-index: 1;
}
.sc8-map-meridians line {
  stroke: #21465d;
  stroke-width: 0.6;
  opacity: 0.2;
}
.sc8-countries path {
  fill: #142638;
  stroke: #24475f;
  stroke-width: 0.52;
  transition:
    fill 0.18s ease,
    stroke 0.18s ease,
    opacity 0.18s ease;
}
.sc8-countries path.active.tone-cyan {
  fill: rgba(71, 174, 221, 0.28);
  stroke: #59c0ea;
  stroke-width: 0.86;
}
.sc8-countries path.active.tone-red {
  fill: rgba(232, 102, 116, 0.24);
  stroke: #f0727f;
  stroke-width: 0.86;
}
.sc8-countries path.active.tone-amber {
  fill: rgba(235, 170, 86, 0.22);
  stroke: #efb25b;
  stroke-width: 0.86;
}
.sc8-countries path.active.tone-violet {
  fill: rgba(157, 127, 255, 0.22);
  stroke: #ae90ff;
  stroke-width: 0.86;
}
.sc8-world-arcs path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.9;
  stroke-dasharray: 4 7;
  animation: sc8dash 14s linear infinite;
}
.sc8-world-arcs path.tone-amber {
  stroke: url(#sc8ArcAmber);
}
.sc8-world-arcs path.tone-red {
  stroke: url(#sc8ArcRed);
}
.sc8-world-arcs path.tone-cyan {
  stroke: url(#sc8ArcCyan);
}
.sc8-world-arcs path.tone-violet {
  stroke: url(#sc8ArcViolet);
}
.sc8-world-points .point-pulse {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0.24;
  animation: sc8pulse 2.4s ease-out infinite;
}
.sc8-world-points .point-ring {
  fill: rgba(8, 21, 33, 0.88);
  stroke: currentColor;
  stroke-width: 1.3;
}
.sc8-world-points .point-core {
  fill: currentColor;
}
.sc8-world-points g {
  color: #57bee9;
}
.sc8-world-points g.tone-amber {
  color: #edb158;
}
.sc8-world-points g.tone-red {
  color: #ee6775;
}
.sc8-world-points g.tone-cyan {
  color: #57bee9;
}
.sc8-world-points g.tone-violet {
  color: #a07fff;
}
.sc8-point-label rect {
  fill: rgba(8, 20, 31, 0.86);
  stroke: #23445a;
  stroke-width: 1;
}
.sc8-point-label .label-name {
  fill: #eef6fa;
  font-size: 10px;
  font-weight: 700;
}
.sc8-point-label .label-meta {
  fill: #7c98ab;
  font-size: 8.4px;
}
.sc8-map-side {
  display: grid;
  gap: 10px;
}
.sc8-side-panel {
  padding: 12px;
  border: 1px solid #1a3850;
  border-radius: 14px;
  background: linear-gradient(180deg, #091723, #08131d);
}
.sc8-side-head strong,
.sc8-side-head span {
  display: block;
}
.sc8-side-head strong {
  color: #eef7fb;
  font-size: 0.82rem;
}
.sc8-side-head span {
  margin-top: 3px;
  color: #748ea2;
  font-size: 0.65rem;
}
.sc8-rank-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  margin-top: 8px;
  border: 1px solid #173347;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(14, 29, 43, 0.88),
    rgba(8, 20, 31, 0.92)
  );
}
.sc8-rank-row > span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #0d2636;
  border: 1px solid #203f54;
  color: #8bc8eb;
  font-size: 0.61rem;
  font-weight: 800;
}
.sc8-rank-row strong,
.sc8-rank-row small {
  display: block;
}
.sc8-rank-row strong {
  color: #eaf3f8;
  font-size: 0.72rem;
}
.sc8-rank-row small {
  margin-top: 3px;
  color: #6f899c;
  font-size: 0.62rem;
}
.sc8-rank-row b {
  color: #f2f8fb;
  font-size: 0.87rem;
}
.sc8-mix-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.sc8-mix-list span {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #173347;
  border-radius: 10px;
  background: #0a1824;
}
.sc8-mix-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.sc8-mix-list label {
  color: #dfeaf0;
  font-size: 0.69rem;
}
.sc8-mix-list b {
  color: #f2f8fb;
  font-size: 0.79rem;
}
.sc8-map-bottom-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.sc8-map-bottom-stats span {
  padding: 9px 10px;
  border: 1px solid #17364b;
  border-radius: 10px;
  background: #0a1926;
  min-width: 0;
}
.sc8-map-bottom-stats small,
.sc8-map-bottom-stats b {
  display: block;
}
.sc8-map-bottom-stats small {
  color: #70899b;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sc8-map-bottom-stats b {
  margin-top: 4px;
  color: #ebf4f8;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc8-map-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #718b9d;
  font-size: 0.63rem;
}
.sc8-map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc8-map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.sc8-ransomware-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 356px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-left: 1px solid #163147;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 29, 0.97),
    rgba(7, 17, 27, 0.98)
  );
  backdrop-filter: blur(8px);
  transform: translateX(102%);
  transition: transform 0.22s ease;
  z-index: 5;
}
.sc8-ransomware-drawer.open {
  transform: translateX(0);
}
.sc8-ransomware-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.sc8-ransomware-drawer-head strong,
.sc8-ransomware-drawer-head span {
  display: block;
}
.sc8-ransomware-drawer-head strong {
  color: #eef5fa;
  font-size: 0.88rem;
}
.sc8-ransomware-drawer-head span {
  margin-top: 4px;
  color: #728c9f;
  font-size: 0.65rem;
  line-height: 1.4;
}
.sc8-ransomware-drawer-search input {
  width: 100%;
  height: 38px;
  border: 1px solid #1d3b51;
  border-radius: 10px;
  background: #0b1b29;
  color: #d7e5ef;
  padding: 0 12px;
}
.sc8-ransomware-drawer-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 2px;
}
.sc8-ransomware-item {
  padding: 11px;
  border: 1px solid #1a3850;
  border-radius: 12px;
  background: #0a1824;
}
.sc8-ransomware-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sc8-ransomware-item-head strong {
  color: #eef5fa;
  font-size: 0.78rem;
}
.sc8-ransomware-item > small {
  display: block;
  margin-top: 4px;
  color: #758fa1;
  font-size: 0.63rem;
}
.sc8-ransomware-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}
.sc8-ransomware-meta span {
  padding: 8px;
  border: 1px solid #163147;
  border-radius: 9px;
  background: #091520;
  color: #8ba4b5;
  font-size: 0.63rem;
}
.sc8-ransomware-meta b {
  display: block;
  color: #f1f7fa;
  font-size: 0.59rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.sc8-ransomware-item p {
  margin: 8px 0 0;
  color: #92a9b9;
  font-size: 0.65rem;
  line-height: 1.5;
}
.sc8-ransomware-empty {
  padding: 24px;
  border: 1px dashed #21445b;
  border-radius: 12px;
  color: #6f8798;
  text-align: center;
  font-size: 0.72rem;
}

.sc8-module-rail {
  display: grid;
  gap: 10px;
}
.sc8-module-card {
  position: relative;
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #1c384d;
  border-radius: 12px;
  background: linear-gradient(180deg, #0d1d2b, #0a1825);
  color: #dce8ef;
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
  min-height: 112px;
}
.sc8-module-card:hover {
  transform: translateY(-1px);
  border-color: #315c77;
  background: #102132;
}
.sc8-module-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--module-tone);
}
.sc8-module-card.tone-blue {
  --module-tone: #49abea;
}
.sc8-module-card.tone-purple {
  --module-tone: #9a70e9;
}
.sc8-module-card.tone-green {
  --module-tone: #34c5a0;
}
.sc8-module-card.tone-cyan {
  --module-tone: #50c2d5;
}
.sc8-module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sc8-module-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #24455c;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--module-tone);
  background: #0e2434;
  font-size: 0.9rem;
}
.sc8-module-link {
  color: #48677c;
  font-size: 0.7rem;
}
.sc8-module-title small,
.sc8-module-title strong {
  display: block;
}
.sc8-module-title small {
  color: #6c879a;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sc8-module-title strong {
  margin-top: 2px;
  color: #eef4f8;
  font-size: 0.84rem;
}
.sc8-module-value b,
.sc8-module-value span {
  display: block;
}
.sc8-module-value b {
  color: #f2f9fc;
  font-size: 1.2rem;
  line-height: 1.04;
}
.sc8-module-value span {
  margin-top: 3px;
  color: #70889a;
  font-size: 0.62rem;
}
.sc8-module-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: auto;
}
.sc8-module-mini span {
  padding: 7px;
  border: 1px solid #173347;
  border-radius: 8px;
  background: #0a1824;
  min-width: 0;
}
.sc8-module-mini small,
.sc8-module-mini b {
  display: block;
}
.sc8-module-mini small {
  color: #6d879b;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sc8-module-mini b {
  margin-top: 3px;
  color: #ebf4f8;
  font-size: 0.69rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc8-ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 18px 2px;
}
.sc8-ops-grid span {
  padding: 9px;
  border: 1px solid #18354a;
  border-radius: 9px;
  background: #091824;
}
.sc8-ops-grid small,
.sc8-ops-grid b {
  display: block;
}
.sc8-ops-grid small {
  color: #668195;
  font-size: 0.58rem;
}
.sc8-ops-grid b {
  margin-top: 3px;
  color: #dce8ef;
  font-size: 0.82rem;
}

.sc8-ingestion-card,
.sc8-feed-card,
.sc8-threat-card {
  padding: 0 0 16px;
  overflow: hidden;
}
.sc8-ingest-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 18px 10px;
}
.sc8-ingest-kpis span {
  padding: 10px;
  border: 1px solid #18354a;
  border-radius: 9px;
  background: #091824;
}
.sc8-ingest-kpis small,
.sc8-ingest-kpis b {
  display: block;
}
.sc8-ingest-kpis small {
  color: #668195;
  font-size: 0.6rem;
}
.sc8-ingest-kpis b {
  margin-top: 3px;
  color: #dce8ef;
  font-size: 0.86rem;
}
.sc8-ingest-chart {
  position: relative;
  height: 220px;
  margin: 8px 18px 0;
  padding: 8px 8px 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  border-left: 1px solid #1a394f;
  border-bottom: 1px solid #1a394f;
  background: linear-gradient(180deg, rgba(34, 78, 104, 0.05), transparent);
}
.sc8-chart-guides {
  position: absolute;
  inset: 8px 0 28px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}
.sc8-chart-guides span {
  border-top: 1px solid rgba(64, 104, 133, 0.16);
}
.sc8-day-bars {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  z-index: 1;
}
.sc8-bar-pair {
  height: 100%;
  width: 48px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
}
.sc8-bar-pair i {
  display: block;
  width: 18px;
  min-height: 7px;
  border-radius: 6px 6px 1px 1px;
}
.sc8-bar-pair .stealer {
  background: linear-gradient(180deg, #49b9ee, #2788c5);
}
.sc8-bar-pair .ransomware {
  background: linear-gradient(180deg, #ef7886, #d64c64);
}
.sc8-day-bars small {
  color: #678499;
  font-size: 0.62rem;
}
.sc8-chart-empty {
  grid-column: 1/-1;
  align-self: center;
  justify-self: center;
  color: #617c8f;
  font-size: 0.72rem;
}

.sc8-live-feed {
  display: grid;
}
.sc8-feed-row {
  display: grid;
  grid-template-columns: 58px 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid #153044;
}
.sc8-feed-row:hover {
  background: #0c1e2c;
}
.sc8-feed-row time {
  color: #668296;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}
.sc8-feed-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 70px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #143047;
  color: #8dcdf1;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.sc8-feed-type.critical {
  background: #3a1a22;
  color: #ff9eaa;
}
.sc8-feed-type.high {
  background: #302515;
  color: #e8bd6b;
}
.sc8-feed-type.ingestion {
  background: #123129;
  color: #78d9b8;
}
.sc8-feed-row strong,
.sc8-feed-row small {
  display: block;
}
.sc8-feed-row strong {
  color: #dce7ee;
  font-size: 0.76rem;
}
.sc8-feed-row small {
  margin-top: 2px;
  color: #6e8799;
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc8-feed-empty {
  padding: 28px;
  text-align: center;
  color: #668094;
  font-size: 0.75rem;
}

.sc8-threat-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 18px 10px;
}
.sc8-threat-summary span {
  position: relative;
  padding: 10px 10px 10px 20px;
  border: 1px solid #18354a;
  border-radius: 9px;
  background: #091824;
}
.sc8-threat-summary i {
  position: absolute;
  left: 9px;
  top: 12px;
  width: 5px;
  height: 24px;
  border-radius: 4px;
}
.sc8-threat-summary i.critical {
  background: #ed6572;
}
.sc8-threat-summary i.high {
  background: #e5a04f;
}
.sc8-threat-summary i.identity {
  background: #9871e7;
}
.sc8-threat-summary small,
.sc8-threat-summary b {
  display: block;
}
.sc8-threat-summary small {
  color: #668195;
  font-size: 0.61rem;
}
.sc8-threat-summary b {
  margin-top: 2px;
  color: #e5eef4;
  font-size: 0.9rem;
}
.sc8-area-chart {
  position: relative;
  height: 260px;
  margin: 0 18px;
  border: 1px solid #18344a;
  border-radius: 12px;
  background: linear-gradient(180deg, #091a29, #071623);
  overflow: hidden;
}
.sc8-area-chart svg {
  width: 100%;
  height: 100%;
}
.sc8-area-grid line {
  stroke: rgba(68, 107, 136, 0.16);
  stroke-width: 0.7;
}
.sc8-area-note {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #1e4057;
  background: rgba(7, 23, 36, 0.84);
}
.sc8-area-note span,
.sc8-area-note strong {
  display: block;
}
.sc8-area-note span {
  color: #7695aa;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sc8-area-note strong {
  margin-top: 3px;
  color: #eef6fa;
  font-size: 0.78rem;
}
.sc8-threat-references {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 18px 0;
}
.sc8-threat-references span {
  padding: 10px;
  border: 1px solid #18354a;
  border-radius: 9px;
  background: #091824;
}
.sc8-threat-references small,
.sc8-threat-references b {
  display: block;
}
.sc8-threat-references small {
  color: #678094;
  font-size: 0.6rem;
}
.sc8-threat-references b {
  margin-top: 4px;
  color: #e8f0f5;
  font-size: 0.72rem;
  line-height: 1.35;
}

.nav-parent {
  min-height: 44px;
  width: 100%;
  border-radius: 9px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #a8bac8;
  font-size: 0.9rem;
  font-weight: 560;
  border: 1px solid transparent;
  background: transparent;
  position: relative;
  text-align: left;
}
.nav-parent:hover {
  background: #0c2132;
  color: #f4f8fb;
}
.nav-parent.active {
  background: #102a3e;
  border-color: #214a68;
  color: #fff;
}
.nav-parent.active:before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--sc-blue);
}
.nav-chevron {
  margin-left: auto;
  color: #58758a;
  font-size: 0.75rem;
  transition: transform 0.18s ease;
}
.nav-parent.open .nav-chevron {
  transform: rotate(180deg);
}
.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 4px 26px;
}
.nav-submenu[hidden] {
  display: none !important;
}
.nav-submenu a {
  min-height: 36px !important;
  font-size: 0.82rem !important;
  padding: 0 9px !important;
}
.nav-submenu .nav-icon {
  width: 18px;
  font-size: 0.85rem;
}
.app-shell.sidebar-collapsed .nav-submenu {
  display: none !important;
}
.app-shell.sidebar-collapsed .nav-parent > span:not(.nav-icon),
.app-shell.sidebar-collapsed .nav-chevron {
  display: none;
}
.app-shell.sidebar-collapsed .nav-parent {
  justify-content: center;
  padding: 0;
}

.module-foundation {
  display: grid;
  gap: 12px;
}
.module-foundation-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
}
.module-foundation-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid #24506c;
  background: #0d2639;
  display: grid;
  place-items: center;
  color: #65c8ff;
  font-size: 1.25rem;
}
.module-foundation-hero h2 {
  margin: 0;
  color: #eef5fa;
}
.module-foundation-hero p {
  margin: 4px 0;
  color: #92aabc;
}
.module-foundation-hero span {
  color: #6f899b;
  font-size: 0.72rem;
}
.module-foundation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.module-foundation-card {
  padding: 16px;
}
.module-foundation-card small,
.module-foundation-card strong,
.module-foundation-card span {
  display: block;
}
.module-foundation-card small {
  color: #6f8da3;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.module-foundation-card strong {
  margin-top: 5px;
  color: #eef6fa;
  font-size: 1.25rem;
}
.module-foundation-card span {
  margin-top: 5px;
  color: #667f92;
  font-size: 0.65rem;
}
.roadmap-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 18px 18px;
}
.roadmap-items span {
  padding: 10px;
  border: 1px solid #18354a;
  border-radius: 9px;
  background: #091824;
  color: #88a1b4;
  font-size: 0.7rem;
}
.roadmap-items i {
  margin-right: 6px;
  color: #55c9a2;
}

@keyframes sc8pulse {
  0% {
    transform: scale(0.35);
    opacity: 0.42;
  }
  70% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@keyframes sc8dash {
  to {
    stroke-dashoffset: -120;
  }
}
@media (max-width: 1320px) {
  .sc8-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sc8-map-bottom-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .sc8-intelligence-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}
@media (max-width: 1100px) {
  .sc8-intelligence-grid {
    grid-template-columns: 1fr;
  }
  .sc8-module-rail {
    grid-template-columns: repeat(2, 1fr);
  }
  .sc8-map-shell {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .roadmap-items {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .sc8-map-shell {
    grid-template-columns: 1fr;
  }
  .sc8-map-side {
    grid-template-columns: 1fr 1fr;
  }
  .sc8-map-stage {
    min-height: 420px;
  }
  .sc8-map-meta-row {
    grid-template-columns: 1fr;
  }
  .sc8-country-count {
    min-width: 0;
  }
  .sc8-threat-references,
  .sc8-threat-summary,
  .sc8-ingest-kpis,
  .module-foundation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .sc8-summary-grid,
  .sc8-map-kpis,
  .sc8-map-bottom-stats,
  .sc8-threat-references,
  .sc8-threat-summary,
  .sc8-ingest-kpis,
  .sc8-module-rail,
  .module-foundation-grid,
  .roadmap-items {
    grid-template-columns: 1fr;
  }
  .sc8-map-side {
    grid-template-columns: 1fr;
  }
  .sc8-map-stage {
    min-height: 360px;
  }
  .sc8-world-svg {
    inset: 10px 6px 8px 6px;
  }
  .sc8-ingest-chart {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: auto;
  }
  .sc8-feed-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .sc8-feed-type {
    display: none;
  }
  .module-foundation-hero {
    grid-template-columns: 1fr;
  }
}

/* ===== Shadow Core Phase 6.9 layout polish ===== */
/* Display typography: uses a futuristic extended stack while remaining local/offline-friendly. */
.sc8-page-head h1,
.sc8-world-title-copy h2,
.sc8-ingestion-card .panel-head h2,
.sc8-feed-card .panel-head h2,
.sc8-threat-card .panel-head h2 {
  font-family:
    "Michroma", "Eurostile Extended", "Microgramma D Extended", "Bank Gothic",
    "Bahnschrift SemiLight", "Bahnschrift", "Century Gothic", sans-serif;
  font-weight: 500;
  letter-spacing: 0.045em;
}
.sc8-page-head h1 {
  font-weight: 400;
  letter-spacing: 0.07em;
  font-stretch: expanded;
}

/* Put the map filters on the same horizontal band as the world-map title. */
.sc8-world-head {
  align-items: flex-start;
  margin-bottom: 2px;
}
.sc8-world-head-main {
  flex: 1;
  min-width: 0;
}
.sc8-world-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}
.sc8-world-title-copy {
  min-width: 260px;
  flex: 1;
}
.sc8-world-title-copy h2 {
  margin: 4px 0 4px;
  font-size: 1.08rem;
  color: #eef5fa;
}
.sc8-world-title-copy > span {
  display: block;
  color: #7892a5;
  font-size: 0.74rem;
  line-height: 1.45;
  max-width: 690px;
}
.sc8-map-filters {
  padding-top: 0;
  margin: 0;
  flex: 0 0 auto;
  align-self: flex-end;
  justify-content: flex-end;
}
.sc8-map-filters button {
  height: 31px;
  padding: 0 11px;
}
.sc8-map-kpis {
  margin-top: 6px;
}
.sc8-map-meta-row {
  margin-top: 8px;
}
.sc8-map-shell {
  margin-top: 8px;
}

/* Four module cards only: Operational Metrics intentionally removed. */
.sc8-module-rail {
  align-content: start;
}
.sc8-module-card {
  min-height: 118px;
}

/* Live Intelligence + Threat Evolution share the lower row equally. */
.sc8-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.sc8-bottom-grid > .panel {
  height: 100%;
  min-height: 520px;
  margin: 0;
}
.sc8-bottom-grid .sc8-feed-card,
.sc8-bottom-grid .sc8-threat-card {
  display: flex;
  flex-direction: column;
}
.sc8-bottom-grid .sc8-live-feed {
  flex: 1;
}
.sc8-bottom-grid .sc8-area-chart {
  height: 270px;
}
.sc8-bottom-grid .sc8-threat-references {
  margin-top: auto;
}

@media (max-width: 1180px) {
  .sc8-world-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .sc8-map-filters {
    align-self: flex-start;
  }
  .sc8-bottom-grid {
    grid-template-columns: 1fr;
  }
  .sc8-bottom-grid > .panel {
    min-height: 0;
  }
}

/* ===== Shadow Core Phase 6.10 compact map + module cards ===== */
:root {
  --sc-display-font:
    "Michroma", "Eurostile Extended", "Microgramma D Extended", "Bank Gothic",
    "Bahnschrift SemiLight", "Bahnschrift", "Century Gothic", sans-serif;
}

/* Top dashboard KPI labels: important labels use the display face and white text. */
.sc7-summary-card small {
  font-family: var(--sc-display-font);
  color: #f5f9fc;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.sc7-summary-card strong {
  color: #fff;
}

/* Remove the redundant geography tile and tighten the map block vertically. */
.sc8-map-meta-row {
  display: block;
  margin-top: 6px;
}
.sc8-map-callout {
  width: 100%;
  padding: 10px 12px;
}
.sc8-map-shell {
  margin-top: 7px;
  align-items: start;
}
.sc8-map-stage {
  min-height: 430px;
}
.sc8-world-svg {
  inset: 12px 14px 8px 14px;
}
.sc8-map-side {
  align-content: start;
  gap: 9px;
}
.sc8-side-panel {
  padding: 11px;
}
.sc8-mix-list {
  gap: 7px;
  margin-top: 8px;
}
.sc8-mix-list span {
  padding: 8px 9px;
}
.sc8-map-bottom-stats {
  margin-top: 8px;
}
.sc8-map-legend {
  margin-top: 7px;
}

/* Module cards: title on the left, primary number larger on the right. */
.sc8-module-rail {
  gap: 9px;
  align-content: start;
}
.sc8-module-card {
  min-height: 0;
  padding: 11px 12px;
  gap: 9px;
}
.sc8-module-main-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.sc8-module-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sc8-module-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}
.sc8-module-title {
  min-width: 0;
}
.sc8-module-title small {
  font-size: 0.52rem;
  letter-spacing: 0.07em;
}
.sc8-module-title strong {
  margin-top: 3px;
  font-family: var(--sc-display-font);
  color: #fff;
  font-size: 0.76rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.sc8-module-kpi {
  min-width: 88px;
  padding-right: 15px;
  text-align: right;
  align-self: center;
}
.sc8-module-kpi b {
  display: block;
  font-family: var(--sc-display-font);
  color: #fff;
  font-size: 1.48rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.015em;
}
.sc8-module-kpi small {
  display: block;
  margin-top: 5px;
  color: #7792a6;
  font-size: 0.54rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  max-width: 105px;
}
.sc8-module-link {
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 0.62rem;
}
.sc8-module-mini {
  gap: 6px;
}
.sc8-module-mini span {
  padding: 6px 7px;
}
.sc8-module-mini small {
  font-size: 0.46rem;
}
.sc8-module-mini b {
  font-size: 0.66rem;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .sc8-map-stage {
    min-height: 400px;
  }
}
@media (max-width: 650px) {
  .sc8-map-stage {
    min-height: 350px;
  }
  .sc8-module-title strong {
    white-space: normal;
  }
  .sc8-module-main-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .sc8-module-kpi {
    min-width: 76px;
  }
  .sc8-module-kpi b {
    font-size: 1.25rem;
  }
}

/* ===== Shadow Core Phase 6.11 symmetry + map stats refinement ===== */
.sc8-intelligence-grid {
  align-items: stretch;
}
.sc8-world-panel {
  display: flex;
  flex-direction: column;
}
.sc8-map-shell {
  align-items: stretch;
}
.sc8-map-stage {
  min-height: 488px;
}
.sc8-world-svg {
  inset: 12px 14px 4px 14px;
}

/* Right rail: all four module cards same height and visually fill the column. */
.sc8-module-rail {
  display: grid;
  grid-template-rows: repeat(4, minmax(152px, 1fr));
  gap: 10px;
  align-self: stretch;
  height: 100%;
}
.sc8-module-card {
  height: 100%;
  min-height: 152px;
  padding: 13px 12px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: space-between;
}
.sc8-module-main-row {
  min-height: 58px;
}
.sc8-module-icon {
  width: 36px;
  height: 36px;
}
.sc8-module-title strong {
  font-size: 0.82rem;
}
.sc8-module-kpi {
  min-width: 98px;
  padding-right: 16px;
}
.sc8-module-kpi b {
  font-size: 1.62rem;
}
.sc8-module-kpi small {
  font-size: 0.56rem;
  max-width: 110px;
}
.sc8-module-mini {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
}
.sc8-module-mini span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 42px;
  padding: 8px 8px;
}
.sc8-module-mini b {
  font-size: 0.7rem;
}

/* Bottom stat cards: icon + display face, no redundant legend. */
.sc8-map-bottom-stats {
  margin-top: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.sc8-map-bottom-stats span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  min-height: 64px;
}
.sc8-map-bottom-stats i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #10273a;
  border: 1px solid #21445d;
  color: #71c6f2;
  font-size: 0.88rem;
  flex: 0 0 auto;
}
.sc8-map-bottom-stats span:nth-child(2) i {
  color: #86cfff;
}
.sc8-map-bottom-stats span:nth-child(3) i {
  color: #9b87ff;
}
.sc8-map-bottom-stats span:nth-child(4) i {
  color: #f0b25a;
}
.sc8-map-bottom-stats span:nth-child(5) i {
  color: #58c4ee;
}
.sc8-map-bottom-stats span:nth-child(6) i {
  color: #7ed1a6;
}
.sc8-map-bottom-stats span > div {
  min-width: 0;
}
.sc8-map-bottom-stats small {
  font-family: var(--sc-display-font);
  color: #f5f9fc;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.055em;
}
.sc8-map-bottom-stats b {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #fff;
}

/* The old mini-legend is intentionally hidden now. */
.sc8-map-legend {
  display: none !important;
}

@media (max-width: 1320px) {
  .sc8-module-rail {
    grid-template-rows: repeat(4, minmax(140px, 1fr));
  }
}
@media (max-width: 1100px) {
  .sc8-map-stage {
    min-height: 450px;
  }
  .sc8-module-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
  }
  .sc8-module-card {
    min-height: 148px;
  }
}
@media (max-width: 900px) {
  .sc8-map-stage {
    min-height: 430px;
  }
}
@media (max-width: 650px) {
  .sc8-map-stage {
    min-height: 360px;
  }
  .sc8-map-bottom-stats span {
    min-height: 60px;
  }
  .sc8-module-card {
    min-height: 136px;
  }
}

/* ===== Shadow Core Phase 6.12 module KPI alignment ===== */
.sc8-module-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "heading link"
    "kpi kpi";
  align-items: start;
  row-gap: 10px;
  min-height: auto;
}
.sc8-module-heading {
  grid-area: heading;
  min-width: 0;
}
.sc8-module-link {
  grid-area: link;
  align-self: start;
  justify-self: end;
}
.sc8-module-kpi {
  grid-area: kpi;
  min-width: 0;
  width: 100%;
  padding-right: 0;
  text-align: center;
  justify-self: center;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.sc8-module-kpi b {
  width: 100%;
  text-align: center;
  line-height: 1;
}
.sc8-module-kpi small {
  max-width: none;
  width: 100%;
  text-align: center;
}

/* ===== Shadow Core Phase 6.13 modern login ===== */
.login-shell {
  min-height: 100vh;
  padding: 32px;
  background:
    radial-gradient(
      circle at 16% 16%,
      rgba(38, 139, 220, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 84% 76%,
      rgba(71, 71, 180, 0.12),
      transparent 28%
    ),
    linear-gradient(180deg, #06101b 0%, #07121e 54%, #06101a 100%);
}
.login-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(58, 101, 137, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 101, 137, 0.065) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.15)
  );
  animation: loginGridDrift 24s linear infinite;
}
.login-orb {
  border: 1px solid rgba(73, 161, 218, 0.11);
  box-shadow:
    inset 0 0 70px rgba(42, 126, 183, 0.025),
    0 0 70px rgba(31, 92, 135, 0.025);
}
.login-orb-a {
  width: 560px;
  height: 560px;
  left: -210px;
  top: -250px;
  animation: loginFloatA 18s ease-in-out infinite alternate;
}
.login-orb-b {
  width: 660px;
  height: 660px;
  right: -310px;
  bottom: -350px;
  animation: loginFloatB 21s ease-in-out infinite alternate;
}
.login-beam {
  position: absolute;
  width: 50vw;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(62, 183, 247, 0.32),
    transparent
  );
  filter: drop-shadow(0 0 8px rgba(62, 183, 247, 0.2));
  opacity: 0.55;
}
.login-beam-a {
  left: -8vw;
  top: 22%;
  rotate: -8deg;
  animation: loginBeam 8s ease-in-out infinite;
}
.login-beam-b {
  right: -10vw;
  bottom: 24%;
  rotate: 11deg;
  animation: loginBeam 11s ease-in-out 2s infinite reverse;
}

.login-card-modern {
  width: min(1040px, 100%);
  min-height: 640px;
  padding: 0;
  border-radius: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  overflow: hidden;
  background: rgba(7, 22, 36, 0.91);
  border: 1px solid rgba(42, 84, 114, 0.78);
  box-shadow:
    0 38px 120px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(74, 163, 220, 0.025) inset;
  backdrop-filter: blur(20px);
  animation: loginCardIn 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.login-showcase {
  position: relative;
  min-height: 640px;
  padding: 34px 38px 30px;
  overflow: hidden;
  border-right: 1px solid rgba(37, 73, 99, 0.66);
  background:
    radial-gradient(
      circle at 70% 65%,
      rgba(36, 141, 203, 0.14),
      transparent 30%
    ),
    linear-gradient(155deg, rgba(12, 35, 54, 0.92), rgba(6, 20, 32, 0.88));
}
.login-showcase:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0 48%,
    rgba(63, 176, 236, 0.025) 49%,
    transparent 50% 100%
  );
  background-size: 120px 120px;
}
.login-showcase-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
}
.login-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57, 126, 174, 0.36);
  background: rgba(9, 30, 46, 0.72);
  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.22);
}
.login-logo-wrap img {
  width: 35px;
  height: 35px;
}
.login-showcase-brand strong,
.login-showcase-brand span {
  display: block;
}
.login-showcase-brand strong {
  font-family: "Michroma", var(--bs-font-sans-serif);
  font-size: 0.91rem;
  letter-spacing: 0.075em;
  color: #f6fbff;
}
.login-showcase-brand span {
  margin-top: 4px;
  color: #66acd5;
  font-size: 0.6rem;
  letter-spacing: 0.19em;
}

.login-showcase-copy {
  position: relative;
  z-index: 2;
  margin-top: 54px;
  max-width: 490px;
}
.login-showcase-copy h2 {
  margin: 12px 0 18px;
  font-family: "Michroma", var(--bs-font-sans-serif);
  color: #f7fbff;
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.035em;
}
.login-showcase-copy h2 span {
  color: #45c4f2;
  text-shadow: 0 0 30px rgba(69, 196, 242, 0.12);
}
.login-showcase-copy > p:last-child {
  margin: 0;
  max-width: 430px;
  color: #88a5ba;
  font-size: 0.92rem;
  line-height: 1.75;
}

.login-core-visual {
  position: absolute;
  right: 18px;
  bottom: 68px;
  width: 270px;
  height: 270px;
  opacity: 0.86;
  pointer-events: none;
}
.login-core-ring {
  position: absolute;
  inset: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(75, 173, 228, 0.24);
}
.login-core-ring.ring-a {
  width: 104px;
  height: 104px;
  animation: loginRingSpin 12s linear infinite;
}
.login-core-ring.ring-b {
  width: 168px;
  height: 168px;
  border-style: dashed;
  animation: loginRingSpin 18s linear infinite reverse;
}
.login-core-ring.ring-c {
  width: 232px;
  height: 232px;
  border-color: rgba(100, 119, 219, 0.16);
  animation: loginPulse 4.8s ease-in-out infinite;
}
.login-core-ring.ring-a:before,
.login-core-ring.ring-b:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4bc6f5;
  box-shadow: 0 0 18px rgba(75, 198, 245, 0.75);
  left: 50%;
  top: -4px;
}
.login-core-center {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0a2235;
  border: 1px solid #28628b;
  box-shadow: 0 0 45px rgba(49, 165, 227, 0.15);
}
.login-core-center img {
  width: 44px;
  height: 44px;
}
.login-core-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #68cdf8;
  box-shadow: 0 0 16px rgba(104, 205, 248, 0.8);
}
.login-core-node.node-a {
  left: 14px;
  top: 122px;
  animation: loginNodePulse 2.2s ease-in-out infinite;
}
.login-core-node.node-b {
  right: 23px;
  top: 57px;
  animation: loginNodePulse 2.5s ease-in-out 0.7s infinite;
}
.login-core-node.node-c {
  right: 48px;
  bottom: 25px;
  animation: loginNodePulse 2.8s ease-in-out 1.1s infinite;
}
.login-showcase-foot {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #607f95;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  z-index: 2;
}
.login-showcase-foot span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.login-showcase-foot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2cd39a;
  box-shadow: 0 0 0 5px rgba(44, 211, 154, 0.08);
}

.login-access-panel {
  position: relative;
  padding: 36px 40px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(9, 26, 41, 0.9),
    rgba(8, 23, 37, 0.94)
  );
}
.login-access-top {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.login-secure-badge,
.login-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}
.login-secure-badge {
  border: 1px solid #294e69;
  background: #0b2234;
  color: #86c8ef;
}
.login-status-dot {
  color: #64dca9;
}
.login-status-dot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ad297;
  box-shadow: 0 0 0 5px rgba(42, 210, 151, 0.08);
}
.login-copy-modern {
  padding: 58px 0 20px;
}
.login-copy-modern h1 {
  margin: 9px 0 12px;
  font-family: "Michroma", var(--bs-font-sans-serif);
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #fff;
}
.login-copy-modern > p:last-child {
  font-size: 0.9rem;
  color: #87a3b8;
  line-height: 1.65;
}
.login-copy-modern > p:last-child strong {
  color: #d6edf9;
  font-weight: 650;
}

.login-form-modern {
  display: grid;
  gap: 14px;
}
.login-form-modern label {
  gap: 7px !important;
}
.login-field-label {
  font-size: 0.7rem;
  color: #99adbd;
  letter-spacing: 0.045em;
  font-weight: 700;
}
.login-input-wrap {
  position: relative;
  display: block;
}
.login-input-wrap > i {
  position: absolute;
  left: 13px;
  top: 50%;
  translate: 0 -50%;
  color: #6f91a9;
  font-size: 0.92rem;
  z-index: 2;
}
.login-input-wrap input {
  height: 47px;
  padding-left: 40px !important;
  border-radius: 11px;
  background: #081a2a;
  border-color: #24455d;
  color: #eaf3f8;
  font-size: 0.85rem;
}
.login-input-wrap input:focus {
  border-color: #3b9ad8;
  background: #091d2e;
  box-shadow: 0 0 0 4px rgba(47, 156, 255, 0.09);
}
.login-primary-btn {
  height: 48px;
  border-radius: 11px;
  margin-top: 2px;
  font-family: "Michroma", var(--bs-font-sans-serif);
  font-size: 0.69rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #258ef2, #38a6ff);
  border: none;
  box-shadow: 0 10px 30px rgba(36, 144, 240, 0.16) !important;
}
.login-primary-btn:hover {
  background: linear-gradient(90deg, #2c96f9, #45b1ff);
  box-shadow: 0 13px 34px rgba(36, 144, 240, 0.22) !important;
}
.login-primary-btn i {
  font-size: 0.88rem;
}
.login-demo-btn {
  height: 45px;
  border-radius: 11px;
  font-size: 0.79rem;
  color: #9cb4c6;
  border-color: #24435a;
  background: #091927;
}
.login-demo-btn:hover {
  background: #0c2133;
  color: #eef8ff;
}
.login-auth-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #1e4159;
  border-radius: 11px;
  background: rgba(8, 29, 43, 0.72);
}
.login-auth-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #0b2a39;
  color: #54d4a5;
  border: 1px solid rgba(56, 157, 123, 0.25);
}
.login-auth-strip strong,
.login-auth-strip small {
  display: block;
}
.login-auth-strip strong {
  color: #cfe0eb;
  font-size: 0.72rem;
}
.login-auth-strip small {
  margin-top: 2px;
  color: #6f8ba0;
  font-size: 0.66rem;
  line-height: 1.4;
}
.login-form-modern .form-message {
  margin: 0;
  min-height: 1.1rem;
  font-size: 0.72rem;
}
.login-access-foot {
  margin-top: 10px;
  padding-top: 13px;
  border-top: 1px solid rgba(29, 58, 79, 0.66);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5d788d;
  font-size: 0.64rem;
}
.login-access-foot span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7594aa;
}

@keyframes loginGridDrift {
  to {
    background-position: 64px 64px;
  }
}
@keyframes loginFloatA {
  to {
    translate: 40px 28px;
    scale: 1.06;
  }
}
@keyframes loginFloatB {
  to {
    translate: -36px -25px;
    scale: 0.95;
  }
}
@keyframes loginBeam {
  0%,
  100% {
    opacity: 0.14;
    translate: -4% 0;
  }
  50% {
    opacity: 0.6;
    translate: 6% 0;
  }
}
@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes loginRingSpin {
  to {
    rotate: 360deg;
  }
}
@keyframes loginPulse {
  0%,
  100% {
    scale: 0.96;
    opacity: 0.52;
  }
  50% {
    scale: 1.04;
    opacity: 1;
  }
}
@keyframes loginNodePulse {
  0%,
  100% {
    opacity: 0.35;
    scale: 0.7;
  }
  50% {
    opacity: 1;
    scale: 1.25;
  }
}

@media (max-width: 900px) {
  .login-shell {
    padding: 22px;
  }
  .login-card-modern {
    grid-template-columns: 1fr;
    width: min(540px, 100%);
    min-height: auto;
  }
  .login-showcase {
    min-height: 240px;
    padding: 26px 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(37, 73, 99, 0.66);
  }
  .login-showcase-copy {
    margin-top: 28px;
  }
  .login-showcase-copy h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  .login-showcase-copy > p:last-child {
    font-size: 0.82rem;
    max-width: 90%;
  }
  .login-core-visual {
    width: 180px;
    height: 180px;
    right: 4px;
    bottom: -18px;
    opacity: 0.45;
  }
  .login-core-ring.ring-c {
    width: 160px;
    height: 160px;
  }
  .login-core-ring.ring-b {
    width: 120px;
    height: 120px;
  }
  .login-core-ring.ring-a {
    width: 82px;
    height: 82px;
  }
  .login-core-center {
    width: 58px;
    height: 58px;
  }
  .login-core-center img {
    width: 34px;
    height: 34px;
  }
  .login-showcase-foot {
    display: none;
  }
  .login-access-panel {
    padding: 30px 28px 24px;
  }
  .login-access-top {
    left: 28px;
    right: 28px;
    top: 24px;
  }
  .login-copy-modern {
    padding-top: 54px;
  }
}
@media (max-width: 520px) {
  .login-shell {
    padding: 12px;
  }
  .login-card-modern {
    border-radius: 19px;
  }
  .login-showcase {
    padding: 22px;
    min-height: 215px;
  }
  .login-showcase-brand span {
    font-size: 0.54rem;
  }
  .login-showcase-copy {
    margin-top: 22px;
  }
  .login-showcase-copy h2 {
    font-size: 1.62rem;
  }
  .login-showcase-copy > p:last-child {
    display: none;
  }
  .login-core-visual {
    opacity: 0.26;
  }
  .login-access-panel {
    padding: 26px 20px 20px;
  }
  .login-access-top {
    left: 20px;
    right: 20px;
    top: 20px;
  }
  .login-status-dot {
    display: none;
  }
  .login-copy-modern h1 {
    font-size: 1.45rem;
  }
  .login-copy-modern {
    padding-top: 48px;
  }
  .login-auth-strip {
    display: none;
  }
  .login-access-foot {
    font-size: 0.58rem;
  }
}

/* ===== Shadow Core Phase 6.14 – full-screen login + invitation access ===== */
.login-shell-v14 {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(420px, 0.72fr);
  padding: 0;
  overflow: hidden;
  background: #06111d;
}
.login-shell-v14 .login-grid,
.login-shell-v14 .login-orb,
.login-shell-v14 .login-beam,
.login-shell-v14 .login-card-modern,
.login-shell-v14 .login-core-visual {
  display: none !important;
}

.login-visual-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 42px 54px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}
.login-visual-image {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image: url("../assets/login-intelligence-bg.svg");
  background-size: cover;
  background-position: center;
  transform: scale(1.035);
  animation: loginBgDrift 18s ease-in-out infinite alternate;
}
.login-visual-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(
      90deg,
      rgba(5, 16, 27, 0.16),
      rgba(5, 16, 27, 0.08) 56%,
      rgba(5, 16, 27, 0.5)
    ),
    linear-gradient(180deg, rgba(5, 16, 27, 0.05), rgba(5, 16, 27, 0.44));
}
.login-visual-lines {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.login-visual-lines span {
  position: absolute;
  display: block;
  height: 1px;
  width: 52%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(74, 193, 241, 0.32),
    transparent
  );
  opacity: 0.45;
  animation: loginLineSweep 9s ease-in-out infinite;
}
.login-visual-lines span:nth-child(1) {
  left: -9%;
  top: 24%;
  rotate: -5deg;
}
.login-visual-lines span:nth-child(2) {
  right: -4%;
  top: 54%;
  rotate: 7deg;
  animation-delay: 2.8s;
}
.login-visual-lines span:nth-child(3) {
  left: 15%;
  bottom: 18%;
  rotate: -2deg;
  animation-delay: 5.1s;
}

.login-visual-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.login-visual-brand .login-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(7, 28, 45, 0.72);
  backdrop-filter: blur(10px);
}
.login-visual-brand .login-logo-wrap img {
  width: 37px;
  height: 37px;
}
.login-visual-brand strong,
.login-visual-brand span {
  display: block;
}
.login-visual-brand strong {
  font-family: "Michroma", var(--bs-font-sans-serif);
  font-size: 0.96rem;
  letter-spacing: 0.09em;
  color: #fff;
}
.login-visual-brand span {
  margin-top: 4px;
  color: #77b8dd;
  font-size: 0.62rem;
  letter-spacing: 0.19em;
}

.login-visual-copy {
  max-width: 760px;
  margin: auto 0;
  position: relative;
  z-index: 2;
  padding: 52px 0;
}
.login-visual-copy h2 {
  margin: 15px 0 18px;
  font-family: "Michroma", var(--bs-font-sans-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 4.7vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #f8fbff;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}
.login-visual-copy h2 span {
  color: #49c8f5;
}
.login-visual-copy > p:last-of-type {
  max-width: 610px;
  margin: 0;
  color: #a0b8c9;
  font-size: 1rem;
  line-height: 1.75;
}
.login-visual-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.login-visual-metrics span {
  min-width: 155px;
  padding: 11px 13px;
  border: 1px solid rgba(69, 126, 162, 0.36);
  border-radius: 12px;
  background: rgba(7, 25, 40, 0.56);
  backdrop-filter: blur(8px);
}
.login-visual-metrics small,
.login-visual-metrics b {
  display: block;
}
.login-visual-metrics small {
  color: #70a4c3;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}
.login-visual-metrics b {
  margin-top: 4px;
  color: #eaf4fa;
  font-size: 0.82rem;
  font-weight: 650;
}
.login-visual-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #708ca0;
  font-size: 0.69rem;
  position: relative;
  z-index: 2;
}
.login-visual-foot span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-visual-foot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ad39a;
  box-shadow: 0 0 0 5px rgba(42, 211, 154, 0.08);
}

.login-access-column {
  min-height: 100vh;
  padding: 0;
  background: linear-gradient(180deg, #091827 0%, #071522 100%);
  border-left: 1px solid rgba(38, 76, 103, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -28px 0 70px rgba(0, 0, 0, 0.16);
}
.login-access-inner {
  width: min(430px, calc(100% - 56px));
  display: flex;
  flex-direction: column;
  gap: 0;
}
.login-access-column .login-access-top {
  position: static;
  margin-bottom: 28px;
}
.login-access-column .login-copy-modern {
  padding: 0 0 20px;
}
.login-access-column .login-copy-modern h1 {
  font-size: clamp(1.75rem, 2.4vw, 2.5rem);
}
.login-access-column .login-copy-modern > p:last-child {
  font-size: 0.88rem;
}

.login-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid #1c3a50;
  border-radius: 12px;
  background: #061522;
}
.login-mode-tabs button {
  height: 39px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7594aa;
  font-size: 0.74rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: 0.18s ease;
}
.login-mode-tabs button:hover {
  color: #cce8f8;
  background: #0a2031;
}
.login-mode-tabs button.active {
  color: #f2f8fb;
  background: #102b41;
  box-shadow: inset 0 0 0 1px rgba(76, 151, 199, 0.24);
}
.login-mode-panel {
  display: none;
}
.login-mode-panel.active {
  display: grid;
  animation: loginPanelIn 0.25s ease both;
}
.login-invite-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #1d4057;
  border-radius: 11px;
  background: #081d2c;
}
.login-invite-icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #65d1ff;
  border: 1px solid rgba(70, 156, 205, 0.25);
  background: #0c293b;
}
.login-invite-intro strong,
.login-invite-intro small {
  display: block;
}
.login-invite-intro strong {
  color: #dcecf5;
  font-size: 0.75rem;
}
.login-invite-intro small {
  margin-top: 2px;
  color: #7390a4;
  font-size: 0.65rem;
  line-height: 1.4;
}
.login-code-input input {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "Michroma", var(--bs-font-sans-serif);
  font-size: 0.72rem;
}
.login-secondary-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}
.login-demo-link {
  border: 0;
  background: transparent;
  color: #6f8da2;
  font-size: 0.69rem;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 9px;
}
.login-demo-link:hover {
  color: #b9d8e9;
  background: #0a1c2a;
}
.login-access-column .login-access-foot {
  margin-top: 18px;
}

/* Invitation management in Settings */
.invite-settings-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
}
.invite-create-card,
.invite-list-card {
  overflow: hidden;
}
.invite-create-form {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}
.invite-create-form label {
  display: grid;
  gap: 6px;
}
.invite-create-form label > span {
  color: #7f9bad;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}
.invite-create-form input,
.invite-create-form select {
  height: 42px;
  border: 1px solid #1e3d53;
  border-radius: 10px;
  background: #081a29;
  color: #dce9f1;
  padding: 0 12px;
}
.invite-create-form .invite-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.invite-generated {
  display: none;
  padding: 13px;
  border: 1px solid #245273;
  border-radius: 12px;
  background: #0a2132;
}
.invite-generated.visible {
  display: block;
}
.invite-generated small,
.invite-generated strong {
  display: block;
}
.invite-generated small {
  color: #7594a9;
  font-size: 0.65rem;
}
.invite-generated strong {
  margin-top: 5px;
  font-family: "Michroma", var(--bs-font-sans-serif);
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.08em;
  word-break: break-all;
}
.invite-generated .batch-foot-actions {
  margin-top: 10px;
}
.invite-list {
  display: grid;
  gap: 9px;
  padding: 0 18px 18px;
}
.invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #19374d;
  border-radius: 11px;
  background: #081a29;
}
.invite-row strong,
.invite-row small {
  display: block;
}
.invite-row strong {
  color: #e8f2f7;
  font-size: 0.78rem;
}
.invite-row small {
  margin-top: 3px;
  color: #718da1;
  font-size: 0.64rem;
}
.invite-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.invite-state {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.59rem;
  font-weight: 800;
  border: 1px solid #2d5b50;
  background: #0c2b24;
  color: #77d7b0;
}
.invite-state.expired {
  border-color: #564130;
  background: #2a1b13;
  color: #d5ad79;
}

@keyframes loginBgDrift {
  from {
    transform: scale(1.035) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-14px, -8px, 0);
  }
}
@keyframes loginLineSweep {
  0%,
  100% {
    opacity: 0.12;
    translate: -4% 0;
  }
  50% {
    opacity: 0.55;
    translate: 7% 0;
  }
}
@keyframes loginPanelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .login-shell-v14 {
    grid-template-columns: 1fr;
  }
  .login-visual-panel {
    min-height: 320px;
    padding: 28px 30px;
  }
  .login-visual-copy {
    padding: 36px 0 24px;
  }
  .login-visual-copy h2 {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }
  .login-visual-metrics {
    display: none;
  }
  .login-visual-foot {
    display: none;
  }
  .login-access-column {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid rgba(38, 76, 103, 0.76);
    padding: 36px 0 42px;
  }
  .login-access-inner {
    width: min(500px, calc(100% - 42px));
  }
  .invite-settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .login-visual-panel {
    min-height: 250px;
    padding: 22px;
  }
  .login-visual-copy {
    padding: 28px 0 0;
  }
  .login-visual-copy > p:last-of-type {
    display: none;
  }
  .login-visual-copy h2 {
    font-size: 2rem;
    margin-bottom: 0;
  }
  .login-access-column {
    padding: 28px 0 34px;
  }
  .login-access-inner {
    width: calc(100% - 30px);
  }
  .login-access-column .login-access-top {
    margin-bottom: 22px;
  }
  .login-mode-tabs button {
    font-size: 0.68rem;
  }
  .invite-create-form .invite-form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Shadow Core Phase 6.15 — image-led fullscreen login ===== */
.login-shell-v14 {
  grid-template-columns: minmax(0, 1.65fr) minmax(430px, 0.74fr);
  background: #050f19;
}
.login-visual-panel {
  padding: 38px 48px 42px;
  min-height: 100vh;
}
.login-visual-image {
  background-image: url("../assets/login-hero.jpg");
  background-size: cover;
  background-position: center center;
  transform: scale(1.01);
  animation: loginHeroPan 22s ease-in-out infinite alternate;
  filter: saturate(0.95) contrast(1.04) brightness(0.88);
}
.login-visual-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(3, 12, 21, 0.22) 0%,
      rgba(3, 12, 21, 0.12) 46%,
      rgba(3, 12, 21, 0.48) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 12, 21, 0.1) 0%,
      rgba(3, 12, 21, 0.08) 42%,
      rgba(3, 12, 21, 0.58) 100%
    );
}
.login-visual-lines {
  display: none !important;
}
.login-visual-metrics,
.login-visual-foot {
  display: none !important;
}

.login-visual-brand {
  align-items: center;
  gap: 13px;
}
.login-visual-brand .login-logo-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(5, 20, 33, 0.64);
  border: 1px solid rgba(89, 169, 214, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.login-visual-brand .login-logo-wrap img {
  width: 36px;
  height: 36px;
}
.login-visual-brand strong {
  font-family: "Michroma", var(--bs-font-sans-serif);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.095em;
  color: #f7fbff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}
.login-visual-brand span {
  margin-top: 5px;
  color: #8cc9eb;
  font-size: 0.59rem;
  letter-spacing: 0.22em;
}
.login-visual-copy {
  max-width: 760px;
  margin: auto 0 8vh;
  padding: 44px 0 26px;
}
.login-visual-copy .eyebrow {
  color: #76cff9;
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.login-visual-copy h2 {
  margin: 16px 0 18px;
  font-size: clamp(2.7rem, 4.9vw, 5.7rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: #f8fbff;
  text-shadow: 0 10px 38px rgba(0, 0, 0, 0.48);
}
.login-visual-copy h2 span {
  color: #42c8f7;
  text-shadow:
    0 0 28px rgba(40, 174, 230, 0.24),
    0 10px 38px rgba(0, 0, 0, 0.42);
}
.login-visual-copy > p:last-of-type {
  max-width: 590px;
  color: #d1dee7;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 520;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
}

/* Dotted wave overlay inspired by Mihari blog motion language. */
.login-dot-wave {
  position: absolute;
  left: 5%;
  right: 8%;
  bottom: 5%;
  height: 250px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.62;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 13%,
    #000 78%,
    transparent 100%
  );
}
.login-dot-wave span {
  position: absolute;
  left: 2%;
  width: 78%;
  height: 150px;
  border-radius: 50%;
  background-image: radial-gradient(
    circle,
    rgba(84, 198, 244, 0.52) 1.15px,
    transparent 1.35px
  );
  background-size: 13px 13px;
  transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(77, 190, 238, 0.12));
  mask-image: radial-gradient(
    ellipse at center,
    #000 20%,
    rgba(0, 0, 0, 0.72) 48%,
    transparent 74%
  );
  animation: loginDotWave 11s ease-in-out infinite alternate;
}
.login-dot-wave span:nth-child(1) {
  bottom: 8px;
  rotate: -5deg;
  opacity: 0.72;
}
.login-dot-wave span:nth-child(2) {
  left: 18%;
  bottom: 52px;
  width: 64%;
  rotate: 4deg;
  opacity: 0.42;
  animation-duration: 14s;
  animation-delay: -4s;
}
.login-dot-wave span:nth-child(3) {
  left: -7%;
  bottom: 96px;
  width: 58%;
  rotate: -10deg;
  opacity: 0.25;
  animation-duration: 17s;
  animation-delay: -7s;
}

.login-access-column {
  background: linear-gradient(180deg, #081725 0%, #06131f 100%);
  border-left: 1px solid rgba(45, 82, 108, 0.82);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.22);
}
.login-access-inner {
  width: min(445px, calc(100% - 62px));
}
.login-access-column .login-access-top {
  margin-bottom: 32px;
}
.login-secure-badge {
  color: #a4ddfb;
  border-color: #315c76;
  background: #0b2233;
  font-weight: 850;
}
.login-status-dot {
  color: #7ce4b6;
  font-weight: 850;
}
.login-access-column .login-copy-modern {
  padding: 0 0 22px;
}
.login-access-column .login-copy-modern .eyebrow {
  color: #66c8f5;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.login-access-column .login-copy-modern h1 {
  margin: 10px 0 12px;
  color: #fff;
  font-size: clamp(1.85rem, 2.45vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}
.login-access-column .login-copy-modern > p:last-child {
  color: #b7c9d5;
  font-size: 0.91rem;
  line-height: 1.65;
  font-weight: 540;
}
.login-access-column .login-copy-modern > p:last-child strong {
  color: #f5fbff;
  font-weight: 800;
}
.login-mode-tabs {
  margin-bottom: 18px;
  background: #061522;
  border-color: #25445a;
}
.login-mode-tabs button {
  color: #9bb2c2;
  font-size: 0.75rem;
  font-weight: 800;
}
.login-mode-tabs button.active {
  color: #fff;
  background: #12304a;
  box-shadow: inset 0 0 0 1px rgba(93, 181, 234, 0.26);
}
.login-field-label {
  color: #e8f2f8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.login-input-wrap > i {
  color: #82b8d7;
}
.login-input-wrap input {
  height: 49px;
  background: #071a2a;
  border-color: #315069;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
}
.login-input-wrap input::placeholder {
  color: #718b9d;
  opacity: 1;
}
.login-input-wrap input:focus {
  border-color: #46a8e4;
  background: #092033;
  box-shadow: 0 0 0 4px rgba(58, 158, 222, 0.11);
}
.login-primary-btn {
  height: 50px;
  color: #fff;
  font-weight: 750;
  box-shadow: 0 12px 32px rgba(36, 144, 240, 0.2) !important;
}
.login-invite-intro {
  border-color: #28506a;
  background: #081d2d;
}
.login-invite-intro strong {
  color: #f1f8fc;
  font-weight: 800;
}
.login-invite-intro small {
  color: #99b0c0;
  font-weight: 520;
}
.login-demo-link {
  color: #9bb2c2;
  font-weight: 700;
}
.login-demo-link:hover {
  color: #fff;
}
.login-access-foot {
  color: #718da1;
}
.login-access-foot span:first-child {
  color: #91aabc;
}

@keyframes loginHeroPan {
  0% {
    transform: scale(1.01) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.055) translate3d(-1.2%, -0.7%, 0);
  }
}
@keyframes loginDotWave {
  0% {
    transform: translate3d(-1.5%, 5px, 0) scaleY(0.94);
  }
  50% {
    transform: translate3d(2%, -7px, 0) scaleY(1.06);
  }
  100% {
    transform: translate3d(5%, 4px, 0) scaleY(0.98);
  }
}

@media (max-width: 1100px) {
  .login-shell-v14 {
    grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.82fr);
  }
  .login-visual-panel {
    padding: 32px 34px 36px;
  }
  .login-visual-copy {
    margin: auto 0 5vh;
  }
}
@media (max-width: 980px) {
  .login-shell-v14 {
    grid-template-columns: 1fr;
  }
  .login-visual-panel {
    min-height: 390px;
    padding: 28px 30px;
  }
  .login-visual-image {
    background-position: center 45%;
  }
  .login-visual-copy {
    margin: auto 0 0;
    padding: 48px 0 16px;
  }
  .login-dot-wave {
    height: 160px;
    bottom: 0;
    opacity: 0.45;
  }
  .login-access-column {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid rgba(38, 76, 103, 0.76);
    padding: 38px 0 44px;
  }
  .login-access-inner {
    width: min(500px, calc(100% - 42px));
  }
}
@media (max-width: 560px) {
  .login-visual-panel {
    min-height: 310px;
    padding: 22px;
  }
  .login-visual-brand .login-logo-wrap {
    width: 44px;
    height: 44px;
  }
  .login-visual-brand .login-logo-wrap img {
    width: 32px;
    height: 32px;
  }
  .login-visual-brand strong {
    font-size: 0.78rem;
  }
  .login-visual-copy {
    padding: 34px 0 8px;
  }
  .login-visual-copy h2 {
    font-size: 2.15rem;
  }
  .login-dot-wave {
    height: 120px;
    opacity: 0.35;
  }
  .login-access-column {
    padding: 30px 0 36px;
  }
  .login-access-inner {
    width: calc(100% - 30px);
  }
}

/* ===== Shadow Core Phase 6.16 — full left image + centered brand mark ===== */
.login-visual-panel {
  position: relative;
  overflow: hidden;
  background: #06111d;
}
.login-visual-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  z-index: -4 !important;
  transform: scale(1.015) !important;
  transform-origin: center center !important;
  filter: saturate(0.96) contrast(1.04) brightness(0.88) !important;
  animation: loginHeroImgPan 22s ease-in-out infinite alternate !important;
  background: none !important;
}
.login-visual-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(3, 12, 21, 0.18) 0%,
      rgba(3, 12, 21, 0.08) 52%,
      rgba(3, 12, 21, 0.24) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 12, 21, 0.08) 0%,
      rgba(3, 12, 21, 0.04) 46%,
      rgba(3, 12, 21, 0.52) 100%
    ) !important;
}
.login-visual-brand .login-logo-wrap {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.login-visual-brand .login-logo-wrap img {
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  transform: none !important;
}
@keyframes loginHeroImgPan {
  0% {
    transform: scale(1.015) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.055) translate3d(-0.7%, -0.35%, 0);
  }
}
@media (max-width: 980px) {
  .login-visual-image {
    object-position: center 46% !important;
  }
}

/* ===== Shadow Core Phase 6.17 — TRUE full-bleed left hero ===== */
/*
   The hero image now lives directly on the left grid panel instead of an <img>.
   This removes intrinsic-image sizing conflicts and guarantees that the image
   fills the complete left side up to the login divider.
*/
html,
body {
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding: 0;
}

.login-shell.login-shell-v14 {
  width: 100vw !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  place-items: stretch !important;
  grid-template-columns: minmax(0, 1.72fr) minmax(430px, 0.72fr) !important;
  background: #050f19 !important;
}

.login-shell-v14 .login-visual-panel {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  background-color: #06111d !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  position: relative !important;
  overflow: hidden !important;
}

/* The former image node is no longer required. */
.login-shell-v14 .login-visual-image {
  display: none !important;
}

/* Keep the visual overlay over the full image, never beside it. */
.login-shell-v14 .login-visual-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(
      90deg,
      rgba(3, 12, 21, 0.17) 0%,
      rgba(3, 12, 21, 0.08) 48%,
      rgba(3, 12, 21, 0.28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 12, 21, 0.06) 0%,
      rgba(3, 12, 21, 0.06) 48%,
      rgba(3, 12, 21, 0.46) 100%
    ) !important;
}

.login-shell-v14 .login-visual-brand,
.login-shell-v14 .login-visual-copy,
.login-shell-v14 .login-dot-wave {
  position: relative;
  z-index: 2;
}

/* Logo centered inside its square frame. */
.login-shell-v14 .login-logo-wrap {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
}
.login-shell-v14 .login-logo-wrap img {
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Right login column always starts exactly where the image ends. */
.login-shell-v14 .login-access-column {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 3 !important;
}

/* Preserve full bleed on common desktop widths. */
@media (min-width: 981px) and (max-width: 1250px) {
  .login-shell.login-shell-v14 {
    grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.82fr) !important;
  }
}

/* On tablet/mobile the hero naturally becomes the full-width upper section. */
@media (max-width: 980px) {
  .login-shell.login-shell-v14 {
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }
  .login-shell-v14 .login-visual-panel {
    width: 100% !important;
    min-height: 390px !important;
    background-position: center 45% !important;
  }
}

/* ===== Phase 6.18 login hero refinement ===== */

.login-shell-v14 .login-visual-panel {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding: 36px 34px 38px !important;
}
.login-shell-v14 .login-visual-brand {
  position: absolute !important;
  top: 34px !important;
  left: 34px !important;
  right: auto !important;
  margin: 0 !important;
  z-index: 3 !important;
}
.login-shell-v14 .login-visual-brand div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-shell-v14 .login-visual-brand strong {
  font-size: 1.02rem !important;
  letter-spacing: 0.09em !important;
  color: #f7fbff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}
.login-shell-v14 .login-visual-brand span {
  display: none !important;
}
.login-shell-v14 .login-visual-copy {
  width: min(760px, 78%) !important;
  margin: auto 0 !important;
  padding: 0 !important;
  align-self: flex-start !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 100% !important;
}
.login-shell-v14 .login-visual-copy .eyebrow {
  margin-bottom: 12px !important;
}
.login-shell-v14 .login-visual-copy h2 {
  margin: 8px 0 18px !important;
  max-width: 720px;
}
.login-shell-v14 .login-visual-copy > p:last-of-type {
  max-width: 620px !important;
  color: #f0f6fb !important;
  font-weight: 500 !important;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.32);
}
.login-shell-v14 .login-dot-wave {
  position: absolute !important;
  left: 0 !important;
  width: 100% !important;
  height: 182px !important;
  pointer-events: none !important;
  opacity: 0.42 !important;
  z-index: 1 !important;
}
.login-shell-v14 .login-dot-wave span {
  position: absolute !important;
  display: block !important;
  height: 72px !important;
  border-radius: 50% !important;
  filter: drop-shadow(0 0 10px rgba(88, 198, 244, 0.12));
  background-image: radial-gradient(
    circle,
    rgba(84, 197, 245, 0.62) 1.2px,
    transparent 1.2px
  ) !important;
  background-size: 11px 11px !important;
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 22%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.65) 78%,
    transparent 100%
  ) !important;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 22%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.65) 78%,
    transparent 100%
  ) !important;
  animation: loginWaveFloat 16s linear infinite !important;
}
.login-shell-v14 .login-dot-wave-top {
  top: 62px !important;
}
.login-shell-v14 .login-dot-wave-top span:nth-child(1) {
  left: -4%;
  top: 8px;
  width: 58%;
  transform: rotate(-4deg);
  opacity: 0.42;
}
.login-shell-v14 .login-dot-wave-top span:nth-child(2) {
  left: 18%;
  top: 30px;
  width: 52%;
  transform: rotate(3deg);
  opacity: 0.26;
  animation-duration: 20s;
  animation-delay: -3s;
}
.login-shell-v14 .login-dot-wave-top span:nth-child(3) {
  left: 48%;
  top: 6px;
  width: 40%;
  transform: rotate(-2deg);
  opacity: 0.18;
  animation-duration: 18s;
  animation-delay: -6s;
}
.login-shell-v14 .login-dot-wave-bottom {
  bottom: 16px !important;
}
.login-shell-v14 .login-dot-wave-bottom span:nth-child(1) {
  left: 4%;
  bottom: 16px;
  width: 38%;
  transform: rotate(4deg);
  opacity: 0.32;
}
.login-shell-v14 .login-dot-wave-bottom span:nth-child(2) {
  left: 30%;
  bottom: 42px;
  width: 48%;
  transform: rotate(-3deg);
  opacity: 0.22;
  animation-duration: 18s;
  animation-delay: -2s;
}
.login-shell-v14 .login-dot-wave-bottom span:nth-child(3) {
  left: 58%;
  bottom: 12px;
  width: 34%;
  transform: rotate(5deg);
  opacity: 0.18;
  animation-duration: 21s;
  animation-delay: -8s;
}
@keyframes loginWaveFloat {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(16px) translateY(-4px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}
@media (max-width: 980px) {
  .login-shell-v14 .login-visual-brand {
    top: 24px !important;
    left: 24px !important;
  }
  .login-shell-v14 .login-visual-copy {
    width: min(88%, 680px) !important;
    justify-content: flex-end !important;
    padding: 48px 0 14px !important;
  }
  .login-shell-v14 .login-dot-wave-top {
    top: 42px !important;
  }
  .login-shell-v14 .login-dot-wave-bottom {
    bottom: 4px !important;
  }
}
@media (max-width: 640px) {
  .login-shell-v14 .login-visual-panel {
    padding: 22px 22px 24px !important;
  }
  .login-shell-v14 .login-visual-brand {
    top: 22px !important;
    left: 22px !important;
  }
  .login-shell-v14 .login-visual-brand strong {
    font-size: 0.84rem !important;
  }
  .login-shell-v14 .login-visual-copy {
    width: 92% !important;
    min-height: auto !important;
    padding: 34px 0 0 !important;
  }
  .login-shell-v14 .login-dot-wave {
    height: 120px !important;
    opacity: 0.28 !important;
  }
}

/* ===== Phase 6.19 — visible wave field + brand logo restoration ===== */
/* Ensure the Mihari/Shadow Core mark is always visible beside the company name. */
.login-shell-v14 .login-visual-brand {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  z-index: 6 !important;
}
.login-shell-v14 .login-logo-wrap {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  border: 1px solid rgba(91, 190, 242, 0.58) !important;
  background: rgba(5, 25, 42, 0.82) !important;
  box-shadow:
    0 0 0 1px rgba(92, 196, 246, 0.08) inset,
    0 10px 30px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(42, 160, 225, 0.16) !important;
}
.login-shell-v14 .login-logo-wrap img {
  display: block !important;
  width: 40px !important;
  height: 40px !important;
  max-width: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: brightness(1.25) saturate(1.18)
    drop-shadow(0 0 8px rgba(74, 189, 243, 0.28)) !important;
}
.login-shell-v14 .login-visual-brand strong {
  color: #fff !important;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(90, 190, 239, 0.1) !important;
}

/* Brighter, clearly visible dotted wave overlays. */
.login-shell-v14 .login-dot-wave {
  opacity: 1 !important;
  mix-blend-mode: screen !important;
  z-index: 2 !important;
  overflow: hidden !important;
}
.login-shell-v14 .login-dot-wave span {
  position: absolute !important;
  display: block !important;
  height: 92px !important;
  border-radius: 50% 44% 52% 48% / 56% 48% 52% 44% !important;
  background-color: transparent !important;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.96) 0 1.2px,
    rgba(104, 211, 255, 0.8) 1.3px 1.8px,
    transparent 2px
  ) !important;
  background-size: 12px 12px !important;
  filter: drop-shadow(0 0 4px rgba(129, 221, 255, 0.4)) !important;
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 0 50%,
    rgba(0, 0, 0, 0.86) 66%,
    transparent 82%
  ) !important;
  mask-image: radial-gradient(
    ellipse at center,
    #000 0 50%,
    rgba(0, 0, 0, 0.86) 66%,
    transparent 82%
  ) !important;
  animation: loginDotDrift 9s linear infinite !important;
  will-change: background-position, filter !important;
}
.login-shell-v14 .login-dot-wave-top {
  top: 54px !important;
  height: 210px !important;
}
.login-shell-v14 .login-dot-wave-top span:nth-child(1) {
  left: -6% !important;
  top: 6px !important;
  width: 66% !important;
  opacity: 0.58 !important;
  transform: rotate(-4deg) !important;
  animation-duration: 10s !important;
}
.login-shell-v14 .login-dot-wave-top span:nth-child(2) {
  left: 22% !important;
  top: 42px !important;
  width: 58% !important;
  opacity: 0.38 !important;
  transform: rotate(4deg) !important;
  animation-duration: 13s !important;
  animation-delay: -4s !important;
}
.login-shell-v14 .login-dot-wave-top span:nth-child(3) {
  left: 56% !important;
  top: 2px !important;
  width: 44% !important;
  opacity: 0.28 !important;
  transform: rotate(-3deg) !important;
  animation-duration: 16s !important;
  animation-delay: -7s !important;
}

.login-shell-v14 .login-dot-wave-bottom {
  bottom: 8px !important;
  height: 230px !important;
}
.login-shell-v14 .login-dot-wave-bottom span:nth-child(1) {
  left: -3% !important;
  bottom: 10px !important;
  width: 50% !important;
  opacity: 0.52 !important;
  transform: rotate(5deg) !important;
  animation-duration: 11s !important;
}
.login-shell-v14 .login-dot-wave-bottom span:nth-child(2) {
  left: 26% !important;
  bottom: 55px !important;
  width: 58% !important;
  opacity: 0.34 !important;
  transform: rotate(-4deg) !important;
  animation-duration: 14s !important;
  animation-delay: -5s !important;
}
.login-shell-v14 .login-dot-wave-bottom span:nth-child(3) {
  left: 62% !important;
  bottom: 18px !important;
  width: 42% !important;
  opacity: 0.25 !important;
  transform: rotate(6deg) !important;
  animation-duration: 17s !important;
  animation-delay: -8s !important;
}

@keyframes loginDotDrift {
  0% {
    background-position: 0 0;
    filter: drop-shadow(0 0 4px rgba(129, 221, 255, 0.34)) brightness(1);
  }
  50% {
    background-position: 34px -12px;
    filter: drop-shadow(0 0 7px rgba(129, 221, 255, 0.55)) brightness(1.25);
  }
  100% {
    background-position: 68px -24px;
    filter: drop-shadow(0 0 4px rgba(129, 221, 255, 0.34)) brightness(1);
  }
}

/* Keep text and brand above the animated dot fields. */
.login-shell-v14 .login-visual-copy {
  z-index: 5 !important;
}
.login-shell-v14 .login-visual-overlay {
  z-index: 1 !important;
}

@media (max-width: 980px) {
  .login-shell-v14 .login-logo-wrap {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
  }
  .login-shell-v14 .login-logo-wrap img {
    width: 35px !important;
    height: 35px !important;
  }
  .login-shell-v14 .login-dot-wave-top {
    height: 160px !important;
    top: 36px !important;
  }
  .login-shell-v14 .login-dot-wave-bottom {
    height: 160px !important;
    bottom: 0 !important;
  }
}

/* ===== Shadow Core Phase 6.20 — bottom-only Mihari mesh wave ===== */

/* Disable the previous decorative dot strips completely. */
.login-shell-v14 .login-dot-wave {
  display: none !important;
}

/* Same mesh-language as the Mihari site, restricted to the lower area. */
.login-shell-v14 .login-mesh-wave {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  pointer-events: none !important;
  z-index: 1 !important;
  opacity: 0.92 !important;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 58%,
    rgba(0, 0, 0, 0.18) 64%,
    #000 72%,
    #000 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 58%,
    rgba(0, 0, 0, 0.18) 64%,
    #000 72%,
    #000 96%,
    transparent 100%
  );
}

/* Keep content above the animated surface. */
.login-shell-v14 .login-visual-brand,
.login-shell-v14 .login-visual-copy {
  z-index: 3 !important;
}

@media (max-width: 980px) {
  .login-shell-v14 .login-mesh-wave {
    opacity: 0.72 !important;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 55%,
      #000 72%,
      #000 96%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 55%,
      #000 72%,
      #000 96%,
      transparent 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-shell-v14 .login-mesh-wave {
    opacity: 0.58 !important;
  }
}

/* ===== Phase 6.22 — top-left brand logo + invite code sizing ===== */

/* Guarantee a visible logo at the left of MIHARI INTELLIGENCE. */
.login-shell-v14 .login-visual-brand {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.login-shell-v14 .login-logo-wrap {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  border-radius: 15px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  opacity: 1 !important;
  visibility: visible !important;
  border: 1px solid rgba(95, 194, 247, 0.62) !important;
  background:
    linear-gradient(180deg, rgba(10, 34, 52, 0.88), rgba(5, 20, 34, 0.92)),
    url("../assets/shadowcore-mark.svg") center center / 34px 34px no-repeat !important;
  box-shadow:
    0 0 0 1px rgba(111, 207, 255, 0.08) inset,
    0 10px 24px rgba(0, 0, 0, 0.26),
    0 0 18px rgba(64, 176, 235, 0.18) !important;
}

.login-shell-v14 .login-logo-wrap img {
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Slightly stronger name styling beside the logo. */
.login-shell-v14 .login-visual-brand strong {
  color: #f8fbff !important;
  font-family: "Michroma", var(--bs-font-sans-serif) !important;
  font-size: 1rem !important;
  letter-spacing: 0.08em !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38) !important;
}

/* Invitation code typography reduced a bit. */
.login-shell-v14 .login-code-input input {
  font-family: "Michroma", var(--bs-font-sans-serif) !important;
  font-size: 0.64rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.075em !important;
  line-height: 1.2 !important;
}
.login-shell-v14 .login-code-input input::placeholder {
  font-size: 0.64rem !important;
  letter-spacing: 0.075em !important;
}

@media (max-width: 640px) {
  .login-shell-v14 .login-logo-wrap {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    background-size: 30px 30px !important;
  }
  .login-shell-v14 .login-visual-brand strong {
    font-size: 0.84rem !important;
  }
  .login-shell-v14 .login-code-input input,
  .login-shell-v14 .login-code-input input::placeholder {
    font-size: 0.6rem !important;
  }
}

/* ===== Phase 6.25 — force login logo visible + stable upload UI ===== */

/* An older rule hid every span inside .login-visual-brand.
   This selector is intentionally more specific and comes last. */
.login-shell-v14 .login-visual-brand > .login-logo-wrap {
  display: grid !important;
  place-items: center !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  border-radius: 14px !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: hidden !important;
  border: 1px solid rgba(93, 191, 244, 0.55) !important;
  background: rgba(5, 24, 40, 0.78) !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(57, 171, 233, 0.14) !important;
}

.login-shell-v14 .login-visual-brand > .login-logo-wrap > img {
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: brightness(1.18) saturate(1.08)
    drop-shadow(0 0 7px rgba(69, 187, 244, 0.22)) !important;
}

.login-shell-v14 .login-visual-brand > div {
  display: flex !important;
  align-items: center !important;
}

/* Upload elements update in place; transitions make progress smooth without page flashing. */
[data-upload-progress-bar] {
  transition: width 0.16s linear !important;
}
[data-upload-percent-text],
[data-upload-bytes],
[data-upload-stage],
[data-upload-detail] {
  transition: opacity 0.12s ease !important;
}

@media (max-width: 640px) {
  .login-shell-v14 .login-visual-brand > .login-logo-wrap {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }
  .login-shell-v14 .login-visual-brand > .login-logo-wrap > img {
    width: 31px !important;
    height: 31px !important;
  }
}

/* ===== Phase 6.26 — stable ingestion progress ===== */
.ingestion-transfer-screen {
  max-width: 1180px;
  margin: 0 auto;
}
.ingestion-transfer-screen .batch-progress-big {
  min-width: min(430px, 42vw);
}
.ingestion-transfer-screen .progress i,
.ingestion-timeline-panel .timeline-progress-bar i {
  transition: width 0.18s linear !important;
}
.ingestion-transfer-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.ingestion-transfer-meta > span {
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #081a28;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.ingestion-transfer-meta small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6rem;
}
.ingestion-transfer-meta b {
  color: #fff;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 850px) {
  .ingestion-transfer-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Phase 6.28 — Client Domain Analysis / Exposure Intelligence ===== */
.sc-domain-analysis-card {
  border-color: #1e4964 !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
}
.sc-analysis-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.sc-analysis-metric {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #183e57;
  border-radius: 12px;
  background: #071a28;
}
.sc-analysis-metric > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #0d2a3d;
  border: 1px solid #255775;
  color: #5bc8f4;
  flex: 0 0 auto;
}
.sc-analysis-metric div {
  min-width: 0;
}
.sc-analysis-metric small {
  display: block;
  color: #7195ad;
  text-transform: uppercase;
  font-size: 0.56rem;
  letter-spacing: 0.075em;
  margin-bottom: 4px;
}
.sc-analysis-metric b {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-analysis-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #1d4560;
  background: #061622;
  border-radius: 12px;
  padding: 8px 9px 8px 13px;
  margin-bottom: 12px;
}
.sc-analysis-search > i {
  color: #59c8f4;
}
.sc-analysis-search input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #f7fbff !important;
  box-shadow: none !important;
  padding: 7px 2px !important;
}
.sc-analysis-search input::placeholder {
  color: #6c8ca2;
}
.sc-analysis-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}
.sc-analysis-meta span {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #183e57;
  border-radius: 10px;
  background: #081925;
}
.sc-analysis-meta small {
  display: block;
  color: #6f93aa;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}
.sc-analysis-meta b {
  display: block;
  color: #eaf7ff;
  font-size: 0.72rem;
}
.sc-analysis-table-wrap {
  border: 1px solid #173b53;
  border-radius: 12px;
  overflow: hidden;
}
.sc-analysis-table td strong {
  display: block;
  color: #f4fbff;
  font-size: 0.72rem;
}
.sc-analysis-table td small {
  display: block;
  color: #668aa2;
  font-size: 0.61rem;
  margin-top: 3px;
}
.sc-analysis-foot {
  color: #718ea3;
  font-size: 0.65rem;
  padding: 10px 2px 0;
}
.sc-analysis-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(1, 8, 14, 0.62);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: flex-end;
}
.sc-analysis-drawer {
  width: min(520px, 94vw);
  height: 100%;
  background: #071724;
  border-left: 1px solid #24536e;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.38);
  animation: scDrawerIn 0.22s ease-out;
}
@keyframes scDrawerIn {
  from {
    transform: translateX(36px);
    opacity: 0.2;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.sc-analysis-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid #183d55;
}
.sc-analysis-drawer-head h3 {
  margin: 2px 0 0;
  color: #fff;
}
.sc-analysis-drawer-body {
  padding: 20px 22px;
  overflow: auto;
  height: calc(100% - 82px);
}
.sc-analysis-drawer-hero {
  padding: 18px;
  border: 1px solid #1b465f;
  border-radius: 13px;
  background: linear-gradient(135deg, #0a2132, #071722);
  margin-bottom: 13px;
}
.sc-analysis-drawer-hero h4 {
  color: #fff;
  margin: 10px 0 5px;
  font-size: 1.22rem;
}
.sc-analysis-drawer-hero p {
  color: #76a0b8;
  margin: 0;
  word-break: break-word;
}
.sc-analysis-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.sc-analysis-detail-grid span {
  min-height: 72px;
  border: 1px solid #173c54;
  background: #081925;
  border-radius: 11px;
  padding: 11px 12px;
}
.sc-analysis-detail-grid small {
  display: block;
  color: #6f93aa;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.56rem;
  margin-bottom: 5px;
}
.sc-analysis-detail-grid b {
  display: block;
  color: #f4f9fc;
  font-size: 0.7rem;
  word-break: break-word;
}
@media (max-width: 1250px) {
  .sc-analysis-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .sc-analysis-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sc-analysis-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sc-analysis-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Phase 6.29 — Live Intelligence + real Threat Evolution ===== */
.sc8-feed-type.correlation {
  color: #a98cff !important;
  background: rgba(152, 118, 255, 0.12) !important;
  border-color: rgba(152, 118, 255, 0.28) !important;
}
.sc8-threat-summary-four {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.sc8-threat-summary i.family {
  background: #53c8ed !important;
  box-shadow: 0 0 0 4px rgba(83, 200, 237, 0.08);
}
.sc8-threat-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 18px 0;
}
.sc8-threat-controls button {
  appearance: none;
  border: 1px solid #1e4661;
  border-radius: 8px;
  background: #071925;
  color: #7598ad;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  transition: 0.16s ease;
}
.sc8-threat-controls button:hover {
  color: #dff6ff;
  border-color: #2d6a8d;
}
.sc8-threat-controls button.active {
  color: #fff;
  border-color: #35b7db;
  background: #0c3043;
  box-shadow: 0 0 0 1px rgba(53, 183, 219, 0.08) inset;
}
.sc8-threat-axis {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.sc8-threat-axis span {
  color: #54768b;
  font-size: 0.53rem;
  letter-spacing: 0.04em;
}
.sc8-area-chart {
  position: relative;
}
.sc8-feed-row {
  min-height: 58px;
}
.sc8-feed-row strong {
  color: #f4fbff;
}
.sc8-feed-row small {
  color: #7092a8 !important;
}
@media (max-width: 980px) {
  .sc8-threat-summary-four {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ===== Phase 6.30 — Bot Intelligence in Ingestion ===== */
.parser-lab-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.parser-lab code {
  font-size: 0.65rem;
  color: #8edcf8;
  background: #071923;
  border: 1px solid #183d52;
  border-radius: 5px;
  padding: 2px 5px;
}

.bot-intelligence-panel {
  border-color: #1a465d !important;
  background:
    radial-gradient(
      circle at 82% 0%,
      rgba(48, 184, 255, 0.07),
      transparent 32%
    ),
    var(--panel, #081722);
}
.bot-intelligence-head {
  align-items: flex-start !important;
}
.bot-intel-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.bot-rule-count {
  font-size: 0.62rem;
  color: #7798ad;
  border: 1px solid #183d53;
  background: #061721;
  border-radius: 8px;
  padding: 7px 9px;
}
.bot-live-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #32d69b;
  margin-right: 5px;
  box-shadow: 0 0 0 4px rgba(50, 214, 155, 0.09);
  animation: botPulse 1.8s infinite;
}
@keyframes botPulse {
  0%,
  100% {
    opacity: 0.55;
    box-shadow: 0 0 0 2px rgba(50, 214, 155, 0.08);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(50, 214, 155, 0.02);
  }
}

.bot-intel-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid #14364a;
  border-bottom: 1px solid #14364a;
  background: #061722;
}
.bot-intel-toolbar label {
  min-width: min(520px, 100%);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #071d2a;
  border: 1px solid #1a455f;
  border-radius: 10px;
  padding: 0 11px;
}
.bot-intel-toolbar label i {
  color: #55c7f1;
}
.bot-intel-toolbar input {
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: #eefaff !important;
  padding: 10px 0 !important;
  font-size: 0.72rem;
}
.bot-intel-toolbar input::placeholder {
  color: #58798f;
}
.bot-intel-toolbar > span {
  color: #62859b;
  font-size: 0.6rem;
}
.bot-intel-toolbar > span b {
  color: #a8c6d8;
  font-weight: 700;
}

.bot-intelligence-body {
  padding: 0 !important;
  overflow: hidden;
}
.bot-intel-table-wrap {
  overflow: auto;
  max-height: 520px;
}
.bot-intel-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
}
.bot-intel-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #071924;
  color: #5f8299;
  text-transform: uppercase;
  letter-spacing: 0.065em;
  font-size: 0.54rem;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid #173b50;
  white-space: nowrap;
}
.bot-intel-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(24, 60, 81, 0.72);
  vertical-align: middle;
  color: #c8dce8;
  font-size: 0.66rem;
}
.bot-intel-table tbody tr {
  transition: 0.14s ease;
  background: rgba(6, 20, 30, 0.45);
}
.bot-intel-table tbody tr:hover {
  background: rgba(22, 62, 84, 0.34);
}
.bot-intel-table td > small,
.bot-primary small,
.bot-country small,
.bot-intel-table td small {
  display: block;
  color: #607f93;
  font-size: 0.56rem;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}
.bot-primary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
}
.bot-primary b {
  color: #f2fbff;
  font-size: 0.68rem;
  letter-spacing: 0.025em;
}
.bot-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #32d69b;
  box-shadow: 0 0 0 4px rgba(50, 214, 155, 0.07);
  flex: 0 0 auto;
}
.bot-country {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bot-country > i {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1;
}
.bot-country b {
  color: #eaf7fd;
  font-size: 0.65rem;
}
.bot-ip {
  padding-left: 27px;
}
.bot-machine {
  display: block;
  color: #eaf6fc;
  font-size: 0.66rem;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bot-family {
  display: inline-flex;
  align-items: center;
  border: 1px solid #275473;
  background: #0a2738;
  color: #8edcf8;
  padding: 4px 7px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 0.61rem;
}
.bot-family.xl {
  font-size: 0.7rem;
  padding: 5px 9px;
}
.bot-number {
  color: #fff;
  font-size: 0.78rem;
}
.bot-date {
  color: #deedf5;
  font-size: 0.64rem;
}
.bot-confidence {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bot-confidence > b {
  font-size: 0.64rem;
  color: #dcedf6;
  min-width: 30px;
}
.bot-confidence > i {
  display: block;
  width: 58px;
  height: 5px;
  border-radius: 8px;
  background: #132f40;
  overflow: hidden;
}
.bot-confidence > i > em {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: #6c8ea3;
}
.bot-confidence.very-high > i > em {
  background: #32d69b;
}
.bot-confidence.high > i > em {
  background: #48bde8;
}
.bot-confidence.medium > i > em {
  background: #e1b24f;
}
.bot-confidence.low > i > em {
  background: #708a9a;
}
.bot-detail-btn {
  white-space: nowrap;
}
.bot-intel-empty {
  padding: 42px 20px;
  text-align: center;
  color: #64869a;
  display: grid;
  place-items: center;
  gap: 7px;
}
.bot-intel-empty i {
  font-size: 1.55rem;
  color: #4fbfe8;
}
.bot-intel-empty strong {
  color: #d7e9f2;
}
.bot-intel-empty span {
  font-size: 0.65rem;
  max-width: 620px;
}

/* detail drawer */
.bot-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0, 8, 14, 0.66);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: flex-end;
}
.bot-detail-drawer {
  width: min(720px, 96vw);
  height: 100%;
  background: #061621;
  border-left: 1px solid #22516b;
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.42);
  animation: botDrawerIn 0.2s ease-out;
}
@keyframes botDrawerIn {
  from {
    opacity: 0.2;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.bot-detail-head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid #173b50;
  background: #071925;
}
.bot-detail-head h3 {
  color: #fff;
  margin: 2px 0 2px;
  font-size: 1.05rem;
}
.bot-detail-head > div > span {
  color: #66899f;
  font-size: 0.61rem;
}
.bot-detail-scroll {
  height: calc(100% - 82px);
  overflow: auto;
  padding: 16px 18px 28px;
}
.bot-profile-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid #1c4962;
  border-radius: 13px;
  background: linear-gradient(135deg, #0a2434, #071923);
  margin-bottom: 12px;
}
.bot-profile-hero h4 {
  color: #f5fbff;
  margin: 7px 0 3px;
  font-size: 0.9rem;
}
.bot-profile-hero p {
  margin: 0;
  color: #6d91a8;
  font-size: 0.62rem;
  word-break: break-word;
}
.bot-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.bot-detail-grid span {
  min-height: 66px;
  border: 1px solid #173b50;
  background: #071823;
  border-radius: 10px;
  padding: 10px;
}
.bot-detail-grid small {
  display: block;
  color: #63859a;
  text-transform: uppercase;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.bot-detail-grid b {
  display: block;
  color: #ecf7fc;
  font-size: 0.63rem;
  word-break: break-word;
}
.bot-detail-section {
  border: 1px solid #173c52;
  border-radius: 12px;
  background: #071722;
  margin-top: 10px;
  overflow: hidden;
}
.bot-detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid #15374b;
}
.bot-detail-section-head h4 {
  margin: 0;
  color: #eaf6fc;
  font-size: 0.72rem;
}
.bot-detail-section-head span {
  color: #63869a;
  font-size: 0.56rem;
}
.bot-rule-hits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 10px;
}
.bot-rule-hits span {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  border: 1px solid #173c52;
  background: #081b27;
  border-radius: 9px;
  padding: 8px;
}
.bot-rule-hits i {
  color: #35d39d;
}
.bot-rule-hits b {
  color: #dcedf5;
  font-size: 0.6rem;
}
.bot-rule-hits small {
  color: #66889d;
  font-size: 0.54rem;
}
.bot-artifact-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
}
.bot-artifact-cloud span {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid #1c455c;
  background: #081d2a;
  color: #9ebccc;
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 0.56rem;
}
.bot-domain-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
}
.bot-domain-list span {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #b7d0dd;
  border: 1px solid #173b50;
  background: #071c28;
  border-radius: 8px;
  padding: 7px;
  font-size: 0.58rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bot-domain-list i {
  color: #55c8ef;
}
.bot-exposure-list {
  padding: 6px 10px 10px;
}
.bot-exposure-list > div {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 3px;
  border-bottom: 1px solid #143448;
}
.bot-exposure-list > div:last-child {
  border-bottom: 0;
}
.bot-exposure-list b {
  display: block;
  color: #dcebf3;
  font-size: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bot-exposure-list small {
  display: block;
  color: #66889d;
  font-size: 0.54rem;
  margin-top: 2px;
}
.bot-detail-empty {
  padding: 18px;
  color: #66889d;
  font-size: 0.61rem;
  text-align: center;
}

@media (max-width: 1100px) {
  .parser-lab-grid-3 {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 780px) {
  .bot-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bot-rule-hits,
  .bot-domain-list {
    grid-template-columns: 1fr;
  }
  .bot-profile-hero {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .bot-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================================
   Phase 6.31 — Ingestion visual refresh + contextual batch deletion
   ====================================================================== */

.btn {
  border-radius: 10px !important;
  font-weight: 760 !important;
  letter-spacing: 0.012em;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.16) !important;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease,
    border-color 0.16s ease !important;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.22) !important;
}
.btn:active {
  transform: translateY(0) scale(0.985);
}
.btn-primary {
  --bs-btn-bg: #168bd7 !important;
  --bs-btn-border-color: #31b8ff !important;
  --bs-btn-hover-bg: #1ca1ef !important;
  --bs-btn-hover-border-color: #63cbff !important;
  background: linear-gradient(135deg, #1587d2, #22a8e9) !important;
  border-color: #3abaff !important;
  color: #fff !important;
}
.btn-danger {
  --bs-btn-bg: #c93e52 !important;
  --bs-btn-border-color: #df5969 !important;
  background: linear-gradient(135deg, #a92c42, #d84a5e) !important;
  border-color: #e46271 !important;
  color: #fff !important;
}
.btn-warning {
  background: linear-gradient(135deg, #b77b20, #d99a2e) !important;
  border-color: #eab04b !important;
  color: #fff !important;
}
.btn-success {
  background: linear-gradient(135deg, #13855f, #1bab7c) !important;
  border-color: #35c997 !important;
  color: #fff !important;
}
.btn-ghost {
  background: #0b1c29 !important;
  border-color: #29465b !important;
  color: #a8becc !important;
  box-shadow: none !important;
}
.btn-ghost:hover {
  background: #112a3b !important;
  border-color: #3e6680 !important;
  color: #f2f9fc !important;
}

.small-btn {
  border-radius: 9px !important;
  border-color: #2c5b79 !important;
  background: linear-gradient(180deg, #102b3e, #0b2232) !important;
  color: #c3dfef !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
}
.small-btn:hover {
  border-color: #4a8fb8 !important;
  background: linear-gradient(180deg, #173c54, #102d40) !important;
}

.ingestion-new-batch-btn {
  min-height: 48px !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 12px !important;
  font-size: 0.86rem !important;
}
.ingestion-new-batch-btn i {
  font-size: 1rem;
}

.ingest-hero-modern {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: 25px !important;
  border: 1px solid #204c67 !important;
  background:
    radial-gradient(
      circle at 84% 8%,
      rgba(48, 184, 255, 0.13),
      transparent 28%
    ),
    radial-gradient(
      circle at 14% 100%,
      rgba(116, 88, 255, 0.08),
      transparent 32%
    ),
    linear-gradient(145deg, #081c29, #071620 65%, #07141d) !important;
}
.ingest-hero-modern:before {
  content: "";
  position: absolute;
  inset: -2px auto auto 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #31b8ff,
    #9f73ff,
    transparent
  );
  filter: drop-shadow(0 0 7px #31b8ff);
  animation: ingestionBeam 5s ease-in-out infinite;
}
@keyframes ingestionBeam {
  0%,
  100% {
    transform: translateX(-20%);
    opacity: 0.4;
  }
  50% {
    transform: translateX(155%);
    opacity: 1;
  }
}
.ingest-live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #87d9fb;
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  border: 1px solid #275974;
  background: rgba(10, 39, 56, 0.68);
  border-radius: 999px;
  padding: 6px 10px;
}
.ingest-live-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #37d7a0;
  box-shadow: 0 0 0 5px rgba(55, 215, 160, 0.08);
}
.ingest-copy h2 {
  font-size: 1.68rem !important;
  letter-spacing: -0.025em;
  color: #f4fbff !important;
  margin: 0.65rem 0 0.35rem !important;
}
.ingest-copy > p:last-child {
  max-width: 720px !important;
  color: #8ea9ba !important;
  font-size: 0.8rem !important;
}

.pipeline-strip-modern {
  position: relative;
  border-color: #1c4258 !important;
  border-radius: 13px !important;
  background: rgba(4, 16, 24, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}
.pipeline-strip-modern div {
  position: relative;
  min-height: 82px !important;
  padding: 13px !important;
  background: linear-gradient(
    180deg,
    rgba(13, 38, 54, 0.9),
    rgba(7, 25, 37, 0.94)
  ) !important;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}
.pipeline-strip-modern div:hover {
  transform: translateY(-3px);
  background: linear-gradient(
    180deg,
    rgba(18, 54, 75, 0.98),
    rgba(9, 31, 44, 0.98)
  ) !important;
}
.pipeline-strip-modern div > i {
  display: block;
  color: #5dc9f4;
  font-size: 0.88rem;
  margin-bottom: 7px;
  opacity: 0.9;
}
.pipeline-strip-modern div:nth-child(4n + 2) > i {
  color: #a78aff;
}
.pipeline-strip-modern div:nth-child(4n + 3) > i {
  color: #45d5a2;
}
.pipeline-strip-modern div:nth-child(4n + 4) > i {
  color: #f2b651;
}
.pipeline-strip-modern span {
  position: absolute;
  right: 9px;
  top: 8px;
  color: #31556a !important;
  font-size: 0.55rem !important;
}
.pipeline-strip-modern b {
  margin-top: 0 !important;
  color: #bcd2df !important;
  font-size: 0.65rem !important;
}

.section-kicker {
  margin: 0 0 4px !important;
  font-size: 0.56rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}
.section-kicker.cyan {
  color: #50c5f1 !important;
}
.section-kicker.purple {
  color: #a88cff !important;
}
.jobs-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid #234d65;
  background: #091e2b;
  color: #7fb9d6;
  font-size: 0.61rem;
  font-weight: 750;
}

.ingestion-capabilities {
  border-color: #1b4056 !important;
}
.capability-strip {
  gap: 9px !important;
}
.capability-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 7px !important;
  padding: 8px 11px !important;
  border-radius: 9px !important;
  font-weight: 720 !important;
  font-size: 0.65rem !important;
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease !important;
}
.capability-chip:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.capability-chip i {
  font-size: 0.75rem;
}
.capability-chip.cap-blue {
  border-color: #235e80 !important;
  color: #86d8fa !important;
  background: #09263a !important;
}
.capability-chip.cap-purple {
  border-color: #4f4382 !important;
  color: #bea8ff !important;
  background: #1b1838 !important;
}
.capability-chip.cap-cyan {
  border-color: #246779 !important;
  color: #79e1ed !important;
  background: #092b32 !important;
}
.capability-chip.cap-green {
  border-color: #27624f !important;
  color: #83ddb9 !important;
  background: #0b2921 !important;
}
.capability-chip.cap-amber {
  border-color: #725b2e !important;
  color: #edc976 !important;
  background: #2a210f !important;
}

.parser-lab {
  border-color: #243f5e !important;
  background:
    radial-gradient(
      circle at 95% 0%,
      rgba(142, 102, 255, 0.065),
      transparent 28%
    ),
    #081722 !important;
}
.parser-lab-grid-3 > div {
  position: relative;
  min-height: 148px;
  padding: 15px;
  border: 1px solid #1a3a50;
  border-radius: 12px;
  background: linear-gradient(145deg, #0a1d2a, #081722);
  overflow: hidden;
}
.parser-lab-grid-3 > div:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #3bbbf1;
  opacity: 0.8;
}
.parser-lab-grid-3 > div:nth-child(2):before {
  background: #9c7cff;
}
.parser-lab-grid-3 > div:nth-child(3):before {
  background: #e4b24e;
}
.parser-label {
  font-size: 0.58rem !important;
  letter-spacing: 0.12em !important;
  color: #7195aa !important;
}
.parser-family-list span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px;
  padding: 8px 10px !important;
  border-radius: 9px !important;
  transition:
    transform 0.16s ease,
    filter 0.16s ease;
}
.parser-family-list span:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}
.parser-family-list span b {
  font-size: 0.67rem;
}
.parser-family-list span i {
  margin-left: 0 !important;
  font-size: 0.53rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.parser-family-list .parser-tone-0 {
  border-color: #2a6282 !important;
  background: #0a293b !important;
  color: #83d7f7 !important;
}
.parser-family-list .parser-tone-1 {
  border-color: #4f4382 !important;
  background: #1b1937 !important;
  color: #beaaff !important;
}
.parser-family-list .parser-tone-2 {
  border-color: #2c6553 !important;
  background: #0c2b23 !important;
  color: #86dfbc !important;
}
.parser-family-list .parser-tone-3 {
  border-color: #735c2f !important;
  background: #2a2111 !important;
  color: #ecc778 !important;
}

.ingestion-history-panel {
  overflow: visible !important;
  border-color: #1b4057 !important;
}
.ingestion-history-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #8bdcff;
  background: linear-gradient(145deg, #0e3146, #0a2232);
  border: 1px solid #285978;
  box-shadow: inset 0 0 18px rgba(50, 184, 255, 0.06);
}
.section-icon i {
  font-size: 0.95rem;
}
.ingestion-history-head h2 {
  margin: 0 !important;
  font-size: 1.05rem !important;
  color: #edf8fd !important;
}
.ingestion-history-head p {
  margin: 4px 0 0 !important;
  color: #718fa2 !important;
  font-size: 0.67rem !important;
}
.ingestion-view-tabs {
  gap: 5px !important;
  padding: 5px !important;
  border-color: #1d4359 !important;
  border-radius: 11px !important;
  background: #06151f !important;
}
.ingestion-view-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0.45rem 0.72rem !important;
  border-radius: 8px !important;
  color: #6f91a6 !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.01em;
  transition: 0.16s ease !important;
}
.ingestion-view-tabs button i {
  font-size: 0.72rem;
}
.ingestion-view-tabs button:hover {
  background: #0d293c !important;
  color: #c9e2ef !important;
}
.ingestion-view-tabs button.active {
  color: #eefaff !important;
  background: linear-gradient(135deg, #123852, #154965) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}
.ingestion-view-tabs span {
  height: 18px !important;
  min-width: 18px !important;
  font-size: 0.57rem !important;
  background: #092235 !important;
}

.batch-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 16px !important;
}
.batch-card-modern {
  position: relative;
  overflow: visible;
  padding: 14px !important;
  border-radius: 12px !important;
  border: 1px solid #1b3d53 !important;
  background: linear-gradient(150deg, #0a1c29, #071621) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  cursor: default !important;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease !important;
}
.batch-card-modern:hover {
  transform: translateY(-3px);
  border-color: #2f6988 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  background: linear-gradient(150deg, #0d2231, #081923) !important;
}
.batch-card-accent {
  position: absolute;
  left: 18px;
  right: 18px;
  top: -1px;
  height: 2px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(
    90deg,
    transparent,
    #39bdf1,
    #8c75ff,
    transparent
  );
  opacity: 0.65;
}
.batch-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.dataset-icon {
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center;
  border-radius: 9px;
  background: #0c2b3d;
  border: 1px solid #235472;
  color: #62cbf4;
  flex: 0 0 auto;
}
.batch-card-title > div {
  min-width: 0;
}
.batch-card-title p {
  margin: 0;
  color: #eef9fd;
  font-size: 0.72rem;
  font-weight: 780;
}
.batch-card-title small {
  display: block;
  color: #67879b;
  font-size: 0.57rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.batch-card-actions {
  gap: 5px !important;
}
.batch-more {
  width: 31px !important;
  height: 31px !important;
  border-radius: 8px !important;
  border-color: #274a60 !important;
  background: #091b28 !important;
  transition: 0.16s ease !important;
}
.batch-more:hover {
  transform: translateY(-1px);
  background: #123247 !important;
  border-color: #387497 !important;
}
.batch-view-state {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 4px 6px !important;
  border-radius: 7px !important;
  font-size: 0.53rem !important;
  font-weight: 780 !important;
}
.batch-meta-line {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
}
.batch-meta-line span {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin: 0 !important;
  border: 1px solid #1b3b50;
  background: #081923;
  color: #7898ab;
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 0.56rem !important;
}
.batch-meta-line i {
  color: #4dbce9;
}
.batch-progress-modern > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.batch-progress-modern > div:first-child span {
  margin: 0 !important;
  color: #7c9caf;
  font-size: 0.58rem !important;
  font-weight: 700;
}
.batch-progress-modern > div:first-child b {
  color: #b7d9e9;
  font-size: 0.59rem;
}
.batch-progress-modern .progress {
  height: 5px !important;
  background: #102b3b !important;
}
.batch-progress-modern .progress i {
  background: linear-gradient(90deg, #1a92d8, #39c5f2) !important;
  box-shadow: 0 0 12px rgba(57, 197, 242, 0.24);
}
.batch-progress-modern > small {
  display: block;
  margin-top: 6px;
  color: #5f7f92;
  font-size: 0.53rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batch-stats-six {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin-top: 12px !important;
}
.batch-stats-six > div {
  min-height: 52px;
  padding: 8px !important;
  border-radius: 8px !important;
  border: 1px solid #17384c !important;
  background: #081923 !important;
  text-align: center;
}
.batch-stats-six b {
  font-size: 0.73rem !important;
  color: #e8f6fc !important;
}
.batch-stats-six small {
  font-size: 0.52rem !important;
  color: #627f91 !important;
  margin-top: 3px !important;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.batch-card-foot {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #153447;
  align-items: center !important;
}
.batch-card-foot > span {
  display: flex !important;
  align-items: center;
  gap: 5px;
  margin: 0 !important;
  color: #607f91 !important;
  font-size: 0.55rem !important;
}
.batch-foot-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.batch-foot-actions .btn,
.batch-detail-actions .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 38px !important;
  padding: 0.54rem 0.92rem !important;
  border-radius: 12px !important;
  font-size: 0.64rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  text-transform: none !important;
  box-shadow: 0 10px 22px rgba(3, 10, 18, 0.16) !important;
  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease !important;
}
.batch-foot-actions .btn:hover,
.batch-detail-actions .btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px rgba(3, 10, 18, 0.24) !important;
}
.batch-foot-actions .btn i,
.batch-detail-actions .btn i {
  font-size: 0.8rem !important;
  line-height: 1;
}
.batch-action-view {
  background: linear-gradient(180deg, #0f4464, #0b2e45) !important;
  border: 1px solid #2d77a2 !important;
  color: #e8f8ff !important;
}
.batch-action-view:hover {
  background: linear-gradient(180deg, #145477, #103850) !important;
  border-color: #4ca1d1 !important;
  color: #fff !important;
}
.batch-action-archive {
  background: linear-gradient(180deg, #7a5c1d, #4f3b10) !important;
  border: 1px solid #a57c2a !important;
  color: #fff4cf !important;
}
.batch-action-archive:hover {
  background: linear-gradient(180deg, #8c6a21, #614714) !important;
  border-color: #d7a84f !important;
  color: #fff !important;
}
.batch-action-restore {
  background: linear-gradient(180deg, #116447, #0b432f) !important;
  border: 1px solid #24906a !important;
  color: #e7fff6 !important;
}
.batch-action-restore:hover {
  background: linear-gradient(180deg, #167656, #0f5139) !important;
  border-color: #44c394 !important;
  color: #fff !important;
}
.batch-action-delete {
  background: linear-gradient(180deg, #9c2c41, #6c1828) !important;
  border: 1px solid #d15a71 !important;
  color: #fff0f3 !important;
}
.batch-action-delete:hover {
  background: linear-gradient(180deg, #b2354e, #7a1e30) !important;
  border-color: #f58aa0 !important;
  color: #fff !important;
}

.batch-menu {
  min-width: 210px !important;
  padding: 6px !important;
  border-color: #31556d !important;
  border-radius: 10px !important;
  background: #071722 !important;
}
.batch-menu button {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  border-radius: 10px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  padding: 0.62rem 0.72rem !important;
  border: 1px solid transparent;
  background: #0d2230;
  color: #d9eaf4;
}
.batch-menu button:hover {
  background: #14354a !important;
  border-color: #295775 !important;
  color: #fff !important;
}
.batch-menu button.danger {
  background: #2d171d !important;
  border-color: #71313d !important;
  color: #ffd6dc !important;
}
.batch-menu button.danger i {
  color: #f06d7e !important;
}
.batch-menu button.danger:hover {
  background: #451d27 !important;
  border-color: #a84a59 !important;
  color: #fff !important;
}

.batch-delete-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1700;
  background: rgba(0, 7, 13, 0.72);
  backdrop-filter: blur(7px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.batch-delete-dialog {
  width: min(540px, 100%);
  border: 1px solid #63303a;
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 0%, rgba(224, 72, 93, 0.11), transparent 30%),
    #091923;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  padding: 22px;
  animation: deleteDialogIn 0.17s ease-out;
}
@keyframes deleteDialogIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.batch-delete-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #341921;
  border: 1px solid #7a3442;
  color: #ff8d9b;
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.batch-delete-copy h3 {
  margin: 2px 0 8px;
  color: #f7fbfd;
  font-size: 1.08rem;
}
.batch-delete-copy > p {
  margin: 0;
  color: #88a3b4;
  font-size: 0.72rem;
  line-height: 1.55;
}
.batch-delete-copy > p b {
  color: #dbeaf2;
}
.batch-delete-safety {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border-radius: 10px;
  background: #0b2822;
  border: 1px solid #275c4b;
  color: #93d3ba;
  font-size: 0.65rem;
  line-height: 1.45;
}
.batch-delete-safety i {
  margin-top: 1px;
  color: #55d5a5;
}
.batch-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.batch-delete-actions .btn {
  min-height: 39px !important;
  font-size: 0.7rem !important;
}

@media (max-width: 1450px) {
  .batch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 900px) {
  .batch-grid {
    grid-template-columns: 1fr !important;
  }
  .ingestion-history-head {
    align-items: flex-start !important;
  }
  .ingestion-view-tabs {
    width: 100%;
    overflow: auto;
  }
}
@media (max-width: 620px) {
  .pipeline-strip-modern {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .batch-delete-actions {
    flex-direction: column-reverse;
  }
  .batch-delete-actions .btn {
    width: 100%;
  }
}

/* ======================================================================
   Phase 6.32 — Global Michroma typography + compact Ingestion hierarchy
   ====================================================================== */

/* The login typeface is now the UI typeface everywhere. */
html,
body,
button,
input,
select,
textarea,
.app-shell,
.sidebar,
.topbar,
.workspace,
.panel,
.modal-card,
.drawer,
table,
th,
td,
label,
small,
strong,
b,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
a {
  font-family:
    "Michroma", "Eurostile Extended", "Microgramma D Extended", "Bank Gothic",
    "Bahnschrift", sans-serif !important;
}

html {
  font-size: 16px;
}
body {
  font-size: 14px !important;
  letter-spacing: 0.005em;
}
button,
input,
select,
textarea {
  font-size: 0.78rem !important;
}
.page-head h1 {
  font-family:
    "Michroma", "Eurostile Extended", "Microgramma D Extended", "Bank Gothic",
    "Bahnschrift", sans-serif !important;
  font-size: 1.72rem !important;
  font-weight: 400 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.18 !important;
}
.page-head .eyebrow {
  font-size: 0.62rem !important;
  letter-spacing: 0.13em !important;
}
.page-head > div > p:not(.eyebrow) {
  font-size: 0.72rem !important;
}
.panel-head h2 {
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  letter-spacing: -0.012em;
}
.panel-head p {
  font-size: 0.68rem !important;
}
.eyebrow,
.section-kicker,
.nav-caption {
  text-transform: uppercase;
}

/* Ingestion: remove visual dead-space now that the hero card is gone. */
.ingestion-kpis-clean {
  margin-top: 2px !important;
  margin-bottom: 12px !important;
}
.ingestion-kpis-clean .kpi-card {
  min-height: 108px !important;
  padding: 17px 16px !important;
  background: linear-gradient(145deg, #0b1d2b, #081720) !important;
  border-color: #1d4056 !important;
}
.ingestion-kpis-clean .kpi-top {
  font-size: 0.68rem !important;
  letter-spacing: 0.025em;
}
.ingestion-kpis-clean .kpi-value {
  font-size: 1.55rem !important;
  font-weight: 400 !important;
  letter-spacing: -0.035em;
}
.ingestion-kpis-clean .kpi-foot {
  display: none !important;
}

/* Parser Lab: only the three meaningful blocks. */
.parser-lab-clean {
  overflow: hidden !important;
}
.parser-lab-clean > .panel-head {
  padding-bottom: 11px !important;
}
.parser-lab-clean .parser-lab-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.parser-lab-card {
  min-height: 132px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
}
.parser-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.parser-card-top .parser-count {
  font-size: 1.28rem !important;
  font-weight: 400 !important;
  color: #eef9fd !important;
}
.parser-family-list {
  margin-top: 16px !important;
}
.parser-family-list span {
  min-height: 34px !important;
  padding: 7px 10px !important;
}
.parser-family-list span b {
  font-size: 0.63rem !important;
  font-weight: 400 !important;
}
.parser-card-action {
  width: fit-content;
  min-width: 132px;
  min-height: 38px !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font-size: 0.61rem !important;
}
.parser-card-action.family {
  color: #c9b9ff !important;
  border: 1px solid #594b8e !important;
  background: linear-gradient(145deg, #221c43, #181632) !important;
}
.parser-card-action.family:hover {
  background: linear-gradient(145deg, #30275d, #211d43) !important;
}
.parser-card-action.unknown {
  color: #f1cb78 !important;
  border: 1px solid #735d31 !important;
  background: linear-gradient(145deg, #2c230f, #201a0e) !important;
}
.parser-card-action.unknown:hover {
  background: linear-gradient(145deg, #403118, #2b2111) !important;
}

/* Old proposal strip is deliberately retired. */
.proposal-strip {
  display: none !important;
}

/* Bot Intelligence: larger readable table + clickable family history */
.bot-intelligence-head > div:first-child > p:last-child {
  display: none !important;
}
.bot-intel-toolbar-clean {
  padding: 11px 14px !important;
  align-items: center !important;
}
.bot-intel-toolbar-clean > label {
  min-width: 320px !important;
  max-width: none !important;
}
.bot-intel-toolbar input {
  font-size: 0.68rem !important;
}
.bot-family-history {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 9px 14px;
  border-bottom: 1px solid #15394e;
  background: #061720;
}
.bot-family-history button {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #234960;
  background: #091e2b;
  color: #7ea2b7;
  font-size: 0.56rem !important;
  transition: 0.15s ease;
}
.bot-family-history button:hover {
  transform: translateY(-1px);
  border-color: #3b789a;
  color: #d8edf7;
}
.bot-family-history button.active {
  border-color: #4ebeee;
  color: #eaf9ff;
  background: #0d344b;
  box-shadow: 0 0 0 2px rgba(78, 190, 238, 0.06);
}
.bot-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: #7597aa;
  font-size: 0.58rem;
}
.bot-pagination > span {
  white-space: nowrap;
}
.bot-pagination label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #7597aa !important;
  font-size: 0.56rem !important;
  margin: 0 !important;
}
.bot-pagination select {
  width: auto !important;
  min-width: 72px !important;
  min-height: 32px !important;
  padding: 4px 26px 4px 8px !important;
  border-radius: 8px !important;
  font-size: 0.57rem !important;
}
.bot-pagination > div {
  display: flex;
  gap: 5px;
}
.bot-pagination .small-btn {
  min-width: 34px !important;
  width: 34px !important;
  padding: 0 !important;
}
.bot-intel-table th {
  font-size: 0.58rem !important;
  padding: 12px 12px !important;
}
.bot-intel-table td {
  font-size: 0.62rem !important;
  padding: 13px 12px !important;
}
.bot-intel-table td > small,
.bot-primary small,
.bot-country small,
.bot-intel-table td small {
  font-size: 0.55rem !important;
  line-height: 1.45 !important;
}
.bot-primary b,
.bot-country b,
.bot-machine,
.bot-number,
.bot-date {
  font-size: 0.63rem !important;
  font-weight: 400 !important;
}
.bot-family-link {
  cursor: pointer;
}
.bot-family-link:hover {
  border-color: #4ebeee !important;
  color: #dff7ff !important;
  transform: translateY(-1px);
}
.bot-detail-btn {
  font-size: 0.56rem !important;
  padding: 0.4rem 0.58rem !important;
}

/* Recent batch cards: much more legible with Michroma */
.batch-card-title p {
  font-size: 0.67rem !important;
  font-weight: 400 !important;
}
.batch-card-title small {
  font-size: 0.54rem !important;
  line-height: 1.45 !important;
}
.batch-meta-line span {
  font-size: 0.53rem !important;
}
.batch-progress-modern > div:first-child span,
.batch-progress-modern > div:first-child b {
  font-size: 0.55rem !important;
}
.batch-progress-modern > small {
  font-size: 0.51rem !important;
}
.batch-stats-six b {
  font-size: 0.72rem !important;
  font-weight: 400 !important;
}
.batch-stats-six small {
  font-size: 0.49rem !important;
  letter-spacing: 0.02em !important;
}
.batch-card-foot > span {
  font-size: 0.51rem !important;
}
.batch-foot-actions .btn {
  font-size: 0.52rem !important;
  min-height: 34px !important;
}
.ingestion-view-tabs button {
  font-size: 0.58rem !important;
}
.ingestion-history-head h2 {
  font-size: 0.92rem !important;
  font-weight: 400 !important;
}
.ingestion-history-head p:empty {
  display: none !important;
}

/* Unknown layouts drawer */
.parser-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1760;
  background: rgba(0, 7, 13, 0.72);
  backdrop-filter: blur(7px);
  display: flex;
  justify-content: flex-end;
}
.parser-drawer {
  width: min(660px, 96vw);
  height: 100%;
  background: #071722;
  border-left: 1px solid #27506a;
  box-shadow: -28px 0 75px rgba(0, 0, 0, 0.45);
  animation: parserDrawerIn 0.18s ease-out;
}
@keyframes parserDrawerIn {
  from {
    opacity: 0.25;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.parser-drawer-head {
  min-height: 82px;
  padding: 17px 19px;
  border-bottom: 1px solid #17394d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.parser-drawer-head h3 {
  margin: 2px 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 400;
}
.parser-drawer-head > div > span {
  font-size: 0.57rem;
  color: #718fa2;
}
.parser-drawer-scroll {
  height: calc(100% - 82px);
  overflow: auto;
  padding: 13px;
}
.unknown-layout-card {
  border: 1px solid #193b50;
  border-radius: 11px;
  background: #091b27;
  padding: 12px;
  margin-bottom: 9px;
}
.unknown-layout-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.unknown-layout-card b {
  display: block;
  color: #e6f4fa;
  font-size: 0.61rem;
  font-weight: 400;
}
.unknown-layout-card small {
  display: block;
  color: #6c8a9c;
  font-size: 0.52rem;
  margin-top: 3px;
  word-break: break-all;
}
.unknown-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid #725b2e;
  background: #2b220f;
  color: #efca77;
  font-size: 0.55rem;
}
.unknown-field-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.unknown-field-cloud span {
  border: 1px solid #214258;
  background: #0a2030;
  color: #8fb3c7;
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 0.52rem;
}
.parser-empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #718fa2;
  text-align: center;
}
.parser-empty-state i {
  font-size: 1.5rem;
  color: #46cf9e;
}
.parser-empty-state strong {
  color: #dbeaf2;
  font-size: 0.69rem;
  font-weight: 400;
}
.parser-empty-state span {
  font-size: 0.56rem;
}

/* Add family dialog */
.family-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1780;
  background: rgba(0, 7, 13, 0.76);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.family-dialog {
  width: min(650px, 100%);
  border: 1px solid #4f4382;
  border-radius: 15px;
  background:
    radial-gradient(
      circle at 86% 0%,
      rgba(150, 105, 245, 0.12),
      transparent 31%
    ),
    #081923;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  padding: 19px;
}
.family-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.family-dialog-head h3 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 400;
}
.family-dialog form {
  display: grid;
  gap: 11px;
}
.family-dialog label {
  display: grid;
  gap: 6px;
}
.family-dialog label > span {
  color: #91abba;
  font-size: 0.57rem;
  letter-spacing: 0.02em;
}
.family-dialog input,
.family-dialog textarea {
  font-size: 0.63rem !important;
  background: #071722 !important;
}
.family-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.family-form-note {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 9px;
  border: 1px solid #254b63;
  background: #0a2231;
  color: #83a7ba;
  font-size: 0.55rem;
  line-height: 1.5;
}
.family-form-note i {
  color: #5bc7f2;
}
.family-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 4px;
}

/* Make the rest of the dashboard more readable after the global font change. */
.side-nav a {
  font-size: 0.72rem !important;
}
.nav-caption {
  font-size: 0.56rem !important;
}
.topbar,
.topbar * {
  font-size: 0.68rem;
}
.global-search input {
  font-size: 0.68rem !important;
}
.kpi-top {
  font-size: 0.66rem !important;
}
.kpi-foot {
  font-size: 0.62rem !important;
}
.panel-body,
.panel-body p {
  font-size: 0.64rem;
}
.table,
.table td,
.table th {
  font-size: 0.61rem !important;
}

@media (max-width: 1000px) {
  .bot-intel-toolbar-clean {
    align-items: stretch !important;
  }
  .bot-pagination {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
}
@media (max-width: 760px) {
  .family-form-grid {
    grid-template-columns: 1fr;
  }
  .parser-lab-clean .parser-lab-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* ======================================================================
   Phase 6.33 — Hybrid Typography
   Simple UI font for operational text, login/display font only for key titles.
   ====================================================================== */
:root {
  --shadow-ui-font:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --shadow-display-font:
    "Michroma", "Eurostile Extended", "Microgramma D Extended", "Bank Gothic",
    "Bahnschrift", sans-serif;
}
html,
body,
button,
input,
select,
textarea,
.app-shell,
.sidebar,
.topbar,
.workspace,
.panel,
.modal-card,
.drawer,
table,
th,
td,
label,
small,
strong,
b,
span,
p,
a,
.side-nav,
.side-nav a,
.nav-caption,
.kpi-card,
.batch-card,
.parser-lab,
.bot-intelligence-panel,
.ingestion-view-tabs,
.global-search {
  font-family: var(--shadow-ui-font) !important;
}
body {
  font-size: 14px !important;
  letter-spacing: 0 !important;
}
button,
input,
select,
textarea {
  font-size: 0.78rem !important;
}
.page-head h1,
.login-copy h1,
.login-copy .headline,
.brand-wordmark,
.brand-name,
.sidebar-brand strong,
.topbar-brand strong,
.shadowcore-title,
[data-brand-title],
.display-title,
.sidebar .brand strong,
.sidebar-header strong,
.brand-lockup strong,
.app-brand strong {
  font-family: var(--shadow-display-font) !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
}
.page-head h1 {
  font-size: 1.46rem !important;
  line-height: 1.2 !important;
}
.page-head .eyebrow,
.page-head p,
.panel-head,
.panel-head *,
.kpi-card *,
.batch-card *,
.parser-lab *,
.bot-intelligence-panel *,
.ingestion-view-tabs *,
.side-nav *,
.topbar *,
.global-search * {
  font-family: var(--shadow-ui-font) !important;
}
.page-head .eyebrow {
  font-size: 0.61rem !important;
  letter-spacing: 0.11em !important;
}
.page-head > div > p:not(.eyebrow) {
  font-size: 0.69rem !important;
}
.panel-head h2 {
  font-size: 0.91rem !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}
.panel-head p {
  font-size: 0.67rem !important;
}
.side-nav a {
  font-size: 0.7rem !important;
  font-weight: 520 !important;
  letter-spacing: 0 !important;
}
.nav-caption {
  font-size: 0.55rem !important;
  letter-spacing: 0.08em !important;
}
.topbar,
.topbar * {
  font-size: 0.67rem !important;
}
.kpi-top {
  font-size: 0.64rem !important;
}
.kpi-foot {
  font-size: 0.6rem !important;
}
.panel-body,
.panel-body p {
  font-size: 0.63rem !important;
}
.table,
.table td,
.table th {
  font-size: 0.6rem !important;
}
.bot-intel-table th {
  font-size: 0.56rem !important;
  padding: 11px 12px !important;
}
.bot-intel-table td {
  font-size: 0.6rem !important;
  padding: 11px 12px !important;
}
.bot-intel-table td > small,
.bot-primary small,
.bot-country small,
.bot-intel-table td small {
  font-size: 0.53rem !important;
}
.batch-card-title p {
  font-size: 0.64rem !important;
}
.batch-card-title small {
  font-size: 0.52rem !important;
}
.batch-meta-line span {
  font-size: 0.51rem !important;
}
.batch-stats-six b {
  font-size: 0.69rem !important;
}
.batch-stats-six small {
  font-size: 0.48rem !important;
}
.batch-foot-actions .btn {
  font-size: 0.51rem !important;
}
.ingestion-view-tabs button {
  font-size: 0.57rem !important;
}
.parser-label,
.parser-family-list *,
.parser-card-action,
.parser-count {
  font-family: var(--shadow-ui-font) !important;
}
.ui-font {
  font-family: var(--shadow-ui-font) !important;
}
.display-font {
  font-family: var(--shadow-display-font) !important;
}

/* ======================================================================
   Phase 6.36 — Login title typography fix
   Visibilidad / Inteligencia / Decisión use EXACTLY the same display face.
   Only the accent color on Inteligencia is different.
   ====================================================================== */

.login-shell-v14 .login-visual-copy h2,
.login-shell-v14 .login-visual-copy h2 span {
  font-family: var(--shadow-display-font) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-stretch: normal !important;
  letter-spacing: -0.045em !important;
  text-transform: none !important;
}

.login-shell-v14 .login-visual-copy h2 span {
  font-size: 1em !important;
  line-height: inherit !important;
  color: #42c8f7 !important;
}

/* ======================================================================
   Phase 6.37 — Batch actions: real buttons, not tags.
   Shape follows the main login button, with color by function.
   ====================================================================== */

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

.batch-foot-actions .btn,
.batch-detail-actions .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.48rem !important;
  min-width: 104px !important;
  height: 40px !important;
  padding: 0 0.9rem !important;
  border-radius: 10px !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.18) !important;
  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease !important;
}

.batch-foot-actions .btn:hover,
.batch-detail-actions .btn:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.08) !important;
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.25) !important;
}

.batch-foot-actions .btn:active,
.batch-detail-actions .btn:active {
  transform: translateY(0) !important;
}

.batch-foot-actions .btn i,
.batch-detail-actions .btn i {
  font-size: 0.82rem !important;
}

/* Details — same visual language as login primary button */
.batch-action-view {
  background: linear-gradient(90deg, #258ef2, #38a6ff) !important;
}
.batch-action-view:hover {
  background: linear-gradient(90deg, #2c96f9, #45b1ff) !important;
}

/* Archive — amber */
.batch-action-archive {
  background: linear-gradient(90deg, #b77a20, #da9b31) !important;
}
.batch-action-archive:hover {
  background: linear-gradient(90deg, #c88725, #e6aa3e) !important;
}

/* Restore — green */
.batch-action-restore {
  background: linear-gradient(90deg, #12835e, #20ad7d) !important;
}
.batch-action-restore:hover {
  background: linear-gradient(90deg, #16946b, #2bc18e) !important;
}

/* Delete — red */
.batch-action-delete {
  background: linear-gradient(90deg, #c43f54, #e05b6e) !important;
}
.batch-action-delete:hover {
  background: linear-gradient(90deg, #d1485f, #ef6a7c) !important;
}

/* Status remains a label; processed is always clearly green. */
.batch-status-processed {
  background: #0d2b22 !important;
  border-color: #2b7258 !important;
  color: #69ddb1 !important;
}
.batch-status-processing {
  background: #3a2c07 !important;
  border-color: #a67c1a !important;
  color: #f5c542 !important;
}
.batch-status-uploading {
  background: #102b42 !important;
  border-color: #2c6b93 !important;
  color: #78cff7 !important;
}
.batch-status-failed {
  background: #3a1420 !important;
  border-color: #8c2f42 !important;
  color: #ff8296 !important;
}
.batch-status-waiting {
  background: #251c42 !important;
  border-color: #5b4b9e !important;
  color: #b3a4f7 !important;
}

/* The sidebar no longer has a redundant bottom logout/version block. */
.sidebar {
  padding-bottom: 12px !important;
}

/* ======================================================================
   Phase 6.38 — Batch action buttons: force white icon/text
   ====================================================================== */

.batch-foot-actions .btn,
.batch-foot-actions .btn *,
.batch-detail-actions .btn,
.batch-detail-actions .btn * {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.batch-foot-actions .btn span,
.batch-foot-actions .btn i,
.batch-detail-actions .btn span,
.batch-detail-actions .btn i {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* ======================================================================
   Phase 6.39 — History / Archived final state + delete visibility
   ====================================================================== */

/* Finished cards are always green. More specific than generic .pill rules. */
.batch-card .batch-status-processed,
.batch-detail-title .batch-status-processed,
span.pill.batch-status-processed {
  background: #0d6b49 !important;
  border: 1px solid #29b47f !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow:
    0 0 0 1px rgba(41, 180, 127, 0.08),
    0 5px 14px rgba(9, 70, 48, 0.2) !important;
}

.batch-card .batch-status-processing,
.batch-detail-title .batch-status-processing,
span.pill.batch-status-processing {
  background: #126a9a !important;
  border: 1px solid #3cb6ef !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Action buttons: force both text and Bootstrap icons to pure white. */
.batch-foot-actions .btn,
.batch-foot-actions .btn span,
.batch-foot-actions .btn i,
.batch-detail-actions .btn,
.batch-detail-actions .btn span,
.batch-detail-actions .btn i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

/* Keep actions visually distinct from small status tags. */
.batch-foot-actions .btn {
  min-width: 105px !important;
  height: 41px !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
}

/* ======================================================================
   Phase 6.40 — Module display font + ransomware form action alignment
   ====================================================================== */

/* The module NAME is a key product label, so it uses the login/display face.
   Operational text inside the same card stays in Inter/system UI. */
.sc8-module-title strong,
.sc7-module-title strong,
.module-foundation-hero h2 {
  font-family:
    "Michroma", "Eurostile Extended", "Microgramma D Extended", "Bank Gothic",
    "Bahnschrift", sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
  color: #f3f8fb !important;
}

/* Keep module subtitles, KPIs and mini metrics in the normal readable UI font. */
.sc8-module-title small,
.sc8-module-kpi,
.sc8-module-kpi *,
.sc8-module-mini,
.sc8-module-mini *,
.sc7-module-title small,
.sc7-module-kpi,
.sc7-module-kpi *,
.sc7-module-mini,
.sc7-module-mini * {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif !important;
}

/* Ransomware form: action row is a proper full-width footer, aligned to the right.
   It no longer floats against the textarea edge. */
.incident-form > .batch-foot-actions {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 16px !important;
  padding-top: 2px !important;
  min-height: 44px !important;
}

.incident-form > .batch-foot-actions .btn-primary {
  min-width: 164px !important;
  height: 42px !important;
  padding: 0 1.1rem !important;
  border-radius: 10px !important;
  background: linear-gradient(90deg, #258ef2, #38a6ff) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 9px 22px rgba(18, 105, 176, 0.22) !important;
}

.incident-form > .batch-foot-actions .btn-primary:hover {
  background: linear-gradient(90deg, #2c96f9, #45b1ff) !important;
  transform: translateY(-1px) !important;
}

.incident-form > .batch-foot-actions [data-incident-message] {
  order: -1;
  margin-right: auto !important;
  min-height: 18px;
}

/* ======================================================================
   Phase 6.41 — Final UI polish
   Module names use the login/display face and are slightly larger.
   ====================================================================== */

/* Dashboard module names: prominent but still compact enough for the rail. */
.sc8-module-title strong,
.sc7-module-title strong {
  font-family:
    "Michroma", "Eurostile Extended", "Microgramma D Extended", "Bank Gothic",
    "Bahnschrift", sans-serif !important;
  font-size: 0.96rem !important;
  line-height: 1.28 !important;
  font-weight: 400 !important;
  letter-spacing: -0.028em !important;
  color: #ffffff !important;
}

/* Individual module page title. */
.module-foundation-hero h2 {
  font-family:
    "Michroma", "Eurostile Extended", "Microgramma D Extended", "Bank Gothic",
    "Bahnschrift", sans-serif !important;
  font-size: 1.18rem !important;
  line-height: 1.25 !important;
  font-weight: 400 !important;
  letter-spacing: -0.028em !important;
  color: #ffffff !important;
}

/* Operational labels remain in the normal interface font. */
.sc8-module-title small,
.sc8-module-kpi,
.sc8-module-kpi *,
.sc8-module-mini,
.sc8-module-mini *,
.sc7-module-title small,
.sc7-module-kpi,
.sc7-module-kpi *,
.sc7-module-mini,
.sc7-module-mini * {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif !important;
}

/* Slightly tighter fallback at narrower dashboard widths. */
@media (max-width: 1350px) {
  .sc8-module-title strong,
  .sc7-module-title strong {
    font-size: 0.88rem !important;
  }
}

/* Ransomware form final action alignment. */
.incident-form > .batch-foot-actions {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 16px !important;
  padding-top: 0 !important;
}

.incident-form > .batch-foot-actions .btn-primary {
  min-width: 168px !important;
  height: 42px !important;
  padding: 0 1.15rem !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: linear-gradient(90deg, #258ef2, #38a6ff) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 9px 22px rgba(18, 105, 176, 0.22) !important;
}

.incident-form > .batch-foot-actions .btn-primary:hover {
  background: linear-gradient(90deg, #2c96f9, #45b1ff) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Batch action buttons preserve white text/icons. */
.batch-foot-actions .btn,
.batch-foot-actions .btn *,
.batch-detail-actions .btn,
.batch-detail-actions .btn * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  fill: #ffffff !important;
  opacity: 1 !important;
}

/* ======================================================================
   Phase 6.42 — Live Intelligence, forms and ingestion fixes
   ====================================================================== */

/* Restore Live Intelligence to a compact content-driven card. */
.sc8-bottom-grid {
  align-items: start !important;
}
.sc8-bottom-grid > .panel {
  height: auto !important;
  min-height: 0 !important;
}
.sc8-bottom-grid .sc8-feed-card {
  min-height: 0 !important;
}
.sc8-bottom-grid .sc8-live-feed {
  flex: 0 0 auto !important;
  max-height: 360px !important;
  overflow: auto !important;
}
.sc8-feed-row {
  min-height: 54px !important;
}
.sc8-feed-empty {
  min-height: 110px !important;
  display: grid !important;
  place-items: center !important;
}

/* Form actions sit away from the textarea and read as a footer. */
.incident-form-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #17394d;
}
.incident-form-actions > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.incident-form-actions .btn {
  min-width: 155px;
  height: 42px;
  border-radius: 10px !important;
}
.incident-form-actions .btn-primary {
  background: linear-gradient(90deg, #258ef2, #38a6ff) !important;
  color: #fff !important;
  border: 0 !important;
}
.incident-form-actions [data-incident-message] {
  flex: 1;
  min-width: 0;
}

/* Consistent Restore button for data-entry forms. */
.btn-form-reset {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  min-height: 40px !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: 10px !important;
  border: 1px solid #34576d !important;
  background: linear-gradient(180deg, #102d40, #0b2231) !important;
  color: #d7ebf6 !important;
  font-weight: 750 !important;
}
.btn-form-reset:hover {
  background: linear-gradient(180deg, #173e56, #102c40) !important;
  border-color: #4d83a5 !important;
  color: #fff !important;
}

/* Keep modal action rows aligned and separated from fields. */
.modal-actions,
.family-dialog-actions,
.form-action-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 9px !important;
  margin-top: 18px !important;
}
.form-action-row {
  width: 100%;
}

/* Final module-name display typography remains prominent. */
.sc8-module-title strong,
.sc7-module-title strong {
  font-family:
    "Michroma", "Eurostile Extended", "Microgramma D Extended", "Bank Gothic",
    "Bahnschrift", sans-serif !important;
  font-size: 0.98rem !important;
  line-height: 1.28 !important;
  font-weight: 400 !important;
  letter-spacing: -0.028em !important;
  color: #fff !important;
}

/* FIX: acciones de borrado en Observed bot profiles */
.bot-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.bot-delete-btn {
  border: 1px solid rgba(255, 93, 104, 0.45);
  color: #ff5d68;
  background: rgba(255, 93, 104, 0.08);
}
.bot-delete-btn:hover {
  background: rgba(255, 93, 104, 0.18);
}
.bot-delete-all-btn {
  border: 1px solid rgba(255, 93, 104, 0.45);
  color: #ff5d68;
  background: rgba(255, 93, 104, 0.08);
}
.bot-delete-all-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.bot-intel-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

/* FIX: badge del timeline en estado Cargando */
.timeline-status.is-uploading {
  background: rgba(45, 168, 255, 0.14);
  border-color: rgba(45, 168, 255, 0.45);
  color: #78cff7;
}

/* FIX: titulo de seccion unificado (Michroma, mayusculas, mas grande) */
/* FIX: .panel-head h2 y .page-head h1 tienen mas especificidad y pisaban este estilo;
   !important vence y aplica la fuente del login (Michroma) a todos los titulos. */
.sc-section-title {
  font-family: var(--sc-display-font) !important;
  font-size: 1.35rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  margin: 0;
  text-transform: uppercase;
  color: #f5f8fb;
}

/* FIX: paginacion numerada compartida (Exposure Search, Alertas, Bot Intelligence) */
.sc-pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin: 14px 0 4px;
  flex-wrap: wrap;
}
.sc-pagination .sc-page-info {
  color: var(--sc-muted);
  font-size: 0.8rem;
  margin-right: auto;
}
.sc-pagination .sc-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--sc-border);
  background: var(--sc-surface-2);
  color: var(--sc-text-2);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s;
}
.sc-pagination .sc-page-btn:hover {
  border-color: var(--sc-cyan);
  color: var(--sc-text);
}
.sc-pagination .sc-page-btn.is-active {
  background: var(--sc-blue);
  border-color: var(--sc-blue);
  color: #fff;
  font-weight: 600;
  cursor: default;
}

/* FIX v6: selector de filas por pagina (10/20/50/100) */
.sc-page-size {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sc-muted);
  font-size: 0.8rem;
  margin-right: 8px;
}
.sc-page-size select {
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--sc-border);
  background: var(--sc-surface-2);
  color: var(--sc-text-2);
  padding: 0 8px;
  font-size: 0.85rem;
}

/* FIX v6: buscador de bots compacto para dar espacio a paginacion + selector */
.bot-intel-toolbar-clean {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bot-intel-toolbar-clean > label {
  flex: 1 1 320px;
  min-width: 240px;
}
.bot-intel-toolbar-clean input[data-bot-filter] {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.bot-intel-toolbar-clean .sc-pagination {
  margin: 0;
  justify-content: flex-end;
  flex: 2 1 auto;
}

/* FIX v6: input de fecha con estilo del sitio + picker del sistema en modo oscuro */
input[name="acquisition_date"] {
  color-scheme: dark;
  background: var(--sc-surface-2);
  border: 1px solid var(--sc-border);
  color: var(--sc-text);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
input[name="acquisition_date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(1) saturate(3) hue-rotate(160deg);
  cursor: pointer;
}

/* FIX v8: selector "Filas" compacto y buscador grande (la paginacion ya no roba espacio) */
.bot-intel-toolbar-clean > label {
  flex: 3 1 420px;
}
.bot-intel-toolbar-clean .sc-pagination {
  flex: 0 0 auto;
  margin: 0;
}
.sc-page-size select {
  width: auto;
  min-width: 72px;
  flex: 0 0 auto;
}

/* FIX v8: Live Intelligence misma altura que Evolucion de amenazas */
.sc8-feed-card {
  display: flex;
  flex-direction: column;
}
.sc8-feed-card .sc8-live-feed {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 380px;
}
.sc8-feed-card .sc-pagination {
  flex: 0 0 auto;
}

/* FIX v8: menu de acciones simple — una sola caja, opciones planas sin bordes propios */
.batch-menu button {
  border: 0 !important;
  background: transparent !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  padding: 0.55rem 0.7rem !important;
}
.batch-menu button:hover {
  background: #132b40 !important;
  color: #fff !important;
}
.batch-menu button.danger {
  background: transparent !important;
  border: 0 !important;
  color: #ffd6dc !important;
}
.batch-menu button.danger:hover {
  background: #2d171d !important;
}

/* FIX v8: filtros de Alertas — buscador crece, select ancho a la esquina derecha */
.alerts-filters input {
  flex: 1 1 auto;
  max-width: none;
}
.alerts-filters select {
  margin-left: auto;
  min-width: 230px;
}

/* FIX v8.1: paginaciones consistentes — grupo completo alineado a la derecha
   (igual que en Bot Intelligence), sin dispersion */
.sc-pagination {
  justify-content: flex-end;
}
.sc-pagination .sc-page-info {
  margin-right: 0;
}

/* FIX v8.1: alturas garantizadas — ambas tarjetas del dashboard con la misma
   altura minima y el feed crece para igualar a Evolucion de amenazas */
.sc8-feed-card,
.sc8-threat-card {
  min-height: 540px;
}
.sc8-feed-card .sc8-live-feed {
  min-height: 400px;
}

/* FIX v8.2: igualar alturas de verdad — el grid estira ambas tarjetas a la fila
   completa; sin esto, cada tarjeta mide solo lo que mide su contenido */
.sc8-bottom-grid {
  align-items: stretch !important;
}
.sc8-bottom-grid > .sc8-feed-card,
.sc8-bottom-grid > .sc8-threat-card {
  height: 100% !important;
}

/* FIX v8.2: padding de la paginacion dentro de la tarjeta — los botones ya no
   tocan el borde derecho */
.sc8-feed-card .sc-pagination {
  padding: 0 16px 12px;
}

/* FIX v9: botones solidos con color por accion y letra blanca */
.parser-card-action.family {
  background: #7c3aed !important;
  border: 1px solid #7c3aed !important;
  color: #fff !important;
}
.parser-card-action.family:hover {
  background: #6d28d9 !important;
  border-color: #6d28d9 !important;
}
.parser-card-action.unknown {
  background: #d97706 !important;
  border: 1px solid #d97706 !important;
  color: #fff !important;
}
.parser-card-action.unknown:hover {
  background: #b45309 !important;
  border-color: #b45309 !important;
}
.bot-detail-btn {
  background: #d97706 !important;
  border: 1px solid #d97706 !important;
  color: #fff !important;
}
.bot-detail-btn:hover {
  background: #b45309 !important;
  border-color: #b45309 !important;
}
.bot-delete-btn {
  background: #dc2626 !important;
  border: 1px solid #dc2626 !important;
  color: #fff !important;
}
.bot-delete-btn:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}
.bot-delete-all-btn {
  background: #dc2626 !important;
  border: 1px solid #dc2626 !important;
  color: #fff !important;
}
.bot-delete-all-btn:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}
.batch-menu button.danger {
  background: transparent !important;
  color: #ffd6dc !important;
}
.batch-menu button.danger:hover {
  background: #2d171d !important;
}

/* FIX v9.1: revertir a diseno anterior (contorno sutil) en botones de la tabla de
   bots — mismo color de accion, sin relleno solido */
.bot-detail-btn {
  background: rgba(217, 119, 6, 0.08) !important;
  border: 1px solid rgba(217, 119, 6, 0.45) !important;
  color: #f5b04a !important;
}
.bot-detail-btn:hover {
  background: rgba(217, 119, 6, 0.18) !important;
}
.bot-delete-btn {
  background: rgba(220, 38, 38, 0.08) !important;
  border: 1px solid rgba(220, 38, 38, 0.45) !important;
  color: #ff5d68 !important;
}
.bot-delete-btn:hover {
  background: rgba(220, 38, 38, 0.18) !important;
}
.bot-delete-all-btn {
  background: rgba(220, 38, 38, 0.08) !important;
  border: 1px solid rgba(220, 38, 38, 0.45) !important;
  color: #ff5d68 !important;
}
.bot-delete-all-btn:hover {
  background: rgba(220, 38, 38, 0.18) !important;
}
.bot-delete-all-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* FIX v9.2: unificar TODOS los botones de accion al estilo de contorno sutil
   (igual que Details/Delete de la tabla de bots y Delete all bots) */
.parser-card-action.family {
  background: rgba(124, 58, 237, 0.08) !important;
  border: 1px solid rgba(124, 58, 237, 0.45) !important;
  color: #b79df7 !important;
}
.parser-card-action.family:hover {
  background: rgba(124, 58, 237, 0.18) !important;
}
.parser-card-action.unknown {
  background: rgba(217, 119, 6, 0.08) !important;
  border: 1px solid rgba(217, 119, 6, 0.45) !important;
  color: #f5b04a !important;
}
.parser-card-action.unknown:hover {
  background: rgba(217, 119, 6, 0.18) !important;
}
.batch-menu button {
  border: 0 !important;
  background: transparent !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  padding: 0.55rem 0.7rem !important;
  color: #d7e9f5 !important;
}
.batch-menu button:hover {
  background: #132b40 !important;
  color: #fff !important;
}
.batch-menu button.danger {
  background: transparent !important;
  border: 0 !important;
  color: #ff8296 !important;
}
.batch-menu button.danger:hover {
  background: #2d171d !important;
}

/* FIX v9.3: especificidad doble (.clase.clase) para vencer la regla .small-btn
   con !important del CSS desplegado — mismo estilo sutil que Delete all bots */
.bot-detail-btn.small-btn {
  background: rgba(217, 119, 6, 0.08) !important;
  border: 1px solid rgba(217, 119, 6, 0.45) !important;
  color: #f5b04a !important;
  box-shadow: none !important;
}
.bot-detail-btn.small-btn:hover {
  background: rgba(217, 119, 6, 0.18) !important;
  border-color: rgba(217, 119, 6, 0.6) !important;
}
.bot-delete-btn.small-btn {
  background: rgba(220, 38, 38, 0.08) !important;
  border: 1px solid rgba(220, 38, 38, 0.45) !important;
  color: #ff5d68 !important;
  box-shadow: none !important;
}
.bot-delete-btn.small-btn:hover {
  background: rgba(220, 38, 38, 0.18) !important;
  border-color: rgba(220, 38, 38, 0.6) !important;
}
.bot-delete-all-btn.small-btn {
  background: rgba(220, 38, 38, 0.08) !important;
  border: 1px solid rgba(220, 38, 38, 0.45) !important;
  color: #ff5d68 !important;
  box-shadow: none !important;
}
.bot-delete-all-btn.small-btn:hover {
  background: rgba(220, 38, 38, 0.18) !important;
  border-color: rgba(220, 38, 38, 0.6) !important;
}
.bot-delete-all-btn.small-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* FIX v9.4: sin color por accion — Details, Delete y Delete all bots IDENTICOS,
   todos con el mismo estilo sutil de la imagen (contorno rojo suave) */
.bot-detail-btn.small-btn,
.bot-delete-btn.small-btn,
.bot-delete-all-btn.small-btn {
  background: rgba(220, 38, 38, 0.08) !important;
  border: 1px solid rgba(220, 38, 38, 0.45) !important;
  color: #ff5d68 !important;
  box-shadow: none !important;
}
.bot-detail-btn.small-btn:hover,
.bot-delete-btn.small-btn:hover,
.bot-delete-all-btn.small-btn:hover {
  background: rgba(220, 38, 38, 0.18) !important;
  border-color: rgba(220, 38, 38, 0.6) !important;
}
.bot-delete-all-btn.small-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* FIX v9.5: botones NEUTROS, sin color — mismo diseño base del sitio
   (fondo oscuro, borde gris sutil, texto claro). Details, Delete y
   Delete all bots identicos entre si. */
.bot-detail-btn.small-btn,
.bot-delete-btn.small-btn,
.bot-delete-all-btn.small-btn {
  background: #0d2030 !important;
  border: 1px solid #24435e !important;
  color: #c7dcea !important;
  box-shadow: none !important;
}
.bot-detail-btn.small-btn:hover,
.bot-delete-btn.small-btn:hover,
.bot-delete-all-btn.small-btn:hover {
  background: #12293d !important;
  border-color: #3a6a94 !important;
  color: #fff !important;
}
.bot-delete-all-btn.small-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
