.cd-ui .cd-controls{grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr));gap:1rem;margin:1rem 0;display:grid}.cd-ui .cd-field{flex-direction:column;gap:.4rem;min-width:0;margin:.75rem 0;font-size:.92rem;font-weight:600;display:flex}.cd-ui .cd-color-row{align-items:center;gap:.5rem;display:flex}.cd-ui .cd-color-row input[type=color]{cursor:pointer;border:1px solid #bec8d7;border-radius:8px;flex-shrink:0;width:44px;height:42px;padding:3px}.cd-ui .cd-color-row .tw-input{width:100%;min-width:0}.cd-ui .cd-preview{isolation:isolate;background:#edf2f8;border:1px solid #d5dfeb;border-radius:18px;justify-content:center;align-items:center;min-height:280px;margin:1rem 0;padding:24px;display:flex;position:relative;overflow:hidden}.cd-ui .cd-card{color:#23304a;text-align:center;box-sizing:border-box;background:#fff;border-radius:16px;width:min(240px,100%);padding:24px}.cd-ui .cd-card strong{margin-bottom:8px;font-size:1.35rem;display:block}.cd-ui .cd-code{white-space:pre;max-width:100%;font-family:ui-monospace,SFMono-Regular,monospace;font-size:.86rem;overflow:auto}.cd-ui .cd-tile{color:#153862;box-sizing:border-box;background:#dce9ff;border:1px solid #9bb6e3;border-radius:10px;place-items:center;min-width:0;min-height:62px;padding:10px;font-weight:700;display:grid}.cd-ui .cd-layer{background:#f6f8fc;border:1px solid #d9e0eb;border-radius:12px;margin:1rem 0;padding:.5rem 1rem}.cd-ui .cd-checker{background-color:#fff;background-image:linear-gradient(45deg,#ddd 25%,#0000 25%),linear-gradient(-45deg,#ddd 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ddd 75%),linear-gradient(-45deg,#0000 75%,#ddd 75%);background-position:0 0,0 12px,12px -12px,-12px 0;background-size:24px 24px}.cd-ui .cd-results{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.7rem;margin:1rem 0;display:grid}.cd-ui .cd-result{background:#f2f6fb;border:1px solid #dce5f1;border-radius:12px;padding:14px}.cd-ui .cd-result strong{font-size:1.45rem;display:block}.cd-ui .cd-pass{color:#17653a}.cd-ui .cd-fail{color:#a22629}.cd-ui .cd-scroll{border-radius:14px;max-width:100%;overflow:auto}.cd-ui fieldset{border:1px solid #d9e0eb;border-radius:12px;min-width:0;padding:1rem}.cd-ui legend{padding:0 .3rem;font-weight:700}.cd-ui input[type=range]{accent-color:#3567d6;width:100%}.cd-ui .cd-line{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.cd-ui .cd-statline{color:#536176;font-size:.85rem;line-height:1.6}.cd-ui .cd-graph{background:#f6f8fc;border-radius:12px;width:100%;height:auto;display:block}.cd-ui .tw-panel{min-width:0}.cd-ui .tw-actions{flex-wrap:wrap}.cd-ui .cd-instruction{color:#536176;font-size:.85rem}.cd-ui .cd-minipreview{border-radius:12px;place-items:center;height:110px;display:grid}@media (width<=500px){.cd-ui .cd-preview{min-height:240px;padding:16px}.cd-ui .cd-card{padding:18px}.cd-ui .cd-controls{gap:.6rem}.cd-ui fieldset{padding:.7rem}}.cd-ui .cd-controls{align-items:stretch;gap:16px;margin:0 0 18px}.cd-ui .cd-controls>.cd-field{margin:0}.cd-ui .cd-field{color:#475872;gap:8px;margin:18px 0;font-size:13px;line-height:1.5}.cd-ui .cd-controls>.cd-field>:last-child{margin-top:auto}.cd-ui .cd-color-row input[type=color]{height:46px}.cd-ui .cd-line{align-items:flex-end}.cd-ui .cd-line>.cd-field{margin-block:0}.cd-ui .cd-code{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7}.cd-ui .cd-preview{border-radius:10px}.gradient-stop{border-top:1px solid #e1e8f3;padding:16px 0}.gradient-stop:first-of-type{margin-top:18px}.gradient-stop-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.gradient-stop-heading h3{color:#62728b;font-size:12px;font-weight:600}.gradient-stop-heading button{min-height:32px;padding:5px 10px;font-size:11px}.gradient-stop-fields{grid-template-columns:minmax(0,1fr) 90px;align-items:end;gap:12px;display:grid}.gradient-stop-fields>.cd-field{margin:0}.cd-ui .gradient-preview{height:210px;min-height:210px;margin:0 0 18px}.cd-ui .gradient-preview-label{color:#fff;backdrop-filter:blur(8px);background:#16223d70;border:1px solid #ffffff40;border-radius:7px;padding:7px 12px;font-size:12px}@container panel (width<=240px){.gradient-stop-fields{grid-template-columns:minmax(0,1fr)}}
