* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #020617;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.flex-1 {
  flex: 1 1 0%;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  inset: 0;
}

.top-4 {
  top: 1rem;
}

.right-4 {
  right: 1rem;
}

.right-6 {
  right: 1.5rem;
}

.bottom-6 {
  bottom: 1.5rem;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.h-screen {
  height: 100vh;
}

.h-full {
  height: 100%;
}

.h-1\.5 {
  height: 0.375rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-8 {
  height: 2rem;
}

.h-16 {
  height: 4rem;
}

.w-full {
  width: 100%;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-8 {
  width: 2rem;
}

.w-16 {
  width: 4rem;
}

.min-w-full {
  min-width: 100%;
}

.min-h-full {
  min-height: 100%;
}

.max-w-md {
  max-width: 28rem;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.p-0\.5 {
  padding: 0.125rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-0\.5 {
  margin-top: 0.125rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border: 1px solid currentColor;
}

.border-2 {
  border-width: 2px;
}

.border-b {
  border-bottom: 1px solid currentColor;
}

.border-r {
  border-right: 1px solid currentColor;
}

.border-t {
  border-top: 1px solid currentColor;
}

.border-slate-600 {
  border-color: #475569;
}

.border-slate-700 {
  border-color: #334155;
}

.border-slate-800 {
  border-color: #1e293b;
}

.border-amber-700 {
  border-color: #b45309;
}

.border-red-800 {
  border-color: #991b1b;
}

.border-blue-500 {
  border-color: #3b82f6;
}

.border-transparent {
  border-color: transparent;
}

.bg-slate-950 {
  background-color: #020617;
}

.bg-slate-900 {
  background-color: #0f172a;
}

.bg-slate-900\/40 {
  background-color: rgba(15, 23, 42, 0.4);
}

.bg-slate-950\/95 {
  background-color: rgba(2, 6, 23, 0.95);
}

.bg-slate-800 {
  background-color: #1e293b;
}

.bg-blue-950 {
  background-color: #172554;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.bg-red-950\/60 {
  background-color: rgba(69, 10, 10, 0.6);
}

.bg-amber-950\/50 {
  background-color: rgba(69, 26, 3, 0.5);
}

.text-white {
  color: #fff;
}

.text-slate-100 {
  color: #f1f5f9;
}

.text-slate-200 {
  color: #e2e8f0;
}

.text-slate-300 {
  color: #cbd5e1;
}

.text-slate-500 {
  color: #64748b;
}

.text-slate-600 {
  color: #475569;
}

.text-blue-300 {
  color: #93c5fd;
}

.text-emerald-300 {
  color: #6ee7b7;
}

.text-amber-100 {
  color: #fef3c7;
}

.text-amber-300 {
  color: #fcd34d;
}

.text-purple-300 {
  color: #d8b4fe;
}

.text-red-200 {
  color: #fecaca;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-\[10px\] {
  font-size: 10px;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.shadow-sm {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.32);
}

.shadow-lg {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.28), 0 4px 6px rgba(0, 0, 0, 0.18);
}

.transition-colors {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.transition-transform {
  transition: transform 0.15s ease;
}

.transition-all {
  transition: all 0.3s ease;
}

.duration-300 {
  transition-duration: 0.3s;
}

.origin-center {
  transform-origin: center;
}

.resize-none {
  resize: none;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.opacity-50 {
  opacity: 0.5;
}

.truncate {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.placeholder\:text-slate-500::placeholder {
  color: #64748b;
}

.hover\:bg-blue-500:hover {
  background-color: #3b82f6;
}

.hover\:bg-slate-700:hover {
  background-color: #334155;
}

.hover\:bg-slate-800:hover {
  background-color: #1e293b;
}

.hover\:bg-slate-900:hover {
  background-color: #0f172a;
}

.hover\:border-slate-700:hover {
  border-color: #334155;
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px #3b82f6;
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.dropzone {
  border: 2px dashed #475569;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dropzone.dragover {
  border-color: #60a5fa;
  background-color: #0f172a;
}

.spinner {
  border: 4px solid rgba(148, 163, 184, 0.22);
  border-left-color: #3b82f6;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.pan-zoom-container {
  overflow: auto;
  cursor: grab;
}

.pan-zoom-container:active,
.cursor-grabbing {
  cursor: grabbing;
}

#mermaid-container svg {
  max-width: 100%;
  height: auto;
}

.fa-solid {
  display: inline-flex;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.fa-diagram-project::before {
  content: "\25A6";
}

.fa-download::before {
  content: "\2193";
}

.fa-cloud-arrow-up::before {
  content: "\21E7";
}

.fa-circle-exclamation::before {
  content: "!";
}

.fa-sitemap::before {
  content: "\25A7";
}

.fa-plus::before {
  content: "+";
}

.fa-expand::before {
  content: "\2922";
}

.fa-minus::before {
  content: "-";
}

.fa-code::before {
  content: "</>";
  font-size: 0.78em;
}

.fa-xmark::before {
  content: "x";
}

.fa-file::before {
  content: "\25A1";
}

.fa-folder-open::before {
  content: "\25F0";
}

.fa-floppy-disk::before {
  content: "\25A3";
}

.fa-c::before {
  content: "C";
}

.fa-i::before {
  content: "I";
}

.fa-e::before {
  content: "E";
}

.fa-a::before {
  content: "A";
}

@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }

  .md\:w-1\/3 {
    width: 33.333333%;
  }

  .md\:w-1\/4 {
    width: 25%;
  }
}

@media (min-width: 1024px) {
  .lg\:w-1\/4 {
    width: 25%;
  }
}
