:root{color-scheme:light;--green:#172720;--ink:#1d3026;--muted:#51645a;--paper:#f0f3ed;--white:#fbfdf8;--line:#d7e0d6;--light:#daf4d7;--lime:#d8f6aa;font:16px/1.4 "Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper)}[hidden]{display:none!important}.top{min-height:77px;background:var(--green);color:white;display:flex;align-items:center;justify-content:space-between;padding:10px clamp(14px,3vw,44px);gap:10px}.brand{display:flex;align-items:center;gap:12px}.logo{display:grid;place-items:center;background:var(--lime);color:var(--green);width:42px;height:42px;border-radius:12px;font-size:26px}.top h1{font-size:23px;margin:0;line-height:1.13;letter-spacing:-.04em}.top p{margin:3px 0 0;color:#ccdbcf;font-size:14px}.top p span{padding:0 4px}.top a{color:#e0ecd8;text-underline-offset:4px;font-size:14px;text-align:right}
main{max-width:1800px;margin:auto;padding:clamp(10px,2vw,24px);display:grid;grid-template-columns:minmax(0,1fr) clamp(270px,27vw,350px);gap:16px}.panel,.board{border:1px solid var(--line);border-radius:16px;background:var(--white)}.board{overflow:hidden;min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:calc(100dvh - 125px);min-height:440px}.toolbar,.board-footer{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:9px 13px}.toolbar{border-bottom:1px solid var(--line)}.zoom{display:flex;gap:4px}.board-footer{font-size:14px;color:var(--muted);border-top:1px solid var(--line);min-height:42px}#scale{flex:none}
button,.button{border:1px solid var(--line);background:white;color:var(--ink);border-radius:8px;min-height:36px;padding:5px 10px;font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}button:hover,.button:hover{background:#edf5e9}button[aria-pressed=true],.button{background:var(--light);border-color:#9fc4a2}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:2px solid #247a4f;outline-offset:2px}.zoom button{min-width:38px}
#view{position:relative;overflow:auto;overscroll-behavior:contain;background:#e6ebe4;scrollbar-color:#97ab9e #e6ebe4;touch-action:pan-x pan-y}#view.drag{cursor:grab;touch-action:none}#view.drag:active{cursor:grabbing}#scene{position:relative;margin:0 auto;background:white;width:0;height:0}#schema,#shade{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#shade{mix-blend-mode:multiply}#pin{position:absolute;border:2px solid #8a3200;background:#ffbc53;width:13px;height:13px;border-radius:100%;transform:translate(-50%,-50%);pointer-events:none;box-shadow:0 0 0 3px #fff}
aside{min-width:0;display:grid;gap:12px;align-content:start}.panel{padding:15px}.section-title{display:flex;justify-content:space-between;align-items:center;min-height:34px;margin-bottom:8px;gap:8px}h2{font-size:18px;margin:0;letter-spacing:-.025em}p{margin:8px 0;color:var(--muted)}input:not([type=file]){min-width:0;font:inherit;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:7px 10px;background:white}#search{width:100%;margin-bottom:10px}.colors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;max-height:330px;overflow:auto;padding:2px}.colors button{position:relative;padding-inline:0;font-size:14px}.colors button.has-photo::after{content:"";position:absolute;right:4px;top:4px;width:5px;height:5px;border-radius:50%;background:#378252}.colors button[aria-pressed=true]{border-color:#407d51;box-shadow:inset 0 0 0 1px #407d51}#clear{font-size:14px}#badge{background:var(--light);padding:3px 9px;border-radius:7px;font-weight:700}#photo-link{display:block;margin-bottom:9px;text-align:center;background:#e9efe9;border-radius:10px}#photo{display:block;margin:auto;max-height:175px;max-width:100%;border-radius:10px}.marker-actions,#correct{display:flex;gap:6px;flex-wrap:wrap}.marker-actions .button{display:flex;align-items:center}.note,#photo-error,.corrections p{font-size:14px}.corrections summary{cursor:pointer;font-weight:600}.corrections input{flex:1;width:90px}.sr-only{position:absolute;width:1px;height:1px;padding:0;opacity:0;overflow:hidden}.sr-only:focus-visible+*{outline:2px solid #247a4f}
@media(max-width:720px){.top{min-height:64px}main{grid-template-columns:minmax(0,1fr);gap:10px}.board{height:61dvh;min-height:350px}.colors{grid-template-columns:repeat(auto-fit,minmax(47px,1fr));max-height:170px}.panel{padding:11px}.top h1{font-size:21px}}

