:root{font-family:system-ui,sans-serif;color:#172d48;background:#edf3f9;font-size:16px}*{box-sizing:border-box}body{margin:0}main{max-width:1400px;margin:auto;padding:18px}header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}h1{font-size:30px;margin:4px 0;letter-spacing:-.03em}h2{font-size:18px;margin:0}.eyebrow{font-size:13px;letter-spacing:.1em;font-weight:700;margin:0;color:#416993}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px}.image-panel,aside,.palette-panel{background:white;border:1px solid #d7e3ef;border-radius:16px;padding:16px;min-width:0}.toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap}button,input{font:inherit}button{border:1px solid #c7d5e4;border-radius:9px;padding:9px 12px;min-height:42px;background:white;color:#17395e;cursor:pointer;font-weight:650}button:hover{background:#e9f3ff}button:disabled{opacity:.45;cursor:default}.primary{background:#1764b4;color:white;border-color:#1764b4}.primary:hover{background:#125494}button:focus-visible,canvas:focus-visible{outline:3px solid #368ee5;outline-offset:3px}.hint,#zoomLabel{font-size:14px;color:#4a6786;line-height:1.4}.viewport{height:clamp(280px,49vh,520px);overflow:auto;border:1px solid #c7d5e4;border-radius:10px;position:relative;background-color:#e5ebf2;background-image:linear-gradient(45deg,#d5dfe9 25%,transparent 25%),linear-gradient(-45deg,#d5dfe9 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d5dfe9 75%),linear-gradient(-45deg,transparent 75%,#d5dfe9 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.viewport.drag{outline:3px solid #368ee5}.viewport canvas{display:block;cursor:crosshair;max-width:none;margin:0;touch-action:pan-x pan-y}.image-info{display:flex;justify-content:space-between;gap:10px;color:#4a6786;font-size:14px;margin-top:10px;overflow-wrap:anywhere}#empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#f5f8fc;padding:20px}#empty strong{font-size:22px}#empty p{margin:8px 0}.preview-row{display:flex;gap:16px;margin:16px 0 12px;justify-content:space-between}.checker{background-color:white;background-image:conic-gradient(#d5dfe9 25%,transparent 0 50%,#d5dfe9 0 75%,transparent 0);background-size:16px 16px;border:1px solid #c7d5e4;border-radius:12px;overflow:hidden}.sample{width:132px;height:132px}.sample>div{width:100%;height:100%}.loupe{position:relative;width:132px;height:132px}.loupe canvas{width:100%;height:100%;display:block;image-rendering:pixelated}.cross{position:absolute;left:calc(50% - 6px);top:calc(50% - 6px);width:12px;height:12px;border:1px solid white;outline:1px solid #172d48;pointer-events:none}.codes{display:grid;gap:7px}.codes button{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;padding:8px 10px}.codes span{font-size:13px;color:#4a6786}.codes strong{font-family:ui-monospace,monospace;font-size:14px;overflow-wrap:anywhere}.channels{margin-top:14px}.channels label{display:flex;justify-content:space-between;font-size:14px}.channels progress{width:100%;height:8px;display:block;margin:5px 0 9px;border:0;border-radius:4px;overflow:hidden;background:#edf3f9}.channels progress::-webkit-progress-bar{background:#edf3f9}.channels progress::-webkit-progress-value{background:#1764b4}#red::-webkit-progress-value{background:#c43c4c}#green::-webkit-progress-value{background:#27845b}#blue::-webkit-progress-value{background:#1764b4}#red::-moz-progress-bar{background:#c43c4c}#green::-moz-progress-bar{background:#27845b}#blue::-moz-progress-bar{background:#1764b4}#keep{width:100%}.palette-panel{margin-top:12px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}#palette{display:flex;gap:12px;flex-wrap:wrap;max-height:250px;overflow:auto}.entry{width:145px;position:relative}.entry .tile{width:100%;height:74px;padding:0;overflow:hidden;border-radius:10px}.entry .tile>span{display:block;width:100%;height:100%}.entry .copy{font-family:ui-monospace,monospace;font-size:14px;margin-top:5px;width:100%;padding:5px;min-height:30px}.entry p{font-size:13px;color:#4a6786;margin:5px 0}.entry .remove{position:absolute;right:4px;top:4px;padding:0 6px;min-height:26px;background:#ffffffdf;font-size:16px}#message{color:#1764b4;font-size:14px;min-height:20px;margin:10px 0 0}[hidden]{display:none!important}body:fullscreen{overflow:auto}body:fullscreen main{max-width:1600px}@media(max-width:850px){.workspace{grid-template-columns:1fr}.viewport{height:380px}aside{display:grid;grid-template-columns:1fr 1fr;gap:10px}aside h2{grid-column:1/-1}.preview-row{margin:0;justify-content:flex-start}.channels{margin:0}}@media(max-width:500px){main{padding:12px}h1{font-size:26px}aside{display:block}.preview-row{margin:14px 0}.viewport{height:300px}.entry{width:125px}.toolbar button{font-size:14px;padding:8px}}
.codes strong{user-select:all}.loupe:has(canvas[hidden]) .cross{display:none}@media(min-width:851px) and (max-height:800px){.sample,.loupe{width:104px;height:104px}.preview-row{justify-content:flex-start;gap:20px;margin:12px 0 8px}.cross{width:9.45px;height:9.45px;left:calc(50% - 4.725px);top:calc(50% - 4.725px)}.channels{margin-top:10px}.hint{margin:8px 0}}
