/* v0.4.07 — match the existing six-cell Overview cards and scoped dialogs */
.re407-card{min-width:0;min-height:0;box-sizing:border-box;background:#191d21;border:1px solid #30363d;border-radius:12px;padding:16px;display:flex;flex-direction:column;overflow:hidden;color:inherit;}
.re407-card h3{margin:0 46px 10px 0;font-size:15px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.re407-card .re407-body{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:8px;overflow:hidden}
.re407-card .re407-body svg{display:block;width:100%;max-width:100%;height:auto;min-height:0;max-height:70%;flex:1 1 auto}
.re407-card .re407-kpi{font-size:clamp(23px,3vw,42px);font-weight:650;line-height:1.1}
.re407-card .re407-source,.re407-card .re407-kpi-date,.re407-card .re407-empty{margin:0;font-size:11px;line-height:1.4;color:#abbcc8;overflow-wrap:anywhere}
.re407-builder{width:min(540px,calc(100vw - 24px));max-height:min(90vh,760px);overflow:auto;padding:20px;background:#142d3e;color:white;border:1px solid #36aed7;border-radius:12px}
.re407-builder h2{margin:0 0 8px;font-size:21px}
.re407-builder p{font-size:13px;color:#cee0ea;line-height:1.45}
.re407-builder label{display:block;font-size:14px;margin-top:12px}
.re407-builder label input,.re407-builder label select{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:10px;background:#244657;color:white;border:1px solid #6c9fb2;border-radius:5px;font:inherit}
.re407-builder .re407-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.re407-builder .re407-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.re407-builder button{border-radius:6px;padding:10px 17px;cursor:pointer;background:#087eab;color:white;border:1px solid #5fa9ca}
.re407-builder button[type=submit]{background:#049fd0;color:#fff}
.re407-builder .re407-validation{min-height:15px;color:#ffbdba}
.re401-library .re407-create-action{background:#05a4db;color:white;border:0;border-radius:6px;padding:10px 14px;cursor:pointer}
@media(max-width:600px){.re407-builder .re407-pair{grid-template-columns:1fr}.re407-card{padding:11px}}

/* v0.4.07 cross-page catalog: navigation cards stay inside the same six-cell grid. */
.re407-card .re407-shortcut-description{margin:0;font-size:13px;line-height:1.5;color:#d9e6f1;overflow-wrap:anywhere}
.re407-card .re407-shortcut-open{display:block;max-width:100%;align-self:flex-start;padding:9px 13px;border-radius:6px;border:1px solid #62b5d4;background:#069ed2;color:#fff;font-family:inherit;font-size:13px;font-weight:400;line-height:1.3;cursor:pointer;white-space:normal;text-align:left}
.re407-card .re407-shortcut-open:hover,.re407-card .re407-shortcut-open:focus-visible{background:#057eab;outline:2px solid #b4e7f5;outline-offset:2px}
