/* Entity & Brand Consistency Checker — styles */
.ebc-tool {
	--ebc-bg: #ffffff; --ebc-fg: #1a1a1a; --ebc-muted: #6b7280; --ebc-border: #e5e7eb;
	--ebc-primary: #2563eb; --ebc-ok: #16a34a; --ebc-warn: #d97706; --ebc-bad: #dc2626; --ebc-info: #0891b2;
	--ebc-card: #f9fafb;
	max-width: 900px; margin: 0 auto; color: var(--ebc-fg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
	.ebc-tool { --ebc-bg: #111827; --ebc-fg: #f3f4f6; --ebc-muted: #9ca3af; --ebc-border: #374151; --ebc-card: #1f2937; }
}
.ebc-label { display: block; font-weight: 600; margin-bottom: .5rem; }
.ebc-input-group { display: flex; gap: .5rem; flex-wrap: wrap; }
.ebc-input { flex: 1 1 240px; min-width: 0; padding: .65rem .85rem; border: 1px solid var(--ebc-border); border-radius: 8px; font-size: 1rem; background: var(--ebc-bg); color: var(--ebc-fg); }
.ebc-input-brand { flex: 0 1 200px; }
.ebc-input:focus-visible, .ebc-btn:focus-visible { outline: 2px solid var(--ebc-primary); outline-offset: 1px; }
.ebc-btn { padding: .65rem 1.1rem; border-radius: 8px; border: 1px solid var(--ebc-border); font-size: 1rem; cursor: pointer; background: var(--ebc-bg); color: var(--ebc-fg); display: inline-flex; align-items: center; gap: .5rem; }
.ebc-btn-primary { background: var(--ebc-primary); border-color: var(--ebc-primary); color: #fff; font-weight: 600; }
.ebc-btn-primary:disabled { opacity: .7; cursor: not-allowed; }
.ebc-btn-ghost { background: transparent; }
.ebc-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: ebc-spin .7s linear infinite; }
@keyframes ebc-spin { to { transform: rotate(360deg); } }
.ebc-example { margin: .5rem 0 0; font-size: .85rem; color: var(--ebc-muted); }
.ebc-example-link { background: none; border: none; padding: 0; color: var(--ebc-primary); text-decoration: underline; cursor: pointer; font-size: inherit; }
.ebc-caveat { margin: .75rem 0 0; padding: .65rem .85rem; font-size: .82rem; line-height: 1.45; color: var(--ebc-muted); background: var(--ebc-card); border: 1px solid var(--ebc-border); border-radius: 8px; }
.ebc-error { margin-top: .75rem; padding: .75rem 1rem; border-radius: 8px; background: rgba(220,38,38,.1); color: var(--ebc-bad); font-size: .9rem; }

.ebc-progress { margin-top: 1.25rem; }
.ebc-progress-bar { height: 8px; background: var(--ebc-border); border-radius: 999px; overflow: hidden; }
.ebc-progress-bar span { display: block; height: 100%; width: 0; background: var(--ebc-primary); transition: width .3s; }
.ebc-progress-text { margin: .4rem 0 0; font-size: .85rem; color: var(--ebc-muted); }

.ebc-results { margin-top: 2rem; }
.ebc-summary-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ebc-score-circle { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.ebc-score-good { background: var(--ebc-ok); } .ebc-score-ok { background: var(--ebc-warn); } .ebc-score-bad { background: var(--ebc-bad); }
.ebc-results-title { margin: 0; font-size: 1.2rem; }
.ebc-results-url { margin: .15rem 0 0; color: #fff; font-size: .9rem; word-break: break-word; }
.ebc-results-note { margin: .15rem 0 0; color: #fff; font-size: .8rem; word-break: break-word; }
.ebc-actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.ebc-details { margin-bottom: 1.25rem; font-size: .88rem; }
.ebc-details summary { cursor: pointer; color: #fff; }
.ebc-list { margin: .5rem 0 0; padding-left: 1.2rem; color: #fff;}

.ebc-checks { display: grid;grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.ebc-card { background: var(--ebc-card); border: 1px solid var(--ebc-border); border-left: 4px solid var(--ebc-border); border-radius: 8px; padding: .85rem 1rem; }
.ebc-card-pass { border-left-color: var(--ebc-ok); } .ebc-card-warn { border-left-color: var(--ebc-warn); }
.ebc-card-fail { border-left-color: var(--ebc-bad); } .ebc-card-info { border-left-color: var(--ebc-info); }
.ebc-card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ebc-card-title { margin: 0; font-size: 1rem; }
.ebc-pill { flex-shrink: 0; padding: .15rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; color: #fff; background: var(--ebc-muted); }
.ebc-pill-pass { background: var(--ebc-ok); } .ebc-pill-warn { background: var(--ebc-warn); } .ebc-pill-fail { background: var(--ebc-bad); } .ebc-pill-info { background: var(--ebc-info); }
.ebc-card-detail { margin: .4rem 0 0; font-size: .9rem; line-height: 1.5; }
.ebc-signals { margin-top: .7rem; display: flex; flex-direction: column; gap: .35rem; }
.ebc-signal { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem .6rem; background: var(--ebc-bg); border: 1px solid var(--ebc-border); border-radius: 6px; }
.ebc-chip { flex-shrink: 0; min-width: 4.2rem; text-align: center; padding: .1rem .4rem; border-radius: 5px; font-size: .7rem; font-weight: 700; color: #fff; background: var(--ebc-muted); }
.ebc-chip-match { background: var(--ebc-ok); } .ebc-chip-partial { background: var(--ebc-warn); } .ebc-chip-differs { background: var(--ebc-bad); } .ebc-chip-info { background: var(--ebc-info); }
.ebc-signal-main { min-width: 0; flex: 1; }
.ebc-signal-source { font-size: .74rem; color: var(--ebc-muted); }
.ebc-signal-value { font-size: .88rem; word-break: break-word; }
.ebc-items { margin: .6rem 0 0; padding-left: 1.2rem; font-size: .85rem; line-height: 1.5; word-break: break-word; }
.ebc-tip { margin: .6rem 0 0; font-size: .84rem; color: var(--ebc-muted); line-height: 1.5; }

@media (max-width: 480px) {
	.ebc-actions { margin-left: 0; width: 100%; }
	.ebc-summary-row { flex-direction: column; align-items: flex-start; }
	.ebc-input-brand { flex: 1 1 100%; }
}
@media print {
	.ebc-input-row, .ebc-actions, .ebc-progress { display: none !important; }
}
