/* Conventional Commits Helper - v1.20.3. Brand dark, scoped #ccx.
   Every selector ccx- prefixed; base styles OUTSIDE any hover query. */
#ccx {
	color-scheme: dark;
	--surface: #111318; --surface-2: #181c24; --border-2: #232a36;
	--text: #e2e8f0; --muted: #8896aa; --dim: #7586a0;
	--green: #00ff91; --green-border: rgba(0, 255, 145, .22);
	--red: #ff5c5c; --amber: #ffb86b; --cyan: #5cc8ff;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-family: var(--font-mono); font-size: 13.5px; line-height: 1.55; color: var(--text);
	-webkit-text-size-adjust: 100%; text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent; touch-action: manipulation;
	margin: 0 auto; max-width: var(--content-w);
}
#ccx * { box-sizing: border-box; }
#ccx button, #ccx input, #ccx select, #ccx textarea { font-family: inherit; }
#ccx [hidden] { display: none !important; }

#ccx .ccx-wrap { max-width: 940px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

#ccx .ccx-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 800px) { #ccx .ccx-cols { grid-template-columns: 1fr; } }

#ccx .ccx-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
#ccx .ccx-sec { display: flex; align-items: center; gap: 10px; margin: 2px 0; }
#ccx .ccx-sec .ccx-sdot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
#ccx .ccx-sec h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--text); }
#ccx .ccx-sec .ccx-line { flex: 1 1 auto; height: 1px; background: var(--border-2); }

#ccx label.ccx-lbl { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 5px; }
#ccx input, #ccx select, #ccx textarea {
	width: 100%; background: #0d0d0d; border: 1px solid var(--border-2); border-radius: 8px; color: var(--text);
	font: 400 12.5px/1.55 var(--font-mono); padding: 12px 14px;
}
#ccx textarea { min-height: 120px; resize: vertical; }
#ccx input:focus-visible, #ccx select:focus-visible, #ccx textarea:focus-visible { outline: 2px solid var(--green); }
#ccx ::placeholder { color: var(--dim); }

/* type picker */
#ccx .ccx-typedesc { font-size: 11.5px; color: var(--dim); min-height: 18px; }

#ccx .ccx-chk { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); min-height: 36px; cursor: pointer; }
#ccx .ccx-chk input { width: 16px; height: 16px; accent-color: var(--green); }

#ccx .ccx-outwrap { position: relative; }
#ccx #ccx-out { min-height: 150px; font-family: var(--font-mono); white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
#ccx #ccx-out.ccx-breaking { border-color: var(--red); }
#ccx #ccx-outtitle { min-height: 44px; font-weight: 700; }

#ccx .ccx-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 5px; }
#ccx .ccx-meta { font-size: 11px; color: var(--dim); }
#ccx .ccx-hint { font-size: 12px; color: var(--muted); min-height: 18px; }

#ccx .ccx-btnrow { display: flex; flex-wrap: wrap; gap: 10px; }
#ccx .ccx-btn { -webkit-user-select: none; user-select: none;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	flex: 1 1 auto; min-height: 44px; padding: 0 18px; border-radius: 8px; cursor: pointer;
	font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;  border: 1px solid transparent;
}
#ccx .ccx-btn:active { transform: translateY(1px); }
#ccx .ccx-btn.ccx-primary { background: var(--green); color: #04160d; }
#ccx .ccx-btn.ccx-ghost { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border-2); }

#ccx .ccx-foot { font-size: 11px; color: var(--dim); text-align: center; }

/* ══ v1.21.65 App #17 audit - related grid + visible FAQ (6-point law) ══ */
#ccx .ccx-related, #ccx .ccx-faq { margin-top: 20px; }
#ccx .ccx-related-h, #ccx .ccx-faq-h {
	font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 16px;
}
#ccx .ccx-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
#ccx .ccx-rel-card {
	display: flex; flex-direction: column; gap: 7px; padding: 20px;
	background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px; text-decoration: none;
}
#ccx .ccx-rel-name { font-size: 13px; font-weight: 700; color: var(--text); }
#ccx .ccx-rel-desc { font-size: 11.5px; line-height: 1.5; color: var(--muted); }
#ccx .ccx-faq-item {
	border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface);
	margin-bottom: 16px; overflow: hidden;
}
#ccx .ccx-faq-item summary {
	cursor: pointer; list-style: none; padding: 16px 18px;
	font-size: 13px; font-weight: 700; color: var(--text);
}
#ccx .ccx-faq-item summary::before { content: "\25B8  "; color: var(--green); }
#ccx .ccx-faq-item[open] summary::before { content: "\25BE  "; }
#ccx .ccx-faq-item p {
	margin: 0; padding: 0 18px 16px 32px;
	font-size: 12.5px; line-height: 1.7; color: var(--muted);
}
@media (hover: hover) {
	#ccx .ccx-rel-card:hover { border-color: var(--green-border); }
	#ccx .ccx-rel-card:hover .ccx-rel-name { color: var(--green); }
	#ccx .ccx-faq-item summary:hover { color: var(--green); }
}

@media (hover: hover) {
	#ccx .ccx-btn.ccx-ghost:hover { border-color: var(--green-border); color: var(--text); }
	#ccx .ccx-btn.ccx-primary:hover { filter: brightness(1.07); }
}/* v1.22.6 cross-browser audit: iOS input-zoom floor (12.5px -> 16px on phones) */
@media (max-width: 800px) { #ccx input, #ccx select, #ccx textarea { font-size: 16px; } }
