body {
  margin: 0;
  background: #eef2f7;
  color: #111827;
  font-family: "Segoe UI", "Yu Gothic UI", sans-serif;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.demo-shell {
  padding: 18px;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.demo-header h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.demo-header p {
  margin: 0;
  color: #64748b;
}

.demo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.demo-nav a,
.demo-buttons button,
.demo-primary-button {
  border: 1px solid #cfd6df;
  background: #ffffff;
  border-radius: 8px;
  color: #111827;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-block;
}

.demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.demo-card,
.demo-config,
.demo-output {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #d7dce2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}

.demo-card h2,
.demo-config h2,
.demo-output h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

.demo-card p {
  margin: 0 0 10px;
  color: #64748b;
  line-height: 1.6;
}

.demo-config pre,
.demo-output pre {
  margin: 0;
  overflow: auto;
  font-size: 12px;
  line-height: 1.55;
}

.demo-explorer-host {
  height: calc(100vh - 248px);
  min-height: 620px;
}

.demo-compact-host {
  height: calc(100vh - 192px);
  min-height: 540px;
}

.demo-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-note {
  margin: 0;
  color: #64748b;
}

.demo-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.demo-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 14px;
  margin-bottom: 12px;
}

.demo-options-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.demo-options-grid input[type="text"],
.demo-options-grid select {
  border: 1px solid #cfd6df;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.demo-options-grid .demo-check {
  justify-content: center;
  flex-direction: row;
  align-items: center;
  font-weight: 500;
}

.demo-options-grid .demo-check input {
  margin: 0 6px 0 0;
}

.demo-options-grid input[type="number"] {
  border: 1px solid #cfd6df;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.demo-event-log {
  min-height: 76px;
  max-height: 136px;
  margin-top: 8px !important;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.demo-options-grid textarea {
  min-height: 86px;
  resize: vertical;
}
