.roof-diagram-host[hidden] { display: none !important; }
.roof-diagram-host { margin: 18px 0; }
.roof-diagram-control { display: grid; gap: 14px; padding: clamp(16px, 2.5vw, 26px); border: 1px solid #8fa39a; border-left: 6px solid #eead21; background: #f8fbf8; color: #172a20; box-shadow: 0 12px 30px rgba(15, 38, 26, .08); }
.roof-diagram-control h3, .roof-diagram-control h4, .roof-diagram-control p { margin: 0; }
.roof-diagram-control > p { color: #4b5f54; line-height: 1.55; }
.roof-diagram-control fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.roof-diagram-control legend { margin-bottom: 8px; font-weight: 900; }
.roof-diagram-provider-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.roof-diagram-provider-option { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; min-width: 0; padding: 12px; border: 1px solid #aebdb5; background: #fff; cursor: pointer; }
.roof-diagram-provider-option input { margin-top: 4px; }
.roof-diagram-provider-option span { display: grid; gap: 3px; }
.roof-diagram-provider-option small { color: #52675b; line-height: 1.4; }
.roof-diagram-control > button { min-height: 44px; justify-self: start; padding: 10px 18px; border: 2px solid #7e1f18; background: #f4c63d; color: #172a20; font: inherit; font-weight: 900; cursor: pointer; }
.roof-diagram-control > button:disabled { border-color: #9ca8a1; background: #dce3de; color: #67746c; cursor: not-allowed; }
.roof-diagram-status { padding: 10px 12px; border-left: 4px solid #2d7650; background: #edf5ef; font-weight: 750; }
.roof-diagram-canonical figure, .roof-diagram-presentation figure { display: grid; gap: 8px; margin: 0; padding: 12px; border: 1px solid #c1cdc6; background: #fff; }
.roof-diagram-canonical img, .roof-diagram-presentation img { display: block; width: 100%; max-height: 640px; object-fit: contain; background: #eef2ef; }
.roof-diagram-canonical figcaption, .roof-diagram-presentation figcaption { color: #53645b; font-size: .9rem; line-height: 1.45; }
.roof-diagram-presentation { border-top: 2px solid #8fa39a; padding-top: 14px; }
@media (max-width: 680px) { .roof-diagram-provider-options { grid-template-columns: 1fr; } .roof-diagram-control > button { width: 100%; } }
