body {
  margin: 0;
  font: 16px/1.5 Segoe UI, Arial, sans-serif;
  background: #f3f6fb;
  color: #1f2328;
}

.card {
  max-width: 860px;
  margin: 48px auto;
  padding: 32px;
  background: #fff;
  border: 1px solid #d8dee4;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(140,149,159,.15);
}

h1, h2 {
  margin-top: 0;
}

.script-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.script-item + .script-item {
  margin-top: 18px;
}

.script-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.script-link {
  font-weight: 600;
  font-size: 1.15rem;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #57606a;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.copy-button:hover {
  border-color: #0969da;
  color: #0969da;
  background: linear-gradient(180deg, #ffffff 0%, #e7f0fb 100%);
}

.copy-button:active {
  transform: translateY(1px);
}

.copy-button svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.copy-button.copied {
  border-color: #1a7f37;
  color: #1a7f37;
  background: #eaf7ec;
}

.copy-button.copy-failed {
  border-color: #cf222e;
  color: #cf222e;
  background: #fff1f2;
}

.script-synopsis,
.script-details-text {
  margin: 6px 0 0;
  color: #3d444d;
}

.script-details {
  margin-top: 8px;
  padding: 10px 12px 12px;
  background: #f6f8fa;
  border: 1px solid #d8dee4;
  border-radius: 10px;
}

.script-details summary {
  cursor: pointer;
  color: #0969da;
  user-select: none;
}

.script-details[open] summary {
  margin-bottom: 8px;
}

.script-details-text {
  font: 14px/1.55 Consolas, "Courier New", monospace;
  background: #eef2f7;
  border-radius: 8px;
  padding: 8px 10px;
  white-space: normal;
}

.detail-directive {
  font-weight: 700;
}

.function-panel {
  margin-top: 8px;
  background: #eef2f7;
  border-radius: 8px;
  padding: 10px 12px;
  color: #3d444d;
}

.function-entry + .function-entry {
  margin-top: 10px;
}

.function-name,
.function-synopsis {
  margin: 0;
}

.function-synopsis {
  margin-top: 4px;
}

.function-details {
  margin-top: 8px;
  padding: 6px 8px 8px;
  background: #f9fbfd;
  border-radius: 8px;
}

.function-details summary {
  font-size: 0.92rem;
}

.function-details[open] summary {
  margin-bottom: 6px;
}

.function-details .script-details-text {
  margin-top: 0;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.45;
}

a {
  color: #0969da;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.footer {
  margin-top: 28px;
  color: #57606a;
  font-size: 14px;
}
