:root {
  color-scheme: dark;
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #0f172a;
}

.nav-btn {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5f5;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: left;
}

.nav-btn:hover {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.6);
  color: #f8fafc;
}

.nav-btn-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(20, 184, 166, 0.15));
  border-color: rgba(16, 185, 129, 0.4);
  color: #ecfdf5;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(59, 130, 246, 0.8));
  color: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.9);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(71, 85, 105, 0.7);
  color: #e2e8f0;
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(148, 163, 184, 0.8);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.7rem;
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5f5;
}

.badge-muted {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.card {
  border-radius: 1.25rem;
  border: 1px solid rgba(71, 85, 105, 0.4);
  background: radial-gradient(circle at top, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  padding: 1.4rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(8, 47, 73, 0.25);
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #cbd5e1;
}

.input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(71, 85, 105, 0.6);
  background-color: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  padding: 0.55rem 0.8rem;
  transition: border 0.2s, box-shadow 0.2s;
}

.input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.checkbox {
  height: 1rem;
  width: 1rem;
  border-radius: 0.3rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.5);
  accent-color: rgb(16, 185, 129);
}

.link {
  color: rgba(129, 140, 248, 0.9);
  font-weight: 500;
  transition: color 0.2s ease;
}

.link:hover {
  color: rgba(165, 180, 252, 1);
}

.ref-thumb {
  width: 64px;
  height: 64px;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.5);
  transition: transform 0.2s ease, border 0.2s ease;
}

.ref-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.5);
}

.ref-pill {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(71, 85, 105, 0.5);
  background: rgba(15, 23, 42, 0.65);
  cursor: pointer;
  transition: all 0.2s;
}

.ref-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  color: #cbd5f5;
}

.ref-pill input:checked + .ref-pill-label {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.7);
  color: #34d399;
}

.dropzone {
  padding: 1.2rem;
  border: 2px dashed rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  text-align: center;
  color: rgba(148, 163, 184, 0.85);
  background: rgba(30, 41, 59, 0.35);
  transition: border 0.2s ease, background 0.2s ease;
}

.dropzone:hover {
  border-color: rgba(16, 185, 129, 0.65);
  background: rgba(16, 185, 129, 0.08);
  color: rgba(16, 185, 129, 0.9);
}

.grid-thirds {
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.15) 1px, transparent 1px) 33.333% 0 / 33.333% 100%,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 1px, transparent 1px) 0 33.333% / 100% 33.333%;
  pointer-events: none;
}

.card ul li button.link {
  padding: 0;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
