/* Production adapters for the approved lab drawing compositions; no model coordinates here. */
.workspace-v6:has(.integrated-measures){display:flex;flex-direction:column;position:relative;overflow:hidden}
.workspace-v6:has(.integrated-measures)>.drawing{flex:1;min-height:0;display:flex;flex-direction:column}
.workspace-v6:has(.integrated-measures) .canvas-content{flex:1;min-height:0}
.workspace .integrated-measures{position:absolute;z-index:7;inset:auto 8px 70px;max-height:calc(100% - 180px);padding:0 12px 8px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 22px #20282914;overflow:auto;overscroll-behavior:contain}
.workspace .integrated-measures .btn{min-height:44px;font-size:13px;padding:8px}
.compact-measure-head{display:flex;align-items:center;gap:2px;min-height:44px;flex:none}
.compact-measure-head strong{flex:1;min-width:0;font-size:14px;overflow-wrap:anywhere}
.workspace .compact-measure-head .measure-square{width:44px;min-width:44px;height:44px;padding:10px;border:0;background:none}
.integrated-measures .measure-square .icon{width:20px;height:20px}
.workspace .integrated-measures form{display:flex;gap:8px;align-items:stretch;min-height:0;flex-wrap:nowrap;margin:0}
.compact-measure-fields{min-width:0;flex:1}
.compact-measure-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:4px;align-items:center;min-width:0;min-height:46px;font-size:13px}
.measure-single .compact-measure-row{display:block}
.measure-single .compact-measure-row>span:first-child{display:none}
.measure-input{display:flex;align-items:center;gap:5px;min-width:0}
.measure-input input{min-width:0;width:100%;min-height:44px;font:inherit;font-size:16px;border:1px solid var(--line);border-radius:9px;padding:8px;background:var(--surface,#fff);color:var(--ink)}
.measure-input input:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.measure-input>span{font-size:12px;flex:none;width:22px;color:var(--muted)}
.measure-input input[aria-invalid=true]{border-color:var(--danger,#9b3c26)}
.workspace .measure-single form>.primary{flex:0 0 112px;font-size:12px;white-space:normal;line-height:1.25}
.compact-measure-types{display:flex;align-items:center;justify-content:space-between;gap:2px}
.compact-measure-types button{border:0;background:none;min-width:44px;min-height:44px;font:inherit;font-size:12px;color:var(--muted);padding:5px;border-radius:8px}
.compact-measure-types button[aria-pressed=true]{background:var(--tint,#eef2e2);color:var(--ink);font-weight:600}
.compact-measure-types>.btn{font-size:12px!important;gap:4px;padding-inline:4px!important}
.compact-measure-types .icon{width:16px}
.workspace .measure-floating-list{inset:162px auto auto 8px;width:172px;max-height:calc(100% - 244px);padding:0 8px 8px;border-radius:12px}
.measure-floating-list .compact-measure-head strong{font-size:12px}
.measure-kind-select select{font:inherit;font-size:16px;min-height:44px;width:100%;border:0;border-block:1px solid var(--line);background:transparent;color:var(--ink)}
.workspace .measure-floating-list form{display:flex;flex-direction:column;gap:4px}
.measure-floating-list .compact-measure-row:focus-within{background:var(--tint,#eef2e2);border-radius:8px}
.measure-floating-list .measure-input>span{display:none}
.measure-floating-list .measure-input input{text-align:right;border:0;border-bottom:1px solid var(--line);border-radius:0;padding-inline:3px}
.workspace .all-values-trigger{width:100%;border:0;border-top:1px solid var(--line);margin-top:4px;font-size:12px}
.workspace .measure-all-values{height:min(65dvh,560px);max-height:calc(100% - 150px);padding:0;display:flex;flex-direction:column;overflow:hidden}
.workspace .measure-all-values.is-expanded{top:8px;height:auto;max-height:none}
.measure-all-values>.compact-measure-head{padding:4px 6px;border-bottom:1px solid var(--line)}
.workspace .measure-all-values form{display:flex;flex-direction:column;flex:1;min-height:0;gap:0}
.all-values-scroll{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:0 14px}
.all-value-section{border-bottom:1px solid var(--line)}
.all-value-section>summary{display:flex;align-items:center;gap:8px;min-height:48px;list-style:none;cursor:pointer}
.all-value-section>summary::-webkit-details-marker{display:none}
.all-value-section>summary strong{flex:1;font-size:14px;font-weight:600}
.all-value-section>summary>span{font-size:12px;color:var(--muted)}
.all-value-section>summary .icon{width:16px;transform:rotate(90deg)}
.all-value-section[open]>summary .icon{transform:rotate(-90deg)}
.all-value-row{display:grid;grid-template-columns:minmax(0,1fr) 116px;align-items:center;gap:12px;min-height:48px;font-size:14px}
.all-value-row>span:first-child{overflow-wrap:anywhere}
.all-opening{padding-bottom:10px}.all-opening h4{font-size:13px;margin:10px 0}
.workspace .measure-all-values footer{padding:8px 12px 12px;background:var(--surface,#fff);border-top:1px solid var(--line);flex:none}
.integrated-measures .error{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.integrated-measures [hidden]{display:none!important}
.workspace .surface-actions.plan-actions.integrated-drawing-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:relative;z-index:8}
.workspace .integrated-drawing-actions>.btn{min-height:52px}
.workspace:has(.integrated-drawing-actions) .context-toolbar>.row>[data-v="plan-add"],
.workspace:has(.integrated-drawing-actions) .context-toolbar>.row>[data-v="editor-more"],
.workspace:has(.integrated-drawing-actions) .context-toolbar>.row>[data-v="independent-add"]{display:none}
.workspace:has(.integrated-drawing-actions) .focus-status{display:none}
@media(min-width:900px){
 .workspace .measure-single{left:auto;width:350px;right:16px}
 .workspace .measure-all-values{left:auto;right:16px;width:min(540px,calc(100% - 32px))}
 .workspace .measure-floating-list{top:154px}
}
@media(max-height:650px){
 .workspace .measure-floating-list{top:106px;max-height:calc(100% - 180px)}
 .workspace .integrated-measures{max-height:calc(100% - 80px)}
 .workspace .measure-all-values.is-expanded{max-height:none}
}

.workspace .estimate-drawing-strip:empty{display:none}
.workspace .measure-floating-list form{height:auto;min-height:0;flex:none}
.compact-angle-presets{display:flex;gap:4px}
.workspace .compact-angle-presets>.btn{flex:1;font-size:12px}
.workspace .measure-all-values footer{padding-bottom:max(12px,env(safe-area-inset-bottom));margin:0;min-height:0}
.workspace .measure-all-values footer .btn{margin:0}
.workspace .integrated-measures .form-draft-feedback:empty{display:none}
.workspace .integrated-measures .form-draft-feedback{min-height:0;flex:none;margin:4px 0 0}
.workspace .measurement-dock.is-on-plan{z-index:10}
@media(max-width:899px) and (max-height:500px){
 .workspace .measure-all-values{top:8px;height:auto;max-height:none}
 .workspace .measure-floating-list{top:8px;max-height:calc(100% - 86px)}
 .workspace .measure-single{max-height:calc(100% - 86px)}
}
