:root {
  --bg: #07111f;
  --panel: #0e1b2d;
  --panel-2: #12243a;
  --text: #eef6ff;
  --muted: #9fb3c8;
  --border: rgba(255,255,255,0.12);
  --good: #35d07f;
  --warn: #ffd166;
  --danger: #ff6b6b;
  --accent: #63b3ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(99, 179, 255, 0.16), transparent 32rem),
    linear-gradient(180deg, #07111f 0%, #08101d 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.customer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.customer-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin: 0 0 8px;
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 46px);
  margin-bottom: 8px;
}

h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

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

.status-pill {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--warn);
  white-space: nowrap;
}

.status-pill.ok {
  color: var(--good);
}

.status-pill.error {
  color: var(--danger);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.summary-card,
.panel {
  border: 1px solid var(--border);
  background: rgba(14, 27, 45, 0.88);
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  border-radius: 18px;
}

.summary-card {
  padding: 18px;
}

.summary-card .label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

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

.panel {
  padding: 20px;
  margin-top: 18px;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.asset-list,
.lane-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.asset-card {
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 16px;
  padding: 16px;
}

.asset-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

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

.meta-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.035);
}

.meta-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--muted);
}

.badge.active {
  color: var(--good);
  border-color: rgba(53, 208, 127, 0.45);
}

.lane-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 14px;
  padding: 14px;
}

.lane-status.active {
  color: var(--good);
}

.lane-status.not_enabled {
  color: var(--muted);
}

.empty-state {
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 18px;
}

.warning-panel {
  border-color: rgba(255, 209, 102, 0.35);
}

@media (max-width: 860px) {
  .customer-header,
  .panel-title-row {
    flex-direction: column;
  }

  .summary-grid,
  .asset-meta {
    grid-template-columns: 1fr;
  }
}

/* CA-AIFW-6A.4M.4B — Credential/Login customer panel */
.credential-summary-grid {
  margin-top: 16px;
  margin-bottom: 18px;
}

.credential-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.mini-list,
.credential-events {
  display: grid;
  gap: 10px;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 12px;
  padding: 12px;
}

.credential-event-card {
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 16px;
  padding: 16px;
}

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

.severity-pill {
  border: 1px solid rgba(255, 209, 102, 0.4);
  color: var(--warn);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.compact-meta {
  margin-top: 10px;
}

@media (max-width: 860px) {
  .credential-columns {
    grid-template-columns: 1fr;
  }

  .event-card-top {
    flex-direction: column;
  }
}

/* CA-AIFW-6A.4M.5B — Web/Nginx customer panel */
.web-summary-grid {
  margin-top: 16px;
  margin-bottom: 18px;
}

.web-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.web-events {
  display: grid;
  gap: 10px;
}

.web-event-card {
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 16px;
  padding: 16px;
}

.trusted-event-card {
  border-color: rgba(74, 222, 128, 0.35);
}

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

.trusted-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: var(--ok);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
}

.trusted-row {
  border-color: rgba(74, 222, 128, 0.35);
}

.classification-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.03);
}

.classification-box p {
  margin: 6px 0 0;
  color: var(--muted);
}

.trusted-classification {
  border-color: rgba(74, 222, 128, 0.35);
}

@media (max-width: 860px) {
  .web-columns {
    grid-template-columns: 1fr;
  }

  .event-tags {
    justify-content: flex-start;
  }
}

/* CA-AIFW-6A.4M.5D — Web attack pattern rollups */
.sample-paths-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.03);
}

.sample-paths-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.sample-paths-box code {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 5px 7px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  font-size: 12px;
  word-break: break-all;
}

/* CA-AIFW-6A.4M.5E — Collapsible Web Attack Pattern Cards */
.web-pattern-card {
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 16px;
  overflow: hidden;
}

.web-pattern-summary {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  cursor: pointer;
}

.web-pattern-summary:hover {
  background: rgba(255, 255, 255, 0.035);
}

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

.pattern-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.pattern-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.expand-label {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  white-space: nowrap;
}

.web-pattern-details {
  border-top: 1px solid var(--border);
  padding: 0 16px 16px;
}

.severity-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--border);
}

.severity-chip.critical {
  color: #ff8a8a;
  border-color: rgba(255, 138, 138, 0.45);
}

.severity-chip.high {
  color: var(--warn);
  border-color: rgba(255, 209, 102, 0.45);
}

.severity-chip.medium {
  color: var(--muted);
}

.severity-chip.trusted {
  color: var(--ok);
  border-color: rgba(74, 222, 128, 0.4);
}

@media (max-width: 860px) {
  .web-pattern-summary {
    grid-template-columns: 1fr;
  }

  .pattern-stats {
    justify-content: flex-start;
  }
}

/* CA-AIFW-6A.4M.6 — Customer Web Protection Summary Mode */
.customer-protection-summary {
  display: grid;
  gap: 14px;
}

.protection-status-card,
.protection-note-card {
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 16px;
  padding: 16px;
}

.protection-status-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.protection-status-card h4,
.protection-note-card h4 {
  margin: 6px 0 8px;
}

.protection-status-card p,
.protection-note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.summary-kicker {
  display: inline-flex;
  color: var(--ok);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.summary-highlight {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 14px;
}

.summary-highlight span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.summary-highlight strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

.summary-highlight p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.muted-note {
  opacity: 0.92;
}

@media (max-width: 980px) {
  .summary-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .protection-status-card {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .summary-highlight-grid {
    grid-template-columns: 1fr;
  }
}

/* CA-AIFW-6A.4P.3 — Customer Portal Network Identity panel */
.network-summary-grid {
  margin-top: 16px;
  margin-bottom: 18px;
}

.network-identity-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.network-identity-card {
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 16px;
  padding: 16px;
}

.network-event-types {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}


/* ---------------------------------------------------------------------------
   CA-AIFW-6A.4P.4 — Customer Portal Production Light Theme

   Scope:
   - Customer portal only: https://listeningbot.com/customer/
   - Frontend styling only.
   - No backend, DB, enforcement, Nginx, or admin dashboard changes.

   Goal:
   - Replace dark/dev-console appearance with a polished production
     security platform look for customer-facing use.
--------------------------------------------------------------------------- */

:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --text: #102033;
  --muted: #667085;
  --border: rgba(16, 32, 51, 0.10);
  --good: #0f9f6e;
  --warn: #b7791f;
  --danger: #c2410c;
  --accent: #2563eb;
  --accent-soft: #eaf1ff;
  --security-purple: #6d28d9;
  --security-purple-soft: #f3edff;
  --shadow-soft: 0 14px 38px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 8px 22px rgba(15, 23, 42, 0.06);
}

body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28rem),
    radial-gradient(circle at top right, rgba(109, 40, 217, 0.08), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
  color: var(--text);
}

.customer-shell {
  width: min(1220px, calc(100% - 36px));
  padding: 34px 0 64px;
}

.customer-header {
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(247,250,255,0.96));
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1 {
  color: #0f172a;
  letter-spacing: -0.035em;
}

h2,
h3,
h4 {
  color: #102033;
}

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

.status-pill {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: #ffffff;
  color: var(--warn);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  font-weight: 800;
}

.status-pill.ok {
  color: #047857;
  border-color: rgba(4, 120, 87, 0.20);
  background: #ecfdf5;
}

.status-pill.error {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.22);
  background: #fff1f0;
}

.summary-grid {
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.summary-card,
.panel {
  border: 1px solid rgba(16, 32, 51, 0.09);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
  border-radius: 20px;
}

.summary-card {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--security-purple));
  opacity: 0.78;
}

.summary-card .label {
  color: #667085;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  font-size: 12px;
}

.summary-card strong {
  color: #0f172a;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.panel {
  padding: 22px;
  margin-top: 20px;
}

.panel-title-row {
  align-items: flex-start;
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.asset-card,
.lane-item,
.mini-row,
.credential-event-card,
.network-identity-card,
.protection-status-card,
.protection-note-card,
.summary-highlight {
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
}

.asset-card {
  border-radius: 18px;
}

.asset-card h3 {
  color: #0f172a;
  font-weight: 850;
}

.asset-card > .muted {
  color: #475467;
}

.asset-meta {
  gap: 12px;
}

.meta-box {
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: #f8fafc;
}

.meta-box span {
  color: #667085;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.meta-box strong {
  color: #102033;
}

.badge {
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: #f8fafc;
  color: #475467;
  font-weight: 700;
}

.badge.active {
  color: #047857;
  background: #ecfdf5;
  border-color: rgba(4, 120, 87, 0.22);
}

.lane-item {
  border-radius: 16px;
  align-items: center;
}

.lane-status {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.lane-status.active {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid rgba(4, 120, 87, 0.22);
}

.lane-status.not_enabled {
  color: #667085;
  background: #f2f4f7;
  border: 1px solid rgba(102, 112, 133, 0.16);
}

.empty-state {
  color: #667085;
  background: #f8fafc;
  border: 1px dashed rgba(16, 32, 51, 0.14);
}

.warning-panel {
  border-color: rgba(183, 121, 31, 0.22);
  background: #fffbeb;
}

.warning-panel h2 {
  color: #92400e;
}

.credential-columns,
.web-columns {
  gap: 16px;
}

.mini-row {
  border-radius: 14px;
}

.mini-row span {
  color: #344054;
}

.mini-row strong {
  color: #0f172a;
}

.credential-event-card,
.network-identity-card {
  border-radius: 18px;
}

.event-card-top {
  align-items: flex-start;
}

.event-card-top strong {
  color: #0f172a;
}

.severity-pill {
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: var(--accent-soft);
  color: #1d4ed8;
  font-weight: 850;
}

.trusted-tag {
  border: 1px solid rgba(4, 120, 87, 0.22);
  background: #ecfdf5;
  color: #047857;
}

.customer-protection-summary {
  gap: 16px;
}

.protection-status-card {
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 18px;
}

.protection-status-card h4 {
  color: #0f172a;
}

.summary-kicker {
  color: var(--accent);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-highlight-grid {
  gap: 14px;
}

.summary-highlight {
  border-radius: 16px;
  background: #ffffff;
}

.summary-highlight span {
  color: #667085;
  font-weight: 800;
}

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

.summary-highlight p,
.protection-note-card p {
  color: #667085;
}

.protection-note-card {
  border-radius: 16px;
}

.protection-note-card h4 {
  color: #102033;
}

.muted-note {
  background: #f8fafc;
}

.network-summary-grid {
  margin-top: 18px;
}

.network-identity-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.network-event-types {
  color: #667085;
}

code {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 7px;
  padding: 2px 6px;
}

@media (max-width: 860px) {
  .customer-shell {
    width: min(100% - 24px, 1220px);
    padding-top: 20px;
  }

  .customer-header {
    align-items: flex-start;
    padding: 18px;
  }

  .summary-card,
  .panel {
    border-radius: 16px;
  }
}


/* ---------------------------------------------------------------------------
   CA-AIFW-6A.4P.5 — Customer Portal Collapsible Production Panels

   Scope:
   - Customer portal only.
   - Frontend styling only.
--------------------------------------------------------------------------- */

.collapsible-panel {
  overflow: hidden;
}

.collapsible-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.collapsible-title-wrap {
  min-width: 0;
  flex: 1;
}

.collapsible-title-wrap .panel-title-row {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.collapse-toggle-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 850;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.collapse-toggle-button:hover {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.32);
}

.collapse-chevron {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1;
}

.collapsible-panel-body {
  margin-top: 16px;
}

.collapsible-panel.is-collapsed .collapsible-panel-body {
  display: none;
}

.collapsible-panel.is-collapsed {
  padding-bottom: 18px;
}

.collapsible-panel.is-collapsed .collapse-toggle-button {
  color: #475467;
  border-color: rgba(102, 112, 133, 0.18);
}

.collapsible-panel.is-collapsed .collapse-chevron {
  background: #f2f4f7;
  color: #475467;
}

@media (max-width: 860px) {
  .collapsible-toggle-row {
    flex-direction: column;
  }

  .collapse-toggle-button {
    width: 100%;
    justify-content: center;
  }
}


/* ---------------------------------------------------------------------------
   CA-AIFW-6A.4P.6 — Customer Portal Insider Threat Available-Now Section

   Scope:
   - Customer portal only.
   - Frontend display only.
   - Monitor-only customer-facing module card.
--------------------------------------------------------------------------- */

.security-product-panel {
  border-color: rgba(109, 40, 217, 0.14);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250,247,255,0.96));
}

.security-product-panel .eyebrow {
  color: #6d28d9;
}

.security-module-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(109, 40, 217, 0.14);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(88, 28, 135, 0.06);
}

.security-module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
  background: #f3edff;
  color: #6d28d9;
  font-size: 28px;
  box-shadow: inset 0 0 0 1px rgba(109, 40, 217, 0.10);
}

.security-module-copy h3 {
  margin: 0 0 6px;
  color: #211047;
  font-size: 21px;
}

.security-module-copy p {
  margin: 0;
  color: #667085;
  line-height: 1.55;
}

.module-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 16px;
}

.module-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(109, 40, 217, 0.14);
  background: #f8f5ff;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.015em;
}

.module-chip.monitor-chip {
  border-color: rgba(4, 120, 87, 0.20);
  background: #ecfdf5;
  color: #047857;
}

.customer-safe-note {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(109, 40, 217, 0.22);
  background: rgba(243, 237, 255, 0.54);
  color: #4c1d95;
  line-height: 1.5;
}

.customer-safe-note strong {
  color: #211047;
}

@media (max-width: 720px) {
  .security-module-card {
    flex-direction: column;
  }
}


/* CA-AIFW-6A.4P.7 — Cleaner production collapse controls */
.collapse-toggle-button {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 11px;
  background: #f8fafc;
  color: #475467;
  border-color: rgba(102, 112, 133, 0.16);
  box-shadow: none;
}

.collapse-toggle-button:hover {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.24);
}

.collapse-chevron {
  width: 17px;
  height: 17px;
  background: #ffffff;
  border: 1px solid rgba(102, 112, 133, 0.12);
}

.security-product-panel .status-pill.ok {
  background: #ecfdf5;
  color: #047857;
  border-color: rgba(4, 120, 87, 0.22);
}


/* CA-AIFW-6A.4P.8 — Customer Portal Insider Threat header cleanup */
#insiderThreatAvailablePanel .panel-title-row h2 {
  margin-bottom: 8px;
}

#insiderThreatAvailablePanel .status-pill.ok {
  background: #ecfdf5;
  color: #047857;
  border-color: rgba(4, 120, 87, 0.22);
}


/* CA-AIFW-6A.4P.9 — Customer Portal Insider Threat live summary */
.insider-summary-grid {
  margin-top: 18px;
  margin-bottom: 18px;
}

.insider-threat-behaviors {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.insider-threat-card {
  border: 1px solid rgba(109, 40, 217, 0.12);
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(88, 28, 135, 0.045);
}

.insider-threat-card .severity-pill {
  background: #f3edff;
  border-color: rgba(109, 40, 217, 0.16);
  color: #5b21b6;
}


/* CA-AIFW-6A.4Q.6 — Customer Portal real auth login */
.is-hidden {
  display: none !important;
}

.customer-login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.customer-login-card {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
}

.customer-login-brand {
  padding: 46px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.92)),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.22), transparent 36%);
  color: #ffffff;
}

.customer-login-brand h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.customer-login-brand p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.13);
  color: #dbeafe;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-login-form {
  padding: 46px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.customer-login-form label {
  color: #334155;
  font-weight: 800;
  font-size: 0.9rem;
}

.customer-login-form input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 1rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.customer-login-form input:focus {
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.customer-login-form button,
.customer-logout-button {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 900;
  cursor: pointer;
}

.customer-login-form button {
  margin-top: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.customer-login-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.customer-login-status {
  min-height: 22px;
  margin: 6px 0 0;
  color: #64748b;
  font-weight: 700;
  font-size: 0.9rem;
}

.customer-dashboard-shell {
  min-height: 100vh;
}

.customer-session-bar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  padding: 14px 16px;
}

.session-label {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.customer-logout-button {
  color: #1e293b;
  background: #e2e8f0;
}

.customer-logout-button:hover {
  background: #cbd5e1;
}

@media (max-width: 820px) {
  .customer-login-card {
    grid-template-columns: 1fr;
  }

  .customer-login-brand,
  .customer-login-form {
    padding: 30px;
  }

  .customer-session-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* CA-AIFW-6A.4Q.9 — Customer session hardening UI */
.customer-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-secondary-button,
.customer-danger-button {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 900;
  cursor: pointer;
}

.customer-secondary-button {
  color: #1e293b;
  background: #dbeafe;
}

.customer-secondary-button:hover {
  background: #bfdbfe;
}

.customer-danger-button {
  color: #ffffff;
  background: #dc2626;
}

.customer-danger-button:hover {
  background: #b91c1c;
}

.customer-session-tools {
  margin: 22px auto;
  max-width: 1180px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.customer-sessions-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.customer-session-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  padding: 14px;
  background: #f8fafc;
}

.customer-session-item p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .customer-session-item {
    flex-direction: column;
  }
}

/* CA-AIFW-6A.4R.1 — Customer Portal Account Security Polish */
.customer-account-security-card {
  margin: 22px auto;
  max-width: 1180px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 34%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.account-security-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.security-badge.light {
  background: #dbeafe;
  color: #1d4ed8;
}

.account-security-main h2 {
  margin: 12px 0 8px;
  color: #0f172a;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.035em;
}

.account-security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.account-security-item {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  padding: 14px;
  background: #ffffff;
}

.account-security-item span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-security-item strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 1rem;
}

.customer-security-notice {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  background: #eff6ff;
  color: #1e3a8a;
  line-height: 1.55;
}

.customer-session-item strong {
  color: #0f172a;
}

.customer-session-item .muted {
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .account-security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-security-main {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .account-security-grid {
    grid-template-columns: 1fr;
  }
}

/* CA-AIFW-6A.4R.1B — Collapsible session security panel */
.session-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.customer-secondary-button.compact {
  padding: 9px 12px;
  font-size: 0.82rem;
}

.customer-session-panel-body {
  margin-top: 12px;
}

.customer-session-more-controls {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.customer-session-more-controls.is-hidden,
.customer-session-panel-body.is-hidden {
  display: none !important;
}

.customer-session-tools .panel-header {
  align-items: flex-start;
}

/* CA-AIFW-6A.4R.2 — Production readiness banner and onboarding notes */
.customer-readiness-banner,
.customer-onboarding-notes {
  margin: 22px auto;
  max-width: 1180px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(135deg, #ffffff, #f8fafc),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 36%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.readiness-banner-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.readiness-banner-main h2 {
  margin: 12px 0 8px;
  color: #0f172a;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.045em;
}

.readiness-banner-main p,
.readiness-lanes p {
  color: #475569;
  line-height: 1.65;
  max-width: 780px;
}

.readiness-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.readiness-grid,
.onboarding-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.readiness-item,
.onboarding-step {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  padding: 16px;
  background: #ffffff;
}

.readiness-item span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.readiness-item strong {
  display: block;
  margin-top: 7px;
  color: #0f172a;
  font-size: 1rem;
  word-break: break-word;
}

.readiness-lanes {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.lane-chip {
  display: inline-flex;
  align-items: center;
  margin: 4px 6px 4px 0;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.78rem;
  font-weight: 900;
  background: #e2e8f0;
  color: #334155;
}

.lane-chip.active {
  background: #dcfce7;
  color: #166534;
}

.onboarding-step span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
}

.onboarding-step strong {
  display: block;
  margin-top: 12px;
  color: #0f172a;
}

.onboarding-step p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.5;
}

.customer-onboarding-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 18px;
  background: #fffbeb;
  color: #92400e;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .readiness-grid,
  .onboarding-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .readiness-banner-main {
    flex-direction: column;
  }

  .readiness-status-stack {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .readiness-grid,
  .onboarding-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* CA-AIFW-SENTINEL-PWA-1B.2 — SentinelCore Mobile entry */
.sentinel-mobile-entry {
  margin: 18px 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(34, 72, 118, .16);
  border-radius: 14px;
  background: rgba(235, 244, 252, .55);
}

.sentinel-mobile-entry p {
  margin: 5px 0 0;
}

.sentinel-mobile-entry-button {
  display: inline-block;
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  background: #10253d;
  color: #fff;
}

@media (max-width: 680px) {
  .sentinel-mobile-entry {
    display: block;
  }

  .sentinel-mobile-entry-button {
    margin-top: 12px;
  }
}

/* ============================================================
   CA-AIFW-CUSTOMER-UX-1B
   Overview-first customer portal navigation
   Frontend presentation only.
   ============================================================ */

.customer-view-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 20px;
  padding: 10px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.customer-view-tab {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  border-radius: 11px;
  padding: 10px 15px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.customer-view-tab:hover {
  background: #eef2ff;
  color: #1e3a8a;
}

.customer-view-tab.is-active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.customer-overview-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  margin-bottom: 20px;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f8fafc 100%
    );
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.customer-overview-intro h2 {
  margin: 8px 0;
  color: #0f172a;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.customer-overview-intro p {
  margin: 0;
  max-width: 680px;
  color: #64748b;
  line-height: 1.6;
}

.customer-overview-state {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 14px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
}

.customer-overview-state span:not(.overview-state-dot) {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.customer-overview-state strong {
  color: #166534;
}

.overview-state-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.customer-view-managed.is-view-hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .customer-view-nav {
    margin-left: -4px;
    margin-right: -4px;
    border-radius: 13px;
  }

  .customer-view-tab {
    padding: 9px 12px;
  }

  .customer-overview-intro {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .customer-overview-state {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
   CA-AIFW-CUSTOMER-UX-1D
   Compact customer onboarding / protection setup
   ============================================================ */

.customer-setup-card {
  padding: 24px;
}

.customer-setup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.customer-setup-header h2 {
  margin: 8px 0 6px;
}

.customer-setup-header p {
  margin: 0;
}

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

.customer-setup-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
}

.customer-setup-item strong {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
}

.customer-setup-item p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.setup-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
}

@media (max-width: 720px) {
  .customer-setup-header {
    flex-direction: column;
  }

  .customer-setup-checklist {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CA-AIFW-CUSTOMER-UX-1F
   Summary-first customer Security tab
   ============================================================ */

#credentialLogsPanel.is-collapsed,
#networkIdentityPanel.is-collapsed,
#webEventsPanel.is-collapsed,
#insiderThreatAvailablePanel.is-collapsed {
  padding-bottom: 18px;
}

#credentialLogsPanel.is-collapsed .collapsible-panel-body,
#networkIdentityPanel.is-collapsed .collapsible-panel-body,
#webEventsPanel.is-collapsed .collapsible-panel-body,
#insiderThreatAvailablePanel.is-collapsed .collapsible-panel-body {
  display: none;
}

#credentialLogsPanel .collapse-toggle-button,
#networkIdentityPanel .collapse-toggle-button,
#webEventsPanel .collapse-toggle-button,
#insiderThreatAvailablePanel .collapse-toggle-button {
  min-width: 112px;
}

@media (max-width: 620px) {
  #credentialLogsPanel .collapse-toggle-button,
  #networkIdentityPanel .collapse-toggle-button,
  #webEventsPanel .collapse-toggle-button,
  #insiderThreatAvailablePanel .collapse-toggle-button {
    width: 100%;
  }
}

/* ============================================================
   CA-AIFW-CUSTOMER-UX-1H
   SaaS Color & Background Polish
   Presentation only — no auth/API/enforcement changes.
   ============================================================ */

html {
  background: #edf4ff;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(59, 130, 246, 0.20),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 16%,
      rgba(79, 70, 229, 0.16),
      transparent 27%
    ),
    radial-gradient(
      circle at 72% 72%,
      rgba(14, 165, 233, 0.13),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #e9f1ff 0%,
      #f4f8ff 38%,
      #edf5ff 70%,
      #f8fbff 100%
    );
  background-attachment: fixed;
}

.customer-dashboard-shell,
.customer-shell {
  background: transparent;
}

/* Premium SaaS surfaces */
.customer-header,
.customer-overview-intro,
.customer-setup-card,
.customer-readiness-banner,
.customer-account-security-card,
.customer-session-tools,
.panel,
.summary-card,
.sentinel-mobile-entry {
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow:
    0 18px 46px rgba(37, 99, 235, 0.08),
    0 5px 16px rgba(15, 23, 42, 0.05);
}

/* Main white/glass surfaces */
.customer-overview-intro,
.customer-setup-card,
.customer-readiness-banner,
.customer-account-security-card,
.customer-session-tools,
.panel,
.sentinel-mobile-entry {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.96),
      rgba(248, 251, 255, 0.92)
    );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Header gets slightly richer SaaS treatment */
.customer-header {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96),
      rgba(239, 246, 255, 0.92)
    );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Sticky navigation */
.customer-view-nav {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.90),
      rgba(239, 246, 255, 0.86)
    );
  border-color: rgba(96, 165, 250, 0.20);
  box-shadow:
    0 14px 34px rgba(37, 99, 235, 0.10),
    0 3px 10px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Tabs */
.customer-view-tab {
  color: #334155;
}

.customer-view-tab:hover {
  background:
    linear-gradient(
      135deg,
      rgba(219, 234, 254, 0.90),
      rgba(224, 231, 255, 0.90)
    );
  color: #1e3a8a;
}

.customer-view-tab.is-active {
  background:
    linear-gradient(
      135deg,
      #0f172a 0%,
      #172554 48%,
      #1e3a8a 100%
    );
  color: #ffffff;
  box-shadow:
    0 10px 24px rgba(30, 58, 138, 0.25);
}

/* Overview hero gets soft blue depth */
.customer-overview-intro {
  position: relative;
  overflow: hidden;
}

.customer-overview-intro::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(59, 130, 246, 0.18),
      rgba(59, 130, 246, 0) 70%
    );
  pointer-events: none;
}

.customer-overview-intro > * {
  position: relative;
  z-index: 1;
}

/* Security badges */
.security-badge,
.security-badge.light {
  background:
    linear-gradient(
      135deg,
      #dbeafe,
      #e0e7ff
    );
  color: #1d4ed8;
  border: 1px solid rgba(96, 165, 250, 0.18);
}

/* Healthy status */
.customer-overview-state {
  background:
    linear-gradient(
      135deg,
      #ecfdf5,
      #f0fdf4
    );
  border-color: #a7f3d0;
  box-shadow:
    0 10px 24px rgba(34, 197, 94, 0.08);
}

/* Setup items */
.customer-setup-item {
  background:
    linear-gradient(
      145deg,
      rgba(248, 250, 252, 0.96),
      rgba(239, 246, 255, 0.88)
    );
  border-color: rgba(147, 197, 253, 0.24);
  box-shadow:
    0 8px 20px rgba(37, 99, 235, 0.04);
}

/* Summary cards */
.summary-card {
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8fbff
    );
  border: 1px solid rgba(148, 163, 184, 0.20);
}

.summary-card::before {
  background:
    linear-gradient(
      90deg,
      #2563eb,
      #4f46e5
    );
}

/* Secondary buttons */
.customer-secondary-button {
  background:
    linear-gradient(
      135deg,
      #eff6ff,
      #e0e7ff
    );
  color: #1e3a8a;
  border-color: rgba(96, 165, 250, 0.24);
}

.customer-secondary-button:hover {
  background:
    linear-gradient(
      135deg,
      #dbeafe,
      #c7d2fe
    );
}

/* Logout remains clearly destructive */
.customer-danger-button {
  box-shadow:
    0 10px 24px rgba(220, 38, 38, 0.14);
}

/* Small visual separation between sections */
.customer-shell > section {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

/* Mobile polish */
@media (max-width: 720px) {
  body {
    background:
      radial-gradient(
        circle at 10% 10%,
        rgba(59, 130, 246, 0.18),
        transparent 28%
      ),
      radial-gradient(
        circle at 90% 22%,
        rgba(79, 70, 229, 0.13),
        transparent 26%
      ),
      linear-gradient(
        160deg,
        #eaf2ff 0%,
        #f8fbff 52%,
        #edf5ff 100%
      );
  }

  .customer-header,
  .customer-overview-intro,
  .customer-setup-card,
  .panel,
  .customer-readiness-banner,
  .customer-account-security-card,
  .customer-session-tools,
  .sentinel-mobile-entry {
    box-shadow:
      0 12px 30px rgba(37, 99, 235, 0.07),
      0 3px 10px rgba(15, 23, 42, 0.04);
  }

  .customer-view-nav {
    background:
      rgba(255, 255, 255, 0.90);
  }
}

/* ============================================================
   CA-AIFW-CUSTOMER-UX-1K
   Security Health at a Glance
   ============================================================ */

.customer-security-health {
  margin: 0 0 20px;
  padding: 24px;
  border: 1px solid rgba(96, 165, 250, 0.20);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(59, 130, 246, 0.13),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.97),
      rgba(241, 246, 255, 0.94)
    );
  box-shadow:
    0 18px 46px rgba(37, 99, 235, 0.09),
    0 5px 16px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.security-health-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.security-health-heading h2 {
  margin: 10px 0 6px;
  color: #0f172a;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.security-health-heading p {
  margin: 0;
  max-width: 680px;
  color: #64748b;
  line-height: 1.6;
}

.security-health-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 800;
}

.security-health-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.12);
}

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

.security-health-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(246, 249, 255, 0.96)
    );
  box-shadow:
    0 10px 28px rgba(30, 64, 175, 0.07);
}

.security-health-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background:
    linear-gradient(
      90deg,
      #2563eb,
      #4f46e5
    );
}

.security-health-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.security-health-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  background:
    linear-gradient(
      135deg,
      #dbeafe,
      #e0e7ff
    );
  color: #1e40af;
  font-size: 0.70rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.security-health-state {
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 800;
}

.security-health-label {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.security-health-card strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 1.65rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.security-health-meta {
  display: block;
  min-height: 38px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.security-health-detail-button {
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      #eff6ff,
      #eef2ff
    );
  color: #1e3a8a;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.security-health-detail-button:hover {
  background:
    linear-gradient(
      135deg,
      #dbeafe,
      #e0e7ff
    );
}

@media (max-width: 980px) {
  .security-health-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .customer-security-health {
    padding: 18px;
    border-radius: 18px;
  }

  .security-health-heading {
    display: grid;
  }

  .security-health-live {
    width: max-content;
  }

  .security-health-grid {
    grid-template-columns: 1fr;
  }

  .security-health-card {
    padding: 16px;
  }

  .security-health-meta {
    min-height: 0;
  }
}

/* ============================================================
   CA-AIFW-CUSTOMER-UX-1M
   Compact Overview Setup Status
   ============================================================ */

.customer-setup-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  margin-bottom: 20px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(59, 130, 246, 0.10),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.97),
      rgba(244, 248, 255, 0.94)
    );
  box-shadow:
    0 14px 34px rgba(37, 99, 235, 0.07),
    0 4px 12px rgba(15, 23, 42, 0.04);
}

.customer-setup-compact-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.customer-setup-compact-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background:
    linear-gradient(
      135deg,
      #dcfce7,
      #ecfdf5
    );
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow:
    0 8px 20px rgba(34, 197, 94, 0.10);
}

.customer-setup-compact h2 {
  margin: 8px 0 4px;
  color: #0f172a;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.customer-setup-compact p {
  margin: 0;
  max-width: 650px;
  color: #64748b;
  line-height: 1.5;
}

.customer-setup-compact-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.80rem;
  font-weight: 800;
}

.customer-setup-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.12);
}

/* Remove vertical space left by the old onboarding layout */
.customer-setup-compact .customer-setup-checklist,
.customer-setup-compact .customer-setup-item {
  display: none;
}

@media (max-width: 620px) {
  .customer-setup-compact {
    align-items: flex-start;
    padding: 17px;
    gap: 14px;
  }

  .customer-setup-compact-main {
    align-items: flex-start;
  }

  .customer-setup-compact-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .customer-setup-compact-status {
    padding: 7px 9px;
  }
}


/* ==================================================================
   CA-AIFW-COMPANY-ONBOARDING-1D-H-A-P2
   Customer Portal Company Visual Cleanup
   Final scoped presentation layer.
   ================================================================== */


/* ---------- Overall application shell ---------- */

.customer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 52px;
}

.customer-shell > section {
  margin-bottom: 18px;
}


/* ---------- Header: reduce visual weight ---------- */

.customer-header {
  padding: 18px 20px;
  border-radius: 18px;
}

.customer-header h1 {
  margin-top: 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.customer-header .muted {
  margin-top: 4px;
  font-size: 0.88rem;
}

.customer-session-bar {
  margin-top: 14px;
  padding-top: 12px;
}


/* ---------- Navigation: application tabs ---------- */

.customer-view-nav {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 20px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.customer-view-tab {
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 0.86rem;
  font-weight: 750;
}

.customer-view-tab.is-active {
  box-shadow:
    0 7px 20px rgba(37, 99, 235, 0.16);
}


/* ---------- Overview ---------- */

.customer-overview-intro {
  padding: 22px 24px;
  border-radius: 20px;
}

.customer-overview-intro h2 {
  margin: 7px 0 5px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.customer-overview-intro p {
  max-width: 720px;
  line-height: 1.55;
}

.customer-overview-state {
  min-width: 170px;
  padding: 11px 14px;
  border-radius: 14px;
}


/* Setup-in-progress should not look like a completed green task. */

.customer-setup-compact {
  padding: 18px 20px;
  border-radius: 18px;
}

.customer-setup-compact-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(
    135deg,
    #fff7ed,
    #fffbeb
  );
  border-color: #fed7aa;
  color: #c2410c;
  box-shadow:
    0 7px 18px rgba(234, 88, 12, 0.08);
}

.customer-setup-compact-status {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.customer-setup-status-dot {
  background: #f59e0b;
  box-shadow:
    0 0 0 4px rgba(245, 158, 11, 0.12);
}


/* Company summary: compact, not dominant. */

.customer-shell > .summary-grid {
  gap: 10px;
  margin-bottom: 18px;
}

.customer-shell > .summary-grid .summary-card {
  min-height: 92px;
  padding: 15px 16px;
  border-radius: 15px;
}

.customer-shell > .summary-grid .summary-card strong {
  font-size: 1.15rem;
}


/* ---------- Security ---------- */

.customer-security-health {
  padding: 20px;
  border-radius: 20px;
}

.security-health-heading {
  margin-bottom: 16px;
}

.security-health-heading h2 {
  margin: 7px 0 4px;
  font-size: clamp(1.35rem, 2.7vw, 1.8rem);
}

.security-health-grid {
  gap: 10px;
}

.security-health-card {
  padding: 15px;
  border-radius: 15px;
}

.security-health-card-top {
  margin-bottom: 12px;
}

.security-health-card strong {
  font-size: 1.4rem;
}

.security-health-meta {
  min-height: 32px;
}

.security-health-detail-button {
  margin-top: 10px;
  padding: 8px 10px;
}

.security-health-live.is-waiting {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.security-health-live.is-waiting
.security-health-live-dot {
  background: #f59e0b;
  box-shadow:
    0 0 0 4px rgba(245, 158, 11, 0.12);
}


/* Detailed security panels should read as secondary drill-downs. */

#credentialLogsPanel,
#networkIdentityPanel,
#webEventsPanel,
#insiderThreatAvailablePanel {
  margin-bottom: 12px;
  border-radius: 16px;
}

#credentialLogsPanel.is-collapsed,
#networkIdentityPanel.is-collapsed,
#webEventsPanel.is-collapsed,
#insiderThreatAvailablePanel.is-collapsed {
  padding-top: 0;
  padding-bottom: 0;
}


/* ---------- Assets ---------- */

.customer-readiness-banner {
  padding: 20px;
  border-radius: 18px;
}

.readiness-banner-main h2 {
  margin: 7px 0 5px;
  font-size: 1.45rem;
}

.readiness-status-stack {
  gap: 7px;
}

.readiness-grid {
  gap: 10px;
}

.readiness-item {
  padding: 13px 14px;
  border-radius: 13px;
}

.readiness-lanes {
  margin-top: 14px;
  padding-top: 14px;
}

.asset-card {
  padding: 17px;
  border-radius: 15px;
}

.asset-meta {
  gap: 8px;
}

.lane-item {
  padding: 13px 15px;
  border-radius: 13px;
}


/* ---------- Setup: primary documentation ---------- */

#customerSetupGuide {
  padding: 22px;
  border: 1px solid rgba(96, 165, 250, 0.20);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.99),
      rgba(247, 250, 255, 0.97)
    );
  box-shadow:
    0 16px 38px rgba(37, 99, 235, 0.07);
}


/*
 * Setup documentation is primary workflow content.
 * Never hide the instructions behind the generic panel collapse state.
 */

#customerSetupGuide .collapse-toggle-button {
  display: none;
}

#customerSetupGuide.is-collapsed
.collapsible-panel-body {
  display: block !important;
}

#customerSetupGuide.is-collapsed {
  padding-bottom: 22px;
}


.customer-setup-documentation {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 16px;
}


.customer-setup-doc-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 7px 22px rgba(15, 23, 42, 0.04);
}


.customer-setup-doc-card:first-child {
  grid-column: 1 / -1;
  background:
    linear-gradient(
      135deg,
      #eff6ff,
      #f8fbff
    );
  border-color: #bfdbfe;
}


.customer-setup-doc-card h3 {
  margin: 6px 0 8px;
  color: #0f172a;
  font-size: 1.02rem;
  line-height: 1.3;
}


.customer-setup-doc-card p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 0.89rem;
  line-height: 1.55;
}


.customer-setup-doc-card p:last-child {
  margin-bottom: 0;
}


.customer-setup-doc-card .summary-kicker {
  display: inline-flex;
  width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.69rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}


.customer-setup-doc-card pre {
  max-width: 100%;
  margin: 12px 0 4px;
  padding: 13px 14px;
  overflow-x: auto;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: none;
}


.customer-setup-doc-card pre code {
  color: #e2e8f0;
  background: transparent;
  font-size: 0.79rem;
  line-height: 1.55;
  white-space: pre;
}


#customerSetupGuideStatus {
  flex: 0 0 auto;
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}


/* SentinelCore Mobile is optional/secondary to server setup. */

#customerSentinelMobileCard {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: none;
}

#customerSentinelMobileCard strong {
  font-size: 0.94rem;
}

#customerSentinelMobileCard p {
  margin: 4px 0 0;
  font-size: 0.84rem;
}


/* ---------- Account ---------- */

.customer-account-security-card {
  padding: 20px;
  border-radius: 18px;
}

.account-security-grid {
  gap: 10px;
}

.account-security-item {
  padding: 12px 13px;
  border-radius: 12px;
}

.customer-security-notice {
  margin-top: 13px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.warning-panel {
  border-radius: 16px;
}


/* ---------- Generic panel cleanup ---------- */

.panel {
  border-radius: 16px;
}

.collapsible-toggle-row {
  min-height: 54px;
}

.collapse-toggle-button {
  padding: 7px 9px;
  font-size: 0.78rem;
}


/* ---------- Mobile ---------- */

@media (max-width: 760px) {

  .customer-shell {
    width: min(100% - 20px, 1180px);
    margin-top: 12px;
  }

  .customer-header {
    padding: 16px;
    border-radius: 16px;
  }

  .customer-view-nav {
    top: 6px;
    grid-template-columns:
      repeat(5, minmax(88px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .customer-view-nav::-webkit-scrollbar {
    display: none;
  }

  .customer-view-tab {
    white-space: nowrap;
  }

  .customer-overview-intro {
    padding: 18px;
  }

  .customer-overview-state {
    min-width: 0;
  }

  .customer-setup-compact {
    display: grid;
    padding: 16px;
  }

  .customer-shell > .summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .customer-setup-documentation {
    grid-template-columns: 1fr;
  }

  .customer-setup-doc-card:first-child {
    grid-column: auto;
  }

  #customerSetupGuide {
    padding: 17px;
  }

  .readiness-grid,
  .account-security-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 480px) {

  .customer-shell > .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .customer-shell > .summary-grid .summary-card {
    min-height: 82px;
  }

  .security-health-card {
    padding: 14px;
  }

  .customer-setup-doc-card {
    padding: 15px;
  }

  .customer-setup-doc-card pre {
    padding: 11px 12px;
  }
}


/* ==================================================================
   END CA-AIFW-COMPANY-ONBOARDING-1D-H-A-P2
   ================================================================== */


/* ==================================================================
   CA-AIFW-COMPANY-ONBOARDING-1D-H-B2-R1
   Authoritative Customer Onboarding Progress
   ================================================================== */

.customer-onboarding-progress {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fafc;
}

.customer-onboarding-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.customer-onboarding-progress-head strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.customer-onboarding-progress-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 9px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
}

.customer-onboarding-milestones {
  display: grid;
  gap: 7px;
}

.customer-onboarding-milestone {
  display: grid;
  grid-template-columns:
    32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #ffffff;
}

.customer-onboarding-milestone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 900;
}

.customer-onboarding-milestone-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.customer-onboarding-milestone-copy strong {
  color: #0f172a;
  font-size: 0.83rem;
  line-height: 1.25;
}

.customer-onboarding-milestone-copy span {
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.35;
}

.customer-onboarding-milestone-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}


.customer-onboarding-milestone.is-complete {
  border-color: #bbf7d0;
  background: #f7fef9;
}

.customer-onboarding-milestone.is-complete
.customer-onboarding-milestone-icon {
  background: #dcfce7;
  color: #15803d;
}

.customer-onboarding-milestone.is-complete
.customer-onboarding-milestone-state {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}


.customer-onboarding-milestone.is-active {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.customer-onboarding-milestone.is-active
.customer-onboarding-milestone-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.customer-onboarding-milestone.is-active
.customer-onboarding-milestone-state {
  border-color: #bfdbfe;
  background: #dbeafe;
  color: #1d4ed8;
}


.customer-onboarding-milestone.is-stale {
  border-color: #fed7aa;
  background: #fffaf5;
}

.customer-onboarding-milestone.is-stale
.customer-onboarding-milestone-icon {
  background: #ffedd5;
  color: #c2410c;
}

.customer-onboarding-milestone.is-stale
.customer-onboarding-milestone-state {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}


.customer-onboarding-progress-loading,
.customer-onboarding-progress-empty {
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #64748b;
  font-size: 0.8rem;
  text-align: center;
}


@media (max-width: 620px) {
  .customer-onboarding-milestone {
    grid-template-columns:
      30px minmax(0, 1fr);
  }

  .customer-onboarding-milestone-state {
    grid-column: 2;
    justify-self: start;
    min-width: 0;
  }
}


/* ==================================================================
   END CA-AIFW-COMPANY-ONBOARDING-1D-H-B2-R1
   ================================================================== */


/* ==================================================================
   CA-AIFW-COMPANY-ONBOARDING-1D-H-C-R1
   Customer Installation Guide Release-State Lock
   ================================================================== */

.customer-setup-command {
  position: relative;
}

.customer-setup-command.customer-setup-command-locked {
  border-color: #dbe3ef;
  background: #f8fafc;
}

.customer-setup-command.customer-setup-command-locked code {
  color: #64748b;
  white-space: normal;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 700;
  line-height: 1.5;
}

.customer-setup-command.customer-setup-command-locked::before {
  content: "Locked";
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 0 0 8px;
  padding: 4px 7px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-setup-command.customer-setup-command-released {
  border-color: #dbe3ef;
  background: #0f172a;
}

.customer-setup-command.customer-setup-command-released code {
  color: #e2e8f0;
  white-space: pre;
}


/* ==================================================================
   END CA-AIFW-COMPANY-ONBOARDING-1D-H-C-R1
   ================================================================== */


/* ==================================================================
   CA-AIFW-COMPANY-ONBOARDING-1D-H-E-FE-R1
   One-Time Enrollment Code Setup UI
   ================================================================== */

.customer-enrollment-access {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
}

.customer-enrollment-access-status {
  color: #475569;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.customer-enrollment-generate-button {
  margin-top: 12px;
}

.customer-enrollment-secret {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
}

.customer-enrollment-secret-warning {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.5;
}

.customer-enrollment-secret-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.customer-enrollment-secret-field > span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-enrollment-secret-field > code {
  overflow-wrap: anywhere;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.8rem;
}

.customer-enrollment-secret-field pre {
  margin: 0;
}

.customer-enrollment-secret-field pre code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#customerCopyEnrollmentCodeButton {
  margin-top: 14px;
}


/* ==================================================================
   END CA-AIFW-COMPANY-ONBOARDING-1D-H-E-FE-R1
   ================================================================== */


/* ==================================================================
   CA-AIFW-COMPANY-ONBOARDING-1D-H-F.12E-R5 — Setup Policy Separation
   ================================================================== */

.customer-onboarding-policy-divider {
  margin: 16px 0 8px;
  padding-top: 14px;
  border-top: 1px solid #dbe3ef;
}

.customer-onboarding-policy-divider > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.customer-onboarding-policy-divider strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.customer-onboarding-policy-divider span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
}

.customer-onboarding-policy {
  background: #f8fafc;
}

@media (max-width: 720px) {
  .customer-onboarding-policy-divider > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==================================================================
   END CA-AIFW-COMPANY-ONBOARDING-1D-H-F.12E-R5
   ================================================================== */


/* ============================================================
   CA-AIFW-CUSTOMER-POLICY-VISIBILITY-1B
   Customer-safe Active Protection Policies
   ============================================================ */

.customer-protection-policy-details {
  margin-top: 18px;
}

.customer-policy-empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border, #d7dde5);
  border-radius: 12px;
}

.customer-policy-empty span {
  font-size: 0.9rem;
  opacity: 0.72;
}

.customer-active-policy-group {
  border: 1px solid var(--border, #d7dde5);
  border-radius: 14px;
  overflow: hidden;
}

.customer-active-policy-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 15px 16px;
  list-style: none;
}

.customer-active-policy-summary::-webkit-details-marker {
  display: none;
}

.customer-active-policy-summary > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.customer-active-policy-summary small {
  font-weight: 500;
  opacity: 0.7;
}

.customer-policy-readonly-badge {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.75;
}

.customer-active-policy-list {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.customer-policy-card {
  padding: 16px;
  border: 1px solid var(--border, #d7dde5);
  border-radius: 12px;
}

.customer-policy-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.customer-policy-card-heading h3 {
  margin: 7px 0 0;
  font-size: 1rem;
}

.customer-policy-primary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.07);
}

.customer-policy-primary span,
.customer-policy-grid span {
  font-size: 0.78rem;
  opacity: 0.68;
}

.customer-policy-primary strong {
  overflow-wrap: anywhere;
}

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

.customer-policy-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.customer-policy-grid strong {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.customer-policy-reason {
  margin-top: 14px;
}

.customer-policy-reason summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
}

.customer-policy-reason p {
  margin: 9px 0 0;
  line-height: 1.5;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .customer-active-policy-summary,
  .customer-policy-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-policy-grid {
    grid-template-columns: 1fr;
  }
}


/* CA-AIFW-COMPANY-ONBOARDING-PUBLIC-REQUEST-1C */
.customer-new-company-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
  color: #64748b;
  font-size: 0.84rem;
  text-align: center;
}

.customer-new-company-cta a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.customer-new-company-cta a:hover {
  text-decoration: underline;
}

/* ============================================================
   CA-AIFW-UNIVERSAL-DASHBOARD-1H
   Universal Agent customer-safe visibility
   ============================================================ */

.customer-universal-agent-card {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-color, #dfe5ec);
  border-radius: 14px;
  background: var(--card-background, #ffffff);
}

.customer-universal-agent-card h3 {
  margin: 0.35rem 0 0.25rem;
}

.customer-universal-agent-card .summary-grid {
  margin-top: 1rem;
}

.customer-universal-agent-note {
  margin: 1rem 0 0;
  line-height: 1.55;
}

/* ==========================================================================
   CA-AIFW-UNIVERSAL-DASHBOARD-2H
   Authenticated Universal Agent local health
   ========================================================================== */

.customer-universal-local-status {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.customer-universal-local-status h4 {
  margin: 0 0 6px;
}

.customer-universal-status-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(180px, 1fr)
  );
  gap: 10px;
  margin-top: 14px;
}

.customer-universal-status-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
}

.customer-universal-status-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.78rem;
  opacity: 0.72;
}

.customer-universal-status-value {
  display: block;
  overflow-wrap: anywhere;
}

.customer-universal-diagnostic {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.customer-universal-diagnostic p {
  margin: 6px 0 0;
}

.customer-universal-status-boundary {
  margin: 12px 0 0;
}

/* ==========================================================================
   CA-AIFW-UNIVERSAL-DASHBOARD-2L
   Customer-safe protection recommendations
   ========================================================================== */

.customer-protection-recommendations {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.customer-protection-recommendations h4 {
  margin: 0 0 6px;
}

.customer-protection-recommendation-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.customer-protection-recommendation-item {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
}

.customer-protection-recommendation-target,
.customer-protection-recommendation-meta,
.customer-protection-recommendation-status {
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.customer-protection-recommendation-meta {
  font-size: 0.88rem;
  opacity: 0.82;
}

.customer-protection-recommendation-status {
  font-size: 0.82rem;
  font-weight: 600;
}
