/* Xima-File-Version: 1.0.0 (2026-10-18) */
.xima-fc-page {
  --xima-fc-brand: #007c6d;
  --xima-fc-brand-soft: rgba(50, 188, 173, 0.12);
  --xima-fc-ink: #111827;
  --xima-fc-muted: #6b7280;
  --xima-fc-line: #e5e7eb;
  min-height: 70vh;
  padding: 42px 20px 90px;
  color: var(--xima-fc-ink);
}

.xima-fc-page * {
  box-sizing: border-box;
}

.xima-fc-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.xima-fc-page h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.6;
}

.xima-fc-lead {
  margin: 0 0 28px;
  color: var(--xima-fc-muted);
  font-size: 15px;
  line-height: 2.1;
}

.xima-fc-search {
  display: flex;
  gap: 10px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--xima-fc-line);
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.xima-fc-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--xima-fc-ink);
}

.xima-fc-search input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}

.xima-fc-search button {
  border: 0;
  border-radius: 16px;
  background: var(--xima-fc-brand);
  color: #fff;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.xima-fc-search button:hover {
  background: #00655c;
}

.xima-fc-results {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.xima-fc-results__list {
  display: grid;
  gap: 16px;
}

.xima-fc-state {
  margin: 8px 0 0;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--xima-fc-line);
  color: var(--xima-fc-muted);
  line-height: 2;
}

.xima-fc-state--empty {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.xima-fc-card {
  background: #fff;
  border: 1px solid var(--xima-fc-line);
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

.xima-fc-card--warning {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 42%);
}

.xima-fc-card--error {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff7f7 0%, #fff 42%);
}

.xima-fc-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.xima-fc-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
}

.xima-fc-card--error .xima-fc-badge {
  background: #fef2f2;
  color: #b91c1c;
}

.xima-fc-card--warning .xima-fc-badge {
  background: #fffbeb;
  color: #b45309;
}

.xima-fc-card__code {
  font-size: 22px;
  letter-spacing: 0.03em;
}

.xima-fc-field + .xima-fc-field {
  margin-top: 14px;
}

.xima-fc-field__label {
  display: block;
  margin-bottom: 4px;
  color: var(--xima-fc-brand);
  font-size: 12px;
  font-weight: 800;
}

.xima-fc-field__value {
  margin: 0;
  color: #1f2937;
  font-size: 15px;
  line-height: 2;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .xima-fc-page {
    padding: 24px 14px 70px;
  }

  .xima-fc-search {
    flex-direction: column;
    border-radius: 18px;
  }

  .xima-fc-search button {
    height: 48px;
  }

  .xima-fc-card__top {
    flex-direction: column;
    align-items: flex-start;
  }
}
