/* Commit reviews use a short reading path, with evidence available in place. */
#commit-reviews-pane { padding: 0 clamp(20px, 3.2vw, 48px) 56px; background: var(--bg); }
.cr-page-topbar { display: flex; align-items: center; gap: 22px; min-height: 65px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.cr-page-topbar > span { font-size: 11px; color: var(--text-soft); }
.cr-page-topbar > span > span { padding: 0 9px; color: var(--border-strong); }
.cr-page-topbar #cr-refresh { margin-left: auto; display: inline-flex; gap: 7px; align-items: center; font-size: 11px; }
.cr-page-topbar .ic { width: 14px; height: 14px; }
.cr-page-topbar #cr-back { font-size: 12px; flex: none; }
.cr-head { justify-content: space-between; align-items: center; gap: 20px; }
.cr-head h1 { font-size: 33px; font-weight: 550; letter-spacing: -.04em; line-height: 1.2; margin: 0; }
.cr-eyebrow { margin: 0 0 9px; color: var(--text-soft); font-size: 9px; letter-spacing: .11em; font-weight: 550; }
.cr-intro { font-size: 13px; line-height: 1.7; margin: 10px 0 0; color: var(--text-soft); }
.cr-head > button { flex: none; font-size: 12px; }
.cr-toolbar { gap: 16px; margin: 24px 0 18px; align-items: end; }
.cr-toolbar > label { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; color: var(--text-soft); font-size: 10px; }
.cr-toolbar select { min-width: 180px; max-width: 340px; font: inherit; font-size: 12px; border-color: var(--border); }
.cr-toolbar .cr-for-me { flex-direction: row; align-items: center; align-self: center; margin: 16px 0 0 auto; font-size: 12px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); }
#commit-reviews-pane input[type='checkbox'] { accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.cr-overview { margin: 0 0 20px; gap: 12px; }
.cr-overview > div { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 2px 12px; padding: 18px; border-radius: 10px; }
.cr-overview strong { grid-column: 2; font-size: 24px; font-weight: 550; margin: 0; line-height: 1.25; }
.cr-overview span:not(.cr-stat-icon) { grid-column: 2; font-size: 10px; line-height: 1.6; }
.cr-overview .cr-stat-icon { grid-row: 1 / 3; display: grid; place-items: center; align-self: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent-tint); color: var(--accent); }
.cr-stat-icon .ic { width: 17px; height: 17px; }
.cr-operations { padding: 0; margin: 0 0 28px; border-radius: 10px; }
.cr-operations > summary { display: flex; align-items: center; gap: 12px; list-style: none; padding: 17px 20px; }
.cr-operations > summary::-webkit-details-marker { display: none; }
.cr-operations-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px; color: var(--accent); flex: none; }
.cr-operations-icon .ic { width: 17px; height: 17px; }
.cr-operations > summary strong { display: block; font-size: 12px; font-weight: 550; line-height: 1.6; }
.cr-operations > summary small { display: block; font-size: 10px; font-weight: 400; color: var(--text-soft); margin-top: 3px; }
.cr-operations-toggle { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--text-soft); font-size: 11px; }
.cr-operations[open] .cr-operations-toggle > span { transform: rotate(180deg); }
.cr-operations-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--border); }
.cr-reconciliation, .cr-gate-settings { padding: 22px; min-width: 0; }
.cr-gate-settings { border-left: 1px solid var(--border); }
.cr-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cr-section-heading h3 { font-size: 15px; font-weight: 550; letter-spacing: -.02em; margin: 0; }
.cr-section-heading .cr-eyebrow { font-size: 8px; margin-bottom: 6px; }
.cr-neutral-badge { display: inline-block; font-size: 10px; font-weight: 400; color: var(--text-soft); background: var(--bg-soft); padding: 4px 8px; border: 1px solid var(--border); border-radius: 5px; white-space: nowrap; }
.cr-caption { font-size: 11px; line-height: 1.75; color: var(--text-soft); }
.cr-coverage-list { display: grid; gap: 8px; margin: 16px 0; }
.cr-coverage-branch { border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.cr-coverage-branch > summary { padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; font-size: 12px; }
.cr-coverage-branch > summary > span:first-child { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.cr-coverage-branch > summary .ic { width: 14px; height: 14px; flex: none; color: var(--text-soft); }
.cr-coverage-branch > div { padding: 0 12px 12px; border-top: 1px solid var(--border-soft); }
.cr-coverage-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cr-coverage-meta dt { font-size: 10px; color: var(--text-soft); margin-bottom: 6px; }
.cr-coverage-meta dd { margin: 0; font-size: 11px; overflow-wrap: anywhere; }
.cr-rescan { margin-top: 16px; }
.cr-rescan label { display: block; font-size: 11px; }
.cr-rescan label small { display: block; margin-top: 5px; font-size: 10px; color: var(--text-soft); }
.cr-rescan > div { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 11px; color: var(--text-soft); }
.cr-rescan button { margin-left: auto; font-size: 11px; }
#commit-reviews-pane input[type='number'] { box-sizing: border-box; width: 65px; padding: 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; font-size: 12px; }
.cr-policy-help { font-size: 11px; color: var(--text-soft); line-height: 1.7; margin-top: 18px; }
.cr-policy-help summary { cursor: pointer; color: var(--text); }
.cr-gate-settings .cr-settings { border: 0; background: none; padding: 0; margin: 18px 0; border-radius: 0; }
.cr-option { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 12px; cursor: pointer; }
.cr-option input { margin-top: 2px; }
.cr-option strong { display: block; font-weight: 550; }
.cr-option small { display: block; line-height: 1.7; margin-top: 4px; }
#commit-reviews-pane textarea { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 12px; line-height: 1.7; resize: vertical; min-height: 85px; }
#commit-reviews-pane textarea:focus, #commit-reviews-pane input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cr-gate-settings .field-label { font-size: 11px; font-weight: 550; }
.cr-gate-settings .cr-settings > small { display: block; font-size: 10px; margin-top: 6px; line-height: 1.7; }
.cr-gate-settings .row button { font-size: 11px; }
.cr-ci-connection { font-size: 11px; border-top: 1px solid var(--border); padding-top: 15px; }
.cr-ci-connection summary { cursor: pointer; }
.cr-ci-connection summary > span { display: block; font-size: 10px; margin: 7px 0 0 15px; color: var(--text-soft); }
.cr-ci-connection code { display: block; padding: 12px; background: var(--bg-soft); border-radius: 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
.cr-token-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-token-actions button { font-size: 11px; }
.cr-stream-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin: 25px 0 15px; }
.cr-stream-heading h2 { margin: 0; font-size: 19px; font-weight: 550; letter-spacing: -.02em; }
.cr-stream-heading > span { color: var(--text-soft); font-size: 11px; }
.cr-report { padding: 0; margin: 0 0 16px; border-radius: 12px; overflow: hidden; }
.cr-report.unread { border-left: 1px solid var(--border); box-shadow: inset 3px 0 var(--accent); }
.cr-report-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 22px 0; }
.cr-report-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 10px; color: var(--text-soft); margin-right: auto; }
.cr-commit-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--accent-tint); color: var(--accent); }
.cr-commit-icon .ic { width: 14px; height: 14px; }
.cr-branch { background: var(--bg-soft); padding: 3px 7px; border-radius: 4px; overflow-wrap: anywhere; }
.cr-check, .cr-unread { font-size: 9px; border: 0; border-radius: 5px; padding: 5px 8px; line-height: 1.5; }
.cr-unread { background: var(--accent-tint); color: var(--accent); }
.cr-failing { color: #9f3a35; background: #f9ece9; }
.cr-passing { color: var(--accent); background: var(--accent-tint); }
.cr-pending, .cr-unknown { color: var(--text-soft); background: var(--bg-soft); }
.cr-report-copy { padding: 4px 22px 18px; }
.cr-report h2 { font-size: 18px; font-weight: 550; letter-spacing: -.02em; margin: 14px 0 10px; }
.cr-report h2 a { color: var(--text); text-decoration: none; }
.cr-report h2 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.cr-meta { font-size: 10px; gap: 10px; }
.cr-meta code { border: 1px solid var(--border); padding: 2px 5px; border-radius: 4px; }
.cr-report .cr-plain-summary { font-size: 12px; line-height: 1.85; margin: 15px 0 12px; color: var(--text); max-width: 1000px; }
.cr-findings-preview { display: flex; align-items: center; gap: 8px; color: var(--attn-text); background: var(--attn-bg); border-radius: 6px; padding: 9px 11px; font-size: 11px; line-height: 1.7; }
.cr-findings-preview .ic { width: 15px; height: 15px; flex: none; }
.cr-findings-preview b { font-weight: 550; }
.cr-report .cr-report-note { color: var(--text-soft); font-size: 10px; margin: 0; }
.cr-report details.cr-report-detail { margin: 0; }
.cr-report-detail > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; padding: 13px 22px; background: var(--bg-soft); border-top: 1px solid var(--border); font-size: 11px; font-weight: 550; }
.cr-report-detail > summary::-webkit-details-marker { display: none; }
.cr-detail-meta { display: inline-flex; align-items: center; gap: 12px; font-size: 10px; color: var(--text-soft); font-weight: 400; }
.cr-detail-chevron { display: inline-block; font-size: 16px; }
.cr-report-detail[open] .cr-detail-chevron { transform: rotate(180deg); }
.cr-report-body { padding: 24px 22px; border-top: 1px solid var(--border); }
.cr-report-body h3 { font-size: 15px; font-weight: 550; margin: 0; }
.cr-report-body h4 { font-size: 12px; font-weight: 550; margin: 20px 0 12px; }
.cr-evidence-list { list-style: none; padding: 0 !important; }
.cr-evidence-list li { display: flex; gap: 10px; padding: 10px 0; margin: 0 !important; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.cr-evidence-list li > span { color: var(--accent); margin-top: 2px; }
.cr-evidence-list .ic { width: 15px; height: 15px; }
.cr-evidence-list li p { margin: 0 0 5px; }
.cr-evidence-list small { font-size: 10px; }
.cr-citations { color: var(--text-soft); font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.cr-citations a { font-size: 10px; }
.cr-finding { margin: 10px 0; border: 1px solid var(--border); border-radius: 8px; padding: 15px; background: var(--bg); }
.cr-finding header { display: flex; align-items: baseline; gap: 9px; font-size: 12px; }
.cr-severity { color: var(--attn-text); background: var(--attn-bg); padding: 3px 6px; font-size: 9px; border-radius: 4px; text-transform: capitalize; }
.cr-finding p { font-size: 12px; }
.cr-finding p b { display: block; font-weight: 550; margin-bottom: 3px; font-size: 10px; color: var(--text-soft); }
.cr-finding-check { border-top: 1px solid var(--border); padding-top: 12px; }
.cr-analysis-notes { background: var(--bg-soft); border-radius: 7px; padding: 13px 16px; margin-top: 18px; font-size: 11px; color: var(--text-soft); }
.cr-analysis-notes h4 { margin: 0 0 8px; }
.cr-impact { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 22px; font-size: 12px; }
.cr-report .cr-file-evidence { border: 1px solid var(--border); border-radius: 8px; margin: 22px 0; }
.cr-file-evidence > summary { display: flex; justify-content: space-between; gap: 10px; padding: 14px; font-size: 12px; font-weight: 550; }
.cr-file-evidence > summary span { font-size: 10px; color: var(--text-soft); font-weight: 400; }
.cr-file-evidence > div { padding: 0 15px 15px; border-top: 1px solid var(--border); }
.cr-files { padding: 0 !important; list-style: none; }
.cr-files li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 11px; }
.cr-files li code { flex: 1; overflow-wrap: anywhere; }
.cr-files li > span { font-size: 10px; }
.cr-additions { color: var(--accent); font-weight: 400; }
.cr-readiness { border-top: 1px solid var(--border); padding-top: 23px; margin-top: 23px; }
.cr-recorded-decision { padding: 12px 15px; background: var(--bg-soft); border-radius: 7px; margin: 16px 0; font-size: 12px; }
.cr-recorded-decision small { font-size: 10px; color: var(--text-soft); }
.cr-decision-controls > label { display: block; margin: 16px 0 8px; font-size: 12px; font-weight: 550; }
.cr-decision-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.cr-decision-actions button { font-size: 12px; }
.cr-deployment-check { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--border); border-radius: 8px; padding: 15px; margin-top: 22px; }
.cr-deployment-check strong { font-size: 12px; font-weight: 550; }
.cr-deployment-check p { margin: 5px 0 0; color: var(--text-soft); font-size: 11px; }
.cr-deployment-check button { flex: none; font-size: 11px; }
.cr-readiness-result { font-size: 12px; border-radius: 7px; padding: 12px 15px; margin-top: 12px; background: var(--bg-soft); }
.cr-revision-notes > summary { font-size: 10px !important; color: var(--text-soft); font-weight: 400 !important; }
.cr-report-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--border); color: var(--text-soft); font-size: 10px; }
.cr-report-footer button { font-size: 11px; }
.cr-warning { border: 1px solid var(--border); border-left: 3px solid var(--attn-text); border-radius: 7px; background: var(--attn-bg); font-size: 11px; }
.cr-soft-empty { color: var(--text-soft); font-size: 12px; line-height: 1.8; padding: 24px; text-align: center; border: 1px dashed var(--border); border-radius: 8px; background: var(--bg); }
.cr-soft-empty h3 { font-size: 16px; color: var(--text); margin: 12px 0 7px; font-weight: 550; }
.cr-soft-empty > span .ic { width: 24px; height: 24px; color: var(--accent); }
.cr-page-note { font-size: 10px; color: var(--text-soft); line-height: 1.8; margin: 22px 0 0; }
.cr-settings { border-radius: 10px; font-size: 12px; }
.cr-settings h2 { font-size: 20px; font-weight: 550; }
.cr-settings .cr-delivery-channels { margin: 18px 0; border-radius: 8px; }
.cr-settings .cr-delivery-channels legend { font-size: 12px; font-weight: 550; }
:root[data-theme='dark'] .cr-failing { color: #efaba4; background: #432f2b; }
@media (max-width: 1150px) { .cr-operations-body { grid-template-columns: 1fr; } .cr-gate-settings { border-left: 0; border-top: 1px solid var(--border); } }
@media (max-width: 700px) {
  #commit-reviews-pane { padding: 0 16px 35px; }
  .cr-page-topbar { margin-bottom: 24px; gap: 12px; }
  .cr-page-topbar > span { display: none; }
  .cr-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .cr-head h1 { font-size: 28px; }
  .cr-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 12px; }
  .cr-toolbar > label:not(.cr-for-me) { flex: 1; min-width: 0; }
  .cr-toolbar select { width: 100%; min-width: 0; max-width: 100%; }
  .cr-toolbar .cr-for-me { grid-column: 1 / -1; justify-self: start; margin: 0; }
  .cr-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .cr-overview > div { display: flex; flex-direction: column; align-items: flex-start; padding: 12px; gap: 6px; }
  .cr-overview .cr-stat-icon { display: none; }
  .cr-overview strong { font-size: 23px; }
  .cr-overview span:not(.cr-stat-icon) { font-size: 9px; }
  .cr-operations > summary { padding: 15px; gap: 10px; }
  .cr-operations-icon { display: none; }
  .cr-operations-toggle { font-size: 10px; }
  .cr-reconciliation, .cr-gate-settings { padding: 17px; }
  .cr-report-header { padding: 16px 16px 0; }
  .cr-report-copy { padding: 4px 16px 16px; }
  .cr-report h2 { font-size: 16px; }
  .cr-report-detail > summary { padding: 13px 16px; }
  .cr-report-body { padding: 20px 16px; }
  .cr-detail-meta { font-size: 9px; gap: 8px; }
  .cr-deployment-check { align-items: flex-start; flex-direction: column; gap: 12px; }
  .cr-report-footer { padding: 12px 16px; }
  #commit-reviews-pane textarea { font-size: 16px; }
}
/* Commit conversations stay in context while leaving room for code citations. */
.cr-chat-entry { display: inline-flex; align-items: center; gap: 8px; }
.cr-chat-entry svg { width: 17px; height: 17px; }
dialog.cr-chat-dialog { box-sizing: border-box; width: min(820px, calc(100vw - 40px)); max-width: none; height: min(850px, calc(100dvh - 48px)); max-height: none; padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); color: var(--text); overflow: hidden; box-shadow: var(--shadow-2); }
dialog.cr-chat-dialog[open] { display: flex; flex-direction: column; }
.cr-chat-dialog::backdrop { background: rgb(14 26 22 / 40%); backdrop-filter: blur(3px); }
.cr-chat-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px 16px; background: var(--card); flex: none; }
.cr-chat-heading .cr-eyebrow { margin: 0 0 6px; font-size: 10px; }
.cr-chat-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.7px; }
.cr-chat-heading button { display: flex; padding: 8px; }
.cr-chat-heading button svg { width: 18px; height: 18px; }
.cr-chat-context { background: var(--card); border-bottom: 1px solid var(--border); padding: 0 28px 18px; flex: none; }
.cr-chat-context > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-soft); margin-bottom: 9px; }
.cr-chat-context strong { display: block; font-size: 13px; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
.cr-chat-history { flex: 1; min-height: 0; padding: 24px 28px; overflow: auto; overscroll-behavior: contain; }
.cr-chat-welcome { max-width: 560px; margin: 22px auto; }
.cr-chat-agent-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; color: var(--accent); }
.cr-chat-agent-icon svg { width: 23px; height: 23px; }
.cr-chat-welcome h3 { font-size: 26px; letter-spacing: -.8px; margin: 18px 0 10px; }
.cr-chat-welcome p { color: var(--text-soft); line-height: 1.75; font-size: 13px; margin: 0 0 20px; }
.cr-chat-welcome > div { display: grid; gap: 9px; }
.cr-chat-welcome button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); padding: 13px 15px; font: 12px/1.6 var(--font-ui); text-align: left; cursor: pointer; }
.cr-chat-welcome button:hover { border-color: var(--accent); }
.cr-chat-welcome button span { color: var(--accent); }
.cr-chat-exchange + .cr-chat-exchange { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.cr-chat-human { width: fit-content; max-width: 90%; margin: 0 0 23px auto; padding: 12px 17px; border: 1px solid var(--border); border-radius: 12px 12px 3px 12px; background: var(--bg-soft); }
.cr-chat-human > span { font-size: 10px; color: var(--text-soft); }
.cr-chat-human p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
.cr-chat-byline { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 12px; }
.cr-chat-byline svg { width: 17px; height: 17px; color: var(--accent); }
.cr-chat-byline span { color: var(--text-soft); font-size: 10px; margin-left: auto; }
.cr-chat-answer .markdown-body { box-sizing: border-box; padding: 0; margin: 0; max-width: none; font-family: var(--font-ui); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; animation: none; }
.cr-chat-answer .markdown-body p, .cr-chat-answer .markdown-body ul, .cr-chat-answer .markdown-body ol, .cr-chat-answer .markdown-body pre, .cr-chat-answer .markdown-body table { margin: 0 0 12px; }
.cr-chat-answer .markdown-body h1, .cr-chat-answer .markdown-body h2, .cr-chat-answer .markdown-body h3 { margin: 18px 0 8px; padding: 0; border: 0; }
.cr-chat-answer .markdown-body > h1:first-of-type + p::first-letter { float: none; margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; color: inherit; }
.cr-chat-answer .markdown-body pre { max-width: 100%; overflow: auto; }
.cr-chat-answer .markdown-body table { display: block; overflow: auto; }
.cr-chat-answer .markdown-body img { max-width: 100%; }
.cr-chat-answer .markdown-body h1, .cr-chat-answer .markdown-body h2 { font-size: 20px; }
.cr-chat-plain { white-space: pre-wrap; }
.cr-chat-sources { color: var(--text-soft); font-size: 11px; margin: 0 0 14px; }
.cr-chat-sources summary { cursor: pointer; }
.cr-chat-sources ul { padding-left: 20px; line-height: 1.8; }
.cr-chat-failure { padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; font-size: 12px; line-height: 1.7; }
.cr-chat-failure p { margin: 0 0 10px; }
.cr-chat-status { flex: none; padding: 0 28px; color: var(--text-soft); font-size: 11px; line-height: 1.6; }
.cr-chat-status:empty { display: none; }
.cr-chat-composer { flex: none; background: var(--card); padding: 16px 28px 20px; border-top: 1px solid var(--border); }
.cr-chat-composer label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 600; }
.cr-chat-composer textarea { display: block; box-sizing: border-box; width: 100%; min-height: 72px; max-height: 180px; resize: vertical; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; font: 13px/1.6 var(--font-ui); }
.cr-chat-composer textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.cr-chat-composer > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 11px; }
.cr-chat-composer > div > span { font-size: 10px; color: var(--text-soft); }
.cr-chat-composer button { font-size: 12px; display: flex; align-items: center; gap: 14px; }
.cr-chat-earlier { display: block; margin: 0 auto 24px; }
@media (max-width: 600px) {
  dialog.cr-chat-dialog { width: calc(100vw - 16px); height: calc(100dvh - 24px); border-radius: 14px; }
  .cr-chat-heading { padding: 17px 18px 12px; }
  .cr-chat-heading h2 { font-size: 20px; }
  .cr-chat-context { padding: 0 18px 12px; }
  .cr-chat-history { padding: 20px 18px; }
  .cr-chat-welcome { margin: 5px auto; }
  .cr-chat-welcome h3 { font-size: 23px; }
  .cr-chat-composer { padding: 12px 18px 16px; }
  .cr-chat-status { padding-inline: 18px; }
  .cr-chat-composer > div > span { max-width: 135px; }
}
