/* C Extensions — matches flow.html / Build Log ink/cyan language */

.cext-page {
  min-height: 100vh;
}

.cext-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.cext-kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.cext-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text);
}

.cext-home {
  margin-bottom: 18px;
}

.cext-home a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.cext-home a:hover {
  color: var(--cyan);
}

.cext-blurb {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 28px;
  max-width: 40rem;
}

.cext-blurb code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--text);
}

.cext-batch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 28px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.cext-pref {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 4px;
}

.cext-pref-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-right: 4px;
}

.cext-pref-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}

.cext-pref-btn:hover {
  color: var(--text);
  border-color: var(--muted);
}

.cext-pref-btn--active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
}

.cext-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.cext-select-all input,
.cext-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
  cursor: pointer;
}

.cext-batch-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #041018;
  background: var(--cyan);
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
}

.cext-batch-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.cext-batch-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cext-selected-count {
  font-size: 0.85rem;
  color: var(--muted);
}

.cext-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-top: 14px;
  cursor: pointer;
}

.cext-link--muted {
  color: var(--muted);
  font-weight: 500;
}

.cext-link--muted:hover {
  color: var(--cyan);
}

.cext-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cext-item {
  padding: 4px 0 8px;
}

.cext-item-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.cext-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #000;
  display: block;
}

.cext-item-head {
  min-width: 0;
  padding-top: 2px;
}

.cext-name {
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 4px;
  color: var(--text);
}

.cext-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.02em;
}

.cext-meta code {
  font-family: inherit;
  color: var(--text);
  opacity: 0.85;
}

.cext-desc {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 40rem;
}

.cext-desc code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--text);
}

.cext-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin: 0;
}

.cext-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}

.cext-link:hover {
  text-decoration: underline;
}

.cext-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.cext-hint strong {
  color: var(--text);
  font-weight: 500;
}

.cext-sep {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  margin: 8px 0 12px;
}

.cext-sep::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dotted var(--rule);
}

.cext-sep span {
  position: relative;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.55;
  z-index: 1;
}

.cext-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 40rem;
  line-height: 1.55;
}

.cext-note strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 720px) {
  .cext-main {
    padding: 32px 20px 72px;
  }

  .cext-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }
}
