/* ==============================================================
   SENTINEL SECOPS // ENTERPRISE MULTI-PAGE STYLING (AIKIDO STANDARD)
   Pure Engineering Reality • Zero Cartoon Aesthetics • High Velocity UX
   ============================================================== */

:root {
  --bg-base: #080c14;
  --bg-sidebar: #0b111e;
  --bg-panel: #0f172a;
  --bg-panel-hover: #131c33;
  --bg-input: #080d18;
  --bg-code: #0b101b;

  --border-subtle: #172033;
  --border-main: #1e293b;
  --border-focus: #4f46e5;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --accent-indigo: #4f46e5;
  --accent-indigo-hover: #4338ca;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.sentinel-body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==============================================================
   LAYOUT: SIDEBAR + MAIN CONTENT WRAPPER
   ============================================================== */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ==============================================================
   AIKIDO-GRADE LEFT SIDEBAR
   ============================================================== */

.app-sidebar {
  width: 250px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(79, 70, 229, 0.4);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand-workspace {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sidebar-nav {
  flex: 1;
  padding: 1.25rem 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 0.5rem 0.6rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  position: relative;
}

.sidebar-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.sidebar-nav-item.active {
  background-color: rgba(79, 70, 229, 0.15);
  color: #818cf8;
  font-weight: 600;
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background-color: var(--accent-indigo);
}

.nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background-color: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.engine-live-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.user-profile-tile {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #334155;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-handle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
}

.user-role {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* ==============================================================
   APP CONTENT WRAPPER & TOPBAR
   ============================================================== */

.app-content-wrapper {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.app-topbar {
  height: 58px;
  background-color: rgba(11, 17, 30, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-sidebar-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.breadcrumb-root {
  color: var(--text-dim);
  font-weight: 500;
}

.breadcrumb-sep {
  color: var(--text-dim);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-topbar-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-topbar-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: #334155;
}

.direct-engine-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* ==============================================================
   PAGE CONTAINER & VIEWS
   ============================================================== */

.page-container {
  flex: 1;
  padding: 1.75rem;
  max-width: 1380px;
  width: 100%;
}

.page-view {
  animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==============================================================
   EXECUTIVE KPI METRICS GRID
   ============================================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.kpi-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.kpi-grade-badge {
  font-size: 1.6rem;
  font-weight: 800;
  color: #34d399;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.kpi-subtext {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.text-critical { color: #f87171 !important; }
.text-emerald { color: #34d399 !important; }
.text-sky { color: #38bdf8 !important; }

/* ==============================================================
   PANELS & CARD CONTAINERS
   ============================================================== */

.content-panel {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.panel-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==============================================================
   10-VECTOR RADAR GRID
   ============================================================== */

.vectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
}

.vector-chip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.vector-chip:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: #334155;
}

.vector-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.vector-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.badge-passed {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-flagged {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-online {
  background: rgba(79, 70, 229, 0.15);
  color: #818cf8;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.badge-idle {
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.audit-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.audit-empty-state h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.audit-empty-state p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.5;
}

/* ==============================================================
   INTEGRATED SCANNER TERMINAL
   ============================================================== */

.scanner-mode-toggles {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.scanner-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scanner-toggle-btn.active {
  background: var(--bg-panel-hover);
  color: #fff;
}

.scan-input-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.input-with-icon {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.clean-input {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem 0.65rem 2.4rem;
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s ease;
}

.clean-input:focus {
  border-color: var(--border-focus);
}

.btn-execute-scan {
  background-color: var(--accent-indigo);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn-execute-scan:hover {
  background-color: var(--accent-indigo-hover);
}

.samples-pill-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.75rem;
}

.pill-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

.sample-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sample-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: #334155;
}

.clean-textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  color: #c9d1d9;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.45;
  outline: none;
  resize: vertical;
}

.clean-textarea:focus {
  border-color: var(--border-focus);
}

.code-editor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.clean-filename-input {
  background: var(--bg-input);
  border: 1px solid var(--border-main);
  border-radius: 4px;
  padding: 3px 8px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  outline: none;
}

.scan-loading-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  margin-top: 1rem;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: var(--radius-sm);
}

.loading-pulse-ring {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(79, 70, 229, 0.3);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.loading-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==============================================================
   OPENSSF SCORECARD BENCHMARK CARD
   ============================================================== */

.openssf-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.4));
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.openssf-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.openssf-score-badge {
  font-size: 1.2rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.openssf-meta h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.openssf-meta p {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==============================================================
   TRIAGE VIEW: ZEN MODE VS RAW FEED
   ============================================================== */

.triage-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.view-mode-buttons {
  display: flex;
  gap: 4px;
}

.btn-mode-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.btn-mode-toggle.active {
  background: var(--bg-panel-hover);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.count-bubble {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.triage-utility-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-box svg {
  position: absolute;
  left: 10px;
  color: var(--text-dim);
}

.search-input-box input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 10px 5px 30px;
  font-size: 0.78rem;
  color: #fff;
  width: 210px;
  outline: none;
}

.search-input-box input:focus {
  border-color: var(--border-focus);
}

.noise-reduction-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.filter-pills-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  color: #fff;
  border-color: #334155;
}

.filter-pill.active {
  background: rgba(79, 70, 229, 0.15);
  color: #818cf8;
  border-color: rgba(79, 70, 229, 0.4);
  font-weight: 600;
}

/* ==============================================================
   ZEN TRIAGE CARDS (ROOT-CAUSE CLUSTERING)
   ============================================================== */

.zen-triage-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zen-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.15s ease;
}

.zen-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.zen-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.zen-category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.zen-card-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
}

.reachability-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.reachability-reachable {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.reachability-dormant {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.zen-card-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.zen-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 0.4rem;
}

.btn-zen-pr {
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.35);
  color: #818cf8;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-zen-pr:hover {
  background: rgba(79, 70, 229, 0.25);
  color: #fff;
}

/* ==============================================================
   RAW TECHNICAL ISSUES FEED
   ============================================================== */

.issues-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.issue-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.issue-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.issue-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.severity-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}

.severity-critical {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.severity-high {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.severity-medium, .severity-moderate {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.severity-low {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.issue-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.issue-location {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.issue-code-snippet {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #c9d1d9;
  overflow-x: auto;
}

.issue-remediation {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.issue-runbook {
  font-size: 0.76rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
}

.issue-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.25rem;
}

.btn-ai-patch {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-ai-patch:hover {
  background: rgba(16, 185, 129, 0.22);
  color: #fff;
}

.patch-result-box {
  background: #090e17;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: 0.5rem;
}

.patch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 0.5rem;
}

.patch-code {
  background: #05080f;
  padding: 0.65rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #a7f3d0;
  white-space: pre-wrap;
  margin-bottom: 0.5rem;
}

.patch-explanation {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* ==============================================================
   REPOSITORIES & ASSET INVENTORY TABLE
   ============================================================== */

.table-responsive {
  overflow-x: auto;
}

.sentinel-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.sentinel-table th {
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}

.sentinel-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.sentinel-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.repo-cell {
  display: flex;
  flex-direction: column;
}

.repo-cell strong {
  color: #fff;
}

.repo-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.grade-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.grade-a { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.grade-c { background: rgba(234, 179, 8, 0.15); color: #facc15; }

.status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-pill.passed { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.status-pill.warning { background: rgba(249, 115, 22, 0.15); color: #fb923c; }

.table-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.table-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #334155;
}

/* ==============================================================
   COMPLIANCE CHECKLIST
   ============================================================== */

.compliance-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.check-body {
  flex: 1;
}

.check-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
}

.check-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==============================================================
   SETTINGS GRID
   ============================================================== */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.setting-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.setting-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.setting-val {
  font-size: 0.76rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 0.4rem;
}

.setting-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==============================================================
   MODALS: PR GENERATOR & EMAIL ALERTS
   ============================================================== */

.pr-modal, .modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pr-modal-box, .modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.pr-modal-header, .modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-field-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.pr-diff-box {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #c9d1d9;
  white-space: pre-wrap;
  margin-top: 3px;
  max-height: 180px;
  overflow-y: auto;
}

.btn-copy-sm {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-indigo);
  border: none;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-indigo-hover);
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.modal-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.notice-box {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.modal-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ==============================================================
   RESPONSIVE LAYOUT
   ============================================================== */

@media (max-width: 900px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .app-content-wrapper {
    margin-left: 0;
  }

  .mobile-sidebar-toggle {
    display: block;
  }
}

/* ==============================================================
   GITHUB OAUTH & REPO INTEGRATION STYLES
   ============================================================== */
.github-auth-widget {
  display: flex;
  align-items: center;
}

.btn-github-topbar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #21262d;
  color: #f0f6fc;
  border: 1px solid #30363d;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-github-topbar:hover {
  background: #30363d;
  border-color: #8b949e;
  color: #fff;
}

.btn-github-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 20px;
  padding: 3px 10px 3px 4px;
  font-size: 0.76rem;
  color: #c9d1d9;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-github-user:hover {
  border-color: #58a6ff;
  background: #161b22;
}

.btn-github-user img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #58a6ff;
}

.repo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #c9d1d9;
  cursor: pointer;
  transition: all 0.15s ease;
}

.repo-chip:hover {
  background: #161b22;
  border-color: #58a6ff;
  color: #58a6ff;
  transform: translateY(-1px);
}

.repo-chip .chip-lock {
  color: #f59e0b;
}

.repo-chip .chip-globe {
  color: #06b6d4;
}

.repo-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
}

.repo-type-tag.private {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.repo-type-tag.public {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* GitRadar Omega Layout & Responsive Styles */
@media (max-width: 960px) {
  .gitradar-layout-grid {
    grid-template-columns: 1fr !important;
  }
}
