@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─────────────────────────────────────────────────────────────────
   CYCURION DESIGN TOKENS
   Shared with Panoptic. Change these and every screen follows.
───────────────────────────────────────────────────────────────── */

:root {
  /* surfaces */
  --canvas:      #F3F5F9;
  --surface:     #FFFFFF;
  --surface-2:   #F8FAFC;
  --surface-3:   #EEF2F7;

  /* text */
  --ink:         #0F1A2B;
  --ink-2:       #4B5872;
  --ink-3:       #7C879C;
  --ink-4:       #A9B2C2;

  /* lines */
  --line:        #E3E8F0;
  --line-2:      #CBD4E1;

  /* brand + accent */
  --brand:       #00AEF4;   /* Cycurion cyan: logo "on", tiny highlights only */
  --accent:      #1F6FD6;   /* interactive blue */
  --accent-ink:  #185FA5;
  --accent-soft: #EAF2FD;
  --accent-line: #C9DDF7;
  --accent-rgb:  31, 111, 214;

  /* outcomes */
  --good:        #1D9E75;
  --good-soft:   #E4F5EC;
  --bad:         #D23B36;
  --bad-soft:    #FCE8E7;
  --warn:        #D9762A;
  --warn-soft:   #FCEFE3;

  /* signal severity ladder (same ramp as Panoptic findings) */
  --sev-1:       #C2362F;   /* Critical */
  --sev-2:       #D9762A;   /* High */
  --sev-3:       #C99A1C;   /* Medium */
  --sev-4:       #5C7699;   /* Low */
  --sev-5:       #8E99AB;   /* Info */
  --sev-6:       #1C8C7E;   /* Support */
  --sev-1-soft:  #FBE9E8;
  --sev-2-soft:  #FCEFE3;
  --sev-3-soft:  #FBF4DD;
  --sev-4-soft:  #ECF1F7;
  --sev-5-soft:  #F1F4F8;
  --sev-6-soft:  #E1F3F1;

  /* shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(15, 26, 43, 0.06);
  --shadow-2: 0 4px 16px rgba(15, 26, 43, 0.08);
  --shadow-pop: 0 12px 40px rgba(15, 26, 43, 0.18);

  /* type */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --header-h: 56px;
  --footer-h: 46px;

  /* ── legacy aliases: existing Vex stylesheets reference these ── */
  --white:       var(--surface);
  --gray-line:   var(--line);
  --gray-mid:    var(--ink-3);
  --gray-soft:   var(--canvas);
  --gray-panel:  var(--surface);
  --gray-hover:  var(--surface-2);
  --background:  var(--canvas);
  --pink:        var(--accent);
  --pink-dim:    rgba(var(--accent-rgb), 0.45);
  --db-ink:      var(--ink);
  --db-mid:      var(--ink-3);
  --text-muted:  var(--ink-3);
  --text-faint:  var(--ink-4);
  --text-body:   var(--ink-2);
  --text-strong: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--canvas);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: #cfe2f8; }

ol, ul { list-style: none; margin: 0; padding: 0; }

hr {
  width: 100%;
  border: none;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

/* tables: plain rows separated by hairlines, hover tint */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
}

table th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table tbody tr {
  background: var(--surface);
  transition: background-color 0.12s ease;
}

table tbody tr:hover { background-color: var(--surface-2); }

table td {
  font-size: 13px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  vertical-align: middle;
}

table tbody tr:last-child td { border-bottom: none; }

table td img {
  height: 22px;
  width: 22px;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}

/* scrollbars: thin, quiet */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }
