.ca-tool { min-width: 0; }
.ca-status { scroll-margin-top: 110px; }
.ca-status.is-loading { display: flex; align-items: flex-start; gap: 10px; }
.ca-status .status-spinner { flex: 0 0 18px; margin-top: 2px; }
.ca-status .ca-status-text { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.ca-status.is-loading { flex-wrap: wrap; }
.ca-word-button { position: relative; min-width: 108px; }
.ca-word-button.ca-download-busy { cursor: wait; opacity: .75; }
.ca-word-button .status-spinner { flex: 0 0 18px; border-top-color: var(--accent); }
.ca-download-status { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.ca-tool [hidden] { display: none !important; }
.ca-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ca-form-heading, .ca-start-row, .ca-result-toolbar, .ca-downloads, .ca-progress-row, .ca-history-row, .ca-history-actions, .ca-dialog-actions { display: flex; align-items: center; gap: 12px; }
.ca-form-heading, .ca-result-toolbar, .ca-history-row { justify-content: space-between; }
.ca-form-heading h2, .ca-history h2 { margin: 0; font-size: 22px; }
.ca-tool .button { min-height: 40px; padding: 9px 15px; font-size: 14px; gap: 8px; border-radius: 6px; }
.ca-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 2px; margin: 22px 0; border-bottom: 1px solid var(--line); }
.ca-tab-item { display: flex; flex: 0 0 auto; align-items: center; border-bottom: 3px solid transparent; }
.ca-tab-item:has([aria-selected="true"]) { border-color: var(--accent); }
.ca-tab-item button, .ca-view-tabs button { border: 0; background: transparent; padding: 10px 12px; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.ca-tab-item [aria-selected="true"], .ca-view-tabs [aria-selected="true"] { color: var(--accent); font-weight: 700; }
.ca-tab-item button[data-ca-remove] { width: 30px; padding: 8px; }
.ca-page-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.ca-page-fields label { min-width: 0; font-size: 14px; }
.ca-page-fields input, .ca-page-fields select { min-width: 0; width: 100%; font-size: 16px; }
.ca-field-label { display: flex; align-items: center; gap: 7px; }
.ca-help { flex: 0 0 18px; display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--muted); font-size: 14px; cursor: help; }
.ca-scan-notice { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; margin: 22px 0; background: #eef7f7; border-left: 3px solid var(--accent); font-size: 14px; line-height: 1.6; }
.ca-scan-notice > i { margin-top: 5px; color: var(--accent); }
.ca-scan-notice p { margin: 0; }
.ca-start-row > span { color: var(--muted); font-size: 14px; font-weight: 600; }
.ca-status { margin-top: 22px; padding: 14px 16px; background: #eef7f7; overflow-wrap: anywhere; }
.ca-status.ca-error { color: #a22b39; background: #fff1f2; }
.ca-tool { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.ca-tool > * { min-width: 0; max-width: 100%; }
.ca-tool .ca-form, .ca-results { scroll-margin-top: 100px; }
.ca-results, .ca-history { margin-top: 32px; }
.ca-result-toolbar { flex-wrap: wrap; margin-bottom: 16px; }
.ca-view-tabs { display: flex; border-bottom: 1px solid var(--line); }
.ca-view-tabs [aria-selected="true"] { border-bottom: 2px solid var(--accent); }
.ca-table-scroll { width: 100%; max-height: 75vh; overflow: auto; border: 1px solid var(--line); }
.ca-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.ca-table th, .ca-table td { padding: 12px 14px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); min-width: 175px; background: var(--surface, white); }
.ca-table thead th { position: sticky; top: 0; z-index: 3; background: #edf5f5; }
.ca-table tr > th:first-child { position: sticky; left: 0; z-index: 2; width: 260px; min-width: 230px; max-width: 300px; }
.ca-table thead th:first-child { z-index: 4; }
.ca-table th a { overflow-wrap: anywhere; }
.ca-table th small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 3px; }
.ca-table .ca-group th { background: #e4eeee; padding-top: 10px; padding-bottom: 10px; font-weight: 700; }
.ca-cell summary { cursor: pointer; font-size: 13px; white-space: nowrap; }
.ca-result-good { color: #24724a; }
.ca-result-missing { color: #a33a45; }
.ca-result-unknown { color: #846014; }
.ca-cell .ca-evidence { min-width: 230px; max-width: 320px; }
.ca-evidence { font-size: 14px; overflow-wrap: anywhere; }
.ca-evidence p { margin: 12px 0; line-height: 1.6; }
.ca-evidence-image { display: block; margin-top: 12px; }
.ca-evidence-image img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); }
.ca-context-label, .ca-report-note { color: var(--muted); font-size: 13px; }
.ca-report-group { margin: 28px 0; }
.ca-report-group h2 { font-size: 22px; }
.ca-report-check { border-bottom: 1px solid var(--line); padding: 14px 0; }
.ca-report-check > summary { cursor: pointer; font-weight: 600; }
.ca-report-check > summary span { margin-left: 14px; color: var(--muted); font-size: 13px; font-weight: 400; }
.ca-report-body { max-width: 920px; padding: 10px 0; }
.ca-report-body h3 { margin: 20px 0 8px; font-size: 16px; }
.ca-report-body > p { font-size: 14px; line-height: 1.7; }
.ca-report-body .ca-evidence-image img { max-height: 720px; width: auto; }
.ca-competitor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.ca-competitor-example { min-width: 0; }
.ca-history-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ca-history-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.ca-history-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.ca-history-actions { flex: 0 0 auto; gap: 6px; }
.ca-history-actions button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--surface, white); color: var(--accent); cursor: pointer; }
.ca-dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.ca-dialog::backdrop { background: rgb(20 40 45 / 45%); }
.ca-dialog h2 { margin-top: 0; font-size: 23px; }
.ca-dialog p { line-height: 1.6; }
.ca-dialog-actions { justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.ca-tool button:focus-visible, .ca-tool summary:focus-visible, .ca-help:focus-visible { outline: 3px solid #68c4c0; outline-offset: 3px; }
.ca-competitor-tip { margin: 14px 0 20px; max-width: 850px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.ca-start-row { flex-direction: column; align-items: flex-start; gap: 10px; }
.ca-tool .ca-start-row .button { width: 100%; }
.ca-tool .ca-start-row .button { min-height: 48px; padding: 13px 24px; font-size: 16px; }
.ca-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.ca-table-heading h2 { margin: 0; font-size: 20px; }
.ca-icon-button { display: inline-grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; color: var(--accent); background: white; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.ca-cell summary { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; min-height: 32px; padding: 5px 9px; border: 1px solid currentColor; border-radius: 5px; list-style: none; white-space: normal; font-weight: 600; line-height: 1.4; }
.ca-cell summary::-webkit-details-marker { display: none; }
.ca-cell summary::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.ca-cell[open] summary::before { transform: rotate(45deg); }
.ca-cell summary.ca-result-good { background: #edf8f0; border-color: #b6d9c3; }
.ca-cell summary.ca-result-missing { background: #fff2f3; border-color: #ebc4cb; }
.ca-cell summary.ca-result-unknown { background: #fff9e9; border-color: #e6d59e; }
.ca-check-help { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; background: transparent; color: var(--accent); cursor: help; vertical-align: middle; }
.ca-tooltip { position: fixed; z-index: 16000; width: min(360px, calc(100vw - 20px)); padding: 14px 16px; border: 1px solid #bad4d3; border-radius: 6px; box-shadow: 0 6px 24px #183e4226; background: white; color: #234048; font-size: 14px; line-height: 1.6; pointer-events: none; }
.ca-tooltip[hidden] { display: none; }
.ca-page-link { color: var(--accent) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.ca-score { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.ca-score span { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 5px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.ca-score-present { color: #216840; background: #def2e4; }
.ca-score-unknown { color: #885d05; background: #fff0c4; }
.ca-score-absent { color: #a02c3e; background: #fae0e5; }
.ca-evidence-image { cursor: zoom-in; }
.ca-report-body .ca-evidence-image { max-width: 720px; margin: 16px auto; }
.ca-report-body .ca-evidence-image img { width: 100%; max-height: none; }
.ca-competitor-example .ca-evidence-image { width: 100%; max-width: 100%; margin-left: 0; }
@media (max-width: 1100px) { .ca-competitor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .ca-competitor-grid { grid-template-columns: minmax(0, 1fr); } }
.ca-report-check { margin: 14px 0; padding: 20px; border: 1px solid #c7d6df; border-radius: 6px; scroll-margin-top: 110px; }
.ca-check-good { background: #f1f8f3; }
.ca-check-missing { background: #fcf2f3; }
.ca-check-unknown { background: #fffbef; }
.ca-check-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 21px; line-height: 1.5; }
.ca-check-title { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.ca-check-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; font-weight: 600; }
.ca-priority { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 7px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0; white-space: normal; }
.ca-table th > .ca-priority { display: flex; width: fit-content; margin-top: 8px; }
.ca-priority-1 { color: #9f2633; background: #fcecee; border-color: #ecc5cb; }
.ca-priority-2 { color: #8d4b00; background: #fff4df; border-color: #e8d3ae; }
.ca-priority-3 { color: #1d5d80; background: #edf5fa; border-color: #c8deeb; }
.ca-priority-4 { color: #53606b; background: #f1f3f5; border-color: #d8dfe3; }
.ca-report-body { max-width: none; padding: 0; }
.ca-explanation { padding: 14px 18px; margin-top: 18px; border: 1px solid #9dccb1; border-radius: 5px; color: #536572; font-size: 15px; line-height: 1.7; }
.ca-check-missing .ca-explanation { border-color: #dfb5bd; }
.ca-check-unknown .ca-explanation { border-color: #ddce9b; }
.ca-explanation p { margin: 0; }
.ca-explanation p + p { margin-top: 10px; }
.ca-report-group, #ca-report-start { scroll-margin-top: 110px; }
.ca-toc { padding: 0; border: 1px solid #c7dedd; border-radius: 6px; margin: 20px 0; background: white; }
.ca-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; font-weight: 700; font-size: 18px; color: var(--accent); list-style: none; }
.ca-toc summary::-webkit-details-marker { display: none; }
.ca-toc summary::after { content: '+'; font-size: 24px; font-weight: 400; }
.ca-toc[open] summary::after { content: '\2212'; }
.ca-toc[open] summary { border-bottom: 1px solid var(--line); }
.ca-toc > ol { max-height: 440px; overflow: auto; padding: 12px 16px; }
.ca-toc ol, .ca-toc-panel ol { margin: 12px 0 0; padding: 0; list-style: none; }
.ca-toc li, .ca-toc-panel li { margin: 0; }
.ca-toc a, .ca-toc-panel a { display: block; padding: 6px 10px; color: var(--accent); font-size: 14px; line-height: 1.5; text-decoration: none; }
.ca-toc-group a { margin-top: 8px; font-weight: 700; }
.ca-toc a.ca-current, .ca-toc-panel a.ca-current { background: #e0eeed; font-weight: 700; }
.ca-toc-float { position: fixed; left: 12px; top: 45%; z-index: 900; padding-right: 8px; }
.ca-toc-panel { display: none; position: absolute; top: 20px; left: 46px; transform: translateY(-50%); width: min(370px, calc(100vw - 84px)); max-height: min(65vh, 600px); overflow: auto; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 28px #173f4233; }
.ca-toc-float.ca-toc-open .ca-toc-panel, .ca-toc-float:focus-within .ca-toc-panel { display: block; }
.ca-toc-float.ca-toc-dismissed .ca-toc-panel { display: none !important; }
.ca-toc-float .ca-icon-button { position: relative; z-index: 1; }
@media (hover: hover) and (min-width: 1100px) { .ca-toc-float:hover .ca-toc-panel { display: block; } }
@media (min-width: 768px) { [data-ca-report] { padding-left: 48px; } }
.ca-table-open { overflow: hidden; }
body .pswp { z-index: 20000; }
.ca-table-expanded { position: fixed; inset: 12px; z-index: 10000; display: flex; flex-direction: column; padding: 18px; background: white; box-shadow: 0 0 0 100vmax #102f3c99; border-radius: 6px; }
.ca-table-expanded [data-ca-table] { flex: 1; min-height: 0; }
.ca-table-expanded .ca-table-scroll { height: 100%; max-height: none; }
.ca-history .history-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.ca-history .history-head span { display: block; flex: 0 1 auto; width: auto; height: auto; min-width: 0; padding: 0; border: 0; border-radius: 0; cursor: default; white-space: normal; color: var(--muted); font-size: 13px; }
.ca-history .history-row { display: grid; grid-template-columns: minmax(0,1fr) 130px 122px; align-items: center; gap: 16px; padding: 16px; }
.ca-history .history-row-head { background: #eef4f6; font-size: 14px; font-weight: 600; }
.ca-history-state { font-size: 14px; color: var(--muted); }
.ca-state-completed { color: #24724a; }
.ca-state-failed { color: #a33a45; }
@media (max-width: 767px) {
  .ca-report-check { padding: 14px; }
  .ca-check-heading { font-size: 18px; }
  .ca-explanation { padding: 12px; }
  .ca-table-expanded { inset: 0; padding: 12px; border-radius: 0; }
  .ca-history .history-row { grid-template-columns: minmax(0,1fr) auto; padding: 12px; gap: 10px; }
  .ca-history .history-row-head { display: none; }
  .ca-history-state { grid-column: 1; }
  .ca-history-actions { grid-column: 2; grid-row: 1 / 3; }
  .ca-toc-float { top: auto; bottom: 16px; left: 12px; }
  .ca-toc-panel { top: auto; left: 0; bottom: 48px; transform: none; width: min(370px, calc(100vw - 24px)); }
  [data-ca-report] { padding-bottom: 60px; }
  body:has(.ca-tool) .ambassador-content { min-width: 0; width: 100%; grid-template-columns: minmax(0, 1fr); }
  body:has(.ca-tool) .ambassador-content > * { min-width: 0; overflow-wrap: anywhere; }
  body:has(.ca-tool) .ambassador-content h2 { font-size: 24px; white-space: normal; overflow-wrap: anywhere; }
  body:has(.ca-tool) .ambassador-button { min-width: 0; max-width: 100%; white-space: normal; font-size: 14px; }
  body:has(.ca-tool) .tool-rating-current { min-width: 0; flex-wrap: wrap; justify-content: flex-start; gap: 5px; }
  .ca-page-fields { grid-template-columns: 1fr; gap: 16px; }
  .ca-form-heading { align-items: flex-start; flex-direction: column; }
  .ca-form-heading h2 { font-size: 20px; }
  .ca-table tr > th:first-child { width: 150px; min-width: 145px; max-width: 160px; }
  .ca-table th, .ca-table td { padding: 10px; }
  .ca-tool .ca-table-single { table-layout: fixed; min-width: 0; }
  .ca-table-single th, .ca-table-single td { min-width: 0; overflow-wrap: anywhere; }
  .ca-table-single tr > th:first-child { width: 46%; min-width: 0; max-width: none; }
  .ca-table-single .ca-cell summary { white-space: normal; }
  .ca-table-single .ca-cell .ca-evidence { min-width: 0; max-width: 100%; }
  .ca-history-row { flex-wrap: wrap; gap: 10px; }
  .ca-dialog { padding: 20px; }
  .ca-dialog h2 { font-size: 20px; }
}
