:root {
  --bg-0: #0e0e12;
  --bg-1: #16161d;
  --bg-2: #1e1e28;
  --bg-3: #2a2a36;
  --purple-1: #7c3aed;
  --purple-2: #8b5cf6;
  --purple-3: #a78bfa;
  --purple-glow: rgba(124, 58, 237, 0.35);
  --text: #ececf1;
  --text-dim: #9b9bad;
  --border: #323242;
  --danger: #f87171;
  --success: #34d399;
  --warn: #fbbf24;
  --info: #60a5fa;
  --radius: 14px;
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(88, 28, 135, 0.16), transparent 48%),
    radial-gradient(700px 400px at 70% 100%, rgba(49, 46, 129, 0.18), transparent 50%),
    linear-gradient(180deg, #0c0c11 0%, #121218 40%, #0e0e14 100%);
  color: var(--text);
  font-family: var(--font);
}

a {
  color: var(--purple-3);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.18s ease, opacity 0.2s ease;
}
a:hover { color: #c4b5fd; }
a:active { transform: scale(0.97); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes page-enter {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes btn-ripple {
    from { transform: scale(0); opacity: 0.45; }
    to { transform: scale(2.4); opacity: 0; }
  }
  @keyframes nav-pulse {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.35); }
    100% { box-shadow: 0 0 0 12px rgba(124, 58, 237, 0); }
  }

  body.layout-app main.page-enter {
    animation: page-enter 0.25s ease both;
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
}

.app-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sidebar {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  height: 100vh;
  width: 268px;
  max-width: 268px;
  overflow-y: auto;
  background:
    linear-gradient(165deg, rgba(124, 58, 237, 0.08), transparent 42%),
    linear-gradient(180deg, #17171f 0%, #121218 100%);
  border-right: 1px solid var(--border);
  padding: 1.1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  z-index: 30;
}

.with-sidebar {
  margin-left: 0;
  padding: 1.5rem 2rem 2rem;
  min-height: 0;
  flex: 1;
}

.brand,
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  color: inherit;
  text-decoration: none;
}
.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--purple-1), #5b21b6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
  font-size: 1.05rem;
}
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.brand-mark {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--purple-3);
  text-shadow: 0 0 24px var(--purple-glow);
}
.brand-name {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
}

.nav-section { display: grid; gap: 0.45rem; }
.nav-label {
  margin: 0.35rem 0.55rem 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.sidebar nav a {
  color: var(--text-dim);
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.sidebar nav a i {
  width: 1.1rem;
  text-align: center;
  color: var(--purple-3);
  opacity: 0.85;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(124, 58, 237, 0.16);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--purple-2);
}
.sidebar nav a:active {
  transform: scale(0.98);
}
.sidebar nav a.nav-click {
  animation: nav-pulse 0.45s ease-out;
}

.sidebar-footer { margin-top: auto; display: grid; gap: 0.75rem; }
.user-chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-3);
}
.user-meta {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.user-chip span {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-transform: capitalize;
}

.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  margin-left: 0;
  width: 100%;
}

/* Auth pages: never show app chrome */
body.layout-auth .sidebar {
  display: none !important;
}
body.layout-auth main,
body.layout-auth .with-sidebar,
body.layout-auth .auth-main {
  margin-left: 0 !important;
  width: 100%;
  padding-top: 2rem !important;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-header h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-header p {
  margin: 0.35rem 0 0;
  color: var(--text-dim);
}
.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--purple-3);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.grid {
  display: grid;
  gap: 1rem;
}
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat {
  background: linear-gradient(160deg, rgba(36, 36, 48, 0.95), rgba(22, 22, 30, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(167, 139, 250, 0.1);
  display: flex;
  align-items: center;
  gap: 0.95rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.stat:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.45);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.18);
  color: var(--purple-3);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.stat-icon.warn { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }
.stat-icon.ok { background: rgba(52, 211, 153, 0.14); color: #34d399; }
.stat-icon.money { background: rgba(96, 165, 250, 0.14); color: #60a5fa; }
.sar-amount {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Arial Unicode MS", var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat .label { color: var(--text-dim); font-size: 0.9rem; }
.stat .value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0.2rem;
  color: var(--purple-3);
}

.panel {
  background: linear-gradient(180deg, rgba(28, 28, 38, 0.96), rgba(20, 20, 28, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.panel-head h2,
.panel h2,
.panel h3 {
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.panel-head h2 i,
.panel h2 i,
.panel h3 i {
  color: var(--purple-3);
}
.text-link {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.text-link:hover { color: var(--purple-3); }
.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 1.5rem 0.75rem !important;
}
.empty-state i {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.45rem;
  color: var(--purple-3);
  opacity: 0.7;
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { color: var(--text-dim); font-weight: 500; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  text-transform: capitalize;
}
.badge.critical, .badge.high { background: rgba(248, 113, 113, 0.15); color: #fecaca; border-color: rgba(248,113,113,0.35); }
.badge.medium { background: rgba(251, 191, 36, 0.12); color: #fde68a; border-color: rgba(251,191,36,0.3); }
.badge.low, .badge.none { background: rgba(52, 211, 153, 0.1); color: #a7f3d0; border-color: rgba(52,211,153,0.25); }
.badge.submitted, .badge.escalated, .badge.assigned { color: #ddd6fe; background: rgba(124,58,237,0.18); border-color: rgba(124,58,237,0.35); }
.badge.closed, .badge.bounty_paid { color: #a7f3d0; background: rgba(52,211,153,0.12); }
.badge.rejected, .badge.duplicate, .badge.out_of_scope { color: #fecaca; background: rgba(248,113,113,0.12); }

.btn {
  appearance: none;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background: var(--purple-1);
  color: white;
  font: inherit;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.btn:hover {
  background: var(--purple-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.28);
}
.btn:active {
  transform: scale(0.96) translateY(0);
  box-shadow: none;
}
.btn .ripple {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  animation: btn-ripple 0.5s ease-out forwards;
}
.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--purple-2);
  color: var(--purple-3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.btn-danger { background: #b91c1c; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dim);
}
.btn-ghost:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.7rem; font-size: 0.85rem; }

.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  margin-left: 0;
  width: 100%;
}

.auth-shell {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(18, 18, 26, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 58, 237, 0.08);
}
.auth-aside {
  padding: 2.2rem 1.8rem;
  background:
    radial-gradient(500px 280px at 20% 10%, rgba(124, 58, 237, 0.35), transparent 60%),
    linear-gradient(165deg, #1a1228, #121018 70%);
  display: grid;
  align-content: start;
  gap: 1.2rem;
}
.auth-aside h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.auth-points {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.auth-points li {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.auth-points i {
  color: var(--purple-3);
  width: 1.1rem;
  text-align: center;
}

.auth-card {
  width: 100%;
  background: linear-gradient(165deg, rgba(30, 30, 40, 0.98), rgba(18, 18, 24, 0.99));
  padding: 2rem;
}
.auth-card-solo {
  width: min(440px, 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}
.auth-card .sub {
  color: var(--text-dim);
  margin: 0 0 1.5rem;
}
.otp-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, var(--purple-1), #5b21b6);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.35);
}
.otp-code-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
}

.otp-digit {
  width: 100%;
  min-width: 0;
  aspect-ratio: 0.9;
  padding: 0;
  border: 1px solid #343c4b;
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    #0d1118;
  color: #f1efff;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  font-weight: 700;
  text-align: center;
  caret-color: var(--purple-3);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.otp-digit:hover {
  border-color: #495266;
}

.otp-digit:focus {
  outline: none;
  border-color: var(--purple-3);
  background: rgba(118, 87, 232, 0.09);
  box-shadow:
    0 0 0 3px rgba(118, 87, 232, 0.13),
    0 8px 22px rgba(35, 20, 94, 0.22);
  transform: translateY(-1px);
}

.otp-digit:not(:placeholder-shown) {
  border-color: rgba(139, 114, 239, 0.5);
}

.otp-code-inputs.is-complete .otp-digit {
  border-color: rgba(65, 190, 132, 0.45);
  background: rgba(65, 190, 132, 0.055);
}

.otp-code-inputs.has-error .otp-digit {
  border-color: rgba(226, 85, 110, 0.65);
  background: rgba(226, 85, 110, 0.055);
  animation: otp-error-shake 0.24s ease;
}

.otp-code-help {
  color: #707a8c;
  font-size: 0.72rem;
}

.otp-code-inputs.has-error + input + .otp-code-help {
  color: #e6758c;
}

@keyframes otp-error-shake {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-3px); }
  70% { transform: translateX(3px); }
}

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

.form-grid { display: grid; gap: 0.9rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label {
  color: var(--text-dim);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.form-row label i { color: var(--purple-3); opacity: 0.9; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--purple-2);
  box-shadow: 0 0 0 3px var(--purple-glow);
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.alert-error { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.35); color: #fecaca; }
.alert-success { background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.3); color: #a7f3d0; }
.alert-info { background: rgba(124,58,237,0.12); border-color: rgba(124,58,237,0.35); color: #ddd6fe; }

.cvss-box {
  display: grid;
  gap: 0.75rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}
.cvss-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.cvss-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.cvss-score strong {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--purple-3);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.stack { display: grid; gap: 1rem; }
.muted { color: var(--text-dim); }
.mono { font-family: var(--mono); font-size: 0.9rem; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }

.message {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.message .meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

.timeline {
  border-left: 2px solid var(--border);
  margin-left: 0.5rem;
  padding-left: 1rem;
  display: grid;
  gap: 0.85rem;
}
.timeline .item .when { color: var(--text-dim); font-size: 0.8rem; }

.inline-role-form select {
  background: var(--bg-0);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  min-width: 140px;
}
.grid-1 { grid-template-columns: 1fr; }
.rep-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple-1), var(--purple-3));
}

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cvss-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
    width: 100%;
    max-width: none;
  }
  .with-sidebar {
    margin-left: 0;
    padding: 1rem;
  }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  body.layout-auth .sidebar { display: none !important; }
}

/* Modern security dashboard theme */
:root {
  color-scheme: dark;
  --bg-0: #090b10;
  --bg-1: #0f1219;
  --bg-2: #151923;
  --bg-3: #1b202c;
  --purple-1: #7657e8;
  --purple-2: #8b72ef;
  --purple-3: #a99bf4;
  --purple-glow: rgba(118, 87, 232, 0.2);
  --text: #f1f3f8;
  --text-dim: #9299aa;
  --border: #252b38;
  --danger: #ef6b73;
  --success: #40c89a;
  --warn: #e7b85c;
  --info: #6ba5e7;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.2);
}

html,
body {
  background: var(--bg-0);
  color: var(--text);
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: rgba(118, 87, 232, 0.55);
}

/* Application shell */
.app-shell {
  background: var(--bg-0);
}

.app-content {
  background:
    radial-gradient(circle at 82% 0%, rgba(118, 87, 232, 0.07), transparent 30rem),
    var(--bg-0);
}

.app-topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0.7rem 2rem;
  border-bottom: 1px solid rgba(47, 55, 69, 0.86);
  background: rgba(11, 14, 20, 0.9);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.topbar-clock {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-clock-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(118, 87, 232, 0.3);
  border-radius: 10px;
  background: rgba(118, 87, 232, 0.09);
  color: var(--purple-3);
}

.topbar-clock > div > span,
.topbar-clock time {
  display: block;
}

.topbar-clock > div > span {
  margin-bottom: 0.1rem;
  color: #737d90;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-clock time {
  color: #dce1ea;
  font-size: 0.77rem;
  font-weight: 650;
}

.notification-center {
  position: relative;
}

.notification-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 39px;
  padding: 0.55rem 0.78rem;
  border: 1px solid #303848;
  border-radius: 10px;
  background: #141923;
  color: #cbd1dc;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.notification-trigger:hover,
.notification-trigger[aria-expanded="true"] {
  border-color: rgba(139, 111, 244, 0.7);
  background: rgba(118, 87, 232, 0.12);
  color: #fff;
}

.notification-trigger > i {
  color: var(--purple-3);
  font-size: 0.92rem;
}

.notification-badge {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 0.3rem;
  border: 2px solid #141923;
  border-radius: 999px;
  background: #e2556e;
  color: #fff;
  font-size: 0.6rem;
  line-height: 1;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(430px, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid #343d4d;
  border-radius: 14px;
  background: #11151d;
  box-shadow: 0 28px 85px rgba(0, 0, 0, 0.62);
  animation: notification-dropdown-in 0.18s ease-out;
}

.notification-dropdown[hidden],
.notification-badge[hidden],
.notification-state[hidden] {
  display: none !important;
}

.notification-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #293140;
  background:
    linear-gradient(135deg, rgba(118, 87, 232, 0.12), transparent 58%),
    #141923;
}

.notification-dropdown-head .eyebrow,
.notification-dropdown-head h2 {
  margin: 0;
}

.notification-dropdown-head h2 {
  margin-top: 0.12rem;
  font-size: 1rem;
}

.notification-read-all {
  padding: 0.35rem 0.5rem;
  border: 0;
  background: transparent;
  color: #9f8df2;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
}

.notification-read-all:disabled {
  color: #596274;
  cursor: default;
}

.notification-list {
  max-height: min(490px, calc(100vh - 155px));
  overflow-y: auto;
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  gap: 0.65rem;
  align-items: start;
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid #242b37;
  background: #11151d;
  transition: background 0.16s ease;
}

.notification-item:hover {
  background: #151a24;
}

.notification-item.is-unread {
  background:
    linear-gradient(90deg, rgba(118, 87, 232, 0.14), transparent 62%),
    #131822;
}

.notification-item-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(118, 87, 232, 0.24);
  border-radius: 10px;
  background: rgba(118, 87, 232, 0.09);
  color: #a991fa;
  font-size: 0.82rem;
}

.notification-item-content {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.notification-item-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.notification-item-heading strong {
  overflow: hidden;
  color: #e2e6ed;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-unread-dot {
  display: none;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9d83ff;
  box-shadow: 0 0 0 3px rgba(157, 131, 255, 0.13);
}

.notification-item.is-unread .notification-unread-dot {
  display: block;
}

.notification-item-body {
  display: -webkit-box;
  margin-top: 0.22rem;
  overflow: hidden;
  color: #8f98aa;
  font-size: 0.72rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notification-item-time {
  display: block;
  margin-top: 0.32rem;
  color: #646e80;
  font-family: var(--mono);
  font-size: 0.61rem;
}

.notification-delete {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #626c7d;
  cursor: pointer;
}

.notification-delete:hover {
  border-color: rgba(226, 85, 110, 0.28);
  background: rgba(226, 85, 110, 0.08);
  color: #ef7890;
}

.notification-state {
  display: grid;
  place-items: center;
  gap: 0.55rem;
  min-height: 180px;
  padding: 1.5rem;
  color: #778194;
  font-size: 0.76rem;
  text-align: center;
}

.notification-state i {
  color: #9179ef;
  font-size: 1.25rem;
}

@keyframes notification-dropdown-in {
  from { opacity: 0; transform: translateY(-7px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 700px) {
  .app-topbar {
    padding: 0.65rem 1rem;
  }

  .topbar-clock-icon,
  .notification-trigger > span {
    display: none;
  }

  .notification-dropdown {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

.sidebar {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding: 1.25rem 1rem;
  gap: 1.35rem;
  background: #0c0f15;
  border-right-color: #202531;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
}

.brand,
.brand-link {
  gap: 0.7rem;
  padding: 0.25rem 0.55rem 0.8rem;
}

.brand-link:hover {
  color: inherit;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(169, 155, 244, 0.24);
  border-radius: 10px;
  background: #19152c;
  color: var(--purple-3);
  box-shadow: none;
}

.brand-mark {
  color: var(--text);
  font-size: 1.24rem;
  letter-spacing: -0.01em;
  text-shadow: none;
}

.brand-name {
  color: var(--purple-3);
  font-size: 1.14rem;
}

.nav-section {
  gap: 0.5rem;
}

.nav-label {
  margin: 0 0.7rem;
  color: #646d7f;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
}

.nav-label i {
  display: none;
}

.sidebar nav {
  gap: 0.2rem;
}

.sidebar nav a {
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #939bac;
  font-size: 0.93rem;
  gap: 0.72rem;
}

.sidebar nav a i {
  color: #747e91;
  opacity: 1;
  transition: color 0.18s ease;
}

.sidebar nav a:hover {
  border-color: #242a37;
  background: #141821;
  color: var(--text);
  box-shadow: none;
}

.sidebar nav a:hover i {
  color: var(--purple-3);
}

.sidebar nav a.active {
  border-color: rgba(118, 87, 232, 0.24);
  background: rgba(118, 87, 232, 0.12);
  color: #e7e2ff;
  box-shadow: none;
}

.sidebar nav a.active i {
  color: var(--purple-3);
}

.sidebar-footer {
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid #202531;
}

.user-chip {
  padding: 0.7rem;
  border-color: transparent;
  background: transparent;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(118, 87, 232, 0.22);
  border-radius: 50%;
  background: rgba(118, 87, 232, 0.1);
}

.user-avatar.has-country-flag {
  overflow: visible;
  padding: 2px;
  border: 1px solid #8d77e6;
  background: linear-gradient(145deg, rgba(157, 131, 255, 0.34), rgba(62, 47, 119, 0.5));
  box-shadow:
    0 0 0 3px rgba(118, 87, 232, 0.12),
    0 5px 15px rgba(4, 6, 12, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.25);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.user-chip:hover .user-avatar.has-country-flag {
  border-color: #b3a0f5;
  box-shadow:
    0 0 0 4px rgba(118, 87, 232, 0.16),
    0 7px 18px rgba(4, 6, 12, 0.5),
    inset 0 1px rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.user-avatar .user-avatar-flag {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  vertical-align: initial;
  box-shadow: none;
}

.user-meta {
  overflow: hidden;
}

.user-meta strong,
.user-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip span {
  font-size: 0.8rem;
}

.user-chip strong {
  color: #dfe3ec;
  font-size: 0.88rem;
}

.country-flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  margin-right: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  object-fit: cover;
  vertical-align: -0.08em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.user-chip .country-flag {
  overflow: visible;
  flex: 0 0 auto;
}

.country-flag-hero {
  width: 28px;
  height: 21px;
  margin-right: 0.35rem;
  vertical-align: 0;
}

.with-sidebar {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 2.25rem 2.5rem 3rem !important;
}

/* Page hierarchy */
.page-header {
  min-height: 70px;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  letter-spacing: -0.035em;
}

.page-header p {
  max-width: 62rem;
  font-size: 0.92rem;
}

.eyebrow {
  margin-bottom: 0.3rem !important;
  color: var(--purple-3) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.11em;
}

.grid {
  gap: 1.15rem;
}

/* Cards and dashboard */
.stat {
  min-height: 112px;
  padding: 1.15rem;
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
  box-shadow: var(--shadow-sm);
}

.stat:hover {
  transform: translateY(-1px);
  border-color: #353d4d;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(118, 87, 232, 0.18);
  border-radius: 10px;
  background: rgba(118, 87, 232, 0.08);
  color: var(--purple-3);
}

.stat-icon.warn {
  border-color: rgba(231, 184, 92, 0.18);
  background: rgba(231, 184, 92, 0.08);
  color: var(--warn);
}

.stat-icon.ok {
  border-color: rgba(64, 200, 154, 0.18);
  background: rgba(64, 200, 154, 0.08);
  color: var(--success);
}

.stat-icon.money {
  border-color: rgba(107, 165, 231, 0.18);
  background: rgba(107, 165, 231, 0.08);
  color: var(--info);
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.75rem;
}

.stat-icon.danger {
  border-color: rgba(239, 107, 115, 0.2);
  background: rgba(239, 107, 115, 0.08);
  color: #ee8790;
}

.stat-icon.duplicate {
  border-color: rgba(213, 132, 218, 0.2);
  background: rgba(213, 132, 218, 0.08);
  color: #d58cda;
}

.stat-icon.muted-status {
  border-color: rgba(137, 148, 166, 0.2);
  background: rgba(137, 148, 166, 0.07);
  color: #919bad;
}

.stat .label {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
}

.stat .value {
  margin-top: 0.1rem;
  color: var(--text);
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.panel {
  padding: 1.25rem;
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
  box-shadow: var(--shadow-sm);
}

section.panel {
  width: 100%;
  min-width: 0;
  align-self: stretch;
  grid-column: 1 / -1;
}

.grid-2 {
  grid-template-columns: minmax(0, 1fr);
}

.grid-2 > *,
.stack,
.stack > .panel {
  width: 100%;
  min-width: 0;
}

.panel-head {
  min-height: 32px;
  margin-bottom: 0.95rem;
}

.panel-head h2,
.panel h2 {
  color: #e7e9ef;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.panel h3 {
  margin: 1.4rem 0 0.45rem;
  color: #d7dbe4;
  font-size: 0.92rem;
}

.panel-head h2 i,
.panel h2 i,
.panel h3 i {
  color: #7f89a0;
}

.text-link {
  color: #858ea1;
  font-size: 0.82rem;
}

.text-link:hover {
  color: var(--purple-3);
}

/* Data tables */
.table-wrap {
  margin: 0 -0.25rem -0.25rem;
  border: 1px solid #202633;
  border-radius: 9px;
  background: #0c0f15;
}

table {
  font-size: 0.875rem;
}

th,
td {
  padding: 0.78rem 0.8rem;
  border-bottom-color: #202633;
  vertical-align: middle;
}

th {
  background: #11151d;
  color: #788195;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

tbody tr {
  transition: background-color 0.16s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  padding: 2rem 0.75rem !important;
}

.vulnerability-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) repeat(4, minmax(125px, 0.72fr)) auto;
  gap: 0.75rem;
  align-items: end;
  margin: 0.9rem 0 1rem;
  padding: 1rem;
  border: 1px solid #252d3a;
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(118, 87, 232, 0.055), transparent 48%),
    #0e1219;
}

.vulnerability-filters .form-row {
  min-width: 0;
}

.vulnerability-filters label {
  font-size: 0.68rem;
}

.vulnerability-filters input,
.vulnerability-filters select {
  min-height: 40px;
}

.vulnerability-filters .filter-submit {
  min-height: 40px;
  white-space: nowrap;
}

.finance-filters {
  grid-template-columns: minmax(260px, 1.6fr) minmax(150px, 0.7fr) minmax(110px, 0.45fr) auto;
}

.admin-user-filters {
  grid-template-columns:
    minmax(240px, 1.5fr)
    minmax(140px, 0.65fr)
    minmax(180px, 0.8fr)
    minmax(100px, 0.4fr)
    auto;
}

.table-results-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #7c8698;
  font-size: 0.72rem;
}

.table-results-summary strong {
  color: #cdd3dd;
}

.active-filter {
  padding: 0.24rem 0.48rem;
  border: 1px solid rgba(118, 87, 232, 0.24);
  border-radius: 6px;
  background: rgba(118, 87, 232, 0.08);
  color: #ac9cf2;
  text-transform: capitalize;
}

.table-results-summary + .table-wrap {
  margin-bottom: 0;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #252c38;
}

.pagination-button,
.pagination-pages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #303848;
  border-radius: 8px;
  background: #121720;
  color: #9aa3b4;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.16s ease;
}

.pagination-button {
  gap: 0.4rem;
  padding: 0.42rem 0.68rem;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pagination-pages a {
  min-width: 34px;
  padding: 0.35rem;
}

.pagination-button:hover,
.pagination-pages a:hover,
.pagination-pages a.active {
  border-color: rgba(139, 111, 244, 0.65);
  background: rgba(118, 87, 232, 0.12);
  color: #e5e1fb;
}

.pagination-pages a.active {
  box-shadow: inset 0 0 0 1px rgba(157, 131, 255, 0.2);
}

.pagination-pages span {
  color: #606a7b;
}

.pagination-button.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}

@media (max-width: 1250px) {
  .vulnerability-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vulnerability-search {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .vulnerability-filters {
    grid-template-columns: 1fr;
  }

  .vulnerability-search {
    grid-column: auto;
  }

  .table-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-pages {
    justify-content: center;
    order: -1;
  }

  .pagination-button {
    width: 100%;
  }
}

/* Status indicators */
.badge {
  gap: 0.3rem;
  padding: 0.24rem 0.5rem;
  border-radius: 6px;
  background: #1b202c;
  color: #c4cad5;
  font-size: 0.7rem;
  letter-spacing: 0.015em;
}

.badge.critical,
.badge.high,
.badge.rejected,
.badge.duplicate,
.badge.out_of_scope {
  border-color: rgba(239, 107, 115, 0.24);
  background: rgba(239, 107, 115, 0.08);
  color: #f29aa0;
}

.badge.medium {
  border-color: rgba(231, 184, 92, 0.24);
  background: rgba(231, 184, 92, 0.08);
  color: #eac67d;
}

.badge.low,
.badge.none,
.badge.closed,
.badge.bounty_paid {
  border-color: rgba(64, 200, 154, 0.22);
  background: rgba(64, 200, 154, 0.07);
  color: #76d5b3;
}

.badge.submitted,
.badge.escalated,
.badge.assigned {
  border-color: rgba(118, 87, 232, 0.24);
  background: rgba(118, 87, 232, 0.09);
  color: #b5a8f7;
}

/* Controls */
.btn {
  min-height: 38px;
  padding: 0.58rem 0.9rem;
  border-radius: 8px;
  background: #7657e8;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: #8569ea;
  box-shadow: 0 7px 18px rgba(72, 50, 158, 0.2);
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--purple-3);
  outline-offset: 2px;
}

.btn-secondary,
.btn-ghost {
  border-color: #2b3240;
  background: #151923;
  color: #b6bdca;
  box-shadow: none;
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: #3b4455;
  background: #1b202c;
  color: var(--text);
  box-shadow: none;
}

.btn-danger {
  border-color: rgba(239, 107, 115, 0.28);
  background: rgba(239, 107, 115, 0.1);
  color: #f29aa0;
}

.btn-danger:hover {
  background: rgba(239, 107, 115, 0.16);
  color: #ffc1c5;
}

.btn-sm {
  min-height: 32px;
  padding: 0.38rem 0.65rem;
  font-size: 0.78rem;
}

.form-grid {
  gap: 1rem;
}

.scope-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.4fr) auto;
  gap: 1rem;
  align-items: end;
}

.form-row {
  gap: 0.42rem;
}

.form-row label {
  color: #a7afbd;
  font-size: 0.8rem;
  font-weight: 550;
}

.form-row label i {
  color: #747e91;
}

.form-row input,
.form-row select,
.form-row textarea,
.inline-role-form select {
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  border-color: #29303d;
  border-radius: 8px;
  background: #0b0e13;
  color: #e9ebf1;
  font-size: 0.9rem;
}

.form-row textarea {
  min-height: 118px;
  line-height: 1.55;
}

.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover {
  border-color: #363f4f;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #7259d6;
  box-shadow: 0 0 0 3px rgba(118, 87, 232, 0.12);
}

input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.alert {
  padding: 0.72rem 0.85rem;
  border-radius: 8px;
  font-size: 0.86rem;
}

.alert-error {
  border-color: rgba(239, 107, 115, 0.24);
  background: rgba(239, 107, 115, 0.07);
  color: #f29aa0;
}

.alert-success {
  border-color: rgba(64, 200, 154, 0.22);
  background: rgba(64, 200, 154, 0.07);
  color: #76d5b3;
}

.alert-warning {
  border-color: rgba(231, 184, 92, 0.24);
  background: rgba(231, 184, 92, 0.07);
  color: #e9c97f;
}

.alert-info {
  border-color: rgba(118, 87, 232, 0.22);
  background: rgba(118, 87, 232, 0.07);
  color: #b5a8f7;
}

/* Report detail and conversation */
.message {
  border-color: #252b38;
  border-radius: 9px;
  background: #11151d;
  padding-top: 1.25rem;
}

.message .meta {
  color: #788195;
  font-size: 0.76rem;
}

.message-author {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.message-author > strong {
  color: #cfd5df;
  font-weight: 650;
}

.message-role {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.42rem;
  border: 1px solid rgba(126, 104, 223, 0.25);
  border-radius: 999px;
  background: rgba(126, 104, 223, 0.08);
  color: #aa98f0;
  font-size: 0.62rem;
  font-weight: 650;
}

.message-role-triage {
  border-color: rgba(65, 190, 213, 0.25);
  background: rgba(65, 190, 213, 0.08);
  color: #6fcadd;
}

.message-role-developer_lead,
.message-role-developer {
  border-color: rgba(77, 145, 230, 0.25);
  background: rgba(77, 145, 230, 0.08);
  color: #79a9e9;
}

.message-role-finance {
  border-color: rgba(65, 190, 132, 0.25);
  background: rgba(65, 190, 132, 0.08);
  color: #6dcda0;
}

.message-role-admin,
.message-role-ciso {
  border-color: rgba(226, 85, 110, 0.25);
  background: rgba(226, 85, 110, 0.08);
  color: #e77b8f;
}

.message-recipient {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #737d8f;
  font-size: 0.66rem;
}

.message-recipient > span {
  padding: 0.12rem 0.32rem;
  border-radius: 999px;
  background: #1a202b;
  color: #929cad;
  font-size: 0.58rem;
}

.field-help {
  display: block;
  margin-top: 0.3rem;
  color: #6f798b;
  font-size: 0.66rem;
  line-height: 1.4;
}

.finance-payment-form {
  display: grid;
  gap: 0.5rem;
  min-width: 245px;
}

.payment-reference-field {
  display: grid;
  gap: 0.32rem;
}

.payment-reference-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #aab2c0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.payment-reference-label > i {
  color: #8d77e6;
}

.payment-reference-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
  padding: 0 0.68rem;
  border: 1px solid #333b49;
  border-radius: 9px;
  background: #0d1118;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.payment-reference-input:focus-within {
  border-color: #785fd5;
  background: #10141c;
  box-shadow: 0 0 0 3px rgba(118, 87, 232, 0.11);
}

.payment-reference-input > i {
  flex: 0 0 auto;
  color: #6f798b;
  font-size: 0.72rem;
}

.payment-reference-input input {
  width: 100%;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #d7dce5;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.payment-reference-input input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.payment-reference-input input::placeholder {
  color: #596375;
}

.payment-reference-field small {
  color: #697386;
  font-size: 0.61rem;
  line-height: 1.35;
}

.finance-paid-button {
  justify-content: center;
  width: 100%;
}

.finance-pay-confirm-summary {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.finance-pay-confirm-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid #2a3240;
  border-radius: 9px;
  background: #0d1118;
}

.finance-pay-confirm-summary dt {
  color: #697386;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finance-pay-confirm-summary dd {
  margin: 0;
  color: #d4dae4;
  font-size: 0.8rem;
  font-weight: 650;
  text-align: right;
}

#finance-pay-report {
  font-family: var(--mono);
  font-size: 0.76rem;
}

.severity-editor-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.severity-editor-head > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(226, 139, 76, 0.28);
  border-radius: 10px;
  background: rgba(226, 139, 76, 0.08);
  color: #e6a16c;
}

.severity-editor-head h2,
.severity-editor-head p {
  margin: 0;
}

.severity-editor-head p {
  margin-top: 0.15rem;
  color: #788195;
  font-size: 0.7rem;
}

.severity-editor-form .severity-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.severity-result-card {
  min-height: 140px;
}

@media (max-width: 850px) {
  .severity-editor-form .severity-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .severity-editor-form .severity-metrics {
    grid-template-columns: 1fr;
  }
}

.timeline {
  position: relative;
  margin-left: 0.3rem;
  padding-left: 1.25rem;
  border-left-color: #303747;
}

.timeline .item {
  position: relative;
}

.timeline .item::before {
  position: absolute;
  top: 0.38rem;
  left: -1.55rem;
  width: 8px;
  height: 8px;
  border: 2px solid var(--bg-1);
  border-radius: 50%;
  background: var(--purple-2);
  content: "";
}

.timeline .item .when {
  margin-top: 0.16rem;
  color: #6e778a;
  font-size: 0.73rem;
}

.reputation-history.is-scrollable {
  max-height: 19rem;
  padding-top: 0.15rem;
  padding-right: 0.7rem;
  padding-bottom: 0.35rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #6551bd #171c25;
  scrollbar-width: thin;
}

.reputation-history.is-scrollable:focus-visible {
  outline: 2px solid rgba(139, 114, 239, 0.6);
  outline-offset: 5px;
  border-radius: 4px;
}

.reputation-history.is-scrollable::-webkit-scrollbar {
  width: 7px;
}

.reputation-history.is-scrollable::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #171c25;
}

.reputation-history.is-scrollable::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #6551bd;
}

.cvss-box {
  border-color: #252b38;
  border-radius: 9px;
  background: #11151d;
}

.cvss-score strong {
  color: var(--text);
}

.rep-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #252b38;
}

.rep-bar > span {
  background: var(--purple-2);
}

/* Authentication */
.layout-auth {
  background:
    radial-gradient(circle at 15% 15%, rgba(118, 87, 232, 0.12), transparent 28rem),
    var(--bg-0);
}

.auth-main {
  padding: 2.5rem !important;
}

.auth-shell {
  width: min(880px, 100%);
  border-color: #272d3a;
  border-radius: 16px;
  background: var(--bg-1);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.auth-aside {
  padding: 2.5rem 2.25rem;
  background:
    linear-gradient(145deg, rgba(118, 87, 232, 0.1), transparent 60%),
    #0d1017;
}

.auth-aside h2 {
  font-size: 1.5rem;
}

.auth-points li {
  color: #9aa2b2;
  font-size: 0.9rem;
}

.auth-card {
  padding: 2.5rem 2.25rem;
  background: #11151d;
}

.auth-card h1 {
  font-size: 1.55rem;
}

.auth-card-solo {
  border-color: #272d3a;
  border-radius: 16px;
}

.otp-icon {
  border: 1px solid rgba(118, 87, 232, 0.22);
  border-radius: 12px;
  background: rgba(118, 87, 232, 0.1);
  color: var(--purple-3);
  box-shadow: none;
}

/* Comfortable responsive layout */
@media (max-width: 1180px) {
  .with-sidebar {
    padding: 1.75rem !important;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .sidebar {
    box-shadow: none;
  }

  .with-sidebar {
    padding: 1.25rem !important;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .scope-form {
    grid-template-columns: 1fr;
  }
}

/* Vulnerability submission */
.submission-header {
  gap: 2rem;
}

.submission-form {
  display: grid;
  gap: 1.15rem;
}

.submission-section {
  padding: 1.5rem;
  border-color: #282e3b;
  background:
    linear-gradient(135deg, rgba(118, 87, 232, 0.035), transparent 22rem),
    var(--bg-1);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.section-heading p {
  margin: 0.2rem 0 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.section-number {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(139, 114, 239, 0.28);
  border-radius: 9px;
  background: rgba(118, 87, 232, 0.1);
  color: var(--purple-3);
  font-size: 0.72rem;
  font-weight: 800;
}

.submission-basics {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
}

.field-hint {
  color: #747d90;
  font-size: 0.75rem;
}

.cvss-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1rem;
  align-items: stretch;
}

.cvss-metrics-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.cvss-result-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid rgba(139, 114, 239, 0.25);
  border-radius: 11px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 114, 239, 0.17), transparent 12rem),
    #10131b;
}

.cvss-result-label {
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cvss-result-value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.2rem 0 0.6rem;
}

.cvss-result-value strong {
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.cvss-result-card code {
  overflow-wrap: anywhere;
  color: #7e8799;
  font-size: 0.7rem;
}

.editor-stack {
  display: grid;
  gap: 1.25rem;
}

.rich-field > label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.rich-field > label i {
  color: var(--purple-3);
}

.required-mark {
  margin-left: auto;
  color: #788195;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rich-field > .field-hint {
  display: block;
  margin: 0 0 0.5rem;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid #303746;
  border-radius: 10px;
  background: #0f131a;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rich-editor:focus-within {
  border-color: var(--purple-1);
  box-shadow: 0 0 0 3px rgba(118, 87, 232, 0.12);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 0.45rem;
  border-bottom: 1px solid #282e3b;
  background: #151923;
}

.editor-toolbar button {
  display: grid;
  width: 32px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #939cad;
  cursor: pointer;
}

.editor-toolbar button:hover {
  border-color: #363e4e;
  background: #202532;
  color: var(--text);
}

.toolbar-divider {
  width: 1px;
  margin: 0.2rem 0.25rem;
  background: #303746;
}

.editor-content {
  min-height: 155px;
  padding: 0.9rem 1rem;
  outline: none;
  color: #dfe3eb;
  font-size: 0.9rem;
  line-height: 1.65;
}

.editor-content:empty::before {
  color: #5f687a;
  content: attr(data-placeholder);
  pointer-events: none;
}

.editor-content p:first-child {
  margin-top: 0;
}

.editor-content p:last-child {
  margin-bottom: 0;
}

.editor-content blockquote {
  margin-left: 0;
  padding-left: 0.8rem;
  border-left: 3px solid var(--purple-1);
  color: #aeb5c3;
}

.editor-content pre {
  overflow-x: auto;
  padding: 0.75rem;
  border: 1px solid #2a3140;
  border-radius: 7px;
  background: #090c11;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.editor-validation {
  display: block;
  min-height: 1rem;
  margin-top: 0.25rem;
  color: var(--danger);
  font-size: 0.74rem;
}

.rich-field.has-error .rich-editor {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 107, 115, 0.1);
}

.detail-rich-field {
  min-width: 0;
}

.detail-rich-field .editor-content {
  min-height: 112px;
  max-height: 330px;
  overflow-y: auto;
  font-size: 0.82rem;
}

.detail-rich-field .editor-toolbar {
  padding: 0.35rem;
}

.detail-rich-field .editor-toolbar button {
  width: 29px;
  height: 28px;
}

.message-body {
  margin-top: 0.55rem;
}

.message-body > :first-child,
.status-history-note > :first-child {
  margin-top: 0;
}

.message-body > :last-child,
.status-history-note > :last-child {
  margin-bottom: 0;
}

.status-history-note {
  color: #929bad;
  font-size: 0.75rem;
  line-height: 1.5;
}

.thread-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.thread-image-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid #2b3341;
  border-radius: 10px;
  background: #0d1118;
}

.thread-image-gallery a {
  position: relative;
  display: block;
  height: 135px;
  overflow: hidden;
}

.thread-image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.thread-image-gallery a:hover img {
  transform: scale(1.035);
}

.thread-image-gallery a span {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: rgba(8, 11, 16, 0.82);
  color: #d9dfe8;
  font-size: 0.7rem;
  backdrop-filter: blur(6px);
}

.thread-image-gallery figcaption {
  padding: 0.55rem 0.65rem;
  color: #8d97a9;
  font-size: 0.7rem;
  line-height: 1.45;
}

.thread-composer {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid #29303d;
}

.thread-closed-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(226, 85, 110, 0.22);
  border-radius: 9px;
  background: rgba(226, 85, 110, 0.06);
  color: #c38b97;
  font-size: 0.72rem;
}

.thread-closed-notice i {
  color: #e36b82;
}

.thread-composer-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.thread-composer-head > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(118, 87, 232, 0.28);
  border-radius: 10px;
  background: rgba(118, 87, 232, 0.09);
  color: #ab98f8;
}

.thread-composer-head h3,
.thread-composer-head p {
  margin: 0;
}

.thread-composer-head h3 {
  font-size: 0.9rem;
}

.thread-composer-head p {
  margin-top: 0.12rem;
  color: #747e90;
  font-size: 0.7rem;
}

.thread-fixed-recipient {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(118, 87, 232, 0.25);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(118, 87, 232, 0.07), transparent 58%),
    #0d1118;
}

.thread-fixed-recipient-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(139, 114, 239, 0.32);
  border-radius: 50%;
  background: rgba(118, 87, 232, 0.12);
  color: #aa96f5;
}

.thread-fixed-recipient-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thread-fixed-recipient > div {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.thread-fixed-recipient > div strong {
  color: #dce1ea;
  font-size: 0.78rem;
}

.thread-fixed-recipient > div span {
  overflow: hidden;
  color: #778194;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-fixed-recipient > .badge {
  margin-left: auto;
}

.thread-image-dropzone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 78px;
  padding: 0.85rem;
  border: 1px dashed #3b4556;
  border-radius: 10px;
  background: #0d1118;
  cursor: pointer;
  transition: 0.18s ease;
}

.thread-image-dropzone:hover,
.thread-image-dropzone:focus-visible,
.thread-image-dropzone.is-dragover {
  border-color: #8068df;
  background: rgba(118, 87, 232, 0.07);
  outline: none;
}

.thread-image-dropzone > i {
  color: #a58ff5;
  font-size: 1.25rem;
}

.thread-image-dropzone strong,
.thread-image-dropzone span {
  display: block;
}

.thread-image-dropzone strong {
  color: #d9dee7;
  font-size: 0.78rem;
}

.thread-image-dropzone span {
  margin-top: 0.15rem;
  color: #737d8f;
  font-size: 0.67rem;
}

.thread-image-preview-list {
  display: grid;
  gap: 0.6rem;
}

.thread-image-preview {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.55rem;
  border: 1px solid #2b3341;
  border-radius: 10px;
  background: #0e1219;
}

.thread-image-preview > img {
  width: 105px;
  height: 82px;
  border-radius: 7px;
  object-fit: cover;
}

.thread-image-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.thread-image-preview-head strong {
  overflow: hidden;
  color: #cfd5df;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-image-preview-head button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #747e90;
  cursor: pointer;
}

.thread-image-preview-head button:hover {
  border-color: rgba(226, 85, 110, 0.3);
  color: #ed7088;
}

.thread-image-comment-field {
  overflow: hidden;
  border: 1px solid #333c4b;
  border-radius: 9px;
  background: #0b0f15;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.thread-image-comment-field:focus-within {
  border-color: #765fd1;
  background: #0d1118;
  box-shadow: 0 0 0 3px rgba(118, 87, 232, 0.1);
}

.thread-image-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.48rem 0.62rem;
  border-bottom: 1px solid #292f3b;
  background: #121720;
}

.thread-image-comment-head label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #aeb6c3;
  font-size: 0.65rem;
  font-weight: 650;
}

.thread-image-comment-head label > i {
  color: #8e78e4;
}

.thread-image-comment-head label > span {
  padding: 0.12rem 0.32rem;
  border-radius: 999px;
  background: rgba(118, 87, 232, 0.1);
  color: #9385cc;
  font-size: 0.54rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.thread-image-comment-count {
  flex: 0 0 auto;
  color: #667184;
  font-family: var(--mono);
  font-size: 0.59rem;
}

.thread-image-comment-count.near-limit {
  color: var(--warn);
}

.thread-image-preview .thread-image-comment {
  display: block;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 0.62rem 0.68rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #d7dce5;
  font-size: 0.72rem;
  line-height: 1.5;
  resize: vertical;
}

.thread-image-preview .thread-image-comment:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.thread-image-preview .thread-image-comment::placeholder {
  color: #596476;
}

.thread-validation {
  margin-top: -0.35rem;
}

@media (max-width: 600px) {
  .thread-image-preview {
    grid-template-columns: 1fr;
  }

  .thread-image-preview > img {
    width: 100%;
    height: 145px;
  }
}

.poc-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 135px;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px dashed #41495a;
  border-radius: 11px;
  background: rgba(9, 12, 17, 0.48);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.poc-dropzone:hover,
.poc-dropzone:focus-visible,
.poc-dropzone.is-dragover {
  border-color: var(--purple-2);
  background: rgba(118, 87, 232, 0.07);
  outline: none;
}

.poc-dropzone.is-dragover {
  transform: scale(1.005);
}

.dropzone-icon {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(139, 114, 239, 0.24);
  border-radius: 12px;
  background: rgba(118, 87, 232, 0.1);
  color: var(--purple-3);
  font-size: 1.1rem;
}

.poc-dropzone strong,
.poc-dropzone span {
  display: block;
}

.poc-dropzone strong {
  color: #e1e5ed;
  font-size: 0.88rem;
}

.poc-dropzone span {
  margin-top: 0.2rem;
  color: #757e90;
  font-size: 0.74rem;
}

.supporting-file-dropzone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 122px;
  padding: 1.1rem 1.2rem;
  border: 1px dashed #3b4556;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(118, 87, 232, 0.055), transparent 58%), #0d1118;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.supporting-file-dropzone:hover,
.supporting-file-dropzone:focus-visible,
.supporting-file-dropzone.is-dragover {
  border-color: #8068df;
  background: linear-gradient(135deg, rgba(118, 87, 232, 0.1), transparent 62%), #0f131b;
  outline: none;
}

.supporting-file-dropzone.is-dragover {
  transform: scale(1.004);
}

.supporting-file-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(118, 87, 232, 0.28);
  border-radius: 14px;
  background: rgba(118, 87, 232, 0.09);
  color: #aa96f4;
  font-size: 1.25rem;
}

.supporting-file-copy > strong,
.supporting-file-copy > span {
  display: block;
}

.supporting-file-copy > strong {
  color: #dfe3ea;
  font-size: 0.88rem;
}

.supporting-file-copy > span {
  margin-top: 0.18rem;
  color: #778194;
  font-size: 0.7rem;
}

.supporting-file-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.62rem;
}

.supporting-file-types > span {
  padding: 0.18rem 0.38rem;
  border: 1px solid #303847;
  border-radius: 5px;
  background: #121721;
  color: #8993a5;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
}

.supporting-file-browse {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.55rem 0.72rem;
  border: 1px solid #3b4352;
  border-radius: 8px;
  background: #171c25;
  color: #b7bfcb;
  font-size: 0.68rem;
  font-weight: 650;
}

.supporting-file-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #2b3340;
  border-radius: 8px;
  background: #0e1219;
  color: #7d8799;
  font-size: 0.67rem;
}

.supporting-file-summary strong {
  color: #b9c0cc;
}

.supporting-file-summary i {
  margin-right: 0.25rem;
  color: #8e78e4;
}

.supporting-file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.supporting-file-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid #2c3442;
  border-radius: 9px;
  background: #10151d;
}

.supporting-file-card-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(118, 87, 232, 0.1);
  color: #9d88ed;
}

.supporting-file-card.file-pdf .supporting-file-card-icon {
  background: rgba(226, 85, 110, 0.1);
  color: #e9758b;
}

.supporting-file-card.file-xlsx .supporting-file-card-icon {
  background: rgba(65, 190, 132, 0.1);
  color: #6bc99c;
}

.supporting-file-card.file-docx .supporting-file-card-icon {
  background: rgba(77, 145, 230, 0.1);
  color: #76a7e7;
}

.supporting-file-card.file-mp4 .supporting-file-card-icon {
  background: rgba(221, 145, 67, 0.1);
  color: #dda064;
}

.supporting-file-card-details {
  min-width: 0;
}

.supporting-file-card-details strong,
.supporting-file-card-details span {
  display: block;
}

.supporting-file-card-details strong {
  overflow: hidden;
  color: #cfd5df;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supporting-file-card-details span {
  margin-top: 0.18rem;
  color: #6f798b;
  font-family: var(--mono);
  font-size: 0.59rem;
}

.supporting-file-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #707a8c;
  cursor: pointer;
}

.supporting-file-remove:hover {
  border-color: rgba(226, 85, 110, 0.25);
  background: rgba(226, 85, 110, 0.07);
  color: #e67389;
}

.supporting-file-empty {
  margin: 0.65rem 0 0;
  color: #687285;
  font-size: 0.66rem;
}

.supporting-file-empty i {
  margin-right: 0.25rem;
  color: #7565ba;
}

.supporting-file-error {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(226, 85, 110, 0.25);
  border-radius: 8px;
  background: rgba(226, 85, 110, 0.06);
  color: #e18193;
  font-size: 0.68rem;
}

.supporting-file-summary[hidden],
.supporting-file-empty[hidden],
.supporting-file-error[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .supporting-file-dropzone {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .supporting-file-browse {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .supporting-file-list {
    grid-template-columns: 1fr;
  }
}

.poc-image-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.poc-image-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem;
  border: 1px solid #2b3240;
  border-radius: 10px;
  background: #11151d;
  transition: border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.poc-image-card.is-dragging {
  opacity: 0.45;
}

.poc-image-card.drag-over {
  border-color: var(--purple-2);
  transform: translateY(2px);
}

.poc-image-card > img {
  width: 100%;
  height: 126px;
  border-radius: 7px;
  object-fit: cover;
  background: #090c11;
  pointer-events: none;
}

.poc-image-details {
  min-width: 0;
}

.poc-image-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.poc-image-card-head > div:first-child {
  min-width: 0;
}

.poc-image-card-head strong,
.poc-image-card-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poc-image-card-head strong {
  color: #dfe3eb;
  font-size: 0.8rem;
}

.poc-image-card-head span {
  color: #717a8c;
  font-size: 0.68rem;
}

.poc-image-card-head > div:last-child {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.poc-drag-handle,
.poc-remove {
  display: grid !important;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #747d90 !important;
}

.poc-drag-handle {
  cursor: grab;
}

.poc-remove {
  cursor: pointer;
}

.poc-remove:hover {
  border-color: rgba(239, 107, 115, 0.25);
  background: rgba(239, 107, 115, 0.08);
  color: var(--danger) !important;
}

.poc-description-field {
  overflow: hidden;
  border: 1px solid #303746;
  border-radius: 9px;
  background: #0c1016;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.poc-description-field:focus-within {
  border-color: var(--purple-1);
  box-shadow: 0 0 0 3px rgba(118, 87, 232, 0.12);
}

.poc-description-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #252b37;
  background: #141923;
}

.poc-description-head label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #b8bfcc;
  font-size: 0.73rem;
  font-weight: 700;
}

.poc-description-head label i {
  color: var(--purple-3);
}

.poc-description-head label span {
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: rgba(118, 87, 232, 0.11);
  color: #9488ca;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.poc-description-count {
  flex: 0 0 auto;
  color: #687184;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.65rem;
  transition: color 0.18s ease;
}

.poc-description-count.near-limit {
  color: var(--warn);
}

.poc-description-field textarea {
  display: block;
  width: 100%;
  min-height: 92px;
  margin: 0;
  padding: 0.75rem 0.8rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #dce1ea;
  font-size: 0.82rem;
  line-height: 1.55;
  resize: vertical;
}

.poc-description-field textarea:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}

.poc-description-field textarea::placeholder {
  color: #5e687a;
}

.poc-image-empty {
  margin: 0.7rem 0 0;
  color: #687184;
  font-size: 0.76rem;
  text-align: center;
}

.poc-image-empty[hidden] {
  display: none;
}

.submission-actions {
  position: sticky;
  z-index: 15;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #303746;
  border-radius: 11px;
  background: rgba(15, 18, 25, 0.94);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.submission-actions > div:first-child strong,
.submission-actions > div:first-child span {
  display: block;
}

.submission-actions > div:first-child strong {
  font-size: 0.83rem;
}

.submission-actions > div:first-child span {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.logout-confirm-dialog {
  width: min(440px, calc(100vw - 2rem));
  padding: 1.65rem;
  overflow: hidden;
  border: 1px solid rgba(226, 85, 110, 0.3);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(226, 85, 110, 0.13), transparent 42%),
    #11151d;
  color: #e1e5ec;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.7);
}

.logout-confirm-dialog[open] {
  animation: status-dialog-in 0.22s ease-out;
}

.logout-confirm-dialog::backdrop {
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(7px);
}

.logout-confirm-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #303746;
  border-radius: 8px;
  background: #171c25;
  color: #7e8798;
  cursor: pointer;
}

.logout-confirm-close:hover {
  color: #d9dee7;
}

.logout-confirm-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border: 1px solid rgba(226, 85, 110, 0.32);
  border-radius: 14px;
  background: rgba(226, 85, 110, 0.1);
  color: #eb7890;
  font-size: 1.2rem;
}

.logout-confirm-dialog .eyebrow {
  margin: 0 0 0.35rem;
  color: #df7589;
}

.logout-confirm-dialog h2 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.logout-confirm-dialog > p:not(.eyebrow) {
  margin: 0.65rem 0 1.15rem;
  color: #949daf;
  font-size: 0.8rem;
  line-height: 1.55;
}

.logout-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.workflow-confirm-dialog {
  width: min(470px, calc(100vw - 2rem));
  padding: 1.65rem;
  overflow: hidden;
  border: 1px solid #333b4b;
  border-radius: 16px;
  background:
    radial-gradient(circle at 15% 0%, rgba(118, 87, 232, 0.13), transparent 42%),
    #11151d;
  color: #e1e5ec;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.7);
}

.workflow-confirm-dialog[open] {
  animation: status-dialog-in 0.22s ease-out;
}

.workflow-confirm-dialog::backdrop {
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(7px);
}

.workflow-confirm-dialog.is-danger {
  border-color: rgba(226, 85, 110, 0.35);
  background:
    radial-gradient(circle at 15% 0%, rgba(226, 85, 110, 0.14), transparent 42%),
    #11151d;
}

.workflow-confirm-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #303746;
  border-radius: 8px;
  background: #171c25;
  color: #7e8798;
  cursor: pointer;
}

.workflow-confirm-close:hover {
  color: #d9dee7;
}

.workflow-confirm-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border: 1px solid rgba(118, 87, 232, 0.3);
  border-radius: 14px;
  background: rgba(118, 87, 232, 0.1);
  color: #a792f6;
  font-size: 1.25rem;
}

.workflow-confirm-dialog.is-danger .workflow-confirm-icon {
  border-color: rgba(226, 85, 110, 0.32);
  background: rgba(226, 85, 110, 0.1);
  color: #eb7890;
}

.workflow-confirm-dialog .eyebrow {
  margin: 0 0 0.35rem;
  color: #9f8cea;
}

.workflow-confirm-dialog.is-danger .eyebrow {
  color: #df7589;
}

.workflow-confirm-dialog h2 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.workflow-confirm-dialog > p:not(.eyebrow) {
  margin: 0.65rem 0 1rem;
  color: #949daf;
  font-size: 0.8rem;
  line-height: 1.55;
}

.workflow-confirm-report {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #2a3240;
  border-radius: 9px;
  background: #0d1118;
}

.workflow-confirm-report > span:first-child {
  color: #697386;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.workflow-confirm-report strong {
  margin-right: auto;
  color: #d4dae4;
  font-family: var(--mono);
  font-size: 0.76rem;
}

.workflow-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.action-success-dialog {
  width: min(430px, calc(100vw - 2rem));
  padding: 2rem;
  overflow: hidden;
  border: 1px solid #343d4d;
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 0, rgba(48, 190, 139, 0.14), transparent 15rem),
    #11151d;
  color: var(--text);
  text-align: center;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.7);
}

.action-success-dialog[open] {
  animation: status-dialog-in 0.22s ease-out;
}

.action-success-dialog::backdrop {
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(7px);
}

.action-success-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border: 1px solid rgba(48, 190, 139, 0.4);
  border-radius: 50%;
  background: rgba(48, 190, 139, 0.12);
  color: #68ddb1;
  font-size: 1.65rem;
  box-shadow: 0 16px 40px rgba(21, 126, 89, 0.2);
}

.action-success-icon span {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(104, 221, 177, 0.28);
  border-radius: inherit;
  animation: submission-confirm-pulse 2.2s ease-out infinite;
}

.action-success-dialog .eyebrow {
  margin: 0 0 0.35rem;
  color: #68ddb1;
}

.action-success-dialog h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.action-success-dialog > p:not(.eyebrow) {
  margin: 0.65rem 0 1.35rem;
  color: #949daf;
  font-size: 0.83rem;
  line-height: 1.55;
}

.action-success-dialog > p strong {
  color: #dce1ea;
  font-family: var(--mono);
}

.submission-confirm-dialog {
  width: min(640px, calc(100vw - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid #343c4c;
  border-radius: 16px;
  background: #11151d;
  color: var(--text);
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.7);
}

.submission-confirm-dialog[open] {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  animation: status-dialog-in 0.22s ease-out;
}

.submission-confirm-dialog::backdrop {
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(7px);
}

.submission-confirm-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(167, 139, 250, 0.28), transparent 36%),
    linear-gradient(160deg, #21183d, #121622 72%);
}

.submission-confirm-visual > span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(196, 181, 253, 0.38);
  border-radius: 20px;
  background: rgba(118, 87, 232, 0.18);
  color: #c4b5fd;
  font-size: 1.75rem;
  box-shadow: 0 14px 38px rgba(40, 24, 82, 0.45);
}

.submission-confirm-pulse {
  position: absolute;
  width: 105px;
  height: 105px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 50%;
  animation: submission-confirm-pulse 2.2s ease-out infinite;
}

.submission-confirm-content {
  padding: 1.55rem;
}

.submission-confirm-content .eyebrow {
  margin: 0 0 0.35rem;
}

.submission-confirm-content h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.submission-confirm-content > p:not(.eyebrow) {
  margin: 0.55rem 0 1.15rem;
  color: #929bad;
  font-size: 0.85rem;
  line-height: 1.55;
}

.submission-confirm-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #293140;
  border-radius: 11px;
  background: #293140;
}

.submission-confirm-summary > div {
  min-width: 0;
  padding: 0.75rem 0.85rem;
  background: #0e1219;
}

.submission-confirm-summary dt {
  margin-bottom: 0.22rem;
  color: #717c90;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submission-confirm-summary dd {
  margin: 0;
  overflow: hidden;
  color: #dce1ea;
  font-size: 0.79rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submission-confirm-notice {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(118, 87, 232, 0.24);
  border-radius: 10px;
  background: rgba(118, 87, 232, 0.07);
  color: #a9b0bf;
  font-size: 0.74rem;
  line-height: 1.45;
}

.submission-confirm-notice i {
  margin-top: 0.12rem;
  color: var(--purple-3);
}

.submission-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

@keyframes submission-confirm-pulse {
  0% { opacity: 0.75; transform: scale(0.72); }
  75%, 100% { opacity: 0; transform: scale(1.35); }
}

@media (max-width: 1080px) {
  .submission-basics,
  .cvss-layout {
    grid-template-columns: 1fr;
  }

  .cvss-metrics-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .submission-section {
    padding: 1rem;
  }

  .cvss-metrics-form,
  .poc-image-card {
    grid-template-columns: 1fr;
  }

  .poc-image-card > img {
    height: 180px;
  }

  .submission-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .submission-actions .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .submission-confirm-dialog[open] {
    grid-template-columns: 1fr;
  }

  .submission-confirm-visual {
    min-height: 105px;
  }

  .submission-confirm-summary {
    grid-template-columns: 1fr;
  }

  .submission-confirm-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Sanitized report content and PoC gallery */
.report-prose {
  color: #cbd1dc;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.report-prose-plain {
  white-space: pre-wrap;
}

.report-prose a {
  color: var(--purple-3);
}

.report-prose blockquote {
  margin-left: 0;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 3px solid var(--purple-1);
  color: #aeb6c4;
}

.report-prose pre,
.report-prose code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.report-prose pre {
  overflow-x: auto;
  padding: 0.85rem;
  border: 1px solid #29303d;
  border-radius: 8px;
  background: #090c11;
}

.poc-evidence-panel {
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(118, 87, 232, 0.07), transparent 24rem),
    var(--bg-1);
}

.poc-evidence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid #282f3c;
}

.poc-evidence-head > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.poc-evidence-head h2,
.poc-evidence-head p {
  margin: 0;
}

.poc-evidence-head h2 {
  font-size: 1rem;
}

.poc-evidence-head p {
  margin-top: 0.12rem;
  color: #7d8698;
  font-size: 0.73rem;
}

.poc-evidence-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(139, 114, 239, 0.25);
  border-radius: 10px;
  background: rgba(118, 87, 232, 0.1);
  color: var(--purple-3);
}

.poc-evidence-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.58rem;
  border: 1px solid #303746;
  border-radius: 999px;
  background: #11161e;
  color: #8e97a8;
  font-size: 0.68rem;
  font-weight: 700;
}

.poc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 1rem;
  padding: 1rem;
}

.poc-gallery.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.poc-gallery-item {
  overflow: hidden;
  margin: 0;
  border: 1px solid #2b3341;
  border-radius: 12px;
  background: #0f131a;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.poc-gallery-item:hover {
  border-color: #424c60;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.poc-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(-45deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%) 0 0 / 18px 18px,
    #080b10;
  cursor: zoom-in;
}

.poc-gallery.is-single .poc-preview {
  max-height: 500px;
  aspect-ratio: 21 / 10;
}

.poc-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.poc-preview:hover img {
  transform: scale(1.018);
  filter: brightness(0.78);
}

.poc-preview-number,
.poc-preview-action {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 11, 16, 0.78);
  color: #dce1ea;
  font-size: 0.65rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.poc-preview-number {
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.poc-preview-action {
  right: 50%;
  bottom: 50%;
  padding: 0.48rem 0.65rem;
  border-radius: 8px;
  opacity: 0;
  transform: translate(50%, 50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.poc-preview:hover .poc-preview-action,
.poc-preview:focus-visible .poc-preview-action {
  opacity: 1;
  transform: translate(50%, 50%) scale(1);
}

.poc-preview:focus-visible {
  outline: 2px solid var(--purple-2);
  outline-offset: -2px;
}

.poc-gallery-item figcaption {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.85rem;
  border-top: 1px solid #282f3c;
}

.poc-gallery-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(139, 114, 239, 0.22);
  border-radius: 8px;
  background: rgba(118, 87, 232, 0.1);
  color: var(--purple-3);
  font-size: 0.68rem;
  font-weight: 800;
}

.poc-caption-content {
  min-width: 0;
}

.poc-caption-label {
  color: #687285;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poc-caption-content > p {
  margin: 0.22rem 0 0;
  color: #b4bbc8;
  font-size: 0.79rem;
  line-height: 1.55;
}

.poc-caption-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid #242b36;
}

.poc-caption-meta > span {
  overflow: hidden;
  color: #6f798b;
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poc-caption-meta > span i {
  margin-right: 0.25rem;
}

.poc-caption-meta button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple-3);
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
}

.poc-caption-meta button:hover {
  color: #c4b9ff;
}

/* PoC evidence lightbox */
.poc-lightbox {
  width: min(1120px, calc(100vw - 2rem));
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid #343c4c;
  border-radius: 14px;
  background: #0c1016;
  color: var(--text);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.68);
}

.poc-lightbox[open] {
  animation: status-dialog-in 0.2s ease-out;
}

.poc-lightbox::backdrop {
  background: rgba(2, 4, 7, 0.86);
  backdrop-filter: blur(7px);
}

.poc-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #282f3c;
  background: #141923;
}

.poc-lightbox-head > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.poc-lightbox-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(118, 87, 232, 0.11);
  color: var(--purple-3);
}

.poc-lightbox-head span,
.poc-lightbox-head h2 {
  margin: 0;
}

#poc-lightbox-position {
  color: #737d8f;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.poc-lightbox-head h2 {
  margin-top: 0.05rem;
  font-size: 0.92rem;
}

.poc-lightbox-close,
.poc-lightbox-nav {
  display: grid;
  padding: 0;
  place-items: center;
  border: 1px solid #303847;
  background: rgba(20, 25, 35, 0.9);
  color: #929bac;
  cursor: pointer;
}

.poc-lightbox-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.poc-lightbox-close:hover,
.poc-lightbox-nav:hover {
  border-color: #4a556a;
  color: #fff;
}

.poc-lightbox-stage {
  position: relative;
  display: grid;
  min-height: 300px;
  max-height: calc(92vh - 160px);
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 50%, #141923, #07090d 70%);
}

.poc-lightbox-stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: calc(92vh - 160px);
  object-fit: contain;
}

.poc-lightbox-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 40px;
  height: 52px;
  border-radius: 9px;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.poc-lightbox-nav.previous {
  left: 0.8rem;
}

.poc-lightbox-nav.next {
  right: 0.8rem;
}

.poc-lightbox-nav[hidden] {
  display: none;
}

.poc-lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid #282f3c;
  background: #11161e;
}

.poc-lightbox-caption > div {
  min-width: 0;
}

.poc-lightbox-caption strong {
  display: block;
  overflow: hidden;
  color: #d8dde6;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poc-lightbox-caption p {
  margin: 0.2rem 0 0;
  color: #8e97a8;
  font-size: 0.74rem;
}

.poc-lightbox-caption a {
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  border: 1px solid #343d4d;
  border-radius: 7px;
  color: #b7aecf;
  font-size: 0.68rem;
  font-weight: 700;
}

.poc-lightbox-caption a:hover {
  border-color: var(--purple-1);
  color: #fff;
}

@media (max-width: 700px) {
  .poc-evidence-head,
  .poc-lightbox-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .poc-gallery {
    grid-template-columns: 1fr;
    padding: 0.75rem;
  }

  .poc-gallery.is-single .poc-preview {
    aspect-ratio: 16 / 10;
  }

  .poc-caption-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .poc-lightbox {
    width: calc(100vw - 0.75rem);
    max-height: 94vh;
  }

  .poc-lightbox-stage,
  .poc-lightbox-stage img {
    max-height: calc(94vh - 205px);
  }
}

/* Shared application page heroes */
.app-page-hero.page-header {
  --hero-accent: #8d77e6;
  position: relative;
  align-items: center;
  min-height: 150px;
  margin-bottom: 1.25rem;
  padding: 1.45rem 1.55rem;
  overflow: hidden;
  border: 1px solid #303847;
  border-radius: 16px;
  background:
    radial-gradient(circle at 7% 8%, color-mix(in srgb, var(--hero-accent) 14%, transparent), transparent 34%),
    linear-gradient(135deg, #151a23 0%, #0f131a 74%);
  box-shadow: 0 18px 45px rgba(2, 4, 8, 0.22);
}

.app-page-hero.page-header::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hero-accent), transparent 74%);
  content: "";
}

.app-page-hero.page-header::after {
  position: absolute;
  top: -90px;
  right: -55px;
  width: 230px;
  height: 230px;
  border: 1px solid color-mix(in srgb, var(--hero-accent) 12%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px color-mix(in srgb, var(--hero-accent) 3%, transparent),
    0 0 0 70px color-mix(in srgb, var(--hero-accent) 2%, transparent);
  content: "";
  pointer-events: none;
}

.app-page-hero > * {
  z-index: 1;
}

.app-page-hero.hero-dashboard {
  --hero-accent: #8d77e6;
}

.app-page-hero.hero-vulnerabilities {
  --hero-accent: #e6657d;
}

.app-page-hero.hero-submission {
  --hero-accent: #9b82f0;
}

.app-page-hero.hero-researcher {
  --hero-accent: #45c79a;
}

.app-page-hero.hero-profile {
  --hero-accent: #5799e5;
}

.app-page-hero.hero-finance {
  --hero-accent: #49c99c;
}

.app-page-hero.hero-admin {
  --hero-accent: #df8c55;
}

.app-page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0 0 0.38rem;
  color: var(--hero-accent);
  font-size: 0.67rem;
  letter-spacing: 0.09em;
}

.app-page-hero.page-header h1 {
  margin: 0;
  color: #e5e9ef;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.app-page-hero.page-header > div > p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 0.48rem;
  color: #8b95a7;
  font-size: 0.82rem;
  line-height: 1.55;
}

.page-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.page-hero-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 29px;
  padding: 0.3rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--hero-accent) 20%, #29313e);
  border-radius: 8px;
  background: rgba(10, 13, 18, 0.7);
  color: #98a2b3;
  font-size: 0.66rem;
}

.page-hero-tags > span i {
  color: var(--hero-accent);
  font-size: 0.64rem;
}

.app-page-hero > .btn {
  flex: 0 0 auto;
  min-width: 148px;
  justify-content: center;
  border-color: color-mix(in srgb, var(--hero-accent) 46%, transparent);
  background: color-mix(in srgb, var(--hero-accent) 82%, #211b36);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--hero-accent) 16%, transparent);
}

@media (max-width: 820px) {
  .app-page-hero.page-header {
    min-height: 0;
    padding: 1.2rem;
  }

  .app-page-hero > .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .app-page-hero.page-header {
    padding: 1rem;
    border-radius: 13px;
  }

  .page-hero-tags {
    display: grid;
  }
}

/* Program Policy */
.policy-gate {
  width: min(960px, 100%);
  margin: 0 auto;
}

.policy-gate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.policy-version {
  display: grid;
  justify-items: end;
  gap: 0.12rem;
}

.policy-version span {
  color: #707a8c;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-version strong {
  color: #b8c0cc;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.policy-gate-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid #343c4b;
  border-radius: 16px 16px 0 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(118, 87, 232, 0.14), transparent 35%),
    #131821;
}

.policy-gate-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(118, 87, 232, 0.3);
  border-radius: 15px;
  background: rgba(118, 87, 232, 0.1);
  color: #aa96f4;
  font-size: 1.3rem;
}

.policy-gate-hero h1,
.policy-gate-hero p {
  margin: 0;
}

.policy-gate-hero h1 {
  color: #e5e9ef;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.policy-gate-hero > div > p:last-child {
  margin-top: 0.35rem;
  color: #8791a3;
  font-size: 0.78rem;
}

.policy-document {
  max-height: min(55vh, 620px);
  padding: 1.5rem 1.65rem;
  overflow-y: auto;
  border-right: 1px solid #343c4b;
  border-left: 1px solid #343c4b;
  background: #0e1219;
  color: #aeb6c3;
  scrollbar-color: #3a4353 transparent;
  scrollbar-width: thin;
}

.policy-document h2 {
  margin-top: 1.4rem;
  color: #dce1e9;
  font-size: 1rem;
}

.policy-document h2:first-child {
  margin-top: 0;
}

.policy-document li {
  margin: 0.35rem 0;
}

.policy-acceptance {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.15rem;
  border: 1px solid #343c4b;
  border-radius: 0 0 16px 16px;
  background: #151a23;
  box-shadow: 0 22px 55px rgba(2, 4, 8, 0.28);
}

.policy-agreement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.policy-agreement input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.policy-checkmark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #465064;
  border-radius: 8px;
  background: #0d1118;
  color: transparent;
  transition: 0.18s ease;
}

.policy-agreement input:checked + .policy-checkmark {
  border-color: #7963d4;
  background: #6f58ca;
  color: #fff;
}

.policy-agreement input:focus-visible + .policy-checkmark {
  box-shadow: 0 0 0 3px rgba(118, 87, 232, 0.18);
}

.policy-agreement strong,
.policy-agreement small {
  display: block;
}

.policy-agreement strong {
  color: #d7dce5;
  font-size: 0.78rem;
}

.policy-agreement small {
  margin-top: 0.15rem;
  color: #778194;
  font-size: 0.66rem;
}

.policy-accepted {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(65, 190, 132, 0.25);
  border-radius: 0 0 16px 16px;
  background: rgba(65, 190, 132, 0.07);
}

.policy-accepted > i {
  color: #62cc98;
  font-size: 1.25rem;
}

.policy-accepted div {
  display: grid;
  margin-right: auto;
}

.policy-accepted strong {
  color: #cce8da;
  font-size: 0.76rem;
}

.policy-accepted span {
  color: #789486;
  font-size: 0.65rem;
}

.policy-signout {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

.policy-rich-field .editor-content {
  min-height: 430px;
}

.policy-publish-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid rgba(230, 177, 92, 0.24);
  border-radius: 9px;
  background: rgba(230, 177, 92, 0.06);
  color: #a9936c;
  font-size: 0.68rem;
  line-height: 1.5;
}

.policy-publish-warning > i {
  margin-top: 0.12rem;
  color: #dfa957;
}

.policy-version-list {
  display: grid;
  gap: 0.55rem;
}

.policy-version-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem;
  border: 1px solid #2c3442;
  border-radius: 9px;
  background: #0e1219;
}

.policy-version-list article.is-current {
  border-color: rgba(65, 190, 132, 0.25);
  background: rgba(65, 190, 132, 0.045);
}

.policy-version-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(118, 87, 232, 0.1);
  color: #a28fee;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.policy-version-list article > div {
  display: grid;
  gap: 0.12rem;
}

.policy-version-list strong {
  color: #cbd1db;
  font-size: 0.7rem;
}

.policy-version-list time {
  color: #707a8c;
  font-size: 0.62rem;
}

.policy-version-list form {
  margin: 0;
}

.policy-version-list .policy-version-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.policy-restore-button {
  white-space: nowrap;
}

.policy-delete-button {
  white-space: nowrap;
}

.policy-restore-dialog .workflow-confirm-icon {
  border-color: rgba(230, 177, 92, 0.3);
  background: rgba(230, 177, 92, 0.09);
  color: #dfa957;
}

.policy-restore-dialog .eyebrow {
  color: #d3a65e;
}

@media (max-width: 600px) {
  .policy-gate-hero {
    align-items: flex-start;
    padding: 1rem;
  }

  .policy-document {
    padding: 1.15rem;
  }

  .policy-accepted {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .policy-version-list article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .policy-version-list .policy-version-actions,
  .policy-version-list article > .badge {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

/* Vulnerability report hero */
.report-hero.page-header {
  --report-risk: #8d77e6;
  position: relative;
  align-items: stretch;
  min-height: 150px;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.45rem;
  overflow: hidden;
  border: 1px solid #303847;
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--report-risk) 13%, transparent), transparent 32%),
    linear-gradient(135deg, #141922 0%, #0f131a 72%);
  box-shadow: 0 18px 45px rgba(2, 4, 8, 0.22);
}

.report-hero.page-header::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--report-risk), transparent 75%);
  content: "";
}

.report-hero.report-risk-critical,
.report-hero.report-risk-high {
  --report-risk: #ed667e;
}

.report-hero.report-risk-medium {
  --report-risk: #e6b15c;
}

.report-hero.report-risk-low,
.report-hero.report-risk-none {
  --report-risk: #47c99b;
}

.report-hero-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 1rem;
}

.report-hero-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--report-risk) 32%, transparent);
  border-radius: 15px;
  background: color-mix(in srgb, var(--report-risk) 10%, transparent);
  color: var(--report-risk);
  font-size: 1.35rem;
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--report-risk) 7%, transparent);
}

.report-hero-copy {
  min-width: 0;
}

.report-hero .report-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
  color: #788295;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-hero-eyebrow strong {
  padding: 0.18rem 0.42rem;
  border: 1px solid #323a49;
  border-radius: 5px;
  background: #0c1016;
  color: #aab2c0;
  font-size: 0.64rem;
  letter-spacing: 0.03em;
}

.report-hero.page-header h1 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #e4e8ee;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.report-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.report-hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 31px;
  padding: 0.3rem 0.58rem;
  border: 1px solid #2f3745;
  border-radius: 8px;
  background: rgba(10, 13, 18, 0.72);
  color: #929cad;
  font-size: 0.72rem;
}

.report-hero-meta > span > i {
  color: #7565ba;
}

.report-hero-meta .report-cvss-chip {
  border-color: color-mix(in srgb, var(--report-risk) 28%, transparent);
}

.report-cvss-chip small {
  color: #717b8d;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-cvss-chip strong {
  color: var(--report-risk);
  font-family: var(--mono);
  font-size: 0.86rem;
}

.report-cvss-chip em {
  color: #aeb6c3;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 650;
}

.report-header-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-left: 1rem;
  border-left: 1px solid #2b3340;
}

.report-current-status {
  display: grid;
  justify-items: end;
  gap: 0.32rem;
}

.report-current-status > small {
  color: #697386;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-current-status .badge {
  padding: 0.36rem 0.62rem;
  border-radius: 8px;
  font-size: 0.69rem;
}

.report-current-status .badge i {
  font-size: 0.38rem;
}

.report-history-button {
  min-width: 136px;
  justify-content: center;
}

@media (max-width: 760px) {
  .report-hero.page-header {
    padding: 1.1rem;
  }

  .report-hero-main {
    align-items: flex-start;
  }

  .report-hero-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .report-header-actions {
    width: 100%;
    flex-direction: row;
    align-items: flex-end;
    padding: 0.9rem 0 0;
    border-top: 1px solid #2b3340;
    border-left: 0;
  }

  .report-current-status {
    justify-items: start;
  }
}

@media (max-width: 480px) {
  .report-hero-main {
    display: grid;
  }

  .report-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .report-history-button {
    width: 100%;
  }
}

/* Vulnerability status history modal */
.report-header-actions {
  gap: 0.7rem;
}

.status-history-dialog {
  width: min(620px, calc(100vw - 2rem));
  max-height: min(82vh, 760px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #343c4c;
  border-radius: 14px;
  background: #11151d;
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.status-history-dialog[open] {
  animation: status-dialog-in 0.2s ease-out;
}

.status-history-dialog::backdrop {
  background: rgba(3, 5, 9, 0.76);
  backdrop-filter: blur(5px);
  animation: status-backdrop-in 0.18s ease-out;
}

body.modal-open {
  overflow: hidden;
}

.status-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid #282f3c;
  background:
    radial-gradient(circle at 0 0, rgba(118, 87, 232, 0.12), transparent 15rem),
    #141923;
}

.status-dialog-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-dialog-head .eyebrow {
  margin: 0 0 0.12rem !important;
}

.status-dialog-head h2 {
  margin: 0;
  font-size: 1.08rem;
}

.status-dialog-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(139, 114, 239, 0.27);
  border-radius: 10px;
  background: rgba(118, 87, 232, 0.11);
  color: var(--purple-3);
}

.status-dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid #303746;
  border-radius: 8px;
  background: #181d27;
  color: #8f98a9;
  cursor: pointer;
}

.status-dialog-close:hover {
  border-color: #465064;
  color: var(--text);
}

.status-dialog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid #252c38;
  background: #0f131a;
}

.status-dialog-summary .mono {
  color: #8c95a6;
  font-size: 0.75rem;
}

.status-dialog-body {
  max-height: calc(82vh - 145px);
  padding: 1.2rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #343c4c transparent;
}

.status-modal-timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.status-modal-timeline::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 7px;
  width: 1px;
  background: #313846;
  content: "";
}

.status-modal-item {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 0.85rem;
  padding-bottom: 1.1rem;
}

.status-modal-item:last-child {
  padding-bottom: 0;
}

.status-modal-dot {
  z-index: 1;
  width: 15px;
  height: 15px;
  margin-top: 0.35rem;
  border: 3px solid #11151d;
  border-radius: 50%;
  background: var(--purple-2);
  box-shadow: 0 0 0 1px rgba(139, 114, 239, 0.45);
}

.status-modal-item:first-child .status-modal-dot {
  background: var(--success);
  box-shadow: 0 0 0 1px rgba(64, 200, 154, 0.48), 0 0 16px rgba(64, 200, 154, 0.2);
}

.status-modal-content {
  padding: 0.8rem 0.9rem;
  border: 1px solid #29313e;
  border-radius: 9px;
  background: #0d1118;
}

.status-modal-transition {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #838c9e;
  font-size: 0.79rem;
  text-transform: capitalize;
}

.status-modal-transition i {
  color: #596275;
  font-size: 0.62rem;
}

.status-modal-transition strong {
  color: #dfe3eb;
}

.status-modal-content p {
  margin: 0.5rem 0 0;
  color: #a1a9b8;
  font-size: 0.78rem;
  line-height: 1.55;
}

.status-modal-content time {
  display: block;
  margin-top: 0.55rem;
  color: #626c7e;
  font-size: 0.67rem;
}

.status-modal-content time i {
  margin-right: 0.25rem;
}

.status-history-empty {
  position: relative;
  padding: 2rem;
  color: #788195;
  text-align: center;
}

.status-history-empty i {
  margin-bottom: 0.5rem;
  color: var(--purple-3);
  font-size: 1.25rem;
}

.status-history-empty p {
  margin: 0;
  font-size: 0.8rem;
}

@keyframes status-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes status-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 700px) {
  .report-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .status-history-dialog {
    width: calc(100vw - 1rem);
    max-height: 90vh;
  }

  .status-dialog-body {
    max-height: calc(90vh - 145px);
  }
}

/* App-wide enhanced dropdowns */
select:not(.custom-select-native) {
  appearance: none;
  padding-right: 2.5rem !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #778195 50%),
    linear-gradient(135deg, #778195 50%, transparent 50%) !important;
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50% !important;
  background-repeat: no-repeat !important;
  background-size: 5px 5px, 5px 5px !important;
}

.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.custom-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 42px;
  padding: 0.63rem 0.72rem 0.63rem 0.8rem;
  border: 1px solid #2d3543;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    #0b0f15;
  color: #e4e7ed;
  font: inherit;
  font-size: 0.87rem;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.custom-select-trigger:hover {
  border-color: #424c5e;
  background:
    linear-gradient(180deg, rgba(118, 87, 232, 0.035), transparent),
    #0d1118;
}

.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
  border-color: var(--purple-1);
  outline: none;
  box-shadow: 0 0 0 3px rgba(118, 87, 232, 0.13);
}

.custom-select-trigger.is-placeholder .custom-select-value {
  color: #626c7e;
}

.custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-chevron {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #2e3644;
  border-radius: 6px;
  background: #151a23;
  color: #7f899b;
  font-size: 0.6rem;
  transition: color 0.18s ease, transform 0.2s ease;
}

.custom-select.is-open .custom-select-chevron {
  color: var(--purple-3);
  transform: rotate(180deg);
}

.custom-select.has-error .custom-select-trigger {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 107, 115, 0.1);
}

.custom-select-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.custom-select-menu {
  position: fixed;
  z-index: 3000;
  padding: 0.38rem;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #363f50;
  border-radius: 10px;
  background: rgba(15, 19, 27, 0.98);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.018) inset;
  backdrop-filter: blur(16px);
  scrollbar-width: thin;
  scrollbar-color: #3a4354 transparent;
  animation: custom-select-in 0.15s ease-out;
}

.custom-select-menu[hidden] {
  display: none !important;
}

.custom-select-menu.opens-above {
  transform-origin: bottom center;
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 38px;
  padding: 0.58rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #aab2c1;
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.custom-select-option + .custom-select-option {
  margin-top: 0.12rem;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  border-color: #343d4d;
  outline: none;
  background: #1a202b;
  color: #f0f2f7;
}

.custom-select-option.is-selected {
  border-color: rgba(139, 114, 239, 0.25);
  background: rgba(118, 87, 232, 0.12);
  color: #e6e1ff;
}

.custom-select-option.is-placeholder {
  color: #687285;
}

.custom-select-option > i {
  flex: 0 0 auto;
  color: var(--purple-3);
  font-size: 0.65rem;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.custom-select-option.is-selected > i {
  opacity: 1;
  transform: scale(1);
}

.custom-select-option:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.inline-role-form .custom-select {
  width: 160px;
  min-width: 140px;
}

.inline-role-form .custom-select-trigger {
  min-height: 36px;
  padding-block: 0.45rem;
  font-size: 0.78rem;
}

@keyframes custom-select-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-select-menu,
  .notification-dropdown,
  .logout-confirm-dialog[open],
  .workflow-confirm-dialog[open],
  .action-success-dialog[open],
  .action-success-icon span,
  .submission-confirm-dialog[open],
  .submission-confirm-pulse {
    animation: none;
  }
}

/* Admin session policy */
.reward-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.reward-policy-card {
  --reward-color: #8d77e6;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--reward-color) 24%, #2b3341);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--reward-color) 10%, transparent), transparent 16rem),
    #10151d;
}

.reward-policy-card.reward-critical { --reward-color: #e66778; }
.reward-policy-card.reward-high { --reward-color: #e58d57; }
.reward-policy-card.reward-medium { --reward-color: #dfb158; }
.reward-policy-card.reward-low { --reward-color: #58b989; }

.reward-policy-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.reward-policy-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--reward-color) 30%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--reward-color) 10%, transparent);
  color: var(--reward-color);
}

.reward-policy-card-head > div {
  display: grid;
  gap: 0.15rem;
}

.reward-policy-card-head p,
.reward-policy-card > p {
  margin: 0;
}

.reward-policy-card-head p {
  color: #737e90;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reward-policy-card-head strong {
  color: var(--reward-color);
  font-size: 1.05rem;
}

.reward-policy-card > p {
  min-height: 2.6rem;
  color: #858fa1;
  font-size: 0.73rem;
  line-height: 1.55;
}

.reward-policy-default {
  min-height: 0 !important;
  color: color-mix(in srgb, var(--reward-color) 78%, #d7dde8) !important;
  font-size: 0.68rem !important;
  font-weight: 700;
}

.triage-payment-panel {
  display: grid;
  gap: 1rem;
  border-color: color-mix(in srgb, #58b989 28%, #2b3341);
  background:
    radial-gradient(circle at 0 0, rgba(88, 185, 137, 0.12), transparent 16rem),
    #10151d;
}

.triage-payment-panel.is-sent {
  border-color: color-mix(in srgb, #58b989 18%, #2b3341);
  opacity: 0.92;
}

.triage-payment-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.triage-payment-icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(88, 185, 137, 0.32);
  border-radius: 12px;
  background: rgba(88, 185, 137, 0.1);
  color: #58b989;
}

.triage-payment-head h2,
.triage-payment-head p {
  margin: 0;
}

.triage-payment-head p:not(.eyebrow) {
  margin-top: 0.35rem;
  color: #858fa1;
  font-size: 0.82rem;
  line-height: 1.5;
}

.triage-payment-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.triage-payment-meta > div {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #2b3341;
  border-radius: 10px;
  background: #0d1219;
}

.triage-payment-meta span {
  color: #737e90;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.triage-payment-note {
  margin: 0;
  color: #858fa1;
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .triage-payment-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .reward-policy-grid {
    grid-template-columns: 1fr;
  }
}

.session-policy-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 0 0, rgba(118, 87, 232, 0.1), transparent 23rem),
    var(--bg-1);
}

.session-policy-content {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.session-policy-content h2,
.session-policy-content p {
  margin: 0;
}

.session-policy-content h2 {
  font-size: 1rem;
}

.session-policy-content p:last-child {
  max-width: 38rem;
  margin-top: 0.2rem;
  color: #838c9e;
  font-size: 0.76rem;
}

.session-policy-icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(139, 114, 239, 0.28);
  border-radius: 11px;
  background: rgba(118, 87, 232, 0.11);
  color: var(--purple-3);
}

.session-policy-form {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.session-policy-current {
  padding: 0.52rem 0.7rem;
  border: 1px solid #2b3341;
  border-radius: 8px;
  background: #0d1118;
}

.session-policy-current span,
.session-policy-current strong {
  display: block;
  white-space: nowrap;
}

.session-policy-current span {
  color: #697386;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.session-policy-current strong {
  margin-top: 0.08rem;
  color: #dce1e9;
  font-size: 0.78rem;
}

.session-timeout-input {
  min-width: 145px;
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix input {
  width: 100%;
  padding-right: 3rem;
}

.input-with-suffix > span {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  color: #697386;
  font-size: 0.68rem;
  font-weight: 700;
  pointer-events: none;
  transform: translateY(-50%);
}

@media (max-width: 1050px) {
  .session-policy-panel,
  .session-policy-form {
    align-items: stretch;
    flex-direction: column;
  }

  .session-policy-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(145px, 0.6fr) auto;
    align-items: end;
  }
}

@media (max-width: 650px) {
  .session-policy-form {
    grid-template-columns: 1fr;
  }
}

/* Inactivity timeout warning */
.session-timeout-dialog {
  width: min(470px, calc(100vw - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid #3a4353;
  border-radius: 15px;
  background: #11161e;
  color: var(--text);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.68);
}

.session-timeout-dialog[open] {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  animation: session-warning-in 0.22s ease-out;
}

.session-timeout-dialog::backdrop {
  background: rgba(3, 5, 9, 0.8);
  backdrop-filter: blur(6px);
}

.session-timeout-visual {
  display: grid;
  place-items: center;
  border-right: 1px solid #2b3340;
  background:
    radial-gradient(circle at 50% 42%, rgba(231, 184, 92, 0.16), transparent 4.5rem),
    #0d1118;
}

.session-timeout-visual > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(231, 184, 92, 0.3);
  border-radius: 14px;
  background: rgba(231, 184, 92, 0.1);
  color: var(--warn);
  font-size: 1.18rem;
  box-shadow: 0 0 28px rgba(231, 184, 92, 0.1);
}

.session-timeout-content {
  padding: 1.3rem;
}

.session-timeout-content h2 {
  margin: 0;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
}

.session-timeout-content > p:not(.eyebrow):not(.session-timeout-error) {
  margin: 0.35rem 0 0;
  color: #8d96a7;
  font-size: 0.78rem;
  line-height: 1.55;
}

.session-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #2d3543;
  border-radius: 9px;
  background: #0c1016;
}

.session-countdown span {
  color: #747e90;
  font-size: 0.68rem;
  font-weight: 700;
}

.session-countdown strong {
  color: var(--warn);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.session-timeout-progress {
  height: 4px;
  margin-top: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #282f3b;
}

.session-timeout-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--danger), var(--warn));
  transition: width 0.3s linear;
}

.session-timeout-error {
  margin: 0.65rem 0 0;
  color: var(--danger);
  font-size: 0.7rem;
}

.session-timeout-error[hidden] {
  display: none;
}

.session-timeout-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 0.55rem;
  margin-top: 1rem;
}

.session-timeout-actions .btn {
  justify-content: center;
}

.session-timeout-actions .is-loading i {
  animation: session-renew-spin 0.8s linear infinite;
}

@keyframes session-warning-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes session-renew-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  .session-timeout-dialog[open] {
    grid-template-columns: 1fr;
  }

  .session-timeout-visual {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid #2b3340;
  }
}
