:root {
  --ink: #1e293b;
  --muted: #5a6b85;
  --panel: #ffffff;
  --line: #d7dfeb;
  --accent: #2563eb;
  --accent-2: #f97316;
  --bg-top: #f5f8ff;
  --bg-bottom: #edf2fb;
}

body.app-body {
  font-family: "Lato", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 10% -20%, #ffffff 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

#edit-preview-modal-content ul li {
  list-style: disc;
}

h1,
h2,
h3,
h4 {
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.02em;
}

.sidebar-shell {
  background: rgba(255, 255, 255, 0.9);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-btn {
  border: 1px solid transparent;
  transition: all 180ms ease;
}

.nav-btn:hover {
  border-color: #d8e2f5;
  background: #f2f7ff;
}

.nav-btn.is-active {
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.12),
    rgba(37, 99, 235, 0.02)
  );
  border-color: #b8caf1;
  color: #0f3f97;
}

.surface-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 22px -20px rgba(23, 55, 110, 0.5);
}

.view .bg-white.rounded.shadow,
.view .bg-white.p-4.rounded.shadow,
.view .bg-white.p-5.rounded.shadow,
.view .bg-white.rounded.shadow.overflow-hidden {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 22px -20px rgba(23, 55, 110, 0.5);
}

.process-strip {
  border: 1px dashed #c4d2ec;
  border-radius: 12px;
  background: #f8fbff;
}

.process-step {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #607193;
}

.process-step.is-active {
  color: #1748a2;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  border: 1px solid transparent;
}

.status-badge.draft {
  color: #8a5d00;
  background: #fff5da;
  border-color: #f1d17d;
}

.status-badge.pending {
  color: #1e4da8;
  background: #eaf2ff;
  border-color: #bfd3ff;
}

.status-badge.signed {
  color: #0f6c47;
  background: #e7f9ef;
  border-color: #9ee5bf;
}

.table-shell thead {
  background: #f6f9ff;
}

.table-shell tr:hover td {
  background: #fbfdff;
}

.input-polish {
  border-color: #cbd6ea;
  background: #fff;
}

.input-polish:focus {
  outline: none;
  border-color: #5a8cf0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.contracts-bulk-slot {
  min-height: 64px;
}

.contracts-bulk-bar {
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.contracts-bulk-bar.is-inactive {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
}

main input,
main select {
  border-radius: 10px;
  border-color: #cbd6ea !important;
  background: #fff !important;
}

main input:focus,
main select:focus {
  outline: none;
  border-color: #5a8cf0 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

main button,
#edit-preview-modal button {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

main button:hover,
#edit-preview-modal button:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

#toast-root {
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.7rem 0.85rem;
  min-width: 220px;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.75);
}

.toast-item.success {
  background: #0f5132;
}

.toast-item.error {
  background: #7f1d1d;
}
