* {
  box-sizing: border-box;
}

:root {
  --background: #0d1520;
  --surface: #131e2c;
  --surface-alt: #172435;
  --border: #263548;
  --border-dark: #3a4a5e;
  --text: #e7edf4;
  --text-secondary: #aab8c8;
  --text-muted: #78899d;
  --navy: #e8eef5;
  --navy-light: #ffffff;
  --accent: #7895b2;
  --accent-hover: #91aac3;
  --critical: #d4777d;
  --critical-background: #302025;
  --high: #c8956d;
  --high-background: #2e2823;
  --medium: #b8a56b;
  --medium-background: #2d2a21;
  --max-width: 1120px;
}

/* =========================
   Base
   ========================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
}

/* =========================
   Navigation
   ========================= */

.site-header {
  background: #101b29;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-width);
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: #a8b6c6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:hover {
  color: #f1f5f9;
}

.main-nav .dashboard-nav-link {
  padding: 8px 11px;
  border-radius: 5px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.main-nav .dashboard-nav-link:hover,
.main-nav .dashboard-nav-link.active {
  color: var(--text);
  background: #1b2a3d;
}

.main-nav .login-link {
  padding: 8px 15px;
  border: 1px solid #43546a;
  border-radius: 6px;
  color: #dce5ee;
}

.main-nav .login-link:hover {
  background: #1b2a3d;
  border-color: #566a82;
}

/* =========================
   Hero
   ========================= */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 78px 24px 72px;
  text-align: center;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.hero-label {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.4px;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -2.5px;
  font-weight: 750;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  max-width: 610px;
  margin: 22px auto 30px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.hero p strong {
  color: #5191d1;
  font-weight: 650;
}

/* =========================
   Signup Message
   ========================= */

.signup-message {
  margin: 16px auto 22px !important;
  color: var(--accent) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 600;
}


/* =========================
   Buttons
   ========================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.button-primary {
  background: #dce5ee;
  color: #172235;
}

.button-primary:hover {
  background: #f1f5f9;
}

/* =========================
   Intelligence Grid
   ========================= */

.intelligence-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* =========================
   Intelligence Panels
   ========================= */

.intelligence-panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12);
}

.panel-heading {
  min-height: 106px;
  padding: 20px 22px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.panel-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.1px;
}

.panel-heading h2,
.news-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.panel-heading p,
.news-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.view-all {
  align-self: center;
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.view-all:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* =========================
   Exploited
   ========================= */

.exploited-label {
  color: var(--critical);
}

.exploited-indicator {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--critical);
}

/* =========================
   Vulnerabilities
   ========================= */

.vulnerability-list {
  padding: 0 22px;
}

.vulnerability-row {
  min-height: 94px;
  padding: 17px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.vulnerability-row:last-child {
  border-bottom: 0;
}

.vulnerability-info {
  min-width: 0;
}

.vulnerability-info strong {
  display: block;
  color: var(--text);
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
}

.vulnerability-info span {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.vulnerability-info small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vulnerability-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-shrink: 0;
}

/* =========================
   KEV View More
   ========================= */

.kev-more {
  width: 100%;
  padding: 16px 22px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--border);
}

.kev-more button {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.kev-more button:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* =========================
   Severity
   ========================= */

.severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.severity.critical {
  color: var(--critical);
  background: var(--critical-background);
}

.severity.high {
  color: var(--high);
  background: var(--high-background);
}

.severity.medium {
  color: var(--medium);
  background: var(--medium-background);
}

/* =========================
   CISA KEV
   ========================= */

.kev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 0 7px;
  border-radius: 4px;
  color: var(--critical);
  background: #271d21;
  border: 1px solid #57363b;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* =========================
   Recent CVEs
   ========================= */

.cve-list {
  padding: 0 22px;
}

.cve-row {
  min-height: 67px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--border);
}

.cve-row:last-child {
  border-bottom: 0;
}

.cve-row strong {
  display: block;
  color: var(--text);
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
}

.cve-row div span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

/* =========================
   Security News
   ========================= */

.news-section {
  max-width: var(--max-width);
  margin: 28px auto 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12);
}

.news-heading {
  min-height: 106px;
  padding: 20px 22px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.news-list {
  padding: 0 22px;
}

.news-row {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.news-row:last-child {
  border-bottom: 0;
}

.news-row time {
  padding-top: 2px;
  color: var(--text-muted);
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
}

.news-content {
  min-width: 0;
}

.news-content h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 650;
}

.news-content h3 a {
  color: inherit;
  text-decoration: none;
}

.news-content h3 a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.news-content p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.news-source {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
}

.news-loading {
  margin: 0;
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  border-top: 1px solid var(--border);
  background: #101b29;
}

.footer-inner {
  max-width: var(--max-width);
  min-height: 70px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #718197;
  font-size: 11px;
}

.footer-inner strong {
  color: #dce5ee;
  font-size: 12px;
}

.footer-inner span:last-child {
  margin-left: auto;
}

.footer-inner .terms-link {
  color: #a8b6c6;
  font-size: 11px;
  text-decoration: none;
}

.footer-inner .terms-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.legal-page {
  max-width: 880px;
  margin: 42px auto 64px;
  padding: 0 24px;
}

.legal-card {
  padding: clamp(24px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.legal-card > .panel-label {
  color: var(--accent);
}

.legal-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.legal-updated {
  margin: 8px 0 26px;
  color: var(--text-muted);
  font-size: 12px;
}

.legal-card h2 {
  margin: 26px 0 7px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

.legal-card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.legal-contact-placeholder {
  color: var(--text);
  font-weight: 650;
}

/* =========================
   Tablet
   ========================= */

@media (max-width: 800px) {
  .hero {
    padding-top: 65px;
    padding-bottom: 60px;
  }

  .intelligence-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 600px) {
  .nav-container {
    height: 62px;
    padding: 0 18px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav a:not(.login-link) {
    display: none;
  }

  .main-nav .dashboard-nav-link {
    display: inline-flex;
    padding: 6px 7px;
    font-size: 11px;
  }

  .hero {
    padding: 58px 18px 55px;
  }

  .hero-label {
    font-size: 10px;
  }

  .hero h1 {
    font-size: 42px;
    letter-spacing: -1.8px;
  }

  .hero p {
    font-size: 15px;
  }

  .intelligence-grid {
    padding: 0 18px;
    gap: 16px;
  }

  .marketing-previews {
    margin-right: 18px;
    margin-left: 18px;
  }

  .marketing-preview-grid {
    gap: 12px;
  }

  .panel-heading {
    min-height: auto;
    padding: 19px 18px;
  }

  .vulnerability-list,
  .cve-list {
    padding-left: 18px;
    padding-right: 18px;
  }

  .vulnerability-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .vulnerability-status {
    width: 100%;
    justify-content: flex-start;
  }

  .kev-more {
    padding-left: 18px;
    padding-right: 18px;
  }

  .news-section {
    margin-top: 20px;
    margin-bottom: 40px;
    margin-left: 18px;
    margin-right: 18px;
  }

  .news-heading {
    min-height: auto;
    padding: 19px 18px;
  }

  .news-list {
    padding-left: 18px;
    padding-right: 18px;
  }

  .news-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    min-height: auto;
    padding: 20px 18px;
    flex-wrap: wrap;
  }

  .footer-inner span:last-child {
    width: 100%;
    margin-left: 0;
  }
}

/* =========================
   Logo
   ========================= */

.logo {
  display: inline-flex;
  align-items: center;
  color: #f1f5f9;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.7px;
}

.logo strong {
  font-weight: 750;
}

.signal-mark {
  position: relative;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.signal-mark::before,
.signal-mark::after {
  content: "";
  position: absolute;
  border: 1px solid var(--accent);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}

.signal-mark::before {
  width: 13px;
  height: 13px;
  top: -4px;
  left: -4px;
}

.signal-mark::after {
  width: 19px;
  height: 19px;
  top: -7px;
  left: -7px;
  opacity: 0.45;
}

.logo-cve {
  color: #f1f5f9;
  font-weight: 700;
}

.logo-signal {
  color: #7895b2;
}

.signal-mark {
  background: #5191d1;
}

/* =========================
   Footer Logo
   ========================= */

.footer-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: #f1f5f9;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.footer-logo .logo-cve {
  color: #f1f5f9;
}

.footer-logo .logo-signal {
  color: #7895b2;
}

.footer-logo .signal-mark {
  transform: scale(0.8);
  transform-origin: center;
}

/* =========================
   Monitor What Matters
   ========================= */

.monitor-steps {
  padding: 4px 22px 8px;
}

.monitor-step {
  min-height: 96px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

.monitor-step:last-child {
  border-bottom: 1px solid var(--border);
}

/* =========================
   Frosted Plastic Step Button
   ========================= */

.monitor-step-number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 10px;
  background:
    linear-gradient(
      145deg,
      rgba(120, 149, 178, 0.16),
      rgba(44, 62, 82, 0.18)
    );
  border: 1px solid rgba(150, 175, 200, 0.22);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 -2px 3px rgba(0, 0, 0, 0.20),
    0 3px 0 rgba(7, 13, 21, 0.65),
    0 6px 12px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Soft plastic highlight */

.monitor-step-number::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  right: 5px;
  height: 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

/* Step Number */

.monitor-step-number span {
  position: relative;
  z-index: 1;
  color: #5191d1;
  font-family: monospace;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.5px;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45);
}

/* =========================
   Monitor Step Content
   ========================= */

.monitor-step-content {
  min-width: 0;
}

.monitor-step-content h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.monitor-step-content p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.marketing-previews {
  min-width: 0;
  margin: 0 22px 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.marketing-previews[hidden] {
  display: none;
}

.marketing-previews-heading {
  margin-bottom: 16px;
}

.marketing-previews-heading .panel-label {
  margin-bottom: 4px;
  color: var(--accent);
}

.marketing-previews-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.marketing-previews-heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

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

.marketing-preview {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #0d1520;
}

.marketing-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
}

.marketing-preview-trigger {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #0d1520;
  cursor: zoom-in;
}

.marketing-preview-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.marketing-preview figcaption {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.screenshot-dialog {
  width: min(92vw, 1100px);
  max-width: none;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.screenshot-dialog::backdrop {
  background: rgba(4, 9, 15, 0.82);
  backdrop-filter: blur(3px);
}

.screenshot-dialog-heading {
  min-height: 54px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.screenshot-dialog-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.screenshot-dialog-close {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: 5px;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.screenshot-dialog-close:hover {
  color: var(--text);
  background: var(--surface);
}

.screenshot-dialog > img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 104px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  background: #0d1520;
}

.screenshot-dialog > p {
  margin: 0;
  padding: 9px 14px;
  color: var(--text-secondary);
  font-size: 12px;
}

/* =========================
   Mobile Monitor Steps
   ========================= */

@media (max-width: 600px) {
  .monitor-step-number {
    width: 44px;
    height: 44px;
    border-radius: 9px;
  }

  .monitor-step-content h3 {
    font-size: 15px;
  }

  .monitor-step-content p {
    font-size: 12px;
  }
}

/* =========================
   Intelligence View More
   ========================= */

.intelligence-grid {
  position: relative;
}

.intelligence-more {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.intelligence-more button {
  min-width: 112px;
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #43546a;
  border-radius: 6px;
  background: #131e2c;
  color: #8da8c2;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.18);
}

.intelligence-more button:hover {
  color: #b1c4d6;
  border-color: #566a82;
  background: #172435;
}

.intelligence-more-arrow {
  font-size: 14px;
  line-height: 1;
}

/* =========================
   Mobile View More
   ========================= */

@media (max-width: 600px) {
  .intelligence-more {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: -8px auto 0;
    padding: 0;
  }
}

/* =========================
   Authentication
   ========================= */

.auth-page {
  min-height: calc(100vh - 139px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18);
}

/* =========================
   Authentication Header
   ========================= */

.auth-header {
  margin-bottom: 28px;
}

.auth-label {
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.2px;
}

.auth-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  font-weight: 750;
}

.auth-header p {
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* =========================
   Authentication Form
   ========================= */

#signup-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #35465a;
  border-radius: 6px;
  background: #0f1926;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.auth-field input::placeholder {
  color: #627287;
}

.auth-field input:hover {
  border-color: #465a70;
}

.auth-field input:focus {
  border-color: #5191d1;
  background: #111d2b;
  box-shadow:
    0 0 0 2px rgba(81, 145, 209, 0.10);
}

/* =========================
   Submit
   ========================= */

.auth-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: #dce5ee;
  color: #172235;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.05s ease;
}

.auth-submit:hover {
  background: #f1f5f9;
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-link-button {
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #35465a;
  border-radius: 6px;
  background: #162333;
  color: #dce5ee;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.auth-link-button:hover:not(:disabled) {
  border-color: #5191d1;
  background: #1b2c40;
}

.auth-link-button:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-link-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.verification-actions {
  margin-top: 18px;
  padding-top: 16px;
  flex-direction: column;
  gap: 10px;
}

.verification-actions-secondary {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* =========================
   Authentication Error
   ========================= */

.auth-card .error {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--critical);
  font-size: 12px;
  line-height: 1.5;
}

/* =========================
   Authentication Footer
   ========================= */

.auth-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-footer a {
  color: #5191d1;
  font-weight: 650;
  text-decoration: none;
}

.auth-footer a:hover {
  color: #72a9dc;
  text-decoration: underline;
}

/* =========================
   Authentication Mobile
   ========================= */

@media (max-width: 600px) {
  .auth-page {
    min-height: calc(100vh - 132px);
    padding: 40px 18px;
  }

  .auth-card {
    padding: 26px 22px;
  }

  .auth-header h1 {
    font-size: 25px;
  }
}

/* =========================
   Dashboard
   ========================= */

.dashboard-page {
  min-height: calc(100vh - 139px);
  padding: 48px 24px 60px;
}

.dashboard-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* =========================
   Dashboard Navigation
   ========================= */

.dashboard-logout {
  padding: 8px 15px;
  border: 1px solid #43546a;
  border-radius: 6px;
  background: transparent;
  color: #dce5ee;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-logout:hover {
  background: #1b2a3d;
  border-color: #566a82;
}

/* =========================
   Dashboard Welcome
   ========================= */

.dashboard-welcome {
  margin-bottom: 30px;
  padding: 4px 2px;
}

.dashboard-label,
.dashboard-section-label {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.2px;
}

.dashboard-welcome h1 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.9px;
  font-weight: 750;
}

.dashboard-welcome p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.dashboard-overview-stats {
  margin: -8px 0 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-stat-card {
  min-height: 116px;
  padding: 17px 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.dashboard-stat-card > span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 650;
}

.dashboard-stat-card > strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 750;
}

.dashboard-stat-card > small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10px;
}

.dashboard-stat-card > a {
  margin-top: 4px;
  color: var(--accent-hover);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.dashboard-stat-card > a:hover {
  color: var(--text);
}

.product-usage {
  width: 100%;
  margin-top: 8px;
}

.profile-product-usage {
  padding: 8px 10px;
}

.profile-usage-title {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 650;
}

.profile-plan-upgrade {
  margin-top: 10px;
  padding-top: 9px;
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--border);
}

.profile-plan-upgrade strong {
  color: var(--text-secondary);
  font-size: 10px;
}

.profile-plan-upgrade span {
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.4;
}

.profile-plan-upgrade button {
  justify-self: start;
  margin-top: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-hover);
  font: inherit;
  font-size: 10px;
  font-weight: 650;
}

.profile-plan-upgrade button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.product-usage-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
}

.product-usage-track {
  height: 6px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-alt);
}

.product-usage-track[hidden] {
  display: none;
}

.product-usage-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent, #71a9e8);
  transition: width 180ms ease;
}

/* =========================
   Dashboard Card
   ========================= */

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12);
}

/* =========================
   Section Header
   ========================= */

.section-header {
  min-height: 108px;
  padding: 21px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.section-header p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* =========================
   Add Product
   ========================= */

.dashboard-add-button {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  border: 1px solid #52667d;
  border-radius: 6px;
  background: #dce5ee;
  color: #172235;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.dashboard-add-button span {
  font-size: 17px;
  line-height: 1;
  font-weight: 500;
}

.dashboard-add-button:hover {
  background: #f1f5f9;
  border-color: #657a91;
}

a.dashboard-add-button {
  text-decoration: none;
}

/* =========================
   Products Container
   ========================= */

.products-container {
  padding: 0 22px;
}

.products-container > p {
  margin: 0;
  padding: 30px 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* =========================
   Dashboard Mobile
   ========================= */

@media (max-width: 600px) {
  .dashboard-page {
    padding: 36px 18px 45px;
  }

  .dashboard-welcome {
    margin-bottom: 24px;
  }

  .dashboard-welcome h1 {
    font-size: 28px;
  }

  .dashboard-overview-stats {
    margin-top: -4px;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .dashboard-stat-card {
    min-height: 88px;
    padding: 13px 16px;
  }

  .section-header {
    min-height: auto;
    padding: 19px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .dashboard-add-button {
    width: 100%;
  }

  .products-container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* =========================
   Monitored Products
   ========================= */

.products-container {
  padding: 0 22px;
}

.product-item {
  min-height: 116px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.product-item:last-child {
  border-bottom: 0;
}

.monitored-category {
  border-bottom: 1px solid var(--border);
}

.monitored-category:last-child {
  border-bottom: 0;
}

.monitored-category > summary {
  min-height: 58px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.monitored-category > summary::-webkit-details-marker {
  display: none;
}

.monitored-category > summary::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  content: "";
  transform: rotate(-45deg);
  transition: transform 140ms ease;
}

.monitored-category[open] > summary::before {
  transform: rotate(45deg);
}

.monitored-category-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.monitored-category-count {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}

.monitored-category-products {
  padding: 0 8px 0 24px;
}

.product-category {
  margin-bottom: 5px;
  color: var(--accent-hover);
  font-size: 10px;
  font-weight: 650;
}

/* =========================
   Product Details
   ========================= */

.product-details {
  min-width: 0;
}

.product-vendor {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-name {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.product-status {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8fa6bb;
  font-size: 11px;
  font-weight: 600;
}

.product-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7895b2;
  box-shadow:
    0 0 0 2px rgba(120, 149, 178, 0.10);
}

.product-row-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.product-current-version {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--text-muted);
  font-size: 11px;
}

.product-current-version strong {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}

.products-empty-state {
  min-height: 220px;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
}

.products-empty-state > strong {
  color: var(--text);
  font-size: 15px;
}

.products-empty-state > span {
  max-width: 430px;
  color: var(--text-muted);
  font-size: 12px;
}

.products-empty-state .dashboard-add-button {
  margin-top: 8px;
}

/* =========================
   Remove Product
   ========================= */

.remove-product {
  flex-shrink: 0;
  padding: 7px 11px;
  border: 1px solid #35465a;
  border-radius: 5px;
  background: transparent;
  color: #77899d;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.remove-product:hover {
  color: #d4777d;
  border-color: #57363b;
  background: #271d21;
}

.remove-product:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================
   Empty Products
   ========================= */

.products-container > p {
  margin: 0;
  padding: 38px 0;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* =========================
   Products Mobile
   ========================= */

@media (max-width: 600px) {
  .products-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .product-item {
    min-height: auto;
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .product-row-actions {
    width: 100%;
    justify-content: space-between;
  }

  .product-row-actions .remove-product {
    width: auto;
  }

  .remove-product {
    width: 100%;
  }
}

/* =========================
   Products / Catalogue
   ========================= */

.dashboard-back {
  padding: 8px 15px;
  border: 1px solid #43546a;
  border-radius: 6px;
  background: transparent;
  color: #dce5ee;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-back:hover {
  background: #1b2a3d;
  border-color: #566a82;
}

/* =========================
   Catalogue Container
   ========================= */

.catalogue-container {
  padding: 0 22px;
}

.catalogue-container > p {
  margin: 0;
  padding: 38px 0;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* =========================
   Catalogue Items
   ========================= */

.catalogue-item {
  min-height: 86px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.catalogue-item:last-child {
  border-bottom: 0;
}

.catalogue-item-info {
  min-width: 0;
}

.catalogue-item-vendor {
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.catalogue-item-name {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

/* =========================
   Add Product Button
   ========================= */

.catalogue-add-button {
  min-height: 36px;
  padding: 0 13px;
  flex-shrink: 0;
  border: 1px solid #43546a;
  border-radius: 5px;
  background: #172435;
  color: #9eb4c9;
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.catalogue-add-button:hover {
  background: #1d2d41;
  border-color: #566a82;
  color: #dce5ee;
}

/* =========================
   Remove Confirmation
   ========================= */

.remove-confirm-text {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.remove-confirm-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================
   Confirm Remove
   ========================= */

.confirm-remove,
.cancel-remove {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.confirm-remove {
  border: 1px solid #3d6658;
  background: #1b302a;
  color: #8fc2ad;
}

.confirm-remove:hover {
  background: #234238;
  border-color: #4d7c6c;
  color: #b0d6c6;
}

/* =========================
   Cancel Remove
   ========================= */

.cancel-remove {
  border: 1px solid #57363b;
  background: #271d21;
  color: #d4777d;
}

.cancel-remove:hover {
  background: #342328;
  border-color: #70454b;
  color: #e29a9e;
}

/* =========================
   Disabled
   ========================= */

.confirm-remove:disabled,
.cancel-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================
   Mobile Confirmation
   ========================= */

@media (max-width: 600px) {
  .product-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .remove-confirm-text {
    white-space: normal;
  }

  .remove-confirm-actions {
    width: 100%;
  }

  .confirm-remove,
  .cancel-remove {
    flex: 1;
  }
}

/* =========================
   Catalogue Mobile
   ========================= */

@media (max-width: 600px) {
  .dashboard-back {
    padding: 8px 11px;
  }

  .catalogue-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .catalogue-item {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .catalogue-add-button {
    width: 100%;
  }
}

/* =========================
   Product Catalogue
   ========================= */

.catalogue-container {
  padding: 0 22px 24px;
}

/* =========================
   Main Category
   ========================= */

.catalogue-category {
  padding: 26px 0 8px;
}

.catalogue-category + .catalogue-category {
  border-top: 1px solid var(--border);
}

.catalogue-category > h2 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* =========================
   Subcategory
   ========================= */

.catalogue-subcategory {
  margin-top: 20px;
}

.catalogue-subcategory > h3 {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* =========================
   Catalogue Product
   ========================= */

.catalogue-product {
  min-height: 66px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #101a27;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 7px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.catalogue-product:hover {
  background: #121e2c;
  border-color: #35475b;
}

.catalogue-product > div:first-child {
  min-width: 0;
}

.catalogue-product strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.catalogue-product > div:first-child span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
}

/* =========================
   Product Actions
   ========================= */

.product-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

/* =========================
   Monitoring Status
   ========================= */

.monitoring-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  color: #86a9a0;
  background: #182725;
  border: 1px solid #304844;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================
   Add Product
   ========================= */

.add-product {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #43546a;
  border-radius: 5px;
  background: #172435;
  color: #9eb4c9;
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.add-product:hover {
  background: #1d2d41;
  border-color: #566a82;
  color: #dce5ee;
}

.add-product:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-product.at-product-limit:disabled {
  border-color: #344052;
  background: #151d28;
  color: #738093;
  opacity: 0.65;
}

/* =========================
   Remove Product
   ========================= */

.catalogue-product .remove-product {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #35465a;
  border-radius: 5px;
  background: transparent;
  color: #77899d;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.catalogue-product .remove-product:hover {
  color: var(--critical);
  border-color: #57363b;
  background: #271d21;
}

.catalogue-product .remove-product:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================
   Catalogue Mobile
   ========================= */

@media (max-width: 600px) {
  .catalogue-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .catalogue-category {
    padding-top: 22px;
  }

  .catalogue-subcategory {
    margin-top: 17px;
  }

  .catalogue-product {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .product-actions {
    width: 100%;
    justify-content: space-between;
  }

  .add-product {
    width: 100%;
  }

  .catalogue-product .remove-product {
    flex: 1;
  }
}

/* =========================
   Account Menu
   ========================= */

.account-menu {
  position: relative;
}

/* =========================
   Account Button
   ========================= */

.account-button {
  min-height: 42px;
  padding: 5px 9px 5px 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

.account-button:hover,
.account-button[aria-expanded="true"] {
  background: var(--surface);
  border-color: var(--border);
}

/* =========================
   Account Avatar
   ========================= */

.account-avatar {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
  background: #1a2a3d;
  border: 1px solid #33485f;
  color: #9eb4c9;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

/* =========================
   Account Summary
   ========================= */

.account-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.account-summary strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.account-summary small {
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.3;
  text-transform: capitalize;
}

/* =========================
   Account Chevron
   ========================= */

.account-chevron {
  margin-left: 2px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
}

/* =========================
   Account Dropdown
   ========================= */

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: 250px;
  padding: 7px;
  background: #111c2a;
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35);
}

.account-dropdown[hidden] {
  display: none;
}

/* =========================
   Account Details
   ========================= */

.account-details {
  padding: 11px 10px 10px;
}

.account-details strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.account-details span {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
  word-break: break-word;
}

/* =========================
   Account Divider
   ========================= */

.account-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--border);
}

/* =========================
   Account Metadata
   ========================= */

.account-meta {
  padding: 7px 10px;
}

.account-meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}

.account-meta span {
  color: var(--text-muted);
  font-size: 10px;
}

.account-meta strong {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 650;
  text-align: right;
}

/* =========================
   Account Actions
   ========================= */

.account-action {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.account-action:hover {
  background: var(--surface-alt);
  color: var(--text);
}

/* =========================
   Account Sign Out
   ========================= */

.account-signout {
  color: var(--text-muted);
}

.account-signout:hover {
  color: var(--critical);
  background: var(--critical-background);
}

.account-danger {
  color: var(--critical);
}

.account-danger:hover {
  background: var(--critical-background);
}

/* =========================
   Account Mobile
   ========================= */

@media (max-width: 600px) {
  .account-summary,
  .account-chevron {
    display: none;
  }

  .account-button {
    padding: 4px;
  }

  .account-dropdown {
    right: -4px;
    width: 235px;
  }
}

.invite-member-form {
  padding: 8px 10px;
}

.invite-member-form[hidden] {
  display: none;
}

.invite-member-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 10px;
}

.invite-member-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 11px;
}

.invite-member-form .auth-submit {
  width: 100%;
  min-height: 32px;
  margin-top: 7px;
  font-size: 10px;
}

#invite-member-message {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.signup-invite-notice {
  color: var(--text-secondary);
}

/* =========================
   Change Password
   ========================= */

.form-hint {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.auth-success {
  min-height: 18px;
  margin: 12px 0 0;
  color: #7fae91;
  font-size: 12px;
  line-height: 1.5;
}

/* =========================
   KEV Alerts
   ========================= */

.alerts-card {
  margin-bottom: 24px;
}


/* =========================
   Alerts Header
   ========================= */

.alerts-section-label {
  color: var(--critical);
}


.alerts-summary {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  border: 1px solid #35465a;
  border-radius: 5px;

  background: #111c2a;
  color: var(--text-muted);

  font-size: 10px;
  font-weight: 700;
}


/* =========================
   Alert Toolbar
   ========================= */

.alerts-toolbar {
  padding: 12px 22px;

  display: flex;
  align-items: center;

  border-bottom: 1px solid var(--border);

  background: #101a27;
}


.alert-filters {
  display: flex;
  align-items: center;
  gap: 5px;
}


.alert-filter {
  min-height: 30px;
  padding: 0 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  border: 1px solid transparent;
  border-radius: 5px;

  background: transparent;
  color: var(--text-muted);

  font-family: inherit;
  font-size: 10px;
  font-weight: 650;

  cursor: pointer;
}


.alert-filter:hover {
  color: var(--text-secondary);
  background: var(--surface);
}


.alert-filter.active {
  border-color: #35465a;
  background: #172435;
  color: var(--text);
}


.alert-filter-count {
  min-width: 17px;
  height: 17px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 4px;

  background: var(--critical-background);
  color: var(--critical);

  font-size: 9px;
  font-weight: 750;
}


/* =========================
   Alerts Container
   ========================= */

.alerts-container {
  padding: 0 22px;
}


.alerts-message {
  margin: 0;
  padding: 38px 0;

  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}


/* =========================
   Alert Item
   ========================= */

.kev-alert {
  border-bottom: 1px solid var(--border);
}


.kev-alert:last-child {
  border-bottom: 0;
}


.kev-alert-main {
  min-height: 150px;
  padding: 21px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}


.kev-alert-info {
  min-width: 0;
  flex: 1;
}


.kev-alert-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}


.kev-alert-cve {
  color: var(--text);
  font-family: monospace;
  font-size: 11px;
  font-weight: 750;
}


.alert-status {
  min-height: 21px;
  padding: 0 7px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 4px;

  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.2px;
}


.alert-status-new {
  color: var(--critical);
  background: var(--critical-background);
  border: 1px solid #57363b;
}


.alert-status-acknowledged {
  color: #c8a878;
  background: #2d291f;
  border: 1px solid #514631;
}


.alert-status-resolved {
  color: #86a995;
  background: #1b2925;
  border: 1px solid #304840;
}


.kev-alert h3 {
  margin: 7px 0 0;

  color: var(--text);

  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;

  letter-spacing: -0.15px;
}


.kev-alert-product {
  margin-top: 4px;

  display: flex;
  align-items: center;
  gap: 7px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 650;
}


.kev-alert-product span {
  color: #4f6073;
}


.kev-alert-description {
  max-width: 760px;

  margin: 9px 0 0;

  color: var(--text-secondary);

  font-size: 12px;
  line-height: 1.5;
}


.kev-alert-meta {
  margin-top: 12px;

  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}


.kev-alert-meta > span {
  color: var(--text-muted);
  font-size: 9px;
}


.kev-alert-meta strong {
  margin-left: 4px;

  color: var(--text-secondary);
  font-weight: 650;
}


.ransomware-indicator {
  color: var(--critical) !important;
  font-weight: 700;
}


/* =========================
   Alert Actions
   ========================= */

.kev-alert-actions {
  display: flex;
  align-items: center;
  gap: 7px;

  flex-shrink: 0;
}


.alert-action {
  min-height: 32px;
  padding: 0 11px;

  border-radius: 5px;

  font-family: inherit;
  font-size: 10px;
  font-weight: 700;

  cursor: pointer;
}


.alert-action-primary {
  border: 1px solid #52667d;
  background: #dce5ee;
  color: #172235;
}


.alert-action-primary:hover {
  background: #f1f5f9;
}


.alert-action-secondary {
  border: 1px solid #35465a;
  background: transparent;
  color: var(--text-muted);
}


.alert-action-secondary:hover {
  border-color: #52667d;
  background: #172435;
  color: var(--text-secondary);
}


.alert-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* =========================
   Alert Details
   ========================= */

.kev-alert-details {
  padding: 0 0 21px;
}


.alert-detail-grid {
  padding: 16px;

  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 12px;

  background: #101a27;
  border: 1px solid var(--border);
  border-radius: 6px;
}


.alert-detail-grid > div {
  min-width: 0;
}


.alert-detail-grid span {
  display: block;

  margin-bottom: 4px;

  color: var(--text-muted);

  font-size: 9px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.6px;
}


.alert-detail-grid strong {
  display: block;

  color: var(--text-secondary);

  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
}


.alert-cisa-link {
  margin-top: 12px;

  display: inline-flex;
  align-items: center;
  gap: 5px;

  color: var(--accent);

  font-size: 10px;
  font-weight: 650;

  text-decoration: none;
}


.alert-cisa-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}


/* =========================
   Empty Alerts
   ========================= */

.alerts-empty {
  min-height: 190px;
  padding: 35px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}


.alerts-empty-icon {
  width: 34px;
  height: 34px;

  margin-bottom: 11px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #304840;
  border-radius: 50%;

  background: #1b2925;
  color: #86a995;

  font-size: 14px;
  font-weight: 750;
}


.alerts-empty strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}


.alerts-empty span {
  max-width: 450px;

  margin-top: 4px;

  color: var(--text-muted);

  font-size: 11px;
  line-height: 1.5;
}


.alerts-error .alerts-empty-icon {
  display: none;
}


/* =========================
   Alerts Mobile
   ========================= */

@media (max-width: 700px) {

  .alerts-toolbar {
    padding-left: 18px;
    padding-right: 18px;

    overflow-x: auto;
  }


  .alert-filters {
    min-width: max-content;
  }


  .alerts-container {
    padding-left: 18px;
    padding-right: 18px;
  }


  .kev-alert-main {
    min-height: auto;

    align-items: flex-start;

    flex-direction: column;

    gap: 16px;
  }


  .kev-alert-actions {
    width: 100%;
  }


  .alert-action {
    flex: 1;
  }


  .alert-detail-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 600px) {

  .alerts-card {
    margin-bottom: 18px;
  }


  .alerts-summary {
    width: 100%;
  }


  .alert-detail-grid {
    grid-template-columns: 1fr;
  }


  .kev-alert-meta {
    gap: 9px 14px;
  }
}

/* =========================================
   ALERT DETAIL OVERLAY
   ========================================= */

.alert-detail-overlay {
  position: fixed !important;
  inset: 0 !important;

  width: 100vw !important;
  height: 100vh !important;

  margin: 0 !important;
  padding: 0 !important;

  z-index: 99999 !important;

  display: block !important;

  pointer-events: auto;
}

.alert-detail-overlay[hidden] {
  display: none !important;
}


/* Dark background */

.alert-detail-backdrop {
  position: fixed !important;
  inset: 0 !important;

  width: 100vw !important;
  height: 100vh !important;

  margin: 0 !important;
  padding: 0 !important;

  background: rgba(4, 9, 15, 0.68);

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}


/* Right-side drawer */

.alert-detail-panel {
  position: fixed !important;

  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;

  width: 620px !important;
  max-width: 90vw !important;

  height: 100vh !important;
  max-height: 100vh !important;

  margin: 0 !important;
  padding: 0 !important;

  box-sizing: border-box !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  background: var(--surface);

  border-left: 1px solid var(--border);

  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.30);

  z-index: 100000 !important;
}


/* Header */

.alert-detail-header {
  position: sticky !important;

  top: 0 !important;
  left: auto !important;

  width: 100% !important;

  box-sizing: border-box !important;

  padding: 20px 22px;

  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  background: var(--surface-alt);

  border-bottom: 1px solid var(--border);
}


/* Header information */

.alert-detail-header-info {
  min-width: 0;
  flex: 1 1 auto;
}

.alert-detail-title {
  margin: 0;

  color: var(--text);

  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.alert-detail-cve {
  margin-top: 5px;

  color: var(--text-muted);

  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
}


/* Close button */

.alert-detail-close {
  width: 32px;
  height: 32px;

  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 5px;

  background: transparent;

  color: var(--text-muted);

  font-family: inherit;
  font-size: 18px;
  line-height: 1;

  cursor: pointer;
}

.alert-detail-close:hover {
  background: var(--surface);
  border-color: #43546a;
  color: var(--text);
}


/* Body */

.alert-detail-body {
  width: 100% !important;

  box-sizing: border-box !important;

  padding: 22px;
}


/* Status */

.alert-detail-status-row {
  margin-bottom: 22px;

  display: flex;
  align-items: center;

  gap: 10px;
}


/* Sections */

.alert-detail-section {
  width: 100%;

  margin-top: 24px;

  box-sizing: border-box;
}

.alert-detail-section:first-child {
  margin-top: 0;
}

.alert-detail-section-label {
  margin-bottom: 9px;

  color: var(--text-muted);

  font-size: 9px;
  font-weight: 750;

  letter-spacing: 1px;
  text-transform: uppercase;
}


/* Description */

.alert-detail-description {
  margin: 0;

  color: var(--text-secondary);

  font-size: 12px;
  line-height: 1.6;
}


/* Required action */

.alert-detail-action {
  margin: 0;

  padding: 13px 14px;

  background: #101a27;

  border: 1px solid var(--border);
  border-radius: 6px;

  color: var(--text-secondary);

  font-size: 12px;
  line-height: 1.6;
}


/* CISA link */

.alert-cisa-link {
  display: inline-block;

  color: #5191d1;

  font-size: 11px;
  font-weight: 600;

  text-decoration: none;
}

.alert-cisa-link:hover {
  text-decoration: underline;
}


/* =========================================
   ACTIVITY
   ========================================= */

.alert-activity {
  width: 100%;

  margin-top: 28px;
  padding-top: 22px;

  border-top: 1px solid var(--border);

  box-sizing: border-box;
}

.alert-activity-header {
  margin-bottom: 15px;
}

.alert-activity-title {
  margin: 0;

  color: var(--text);

  font-size: 14px;
  font-weight: 700;
}

.alert-activity-container {
  width: 100%;

  display: flex;
  flex-direction: column;

  box-sizing: border-box;
}

.alert-activity-item {
  position: relative;

  width: 100%;

  box-sizing: border-box;

  padding: 0 0 18px 20px;
}

.alert-activity-item::before {
  content: "";

  position: absolute;

  top: 5px;
  left: 3px;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #7895b2;

  border: 2px solid var(--surface);

  box-shadow: 0 0 0 1px #43546a;
}

.alert-activity-item:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 14px;
  bottom: 0;
  left: 6px;

  width: 1px;

  background: var(--border);
}

.alert-activity-item.comment::before {
  background: #5191d1;
}

.alert-activity-meta {
  display: flex;
  align-items: center;

  flex-wrap: wrap;

  gap: 7px;
}

.alert-activity-user {
  color: var(--text-secondary);

  font-size: 10px;
  font-weight: 700;
}

.alert-activity-time {
  color: var(--text-muted);

  font-size: 9px;
}

.alert-activity-message {
  margin-top: 5px;

  color: var(--text-secondary);

  font-size: 11px;
  line-height: 1.55;
}

.alert-activity-system .alert-activity-message {
  color: var(--text-muted);
  font-style: italic;
}

.alert-activity-loading,
.alert-activity-empty,
.alert-activity-error {
  padding: 18px 0;

  color: var(--text-muted);

  font-size: 11px;
}

.alert-activity-error {
  color: var(--critical);
}


/* =========================================
   COMMENT BOX
   ========================================= */

.alert-comment-form {
  width: 100%;

  margin-top: 8px;
  padding-top: 20px;

  border-top: 1px solid var(--border);

  box-sizing: border-box;
}

.alert-comment-input {
  display: block;

  width: 100% !important;

  min-height: 92px;

  box-sizing: border-box !important;

  padding: 11px 12px;

  resize: vertical;

  border: 1px solid #35465a;
  border-radius: 6px;

  outline: none;

  background: #0f1926;
  color: var(--text);

  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
}

.alert-comment-input::placeholder {
  color: #627287;
}

.alert-comment-input:hover {
  border-color: #465a70;
}

.alert-comment-input:focus {
  border-color: #5191d1;

  background: #111d2b;

  box-shadow: 0 0 0 2px rgba(81, 145, 209, 0.10);
}

.alert-comment-footer {
  margin-top: 9px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.alert-comment-error {
  min-height: 16px;

  color: var(--critical);

  font-size: 10px;
}

.alert-comment-submit {
  min-height: 34px;

  padding: 0 13px;

  flex-shrink: 0;

  border: 1px solid #52667d;
  border-radius: 5px;

  background: #dce5ee;
  color: #172235;

  font-family: inherit;
  font-size: 11px;
  font-weight: 700;

  cursor: pointer;
}

.alert-comment-submit:hover {
  background: #f1f5f9;
}

.alert-comment-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Prevent dashboard scrolling while drawer is open */

body.alert-detail-open {
  overflow: hidden !important;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

  .alert-detail-panel {
    width: 100vw !important;
    max-width: 100vw !important;

    border-left: 0;
  }

  .alert-detail-header {
    padding: 17px 18px;
  }

  .alert-detail-body {
    padding: 20px 18px;
  }

  .alert-detail-title {
    font-size: 16px;
  }

  .alert-comment-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .alert-comment-submit {
    width: 100%;
  }
}

/* =========================================================
   CVESIGNAL ALERT DETAIL DRAWER
   ========================================================= */

#alert-detail-overlay {
  position: fixed !important;
  inset: 0 !important;

  width: 100vw !important;
  height: 100vh !important;

  margin: 0 !important;
  padding: 0 !important;

  z-index: 999999 !important;

  display: block !important;
}

#alert-detail-overlay[hidden] {
  display: none !important;
}


/* Full-screen backdrop */

#alert-detail-overlay .alert-detail-backdrop {
  position: fixed !important;
  inset: 0 !important;

  width: 100vw !important;
  height: 100vh !important;

  margin: 0 !important;
  padding: 0 !important;

  background: rgba(4, 9, 15, 0.72);

  z-index: 1;
}


/* Right-hand drawer */

#alert-detail-overlay .alert-detail-panel {
  position: fixed !important;

  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;

  width: 620px !important;
  max-width: 90vw !important;

  height: 100vh !important;
  max-height: 100vh !important;

  margin: 0 !important;
  padding: 0 !important;

  box-sizing: border-box !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  background: var(--surface);

  border-left: 1px solid var(--border);

  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.35);

  z-index: 2;

  display: block !important;

  flex: none !important;
}


/* Header */

#alert-detail-overlay .alert-detail-header {
  position: sticky !important;

  top: 0 !important;

  width: 100% !important;

  min-width: 0 !important;

  box-sizing: border-box !important;

  padding: 20px 22px;

  display: flex !important;

  align-items: flex-start;

  justify-content: space-between;

  gap: 20px;

  background: var(--surface-alt);

  border-bottom: 1px solid var(--border);

  z-index: 3;
}


/* Header text */

#alert-detail-overlay .alert-detail-header > div:first-child {
  min-width: 0;

  flex: 1 1 auto;
}

#alert-detail-overlay #alert-detail-title {
  margin: 4px 0 0;

  color: var(--text);

  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;

  overflow-wrap: anywhere;
}

#alert-detail-overlay #alert-detail-cve {
  margin: 6px 0 0;

  color: var(--text-muted);

  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
}


/* Close button */

#alert-detail-overlay .alert-detail-close {
  width: 32px !important;
  height: 32px !important;

  min-width: 32px !important;

  flex: 0 0 32px !important;

  display: inline-flex !important;

  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid var(--border);
  border-radius: 5px;

  background: transparent;

  color: var(--text-muted);

  font-size: 18px;
  line-height: 1;

  cursor: pointer;
}

#alert-detail-overlay .alert-detail-close:hover {
  background: var(--surface);
  color: var(--text);
}


/* =========================================================
   DETAIL CONTENT
   ========================================================= */

#alert-detail-overlay .alert-detail-status-row {
  width: 100%;

  box-sizing: border-box;

  margin: 0;

  padding: 22px;

  display: flex;

  align-items: flex-start;

  gap: 35px;

  border-bottom: 1px solid var(--border);
}

#alert-detail-overlay .alert-detail-status-row > div {
  min-width: 0;

  flex: 1 1 0;
}

#alert-detail-overlay .alert-detail-meta-label {
  display: block;

  margin-bottom: 6px;

  color: var(--text-muted);

  font-size: 9px;
  font-weight: 750;

  letter-spacing: 1px;
  text-transform: uppercase;
}

#alert-detail-overlay #alert-detail-product {
  display: block;

  color: var(--text);

  font-size: 12px;
}


/* Vulnerability information */

#alert-detail-overlay .alert-detail-information {
  width: 100%;

  box-sizing: border-box;

  padding: 20px 22px;

  border-bottom: 1px solid var(--border);
}

#alert-detail-overlay .alert-detail-information-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 8px 0;
}

#alert-detail-overlay .alert-detail-information-row span {
  color: var(--text-muted);

  font-size: 10px;
}

#alert-detail-overlay .alert-detail-information-row strong {
  color: var(--text-secondary);

  font-size: 11px;

  text-align: right;
}


/* Description */

#alert-detail-overlay .alert-detail-description {
  width: 100%;

  box-sizing: border-box;

  margin: 0;

  padding: 22px;

  border-bottom: 1px solid var(--border);
}

#alert-detail-overlay .alert-detail-description h3 {
  margin: 0 0 10px;

  color: var(--text);

  font-size: 13px;
  font-weight: 700;
}

#alert-detail-overlay #alert-detail-description-text {
  margin: 0;

  color: var(--text-secondary);

  font-size: 12px;

  line-height: 1.65;
}


/* =========================================================
   ACTIVITY
   ========================================================= */

#alert-detail-overlay .alert-detail-activity {
  width: 100%;

  box-sizing: border-box;

  padding: 22px;
}

#alert-detail-overlay .alert-detail-section-heading {
  margin-bottom: 18px;
}

#alert-detail-overlay .alert-detail-section-heading h3 {
  margin: 0;

  color: var(--text);

  font-size: 14px;
  font-weight: 700;
}

#alert-detail-overlay .alert-detail-section-heading p {
  margin: 5px 0 0;

  color: var(--text-muted);

  font-size: 10px;

  line-height: 1.5;
}


/* Activity list */

#alert-detail-overlay .alert-activity-container {
  width: 100%;

  box-sizing: border-box;

  display: flex;

  flex-direction: column;
}

#alert-detail-overlay .alert-activity-item {
  position: relative;

  width: 100%;

  box-sizing: border-box;

  padding: 0 0 18px 20px;
}

#alert-detail-overlay .alert-activity-item::before {
  content: "";

  position: absolute;

  top: 5px;
  left: 3px;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #7895b2;

  box-shadow: 0 0 0 1px #43546a;
}

#alert-detail-overlay .alert-activity-item:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 14px;
  bottom: 0;
  left: 6px;

  width: 1px;

  background: var(--border);
}

#alert-detail-overlay .alert-activity-item.comment::before {
  background: #5191d1;
}

#alert-detail-overlay .alert-activity-meta {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 7px;
}

#alert-detail-overlay .alert-activity-user {
  color: var(--text-secondary);

  font-size: 10px;
  font-weight: 700;
}

#alert-detail-overlay .alert-activity-time {
  color: var(--text-muted);

  font-size: 9px;
}

#alert-detail-overlay .alert-activity-message {
  margin-top: 5px;

  color: var(--text-secondary);

  font-size: 11px;

  line-height: 1.55;

  overflow-wrap: anywhere;
}

#alert-detail-overlay .alert-activity-system .alert-activity-message {
  color: var(--text-muted);

  font-style: italic;
}


/* =========================================================
   COMMENT FORM
   ========================================================= */

#alert-detail-overlay .alert-comment-form {
  width: 100%;

  box-sizing: border-box;

  margin-top: 8px;
  padding-top: 20px;

  border-top: 1px solid var(--border);
}

#alert-detail-overlay .alert-comment-form > label {
  display: block;

  margin-bottom: 8px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 700;
}

#alert-detail-overlay #alert-comment-input {
  display: block;

  width: 100% !important;

  min-height: 92px;

  box-sizing: border-box !important;

  padding: 11px 12px;

  resize: vertical;

  border: 1px solid #35465a;
  border-radius: 6px;

  outline: none;

  background: #0f1926;

  color: var(--text);

  font-family: inherit;

  font-size: 12px;

  line-height: 1.5;
}

#alert-detail-overlay #alert-comment-input:focus {
  border-color: #5191d1;

  box-shadow: 0 0 0 2px rgba(81, 145, 209, 0.10);
}

#alert-detail-overlay .alert-comment-form-footer {
  margin-top: 9px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;
}

#alert-detail-overlay .alert-comment-error {
  min-height: 16px;

  color: var(--critical);

  font-size: 10px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  #alert-detail-overlay .alert-detail-panel {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  #alert-detail-overlay .alert-detail-status-row {
    gap: 20px;
  }

  #alert-detail-overlay .alert-detail-information-row {
    align-items: flex-start;
    flex-direction: column;

    gap: 3px;
  }

  #alert-detail-overlay .alert-detail-information-row strong {
    text-align: left;
  }

  #alert-detail-overlay .alert-detail-header {
    padding: 17px 18px;
  }

  #alert-detail-overlay .alert-detail-status-row,
  #alert-detail-overlay .alert-detail-information,
  #alert-detail-overlay .alert-detail-description,
  #alert-detail-overlay .alert-detail-activity {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* =========================================================
   ALERT DETAIL ACTION BUTTONS
   ========================================================= */

#alert-detail-overlay .alert-detail-status-row {
  align-items: flex-end;
}

#alert-detail-overlay .alert-detail-status-info,
#alert-detail-overlay .alert-detail-product-info {
  min-width: 0;
}

#alert-detail-overlay .alert-detail-status-info {
  flex: 0 0 auto;
}

#alert-detail-overlay .alert-detail-status-select {
  min-height: 30px;
  padding: 0 24px 0 8px;
  font: inherit;
  cursor: pointer;
}

#alert-detail-overlay .alert-detail-status-select:focus-visible {
  outline: 2px solid var(--accent, #71a9e8);
  outline-offset: 2px;
}

#alert-detail-overlay .alert-detail-product-info {
  flex: 1 1 auto;
}

#alert-detail-overlay .alert-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#alert-detail-overlay .alert-detail-action-button {
  min-height: 32px;
  padding: 0 12px;

  border: 1px solid #52667d;
  border-radius: 5px;

  background: #172333;
  color: var(--text-secondary);

  font-family: inherit;
  font-size: 10px;
  font-weight: 700;

  cursor: pointer;
}

#alert-detail-overlay .alert-detail-action-button:hover {
  background: #223247;
  color: var(--text);
}

#alert-detail-overlay .alert-detail-action-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#alert-detail-overlay .alert-detail-action-button.is-resolved {
  opacity: 0.45;
}


/* Mobile */

@media (max-width: 600px) {
  #alert-detail-overlay .alert-detail-status-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  #alert-detail-overlay .alert-detail-actions {
    width: 100%;
  }

  #alert-detail-overlay .alert-detail-action-button {
    flex: 1;
  }
}


/* =========================
   New Product Catalogue
   ========================= */

.catalogue-container {
  padding: 0 22px 28px;
}


/* =========================
   Catalogue View Header
   ========================= */

.catalogue-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.catalogue-view-header h2 {
  margin: 5px 0 5px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.catalogue-view-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}


/* =========================
   Breadcrumb
   ========================= */

.catalogue-breadcrumb {
  margin-bottom: 20px;
}

.catalogue-back-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.catalogue-back-button:hover {
  color: var(--text);
}


/* =========================
   Category Grid
   ========================= */

.catalogue-category-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(220px, 1fr)
    );
  gap: 12px;
}


/* =========================
   Category Card
   ========================= */

.catalogue-category-card {
  min-height: 112px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;

  background: #101a27;
  border: 1px solid var(--border);
  border-radius: 7px;

  color: var(--text);
  font-family: inherit;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.catalogue-category-card:hover {
  background: #142131;
  border-color: #3a4d63;
  transform: translateY(-1px);
}

.catalogue-category-card-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 7px;

  background: #1a2a3d;
  border: 1px solid #33485f;

  color: #9eb4c9;

  font-size: 13px;
  font-weight: 750;
}

.catalogue-category-card-content {
  min-width: 0;
}

.catalogue-category-card-content h3 {
  margin: 0;

  color: var(--text);

  font-size: 13px;
  font-weight: 700;
}

.catalogue-category-card-content span {
  display: block;

  margin-top: 7px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 600;
}

.catalogue-category-card:hover
.catalogue-category-card-content span {
  color: var(--accent-hover);
}


/* =========================
   Vendor Grid
   ========================= */

.catalogue-vendor-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(210px, 1fr)
    );

  gap: 12px;
}


/* =========================
   Vendor Card
   ========================= */

.catalogue-vendor-card {
  min-height: 180px;

  padding: 20px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  text-align: left;

  background: #101a27;

  border: 1px solid var(--border);
  border-radius: 7px;

  color: var(--text);

  font-family: inherit;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.catalogue-vendor-card:hover {
  background: #142131;
  border-color: #3a4d63;
  transform: translateY(-1px);
}


/* =========================
   Vendor Logo
   ========================= */

.catalogue-vendor-card-logo {
  width: 48px;
  height: 48px;

  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;
}

.catalogue-vendor-logo {
  width: 100%;
  height: 100%;

  object-fit: contain;

  border-radius: 6px;
}

.catalogue-vendor-logo-fallback {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;

  background: #1a2a3d;
  border: 1px solid #33485f;

  color: #9eb4c9;

  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.4px;
}


/* =========================
   Vendor Card Content
   ========================= */

.catalogue-vendor-card-content {
  min-width: 0;
}

.catalogue-vendor-card-content h3 {
  margin: 0;

  color: var(--text);

  font-size: 15px;
  font-weight: 700;
}

.catalogue-vendor-card-content p {
  margin: 5px 0 0;

  color: var(--text-muted);

  font-size: 10px;
}

.catalogue-vendor-card-content span {
  display: block;

  margin-top: 14px;

  color: #879bb0;

  font-size: 10px;
  font-weight: 650;
}

.catalogue-vendor-card:hover
.catalogue-vendor-card-content span {
  color: var(--accent-hover);
}


/* =========================
   Vendor Heading
   ========================= */

.catalogue-vendor-heading {
  display: flex;
  align-items: center;

  gap: 16px;

  margin-bottom: 25px;
}

.catalogue-vendor-heading-logo {
  width: 54px;
  height: 54px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.catalogue-vendor-heading
.catalogue-vendor-logo-fallback {
  width: 54px;
  height: 54px;

  font-size: 13px;
}

.catalogue-vendor-heading h2 {
  margin: 4px 0 4px;

  color: var(--text);

  font-size: 21px;
  font-weight: 700;
}

.catalogue-vendor-heading p {
  margin: 0;

  color: var(--text-secondary);

  font-size: 12px;
}


/* =========================
   Products Header
   ========================= */

.catalogue-products-header {
  min-height: 35px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 7px;

  border-bottom: 1px solid var(--border);
}

.catalogue-products-header span {
  color: var(--text-muted);

  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.9px;
}

.catalogue-products-header strong {
  color: var(--text-muted);

  font-size: 10px;
  font-weight: 600;
}


/* =========================
   Product List
   ========================= */

.catalogue-product-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}


/* =========================
   Product Row
   ========================= */

.catalogue-product {
  min-height: 66px;

  margin: 0;

  padding: 13px 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  background: #101a27;

  border: 1px solid var(--border);
  border-radius: 6px;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.catalogue-product:hover {
  background: #121e2c;
  border-color: #35475b;
}

.catalogue-product-info {
  min-width: 0;
}

.catalogue-product-info strong {
  display: block;

  color: var(--text);

  font-size: 13px;
  font-weight: 650;
}

.catalogue-product-info span {
  display: block;

  margin-top: 3px;

  color: var(--text-muted);

  font-size: 10px;
}


/* =========================
   Product Actions
   ========================= */

.catalogue-product .product-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 9px;

  flex-shrink: 0;
}

.monitor-product-controls {
  display: grid;
  grid-template-columns: auto minmax(140px, 220px) auto;
  align-items: center;
  gap: 8px;
}

.version-select-label {
  color: var(--text-muted);
  font-size: 10px;
}

.product-version-select {
  min-height: 34px;
  max-width: 220px;
  padding: 0 9px;
  color: var(--text);
  background: #0b1420;
  border: 1px solid var(--border);
  border-radius: 5px;
  font: inherit;
  font-size: 11px;
}

.product-version-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.version-unavailable {
  color: var(--text-muted);
  font-size: 10px;
}


/* =========================
   Empty State
   ========================= */

.catalogue-empty {
  padding: 42px 20px;

  text-align: center;

  border: 1px solid var(--border);
  border-radius: 7px;

  background: #101a27;
}

.catalogue-empty p {
  margin: 0;

  color: var(--text-muted);

  font-size: 12px;
}


/* =========================
   Loading
   ========================= */

.catalogue-loading {
  min-height: 180px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 12px;

  color: var(--text-muted);
}

.catalogue-loading p {
  margin: 0;

  font-size: 11px;
}

.catalogue-loading-spinner {
  width: 22px;
  height: 22px;

  border: 2px solid var(--border);
  border-top-color: var(--accent);

  border-radius: 50%;

  animation:
    catalogue-spin 0.8s linear infinite;
}

@keyframes catalogue-spin {
  to {
    transform: rotate(360deg);
  }
}


/* =========================
   Mobile Catalogue
   ========================= */

@media (max-width: 600px) {

  .catalogue-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .catalogue-view-header {
    margin-bottom: 18px;
  }

  .catalogue-view-header h2 {
    font-size: 18px;
  }

  .catalogue-category-grid {
    grid-template-columns: 1fr;
  }

  .catalogue-vendor-grid {
    grid-template-columns: 1fr;
  }

  .catalogue-vendor-card {
    min-height: 145px;
  }

  .catalogue-vendor-heading {
    align-items: flex-start;
  }

  .catalogue-vendor-heading h2 {
    font-size: 19px;
  }

  .catalogue-product {
    align-items: flex-start;
    flex-direction: column;

    gap: 13px;
  }

  .catalogue-product .product-actions {
    width: 100%;

    justify-content: space-between;
  }

  .monitor-product-controls {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .monitor-product-controls .add-product,
  .monitor-product-controls .version-unavailable {
    grid-column: 1 / -1;
  }

  .product-version-select {
    width: 100%;
    max-width: none;
  }

  .catalogue-product .add-product {
    width: 100%;
  }

  .catalogue-product .remove-product {
    flex: 1;
  }

  .catalogue-products-header {
    margin-top: 4px;
  }

}
