.tp-color-sheet{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:18px 20px 22px;border:1px solid #e9ecf1;border-radius:18px;background:#fff;color:#344054;box-shadow:0 18px 60px #11182724;overflow:auto;font:14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;overscroll-behavior:contain}
.tp-color-sheet *{box-sizing:border-box}.tp-color-sheet [hidden]{display:none!important}.tp-color-sheet::backdrop{background:#10182866;backdrop-filter:blur(3px)}
.tp-color-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.tp-color-heading h2{margin:0;font-size:16px;letter-spacing:0;font-weight:650;color:#344054}.tp-color-sheet button{font:inherit;cursor:pointer;touch-action:manipulation}.tp-color-close{display:grid;place-items:center;width:40px;height:40px;min-height:40px;margin:0;padding:0;border:0;border-radius:50%;background:#f4f5f7;color:#475467;font-size:25px!important;line-height:1}
.tp-color-layout{display:grid;grid-template-columns:minmax(0,1fr) 266px;gap:20px;align-items:start}.tp-color-custom,.tp-color-palette{min-width:0}.tp-color-square{height:190px;width:100%;position:relative;border-radius:6px;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent);touch-action:none;cursor:crosshair;outline-offset:4px}
.tp-color-cursor{position:absolute;display:block;left:0;top:0;width:14px;height:14px;border:2px solid white;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0006;pointer-events:none}
.tp-color-range{display:flex;position:relative;align-items:center;height:30px;margin:6px 0 0!important;padding:0;border:0}.tp-color-range::before{content:"";position:absolute;inset:11px 0;border-radius:999px;pointer-events:none}.tp-color-hue::before{background:linear-gradient(90deg,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}.tp-color-alpha::before{background-image:linear-gradient(90deg,transparent,var(--tp-alpha-color)),repeating-conic-gradient(#d9dbe2 0 25%,#fff 0 50%);background-size:auto,8px 8px}
.tp-color-sheet .tp-color-range input{appearance:none;-webkit-appearance:none;display:block;background:transparent;border:0;box-shadow:none;padding:0;margin:0;width:100%;min-width:0;min-height:30px;height:30px;cursor:pointer;position:relative;z-index:1;touch-action:pan-y}.tp-color-range input::-webkit-slider-runnable-track{background:transparent;height:8px;border-radius:99px}.tp-color-range input::-moz-range-track{background:transparent;height:8px;border:0}.tp-color-range input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #0003;margin-top:-3px}.tp-color-range input::-moz-range-thumb{width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #0003}
.tp-color-values{display:flex;align-items:center;gap:8px;margin-top:8px}.tp-color-chip{flex:0 0 26px;height:30px;border:1px solid #d0d5dd;border-radius:6px}.tp-color-hex,.tp-color-percent{display:flex;align-items:center;gap:5px;min-width:0;margin:0!important;border:1px solid #d0d5dd;border-radius:6px;padding:0 8px;background:#fff;height:36px;box-shadow:0 1px 2px #1018280d}.tp-color-hex{flex:1}.tp-color-hex>span{font-size:11px;color:#667085}.tp-color-sheet .tp-color-values input{min-width:0;width:100%;min-height:32px;padding:0;margin:0;border:0;background:transparent;color:#344054;box-shadow:none;font:14px system-ui}.tp-color-percent{width:70px;flex:0 0 70px}.tp-color-percent input{appearance:textfield;-moz-appearance:textfield;text-align:right}.tp-color-percent input::-webkit-inner-spin-button{appearance:none}.tp-color-sheet [aria-invalid=true]{color:#b42318!important}.tp-color-error{font-size:12px;color:#b42318;margin:5px 0 0}.tp-color-error:empty{display:none}
.tp-color-saved-heading{display:flex;align-items:center;justify-content:space-between;margin:14px 0 8px;font-size:13px}.tp-color-saved-heading button{margin:0;padding:4px 0;border:0;background:none;color:#667085;min-height:30px}.tp-color-presets{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.tp-color-sheet .tp-color-dot{display:block;position:relative;width:100%;height:36px;min-height:36px;margin:0;padding:0;border:0;background:none;border-radius:50%}.tp-color-dot::before{content:"";position:absolute;width:27px;height:27px;inset:0;margin:auto;border:1px solid #1018280a;border-radius:50%;background:var(--tp-swatch)}.tp-color-dot.selected::after{content:"";position:absolute;inset:1px;border:2px solid #98a2b3;border-radius:50%}
.tp-color-hex-grid{padding:9px 0 6px}.tp-color-hex-row{display:flex;justify-content:center;height:34px;gap:0}.tp-color-sheet .tp-color-hexagon{position:relative;flex:0 0 38px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:var(--tp-swatch)}.tp-color-hexagon.selected::after{content:"";position:absolute;inset:7px;clip-path:inherit;background:transparent;border:2px solid #fff;box-shadow:0 0 0 1px #344054}.tp-color-hexagon:focus-visible{filter:brightness(.72)}.tp-color-neutral{display:flex;justify-content:center;gap:4px;margin-top:18px;padding:4px 0}.tp-color-neutral .tp-color-dot{width:36px;flex:0 0 36px}
.tp-color-sheet :focus-visible{outline:2px solid #655cf1;outline-offset:2px}.tp-color-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:640px){.tp-color-sheet{width:min(380px,calc(100vw - 16px));max-height:calc(100dvh - 16px);margin:auto auto max(8px,env(safe-area-inset-bottom));padding:12px 14px max(16px,env(safe-area-inset-bottom));border-radius:20px}.tp-color-layout{grid-template-columns:minmax(0,1fr);gap:14px}.tp-color-square{height:180px}.tp-color-heading{margin-bottom:10px}.tp-color-palette{display:flex;flex-direction:column;align-items:center;padding-top:6px;border-top:1px solid #eef0f4}.tp-color-hex-grid{width:266px;max-width:100%;padding-top:0}.tp-color-hex-row{height:29px}.tp-color-sheet .tp-color-hexagon{height:38px;min-height:38px;flex-basis:33px}.tp-color-neutral{margin-top:12px}.tp-color-sheet .tp-color-presets .tp-color-dot{height:40px;min-height:40px}.tp-color-sheet .tp-color-range{height:38px}.tp-color-range::before{inset:15px 0}.tp-color-sheet .tp-color-range input{height:38px;min-height:38px}.tp-color-values{margin-top:5px}}
@media(prefers-reduced-motion:reduce){.tp-color-sheet *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.tp-color-heading{position:sticky;top:0;z-index:3;background:#fff}.tp-color-dot.selected::after{inset:0;margin:auto;width:33px;height:33px}.tp-color-hexagon.selected::after{inset:5px;background:#fff;border:0;box-shadow:none}.tp-color-hexagon.selected::before{content:"";position:absolute;inset:8px;clip-path:inherit;background:var(--tp-swatch);z-index:1}
@media(max-width:640px){.tp-color-hex-row{height:34px}.tp-color-sheet .tp-color-hexagon{height:44px;min-height:44px;flex-basis:38px}}
