/* EditPolygon v1.54.2 — Geometry Health inspector integration */
body.geometry-health-open #selectedSection{display:none!important}
.geometry-health-panel{display:none;grid-area:inspector;min-width:0;min-height:0;overflow:hidden;flex-direction:column;background:#f4f5f6!important;border-left:1px solid #cfd3d8!important;border-right:0!important;border-bottom:0!important;padding:8px!important;z-index:885}
.geometry-health-panel.active{display:flex}
.geometry-health-panel-title{flex:0 0 auto;align-items:center!important;margin-bottom:6px!important;min-height:24px}
.geometry-health-title-actions{display:flex;align-items:center;gap:5px;min-width:0;margin-left:auto}
.geometry-health-title-actions .subtle{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px!important;text-transform:none;letter-spacing:0}
.geometry-health-close{width:22px!important;min-width:22px!important;height:22px!important;min-height:22px!important;padding:0!important;border-radius:2px!important;font-size:16px!important;line-height:18px!important}
.geometry-health-inspector{display:flex;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;flex-direction:column;gap:5px;padding-right:1px}
.geometry-health-inspector-section{flex:0 0 auto}
.geometry-health-inspector-section summary{align-items:center}
.geometry-health-inspector-section .v53-section-body{display:flex;flex-direction:column}
.geometry-health-inspector .v53-control{gap:3px}
.geometry-health-inspector .v53-control label{font-size:9px!important;letter-spacing:.045em!important}
.geometry-health-inspector .v53-control select,.geometry-health-inspector .v53-control input[type=text]{width:100%;height:24px!important;min-height:24px!important;border-radius:2px!important;padding:0 6px!important;font-size:11px!important}
.geometry-health-inspector .v53-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:0}
.geometry-health-inspector .v53-actions button{min-height:24px!important;height:24px!important;padding:0 7px!important;font-size:10px!important;border-radius:2px!important}
.geometry-health-advanced{border:1px solid #dcdfe4;background:#fff;margin:0;overflow:hidden}
.geometry-health-advanced>summary{cursor:pointer;padding:6px 7px;font-size:10px;font-weight:700;color:#3f4750;background:#f5f6f7;list-style:none}
.geometry-health-advanced>summary::-webkit-details-marker{display:none}
.geometry-health-advanced>summary::after{content:'▸';float:right;color:#69727d}.geometry-health-advanced[open]>summary::after{content:'▾'}
.geometry-health-advanced-body{display:grid;gap:0;padding:6px 7px 7px;border-top:1px solid #e3e5e8}
.geometry-health-advanced-body .v53-section-note{margin-bottom:5px}
.geometry-health-advanced-body>label{display:grid;grid-template-columns:16px minmax(0,1fr);gap:4px;align-items:start;padding:4px 0;font-size:10px;line-height:1.25;color:#3f4750}
.geometry-health-advanced-body input{margin:1px 0 0}
.geometry-health-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 6px;align-items:center}
.geometry-health-progress>div{grid-column:1/-1;height:4px;background:#e5e7eb;overflow:hidden;border:1px solid #d5d9de}.geometry-health-progress i{display:block;height:100%;background:#174f9f;transition:width .15s linear}.geometry-health-progress span,.geometry-health-progress strong{font-size:9px;color:#606975}
.geometry-health-summary-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.geometry-health-summary-head strong{font-size:12px}.geometry-health-summary-head span{font-size:9px;color:#606975;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.geometry-health-summary-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #d7dbe0;background:#fff}
.geometry-health-summary-item{min-width:0;min-height:38px!important;height:38px!important;padding:4px 2px!important;border:0!important;border-right:1px solid #e3e5e8!important;border-radius:0!important;background:#fff!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#30363d!important;box-shadow:none!important}
.geometry-health-summary-item:last-child{border-right:0!important}.geometry-health-summary-item strong{font-size:13px;line-height:1;font-weight:750}.geometry-health-summary-item span{font-size:8px;line-height:1.1;color:#606975;text-transform:uppercase;letter-spacing:.035em}.geometry-health-summary-item[data-gh-filter]:hover{background:#eef1f4!important}.geometry-health-summary-item.active{background:#e6edf7!important;box-shadow:inset 0 -2px 0 #174f9f!important}.geometry-health-summary-item.geometry-health-ready strong{color:#277443}.geometry-health-summary-item.geometry-health-safe strong{color:#174f9f}.geometry-health-summary-item.geometry-health-review strong{color:#8a5b08}.geometry-health-summary-item.geometry-health-manual strong{color:#a12620}
.geometry-health-summary-meta{font-size:9px;color:#69727d;line-height:1.3}
.geometry-health-engine{display:block;padding:4px 6px;border:1px solid #dcdfe4;background:#f5f6f7;font-size:9px;line-height:1.3;color:#4f5965}.geometry-health-engine.ok{border-left:2px solid #3f7f56}.geometry-health-engine.attention{border-left:2px solid #a87517}
.geometry-health-message{padding:5px 6px;border:1px solid #dcdfe4;background:#f5f6f7;font-size:9px;line-height:1.35;color:#4f5965}.geometry-health-message.ok{border-left:2px solid #3f7f56}.geometry-health-message.attention{border-left:2px solid #a87517;background:#fffaf0;color:#694d14}.geometry-health-message.error{border-left:2px solid #aa3028;background:#fff5f4;color:#84211b}.geometry-health-message.neutral{border-left:2px solid #7a838d}
.geometry-health-filterbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #d7dbe0;background:#fff}
.geometry-health-filterbar button{min-width:0;height:23px!important;min-height:23px!important;padding:0 3px!important;border:0!important;border-right:1px solid #e3e5e8!important;border-radius:0!important;background:#fff!important;font-size:9px!important;color:#4f5965!important}.geometry-health-filterbar button:last-child{border-right:0!important}.geometry-health-filterbar button:hover{background:#eef1f4!important}.geometry-health-filterbar button.active{background:#e6edf7!important;color:#174f9f!important;font-weight:700!important;box-shadow:inset 0 -2px 0 #174f9f!important}
.geometry-health-issue-list{display:flex;flex-direction:column;gap:4px}.geometry-health-feature-group{border:1px solid #d7dbe0;background:#fff;overflow:hidden}.geometry-health-feature-group>summary{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 7px;cursor:pointer;list-style:none;background:#fff}.geometry-health-feature-group>summary::-webkit-details-marker{display:none}.geometry-health-feature-group>summary:hover{background:#f0f2f4}.geometry-health-feature-group[open]>summary{border-bottom:1px solid #e3e5e8;background:#f8f9fa}.geometry-health-feature-main{display:flex;min-width:0;flex:1;flex-direction:column;gap:1px}.geometry-health-feature-main strong{font-size:10px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.geometry-health-feature-main small{font-size:9px;color:#606975;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.geometry-health-feature-status{flex:0 0 auto;font-size:8px;font-weight:750;text-transform:uppercase;letter-spacing:.03em;color:#606975}
.geometry-health-feature-group.geometry-health-safe>summary{box-shadow:inset 2px 0 0 #4b78aa}.geometry-health-feature-group.geometry-health-review>summary{box-shadow:inset 2px 0 0 #a87517}.geometry-health-feature-group.geometry-health-manual>summary{box-shadow:inset 2px 0 0 #aa3028}
.geometry-health-feature-issues{display:flex;flex-direction:column}.geometry-health-issue{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:6px 7px;border-top:1px solid #eceef0;background:#fff}.geometry-health-issue:first-child{border-top:0}.geometry-health-issue-main{min-width:0}.geometry-health-issue-heading{display:flex;align-items:center;gap:5px;min-width:0}.geometry-health-issue-heading strong{font-size:10px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.geometry-health-risk{display:inline-flex;flex:0 0 auto;padding:1px 3px;border:1px solid #cfd3d8;background:#eef1f4;font-size:7px!important;font-weight:750;text-transform:uppercase;letter-spacing:.025em;color:#4f5965}.geometry-health-risk.geometry-health-safe{color:#174f9f;border-color:#b6c8dc;background:#eef4fb}.geometry-health-risk.geometry-health-review{color:#7a520d;border-color:#d9c18f;background:#fff8e7}.geometry-health-risk.geometry-health-manual{color:#92241d;border-color:#dbb3b0;background:#fff2f1}.geometry-health-issue p{margin:3px 0 0;font-size:9px;line-height:1.35;color:#3f4750}.geometry-health-issue small{display:block;margin-top:2px;color:#69727d;font-size:8px}.geometry-health-issue-actions{display:flex;align-items:flex-start;gap:3px}.geometry-health-issue-actions button{min-height:22px!important;height:22px!important;padding:0 5px!important;font-size:9px!important;border-radius:2px!important;white-space:nowrap}.geometry-health-technical{grid-column:1/-1;font-size:8px;color:#69727d}.geometry-health-technical summary{cursor:pointer;width:max-content}.geometry-health-technical code{display:inline-block;margin-top:3px;font-size:8px}.geometry-health-technical p{font-size:8px;margin:3px 0}
.geometry-health-empty{padding:10px;text-align:center;color:#69727d;font-size:9px;border:1px dashed #cfd3d8;background:#fff}
.geometry-health-repair-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center;padding:6px;border:1px solid #dcdfe4;background:#f5f6f7}.geometry-health-repair-row>div{display:flex;flex-direction:column;gap:2px;min-width:0}.geometry-health-repair-row strong{font-size:10px}.geometry-health-repair-row small{font-size:8px;line-height:1.3;color:#606975}.geometry-health-repair-row button{min-height:24px!important;height:24px!important;padding:0 6px!important;font-size:9px!important}
.geometry-health-repair-preview{display:flex;flex-direction:column;gap:6px;padding:7px;border:1px solid #d4bd89;background:#fffaf0}.geometry-health-repair-preview.high-change{border-color:#d2a4a1;background:#fff5f4}.geometry-health-repair-title{display:flex;justify-content:space-between;gap:6px;align-items:center}.geometry-health-repair-title strong{font-size:10px}.geometry-health-repair-title span{font-size:8px;text-transform:uppercase;font-weight:750;color:#74521c}.geometry-health-repair-preview>p{margin:0;font-size:9px;line-height:1.35;color:#4f5965}
.geometry-health-preview-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #dcdfe4;background:#fff}.geometry-health-preview-metrics>div{display:flex;flex-direction:column;gap:1px;padding:5px;border-right:1px solid #eceef0;border-bottom:1px solid #eceef0}.geometry-health-preview-metrics>div:nth-child(2n){border-right:0}.geometry-health-preview-metrics>div:nth-last-child(-n+2){border-bottom:0}.geometry-health-preview-metrics span{font-size:8px;color:#69727d}.geometry-health-preview-metrics strong{font-size:9px;overflow-wrap:anywhere}
.geometry-health-compact-details{border:1px solid #dcdfe4;background:#fff}.geometry-health-compact-details>summary{cursor:pointer;padding:5px 6px;font-size:9px;font-weight:700;background:#f5f6f7}.geometry-health-compact-details>ul{margin:5px 7px 7px;padding-left:15px;font-size:8px;color:#4f5965}.geometry-health-compact-details>p{margin:5px 7px;font-size:8px;line-height:1.35;color:#4f5965}.geometry-health-compact-details>.geometry-health-compare-table,.geometry-health-compact-details>.v53-actions{margin:6px}
.geometry-health-compare-table{width:calc(100% - 12px);border-collapse:collapse;margin:6px;font-size:8px}.geometry-health-compare-table th,.geometry-health-compare-table td{padding:3px 4px;border:1px solid #dfe2e6;text-align:right}.geometry-health-compare-table th:first-child{text-align:left}.geometry-health-compare-table thead th{background:#f5f6f7;color:#59626e}
.geometry-health-report-actions .v53-actions{display:grid;grid-template-columns:1fr 1fr}.geometry-health-report-actions .v53-actions button{width:100%;min-width:0}
body.night-mode .geometry-health-panel{background:#15171b!important;border-color:#303744!important}body.night-mode .geometry-health-advanced,body.night-mode .geometry-health-summary-strip,body.night-mode .geometry-health-summary-item,body.night-mode .geometry-health-filterbar,body.night-mode .geometry-health-filterbar button,body.night-mode .geometry-health-feature-group,body.night-mode .geometry-health-feature-group>summary,body.night-mode .geometry-health-issue,body.night-mode .geometry-health-empty,body.night-mode .geometry-health-preview-metrics,body.night-mode .geometry-health-compact-details{background:#15171b!important;border-color:#303744!important;color:#e5e7eb!important}body.night-mode .geometry-health-advanced>summary,body.night-mode .geometry-health-feature-group[open]>summary,body.night-mode .geometry-health-compact-details>summary,body.night-mode .geometry-health-engine,body.night-mode .geometry-health-repair-row{background:#1d2127!important;border-color:#303744!important;color:#d1d5db!important}body.night-mode .geometry-health-summary-item span,body.night-mode .geometry-health-summary-meta,body.night-mode .geometry-health-summary-head span,body.night-mode .geometry-health-feature-main small,body.night-mode .geometry-health-feature-status,body.night-mode .geometry-health-issue p,body.night-mode .geometry-health-issue small,body.night-mode .geometry-health-technical,body.night-mode .geometry-health-repair-row small{color:#9ca3af!important}body.night-mode .geometry-health-summary-item.active,body.night-mode .geometry-health-filterbar button.active{background:#202c3a!important;color:#9fc5f4!important}body.night-mode .geometry-health-message{background:#1d2127;border-color:#3b424b;color:#cbd5e1}body.night-mode .geometry-health-message.attention,body.night-mode .geometry-health-repair-preview{background:#302919;border-color:#6d5b2b;color:#ead7a3}body.night-mode .geometry-health-message.error,body.night-mode .geometry-health-repair-preview.high-change{background:#321c1c;border-color:#6f3434;color:#f1c3c0}
@media(max-width:1100px){.geometry-health-panel{position:absolute;right:12px;top:58px;width:315px;max-height:calc(100vh - 96px);border:1px solid #cfd3d8!important;box-shadow:0 3px 12px rgba(31,35,40,.16)!important}}
@media(max-width:620px){.geometry-health-panel{position:fixed;inset:46px 0 28px 0;width:auto;max-height:none;padding:8px!important;z-index:5200}.geometry-health-title-actions .subtle{max-width:120px}.geometry-health-summary-strip{grid-template-columns:repeat(4,minmax(0,1fr))}.geometry-health-feature-group>summary{padding:7px}.geometry-health-issue{grid-template-columns:1fr}.geometry-health-issue-actions{grid-row:auto}.geometry-health-preview-metrics{grid-template-columns:1fr}.geometry-health-preview-metrics>div{border-right:0!important}.geometry-health-preview-metrics>div:last-child{border-bottom:0}}
