/* Draft-only structure calibration, measurement and preview controls. */
#sheetDialog .sheet-dialog-content{grid-template-columns:minmax(0,1fr) 295px}
#sheetDialog .sheet-map-panel{position:static;background:#fff;overflow:hidden}
.editor-modebar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px;padding:11px 12px;background:#f8faf4;border-bottom:1px solid #e4e9dc}
.editor-modes{display:flex;gap:3px;padding:3px;background:#edf1e7;border-radius:7px}
.editor-modes button{border:0;background:transparent;border-radius:5px;color:#879576;font-family:inherit;font-size:11px;font-weight:500;line-height:1.5;padding:7px 10px;cursor:pointer;white-space:nowrap}
.editor-modes button[aria-pressed=true]{background:#fff;color:#576a48;box-shadow:0 1px 4px #54653f17}
.draft-history{display:flex;align-items:center;gap:4px}.draft-history button{border:1px solid #dce3d2;border-radius:5px;width:29px;height:29px;background:#fff;color:#738662;font-size:20px;line-height:1;cursor:pointer}.draft-history button:disabled{opacity:.35;cursor:default}.draft-history span{font-size:9px;color:#9ba88f;margin-left:3px}
.editor-upgrade-settings{display:grid;gap:12px;margin:0 0 15px}.draft-dimensions{border:1px solid #e0e6d5;background:#f9fbf5;border-radius:6px;padding:12px}.draft-dimensions>div{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:#798b66}.draft-dimensions strong{font-weight:550}.draft-dimensions>div span{border-radius:3px;background:#fbf0d5;color:#9c7d3e;padding:3px 5px;font-size:9px}.draft-dimensions>div span[data-measured=true]{background:#e6efdf;color:#688253}.draft-dimensions>output{display:block;font:600 15px/1.7 monospace;letter-spacing:-.2px;color:#61784d;margin:8px 0 9px}.draft-dimensions>label,.boundary-value{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#839572;font-size:10px}.draft-dimensions>label>span,.boundary-value>span{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:9px;color:#95a285}.draft-dimensions input,.editor-tool input[type=number]{width:86px;min-width:0;height:31px;border:1px solid #dce4d1;border-radius:4px;background:#fff;color:#657a52;padding:4px 7px;font:11px monospace;text-align:right;box-sizing:border-box}.draft-dimensions input:disabled{opacity:.5}.draft-dimensions small{display:block;color:#9da88f;font-size:9px;line-height:1.8;margin-top:7px}.editor-tool{display:grid;gap:10px;padding:12px;border:1px solid #e1e7d8;border-radius:6px;background:#fdfefa;font-size:10px;color:#839371}.editor-tool[hidden],#calibrationFields[hidden],#draftPreviewMessage[hidden]{display:none}.editor-tool>label:not(.boundary-value):not(.artwork-follow-label){font-weight:550}.editor-tool select{height:32px;min-width:0;width:100%;border:1px solid #dfe5d5;border-radius:4px;background:#fff;color:#6f805c;padding:4px 7px;font-size:10px}.editor-tool p{margin:0;color:#9aa58e;font-size:9px;line-height:1.9}.artwork-follow-label{display:flex;align-items:center;gap:7px;font-size:10px;color:#70885b}.artwork-follow-label input{width:15px;height:15px;accent-color:#82976c}.measurement-actions{display:flex;justify-content:space-between;gap:7px}.measurement-actions .button{font-size:9px;height:30px;padding:0 8px}.editor-tool output{padding:8px 9px;border-radius:4px;color:#568ba1;background:#edf6f8;font:11px monospace;line-height:1.5}
.draft-preview-section{border-top:1px solid #e5eadc;background:#fafbf7;padding:11px 12px 8px}.draft-preview-section>div{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#7d8e6d}.draft-preview-section strong{font-weight:550}.draft-preview-section>div span{font-size:8px;color:#a0ac92}.draft-preview-section canvas{display:block;width:100%;height:200px;min-height:0;background:radial-gradient(ellipse at 50% 56%,#f2f4ec 0,#fafbf7 70%);border-radius:5px;margin:7px 0;touch-action:none}.draft-preview-section>label{display:flex;align-items:center;gap:10px;font-size:9px;color:#91a07f}.draft-preview-section input[type=range]{flex:1;min-width:40px;accent-color:#98a77e;height:20px;margin:0}.draft-preview-section output{font:10px monospace;min-width:32px;text-align:right}.draft-preview-section>p{font-size:10px;color:#b17c50;margin:6px 0 3px;line-height:1.6}#sheetDialog .calibration-settings{padding-bottom:5px}#sheetDialog[data-editor-mode=measure] #sheetMapCanvas{cursor:crosshair}
@media(min-width:681px){#sheetDialog .sheet-map-panel #sheetMapCanvas{max-height:min(64vh,520px);min-height:360px;width:auto;max-width:100%;margin:0 auto}}
@media(max-width:1000px) and (min-width:681px){#sheetDialog .sheet-dialog-content{grid-template-columns:minmax(0,1fr) 265px}.editor-modebar{padding:8px}.editor-modes button{padding:7px 6px;font-size:10px}.draft-preview-section canvas{height:175px}.draft-history span{display:none}}
@media(max-width:680px){#sheetDialog .sheet-dialog-content{display:flex;flex-direction:column;gap:16px}.editor-modebar{position:sticky;top:0;z-index:1;padding:9px;gap:7px}.editor-modes{flex:1}.editor-modes button{flex:1;font-size:10px;padding:8px 7px}.draft-history span{display:none}.draft-history button{width:31px;height:31px}.draft-preview-section canvas{height:180px}.draft-preview-section{padding:11px 10px}.editor-upgrade-settings{grid-template-columns:1fr;gap:10px}.draft-dimensions>div{font-size:11px}.draft-dimensions>output{font-size:17px}.draft-dimensions>label,.boundary-value,.artwork-follow-label{font-size:11px}.draft-dimensions input,.editor-tool input[type=number]{height:36px;font-size:12px;width:100px}.editor-tool select{height:37px;font-size:11px}.editor-tool p,.draft-dimensions small{font-size:10px}.measurement-actions .button{height:35px;font-size:11px}.draft-preview-section>div{font-size:11px}.draft-preview-section>div span{font-size:9px}#sheetDialog .sheet-map-panel #sheetMapCanvas{width:100%;height:auto;max-height:none;min-height:100px}}

.editor-viewbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-bottom:1px solid #e6eadf;background:#fff}.editor-viewbar>div{display:flex;align-items:center;gap:5px}.editor-viewbar button{height:30px;min-width:30px;border:1px solid #dce4d2;border-radius:4px;padding:3px 8px;background:#fff;color:#778c62;font-family:inherit;font-size:11px;cursor:pointer}.editor-viewbar button[aria-pressed=true]{background:#edf3e5;border-color:#9bad84;color:#5f7848}.editor-viewbar output{font:10px monospace;min-width:39px;text-align:center;color:#8d9d7d}.editor-viewbar>span{font-size:8px;color:#a1ad93}
@media(max-width:680px){.editor-viewbar{padding:8px;flex-wrap:wrap}.editor-viewbar button{height:34px;min-width:34px;font-size:11px}.editor-viewbar>span{font-size:9px}.editor-viewbar>div{gap:5px}#sheetDialog .sheet-map-panel #sheetMapCanvas{min-height:100px;max-height:none}}
