*{box-sizing:border-box}body{margin:0;background:#008080;color:#111;font:16px Tahoma,"MS Sans Serif",Arial,sans-serif;padding:10px}button,a,select{-webkit-tap-highlight-color:transparent}button,.window-controls a{font:inherit;color:#111;background:#c0c0c0;border:2px solid;border-color:#fff #404040 #404040 #fff;border-radius:0;cursor:pointer}button:active,button.selected{border-color:#404040 #fff #fff #404040;background:#d0d0d0}button:disabled{color:#818181;text-shadow:1px 1px #fff;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px dashed #000080;outline-offset:2px}.paint-window{max-width:1440px;margin:auto;background:#c0c0c0;border:3px solid;border-color:#fff #404040 #404040 #fff;padding:3px;box-shadow:2px 3px #003e3e}.paint-title{display:flex;align-items:center;gap:10px;background:linear-gradient(90deg,#000080,#0000a8);padding:5px 6px;color:#fff}.paint-title h1{font-size:clamp(14px,2.1vw,24px);letter-spacing:1px;margin:0;font-weight:700;flex:1}.brush-icon{font-size:27px}.window-controls{display:flex;gap:3px}.window-controls button,.window-controls a{display:grid;place-items:center;width:29px;height:28px;padding:0;text-decoration:none;font-size:25px;font-weight:bold;line-height:1}.paint-actions{display:flex;align-items:center;gap:14px;padding:10px 12px}.paint-actions button{padding:5px 18px;min-width:118px;font-size:21px;display:flex;align-items:center;justify-content:center;gap:10px}.paint-actions button span{font-size:30px;line-height:1}.undo-icon{color:#000080;font-weight:bold}.brush-size{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:14px}select{font:inherit;background:#fff;padding:4px;border:2px inset #eee}.workbench{display:flex;gap:10px;padding:0 8px}.tools{width:54px;flex:none;display:flex;flex-direction:column;gap:2px}.tools button{width:54px;height:48px;font-size:31px;padding:1px}.tools .selected{outline:2px solid #000080;outline-offset:-3px}.canvas-scroll{flex:1;min-width:0;max-height:calc(100dvh - 218px);overflow:auto;background:#808080;border:3px solid;border-color:#666 #fff #fff #666;text-align:center;overscroll-behavior:contain}canvas{display:block;width:100%;max-width:1125px;height:auto;margin:0 auto;touch-action:none;cursor:crosshair;background:#888}.palette-row{display:flex;gap:10px;align-items:center;padding:12px 10px}.palette-row #current-color{width:42px;height:42px;flex:none;background:#fff;border:3px inset #ddd;box-shadow:inset 0 0 0 4px #c0c0c0}#palette{display:flex;flex-wrap:wrap;gap:4px}#palette button{width:32px;height:34px;padding:0;border-width:3px;background:var(--swatch);box-shadow:inset 0 9px #ffffff25}#palette button[aria-pressed=true]{outline:2px solid #000080;outline-offset:1px}.paint-status{display:grid;grid-template-columns:2fr 1fr;gap:4px;padding:3px}.paint-status span{padding:6px 10px;border:2px inset #eee;min-width:0}.hint{font-size:12px;margin:5px 10px 7px;color:#333}#restore-window{margin:12px;padding:10px}.maximized{max-width:none;min-height:calc(100dvh - 20px)}[hidden]{display:none!important}@media(max-width:600px){body{padding:3px}.paint-title{gap:5px}.paint-title h1{letter-spacing:0}.brush-icon{font-size:20px}.window-controls button,.window-controls a{width:24px;height:24px;font-size:20px}.paint-actions{gap:7px;padding:8px 4px;flex-wrap:wrap}.paint-actions button{font-size:16px;min-width:82px;padding:4px 8px}.paint-actions button span{font-size:24px}.brush-size{font-size:12px;gap:4px}.workbench{gap:4px;padding:0 3px}.tools{width:32px}.tools button{width:32px;height:32px;font-size:22px}.tools button:disabled:nth-of-type(n+8){display:none}.canvas-scroll{max-height:65dvh}.palette-row{padding:9px 4px;gap:7px}#palette{gap:5px}#palette button{width:27px;height:29px}.palette-row #current-color{width:32px;height:38px}.paint-status{font-size:12px;grid-template-columns:1.6fr 1fr}.paint-status span{padding:5px}.hint span{display:none}}

/* Fit the supplied portrait photo without hiding its brush sculpture. */
.workbench{height:max(300px,calc(100dvh - 224px))}.tools{gap:2px}.tools button{height:auto;min-height:24px;flex:1}.canvas-scroll{max-height:none;height:100%;display:flex;justify-content:center;align-items:flex-start}canvas{width:auto;height:auto;max-width:100%;max-height:100%;margin:0}.maximized .workbench{height:max(340px,calc(100dvh - 200px))}@media(max-width:600px){.workbench{height:auto;min-height:300px}.canvas-scroll{height:auto;min-height:300px}canvas{width:100%;height:auto;max-height:none}.tools button{max-height:40px}.paint-actions{min-height:50px}}

canvas{cursor:url("cik-brush.svg") 3 29,crosshair}.brush-icon{width:32px;height:32px}.tools img{width:32px;height:32px}@media(max-width:600px){.brush-icon,.tools img{width:24px;height:24px}}

.paint-intro{font-size:14px;line-height:1.5;margin:10px 12px 0}
