:root {
  --score-hue: 150;
  --score-percent: 0%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0b0f19;
  color: #e2e8f0;
}

/* Score meter bar driven by CSS custom properties */
.score-progress-fill {
  width: var(--score-percent, 0%);
  background-color: hsl(var(--score-hue, 150) 78% 46%);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease;
}

/* Native dialog backdrop and styling */
dialog#edit-draft-dialog::backdrop {
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
}

dialog#edit-draft-dialog {
  border: 1px solid rgba(99, 102, 241, 0.35);
  background-color: #0f172a;
  color: #f8fafc;
  border-radius: 0.875rem;
  max-width: 46rem;
  width: 92vw;
  padding: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
}

pre[tabindex="0"]:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Subtle custom scrollbars for code & log panels */
.custom-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.45);
  border-radius: 3px;
}
