/*
 * Ferrum Sentinel — brand styling aligned with the FerrumSec landing page (shared with
 * Ferrum ResponseLab; design system is identical so the products read as siblings).
 * Dark "iron" theme: Space Grotesk + JetBrains Mono, cyan primary, glass panels.
 * Semantic fe-* classes are styled here so templates stay markup-light.
 */

/* Self-hosted brand fonts (latin, variable woff2) served from /static/fonts — no third-party
 * Google Fonts request, so the UI leaks no user IP/UA and renders fully offline. font-display:swap
 * paints text immediately with the system fallback, then swaps in the brand face. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/space-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --bg: #070a0d;
  --bg-2: #0a0d12;
  --panel: #0d1218;
  --text: #c3cbd6;
  --text-dim: #8b96a5;
  --head: #f1f4f8;
  --iron: #2db9e8;
  --iron-bright: #79d7f2;
  --warm: #ff8a5d;
  --green: #3ddc97;
  --danger: #ff6b6b;
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  --glass-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.4);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --blur: saturate(140%) blur(18px);
  --maxw: 1100px;
  --radius: 16px;
  --radius-sm: 11px;
}

* {
  box-sizing: border-box;
}

.fe-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient atmosphere (mirrors the landing page) */
.fe-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 540px at 78% -8%, rgba(45, 185, 232, 0.13), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(45, 185, 232, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.fe-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.32;
}

a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: rgba(45, 185, 232, 0.28);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--iron-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ Header / nav ============ */
.fe-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 15, 0.62);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px -20px rgba(0, 0, 0, 0.9);
}
.fe-header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.fe-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--head);
  letter-spacing: 0.01em;
}
.fe-brand img {
  height: 45px;
  width: 45px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}
.fe-brand b {
  color: var(--iron-bright);
  font-weight: 700;
}

.fe-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fe-navlink {
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.18s ease, background 0.18s ease;
}
.fe-navlink:hover {
  color: var(--head);
  background: rgba(255, 255, 255, 0.05);
}
.fe-navlink--cta {
  color: #04141c;
  background: linear-gradient(180deg, var(--iron-bright), var(--iron));
  font-weight: 600;
  box-shadow: 0 8px 22px -10px rgba(45, 185, 232, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.fe-navlink--cta:hover {
  color: #04141c;
  background: linear-gradient(180deg, var(--iron-bright), var(--iron));
  transform: translateY(-1px);
}
.fe-navbtn {
  font-family: "Space Grotesk", sans-serif;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline-strong);
  color: var(--head);
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.fe-navbtn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(121, 215, 242, 0.5);
}

/* ============ Main / panels ============ */
.fe-main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fe-card {
  position: relative;
  width: 100%;
  max-width: 34rem;
  background: var(--glass-fill);
  background-color: rgba(13, 18, 24, 0.55);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--hairline);
  box-shadow: var(--glass-shadow), var(--inset-hi);
  border-radius: var(--radius);
  padding: 2.25rem;
  overflow: hidden;
}
/* Iron filament along the top edge. */
.fe-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--iron), transparent);
  opacity: 0.65;
}
.fe-card--wide {
  max-width: 52rem;
}

/* Mono kicker label (signature of the brand) */
.fe-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--iron-bright);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.85rem;
}
.fe-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--iron), transparent);
}

.fe-title {
  margin: 0 0 0.4rem;
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--head);
}
.fe-subtitle {
  margin: 1.75rem 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--head);
}
.fe-lead {
  margin: 0 0 0.4rem;
  color: var(--text);
  font-size: 1.05rem;
}
.fe-muted {
  margin: 0 0 1.5rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}
/* "or" divider between the password form and the SSO button. */
.fe-or {
  text-align: center;
  margin: 0.85rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
.fe-mono-dim {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============ Buttons / links ============ */
.fe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 11px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  color: #04141c;
  background: linear-gradient(180deg, var(--iron-bright), var(--iron));
  box-shadow: 0 8px 22px -8px rgba(45, 185, 232, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.fe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(45, 185, 232, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.fe-btn:active {
  transform: translateY(0);
}
.fe-btn--ghost {
  color: var(--head);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--hairline-strong);
  box-shadow: none;
  margin-top: 1.25rem;
}
.fe-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(121, 215, 242, 0.5);
  box-shadow: none;
}

.fe-link {
  color: var(--iron-bright);
  border-bottom: 1px solid rgba(121, 215, 242, 0.35);
  transition: border-color 0.16s ease, color 0.16s ease;
}
.fe-link:hover {
  color: #a6e6fa;
  border-color: var(--iron-bright);
}

.fe-cta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

/* ============ Layout helpers ============ */
.fe-row-between {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* ============ Forms ============ */
.fe-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.fe-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.fe-input {
  font-family: "Space Grotesk", sans-serif;
  background: rgba(5, 8, 11, 0.6);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  color: var(--head);
  font-size: 0.98rem;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.fe-input:focus {
  outline: none;
  border-color: var(--iron);
  box-shadow: 0 0 0 3px rgba(45, 185, 232, 0.18);
}
.fe-hint {
  font-family: "Space Grotesk", sans-serif;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-dim);
  font-size: 0.78rem;
}
.fe-alert {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ffb3b3;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
}

/* ============ Lists / badges / tables ============ */
.fe-empty {
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
}
.fe-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.fe-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.fe-list-item:hover {
  border-color: rgba(121, 215, 242, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.fe-list-item--col {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.fe-list-link {
  flex: 1;
  color: var(--head);
  font-weight: 600;
}
.fe-input--sm {
  padding: 0.3rem 0.45rem;
  font-size: 0.82rem;
}
.fe-inline-form {
  margin: 0;
}
.fe-list-link:hover {
  color: var(--iron-bright);
}
.fe-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  color: var(--text-dim);
}
.fe-badge--role {
  color: var(--iron-bright);
  border-color: rgba(45, 185, 232, 0.45);
  background: rgba(45, 185, 232, 0.08);
}

.fe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.fe-table th,
.fe-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--hairline);
}
.fe-table th {
  font-family: "JetBrains Mono", monospace;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.fe-table td {
  color: var(--text);
}

/* ============ Misc ============ */
.fe-ping {
  margin-top: 1rem;
  min-height: 1.5rem;
}
.fe-ping-result {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--green);
}

.fe-footer {
  border-top: 1px solid var(--hairline);
  background: rgba(8, 11, 15, 0.4);
}
.fe-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ============ Scenario library ============ */
.fe-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}
.fe-scenario-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.fe-scenario-card:hover {
  border-color: rgba(121, 215, 242, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}
.fe-scenario-title {
  color: var(--head);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
}
.fe-scenario-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.fe-badge--cat {
  align-self: flex-start;
  color: var(--iron-bright);
  border-color: rgba(45, 185, 232, 0.45);
  background: rgba(45, 185, 232, 0.08);
}
.fe-badge--type {
  color: var(--warm);
  border-color: rgba(255, 138, 93, 0.4);
}
.fe-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
}

/* ============ Scenario detail ============ */
.fe-role-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.fe-role {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--iron);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, 0.02);
}
.fe-role-name {
  color: var(--head);
  font-weight: 600;
  font-size: 0.92rem;
}
.fe-role-desc {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* Inject timeline — the signature element */
.fe-timeline {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}
.fe-tl-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
}
.fe-tl-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--iron-bright);
  text-align: right;
  padding-top: 0.1rem;
}
.fe-tl-body {
  position: relative;
  border-left: 1px solid var(--hairline-strong);
  padding: 0 0 1.4rem 1.25rem;
}
.fe-tl-body::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.25rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--iron);
  box-shadow: 0 0 0 3px rgba(45, 185, 232, 0.18);
}
.fe-tl-item:last-child .fe-tl-body {
  border-left-color: transparent;
  padding-bottom: 0.25rem;
}
.fe-tl-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.fe-tl-title {
  color: var(--head);
  font-weight: 600;
}
.fe-tl-narrative {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Decision prompts */
.fe-prompt-list {
  list-style: none;
  counter-reset: prompt;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fe-prompt {
  counter-increment: prompt;
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 2.4rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 0.92rem;
}
.fe-prompt::before {
  content: counter(prompt, decimal-leading-zero);
  position: absolute;
  left: 0.85rem;
  top: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--iron-bright);
}

/* Scenario form extras */
.fe-textarea {
  resize: vertical;
  min-height: 4.5rem;
  font-family: "Space Grotesk", sans-serif;
}
.fe-field-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.fe-field-row .fe-label {
  flex: 1;
  min-width: 8rem;
}
.fe-label--narrow {
  max-width: 7rem;
}

/* ============ Exercise status badges ============ */
.fe-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  color: var(--text-dim);
  white-space: nowrap;
}
.fe-status--scheduled {
  color: var(--iron-bright);
  border-color: rgba(45, 185, 232, 0.45);
  background: rgba(45, 185, 232, 0.08);
}
.fe-status--running {
  color: var(--green);
  border-color: rgba(61, 220, 151, 0.45);
  background: rgba(61, 220, 151, 0.08);
}
.fe-status--paused {
  color: var(--warm);
  border-color: rgba(255, 138, 93, 0.45);
  background: rgba(255, 138, 93, 0.08);
}
.fe-status--cancelled {
  color: #ffb3b3;
  border-color: rgba(255, 107, 107, 0.4);
}

/* ============ Participants + inline forms ============ */
.fe-participants {
  margin-bottom: 0.5rem;
}
.fe-form--inline {
  margin: 1rem 0 0;
  gap: 0.75rem;
}
.fe-cell-action {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}
.fe-btn--sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}
.fe-navbtn--sm {
  padding: 4px 10px;
  font-size: 0.78rem;
}

/* ============ Live room ============ */
.fe-live-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.fe-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
  animation: fe-pulse 1.8s ease-out infinite;
}
@keyframes fe-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.5);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(61, 220, 151, 0);
  }
}
.fe-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.fe-tl-actions {
  display: inline-flex;
  gap: 0.5rem;
  margin-left: auto;
}
@media (prefers-reduced-motion: reduce) {
  .fe-live-dot {
    animation: none;
  }
}

/* ============ Orchestrated page-load reveal ============ */
@keyframes fe-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fe-header {
  animation: fe-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fe-card {
  animation: fe-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@media (prefers-reduced-motion: reduce) {
  .fe-header,
  .fe-card,
  .fe-btn,
  .fe-list-item {
    animation: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  /* Header wraps to two rows: brand on top, nav (full-width, wrapping) beneath — so the
     menu stays usable on narrow screens instead of crowding one row. */
  .fe-header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    row-gap: 10px;
  }
  .fe-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .fe-navlink {
    padding: 8px 12px;
    font-size: 0.88rem;
  }
  .fe-main {
    padding: 2rem 16px;
  }
  .fe-card {
    padding: 1.5rem;
  }
}

/* ============ Loading states ============ */
/* Global top progress bar — toggled by /static/js/app.js on htmx requests. */
#fe-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--iron), var(--iron-bright));
  box-shadow: 0 0 12px rgba(45, 185, 232, 0.6);
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
}
.fe-loading #fe-progress {
  opacity: 1;
  animation: fe-progress 1.3s ease-out infinite;
}
@keyframes fe-progress {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }
  65% {
    transform: scaleX(0.72);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

/* Inline spinner — pair with `htmx-indicator` to reveal only mid-request. */
.fe-spinner {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.12em;
  margin-right: 0.4em;
  animation: fe-spin 0.6s linear infinite;
}
@keyframes fe-spin {
  to {
    transform: rotate(360deg);
  }
}
.fe-spinner.htmx-indicator {
  display: none;
}
.htmx-request .fe-spinner.htmx-indicator,
.htmx-request.fe-spinner.htmx-indicator {
  display: inline-block;
}

/* Disabled controls (incl. hx-disabled-elt during an in-flight request). */
.fe-btn:disabled,
.fe-btn[disabled],
.fe-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
  pointer-events: none;
}

/* ============ Cookie consent ============ */
.fe-footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.fe-consent {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 9998;
  width: min(680px, calc(100% - 2rem));
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(13, 18, 24, 0.94);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.fe-consent.is-open {
  display: flex;
}
.fe-consent-text {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.fe-consent .fe-btn {
  flex: 0 0 auto;
}
@media (max-width: 520px) {
  .fe-consent {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============ Error pages ============ */
.fe-errcode {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--iron);
  text-shadow: 0 0 32px rgba(45, 185, 232, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .fe-spinner,
  .fe-loading #fe-progress {
    animation: none;
  }
}

/* ============ Landing page ============ */
.fe-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 540px at 78% -8%, rgba(45, 185, 232, 0.13), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(45, 185, 232, 0.06), transparent 60%),
    radial-gradient(700px 460px at 92% 96%, rgba(255, 138, 93, 0.05), transparent 60%);
}

.fe-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
}
.fe-hero-copy {
  animation: fe-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.fe-hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--head);
  margin: 0.6rem 0 1.1rem;
}
.fe-hero-accent {
  background: linear-gradient(92deg, var(--iron), var(--iron-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fe-btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.fe-hero-panel {
  background: var(--glass-fill);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), var(--inset-hi);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  padding: 1rem 1.1rem 1.2rem;
  animation: fe-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}
.fe-win {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 0.85rem;
}
.fe-win-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hairline-strong);
}
.fe-win-dot:nth-child(1) { background: var(--warm); }
.fe-win-dot:nth-child(2) { background: #f1c453; }
.fe-win-dot:nth-child(3) { background: var(--green); }
.fe-win-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-left: 0.4rem;
}
.fe-win .fe-live-dot {
  margin-left: auto;
}
.fe-mini-tl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.fe-mini-tl li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  font-size: 0.82rem;
  color: var(--text);
}
.fe-mini-t {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--iron);
  flex: 0 0 auto;
}
.fe-mini-foot {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hairline);
}
.fe-grade {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--green);
  line-height: 1;
}

.fe-section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--hairline);
}
.fe-section .fe-kicker {
  display: block;
  margin-bottom: 1.4rem;
}
.fe-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.fe-feature {
  background: var(--glass-fill);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.fe-feature:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
}
.fe-feature-ix {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--iron);
}
.fe-feature h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.06rem;
  color: var(--head);
  margin: 0.5rem 0 0.45rem;
}
.fe-feature p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.fe-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.fe-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.fe-step-n {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--iron);
  color: var(--iron);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}
.fe-step h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  color: var(--head);
  margin: 0.25rem 0 0.3rem;
}
.fe-step p {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.fe-band {
  margin: 2.75rem 0;
  padding: 2.25rem;
  text-align: center;
  background: var(--glass-fill);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--inset-hi);
}
.fe-band .fe-lead {
  max-width: 60ch;
  margin: 0.8rem auto 0;
}
.fe-section--cta {
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.fe-section--cta .fe-cta-row {
  justify-content: center;
}

/* ============ Pricing ============ */
.fe-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.fe-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--glass-fill);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.fe-price-card--featured {
  border-color: rgba(45, 185, 232, 0.55);
  box-shadow: 0 0 0 1px rgba(45, 185, 232, 0.25), 0 18px 50px -24px rgba(45, 185, 232, 0.4);
}
.fe-price-badge {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  background: var(--iron);
  color: #04222e;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}
.fe-price-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.fe-price-amount {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--head);
  margin: 0;
  line-height: 1;
}
.fe-price-amount span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
}
.fe-price-list {
  list-style: none;
  margin: 0.3rem 0 0.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.fe-price-list li {
  font-size: 0.87rem;
  color: var(--text);
  padding-left: 1.2rem;
  position: relative;
}
.fe-price-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--iron);
}
.fe-price-card .fe-btn,
.fe-price-card .fe-link {
  margin-top: auto;
}

@media (max-width: 760px) {
  .fe-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .fe-hero-panel {
    order: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fe-hero-copy,
  .fe-hero-panel {
    animation: none;
  }
  .fe-feature {
    transition: none;
  }
}

/* ============ App shell (P5 HTMX UI) ============ */
/* Centered wrapper for the auth + onboarding cards. */
.fe-auth {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0 3.5rem;
}
/* Dashboard column: a centered stack of the header + panels. */
.fe-dash {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.fe-dash-head {
  display: flex;
  flex-direction: column;
}
/* Primary text in a list row; pushes trailing badges to the right edge. */
.fe-list-main {
  flex: 1;
  color: var(--head);
  font-weight: 600;
}
/* The signed-in user's name in the header nav. */
.fe-navtext {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
/* The Lucide "user" glyph inlined before the name; it inherits the nav-text color. */
.fe-navtext .fe-icon {
  flex: none;
  width: 16px;
  height: 16px;
}
/* A heading paired with an inline icon (e.g. the org name + building glyph). */
.fe-title--icon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.fe-title .fe-icon {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  color: var(--iron);
}
/* A <button> that should look like a header nav link (resets the native button chrome;
   color/padding/font come from the co-applied .fe-navlink). */
.fe-navlink--button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* ============ Scan results (P5) ============ */
/* The findings summary sits above the modules; give it room before the first module. */
#fe-scan-status > .fe-lead {
  margin-bottom: 1.75rem;
}
/* Each scanner module is its own breathing block, separated by a hairline. */
.fe-module {
  margin-top: 2.25rem;
  padding-top: 1.85rem;
  border-top: 1px solid var(--hairline);
}
.fe-module:first-of-type {
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: 0;
}
.fe-module-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--head);
}
/* Findings list under a module: space it off the header and let rows breathe. */
.fe-module .fe-list {
  margin-top: 1.2rem;
  gap: 0.85rem;
}
.fe-module .fe-list-item {
  padding: 1.05rem 1.2rem;
}
.fe-module .fe-list-item--col {
  gap: 0.6rem;
}
/* The finding description: a touch larger + roomier than the default hint. */
.fe-module .fe-hint {
  font-size: 0.86rem;
  line-height: 1.55;
}
/* "No issues detected" note gets vertical space from the module header. */
.fe-module > .fe-mono-dim {
  display: inline-block;
  margin-top: 0.95rem;
}
/* A space-between header row that fills its container (finding title + severity badge,
   module label + status). */
.fe-finding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}
/* Severity-tinted badges, keyed off the canonical severity set. */
.fe-sev-critical {
  color: #ffb3b3;
  border-color: rgba(255, 107, 107, 0.55);
  background: rgba(255, 107, 107, 0.12);
}
.fe-sev-high {
  color: #ffc7ad;
  border-color: rgba(255, 138, 93, 0.5);
  background: rgba(255, 138, 93, 0.12);
}
.fe-sev-medium {
  color: #ffd9a0;
  border-color: rgba(255, 180, 90, 0.45);
  background: rgba(255, 180, 90, 0.1);
}
.fe-sev-low {
  color: var(--iron-bright);
  border-color: rgba(45, 185, 232, 0.4);
  background: rgba(45, 185, 232, 0.08);
}
.fe-sev-info {
  color: var(--text-dim);
}

/* ============ Dashboard metric band + score grid (P5) ============ */
.fe-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}
.fe-stat {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.fe-stat-n {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--head);
}
.fe-stat-n--alert {
  color: var(--warm);
}
.fe-stat-l {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
/* The cyber-health grade pill in a domain row (letter + score). */
.fe-grade-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--head);
}
.fe-grade-score {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}
.fe-grade-A {
  color: var(--green);
  border-color: rgba(61, 220, 151, 0.5);
  background: rgba(61, 220, 151, 0.1);
}
.fe-grade-B {
  color: var(--iron-bright);
  border-color: rgba(45, 185, 232, 0.5);
  background: rgba(45, 185, 232, 0.1);
}
.fe-grade-C {
  color: #ffd9a0;
  border-color: rgba(255, 180, 90, 0.5);
  background: rgba(255, 180, 90, 0.1);
}
.fe-grade-D {
  color: #ffc7ad;
  border-color: rgba(255, 138, 93, 0.5);
  background: rgba(255, 138, 93, 0.12);
}
.fe-grade-F {
  color: #ffb3b3;
  border-color: rgba(255, 107, 107, 0.55);
  background: rgba(255, 107, 107, 0.12);
}
.fe-grade-none {
  color: var(--text-dim);
}

/* ============ Prioritization "Top priorities" panel (A1 add-on) ============ */
.fe-priority-row {
  flex-wrap: wrap;
}
.fe-priority-score {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--head);
}
.fe-priority-why {
  flex: 1 1 14rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.45;
}
.fe-priority-link {
  flex: none;
}
/* Priority-band tints, mirroring the severity/grade palette (urgent=danger ... low=dim). */
.fe-badge--urgent {
  color: #ffb3b3;
  border-color: rgba(255, 107, 107, 0.55);
  background: rgba(255, 107, 107, 0.12);
}
.fe-badge--high {
  color: #ffc7ad;
  border-color: rgba(255, 138, 93, 0.5);
  background: rgba(255, 138, 93, 0.12);
}
.fe-badge--normal {
  color: var(--iron-bright);
  border-color: rgba(45, 185, 232, 0.45);
  background: rgba(45, 185, 232, 0.08);
}
.fe-badge--low {
  color: var(--text-dim);
  border-color: var(--hairline-strong);
}

/* ============ Shield Advisor "Top Fixes" panel (A2 add-on) ============ */
.fe-action-row {
  display: flex;
  gap: 0.5rem;
  flex: none;
}
/* The transient score-simulation result block. */
.fe-sim {
  border-color: rgba(61, 220, 151, 0.4);
  background: rgba(61, 220, 151, 0.06);
}
.fe-sim-headline {
  font-size: 1.02rem;
  color: var(--head);
  margin: 0.4rem 0 0.2rem;
}
.fe-advisor-row {
  gap: 0.45rem;
}
.fe-rec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}
.fe-rec-title {
  color: var(--head);
  font-size: 1rem;
}
.fe-rec-gain {
  flex: none;
  color: var(--green);
  border-color: rgba(61, 220, 151, 0.5);
  background: rgba(61, 220, 151, 0.1);
}
.fe-rec-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0;
}
.fe-rec-risk {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}
.fe-rec-action {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}
.fe-rec-label {
  color: var(--iron-bright);
  font-weight: 600;
}
.fe-why {
  width: 100%;
  border-top: 1px solid var(--hairline);
  padding-top: 0.5rem;
}
.fe-why > summary {
  cursor: pointer;
  color: var(--iron-bright);
  font-size: 0.85rem;
  font-weight: 600;
}
.fe-rec-scenario {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.5rem 0 0.3rem;
}
.fe-rec-link {
  font-size: 0.88rem;
}

/* ============ Advisor delegation queue (A7 add-on) ============ */
.fe-deleg-row {
  gap: 0.5rem;
}
/* Status pills: a draft is pending review; sent is done. */
.fe-deleg-status--draft {
  color: #ffd9a0;
  border-color: rgba(255, 180, 90, 0.45);
  background: rgba(255, 180, 90, 0.1);
}
.fe-deleg-status--sent {
  color: var(--green);
  border-color: rgba(61, 220, 151, 0.5);
  background: rgba(61, 220, 151, 0.1);
}
.fe-deleg-send {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding-top: 0.4rem;
}
.fe-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  cursor: pointer;
}
.fe-check > input {
  accent-color: var(--iron);
}

/* ============ Evidence proof pack (A3 add-on) ============ */
.fe-evid-row {
  gap: 0.5rem;
}
.fe-evid-status--redacted {
  color: var(--iron-bright);
  border-color: rgba(45, 185, 232, 0.45);
  background: rgba(45, 185, 232, 0.08);
}
.fe-evid-status--none {
  color: var(--green);
  border-color: rgba(61, 220, 151, 0.5);
  background: rgba(61, 220, 151, 0.1);
}
.fe-evid-status--pending {
  color: #ffd9a0;
  border-color: rgba(255, 180, 90, 0.45);
  background: rgba(255, 180, 90, 0.1);
}
.fe-evid-pre {
  margin: 0.6rem 0 0.3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(8, 11, 15, 0.55);
  color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  max-height: 22rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ============ Report library (P3 reports) ============ */
.fe-rep-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
/* Audience pills: internal vs client (shareable). */
.fe-aud-internal {
  color: var(--text-dim);
}
.fe-aud-client {
  color: var(--iron-bright);
  border-color: rgba(45, 185, 232, 0.45);
  background: rgba(45, 185, 232, 0.08);
}
/* Report status pills. */
.fe-rep-ready {
  color: var(--green);
  border-color: rgba(61, 220, 151, 0.5);
  background: rgba(61, 220, 151, 0.1);
}
.fe-rep-generating {
  color: #ffd9a0;
  border-color: rgba(255, 180, 90, 0.45);
  background: rgba(255, 180, 90, 0.1);
}
.fe-rep-failed {
  color: #ffb3b3;
  border-color: rgba(255, 107, 107, 0.55);
  background: rgba(255, 107, 107, 0.12);
}
/* A button that reads as a (danger) link, for in-table Delete. */
.fe-linkbtn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--danger);
  font-weight: 600;
}
.fe-linkbtn:hover {
  text-decoration: underline;
}
/* A muted (non-danger) link-button, e.g. "Mark read". */
.fe-linkbtn--muted {
  color: var(--iron-bright);
  font-weight: 500;
}
/* The one-time "share link created" callout. */
.fe-share-new {
  border-color: rgba(45, 185, 232, 0.45);
  background: rgba(45, 185, 232, 0.06);
}

/* ============ Readiness questionnaire tabs (A6 add-ons) ============ */
.fe-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--hairline);
}
.fe-tab {
  padding: 0.5rem 0.9rem;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.fe-tab:hover {
  color: var(--iron-bright);
}
.fe-tab--active {
  color: var(--head);
  border-bottom-color: var(--iron);
}
.fe-brand-logo {
  margin: 0.75rem 0 0;
}
.fe-brand-logo img {
  max-width: 240px;
  height: 48px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 6px 10px;
}
/* MSP attention rows: block list items with a separator. */
.fe-attn-row {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
}
.fe-attn-row:last-child {
  border-bottom: none;
}
/* Attention badge: active (needs action) vs calm (quiet). */
.fe-attn--active {
  color: var(--warm);
  border-color: rgba(255, 138, 93, 0.5);
  background: rgba(255, 138, 93, 0.1);
}
.fe-attn--calm {
  color: var(--green);
  border-color: rgba(61, 220, 151, 0.45);
  background: rgba(61, 220, 151, 0.08);
}
/* Portfolio-trend change direction. */
.fe-trend {
  font-weight: 600;
}
.fe-trend--improved {
  color: var(--green);
}
.fe-trend--worsened {
  color: var(--danger);
}
.fe-trend--unchanged {
  color: var(--text-dim);
}
/* Add-ons panel: preview-module chips. */
.fe-addon-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.fe-addon-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--head);
  font-weight: 600;
  font-size: 0.92rem;
}
.fe-addon-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--iron-bright);
  border: 1px solid rgba(45, 185, 232, 0.45);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  background: rgba(45, 185, 232, 0.08);
}
/* Public free-preview form + result on the landing hero. */
.fe-preview-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 0.4rem;
}
.fe-preview-input {
  flex: 1 1 16rem;
  min-width: 0;
}
.fe-preview-result {
  margin-top: 1rem;
}
.fe-preview-card {
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.1rem 1.25rem;
}
.fe-preview-card--error {
  border-color: rgba(255, 138, 93, 0.5);
  background: rgba(255, 138, 93, 0.08);
}
.fe-preview-finding {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
}
.fe-preview-finding:last-of-type {
  border-bottom: none;
}
.fe-preview-disclaimer {
  margin-top: 0.9rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}
