.cc-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:var(--surface-gap);align-items:stretch;padding-bottom:48px}
.cc-preview-column,.cc-settings-column{display:grid;gap:var(--surface-gap);min-width:0}
.cc-preview-column{grid-template-rows:minmax(260px,1fr) auto}
.cc-settings-column{grid-template-rows:auto minmax(0,1fr)}
.cc-layout h2{font-size:var(--text-heading);line-height:1.4;margin:0;letter-spacing:-.4px}
.cc-preview{min-height:260px;display:flex;flex-direction:column;justify-content:center;background:var(--cc-bg);color:var(--cc-fg);position:relative;overflow:hidden}
.cc-preview h2{font-size:28px;font-weight:700;line-height:1.3;color:inherit;letter-spacing:-.6px}
.cc-preview p{font-size:16px;font-weight:500;line-height:1.65;margin:16px 0 0;color:inherit}
.cc-invalid .cc-preview{opacity:.35}
.cc-ratio-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cc-quality{display:inline-flex;padding:5px 10px;border-radius:8px;font-size:14px;font-weight:650;line-height:1.5}
.cc-quality[data-tone=pass]{background:var(--status-pass-bg);color:var(--status-pass-text)}.cc-quality[data-tone=partial]{background:#fff3df;color:#875706}.cc-quality[data-tone=fail]{background:var(--status-fail-bg);color:var(--status-fail-text)}.cc-quality[data-tone=neutral]{background:var(--surface-control);color:var(--text-muted)}
.cc-ratio-value{display:flex;align-items:baseline;gap:8px;margin-top:12px;font-variant-numeric:tabular-nums;line-height:1.2}
.cc-ratio-value output{font-size:44px;font-weight:650;letter-spacing:-1.3px;color:var(--text-primary)}
.cc-ratio-value>span{font-size:24px;color:var(--text-muted);font-weight:550}
.cc-summary{font-size:15px;color:var(--text-secondary);line-height:1.6;margin:12px 0 0}
.cc-color-grid{display:grid;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);gap:12px;align-items:start}
.cc-field{min-width:0}.cc-field>label{display:block;font-size:14px;font-weight:550;color:var(--text-secondary);margin-bottom:8px;line-height:1.5}
.cc-color-control{display:flex;align-items:center;gap:10px;min-height:52px}
.cc-color-control input[type=color]{appearance:none;-webkit-appearance:none;padding:0;border:0;width:36px;height:36px;flex-shrink:0;border-radius:50%;background:transparent;cursor:pointer;box-shadow:0 0 0 1px #20212416}
.cc-color-control input[type=color]::-webkit-color-swatch-wrapper{padding:0}.cc-color-control input[type=color]::-webkit-color-swatch{border:0;border-radius:50%}.cc-color-control input[type=color]::-moz-color-swatch{border:0;border-radius:50%}
.cc-hex-wrap{flex:1;min-width:0;background:var(--surface-control);border-radius:12px}
.cc-color-control input[type=text]{width:100%;min-width:0;background:transparent;color:var(--text-primary);border:0;border-radius:0;padding:14px 10px;font:550 15px/24px Manrope,Arial,sans-serif;letter-spacing:.2px}
.cc-hex-wrap:focus-within{outline:2px solid #202124;outline-offset:2px}
.cc-color-control input[type=text]:focus-visible{outline:none}
.cc-hex-wrap:has(input[aria-invalid=true]){outline:2px solid #b83b37;outline-offset:2px}
.cc-field-error{display:block;color:var(--status-fail-text);font-size:13px;line-height:1.5;margin-top:8px}
.cc-swap{width:36px;height:36px;display:grid;place-items:center;background:var(--surface-control);color:var(--text-secondary);border-radius:10px;margin-top:37px;padding:0}
.cc-swap svg{width:18px;height:18px}.cc-swap:hover{background:var(--surface-control-hover)}.cc-swap:disabled{opacity:.35;cursor:default}
.cc-compliance-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cc-compliance-heading a{font-size:14px;color:var(--text-muted);text-decoration:none;white-space:nowrap}.cc-compliance-heading a:hover{text-decoration:underline}
.cc-compliance-summary{font-size:15px;line-height:1.6;color:var(--text-secondary);margin:8px 0 24px}
.cc-table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;text-align:left}
.cc-table th{font-weight:600;font-size:15px;color:var(--text-primary)}
.cc-table thead th{padding:0 10px 12px;text-align:center}.cc-table thead th:first-child{text-align:left;padding-left:0;width:30%}
.cc-table tbody th{padding:16px 12px 16px 0;vertical-align:middle;border-top:1px solid #eeeef1}
.cc-table tbody th>span{display:block;font-size:13px;font-weight:500;color:var(--text-muted);line-height:1.5;margin-top:4px}
.cc-table td{padding:16px 4px;text-align:center;vertical-align:middle;border-top:1px solid #eeeef1}
.cc-check-status{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:14px;font-weight:650;white-space:nowrap}
.cc-check-status svg{width:16px;height:16px;stroke-width:2}.cc-table td[data-tone=pass]{color:var(--status-pass-text)}.cc-table td[data-tone=fail]{color:var(--status-fail-text)}.cc-table td[data-tone=neutral]{color:var(--text-muted)}
.cc-threshold{display:block;margin-top:4px;color:var(--text-muted);font-size:13px;line-height:1.5}
.cc-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.contrast-checker-open .page-actions,body.contrast-checker-open .workspace-footer{display:none}

@media(max-width:1250px){.cc-color-grid{gap:8px}.cc-color-control{gap:7px}.cc-color-control input[type=color]{width:28px;height:28px}.cc-color-control input[type=text]{font-size:14px;padding-inline:8px}.cc-check-status{font-size:14px;gap:4px}}
@media(max-width:1100px){.cc-layout{grid-template-columns:minmax(0,1fr)}.cc-preview-column,.cc-settings-column{grid-template-rows:auto auto}.cc-preview{min-height:220px}}
@media(max-width:760px){.cc-layout{padding-bottom:32px}.cc-color-grid{grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);gap:8px}.cc-color-control{gap:6px}.cc-color-control input[type=color]{width:24px;height:24px}.cc-color-control input[type=text]{padding-inline:7px;font-size:14px}.cc-swap{width:30px;height:34px}.cc-table thead th:first-child{width:28%}.cc-table tbody th{font-size:14px;padding-right:5px}.cc-check-status{font-size:14px;gap:4px;white-space:normal;max-width:100%;line-height:1.4}.cc-check-status svg{width:16px;height:16px}.cc-table td{padding-inline:2px}.cc-preview h2{font-size:26px}}

/* Identical status tiles share the badge palette and stay inside the table grid. */
.cc-table thead th{padding:0 6px 10px}
.cc-table thead th:nth-child(2){padding-left:0}
.cc-table thead th:last-child{padding-right:0}
.cc-table tbody th{border:0;padding-top:6px;padding-bottom:6px}
.cc-table td{border:0;padding:6px}
.cc-table td:nth-child(2){padding-left:0}
.cc-table td:last-child{padding-right:0}
.cc-check-cell{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:80px;padding:12px 6px;border-radius:12px;background:var(--surface-control)}
.cc-table td[data-tone=pass] .cc-check-cell{background:var(--status-pass-bg)}
.cc-table td[data-tone=fail] .cc-check-cell{background:var(--status-fail-bg)}
.cc-check-status{white-space:normal;max-width:100%;line-height:1.4}
.cc-check-status>span{min-width:0;overflow-wrap:normal}
.cc-threshold{color:inherit;opacity:.85}
@media(max-width:760px){.cc-check-cell{min-height:88px;padding:10px 4px}.cc-table td{padding:6px}.cc-table thead th:first-child{width:28%}}


@media(max-width:380px){.cc-check-cell{min-height:120px}.cc-check-status{flex-direction:column;gap:4px}.cc-check-status>span{max-width:100%}}

