/* Care-Intel Graph Playground — split editor + quick start */

.ci-pg-body { background: #f4f6f9; }

.ci-pg-intro {
  padding: 2.25rem 0 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.ci-pg-intro h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #0f172a;
  margin: 0 0 .5rem;
}
.ci-pg-intro p { color: #64748b; line-height: 1.6; margin: 0 0 .75rem; }
.ci-pg-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 1rem 0 .4rem !important;
}
.ci-pg-codeblock {
  display: block;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: .85rem;
  word-break: break-all;
}
.ci-pg-kv {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}
.ci-pg-kv-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: .85rem;
}
.ci-pg-kv-row:last-child { border-bottom: none; }
.ci-pg-kv-row > span { font-weight: 700; color: #64748b; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.ci-pg-kv-row code { color: #0f172a; word-break: break-all; background: transparent; }
.ci-pg-kv-row--accent { background: #eff6ff; }
.ci-pg-icon-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  width: 32px; height: 32px;
  color: #475569;
  cursor: pointer;
}

.ci-pg-shell { padding: 1.25rem 0 2rem; }

.ci-pg-examples, .ci-pg-docs-cards {
  padding: 1.5rem 0 2.5rem;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.ci-pg-examples h2, .ci-pg-docs-cards h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}
.ci-pg-lang-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.ci-pg-lang-tabs button {
  border: 1px solid #d0d7e2;
  background: #fff;
  border-radius: 8px;
  padding: .4rem .9rem;
  font-weight: 700;
  font-size: .8rem;
  color: #475569;
  cursor: pointer;
}
.ci-pg-lang-tabs button.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.ci-pg-code-panel {
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
}
.ci-pg-code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 1rem;
  background: #111827;
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 700;
}
.ci-pg-example-pre {
  margin: 0;
  padding: 1rem 1.1rem;
  color: #e2e8f0;
  font-size: 12.5px;
  line-height: 1.55;
  overflow: auto;
  max-height: 320px;
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ci-pg-doc-card {
  display: block;
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  background: #f8fafc;
  text-decoration: none !important;
  transition: .15s ease;
}
.ci-pg-doc-card:hover { border-color: #93c5fd; background: #eff6ff; }
.ci-pg-doc-card strong { display: block; color: #0f172a; margin-bottom: .35rem; }
.ci-pg-doc-card span { display: block; color: #64748b; font-size: .88rem; line-height: 1.5; }

.ci-pg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}
.ci-pg-starters { display: flex; flex-wrap: wrap; gap: .4rem; }
.ci-pg-chip {
  border: 1px solid #d0d7e2;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: .15s ease;
}
.ci-pg-chip:hover, .ci-pg-chip.active {
  background: #eef2ff;
  border-color: #818cf8;
  color: #3730a3;
}
.ci-pg-toolbar-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.ci-pg-meta { font-size: .8rem; color: #64748b; font-weight: 600; }
.ci-pg-run {
  border: none;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  padding: .55rem 1.1rem;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.ci-pg-run:hover { background: #1d4ed8; }
.ci-pg-run:disabled { opacity: .65; cursor: wait; }

.ci-pg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 560px;
  border: 1px solid #d8dee9;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px -20px rgba(15, 23, 42, .35);
}
@media (max-width: 991px) {
  .ci-pg-split { grid-template-columns: 1fr; min-height: auto; }
}

.ci-pg-pane { display: flex; flex-direction: column; min-height: 420px; }
.ci-pg-pane-query { border-right: 1px solid #e2e8f0; background: #0b1220; }
@media (max-width: 991px) {
  .ci-pg-pane-query { border-right: none; border-bottom: 1px solid #e2e8f0; }
}
.ci-pg-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem 1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: #111827;
  color: #94a3b8;
  border-bottom: 1px solid #1f2937;
}
.ci-pg-pane-results .ci-pg-pane-head {
  background: #f8fafc;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}
.ci-pg-hint { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .85; }

.ci-pg-editor {
  flex: 1;
  width: 100%;
  min-height: 480px;
  border: none;
  resize: vertical;
  padding: 1rem 1.1rem;
  background: #0b1220;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  outline: none;
}

.ci-pg-result-tabs { display: flex; gap: .35rem; }
.ci-pg-result-tabs button {
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 700;
  font-size: .78rem;
  padding: .3rem .65rem;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
}
.ci-pg-result-tabs button.active { background: #e2e8f0; color: #0f172a; }
.ci-pg-copy {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .55rem;
  color: #334155;
}

.ci-pg-view { display: none; flex: 1; min-height: 0; }
.ci-pg-view.active { display: flex; flex-direction: column; }
.ci-pg-table-wrap { flex: 1; overflow: auto; max-height: 560px; }
.ci-pg-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ci-pg-table th {
  position: sticky; top: 0;
  background: #f1f5f9;
  text-align: left;
  padding: .65rem .8rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  white-space: nowrap;
}
.ci-pg-table td {
  padding: .55rem .8rem;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  vertical-align: top;
  max-width: 280px;
  word-break: break-word;
}
.ci-pg-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: .9rem;
}
.ci-pg-json {
  margin: 0;
  padding: 1rem 1.1rem;
  flex: 1;
  overflow: auto;
  max-height: 560px;
  background: #0b1220;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}
