.vcs-ncit-explorer {
  --vcs-bg: #f8fbff;
  --vcs-panel: #ffffff;
  --vcs-border: #e4edf6;
  --vcs-text: #1f3a52;
  --vcs-muted: #6d8296;
  --vcs-primary: #3a74a8;
  --vcs-primary-soft: #f0f6fd;
  color: var(--vcs-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vcs-ncit-explorer * {
  box-sizing: border-box;
}

.vcs-ncit-explorer__hero {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--vcs-border);
  background: linear-gradient(135deg, #fbfdff, #f3f8fd);
}

.vcs-ncit-explorer__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vcs-muted);
}

.vcs-ncit-explorer__title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  color: #0f2b45;
}

.vcs-ncit-explorer__subtitle {
  margin: 0;
  color: var(--vcs-muted);
}

.vcs-ncit-explorer__pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf4fb;
  color: #2b5f8c;
  font-size: 12px;
  font-weight: 600;
}

.vcs-ncit-explorer__pill[data-tone="busy"] {
  background: #e8f2fc;
  color: #20547f;
}

.vcs-ncit-explorer__pill[data-tone="error"] {
  background: #fae9e5;
  color: #ab3f27;
}

.vcs-ncit-explorer__panel {
  border: 1px solid var(--vcs-border);
  border-radius: 14px;
  background: var(--vcs-panel);
  padding: 20px;
}

.vcs-ncit-explorer__search-row {
  display: grid;
  gap: 12px;
}

.vcs-ncit-explorer__search-field label,
.vcs-ncit-explorer__advanced-grid label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--vcs-muted);
}

.vcs-ncit-explorer__search-field input,
.vcs-ncit-explorer__advanced-grid input,
.vcs-ncit-explorer__advanced-grid select {
  width: 100%;
  border: 1px solid #c8d8ea;
  border-radius: 10px;
  background: #fff;
  color: var(--vcs-text);
  padding: 10px 11px;
}

.vcs-ncit-explorer__search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.vcs-ncit-explorer__btn {
  border: 1px solid #b5cae0;
  border-radius: 10px;
  background: #fff;
  color: #204869;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.vcs-ncit-explorer__btn:hover {
  background: #f1f7fd;
}

.vcs-ncit-explorer__btn--primary {
  border-color: var(--vcs-primary);
  background: var(--vcs-primary);
  color: #fff;
}

.vcs-ncit-explorer__btn--primary:hover {
  background: #245f93;
}

.vcs-ncit-explorer__btn--loading {
  position: relative;
  padding-left: 34px;
}

.vcs-ncit-explorer__btn--loading::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: vcs-ncit-spin 0.8s linear infinite;
}

.vcs-ncit-explorer__btn--disabled,
.vcs-ncit-explorer__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vcs-ncit-explorer__search-actions [data-role="status"] {
  cursor: default;
  user-select: none;
}

@keyframes vcs-ncit-spin {
  to {
    transform: rotate(360deg);
  }
}

.vcs-ncit-explorer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.vcs-ncit-explorer__chip,
.vcs-ncit-explorer__tag {
  border: 1px solid #cde0f1;
  border-radius: 999px;
  background: #f5faff;
  color: #2d5f88;
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
}

.vcs-ncit-explorer__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.vcs-ncit-explorer__panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.vcs-ncit-explorer__panel-header h3,
.vcs-ncit-explorer__detail h4 {
  margin: 0 0 4px;
}

.vcs-ncit-explorer__hint {
  margin: 0;
  color: var(--vcs-muted);
  font-size: 13px;
}

.vcs-ncit-explorer__results {
  display: block;
  column-count: 1;
  column-gap: 16px;
}

.vcs-ncit-explorer__result-card {
  border: 1px solid #e4edf7;
  border-radius: 14px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(13, 44, 72, 0.03);
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.vcs-ncit-explorer__result-title {
  font-weight: 700;
  margin: 0 0 10px;
  color: #0f2b45;
}

.vcs-ncit-explorer__card-section {
  margin-top: 12px;
}

.vcs-ncit-explorer__card-overview {
  margin: 6px 0 0;
  color: #2b4155;
}

.vcs-ncit-explorer__definitions-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #2b4155;
}

.vcs-ncit-explorer__definitions-list li + li {
  margin-top: 6px;
}

.vcs-ncit-explorer__card-section--aka {
  border-top: 1px solid #e4edf6;
  padding-top: 12px;
}

.vcs-ncit-explorer__aka-list {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--vcs-muted);
}

.vcs-ncit-explorer__empty-state {
  border: 1px dashed #c8d7e8;
  border-radius: 10px;
  background: #f8fbff;
  color: var(--vcs-muted);
  padding: 14px;
  width: 100%;
}

@media (min-width: 900px) {
  .vcs-ncit-explorer__search-row {
    grid-template-columns: 1fr auto;
  }

  .vcs-ncit-explorer__results {
    column-count: 2;
  }
}

@media (min-width: 1200px) {
  .vcs-ncit-explorer__results {
    column-count: 3;
  }
}
