body[data-color-picker] main>section:first-child{padding:28px 0 30px!important}body[data-color-picker] main>section:first-child h1{font-size:clamp(1.8rem,4vw,2.7rem)!important}body[data-color-picker] .animate-fadeIn{animation:none!important}
.cp-app{max-width:1200px;margin:auto;padding:0 24px 48px;color:#eee;font-size:14px;line-height:1.65}.cp-app *{box-sizing:border-box}.cp-app [hidden]{display:none!important}.cp-app h2{font-size:23px;font-weight:700;letter-spacing:-.025em;margin:0 0 16px}.cp-app p{margin:10px 0}.cp-muted{color:#aaa}.cp-small{color:#aaa;font-size:12px}.cp-app a{color:#ddd;text-decoration:underline;text-underline-offset:4px}.cp-app :focus-visible{outline:2px solid #fff;outline-offset:3px}
.cp-toolbar,.cp-heading,.cp-actions,.cp-tabs{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cp-toolbar,.cp-heading{justify-content:space-between;margin-bottom:18px}.cp-button{font:inherit;font-weight:600;font-size:12px;color:#eee;background:#171717;border:1px solid #555;padding:9px 14px;border-radius:999px;min-height:42px;cursor:pointer;transition:background .18s,transform .18s}.cp-button:hover:not(:disabled){background:#303030;transform:translateY(-1px)}.cp-button[aria-pressed=true]{color:#111;background:#f5f5f5;border-color:#f5f5f5}.cp-button:disabled{opacity:.4;cursor:not-allowed}
.cp-workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:26px;align-items:start}.cp-source,.cp-result{border:1px solid #404040;border-radius:20px;padding:24px;min-width:0;background:#0a0a0a}.cp-result{position:sticky;top:16px}.cp-app label{display:block;color:#bdbdbd;font-size:12px;margin:12px 0 5px;font-weight:600}.cp-app input[type=text]{width:100%;font:inherit;font-family:ui-monospace,monospace;background:#171717;color:#fff;border:1px solid #555;border-radius:10px;padding:10px 12px;min-height:44px;min-width:0}.cp-app input[aria-invalid=true]{border-style:dashed;border-width:2px}.cp-app select{background:#222;color:#fff;border:1px solid #555;border-radius:10px;padding:8px;min-height:40px;max-width:100%}.cp-app input[type=range]{width:100%;accent-color:#eee;min-height:32px;cursor:pointer}.cp-actions>label{margin:0}.cp-actions>input[type=range]{flex:1;min-width:70px;max-width:160px}
.cp-drop{min-height:310px;border:1px dashed #666;border-radius:14px;padding:32px;display:flex;flex-direction:column;justify-content:center;text-align:center;margin-top:20px;background:#121212}.cp-drop.is-dragging{border-color:#fff;background:#262626}.cp-drop h2{font-size:24px}.cp-status{font-size:12px;color:#ddd;min-height:20px}.cp-stage{height:360px;max-width:100%;border:1px solid #555;overflow:hidden;border-radius:12px;margin:16px 0;background:repeating-conic-gradient(#292929 0% 25%,#171717 0% 50%) 50% / 16px 16px}.cp-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.cp-sampling{display:flex;justify-content:space-between;gap:20px;align-items:center}.cp-lens-wrap{flex:none;border:1px solid #777;border-radius:12px;overflow:hidden;background:repeating-conic-gradient(#ccc 0% 25%,#fff 0% 50%) 50% / 16px 16px}.cp-lens-wrap canvas{display:block;width:112px;height:112px;image-rendering:pixelated}
.cp-checker{background:repeating-conic-gradient(#bbb 0% 25%,#eee 0% 50%) 50% / 18px 18px;border-radius:14px;overflow:hidden;border:1px solid #555}.cp-color-preview{height:100px;width:100%}#cp-code-form{display:flex;gap:8px}.cp-format{margin-top:12px}.cp-format label{margin-bottom:4px}.cp-format>div{display:flex;gap:6px}.cp-format input{font-size:12px!important}.cp-format .cp-button{padding:8px 10px}.cp-area{height:280px;position:relative;border-radius:14px;border:1px solid #666;touch-action:none;cursor:crosshair;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent);margin:12px 0 20px;overflow:hidden}#cp-cursor{position:absolute;width:14px;height:14px;border:2px solid #fff;box-shadow:0 0 0 1px #111;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
.cp-section{padding:30px 0;border-bottom:1px solid #333}.cp-heading h2{margin:0}.cp-heading>div{display:flex;align-items:center;gap:10px}.cp-heading label{margin:0}.cp-swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:12px;margin:16px 0}.cp-swatch-item{min-width:0;position:relative}.cp-swatch{border:1px solid #666;border-radius:12px;overflow:hidden;padding:0;width:100%;background:#eee;color:#111;cursor:pointer;font:inherit;text-align:left;transition:transform .18s}.cp-swatch:hover{transform:translateY(-3px)}.cp-swatch-color{height:70px;display:block;background:repeating-conic-gradient(#bbb 0% 25%,#fff 0% 50%) 50% / 14px 14px}.cp-swatch-color>span{display:block;height:100%;width:100%}.cp-swatch-code{display:block;padding:9px;font-size:11px;font-family:ui-monospace,monospace;font-weight:650;overflow-wrap:anywhere}.cp-remove{position:absolute;right:4px;top:4px;border:1px solid #555;border-radius:50%;width:32px;height:32px;color:#111;background:#fff;cursor:pointer;font-size:20px}
.cp-contrast summary,.cp-faq summary{font-weight:650;font-size:17px;cursor:pointer;min-height:44px;list-style-position:inside}.cp-contrast input[type=text]{max-width:300px}#cp-application{padding:24px;border-radius:12px;margin:18px 0}#cp-application p{color:inherit}.cp-demo-large{font-size:26px;font-weight:700}#cp-demo-button{display:inline-block;padding:8px 18px;border:2px solid currentColor;border-radius:999px}#cp-ratio{font-size:24px}.cp-app ol{padding-left:24px}.cp-app li{margin:10px 0}.cp-faq details{padding:16px 0;border-bottom:1px solid #333}.cp-faq .faq-a{max-height:none!important;overflow:visible!important;color:#aaa;padding-top:12px}
#cp-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;padding:0;background:repeating-conic-gradient(#bbb 0% 25%,#eee 0% 50%) 50% / 20px 20px;color:#fff}#cp-dialog:not([open]){display:none}#cp-full-color{position:absolute;inset:0}.cp-dialog-controls{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);display:flex;align-items:center;gap:16px;padding:12px 20px;border-radius:999px;background:#111;color:#fff;max-width:calc(100% - 24px);white-space:nowrap}
@media(max-width:820px){.cp-app{padding:0 16px 32px}.cp-workspace{grid-template-columns:1fr;gap:16px}.cp-result{position:static}.cp-source,.cp-result{padding:18px}.cp-stage{height:300px}.cp-drop{min-height:220px;padding:22px}.cp-format>div{gap:8px}.cp-toolbar{gap:14px}.cp-heading>div{flex-wrap:wrap}.cp-heading{align-items:start}.cp-swatches{grid-template-columns:repeat(auto-fill,minmax(95px,1fr))}}
@media(prefers-reduced-motion:reduce){.cp-app *{transition:none!important;scroll-behavior:auto!important}}
.cp-format input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #555;border-radius:10px;background:#171717;color:#fff;font-family:ui-monospace,monospace}.cp-format .cp-button,#cp-code-form .cp-button{flex-shrink:0;white-space:nowrap}
