/* Trim geometry review — source pixels stay separate from physical geometry. */
.tr-dialog{padding:0;border:0;width:calc(100vw - 32px);max-width:1760px;height:calc(100dvh - 32px);max-height:1100px;margin:auto;border-radius:11px;background:#f3f5f2;color:#263533;box-shadow:0 30px 100px #15271d66;overflow:hidden;font:12px/1.5 Inter,"Segoe UI",Arial,sans-serif}.tr-dialog::backdrop{background:#1c302aaa;backdrop-filter:blur(3px)}.tr-shell{height:100%;display:flex;flex-direction:column}.tr-header{display:flex;align-items:center;gap:17px;padding:17px 23px;border-bottom:1px solid #dce3df;background:#fff;min-height:82px;flex:none}.tr-brand{display:grid;place-items:center;width:42px;height:42px;border-radius:8px;background:#e7f1e9;color:#246b59;font-size:21px;flex:none}.tr-heading{min-width:0;flex:1}.tr-heading .tr-kicker{color:#71807c;font-size:9px;letter-spacing:1.6px;text-transform:uppercase;margin:0 0 3px}.tr-heading h2{margin:0;font-size:17px;line-height:1.4;font-weight:650;letter-spacing:-.3px;overflow-wrap:anywhere}.tr-heading p{margin:3px 0 0;font-size:10px;color:#71807c}.tr-status-tag{font-size:10px;border:1px solid #e8dbc5;background:#fbf4e7;color:#876225;border-radius:4px;padding:5px 8px;white-space:nowrap}.tr-status-tag.saved{background:#e7f1e9;border-color:#d2e2d4;color:#246b59}.tr-close{background:transparent;border:1px solid #dce3df;border-radius:5px;width:31px;height:31px;padding:0;font-size:23px;line-height:1;color:#6c7d74;flex:none}.tr-close:hover{background:#f0f4f0}.tr-main{display:grid;grid-template-columns:minmax(0,1fr) 344px;flex:1;min-height:0}.tr-visual{min-width:0;min-height:0;display:flex;flex-direction:column}.tr-toolbar{padding:12px 17px;display:flex;align-items:center;gap:5px;border-bottom:1px solid #dce3df;flex-wrap:wrap;background:#f9faf8;flex:none}.tr-tool,.tr-small-button{border:1px solid #dce3df;border-radius:4px;background:#fff;color:#52645d;min-height:31px;padding:5px 9px;font-size:11px;line-height:1.35;white-space:nowrap}.tr-tool:hover:not(:disabled),.tr-small-button:hover:not(:disabled){background:#edf4ed;border-color:#b9c9c1}.tr-tool[aria-pressed=true]{background:#246b59;border-color:#246b59;color:#fff}.tr-divider{width:1px;align-self:stretch;background:#dce3df;margin:1px 5px}.tr-toolbar-spacer{flex:1}.tr-viewport{position:relative;min-height:220px;flex:1;overflow:hidden;background:#e8ede7;touch-action:none}.tr-canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}.tr-canvas:focus-visible{outline:2px solid #77b19c;outline-offset:-2px}.tr-stage-message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:35px;text-align:center;pointer-events:none;color:#788c7e;font-size:13px;background:#edf1e9}.tr-stage-message>div{max-width:400px}.tr-stage-message strong{display:block;color:#4f6957;margin-bottom:9px}.tr-stage-message[hidden]{display:none}.tr-view-settings{padding:9px 17px;background:#f8faf6;border-top:1px solid #dce3df;display:flex;align-items:center;gap:14px;min-height:43px;flex-wrap:wrap;font-size:10px;color:#687f6a}.tr-inline-check{display:flex;align-items:center;gap:6px;margin:0;white-space:nowrap}.tr-dialog input[type=checkbox]{width:14px;height:14px;margin:0;accent-color:#246b59;flex:none}.tr-opacity{display:flex;align-items:center;gap:8px}.tr-opacity input{width:83px;height:15px;padding:0;accent-color:#246b59;border:0;background:transparent;box-shadow:none}.tr-zoom-readout{margin-left:auto;color:#849386;font-variant-numeric:tabular-nums}.tr-help-strip{padding:10px 17px;border-top:1px solid #dce3df;background:#fff;font-size:11px;line-height:1.5;min-height:48px;color:#607668}.tr-help-strip strong{color:#246b59;font-weight:600}.tr-inspector{overflow:auto;min-height:0;background:#fff;border-left:1px solid #dce3df;scrollbar-width:thin;scrollbar-color:#cfdbd4 transparent}.tr-section{padding:16px 19px;border-bottom:1px solid #e5ebe4}.tr-section h3,.tr-section summary{font-size:12px;font-weight:650;color:#3a5747;margin:0 0 11px;letter-spacing:-.1px}.tr-section summary{cursor:pointer;margin:0;display:flex;align-items:center;justify-content:space-between}.tr-section summary::after{content:'+';color:#71807c;font-size:17px}.tr-section[open] summary{margin-bottom:11px}.tr-section[open] summary::after{content:'−'}.tr-step{font-size:10px;color:#93a496;font-weight:500;display:inline-block;min-width:19px}.tr-section p{margin:6px 0;font-size:10px;line-height:1.6;color:#829084}.tr-section label{display:block;font-size:10px;color:#52645d;margin:9px 0 5px;font-weight:550}.tr-section input,.tr-section textarea{font-size:11px;height:33px;padding:7px 8px}.tr-section textarea{height:auto;min-height:59px;resize:vertical}.tr-inline-field{display:flex;gap:7px;align-items:center}.tr-inline-field input{flex:1;min-width:0}.tr-inline-field .tr-small-button{flex:none;min-height:33px}.tr-2fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tr-readout{display:block;padding:7px 9px;background:#f4f7f1;border:1px solid #e4eae0;border-radius:4px;font-size:10px;line-height:1.6;color:#607c60;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.tr-readout.missing{background:#fbf6ed;border-color:#eee2ca;color:#92713b}.tr-button-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.tr-checkbox-row{display:flex;align-items:center;gap:17px;margin-top:10px}.tr-section .tr-checkbox-row label{display:flex;gap:6px;align-items:center;margin:0}.tr-warnings{margin:12px 19px 0;padding:9px 11px;background:#fcf5e8;border:1px solid #eeddbe;border-radius:5px;color:#89662e;font-size:10px;line-height:1.65}.tr-warnings p{margin:0 0 6px}.tr-warnings p:last-child{margin-bottom:0}.tr-legacy{background:#f2f6fb;border:1px solid #d4dfee;color:#4a6b85;padding:11px 12px;margin:12px 19px 0;border-radius:5px;font-size:10px}.tr-legacy p{margin:0 0 8px}.tr-legacy .tr-small-button{width:100%}.tr-vertices{border-collapse:collapse;width:100%;table-layout:fixed;font-size:10px;margin-top:8px}.tr-vertices thead th{text-align:left;font-size:9px;color:#8c998d;font-weight:550;padding:4px 3px 7px;white-space:nowrap}.tr-vertices th:first-child{width:26px}.tr-vertices th:last-child{width:44px}.tr-vertices td{padding:3px 2px;border-bottom:1px solid #edf0ea;vertical-align:middle}.tr-vertices td:first-child{color:#748d76;font-size:10px;cursor:pointer;text-align:center}.tr-vertices input{width:100%;height:29px;font:10px/1.4 Consolas,monospace;padding:5px 5px}.tr-vertices tr.selected{background:#eaf3fc}.tr-vertices tr.selected td:first-child{color:#287bc2;font-weight:700}.tr-vertex-action{border:0;background:transparent;padding:3px;color:#8e9c8b;font-size:12px;border-radius:3px}.tr-vertex-action:hover{background:#e3ece0;color:#3c693b}.tr-empty-points{padding:16px 7px;text-align:center;color:#9aa797;font-size:10px;border:1px dashed #dce4d7;border-radius:4px;margin-top:8px}.tr-table-wrap{max-height:285px;overflow:auto;scrollbar-width:thin}.tr-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:11px 0 0}.tr-summary-grid div{border:1px solid #e5ebe2;border-radius:4px;padding:8px 10px;background:#fafcf8}.tr-summary-grid span{display:block;font-size:9px;color:#96a28f;letter-spacing:.4px}.tr-summary-grid strong{font-size:13px;font-weight:600;color:#526f50;display:block;margin-top:2px;font-variant-numeric:tabular-nums}.tr-review-check{display:flex!important;align-items:flex-start;gap:8px;margin-top:12px!important;font-weight:400!important;line-height:1.65!important}.tr-review-check input{margin-top:2px!important}.tr-checklist{display:flex;gap:4px 7px;flex-wrap:wrap;margin-top:10px}.tr-checklist span{font-size:9px;color:#9c8d6b;background:#faf5e9;padding:3px 5px;border-radius:3px}.tr-checklist span.done{color:#427249;background:#edf5e9}.tr-footer{display:flex;align-items:center;gap:10px;padding:13px 21px;border-top:1px solid #dce3df;background:#fff;flex:none;min-height:69px}.tr-feedback{min-width:0;flex:1;color:#7b8d7e;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.tr-feedback.error{color:#9a3935}.tr-feedback.success{color:#246b59}.tr-footer .button{height:38px;font-size:11px}.tr-footer .button-solid{min-width:185px}.tr-dialog[data-busy=true] .tr-canvas{cursor:wait!important}.tr-coord-line{font:10px/1.5 Consolas,monospace;color:#8a9a8b;min-height:15px;text-align:right;margin-left:auto}.tr-dialog kbd{font:9px/1.3 Consolas,monospace;background:#f0f3ed;border:1px solid #e0e6dc;border-radius:3px;padding:1px 3px;margin:0 2px;color:#7a8a76}
@media(max-width:1100px){.tr-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px)}.tr-main{grid-template-columns:minmax(0,1fr) 305px}.tr-header{padding:13px 17px}.tr-section{padding:14px 15px}.tr-toolbar{padding:9px;gap:4px}.tr-tool{padding:5px 7px;font-size:10px}.tr-divider{margin:0 2px}.tr-heading h2{font-size:15px}.tr-status-tag{font-size:9px}.tr-footer{padding:11px 15px}.tr-view-settings{padding:8px 12px;gap:9px}.tr-opacity input{width:55px}}
@media(max-width:760px){.tr-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.tr-header{padding:11px 13px;gap:10px;min-height:70px}.tr-brand{width:33px;height:33px;font-size:18px}.tr-heading h2{font-size:13px}.tr-heading p{font-size:9px}.tr-status-tag{display:none}.tr-main{display:flex;flex-direction:column;overflow:auto}.tr-visual{min-height:410px;height:55dvh;flex:none}.tr-inspector{overflow:visible;border-left:0;border-top:1px solid #dce3df;min-height:auto}.tr-toolbar{gap:4px}.tr-tool{font-size:10px;min-height:29px}.tr-toolbar-spacer{display:none}.tr-help-strip{font-size:10px;min-height:39px;padding:8px 12px}.tr-section{padding:15px 19px}.tr-footer{padding:10px 12px;flex-wrap:wrap;gap:7px}.tr-feedback{flex-basis:100%;font-size:10px;min-height:15px;max-height:48px;overflow:auto}.tr-footer .button{flex:1;min-width:0;height:35px;font-size:10px}.tr-view-settings{font-size:9px}.tr-coord-line{display:none}.tr-table-wrap{max-height:240px}}
