@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@500;600;700&display=swap');
:root{--ink:#334338;--muted:#7c8379;--green:#455e4e;--line:#e8e9e1;--paper:#fffefb;--yellow:#eac466;--bg:#f6f7f2}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'Noto Sans SC',sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit;border-radius:8px;transition:background .15s,transform .15s}button:hover{background:#e9ede4}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #c69237;outline-offset:3px}button:disabled{opacity:.4;cursor:not-allowed}header{height:91px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;background:var(--paper)}.brand{text-decoration:none;color:var(--ink);display:flex;gap:11px;align-items:center;font:600 27px 'Noto Serif SC',serif}.brandmark{font-size:45px;line-height:1;color:var(--green)}.brand small{display:block;font:9px 'Noto Sans SC',sans-serif;letter-spacing:2.5px;margin-top:2px}.header-note{letter-spacing:2px;color:#929589;font-family:'Noto Serif SC',serif;font-size:14px}.primary{padding:12px 20px;background:var(--green);color:white}.primary:hover{background:#304938}.outline{padding:12px;border:1px solid #cbd4c8;background:white}.full{width:100%}.muted{color:var(--muted);line-height:1.8}.tiny{font-size:12px;color:var(--muted);line-height:1.8}.text-button{color:var(--green);padding:8px;font-size:12px}.section-kicker{letter-spacing:2px;font-size:10px;color:#9a9c8f}h1{font-family:'Noto Serif SC',serif;font-weight:600;font-size:27px;margin:10px 0 4px}h2{font-size:14px;font-weight:600;margin:0 0 13px}h3{font-family:'Noto Serif SC',serif;font-size:23px}main{display:grid;grid-template-columns:248px minmax(420px,1fr) 232px;min-height:calc(100vh - 91px);max-width:1800px;margin:auto}.left-panel{padding:27px 23px;background:var(--paper);border-right:1px solid var(--line)}.left-panel>.muted{font-size:12px;margin:0 0 25px}.progress-label{font-size:11px;display:flex;justify-content:space-between;gap:8px;color:var(--muted)}.progress-label b{color:var(--ink);font-weight:500}.progress-track{height:5px;background:#ecefe5;border-radius:10px;margin:9px 0 29px;overflow:hidden}.progress-track i{display:block;background:#889d6b;height:100%;width:0;transition:width .2s}section+section{margin-top:22px}.section-heading{display:flex;align-items:center;justify-content:space-between}.section-heading h2{margin-bottom:12px}.section-heading .text-button{margin-top:-10px}.reference-paper{padding:10px;border:1px solid #e6e6da;border-radius:4px;background:white;box-shadow:0 3px 8px #34443405;transform:rotate(-1.5deg)}.reference-paper canvas{width:100%;display:block;image-rendering:pixelated}.segmented{display:flex;border-radius:8px;padding:4px;background:#f0f2eb;gap:3px}.segmented button{flex:1;padding:9px 3px;font-size:12px}.segmented .active{background:#fff;box-shadow:0 2px 5px #26332612}.tools{display:flex;gap:8px}.tool{flex:1;padding:7px 3px 12px;border:1px solid var(--line);display:flex;flex-direction:column;align-items:center;background:#fff}.tool.active{border-color:#718566;background:#eef2e8}.tool-symbol{font:60px Georgia,serif;height:66px;color:#737f7c;text-shadow:1px 0 #fff,3px 1px #bac4c2;transform:rotate(22deg)}.pen-symbol{color:#a28261;transform:rotate(-5deg);text-shadow:3px 0 #d9b89c;font-size:59px}.tool b{font-weight:500;font-size:13px}.tool small{font-size:10px;color:var(--muted);margin-top:5px}.switch-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:16px 0 0;gap:15px}.switch-row input{accent-color:var(--green);width:17px;height:17px}.local-note{font-size:10px;color:#9c9f95;margin-top:25px}.workspace{min-width:0;margin:0!important;position:relative;background:radial-gradient(ellipse at 45% 36%,#f7f7ef 0%,#ecefe5 95%);display:flex;flex-direction:column;padding:21px 28px 17px}.workspace-top{display:flex;justify-content:space-between;align-items:center;min-height:31px}.table-label{font-size:12px;color:#7a8375;letter-spacing:1px}.demo-tag{display:inline-block;background:#e7ebdf;padding:3px 7px;border-radius:4px;font-size:10px;color:#73816a;letter-spacing:0;margin-left:7px}.small-actions{display:flex;gap:3px}.small-actions button{min-width:30px;height:30px;font-size:20px}.small-actions button:last-child{font-size:12px;padding:3px 8px}#boardViewport{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:410px;overflow:auto;padding:40px 20px 35px;scrollbar-width:thin}.board-stage{flex-shrink:0;width:min(100%,590px);padding:16px 17px 13px;background:linear-gradient(135deg,#fafbf8,#e8ece4);border:1px solid #d7dcd2;border-radius:10px;box-shadow:0 20px 38px #39452c12,0 5px 0 #d3d9cf,0 6px 0 #adb9a9;transition:width .15s}.board-caption,.board-bottom{display:flex;justify-content:space-between;color:#9aa193;font-size:9px;letter-spacing:2px;margin:0 4px 13px}.board-bottom{margin:13px 4px 0;letter-spacing:0;font-size:10px}#board{display:block;width:100%;height:auto;touch-action:none;border-radius:3px;background:#e5e9df;cursor:crosshair;user-select:none}.workspace-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #dfe4d8;padding-top:18px;gap:12px}.current-color{display:flex;align-items:center;gap:12px}.current-color b{font-size:13px;font-weight:500}.current-color small{display:block;font-size:11px;color:#839079;margin-top:4px}.bead{--c:#eac466;display:block;background:radial-gradient(circle at 43% 39%,#536042 0 17%,#0004 18% 23%,transparent 24%),radial-gradient(circle at 30% 20%,#ffffff80,transparent 48%),var(--c);border-radius:50%;box-shadow:inset -2px -3px 3px #0003,inset 1px 1px 1px #fff9,0 3px 2px #0002;width:31px;height:31px}.zoom-controls{display:flex;align-items:center;gap:7px;color:#73816e;font-size:11px}.zoom-controls button{width:26px;height:27px}.zoom-controls #fit{width:40px}.instruction-strip{text-align:center;font-size:10px;color:#959c8c;margin-top:18px;line-height:1.9}.right-panel{padding:29px 22px;background:#fafbf6;border-left:1px solid var(--line)}.palette-intro{font-size:11px;margin:0 0 25px}.color-item{width:100%;display:flex;align-items:center;gap:11px;padding:13px 10px;border:1px solid transparent;margin-bottom:8px;text-align:left}.color-item.active{background:#fff;border-color:#9aa98c;box-shadow:0 3px 7px #44573606}.color-item .bead{width:34px;height:34px;flex-shrink:0}.color-name{font-size:12px;display:block}.color-code{font-size:10px;color:#969d8c;display:block;margin-top:3px}.color-remaining{margin-left:auto;font-size:11px;color:#8d9885;white-space:nowrap}.tray-note{display:flex;align-items:center;gap:12px;padding:20px 0;color:#a0a793;margin:8px 0 15px;border-bottom:1px dashed #dfe3d6}.tray-note span{font-size:29px}.tray-note p{font:12px/1.9 'Noto Serif SC',serif}.right-panel .outline{font-size:12px}.right-panel>.text-button{margin-top:9px}.check-result{font-size:12px;line-height:1.8;padding-top:12px;color:#64764f}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#314637;color:white;padding:12px 22px;border-radius:10px;box-shadow:0 5px 20px #0002;opacity:0;transition:.2s;pointer-events:none;z-index:20;font-size:13px;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #dedfd4;padding:30px;border-radius:18px;background:var(--paper);color:var(--ink);width:min(780px,92vw);max-height:88vh;box-shadow:0 24px 90px #1f342630}dialog::backdrop{background:#1f332c55;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.dialog-head h2{font:600 25px 'Noto Serif SC',serif;margin:6px 0}.close{font-size:27px;width:36px;height:36px}.dialog-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:23px}.dialog-tabs button{padding:10px 0 14px;border-radius:0;color:#929b8b}.dialog-tabs button.active{border-bottom:2px solid var(--green);color:var(--green)}.preset-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.preset-card{text-align:left;border:1px solid var(--line);padding:15px;background:#f2f4eb;border-radius:12px}.preset-card canvas{width:100%;image-rendering:pixelated;background:white;border-radius:5px;margin-bottom:12px}.preset-card b{display:block;font:600 16px 'Noto Serif SC',serif}.preset-card small{display:block;color:var(--muted);font-size:11px;margin-top:7px}.upload-zone{display:flex;flex-direction:column;align-items:center;padding:32px 15px;border:1px dashed #abb9a0;border-radius:10px;cursor:pointer;background:#f4f6ed;gap:10px}.upload-zone span{font-size:12px;color:var(--muted)}.upload-zone small{font-size:11px;color:#969d8b}.import-settings{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-top:24px}.import-settings label{font-size:12px}.import-settings select{display:block;width:100%;padding:9px 8px;border:1px solid #d9dfd2;border-radius:5px;background:white;color:var(--ink);margin-top:7px}.import-settings .switch-row{grid-column:1/-1;justify-content:flex-start;padding:0}#importPreview{margin-top:24px;display:flex;align-items:center;gap:24px}#importPreview[hidden]{display:none}#converted{width:45%;max-width:260px;border:1px solid var(--line);border-radius:5px}#importStats{line-height:1.9;color:var(--muted)}.error{color:#a44d39;font-size:13px}.ai-feature{display:flex;gap:30px;align-items:center}.ai-feature img{width:42%;border-radius:12px}.ai-feature p{font-size:14px;line-height:1.9;color:var(--muted)}.ai-feature .demo-tag{margin:0}.ai-disclosure{background:#f0f3e9;padding:16px 20px;margin-top:28px;border-radius:10px;font-size:12px;line-height:1.9}.ai-disclosure p{margin-bottom:0;color:var(--muted)}#largeReference{width:100%;max-height:65vh;object-fit:contain}#confirmDialog{width:400px}#confirmDialog p{line-height:1.9;color:var(--muted)}.confirm-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:25px}#cursorTool{display:none;position:absolute;pointer-events:none;z-index:3;width:15px;height:110px;transform:translate(-5px,-99px) rotate(24deg);transform-origin:bottom center;border-radius:10px 10px 3px 3px;background:linear-gradient(90deg,#717f7c,#eef2f0 35%,#bac5c0 58%,#6e7b77);clip-path:polygon(0 0,100% 0,83% 80%,59% 100%,51% 95%,65% 77%,66% 12%,35% 12%,34% 77%,49% 95%,40% 100%,16% 80%);filter:drop-shadow(2px 3px 2px #0003)}#cursorTool.pen{width:18px;background:linear-gradient(90deg,#729a82,#c0d6b9 40%,#618b74);clip-path:polygon(5% 0,95% 0,95% 80%,60% 100%,40% 100%,5% 80%)}
@media(min-width:1500px){main{grid-template-columns:280px 1fr 260px}.left-panel,.right-panel{padding:32px}.board-stage{width:min(100%,660px)}}@media(max-width:1100px){header{padding:0 23px}.header-note{display:none}main{grid-template-columns:210px minmax(340px,1fr) 185px}.left-panel,.right-panel{padding:22px 15px}.workspace{padding:18px 15px}#boardViewport{padding:25px 7px;min-height:370px}.color-item{gap:7px;padding:12px 5px}.color-item .bead{width:28px;height:28px}.color-remaining{font-size:10px}.demo-tag{display:none}}@media(max-width:800px){header{height:72px;padding:0 18px}.brand{font-size:23px}.brandmark{font-size:37px}.primary{padding:10px 15px}main{display:flex;flex-wrap:wrap}.workspace{order:0;width:100%;padding:14px 17px}.left-panel{order:2;width:52%;padding:22px 18px}.right-panel{order:3;width:48%;padding:22px 18px}#boardViewport{min-height:0;padding:24px 12px 28px}.board-stage{max-width:480px}.workspace-bottom{padding-top:13px}.instruction-strip{font-size:10px;margin-top:12px}.table-label{font-size:12px}.reference-paper{max-width:210px}.current-color small{font-size:10px}.zoom-controls{gap:2px}.board-bottom{font-size:9px}.preset-cards{gap:8px}.preset-card{padding:9px}.preset-card b{font-size:14px}.preset-card small{font-size:10px}.import-settings{gap:9px}dialog{padding:22px}.ai-feature{gap:15px}.ai-feature h3{font-size:20px}.ai-feature p{font-size:12px}#importPreview{gap:14px}#importPreview h3{font-size:17px}#importStats{font-size:12px}.local-note{font-size:10px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Comfortable labels for the working surface. */
body{font-size:16px}.section-kicker{font-size:12px}.brand small{font-size:10px}h2{font-size:16px}.table-label,.color-name,.current-color b,.tool b,.segmented button,.right-panel .outline{font-size:14px}.tiny,.text-button,.left-panel>.muted,.progress-label,.palette-intro,.color-code,.color-remaining,.tool small,.switch-row,.local-note,.current-color small,.zoom-controls,.instruction-strip,.small-actions button:last-child{font-size:12px}.reference-paper{transform:none}.import-settings label,.upload-zone span,.ai-disclosure{font-size:14px}.import-settings select{font-size:14px}.preset-card small{font-size:12px}.board-caption,.board-bottom{font-size:10px}.demo-tag{font-size:12px}.muted{font-size:14px}
@media(max-width:800px){.instruction-strip{font-size:12px}.workspace-bottom{align-items:flex-start}.zoom-controls{flex-wrap:wrap;justify-content:flex-end;max-width:132px}.current-color small{font-size:12px}.local-note{font-size:12px}.color-item{padding-left:3px;padding-right:3px;gap:6px}.color-name{font-size:13px}.color-remaining{font-size:12px}.ai-feature{flex-direction:column;align-items:stretch}.ai-feature img{width:100%;max-height:240px;object-fit:contain}.ai-feature p{font-size:14px}.preset-cards{grid-template-columns:1fr}.preset-card{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:8px}.preset-card canvas{grid-row:1/3;margin:0}.preset-card small{align-self:start}.preset-card b{align-self:end;font-size:16px}.dialog-tabs{gap:17px}.dialog-tabs button{font-size:14px}.import-settings{grid-template-columns:1fr 1fr}.import-settings .switch-row{grid-column:1/-1}.section-kicker{letter-spacing:1px}}
/* Joined boards and the color cabinet. */
main{grid-template-columns:248px minmax(400px,1fr) 300px}.workspace{min-height:760px}.grid-options{display:flex;gap:5px;margin-top:12px}.grid-options button{flex:1;font-size:13px;padding:8px 2px;background:#eff2e9;border:1px solid transparent}.grid-options .active{border-color:#819376;background:#fff}.tile-navigation{display:flex;align-items:center;gap:9px;padding:15px 0 0;font-size:13px;flex-wrap:wrap}.tile-navigation>button{padding:7px 9px;border:1px solid #d6dfcf;background:#f9fbf6}.tile-navigation label{display:flex;align-items:center;gap:5px;margin-left:auto;font-size:12px}.tile-navigation select,.drawer-options select{border:1px solid #d3dbca;border-radius:6px;padding:5px;background:#fff;color:var(--ink);font-size:13px}#boardViewport{min-height:430px;max-height:750px;height:65vh;align-items:center}.board-stage{max-width:none;transition:background .2s;flex-shrink:0}#boardViewport.joined{justify-content:flex-start;align-items:flex-start;padding-top:24px}.dark-board{background:linear-gradient(140deg,#596267,#3e4649);border-color:#687477;box-shadow:0 20px 38px #28312c22,0 5px 0 #2b3437,0 6px 0 #152126}.dark-board .board-caption,.dark-board .board-bottom{color:#e2e8e6}.board-bottom{gap:10px;font-size:10px}.right-panel{padding:26px 15px}.drawer-options{display:flex;justify-content:space-between;align-items:center;font-size:12px;padding-bottom:12px}.drawer{border:1px solid #d9dfd1;border-radius:7px;overflow:hidden;margin-bottom:7px;background:#f0f3e9;box-shadow:0 2px 0 #d8dece}.drawer-handle{display:flex;align-items:center;width:100%;padding:10px 11px;gap:9px;text-align:left;border-radius:0;font-size:13px}.drawer-handle:after{content:'⌄';margin-left:2px;color:#77876b}.drawer.open .drawer-handle:after{transform:rotate(180deg)}.drawer-handle small{margin-left:auto;color:#839176;font-size:11px}.drawer-swatches{display:flex;align-items:center}.drawer-swatches i{width:10px;height:17px;border:1px solid #0001;margin-left:-2px;border-radius:3px}.drawer-cells{display:grid;grid-template-columns:repeat(var(--drawer-cols),minmax(0,1fr));gap:2px;padding:9px 5px 4px;border-top:1px solid #d6decc;background:#e0e7d7}.drawer-cell{display:flex;align-items:center;flex-direction:column;gap:4px;min-width:0;padding:7px 1px 5px;background:#f7f9f2;border:1px solid #c6d0bc;box-shadow:inset 0 2px 3px #00000008;border-radius:3px}.drawer-cell .bead{width:19px;height:19px;flex-shrink:0}.drawer-cell b{font-size:11px;font-weight:500}.drawer-cell small{font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.drawer-cell.active{outline:2px solid #53734a;outline-offset:-2px;background:#fff}.drawer-cell.needed b{font-weight:700}.drawer-tip{margin:0;padding:7px;font-size:10px;color:#728266;background:#e0e7d7;line-height:1.7}.tray-section{margin:24px 0 20px}.tray-section h2{font-size:14px}.tray-section .section-heading b{font-size:12px;font-weight:500;color:#6b7f5f}.tray-button{display:block;width:100%;padding:0;border:1px solid #c7d1bc;border-radius:14px;overflow:hidden;box-shadow:0 4px 0 #c9d3bf;background:#e3e8dc}.tray-button:active{transform:none}.tray-button canvas{display:block;width:100%;height:auto}.tray-section .tiny{margin-top:12px}.tray-section .outline{font-size:12px}#overview{display:block;width:100%;background:#fff;border:1px solid #d5dccd;margin-top:12px;cursor:crosshair}#overviewToggle{font-size:12px;padding:9px}.restore-label{display:block;text-align:center;font-size:12px;color:#718565;cursor:pointer;padding:8px}#jumpDialog{max-width:420px}#jumpDialog input{width:100%;margin-top:9px;padding:9px;border:1px solid #cad5c0;border-radius:7px;font:inherit}#jumpDialog .primary{margin-top:24px}#uploadError{color:#77836a}.preset-card img{display:block;width:100%;border-radius:6px;margin-bottom:12px}.preset-cards{grid-template-columns:repeat(2,1fr)}.import-settings{grid-template-columns:1.3fr 1fr 1fr}.import-settings select{max-width:100%;font-size:13px}.local-note{line-height:1.7}.board-caption{font-size:10px;letter-spacing:1px}.instruction-strip{line-height:1.8}
@media(min-width:1500px){main{grid-template-columns:270px minmax(500px,1fr) 320px}.right-panel{padding:28px 20px}}@media(max-width:1150px){main{grid-template-columns:210px minmax(320px,1fr) 258px}.left-panel{padding:22px 14px}.workspace{padding:18px 12px}.right-panel{padding:22px 10px}.drawer-handle{padding:9px}.drawer-cells{padding-left:3px;padding-right:3px}.drawer-cell .bead{width:17px;height:17px}.drawer-cell b{font-size:10px}.drawer-cell small{font-size:9px}}
@media(max-width:800px){main{display:flex}.workspace{width:100%;min-height:0;padding:14px 14px}.left-panel{width:45%;padding:22px 12px}.right-panel{width:55%;padding:22px 8px}#boardViewport{min-height:0;height:auto;max-height:65vh;min-height:330px;align-items:flex-start;padding:20px 10px 25px}.board-stage{padding:12px 10px}.tile-navigation{font-size:12px;gap:6px}.tile-navigation label{margin-left:auto}.tile-navigation>button{padding:6px 8px}.workspace-bottom{gap:8px}.drawer-handle{font-size:12px;gap:5px;padding:9px 5px}.drawer-handle small{font-size:10px}.drawer-swatches i{width:8px;height:14px}.drawer-cells{gap:1px;padding:7px 2px}.drawer-cell .bead{width:15px;height:15px}.drawer-cell{padding:5px 0;gap:4px}.drawer-cell b{font-size:9px}.drawer-cell small{font-size:9px}.drawer-tip{font-size:10px}.palette-intro{font-size:12px;margin-bottom:14px}.right-panel h2{font-size:14px}.right-panel #colorCount{font-size:10px}.grid-options{gap:3px}.grid-options button{font-size:11px}.left-panel h1{font-size:23px}.segmented button{font-size:12px}.tool{min-width:0}.tool small{font-size:10px}.tool b{font-size:13px}.section-heading .text-button{font-size:10px}.section-heading h2{font-size:14px}.tile-navigation .text-button{font-size:12px}.preset-cards{grid-template-columns:1fr}.preset-card img{width:90px;grid-row:1/3;margin:0}.import-settings{grid-template-columns:1fr 1fr}.import-settings label:first-child{grid-column:1/-1}.import-settings select{font-size:14px}#importPreview{flex-direction:column;align-items:stretch}#converted{width:100%;max-width:100%}.reference-paper{padding:5px}.board-bottom{font-size:9px}.board-caption{font-size:9px}.zoom-controls{max-width:110px}}
@media(max-width:600px){.right-panel{width:100%;order:1;padding:22px 20px;border-left:0;border-bottom:1px solid var(--line)}.left-panel{width:100%;order:2;padding:26px 22px}.drawer-handle{font-size:14px;padding:12px}.drawer-handle small{font-size:12px}.drawer-cells{gap:4px;padding:10px 7px}.drawer-cell{padding:9px 2px;gap:6px;min-height:79px}.drawer-cell .bead{width:25px;height:25px}.drawer-cell b,.drawer-cell small{font-size:12px}.drawer-tip{font-size:12px;padding:8px}.drawer-swatches i{width:11px;height:18px}.tray-button{max-width:440px;margin:auto}.tray-section .section-heading{max-width:440px;margin:auto}.left-panel .reference-paper{max-width:100%;width:100%}.left-panel h1{font-size:27px}.tool small,.segmented button,.grid-options button{font-size:14px}.tools{max-width:400px}.tool{padding:10px}.section-heading h2{font-size:16px}.reference-paper canvas{max-height:330px;object-fit:contain}.left-panel #overview{max-height:330px;object-fit:contain}.right-panel h2{font-size:16px}.palette-intro{font-size:14px}.section-heading .text-button{font-size:12px}}
