:root{--easy-font:"Segoe UI","Meiryo","Hiragino Kaku Gothic ProN",sans-serif}
#easy-trial-status{font-size:12px;color:#626a78;line-height:1.6;white-space:pre-line;margin:0 0 8px}
.survey-easy{font-family:var(--easy-font)}
.survey-easy #canvas-wrap:is(.mode-pan,.mode-idle):not(.panning)[data-easy-cursor="crosshair"]{cursor:crosshair}
.survey-easy #canvas-wrap:is(.mode-pan,.mode-idle):not(.panning)[data-easy-cursor="text"]{cursor:text}
.survey-easy #canvas-wrap:is(.mode-pan,.mode-idle):not(.panning)[data-easy-cursor="default"]{cursor:default}
.easy-panel svg{display:block;width:22px;height:22px;margin:auto}.easy-weight-sample{display:block;width:28px;background:currentColor;margin:10px auto}.easy-size-sample{display:block;border:1.7px solid currentColor;border-radius:50%;margin:auto}.easy-panel #easy-sizes button{min-height:36px}
.easy-measure-bar[hidden]{display:none!important}
.easy-measure-bar{position:fixed;z-index:180;display:flex;align-items:center;gap:3px;width:max-content;box-sizing:border-box;padding:6px;background:#fff;border:1px solid #c2ccda;border-radius:12px;box-shadow:0 3px 6px #1a1a2e24,0 10px 26px #1a1a2e2e;font:13px var(--easy-font)}
.easy-measure-bar button{flex:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid transparent;border-radius:7px;background:transparent;color:#64748b;padding:7px;cursor:pointer;font:inherit}
.easy-measure-bar svg{display:block;width:22px;height:22px;flex:none}.easy-measure-bar button:hover{background:#f0f5fa;color:#285f92}.easy-measure-bar button[aria-pressed=true]{background:#e8f4f2;color:#138775;border-color:#c5e5df}.easy-measure-bar button:focus-visible{outline:2px solid #378add;outline-offset:-2px}.easy-measure-bar button:disabled{opacity:.35;cursor:default}
.easy-measure-bar #easy-tools-buttons{display:flex;flex:0 1 auto;flex-wrap:nowrap;min-width:0;min-height:0;gap:3px;margin:0;overflow:auto}.easy-measure-bar .easy-bar-actions{display:flex;border-left:1px solid #e4e8ee;padding-left:5px;margin-left:3px;gap:3px;flex:none}.easy-measure-bar #easy-measure-grip{width:20px;padding:0;color:#a3afbf;cursor:grab;touch-action:none}.easy-measure-bar #easy-measure-grip:active{cursor:grabbing}
.easy-measure-bar.vertical{flex-direction:column}.easy-measure-bar.vertical #easy-tools-buttons{flex-direction:column}.easy-measure-bar.vertical .easy-bar-actions{flex-direction:column;border-left:0;border-top:1px solid #e4e8ee;padding:5px 0 0;margin:3px 0 0}.easy-measure-bar.vertical #easy-measure-grip{width:36px;height:20px;transform:none}.easy-measure-bar.vertical #easy-measure-grip svg{transform:rotate(90deg)}
.easy-measure-bar #easy-tools-buttons>button{flex:0 0 36px}
@media(max-height:750px){.easy-measure-bar.vertical button{width:32px;height:32px;padding:5px}.easy-measure-bar.vertical #easy-tools-buttons>button{flex-basis:32px}.easy-measure-bar.vertical,.easy-measure-bar.vertical #easy-tools-buttons,.easy-measure-bar.vertical .easy-bar-actions{gap:2px}}
@media print{.easy-measure-bar{display:none!important}}
.easy-mode-group button.tbtn{box-sizing:border-box;height:36px;width:44px;min-width:44px;justify-content:center;font:13px var(--easy-font);background:#fff;color:#1a1a2e;border:1px solid #bbb;border-radius:6px;padding:4px 6px}
.easy-rail[hidden],.easy-panel [hidden],.easy-report[hidden]{display:none!important}
.easy-rail{width:280px;flex:0 0 280px;min-height:0;display:flex;flex-direction:column;background:#fff;border-left:1px solid #ddd;overflow:hidden;color:#1a1a2e;font:13px var(--easy-font)}
.easy-panel{display:flex;flex-direction:column;min-height:120px;flex:1;border-bottom:1px solid #ddd;overflow:hidden}.easy-panel:first-child{flex:1.25}.easy-grip{padding:10px 12px;background:#f5f6f9;display:flex;justify-content:space-between;cursor:grab;flex:none;align-items:center;position:relative}.easy-grip strong{font-size:13px}.easy-panel-body{padding:10px;overflow:auto;min-height:0}.easy-panel details{position:relative}.easy-panel summary{cursor:pointer;list-style:none;padding:3px 8px}.easy-panel details[open]{position:absolute;right:8px;top:6px;background:#fff;border:1px solid #ddd;box-shadow:0 3px 12px #0002;z-index:60}.easy-panel details[open] button{display:block;width:100%}
.easy-panel button,.easy-panel input,.easy-panel select,.easy-panel textarea,.easy-report button,.easy-report select{font:13px var(--easy-font);color:#1a1a2e;border:1px solid #d4d7dd;border-radius:6px;background:#fff;padding:7px 8px;box-sizing:border-box;max-width:100%}.easy-panel button,.easy-report button{cursor:pointer}.easy-panel button:hover,.easy-report button:hover{background:#eef5fb}.easy-panel button[aria-pressed=true],.easy-report button[aria-pressed=true]{border-color:#378add;background:#eaf4ff}.easy-panel button:disabled,.easy-report button:disabled{opacity:.45;cursor:default}.easy-panel input:invalid{border-color:#d24b5b}.easy-panel label{display:block;color:#626a78;margin:9px 0 5px}.easy-panel input:not([type=color]),.easy-panel label select,.easy-panel textarea{display:block;width:100%;margin-top:5px}.easy-panel textarea{resize:vertical;min-height:70px}.easy-inline{display:flex;gap:6px;align-items:center}.easy-inline input{min-width:0}.easy-tools,.easy-buttons{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0}.easy-tools button{flex:1 0 50px}.easy-buttons button{flex:1;min-width:0}.easy-colors{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.easy-colors button{width:23px;height:23px;border-radius:50%;padding:0}.easy-group-settings select{width:100%}.easy-group{border-bottom:1px solid #e5e7eb;padding:5px 0}.easy-group>div:first-child{display:flex;align-items:center}.easy-group [data-group]{flex:1;text-align:left;border:0}.easy-group small{display:block;margin-top:4px;color:#626a78}.easy-group [data-expand],.easy-group [data-eye]{padding:5px;border:0}.easy-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}.easy-detail-row{display:block;width:100%;border:0!important;text-align:left;margin:3px 0}.easy-detail-row span{display:block;text-align:right;color:#626a78}.easy-dropping{display:flex!important;outline:2px dashed #378add;min-width:90px}.easy-line-sample{display:block;width:100%;height:2px;background:#1a1a2e;margin:8px 0}.easy-line-sample.dotted{background:repeating-linear-gradient(90deg,#1a1a2e 0 2px,transparent 2px 6px)}.easy-line-sample.dashed{background:repeating-linear-gradient(90deg,#1a1a2e 0 7px,transparent 7px 11px)}.easy-line-sample.dashdot{background:repeating-linear-gradient(90deg,#1a1a2e 0 8px,transparent 8px 11px,#1a1a2e 11px 13px,transparent 13px 16px)}.easy-line-sample.dashdotdot{background:repeating-linear-gradient(90deg,#1a1a2e 0 8px,transparent 8px 11px,#1a1a2e 11px 13px,transparent 13px 16px,#1a1a2e 16px 18px,transparent 18px 21px)}
#easy-result{padding:8px 0;color:#15836d;font-variant-numeric:tabular-nums}#easy-hint{font-size:12px;line-height:1.6;color:#626a78}.survey-easy #sidebar{display:none!important}.survey-easy #easy-tools .side-section{padding:0;border-bottom:1px solid #ddd}.survey-easy #easy-tools .side-section>div:not(:first-child){display:none}
.survey-easy #btn-materials,.survey-easy #btn-height-list,.survey-easy #btn-estimate-memo,.survey-easy #btn-master,.survey-easy #btn-debug,.survey-easy #roundup-preset,.survey-easy #roundup-custom-val{display:none!important}
.easy-report{position:fixed;left:40px;top:160px;width:780px;height:410px;max-width:calc(100vw - 20px);max-height:calc(100vh - 40px);min-width:300px;min-height:210px;resize:both;overflow:hidden;z-index:250;box-shadow:0 10px 36px #0003;border:1px solid #b9c0ca;border-radius:9px;background:#fff;color:#1a1a2e;display:flex;flex-direction:column;font:13px var(--easy-font)}
.easy-report header{display:flex;align-items:center;gap:12px;background:#1a1a2e;color:#fff;padding:9px 12px;cursor:move}.easy-report header strong{font-size:14px}.easy-report header span{font-size:12px;flex:1}.easy-report header button{padding:2px 8px}.easy-report-controls{display:flex;flex-wrap:wrap;gap:7px;padding:10px;border-bottom:1px solid #ddd}.easy-report table{border-collapse:collapse;width:100%;min-width:560px;font-variant-numeric:tabular-nums}.easy-report th,.easy-report td{padding:9px;border-bottom:1px solid #e1e4e9;text-align:right;white-space:nowrap}.easy-report th:first-child,.easy-report td:first-child{text-align:left}.easy-report th{background:#f5f6f9;font-weight:500}.easy-report td button{color:#2879c8}.easy-report #easy-report-table{overflow:auto;flex:1;min-height:0}
@media(max-width:800px){.easy-rail{width:230px;flex-basis:230px}.easy-report{left:10px!important}}@media print{body.easy-print-report>*{display:none!important}body.easy-print-report #easy-report{display:block!important;position:static;width:100%;height:auto;max-width:none;max-height:none;box-shadow:none;border:0;resize:none}body.easy-print-report #easy-report-table{overflow:visible}body.easy-print-report .easy-report-controls,body.easy-print-report #easy-report-close{display:none}body.easy-print-report .easy-report header{background:white;color:black}body.easy-print-report .easy-report table{min-width:0}}
.survey-easy #btn-select-mode{display:none!important}
#easy-drawing-display-button,#easy-values-button{display:none}.survey-easy #easy-drawing-display-button,.survey-easy #easy-values-button{display:flex}
.easy-value-tooltip{position:fixed;z-index:300;max-width:calc(100vw - 16px);box-sizing:border-box;padding:8px 10px;background:#fff;color:#1a1a2e;border:1px solid #d4d7dd;border-radius:8px;box-shadow:0 5px 20px #0002;font:13px/1.6 var(--easy-font);white-space:pre-line;overflow-wrap:anywhere;pointer-events:none}
.easy-value-tooltip.easy-negative{color:#d60000}.easy-value-tooltip[hidden]{display:none!important}
@media print{.easy-value-tooltip{display:none!important}}
.easy-drawing-display[hidden],.easy-drawing-display [hidden]{display:none!important}
.easy-drawing-display{position:fixed;z-index:300;width:320px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;box-sizing:border-box;padding:14px;background:#fff;color:#1a1a2e;border:1px solid #d4d7dd;border-radius:8px;box-shadow:0 5px 20px #0002;font:13px var(--easy-font)}
.easy-drawing-display strong{display:block;padding-right:25px}.easy-drawing-display p{overflow-wrap:anywhere;color:#626a78;margin:8px 0}.easy-drawing-display .info-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.easy-drawing-display select{flex-shrink:0}.easy-display-close{position:absolute;right:8px;top:8px;font:13px var(--easy-font);color:#1a1a2e;border:1px solid #d4d7dd;border-radius:6px;background:#fff;padding:2px 7px;cursor:pointer}
.easy-panel .easy-detail-row{display:flex;align-items:center;gap:9px;padding:8px 10px}.easy-detail-row svg{width:20px;height:20px;flex:none;margin:0}.easy-detail-row .easy-record-label{display:block;text-align:left;color:inherit;overflow-wrap:anywhere;min-width:0;font-variant-numeric:tabular-nums}.easy-detail-row small{font-size:11px;color:#7b8797;font-weight:400}.easy-panel .easy-detail-row[aria-pressed=true]{background:#eaf4ff;box-shadow:inset 3px 0 #378add;font-weight:600}

.easy-panel details.easy-project-options,.easy-panel details.easy-project-options[open]{position:static;border:0;border-top:1px solid #e5e7eb;box-shadow:none;margin-top:12px;padding-top:8px;background:transparent}.easy-project-options>summary{color:#626a78;padding:6px 0}.easy-project-options>summary::before{content:"▸ ";}.easy-project-options[open]>summary::before{content:"▾ ";}#easy-scope{width:100%;margin-bottom:6px}

.easy-panel label.easy-deduct{display:flex;align-items:center;gap:7px;color:#626a78}.easy-panel .easy-deduct input[type=checkbox]{display:inline-block;width:16px;height:16px;flex:none;margin:0;accent-color:#d60000}.easy-deduct:has(input:checked){color:#d60000!important}.easy-panel .easy-negative,.easy-report .easy-negative{color:#d60000!important}

#ctx-menu[data-easy-actions]{font:13px var(--easy-font);max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto}#ctx-menu[data-easy-actions] .ctx-item{font:inherit;border:0;background:transparent;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere}#ctx-menu[data-easy-actions] .ctx-item:hover,#ctx-menu[data-easy-actions] .ctx-item:focus-visible{background:#f0f4ff}#ctx-menu[data-easy-actions] .ctx-item:disabled{opacity:.5;cursor:default}

/* Shared surface edges: keep the drawing and control backgrounds unchanged. */
body #toolbar{position:relative;z-index:25;border-bottom-color:#cbd2dc;box-shadow:0 3px 10px -5px #1a1a2e33}
body #sidebar,.easy-rail{position:relative;z-index:20;border-left-color:#cbd2dc;box-shadow:-3px 0 12px -5px #1a1a2e33}
#easy-left{border-left:0;border-right:1px solid #cbd2dc;box-shadow:3px 0 12px -5px #1a1a2e33}
@media print{body #toolbar,body #sidebar,.easy-rail{box-shadow:none}}
@media(max-width:1920px){body:not(.survey-easy) #toolbar .tool-group-inner{gap:1px}}

/* Shared by both modes, popups and dynamically created panels. Only editable text selects. */
body,body *{ -webkit-user-select:none;user-select:none }
body :read-write{ -webkit-user-select:text;user-select:text }

#easy-select-rect{position:absolute;border:2px dashed #378add;background:rgba(55,138,221,.08);pointer-events:none;z-index:10;box-sizing:border-box}
#easy-select-rect[hidden]{display:none}

/* Match existing checkbox rows; dates use the regular input style. */
.easy-panel label.easy-note-date{display:flex;align-items:center;gap:7px;color:#626a78}.easy-panel .easy-note-date input[type=checkbox]{display:inline-block;width:16px;height:16px;flex:none;margin:0}.easy-note-date span{white-space:nowrap}
