:root{font-family:-apple-system,BlinkMacSystemFont,"Avenir Next",system-ui,sans-serif;color:#304137;background:#f7f1e5;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0}button{font:inherit;min-height:48px;padding:11px 14px;border:1px solid #d9cfb9;border-radius:12px;background:#fffdf6;color:#3b4b3e;font-weight:750;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #d9a044;outline-offset:2px}button:disabled{opacity:.4}.shell{max-width:1410px;margin:auto;padding:24px}.mast{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.brand{display:flex;align-items:center;gap:15px}.mark{width:61px;height:61px;background:#245845;color:#fef4df;border-radius:17px;display:grid;place-items:center;font-size:45px}.brand small{font-size:10px;letter-spacing:2px;font-weight:800;color:#8c7e64}h1{font:700 clamp(24px,2.8vw,37px) Georgia,serif;margin:2px 0}.brand p{color:#82785e;font-size:13px;margin:0}.save{font-size:12px;color:#236e51;border-radius:30px;padding:11px 15px;background:#e1ede1;font-weight:750}.workspace{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(315px,.83fr);gap:18px;align-items:start}.stage,.sidebar{background:#fffcf3;border:1px solid #e2d7c2;box-shadow:0 18px 42px #42372114;border-radius:19px;overflow:hidden}.stage-head,.stage-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 18px;color:#68705c;font-size:11px;font-weight:800;letter-spacing:1px}.stage-head{border-bottom:1px solid #e8e2d5}.stage-foot{border-top:1px solid #e8e2d5;letter-spacing:0}.stage-foot span:last-child{font-size:10px;text-align:right;color:#8e8775}canvas{display:block;width:100%;aspect-ratio:920/560;height:auto;background:#d4e5e3;touch-action:none;user-select:none;-webkit-user-select:none}.tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#ece6d9}.tabs button{border:0;border-radius:0;background:transparent;color:#756f60;min-height:67px;font-size:12px;padding:8px 4px}.tabs button span{display:block;font-size:10px;letter-spacing:1px;margin-bottom:5px}.tabs .active{color:white;background:#245845}.tools{padding:22px;min-height:333px}.tools h2{font:700 24px Georgia,serif;margin:0 0 8px}.tools p{font-size:14px;color:#6f735e;line-height:1.5;margin:0 0 12px}.tools h3{font-size:11px;letter-spacing:1.4px;color:#8b7e65;text-transform:uppercase;margin:15px 0 8px}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}.row button{flex:1}.row .number{min-width:45px;text-align:center;font-size:18px;font-weight:850}.row button.on,.row button.chosen{background:#ddeddf;color:#1c6149;border-color:#64a080}.grid-pos{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:10px 0}.grid-pos button{padding:4px 0;min-height:49px}.grid-pos button.chosen{background:#245845;color:white}.tool{min-width:115px;font-size:13px}.hint{background:#f3ecde;color:#736246;font-size:13px;line-height:1.4;border-radius:11px;padding:12px;margin:12px 0}.actions{border-top:1px solid #ebe3d5;padding:15px 20px}.primary{background:#d69140;border-color:#cc8939;color:white;font-size:17px;width:100%;min-height:55px;box-shadow:0 4px 0 #ab7030}.subactions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.subactions button{font-size:13px}.steps{display:grid;gap:7px}.steps div{font-size:13px;font-weight:750;padding:10px 12px;border-radius:10px;background:#f1ecde}.steps .done{background:#deecde;color:#317451}.steps .current{outline:2px solid #dca247}.status{display:flex;gap:16px;align-items:center;margin-top:19px;padding:16px 22px;border:1px solid #d0d8c2;background:#e8eddf;border-radius:15px;font-size:14px}.status strong{color:#2b674f;white-space:nowrap}.status.bad{background:#fff1e5;border-color:#e7caab}.status.bad strong{color:#a34b35}.status.good{background:#dcebdc}.footnote{text-align:center;color:#928775;font-size:11px;margin-top:18px}@media(max-width:930px){.workspace{grid-template-columns:1fr}.tools{min-height:0}}@media(max-width:520px){.shell{padding:13px}.mast{align-items:flex-start}.mark{width:43px;height:43px;font-size:31px;border-radius:12px;flex-shrink:0}.brand{gap:9px}.brand small{font-size:8px;letter-spacing:1px}h1{font-size:21px}.brand p{font-size:11px}.save{font-size:10px;padding:8px}.stage-head,.stage-foot{padding:11px 12px;font-size:9px}.stage-foot span:last-child{font-size:8px}.tools{padding:16px}.tabs button{min-height:57px}.status{display:block;padding:13px}.status strong{display:block;margin-bottom:5px}.grid-pos button{min-height:48px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Direct drawing tools live with the canvas rather than below the scroll fold. */
.canvas-tools{padding:12px 15px;background:#f7f3e8;border-top:1px solid #e4dac9}
.tool-palette{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px}
.draw-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:82px;flex:1;min-height:57px;padding:6px 9px;background:#fffdf6;font-size:12px;font-weight:800;line-height:1.1}
.draw-tool.active{background:#245845;color:#fff;border-color:#245845;box-shadow:0 2px 0 #15372b}
.draw-tool .tool-emoji{font-size:24px;line-height:1.15}
.draw-tool:focus-visible{outline:3px solid #df9f2e;outline-offset:2px}
.site-quick{display:flex;gap:12px;align-items:center;margin-top:10px}
.site-quick .test-near{min-width:144px;min-height:53px;background:#d69140;color:white;border-color:#b87b30;box-shadow:0 3px 0 #aa6e31}
#brush-tip{flex:1;color:#596956;font-size:13px;line-height:1.3}
@media(max-width:520px){
 .canvas-tools{padding:9px 10px}.tool-palette{gap:6px}
 .draw-tool{min-width:90px;min-height:54px;padding:5px 6px}.draw-tool .tool-emoji{font-size:22px}
 .site-quick{gap:9px}.site-quick .test-near{min-width:132px;font-size:13px}
 #brush-tip{font-size:11px}
 .mast{margin-bottom:12px}.stage-foot{padding:7px 10px}
}
