@charset "UTF-8";
:root {
  --color-primary: #1e40af;
  --color-primary-dark: #1e3a8a;
  --color-primary-vivid: #3b82f6;
  --color-primary-light: #dbeafe;
  --color-primary-50: #eff6ff;
  --color-secondary: #0891b2;
  --color-secondary-dark: #0e7490;
  --color-secondary-light: #cffafe;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-accent-light: #fef3c7;
  --color-success: #059669;
  --color-success-light: #d1fae5;
  --color-warning: #eab308;
  --color-warning-light: #fef9c3;
  --color-error: #dc2626;
  --color-error-light: #fee2e2;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.12);
  --header-height: 68px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0f172a;
  color: #ffffff;
  padding: 8px 16px;
  z-index: 10000;
  font-size: 14px;
  text-decoration: none;
  transition: top 200ms ease;
}
.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.enr-stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.enr-stage {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.9rem;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.enr-stage:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.enr-stage:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.enr-stage[aria-pressed=true] {
  border-color: #1e40af;
  border-left-color: #1e40af;
  background: #eff6ff;
}
.enr-stage[aria-pressed=true] .enr-stage-count {
  color: #1e3a8a;
}
.enr-stage[aria-pressed=true] .enr-stage-label {
  font-weight: 700;
}
.enr-stage.is-waiting-applicant {
  border-left-color: #94a3b8;
}
.enr-stage.is-needs-review {
  border-left-color: #f59e0b;
}
.enr-stage.is-in-progress {
  border-left-color: #0891b2;
}
.enr-stage.is-ready {
  border-left-color: #059669;
}
.enr-stage.is-done {
  border-left-color: #059669;
}
.enr-stage.is-closed {
  border-left-color: #cbd5e1;
}

.enr-stage-count {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 700;
  color: #1e293b;
}

.enr-stage-label {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.25;
}

.enr-stage.is-empty {
  box-shadow: none;
}
.enr-stage.is-empty .enr-stage-count {
  color: #94a3b8;
}

.enr-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.enr-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: currentColor;
  flex: none;
}
.enr-pill.is-new {
  background: #f1f5f9;
  color: #334155;
}
.enr-pill.is-waiting-applicant {
  background: #f1f5f9;
  color: #475569;
}
.enr-pill.is-needs-review {
  background: #fef3c7;
  color: #d97706;
}
.enr-pill.is-in-progress {
  background: #cffafe;
  color: #0e7490;
}
.enr-pill.is-ready {
  background: #dbeafe;
  color: #1e3a8a;
}
.enr-pill.is-done {
  background: #d1fae5;
  color: #059669;
}
.enr-pill.is-closed {
  background: #f1f5f9;
  color: #64748b;
}

.enr-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .enr-review-grid {
    grid-template-columns: 1fr;
  }
}

.enr-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 0.9rem;
  margin: 0;
  font-size: 0.9rem;
}
.enr-facts dt {
  color: #64748b;
  font-weight: 500;
}
.enr-facts dd {
  margin: 0;
  color: #1e293b;
  overflow-wrap: anywhere;
}

.enr-missing {
  color: #64748b;
  font-style: italic;
}

.enr-group-start {
  margin-top: 1.25rem;
}
@media (max-width: 768px) {
  .enr-group-start {
    margin-top: 0.5rem;
  }
}

.enr-step-num {
  font-weight: 600;
  color: #64748b;
}

.enr-side {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.9rem;
}
.enr-side h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.enr-dopuna-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}
.enr-dopuna-item:last-child {
  border-bottom: 0;
}
.enr-dopuna-item.is-resolved {
  color: #64748b;
  text-decoration: line-through;
}

.enr-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.25rem;
  list-style: none;
  counter-reset: enr-step;
}

.enr-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 150px;
  padding: 0.6rem 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #64748b;
}
.enr-step::before {
  counter-increment: enr-step;
  content: counter(enr-step);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 700;
  font-size: 0.78rem;
}
.enr-step.is-done {
  color: #334155;
  border-color: #d1fae5;
}
.enr-step.is-done::before {
  content: "✓";
  background: #d1fae5;
  color: #059669;
}
.enr-step.is-current {
  color: #0f172a;
  font-weight: 600;
  border-color: #1e40af;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.enr-step.is-current::before {
  background: #1e40af;
  color: #ffffff;
}

.enr-doc {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}
.enr-doc.is-uploaded {
  border-color: #d1fae5;
  background: rgba(209, 250, 229, 0.35);
}

.enr-doc-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
}
.is-uploaded .enr-doc-icon {
  background: #d1fae5;
  color: #059669;
}

.enr-doc-body {
  min-width: 0;
  flex: 1 1 auto;
}
.enr-doc-body .enr-doc-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.92rem;
}
.enr-doc-body .enr-doc-meta {
  font-size: 0.8rem;
  color: #64748b;
  overflow-wrap: anywhere;
}

.enr-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  margin-bottom: 1.25rem;
}
.enr-banner.is-attention {
  background: #fef3c7;
  border-color: #f59e0b;
}
.enr-banner.is-done {
  background: #d1fae5;
  border-color: #d1fae5;
}
.enr-banner .enr-banner-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.15rem;
}
.enr-banner .enr-banner-text {
  color: #334155;
  font-size: 0.9rem;
  margin: 0;
}

.enr-sign-box {
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.enr-sign-box #sign-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.35em;
  text-align: center;
  max-width: 9rem;
}

.enr-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
}
.enr-empty i {
  font-size: 2rem;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
  display: block;
}

.enr-attest {
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  padding-top: 10px;
}
.enr-attest summary {
  cursor: pointer;
  font-size: 12px;
  color: #6c757d;
}
.enr-attest summary:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.5);
  outline-offset: 2px;
}
.enr-attest[open] summary {
  margin-bottom: 4px;
}

.enr-keys {
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  padding-top: 12px;
}
.enr-keys > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
}
.enr-keys > summary:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.5);
  outline-offset: 2px;
}
.enr-keys code {
  font-size: 12px;
  word-break: break-all;
}

.enr-keys-contract summary {
  cursor: pointer;
  font-size: 12px;
  color: #6c757d;
}
.enr-keys-contract summary:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.5);
  outline-offset: 2px;
}

.enr-keys-sample {
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  margin-bottom: 8px;
}
