.card h1 { margin-bottom: 4px; }

.gc-info-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gc-info-list li {
  padding: 14px 16px;
  border-left: 3px solid var(--accent-primary);
  background: var(--key-bg);
  border-radius: 0 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gc-info-list strong {
  font-size: 13px;
  color: var(--text-primary);
}

.gc-info-list span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.gc-intro {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.gc-category-toggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: var(--key-bg);
  margin-bottom: 16px;
  width: fit-content;
}

.gc-category-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  cursor: pointer;
}
.gc-category-btn:hover { color: var(--text-primary); }
.gc-category-btn.active {
  color: var(--accent-primary);
  background: var(--panel);
  box-shadow: 0 1px 4px rgba(31, 35, 51, 0.12);
}

.gc-shape-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.gc-shape-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--key-bg);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.gc-shape-btn:hover { background: var(--key-bg-hover); }
.gc-shape-btn.active {
  color: var(--text-on-accent);
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.gc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.gc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.gc-field input {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-primary);
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
}
.gc-field input:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}

.gc-results {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* [hidden] and .gc-results are equal specificity, and this file loads
   after the UA stylesheet - without this, "display: flex" above wins the
   cascade and setting the hidden PROPERTY in JS has no visual effect. */
.gc-results[hidden] { display: none; }

.gc-diagram {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 2D shapes: a single flat outline. */
.gc-diagram-shape {
  fill: var(--accent-primary-dim);
  stroke: var(--accent-primary);
  stroke-width: 2;
  stroke-linejoin: round;
}

/* 3D isometric shapes: three shading tiers (top lightest, front/side
   darker) fake a consistent light source without needing real lighting. */
.gc-diagram-face-top {
  fill: var(--accent-primary-dim);
  stroke: var(--accent-primary);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.gc-diagram-face-side {
  fill: rgba(124, 92, 255, 0.28);
  stroke: var(--accent-primary);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.gc-diagram-face-front {
  fill: rgba(124, 92, 255, 0.4);
  stroke: var(--accent-primary);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.gc-diagram-edge {
  stroke: var(--accent-primary);
  stroke-width: 1.5;
}
.gc-diagram-edge-fill-none {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 1;
  opacity: 0.5;
}

.gc-error {
  margin: 0;
  font-size: 13px;
  color: var(--accent-error);
}

.gc-output {
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--accent-primary);
  border-radius: 12px;
  padding: 12px 16px;
}

.gc-output-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.gc-output-top span { font-size: 13px; color: var(--text-muted); }
.gc-output-top strong { font-family: var(--mono); font-size: 20px; color: var(--text-primary); }

.gc-output-formula {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  word-break: break-word;
}
