.terrain-workspace{padding:10px;color:var(--text);font-size:11px;line-height:16px;min-width:0}.terrain-workspace h2{font-size:12px;line-height:17px;margin:0 0 8px;font-weight:600}.terrain-workspace fieldset{margin:10px 0;padding:10px 0;border:0;border-top:1px solid var(--line,var(--border)) ;min-width:0}.terrain-workspace legend{font-size:12px;padding-right:5px}.terrain-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.terrain-grid label,.terrain-workspace label{display:flex;flex-direction:column;gap:4px;font-size:10.5px;line-height:15px;min-width:0}.terrain-grid label:has([data-file]),.terrain-grid label:has([data-meta=sourceName]),.terrain-grid label:has([data-meta=license]),.terrain-grid label:has([data-field]){grid-column:1/-1}.terrain-workspace input,.terrain-workspace select{width:100%;min-width:0;min-height:32px;padding:4px 6px;font-size:11px;color:var(--text);background:var(--input,var(--surface));border:1px solid var(--line,var(--border));border-radius:4px}.terrain-workspace button{font-size:11px;min-height:32px;margin:3px 3px 3px 0;padding:4px 7px;white-space:normal}.terrain-workspace p{margin:7px 0;overflow-wrap:anywhere}.terrain-note,.terrain-draft-warning{background:var(--surface2,var(--surface-subtle));padding:8px;border-left:2px solid var(--accent);font-size:10.5px}.terrain-error{color:var(--error,var(--text));border-left:2px solid var(--warning,var(--accent));padding-left:7px}.terrain-error:empty{display:none}.terrain-workspace table{width:100%;border-collapse:collapse;font-size:10.5px}.terrain-workspace td{padding:4px;border-bottom:1px solid var(--line,var(--border));overflow-wrap:anywhere}.terrain-workspace summary{cursor:pointer;min-height:32px;display:flex;align-items:center;font-size:11px}.terrain-workspace small{font-size:10px;color:var(--muted)}.terrain-report-controls{display:flex;align-items:end;flex-wrap:wrap;gap:8px}.terrain-report-controls label{max-width:150px}.terrain-report-controls input{width:100%}.construction-profile-dock{min-width:0}.profile-navigation{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.profile-navigation label{flex:1;min-width:140px;max-width:500px}.profile-tabs{display:flex}.profile-tabs [aria-pressed=true]{color:var(--accent);box-shadow:inset 0 -2px var(--accent)}.profile-heading{display:flex;justify-content:space-between;gap:10px;font-size:11px;margin-top:5px}.terrain-profile{width:100%;height:160px;display:block;overflow:visible}.terrain-profile text{font:10px 'Segoe UI',sans-serif;fill:var(--muted)}.terrain-profile path{fill:none;vector-effect:non-scaling-stroke;stroke-width:1.5}.terrain-profile .profile-grid{stroke:var(--line,var(--border));stroke-width:1}.profile-ground{stroke:var(--terrain-ground,#aa9573)}.profile-module{stroke:var(--terrain-module,#589bd0)}.profile-post{stroke:var(--text)}.profile-object{stroke:var(--purple,#9872b6)}.profile-scale,.profile-provenance{font-size:10px;color:var(--muted);line-height:14px}.profile-provenance details{display:inline}.profile-provenance summary{display:inline-flex;margin-left:10px}.terrain-empty{padding:10px;color:var(--muted)}#sections-view .terrain-workspace{padding:6px 10px}#sections-view .terrain-workspace>h2{display:none}#sections-view .terrain-workspace fieldset{margin:0;border:0;padding:0}.terrain-inline-warning{color:var(--text);border-left:2px solid var(--purple);padding-left:6px}.terrain-workspace [aria-busy=true]{opacity:.8}@media(pointer:coarse){.terrain-workspace button,.terrain-workspace input,.terrain-workspace select,.terrain-workspace summary{min-height:44px}}@media(max-width:700px){.terrain-grid{grid-template-columns:1fr}.profile-heading{flex-direction:column}.terrain-profile{height:180px}}
.terrain-report-controls>details{position:relative}.terrain-report-controls .terrain-intervals{position:absolute;z-index:5;top:32px;left:0;width:260px;padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px;background:var(--surface);border:1px solid var(--line,var(--border));border-radius:5px}.terrain-section-legend{display:none}.profile-navigation>label{flex-direction:row;align-items:center}.profile-navigation>label select{flex:1}.terrain-profile{height:128px}.profile-provenance{margin-top:3px}.profile-scale{margin:2px 0!important}
/* Dock owns its compact geometry; no legacy page/SVG minimum may crop the plot. */
body.workspace-d1 #construction-dock{overflow:visible;position:relative}
body.workspace-d1 #construction-dock #sections-view{height:100%;padding:0;min-height:0;overflow:visible;display:flex;flex-direction:column}
body.workspace-d1 #sections-view .terrain-workspace{height:100%;min-height:0;padding:4px 8px;display:flex;flex-direction:column;gap:0}
body.workspace-d1 #sections-view .construction-profile-dock{display:grid;grid-template-rows:32px minmax(112px,1fr)24px;flex:1;min-height:0}
body.workspace-d1 #sections-view .profile-navigation{height:32px;display:flex;flex-wrap:nowrap;gap:3px;min-width:0}
body.workspace-d1 #sections-view .profile-navigation button{min-width:32px;min-height:32px;height:32px;margin:0;padding:2px 5px;white-space:nowrap}
body.workspace-d1 #sections-view .profile-navigation>select{min-width:80px;flex:1;width:auto;height:32px}
body.workspace-d1 #sections-view .profile-navigation .profile-tabs{flex:none}
body.workspace-d1 #sections-view .profile-plot{min-height:0;overflow:hidden;display:flex;align-items:stretch}
body.workspace-d1 #sections-view svg.terrain-profile{height:100%;width:100%;min-height:112px;max-height:none;flex:1;overflow:visible}
body.workspace-d1 #sections-view .profile-provenance{height:24px;min-height:24px;display:flex;gap:9px;align-items:center;margin:0;white-space:nowrap;min-width:0}
body.workspace-d1 #sections-view .profile-state{overflow:hidden;text-overflow:ellipsis}
body.workspace-d1 #sections-view .profile-provenance details{margin-left:auto;position:relative}
body.workspace-d1 #sections-view .profile-provenance summary{min-height:24px;height:24px;font-size:10px;display:flex;margin:0}
.terrain-report-options{position:relative}.terrain-report-options>summary{height:32px;min-width:32px;justify-content:center}
.terrain-report-options .terrain-intervals,.profile-source-popover{position:absolute;z-index:1400;right:0;width:280px;padding:10px;background:var(--surface);border:1px solid var(--line,var(--border));border-radius:5px;white-space:normal;box-shadow:0 6px 18px #0003}
.terrain-report-options .terrain-intervals{bottom:36px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.terrain-intervals p{grid-column:1/-1}.profile-source-popover{bottom:28px}.profile-source-popover p{overflow-wrap:anywhere}
@media(max-width:650px){body.workspace-d1 #sections-view .profile-navigation{overflow-x:auto}body.workspace-d1 #sections-view .profile-provenance>span:nth-child(2){display:none}}
