/*! CSS Portal — CSS Analyzer (builds on code-tool.css and generator-tool.css) */
.ca { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ca [hidden] { display: none !important; }
.ca span, .ca small, .ca b, .ca i, .ca em, .ca code { line-height: inherit; }
.ca code { font-family: var(--ct-mono); font-size: .88em; }
.ca :not(pre) > code { padding: 1px 5px; border-radius: 5px; background: var(--ct-surface-2); color: var(--ct-text); overflow-wrap: anywhere; }
.ca .gt-card__head h2 { margin: 0; }
.ca-pane .ce { height: clamp(260px, 40vh, 460px); }

.ca-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.ca-stats:empty { display: none; }
.ca-stat { display: grid; gap: 1px; padding: 10px 14px; background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 10px; min-width: 0; }
.ca-stat b { font-size: 22px; font-weight: 700; color: var(--ct-text); font-variant-numeric: tabular-nums; }
.ca-stat span { font-size: 12.5px; color: var(--ct-muted); }
.ca-empty { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 16px; font-size: 14px; color: var(--ct-muted); background: var(--ct-surface); border: 1px dashed var(--ct-border-strong); border-radius: var(--ct-radius); }

.ca-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ca-panel { min-width: 0; }
.ca-panel.is-wide { grid-column: 1 / -1; }
.ca-body { padding: 14px 16px; font-size: 14px; color: var(--ct-text); }
.ca-count { padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--ct-accent); background: var(--ct-accent-soft); }
.ca-none { margin: 0; font-size: 13.5px; color: var(--ct-muted); }
.ca-note { margin: 0 0 10px; font-size: 13.5px; color: var(--ct-muted); }
.ca-note b { color: var(--ct-text); font-variant-numeric: tabular-nums; }
.ca-sub { margin: 14px 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ct-muted); }
.ca-sub:first-child { margin-top: 0; }

.ca-find { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ca-find li { display: flex; gap: 10px; align-items: baseline; margin: 0; font-size: 14px; line-height: 1.6; }
.ca-find li > span:last-child { min-width: 0; }
.ca-find a { color: var(--ct-accent); }
.ca-tag { flex: none; display: inline-block; min-width: 62px; padding: 1px 8px; text-align: center; border-radius: 99px; font-size: 11px; font-weight: 700; }
.ca-tag.is-warn { color: var(--ct-warn); background: color-mix(in srgb, var(--ct-warn) 14%, transparent); }
.ca-tag.is-bad { color: var(--ct-err); background: color-mix(in srgb, var(--ct-err) 12%, transparent); }
.ca-tag.is-ok { color: var(--ct-ok); background: color-mix(in srgb, var(--ct-ok) 14%, transparent); }
.ca-tag.is-info { color: var(--ct-accent); background: var(--ct-accent-soft); }

.ca-sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ca-sw > div { display: grid; min-width: 0; font-size: 12px; }
.ca-sw i { display: block; height: 36px; margin-bottom: 5px; border-radius: 8px; border: 1px solid var(--ct-border); background-image: none; }
.ca-sw code { display: block; padding: 0 !important; background: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-sw small { color: var(--ct-muted); }

.ca-bars { display: grid; gap: 8px; }
.ca-bar { display: grid; grid-template-columns: minmax(80px, 150px) minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 13px; }
.ca-bar__k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ct-mono); }
.ca-bar a { color: var(--ct-accent); text-decoration: none; }
.ca-bar a:hover { text-decoration: underline; }
.ca-track { display: block; height: 10px; background: var(--ct-surface-2); border-radius: 99px; overflow: hidden; }
.ca-track i { display: block; height: 100%; background: var(--ct-accent); border-radius: 99px; }
.ca-bar em { font-style: normal; text-align: right; color: var(--ct-muted); font-variant-numeric: tabular-nums; }

.ca-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ca-chip { padding: 3px 9px; font: 600 12.5px var(--ct-mono); color: var(--ct-text); background: var(--ct-surface-2); border-radius: 6px; overflow-wrap: anywhere; }
.ca-chip small { font-weight: 500; color: var(--ct-muted); }
.ca-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ca-list li { display: flex; justify-content: space-between; gap: 10px; margin: 0; font-size: 13px; }
.ca-list small { color: var(--ct-muted); }

.ca-scroll { overflow-x: auto; }
.ca-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ca-table th { padding: 6px 8px; text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ct-muted); border-bottom: 1px solid var(--ct-border); }
.ca-table td { padding: 7px 8px; vertical-align: top; border-bottom: 1px solid var(--ct-border); color: var(--ct-text); }
.ca-table tr:last-child td { border-bottom: 0; }
.ca-spec { white-space: nowrap; }
.ca-spec span { display: inline-block; min-width: 22px; margin-right: 3px; padding: 1px 0; text-align: center; font: 600 12.5px var(--ct-mono); border-radius: 5px; background: var(--ct-surface-2); }
.ca-spec span:first-child { color: var(--ct-err); }
.ca-spec span:nth-child(2) { color: var(--ct-accent); }

@media (max-width: 900px) { .ca-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
	.ca-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ca-stat { padding: 8px 12px; }
	.ca-stat b { font-size: 18px; }
	.ca-body { padding: 12px; }
	.ca-find li { flex-direction: column; gap: 4px; }
	.ca-bar { grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) 28px; }
}
