.cp { --cp-line: #e1e8f1; --cp-muted: #6b7b92; display: grid; gap: 18px; color: #192841; animation: cp-enter .23s ease-out; }
.cp [hidden] { display: none !important; }
.cp-heading, .cp-heading > div:last-child, .cp-section-head, .cp-project-head, .cp-project footer { display: flex; align-items: center; gap: 10px; }
.cp-heading, .cp-section-head { justify-content: space-between; }
.cp-heading h1 { margin: 4px 0 0; font-size: clamp(25px, 3vw, 34px); }
.cp-heading p { margin: 8px 0 0; color: var(--cp-muted); }
.cp-eyebrow { color: #5274b8; font-size: 12px; font-weight: 700; }
.cp-hint { color: var(--cp-muted, #6b7b92); font-size: 12px; line-height: 1.8; margin: 0; }
.cp-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; align-items: start; }
.cp-panel { min-width: 0; border: 1px solid var(--cp-line); border-radius: 14px; padding: 21px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.cp-project.selected { border-color: #aec6f1; box-shadow: 0 3px 15px #315fa110; }
.cp-project h2 { margin: 0 0 5px; font-size: 20px; }
.cp-project-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: #eaf1ff; color: #5579c2; font-size: 25px; flex: none; }
.cp-issue-count { margin-left: auto; border-radius: 6px; padding: 5px 8px; background: #fff0ed; color: #b05b4d; font-size: 11px; white-space: nowrap; }
.cp-project-description { color: #6b7b92; font-size: 13px; line-height: 1.8; margin: 15px 0 9px; white-space: pre-wrap; }
.cp-path { overflow-wrap: anywhere; font-size: 11px; background: #f5f7fb; color: #6b7b92; padding: 9px; border-radius: 8px; }
.cp-repo-list { display: grid; gap: 10px; margin: 18px 0; }
.cp-repo-list > div, .cp-repo-list > div > span { display: flex; align-items: center; gap: 7px; }
.cp-repo-list > div { justify-content: space-between; font-size: 13px; }
.cp-repo-list > div > span { min-width: 0; overflow-wrap: anywhere; }
.cp-repo-list small { flex: none; color: #6b7b92; font-size: 11px; }
.cp-main-badge { background: #eaf1ff; color: #4c70b3; border-radius: 5px; padding: 3px 5px; font-size: 9px; flex: none; }
.cp-repo-dot { color: #879fc4; width: 37px; text-align: center; flex: none; }
.cp-project-result { border-top: 1px solid #edf1f7; padding-top: 15px; display: grid; gap: 7px; min-height: 52px; }
.cp-project-result button { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-project footer { margin-top: 16px; flex-wrap: wrap; }
.cp-project footer > .cp-text { margin-left: auto; }
.cp-badge { display: inline-block; width: fit-content; padding: 3px 8px; border-radius: 5px; background: #edf1f8; color: #697d9c; font-size: 11px; font-weight: 650; }
.cp-badge.issues, .cp-badge.failed { background: #fceceb; color: #ab5454; }
.cp-badge.clear { background: #e8f6ef; color: #33795e; }
.cp-badge.incomplete { background: #fff5df; color: #9a7a35; }
.cp-badge.running, .cp-badge.queued { background: #eaf1ff; color: #4a71bc; }
.cp-badge.running::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 5px; background: currentColor; animation: cp-pulse 1.8s ease-in-out infinite; }
.cp-text { border: 0; background: transparent; padding: 0; color: #486cb6; font-size: 12px; cursor: pointer; }
.cp-text:hover { color: #244e9f; text-decoration: underline; }
.cp-section-head { margin: 4px 0 16px; flex-wrap: wrap; }
.cp-section-head h2, .cp-section-head h3 { font-size: 17px; margin: 0; }
.cp-history-row { border: 0; border-bottom: 1px solid #edf1f7; background: none; display: flex; align-items: center; gap: 15px; justify-content: space-between; text-align: left; padding: 16px 0; width: 100%; color: inherit; transition: background .18s; }
.cp-history-row:hover { background: #f8faff; }
.cp-history-row > div { display: grid; gap: 7px; min-width: 0; }
.cp-history-row strong { font-size: 14px; overflow-wrap: anywhere; }
.cp-history-row small, .cp-history-row > span { color: #6b7b92; font-size: 11px; }
.cp-history-row > span { flex: none; }
.cp-more { width: 100%; margin-top: 14px; }
.cp-error { font-size: 13px; color: #ad4e55; line-height: 1.8; }
.cp-error:empty { display: none; }
.cp-empty { padding: 32px 12px; text-align: center; font-size: 13px; line-height: 1.8; color: #6b7b92; }
.cp button:disabled, .cp-dialog button:disabled { opacity: .55; cursor: not-allowed; }
.cp button, .cp-dialog button { cursor: pointer; }
.cp-dialog { --cp-line: #e1e8f1; --cp-muted: #6b7b92; border: 0; border-radius: 16px; padding: 0; width: min(860px, calc(100% - 28px)); max-height: 89dvh; color: #192841; box-shadow: 0 22px 80px #18345540; }
.cp-dialog[open] { display: flex; flex-direction: column; animation: cp-enter .2s ease-out; }
.cp-dialog::backdrop { background: #13264277; backdrop-filter: blur(3px); }
.cp-dialog.closing { animation: cp-exit .15s ease-in forwards; }
.cp-dialog > header, .cp-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; flex: none; }
.cp-dialog > header { border-bottom: 1px solid var(--cp-line); }
.cp-dialog > footer { border-top: 1px solid var(--cp-line); justify-content: flex-end; flex-wrap: wrap; }
.cp-dialog h2 { font-size: 18px; margin: 0; }
.cp-dialog header button { border: 0; background: none; color: #71849e; font-size: 25px; }
.cp-dialog-body { padding: 20px 22px; overflow-y: auto; min-height: 0; }
.cp-dialog form { display: grid; gap: 14px; }
.cp-dialog label { display: grid; gap: 6px; font-size: 13px; }
.cp-dialog input, .cp-dialog textarea { min-width: 0; }
.cp-dialog textarea { resize: vertical; }
.cp-form-grid { display: grid; gap: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-full { grid-column: 1 / -1; }
.cp-dialog .cp-check { display: flex; gap: 7px; align-items: center; font-size: 12px; }
.cp-check input { accent-color: #5076c0; }
.cp-repo-settings { display: grid; gap: 10px; }
.cp-repo-settings fieldset { padding: 13px; border: 1px solid var(--cp-line); border-radius: 10px; min-width: 0; margin: 0; background: #f9fbff; transition: opacity .18s, background .18s; }
.cp-repo-settings fieldset.inactive { background: #fff; color: #91a0b6; }
.cp-repo-settings fieldset > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cp-repo-settings fieldset > div > label:first-child { margin-right: auto; }
.cp-review-heading h3 { font-size: 21px; margin: 13px 0 5px; }
.cp-review-heading p { color: #6b7b92; font-size: 12px; }
.cp-review-heading strong { font-size: 14px; overflow-wrap: anywhere; }
.cp-summary { font-size: 14px; line-height: 1.9; white-space: pre-wrap; margin: 20px 0; }
.cp-coverage { margin: 17px 0 24px; border-radius: 10px; background: #f4f7fc; padding: 12px; font-size: 12px; color: #627895; }
.cp-coverage summary { cursor: pointer; }
.cp-coverage p { line-height: 1.8; overflow-wrap: anywhere; }
.cp-coverage code { margin-left: 12px; font-size: 11px; }
.cp-finding { border: 1px solid #f0d7d1; border-left: 3px solid #d28171; padding: 16px; border-radius: 11px; margin-top: 14px; animation: cp-enter .2s ease-out; }
.cp-finding.handled { border-color: #e1e8f1; opacity: .8; }
.cp-finding-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cp-severity { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 5px; background: #f2f4fa; color: #6c7d98; }
.cp-severity.p0, .cp-severity.p1 { background: #fce8e5; color: #b14943; }
.cp-severity.p2 { background: #fff2de; color: #a17d3c; }
.cp-finding h4 { font-size: 16px; margin: 12px 0 7px; overflow-wrap: anywhere; }
.cp-location { font-size: 11px; color: #6b7b92; overflow-wrap: anywhere; }
.cp-finding dt { color: #6b7b92; font-size: 11px; margin-top: 12px; }
.cp-finding dd { margin: 4px 0 0; font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.cp-finding-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cp-finding-actions select { width: auto; font-size: 12px; }
.cp-notification { display: grid; grid-template-columns: 1fr auto; gap: 8px; width: 100%; text-align: left; border: 1px solid #e7edf5; background: #fff; border-radius: 11px; padding: 16px; color: #526b90; margin-top: 11px; transition: background .18s; }
.cp-notification.unread { background: #f3f7ff; border-color: #cadbf6; }
.cp-notification:hover { background: #edf3ff; }
.cp-notification > span:first-child, .cp-notification small { font-size: 11px; }
.cp-notification strong { font-size: 13px; font-weight: 500; line-height: 1.7; grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-notification small { grid-column: 1 / -1; color: #8595ac; }
@keyframes cp-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cp-exit { to { opacity: 0; transform: translateY(5px); } }
@keyframes cp-pulse { 50% { opacity: .35; } }
@media (max-width: 650px) { .cp-heading { align-items: flex-start; flex-direction: column; } .cp-heading p { font-size: 13px; line-height: 1.8; } .cp-panel { padding: 16px; } .cp-form-grid { grid-template-columns: 1fr; } .cp-dialog-body { padding: 16px; } .cp-history-row { align-items: flex-start; } .cp-dialog > header, .cp-dialog > footer { padding: 14px 16px; } }
@media (prefers-reduced-motion: reduce) { .cp, .cp *, .cp-dialog, .cp-dialog * { animation: none !important; transition: none !important; } }
