.tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr));gap:18px;align-items:stretch}.tools-card{display:flex;flex-direction:column;min-width:0;padding:26px;border:1px solid #d8e1da;border-radius:12px;background:#fffef9;overflow:hidden}.tools-card-art{display:flex;align-items:center;justify-content:center;height:180px;flex:none;margin:-26px -26px 24px;background:linear-gradient(135deg,#f1f5ef,#fafbf7);border-bottom:1px solid #e4ebe2}.tools-card-art img{display:block;width:100%;height:156px;object-fit:contain}.tools-card-comelit .tools-card-art{background:#fff}.tools-card-comelit .tools-card-art img{width:76%;max-width:280px;height:112px}.tools-card h2{margin:0 0 12px;min-height:2.7em;line-height:1.35}.tools-card p{margin:0 0 24px}.tools-card>.btn{align-self:flex-start;max-width:100%;white-space:normal;margin-top:auto}.tools-card:focus-within{border-color:var(--company-ink,#234c50);box-shadow:0 0 0 2px var(--company-soft,#e8f0ea)}@media(max-width:600px){.tools-card-art{height:156px}.tools-card-art img{height:140px}.tools-card h2{min-height:0}}
.rebt-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.rebt-workspace{display:grid;grid-template-columns:minmax(340px,.95fr) minmax(430px,1.15fr);gap:18px;align-items:start}
.rebt-workspace>*,.rebt-library>*{min-width:0}.rebt-form{min-width:0}.rebt-form textarea{width:100%;max-width:100%}.rebt-diagram{display:block;max-width:100%}
.rebt-form details{margin-top:16px}.rebt-form summary{cursor:pointer;font-weight:600}.rebt-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rebt-form .panel-body{padding:18px}.rebt-form input,.rebt-form select{min-width:0}.rebt-form .rebt-checks{display:grid;gap:12px}.rebt-input-note{padding:10px 16px;background:var(--company-soft,#eef4f2);border-radius:7px}
.rebt-result .panel-body{padding:18px}.rebt-result h2{font-size:20px}.rebt-summary{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:12px}.rebt-summary>div{padding:14px;border:1px solid #dae2d9;border-radius:8px}.rebt-summary strong{display:block;font-size:19px;margin-top:6px}.rebt-rule{padding:14px 0;border-bottom:1px solid #dce2d8}.rebt-rule h3{font-size:16px;margin:0 0 5px}.rebt-rule p{margin:6px 0}.rebt-rule a{font-size:13px;color:var(--company-ink,#16556a)}
.rebt-status{display:inline-block;font-size:12px;padding:4px 8px;border-radius:6px;background:#eef3f0}.rebt-status.pendiente{background:#fff0cf;color:#70530e}.rebt-status.revisar{background:#ffe2dc;color:#8e291b}.rebt-status.criterio_superado{background:#dff3e6;color:#135734}
.rebt-diagram{width:100%;height:auto;min-height:170px;background:#fafbf8;border:1px solid #dce2d8;border-radius:8px}.rebt-diagram text{font-family:system-ui;fill:#223d40}.rebt-diagram .wire{stroke:var(--company-ink,#205253);stroke-width:2;fill:none}.rebt-diagram .box{fill:var(--company-soft,#eef4f2);stroke:var(--company-ink,#205253);stroke-width:1}.rebt-diagram .earth{stroke:#47795c;stroke-width:2}
.rebt-room{padding:12px;border:1px solid #d7dfd4;border-radius:8px;margin:10px 0}.rebt-room .form-grid{grid-template-columns:1fr 1fr}.rebt-room-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.rebt-room-results>article{padding:12px;border:1px solid #dce2d8;border-radius:8px}.rebt-room-results small{display:block}
.rebt-table{width:100%;font-size:13px}.rebt-table td,.rebt-table th{padding:7px}.rebt-result .table-wrap{overflow:auto}.rebt-pending{font-size:13px;line-height:1.6}.rebt-actions{display:flex;gap:8px;flex-wrap:wrap;position:sticky;bottom:8px;background:#fffef9;padding:12px;border:1px solid #d7dfd4;border-radius:8px;z-index:2}
.rebt-auto-input{display:flex;gap:6px;align-items:center;min-width:0}.rebt-auto-input input,.rebt-auto-input select{min-width:0;flex:1 1 80px;width:100%}.rebt-auto-input .btn{flex:0 0 auto;padding:8px}.rebt-line-form .field{min-width:0}.rebt-line-form input,.rebt-line-form select{min-width:0;max-width:100%}.rebt-line-form input[readonly],.rebt-line-form select:disabled{background:var(--company-soft,#eef4f2);opacity:1;color:inherit}.rebt-automatic-field small{line-height:1.4}.rebt-status.propuesta{background:#fff0cf;color:#70530e}
.rebt-form [data-installed-field][hidden]{display:none}.rebt-subboard-flow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.rebt-subboard-flow article{flex:1 1 160px;min-width:0;padding:14px;border:1px solid #d7dfd4;border-radius:8px;background:var(--company-soft,#eef4f2)}.rebt-subboard-flow p{overflow-wrap:anywhere}.rebt-result .form-grid input{min-width:0}
.rebt-bath-panel>.field{max-width:520px}.rebt-bath-diagram{margin:18px 0;background:#fff;min-height:0}.rebt-bath-diagram .bath-floor{stroke:#29434a;stroke-width:3;fill:none}.rebt-bath-diagram .bath-boundary{stroke:#61777d;stroke-width:1.5;fill:none}.rebt-bath-diagram .bath-upper{stroke:#61777d;stroke-width:1.3;stroke-dasharray:6 5;fill:none}.rebt-bath-diagram .bath-dimension{stroke:#29434a;stroke-width:1.5;fill:none}.rebt-bath-diagram .bath-number-light{fill:#fff}.rebt-bath-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.rebt-bath-legend article{padding:16px;border:1px solid #d7dfd4;border-top:7px solid;border-radius:8px;min-width:0}.rebt-bath-legend h4{margin:0 0 10px;font-size:17px;line-height:1.35}.rebt-bath-legend p{font-size:14px;line-height:1.6}.rebt-bath-legend small{display:block;font-size:13px;line-height:1.5}.rebt-bath-legend .bath-volume-0{border-top-color:#174d75}.rebt-bath-legend .bath-volume-1{border-top-color:#bc5936}.rebt-bath-legend .bath-volume-2{border-top-color:#d7ab24}.rebt-bath-legend .bath-volume-3{border-top-color:#789cb7}.rebt-bath-special{margin:18px 0;padding:14px;border:1px solid #d7dfd4;border-radius:8px}.rebt-bath-special summary{cursor:pointer;font-weight:600}.rebt-bath-special p{font-size:14px;line-height:1.6}
@media(max-width:1000px){.rebt-bath-legend{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.rebt-bath-legend{grid-template-columns:1fr}.rebt-bath-panel{padding:14px}.rebt-bath-diagram{min-width:0}}
.rebt-bath-scheme-wrap{max-width:100%;overflow-x:auto}.rebt-bath-scheme-wrap .rebt-bath-diagram{min-width:740px}
.rebt-bath-diagram text{stroke:none;stroke-width:0;font-weight:400}.rebt-bath-diagram text.bath-number-light{fill:#fff}
.rebt-library{display:grid;grid-template-columns:minmax(220px,.6fr) minmax(400px,1.4fr);gap:18px}.rebt-library-list{max-height:65vh;overflow:auto}.rebt-library-list .btn{display:block;width:100%;text-align:left;margin:7px 0;white-space:normal}.rebt-legal-text{white-space:pre-wrap;line-height:1.7;font-size:14px;overflow-wrap:anywhere}.rebt-source-note{font-size:13px;color:#647976}.rebt-stat{font-variant-numeric:tabular-nums}
@media(max-width:1300px){.rebt-workspace{grid-template-columns:minmax(0,1fr)}.rebt-form .form-grid{grid-template-columns:repeat(3,minmax(130px,1fr))}.rebt-room .form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:850px){.rebt-library{grid-template-columns:1fr}.rebt-form .form-grid{grid-template-columns:1fr 1fr}.rebt-summary{grid-template-columns:1fr 1fr}}
@media(max-width:500px){.rebt-form .form-grid{grid-template-columns:1fr}.rebt-room .form-grid{grid-template-columns:1fr}.rebt-tabs .btn{flex:1 1 40%}}

.rebt-unifilar-panel{min-width:0;max-width:100%;border:1px solid #dce2d8;border-radius:8px;padding:12px;background:#fff}.rebt-unifilar-panel>.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:12px}.rebt-unifilar-panel label{display:flex;gap:8px;align-items:center}.rebt-unifilar-scroll{overflow:auto;max-width:100%;max-height:700px;border:1px solid #e0e4e5;background:white}.rebt-unifilar-scroll svg.rebt-unifilar{display:block;max-width:none;flex:none;stroke:none;fill:none}.rebt-unifilar-dialog{width:96vw;max-width:1800px;max-height:95vh;padding:18px;border:1px solid #dce2d8;border-radius:10px}.rebt-unifilar-dialog::backdrop{background:#152b35aa}.rebt-unifilar-dialog .rebt-unifilar-scroll{max-height:75vh}.rebt-unifilar-dialog>.actions{justify-content:space-between;margin-bottom:12px}
