/* SecureCode Modern Minimalist Stylesheet
   Inspirado en ChatGPT / Gemini - Dark/Light Mode Nativo
*/

:root {
  color-scheme: light dark;

  /* Colores base adaptables con light-dark() */
  --bg-primary: light-dark(#f8fafc, #0d0e12);
  --bg-surface: light-dark(#ffffff, #16171d);
  --bg-surface-elevated: light-dark(#f1f5f9, #1e2029);
  --bg-surface-hover: light-dark(#e2e8f0, #272935);
  --border-subtle: light-dark(#e2e8f0, #262833);
  --border-focus: light-dark(#6366f1, #818cf8);

  --text-main: light-dark(#0f172a, #f1f5f9);
  --text-muted: light-dark(#64748b, #94a3b8);
  --text-faint: light-dark(#94a3b8, #64748b);

  /* Acentos y estados triestado */
  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

  --color-pass: #10b981;
  --color-pass-bg: light-dark(rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.15));
  --color-pass-border: light-dark(rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.35));

  --color-fail: #ef4444;
  --color-fail-bg: light-dark(rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.15));
  --color-fail-border: light-dark(rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.35));

  --color-unknown: #f59e0b;
  --color-unknown-bg: light-dark(rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.15));
  --color-unknown-border: light-dark(rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.35));

  --color-error: #64748b;
  --color-error-bg: light-dark(rgba(100, 116, 139, 0.1), rgba(100, 116, 139, 0.15));

  /* Dimensiones */
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 68px;
  --header-height: 60px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Sombras y transiciones */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sincronización con meta name="color-scheme" según Modern Web Guidance */
:root {
  &:has(> head > meta[name="color-scheme"][content="dark"]) {
    color-scheme: dark;
  }
  &:has(> head > meta[name="color-scheme"][content="light"]) {
    color-scheme: light;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* Layout Principal con Sidebar */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar Estilo ChatGPT/Gemini */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease;
  z-index: 50;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-version {
  font-size: 10px;
  background-color: var(--bg-surface-elevated);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  margin-left: 4px;
}

.btn-new-eval {
  margin: 14px 16px 6px;
  padding: 10px 14px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-new-eval:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-focus);
}

.security-notice {
  border: 1px solid var(--color-unknown-border);
  background: var(--color-unknown-bg);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
  padding: 12px;
}

.sidebar-nav {
  padding: 12px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}

/* Los controles restringidos empiezan ocultos. Esta regla prevalece sobre el
   display:flex de .nav-item hasta que la sesión valida el rol administrador. */
.nav-item[hidden] {
  display: none !important;
}

.nav-item:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
}

.nav-item.active {
  background-color: var(--bg-surface-elevated);
  color: var(--accent-primary);
  font-weight: 600;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-section-title {
  padding: 16px 16px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-export {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent-primary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.admin-action-group { display: flex; flex-wrap: wrap; gap: 6px; }

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.history-item:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
}

.history-item.active {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.pass { background-color: var(--color-pass); }
.status-dot.fail { background-color: var(--color-fail); }
.status-dot.unknown { background-color: var(--color-unknown); }
.status-dot.error { background-color: var(--color-error); }

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-surface);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.btn-logout { border: 1px solid var(--border-subtle); background: transparent; color: var(--text-muted); border-radius: var(--radius-sm); padding: 6px 8px; font-size: 11px; font-weight: 650; cursor: pointer; }
.btn-logout:hover { color: var(--color-fail); border-color: var(--color-fail); }
.auth-account-note { margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--text-muted); }

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.top-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-toggle-sidebar {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-toggle-sidebar:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
}

.page-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.system-status-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-pass);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  transition: var(--transition);
}

.btn-theme-toggle:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
}

/* Contenido Principal con Scroll */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.view-panel {
  width: 100%;
  max-width: 900px;
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.view-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Prompt Card / Evaluator Form (Estilo Gemini) */
.evaluator-hero {
  text-align: center;
  margin-bottom: 28px;
}

.evaluator-hero h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.evaluator-hero p {
  color: var(--text-muted);
  font-size: 14px;
}

.eval-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: var(--transition);
}

.eval-card:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.control-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.control-btn {
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.control-btn .control-code {
  font-size: 11px;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.control-btn.active {
  background-color: var(--bg-surface);
  border-color: var(--accent-primary);
  color: var(--text-main);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.input-control {
  padding: 10px 14px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.input-control:focus {
  border-color: var(--border-focus);
  background-color: var(--bg-surface);
}

.chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.chips-label {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 600;
}

.chip-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.btn-primary {
  padding: 10px 24px;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: var(--transition);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Tarjeta de Resultados Triestado (Conforme, No Conforme, Desconocido) */
.result-container {
  display: none;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-container.active {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.result-banner.pass {
  background-color: var(--color-pass-bg);
  border: 1px solid var(--color-pass-border);
  color: var(--color-pass);
}

.result-banner.fail {
  background-color: var(--color-fail-bg);
  border: 1px solid var(--color-fail-border);
  color: var(--color-fail);
}

.result-banner.unknown {
  background-color: var(--color-unknown-bg);
  border: 1px solid var(--color-unknown-border);
  color: var(--color-unknown);
}

.result-banner.error {
  background-color: var(--color-error-bg);
  border: 1px solid var(--color-fail-border);
  color: var(--color-fail);
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.result-banner.pass .banner-icon { background-color: var(--color-pass); color: #fff; }
.result-banner.fail .banner-icon { background-color: var(--color-fail); color: #fff; }
.result-banner.unknown .banner-icon { background-color: var(--color-unknown); color: #fff; }

.banner-title {
  font-size: 15px;
  font-weight: 700;
}

.banner-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-surface);
}

.result-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.action-card {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.action-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.action-text {
  font-size: 13px;
  color: var(--text-main);
}

.crypto-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.crypto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.crypto-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-copy {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.btn-copy:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
}

.crypto-hash-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  padding: 10px 12px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  word-break: break-all;
}

/* Visor JSON Colapsable */
.json-accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.json-summary {
  padding: 10px 14px;
  background-color: var(--bg-surface-elevated);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.json-summary:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-main);
}

.json-body {
  padding: 12px;
  background-color: var(--bg-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: var(--text-muted);
}

/* Paneles de Suscripción, Consumo, Configuración y Admin */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.report-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  margin-bottom: 24px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-context {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.report-context div { display: grid; gap: 4px; }
.report-context strong { color: var(--text-main); }
.report-summary-grid { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.report-disclaimer { color: var(--text-muted); font-size: 13px; margin: 0 0 20px; }
.report-table { margin-bottom: 20px; }
.report-table h3 { padding: 18px 20px 0; font-size: 16px; color: var(--text-main); }

@media (max-width: 760px) {
  .report-hero { align-items: flex-start; flex-direction: column; }
  .report-actions { width: 100%; }
  .report-actions button { flex: 1 1 150px; }
}

@media print {
  #sidebar, .top-header, .report-actions, #btnNewEval, .security-notice { display: none !important; }
  .main-wrapper { margin: 0 !important; width: 100% !important; }
  .view-panel { display: none !important; }
  #view-management-report { display: block !important; }
  body { background: #fff !important; }
}

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stat-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* Tablas Minimalistas */
.data-table-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.data-table-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.data-table-title {
  font-size: 14px;
  font-weight: 600;
}

.admin-helper, .admin-feedback {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 3px;
}

.auth-error-alert {
  padding: 10px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--color-fail-border);
  border-radius: var(--radius-md);
  background: var(--color-fail-bg);
  color: var(--color-fail);
  font-size: 12px;
}

.admin-create-row {
  border-bottom: 1px solid var(--border-subtle);
  padding: 22px 20px;
  background: color-mix(in srgb, var(--bg-primary) 72%, #dff7e7);
}

.admin-account-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border-subtle); }
.admin-account-summary div { padding: 14px 20px; border-right: 1px solid var(--border-subtle); }
.admin-account-summary div:last-child { border-right: 0; }
.admin-account-summary span { display: block; color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.admin-account-summary strong { display: block; margin-top: 4px; color: var(--text-main); font-size: 21px; }
.admin-create-intro { max-width: 660px; margin-bottom: 18px; }
.admin-create-intro h2 { margin: 5px 0 7px; font-size: 18px; }
.admin-create-intro p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.admin-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-user-form .input-control { min-width: 0; }
.password-control { display: flex; gap: 8px; align-items: stretch; }
.password-control .input-control { width: 100%; }
.password-toggle { flex: 0 0 auto; min-width: 67px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-surface); color: var(--text-muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.password-toggle:hover { color: var(--text-main); border-color: var(--border-focus); }
.password-policy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 12px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); color: var(--text-muted); font-size: 11px; }
.password-policy span[data-valid="true"] { color: #08735e; font-weight: 700; }
.password-policy span[data-valid="false"] { color: var(--text-muted); }
.admin-confirmation { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: #9a6700; font-size: 12px; font-weight: 650; }
.admin-confirmation input { accent-color: #b45309; }
.admin-form-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }
.admin-feedback[data-tone="success"] { color: #08735e; font-weight: 650; }
.admin-feedback[data-tone="error"] { color: #b42318; font-weight: 650; }
.modal-card-compact { max-width: 520px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.admin-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 10px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-filter-row .input-control { min-width: 0; }
.repository-scope-panel { padding: 22px 20px; border-top: 1px solid var(--border-subtle); background: var(--bg-primary); }
.repository-scope-panel h2 { margin: 5px 0; font-size: 18px; }
.repository-scope-panel p { margin: 0 0 16px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.repository-authorization-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto; gap: 10px; margin-bottom: 10px; }

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.settings-form { max-width: none; }

.settings-form-heading { margin-bottom: 20px; }
.settings-form-heading p { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; }

.settings-notifications {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.settings-notifications legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.settings-notifications label {
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
}

.settings-notifications input { accent-color: var(--accent-primary); }
.settings-sidebar { display: grid; gap: 12px; }
.settings-sidebar .chip-btn { justify-self: start; }
.settings-feedback { min-height: 20px; font-size: 12px; color: var(--text-muted); }

.subscription-feature-list {
  list-style: none;
  font-size: 12px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subscription-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.subscription-confirmation {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
}

.subscription-confirmation h3 { margin: 0 0 8px; font-size: 15px; }
.subscription-confirmation p { margin: 0 0 14px; color: var(--text-muted); font-size: 13px; }
.subscription-confirmation label { font-size: 13px; color: var(--text-main); cursor: pointer; }
.subscription-confirmation input { accent-color: var(--accent-primary); }
.plan-option small { display: block; margin-top: 6px; font-weight: 500; color: var(--text-muted); }
.plan-option:disabled { opacity: .65; cursor: not-allowed; }
.enterprise-trial-card { margin-top: 24px; padding: 24px; border: 1px solid #97d9bd; border-radius: 20px; background: linear-gradient(135deg, #f1fff6, var(--bg-surface)); box-shadow: var(--shadow-md); }
.enterprise-trial-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 12px; align-items: end; margin-top: 18px; }
.enterprise-trial-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.enterprise-trial-form .finops-toggle { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text-main); }
.enterprise-trial-form .finops-toggle input { accent-color: var(--accent-primary); }
.enterprise-trial-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.enterprise-trial-metrics div { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.enterprise-trial-metrics b { font-size: 18px; color: var(--accent-primary); }
.enterprise-trial-metrics span { font-size: 11px; color: var(--text-muted); }
.enterprise-trial-repositories { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--text-muted); font-size: 12px; }
.enterprise-trial-repositories code { padding: 5px 8px; border-radius: 7px; background: var(--bg-primary); color: var(--accent-primary); }

.btn-inline-danger {
  border: 1px solid var(--color-fail-border);
  background: var(--color-fail-bg);
  color: var(--color-fail);
  border-radius: var(--radius-sm);
  padding: 6px 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.modern-table th {
  padding: 10px 20px;
  background-color: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.modern-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.modern-table tr:last-child td {
  border-bottom: none;
}

.modern-table tr:hover td {
  background-color: var(--bg-surface-elevated);
}

/* Modales y Diálogos Estilo Clean */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .control-selector {
    grid-template-columns: 1fr;
  }

  .admin-filter-row { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .content-area {
    padding: 20px 16px;
  }
  .admin-user-form { grid-template-columns: 1fr; }
  .repository-authorization-form { grid-template-columns: 1fr; }
  .admin-account-summary { grid-template-columns: 1fr; }
  .admin-account-summary div { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .admin-account-summary div:last-child { border-bottom: 0; }
  .admin-form-actions { align-items: stretch; flex-direction: column; }
  .admin-form-actions .btn-primary { justify-content: center; }
}

/* --------------------------------------------------------------------------
   SecureCode product language — editorial trust, original visual system
   -------------------------------------------------------------------------- */
:root {
  --bg-primary: light-dark(#f4f6f2, #071723);
  --bg-surface: light-dark(#fbfcf8, #0d2130);
  --bg-surface-elevated: light-dark(#e9eee7, #123044);
  --bg-surface-hover: light-dark(#dce6de, #173b50);
  --border-subtle: light-dark(#d4dfd4, #21445a);
  --border-focus: #65d998;
  --text-main: light-dark(#102b3b, #edf7f0);
  --text-muted: light-dark(#55707b, #a6bec5);
  --text-faint: light-dark(#7d9295, #718c97);
  --accent-primary: #0f766e;
  --accent-primary-hover: #0a5e58;
  --accent-gradient: linear-gradient(135deg, #0d766e 0%, #1b9a83 55%, #75dd9c 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(9, 39, 52, .04);
  --shadow-md: 0 16px 30px rgba(9, 39, 52, .07);
  --shadow-lg: 0 28px 70px rgba(9, 39, 52, .14);
}

body {
  background:
    radial-gradient(circle at 68% -18%, rgba(101, 217, 152, .22), transparent 34rem),
    radial-gradient(circle at 100% 60%, rgba(255, 138, 91, .10), transparent 31rem),
    var(--bg-primary);
  letter-spacing: -.01em;
}

.sidebar {
  background: color-mix(in srgb, var(--bg-surface) 93%, transparent);
  border-right-color: color-mix(in srgb, var(--border-subtle) 85%, transparent);
  backdrop-filter: blur(18px);
}

.sidebar-header { padding: 22px 20px 18px; border-bottom: 0; }
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #112f3d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 8px 20px rgba(10, 62, 69, .24);
}
.brand-icon[src] { display: block; object-fit: contain; background: transparent; box-shadow: 0 8px 20px rgba(10, 62, 69, .24); }
.brand-title { font-size: 17px; letter-spacing: -.05em; }
.brand-version { border: 0; background: #dff7e7; color: #0c6b50; font-weight: 700; }

.btn-new-eval {
  margin: 8px 16px 14px;
  border: 0;
  color: #fff;
  background: #112f3d;
  box-shadow: 0 10px 22px rgba(10, 47, 61, .15);
}
.btn-new-eval:hover { color: #fff; background: #174354; transform: translateY(-1px); }
.sidebar-nav { padding-top: 4px; gap: 6px; }
.nav-item { border-radius: 12px; padding: 10px 12px; }
.nav-item.active { background: #dff7e7; color: #075e50; }
.sidebar-section-title { margin-top: 8px; }

.top-header {
  height: 76px;
  padding: 0 34px;
  border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 82%, transparent);
  background: color-mix(in srgb, var(--bg-primary) 78%, transparent);
  backdrop-filter: blur(14px);
}
.page-title-badge { font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.system-status-indicator { border: 1px solid #c4ead2; background: #effbf3; color: #0b6a49; padding: 7px 11px; border-radius: 999px; }
.btn-theme-toggle { border-radius: 999px; }

.content-area { max-width: 1320px; width: 100%; margin: 0 auto; padding: 54px 52px 72px; }
.evaluator-hero { max-width: 800px; margin-bottom: 34px; }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #08735e;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #65d998; box-shadow: 0 0 0 4px rgba(101,217,152,.18); }
.evaluator-hero h1 {
  max-width: 760px;
  margin: 15px 0 16px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: .99;
  letter-spacing: -.065em;
  font-weight: 760;
}
.evaluator-hero h1 em { color: #0d8674; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; }
.evaluator-hero p { max-width: 650px; font-size: 17px; line-height: 1.55; color: var(--text-muted); }
.hero-signals { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 23px; color: var(--text-muted); font-size: 12px; }
.hero-signals span { display: inline-flex; align-items: center; gap: 5px; }
.hero-signals b { color: var(--text-main); font-size: 12px; letter-spacing: .01em; }
.hero-signals i { width: 7px; height: 7px; border-radius: 50%; background: #39be75; box-shadow: 0 0 0 4px rgba(57,190,117,.14); }

.eval-card, .stat-card, .data-table-wrapper {
  border-color: color-mix(in srgb, var(--border-subtle) 88%, transparent);
  box-shadow: var(--shadow-md);
}
.eval-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: color-mix(in srgb, var(--bg-surface) 96%, #ffffff);
}
.eval-card::after { content: ''; position: absolute; width: 300px; height: 300px; right: -170px; top: -210px; border-radius: 50%; background: rgba(101,217,152,.16); pointer-events: none; }
.eval-card-intro { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; margin-bottom: 22px; }
.eval-card-intro p { color: var(--text-muted); font-size: 13px; max-width: 390px; }
.control-selector { position: relative; z-index: 1; gap: 12px; }
.control-selector { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.control-btn { border-radius: 14px; border-width: 1px; padding: 17px; background: var(--bg-primary); }
.control-btn.active { border-color: #0f766e; background: #e8f8ec; box-shadow: inset 0 0 0 1px rgba(101,217,152,.32); }
.control-code { color: #08735e; }
.control-description { font-size: 11px; font-weight: 500; color: var(--text-faint); line-height: 1.4; }
.control-help { position: relative; z-index: 1; margin: -7px 0 20px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.input-control { border-radius: 12px; background: color-mix(in srgb, var(--bg-surface) 80%, transparent); min-height: 46px; }
.input-control:focus { border-color: #0d8674; box-shadow: 0 0 0 4px rgba(101,217,152,.19); }
.input-help { display: block; margin-top: 7px; color: var(--text-faint); font-size: 11px; line-height: 1.35; }
.input-help code { color: #08735e; font-size: inherit; }
.input-help[data-tone="success"] { color: #08735e; font-weight: 650; }
.input-help[data-tone="error"] { color: #b42318; font-weight: 650; }
.chips-row { margin-top: 18px; }
.chip-btn { border-radius: 999px; }
.btn-primary { border-radius: 12px; padding: 12px 18px; background: #112f3d; box-shadow: 0 10px 20px rgba(10,47,61,.16); }
.btn-primary:hover { background: #174354; transform: translateY(-1px); }
.card-actions { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.form-feedback { min-height: 18px; margin: 5px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.35; }
.form-feedback[data-tone="success"] { color: #08735e; }
.form-feedback[data-tone="error"] { color: #b42318; font-weight: 650; }
.crypto-actions { display: flex; gap: 8px; align-items: center; }

.stat-card { border-radius: 20px; padding: 22px; }
.finops-highlight { background: linear-gradient(135deg, #effbf3, var(--bg-surface)); }
.finops-note { margin-top: 12px; font-size: 11px; color: var(--text-faint); }
.finops-control-card, .plan-selector-card { margin-top: 24px; padding: 24px; border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--bg-surface); box-shadow: var(--shadow-md); }
.finops-control-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: end; }
.finops-control-card h2, .plan-selector-card h2 { margin: 6px 0; font-size: 20px; }
.finops-control-card p, .plan-selector-card p { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.finops-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-items: center; }
.finops-form label { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.finops-form .btn-primary { grid-column: span 2; margin-top: 5px; }
.finops-toggle { grid-column: span 2; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.finops-toggle input { accent-color: var(--accent-primary); }
.finops-feedback { grid-column: 1 / -1; color: #08735e; font-size: 12px; }
.plan-selector-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.plan-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.plan-option { display: flex; flex-direction: column; gap: 5px; padding: 14px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-primary); color: var(--text-main); cursor: pointer; text-align: left; }
.plan-option span { color: var(--text-muted); font-size: 11px; }
.plan-option.active { border-color: #0d8674; background: #e8f8ec; box-shadow: inset 0 0 0 1px rgba(101,217,152,.32); }
.plan-details { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--bg-primary); font-size: 12px; }
.plan-details div { display: flex; flex-direction: column; gap: 5px; }
.plan-details ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; color: var(--text-muted); }
.budget-warning { background: #fff3cd !important; color: #9a6700 !important; }
.data-table-wrapper { border-radius: 20px; }
.result-banner { border-radius: 18px; }

.verification-breakdown {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-primary) 74%, #dff7e7);
}
.verification-breakdown-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.verification-breakdown h2 { margin: 5px 0 0; font-size: 16px; letter-spacing: -.02em; }
.verification-source { max-width: 300px; color: var(--text-muted); font-size: 11px; line-height: 1.45; text-align: right; }
.verification-summary { margin: 14px 0; color: var(--text-muted); font-size: 13px; }
.verification-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.verification-check { display: flex; gap: 10px; padding: 13px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); }
.verification-check-icon { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; color: #0b6a49; background: #dff7e7; font-size: 12px; font-weight: 800; }
.verification-check.fail .verification-check-icon { color: #b42318; background: #fee4e2; }
.verification-check.unknown .verification-check-icon { color: #9a6700; background: #fff3cd; }
.verification-check-label, .verification-check-detail { display: block; }
.verification-check-label { font-size: 12px; font-weight: 750; color: var(--text-main); }
.verification-check-detail { margin-top: 4px; color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.json-placeholder { color: var(--text-faint); font-style: italic; }

.explanation-panel {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-surface) 92%, #dff7e7);
}
.explanation-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.explanation-heading h2 { margin: 5px 0 0; font-size: 16px; letter-spacing: -.02em; }
.explanation-status { padding: 5px 10px; border-radius: 999px; background: #e8f8ec; color: #0b6a49; font-size: 11px; font-weight: 800; }
.explanation-summary { margin: 14px 0; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.explanation-conditions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.explanation-condition { display: flex; gap: 10px; padding: 13px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); }
.explanation-condition-status { display: grid; place-items: center; flex: 0 0 auto; min-width: 56px; height: 24px; padding: 0 7px; border-radius: 999px; background: #dff7e7; color: #0b6a49; font-size: 10px; font-weight: 800; }
.explanation-condition.fail .explanation-condition-status { background: #fee4e2; color: #b42318; }
.explanation-condition.unknown .explanation-condition-status { background: #fff3cd; color: #9a6700; }
.explanation-condition strong { font-size: 12px; }
.explanation-condition p { margin: 4px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.explanation-condition-values { color: var(--text-faint) !important; }
.explanation-empty { margin: 0; color: var(--text-muted); font-size: 12px; }
.explanation-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.explanation-meta > div { display: grid; gap: 5px; padding: 12px; border-radius: 10px; background: var(--bg-primary); }
.explanation-meta code { overflow-wrap: anywhere; color: #08735e; font-size: 11px; }
.explanation-recommendations { margin-top: 14px; padding: 12px 12px 12px 28px; border-radius: 10px; background: var(--bg-primary); }
.explanation-recommendations li { margin: 5px 0; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.result-footer-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

@media (max-width: 768px) {
  .verification-breakdown-heading { display: block; }
  .verification-source { max-width: none; margin-top: 10px; text-align: left; }
  .verification-checks { grid-template-columns: 1fr; }
  .explanation-heading { display: block; }
  .explanation-status { display: inline-block; margin-top: 10px; }
  .explanation-conditions, .explanation-meta { grid-template-columns: 1fr; }
  .result-footer-actions { justify-content: stretch; }
  .result-footer-actions .chip-btn { flex: 1; }
}

@media (max-width: 768px) {
  .top-header { height: 64px; padding: 0 16px; }
  .content-area { padding: 35px 18px 54px; }
  .evaluator-hero h1 { font-size: 42px; }
  .eval-card { padding: 20px; }
  .eval-card-intro { display: block; }
  .eval-card-intro p { margin-top: 8px; }
  .finops-control-card { grid-template-columns: 1fr; }
  .plan-selector-heading, .plan-details { display: block; }
  .plan-options { grid-template-columns: repeat(2, 1fr); }
  .plan-details ul { margin-top: 12px; }
  .enterprise-trial-form { grid-template-columns: 1fr; }
  .enterprise-trial-metrics { grid-template-columns: 1fr; }
}
