.auditor-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 10px 60px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .auditor-wrapper {
    padding: 24px 20px 80px;
  }
}
.auditor-hero {
  text-align: center;
  margin-bottom: 14px;
  position: relative;
}
.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
@media (max-width: 640px) {
  .hero-top-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-quick-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .hero-quick-tools .btn-hero-action {
    justify-content: center;
    width: 100%;
  }
}
.hero-quick-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-hero-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  transition: all 0.2s ease;
  touch-action: manipulation;
}
.btn-hero-action:hover, .btn-hero-action:active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  border-color: var(--color-border-accent);
}
.badge-count {
  background: var(--color-accent);
  color: #061510;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}
.auditor-hero h1 {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 800;
  margin: 4px 0 6px;
  line-height: 1.25;
  word-break: break-word;
}
.auditor-hero p {
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.88rem;
  line-height: 1.5;
}
.auditor-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .auditor-controls {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
}
.control-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.control-field-btn {
  display: flex;
  align-items: flex-end;
}
.control-field-btn .btn-vault {
  width: 100%;
  justify-content: center;
  height: 40px;
}
.control-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.select-cyber {
  width: 100%;
  background-color: #080c14;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2310b981%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 8px 30px 8px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  transition: all 0.2s ease;
}
.select-cyber:hover, .select-cyber:focus {
  border-color: var(--color-border-accent);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
  background-color: #0a0f1d;
}
.btn-vault {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-border-accent);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  transition: all 0.2s ease;
  touch-action: manipulation;
}
.btn-vault:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(-1px);
}
.key-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 6px #f87171;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.key-status-dot.active {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}
.telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
@media (max-width: 640px) {
  .telemetry-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
  }
}
.telemetry-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.telemetry-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
}
.telemetry-val {
  color: var(--color-text);
  font-weight: 700;
}
.telemetry-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}
.mobile-workspace-tabs {
  display: none;
  gap: 0;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
@media (max-width: 1024px) {
  .mobile-workspace-tabs {
    display: flex;
  }
}
.mobile-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 10px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  touch-action: manipulation;
}
.mobile-tab-btn.active {
  color: var(--color-accent);
  background: rgba(16, 185, 129, 0.08);
}
.mobile-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px 3px 0 0;
}
.mobile-tab-btn + .mobile-tab-btn {
  border-left: 1px solid var(--color-border);
}
.mobile-report-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulse-dot 1.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.auditor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1024px) {
  .auditor-grid {
    grid-template-columns: 1fr;
  }
  .auditor-grid.show-editor-only > .report-panel {
    display: none;
  }
  .auditor-grid.show-report-only > .editor-panel {
    display: none;
  }
}
.editor-panel {
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.6);
  position: relative;
}
@media (min-width: 1025px) {
  .editor-panel {
    position: sticky;
    top: 75px;
    z-index: 10;
  }
}
.report-panel {
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: visible;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.6);
  position: relative;
}
@media (max-width: 1024px) {
  .report-panel {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  gap: 8px;
  flex-wrap: wrap;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text);
  flex-wrap: wrap;
}
.auto-detect-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.btn-icon-action {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.btn-icon-action:hover {
  color: var(--color-text);
  border-color: var(--color-border-accent);
  background: rgba(255, 255, 255, 0.05);
}
.btn-audit {
  background: var(--color-accent);
  color: #061510;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.82rem;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px var(--color-accent-glow);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-audit:hover {
  background: #34d399;
  transform: translateY(-1px);
}
.secret-alert-banner {
  display: none;
  background: rgba(239, 68, 68, 0.12);
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: #fca5a5;
  flex-wrap: wrap;
}
.secret-alert-banner.active {
  display: flex;
}
.btn-sanitize {
  background: #ef4444;
  color: #fff;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.code-editor-container {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  background: #080c14;
}
@media (max-width: 768px) {
  .code-editor-container {
    min-height: 300px;
  }
}
.drop-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(6, 182, 212, 0.25);
  backdrop-filter: blur(4px);
  border: 2px dashed var(--color-cyan);
  z-index: 100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  pointer-events: none;
}
.drop-overlay.active {
  display: flex;
}
.codemirror-mount {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.CodeMirror {
  flex: 1;
  height: 100% !important;
  min-height: 440px;
  background: #080c14 !important;
  color: #e2e8f0 !important;
  font-family: var(--font-mono) !important;
  font-size: 0.85rem !important;
  line-height: 1.55 !important;
}
@media (max-width: 768px) {
  .CodeMirror {
    min-height: 300px !important;
    font-size: 0.8rem !important;
  }
}
.CodeMirror-gutters {
  background: #060911 !important;
  border-right: 1px solid var(--color-border) !important;
  width: 52px;
}
.CodeMirror-linenumber {
  color: var(--color-text-dim) !important;
  padding: 0 6px 0 2px !important;
}
.CodeMirror-activeline-background {
  background: rgba(255, 255, 255, 0.03) !important;
}
.CodeMirror-cursor {
  border-left: 2px solid var(--color-accent) !important;
}
.CodeMirror-selected {
  background: rgba(16, 185, 129, 0.2) !important;
}
.cm-vuln-line-critical {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.24) 0%, rgba(239, 68, 68, 0.08) 100%) !important;
  border-left: 3px solid #ef4444;
}
.cm-vuln-line-high {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.22) 0%, rgba(249, 115, 22, 0.06) 100%) !important;
  border-left: 3px solid #f97316;
}
.cm-vuln-line-medium {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.2) 0%, rgba(234, 179, 8, 0.05) 100%) !important;
  border-left: 3px solid #eab308;
}
.cm-vuln-line-pulse {
  animation: linePulse 1.2s ease-in-out;
}
@keyframes linePulse {
  0% { box-shadow: inset 0 0 15px rgba(239, 68, 68, 0.8); }
  100% { box-shadow: none; }
}
.cm-gutter-marker-vuln {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 0.75rem;
  padding-left: 3px;
}
.cm-gutter-marker-vuln.high { color: #f97316; }
.cm-gutter-marker-vuln.medium { color: #eab308; }
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  gap: 8px;
  flex-wrap: wrap;
}
.editor-stats {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 10px;
}
.dlp-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-accent);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.report-panel-header {
  padding: 6px 10px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0d1322;
}
.panel-title-with-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.panel-title-with-tabs::-webkit-scrollbar {
  display: none;
}
.report-view-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 3px;
  overflow-x: auto;
  white-space: nowrap;
}
.report-tab-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.report-tab-btn.active {
  background: var(--color-accent);
  color: #061510;
  box-shadow: 0 2px 8px var(--color-accent-glow);
}
.report-tab-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.export-dropdown-wrapper {
  position: relative;
}
.btn-export-trigger {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.export-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
  z-index: 1000;
  min-width: 250px;
  max-width: 90vw;
  padding: 6px;
}
.export-dropdown-menu.active {
  display: block;
}
.export-item {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  transition: background 0.15s ease;
}
.export-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.export-item-title {
  font-weight: 600;
  font-size: 0.82rem;
}
.export-item-desc {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}
.report-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .report-content {
    padding: 12px;
  }
}
.report-content pre,
.report-content code {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.report-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.report-content .stream-output {
  overflow-wrap: break-word;
  word-break: break-word;
  overflow-x: hidden;
}
.report-content .stream-output pre {
  white-space: pre-wrap;
  word-break: break-all;
}
.report-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  color: var(--color-text-muted);
  padding: 24px 12px;
}
.report-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--color-border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.diff-view-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #080c14;
}
.diff-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 6px;
}
.diff-stat-chips {
  display: flex;
  gap: 6px;
}
.diff-stat-del {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  padding: 2px 5px;
  border-radius: 4px;
}
.diff-stat-add {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 5px;
  border-radius: 4px;
}
.diff-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
}
@media (max-width: 860px) {
  .diff-split-container {
    grid-template-columns: 1fr;
  }
  .diff-pane-left {
    border-right: none !important;
    border-bottom: 2px solid var(--color-border);
  }
}
.diff-pane {
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.diff-pane-left {
  border-right: 1px solid var(--color-border);
  background: rgba(239, 68, 68, 0.02);
}
.diff-pane-right {
  background: rgba(16, 185, 129, 0.02);
}
.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.45;
}
.diff-row {
  display: flex;
  width: 100%;
  min-height: 20px;
}
.diff-gutter-num {
  width: 34px;
  padding: 0 4px;
  text-align: right;
  color: var(--color-text-dim);
  user-select: none;
  background: #060911;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  font-size: 0.72rem;
}
.diff-code-cell {
  flex: 1;
  padding: 0 6px;
  white-space: pre-wrap;
  word-break: break-all;
  color: #e2e8f0;
}
@media (max-width: 640px) {
  .score-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .score-badge-circle {
    align-self: flex-start;
  }
  .modal-container {
    width: 95vw;
    max-height: 90vh;
    padding: 16px 14px;
  }
  .modal-actions {
    flex-direction: column-reverse;
    width: 100%;
  }
  .modal-actions button {
    width: 100%;
    justify-content: center;
  }
  .history-drawer-panel {
    width: 100vw;
  }
}
.history-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: flex-end;
}
.history-drawer-backdrop.active {
  display: flex;
}
.history-drawer-panel {
  width: 420px;
  max-width: 100vw;
  height: 100%;
  background: var(--color-paper-elevated);
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  animation: slideInRight 0.22s ease-out;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.diff-row.deleted {
  background: rgba(239, 68, 68, 0.18);
}
.diff-row.deleted .diff-gutter-num {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.diff-row.deleted .diff-code-cell {
  color: #fca5a5;
}
.diff-row.added {
  background: rgba(16, 185, 129, 0.18);
}
.diff-row.added .diff-gutter-num {
  background: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}
.diff-row.added .diff-code-cell {
  color: #a7f3d0;
}
.diff-char-del {
  background: rgba(239, 68, 68, 0.45);
  color: #fff;
  border-radius: 2px;
  font-weight: 700;
}
.diff-char-add {
  background: rgba(16, 185, 129, 0.45);
  color: #fff;
  border-radius: 2px;
  font-weight: 700;
}
.unified-diff-view {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.patched-code-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #080c14;
}
.patched-code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.patched-code-pre {
  margin: 0;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #a7f3d0;
  overflow-x: auto;
  white-space: pre;
  flex: 1;
}
.score-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.score-badge-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  border: 3px solid #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  flex-shrink: 0;
}
.score-badge-circle.high-risk {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}
.score-badge-circle.medium-risk {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}
.sev-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 4px;
}
.sev-chip.critical { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.sev-chip.high { background: rgba(249, 115, 22, 0.2); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.4); }
.sev-chip.medium { background: rgba(234, 179, 8, 0.2); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.4); }
.sev-chip.low { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.sev-chip.info { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.finding-type-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.finding-type-chip.chip-security { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.finding-type-chip.chip-bug { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.finding-type-chip.chip-logic { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.35); }
.reasoning-box {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
}
.reasoning-header {
  padding: 6px 12px;
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.reasoning-body {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ddd6fe;
  line-height: 1.45;
  white-space: pre-wrap;
}
.interactive-finding-card {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.interactive-finding-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-accent);
}
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.modal-backdrop.active {
  display: flex;
}
.modal-card {
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .modal-card {
    padding: 16px;
    border-radius: var(--radius-md);
  }
}
.modal-card-lg {
  max-width: 720px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.modal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.modal-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}
.modal-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-cyan);
  margin-top: 2px;
}
.modal-close {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}
.modal-desc {
  color: var(--color-text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0 0 12px;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.input-cyber {
  width: 100%;
  background: #080c14;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  box-sizing: border-box;
  min-height: 38px;
  transition: all 0.2s ease;
}
.input-cyber:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow);
}
.key-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.btn-toggle-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 6px;
}
.session-only-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  cursor: pointer;
}
.session-only-label input[type="checkbox"] {
  accent-color: var(--color-accent);
}
.cicd-tab-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
}
.cicd-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.cicd-tab.active {
  background: rgba(96, 165, 250, 0.15);
  border-color: #60a5fa;
  color: #60a5fa;
  font-weight: 700;
}
.cicd-code-box {
  background: #080c14;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  max-height: 260px;
  overflow: auto;
}
.cicd-code-pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #93c5fd;
  white-space: pre;
}
.history-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: flex-end;
}
.history-drawer-backdrop.active {
  display: flex;
}
.history-drawer-panel {
  width: 420px;
  max-width: 100vw;
  height: 100%;
  background: var(--color-paper-elevated);
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  animation: slideInRight 0.22s ease-out;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.history-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}
.history-drawer-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.history-drawer-toolbar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.history-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.history-card:hover {
  border-color: var(--color-border-accent);
}
.history-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.history-card-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text);
}
.history-card-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
}
.history-card-meta {
  display: flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin: 4px 0;
  flex-wrap: wrap;
}
.history-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}
.dlp-findings-box {
  background: #080c14;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px;
  max-height: 160px;
  overflow: auto;
  margin-bottom: 12px;
}
.dlp-finding-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.cloud-sync-card {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 10px;
}
.cyber-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: calc(100vw - 32px);
  pointer-events: none;
}
@media (max-width: 640px) {
  .cyber-toast-container {
    top: 14px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}
.cyber-toast {
  pointer-events: auto;
  background: #0b111e;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 0 15px rgba(0, 0, 0, 0.5);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--color-text);
  line-height: 1.4;
  backdrop-filter: blur(10px);
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.cyber-toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.cyber-toast.info {
  border-color: rgba(6, 182, 212, 0.4);
}
.cyber-toast.info::before { background: var(--color-cyan); }
.cyber-toast.info .toast-icon { color: var(--color-cyan); }
.cyber-toast.success {
  border-color: rgba(16, 185, 129, 0.4);
}
.cyber-toast.success::before { background: var(--color-accent); }
.cyber-toast.success .toast-icon { color: var(--color-accent); }
.cyber-toast.warning {
  border-color: rgba(245, 158, 11, 0.4);
}
.cyber-toast.warning::before { background: #f59e0b; }
.cyber-toast.warning .toast-icon { color: #f59e0b; }
.cyber-toast.error {
  border-color: rgba(239, 68, 68, 0.4);
}
.cyber-toast.error::before { background: #ef4444; }
.cyber-toast.error .toast-icon { color: #ef4444; }
.toast-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}
.toast-body {
  flex: 1;
  word-break: break-word;
}
.toast-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.toast-close-btn:hover {
  color: #fff;
}
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.cyber-toast.fade-out {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
}
.skeleton-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  animation: fadeIn 0.3s ease;
}
.skeleton-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px dashed rgba(6, 182, 212, 0.35);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.skeleton-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 12px var(--color-cyan);
  animation: pulseDot 1.2s infinite ease-in-out;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}
.skeleton-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: shimmerWave 1.5s infinite linear;
  border-radius: 4px;
}
@keyframes shimmerWave {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-line {
  height: 12px;
  width: 100%;
}
.skeleton-line.title {
  height: 18px;
  width: 60%;
}
.skeleton-line.subtitle {
  height: 14px;
  width: 40%;
}
.skeleton-line.short {
  width: 25%;
}
.skeleton-line.medium {
  width: 50%;
}
.skeleton-line.code {
  height: 14px;
  font-family: var(--font-mono);
}
.skeleton-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
}
.skeleton-code-box {
  background: #080c14;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media print {
  body {
    background: #fff !important;
    color: #0f172a !important;
  }
  #header,
  .auditor-hero .hero-top-row,
  .auditor-controls,
  .telemetry-bar,
  .editor-panel,
  .panel-actions,
  .report-view-tabs,
  .modal-backdrop,
  .history-drawer-backdrop,
  #footer {
    display: none !important;
  }
  .auditor-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .auditor-grid {
    display: block !important;
  }
  .report-panel {
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  .score-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
  }
  .score-badge-circle {
    background: #ecfdf5 !important;
    color: #047857 !important;
  }
  .patch-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
  }
  .patch-code {
    color: #0f172a !important;
    background: #f1f5f9 !important;
  }
}
