:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.32);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --brand: #1d4ed8;
  --brand-dark: #0f172a;
}

[x-cloak] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, #f7f9fc 0%, #edf2f7 48%, #f8fafc 100%);
}

.app-shell {
  max-width: 1440px;
  margin-inline: auto;
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .app-shell {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .app-shell {
    padding: 1.75rem 2rem;
  }
}

.glass-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.glass-panel-strong {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(20px);
}

.field {
  width: 100%;
  border-radius: 0.625rem;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.field:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.label {
  margin-bottom: 0.35rem;
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.btn-primary,
.btn-dark,
.btn-soft,
.btn-ghost {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.625rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 650;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: #1e40af;
}

.btn-dark {
  background: var(--brand-dark);
  color: #fff;
}

.btn-dark:hover {
  background: #1e293b;
}

.btn-soft {
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
}

.btn-soft:hover {
  background: #fff;
}

.btn-ghost {
  color: #475569;
}

.btn-ghost:hover {
  background: rgba(226, 232, 240, 0.72);
  color: var(--ink);
}

button:disabled,
.btn-primary:disabled,
.btn-dark:disabled,
.btn-soft:disabled,
.btn-ghost:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.metric-card {
  border-radius: 0.875rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.compact-metric {
  padding: 0.8rem;
  box-shadow: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: #334155;
}

.lead-row {
  background: rgba(255, 255, 255, 0.64);
  transition: background 120ms ease, box-shadow 120ms ease;
}

.lead-row:hover {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 3px 0 0 #2563eb;
}

.muted {
  color: var(--muted);
}
