body.tool-calculadora-de-regra-de-3 .action-buttons-calc .btn-calc-main { flex: 0 0 auto !important; width: auto !important; max-width: 100%; }
@media (max-width: 600px) {
    body.tool-calculadora-de-regra-de-3 .action-buttons-calc { flex-wrap: wrap; }
    body.tool-calculadora-de-regra-de-3 .action-buttons-calc .btn-calc-main { flex: 1 1 100% !important; width: 100% !important; }
}
.r3-panel { margin-bottom: var(--sp-5, 24px); }
#r3-type, #r3-rel { max-width: 420px; }
.r3-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-3, 12px) var(--sp-4, 16px); max-width: 520px; }
.r3-col { font-size: .88rem; font-weight: 600; color: #515154; }
.r3-cell { display: flex; align-items: center; gap: var(--sp-2, 8px); min-width: 0; }
.r3-cell label, .r3-x-label { flex: 0 0 1.4em; margin: 0 !important; font-weight: 700; color: #1d1d1f; }
.r3-cell input { flex: 1 1 auto; min-width: 0; margin: 0; }
.r3-x { flex: 1 1 auto; display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px dashed #aeaeb2; border-radius: 8px; color: #515154; font-weight: 700; }
.r3-x--set { border-style: solid; border-color: #0071e3; color: #1d1d1f; }
.r3-xrow { max-width: 260px; }
body.dark-mode .r3-x--set { border-color: #4da3ff; color: #f5f5f7; }
.r3-grid .field-error { grid-column: 1 / -1; margin: 0; }
.r3-rows { list-style: none; margin: 0; padding: 0; }
.r3-row { padding: var(--sp-3, 12px) 0; border-top: 1px solid #e5e5ea; }
.r3-row:last-child { border-bottom: 1px solid #e5e5ea; }
.r3-row-title { margin: 0 0 var(--sp-2, 8px); font-weight: 600; color: #1d1d1f; }
.r3-row-cells { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-2, 8px) var(--sp-4, 16px); }
.r3-row-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2, 8px); margin-top: var(--sp-2, 8px); }
.r3-row-rel { margin: 0; }
.r3-row .field-error { margin: var(--sp-1, 4px) 0 0; }
.r3-table th[scope="row"] { text-align: left; font-weight: 600; }
.r3-table thead th:empty { background: #f5f5f7; }
.r3-setup { margin: 0 0 var(--sp-5, 24px); }
.r3-table-scroll { max-height: none; }
body.dark-mode .r3-col, body.dark-mode .r3-x { color: #c7c7cc; }
body.dark-mode .r3-cell label, body.dark-mode .r3-x-label, body.dark-mode .r3-row-title { color: #e8e8e8; }
body.dark-mode .r3-row { border-color: #3a3a3c; }
body.dark-mode .r3-x { border-color: #636366; }
.r3-ed-table { overflow-x: auto; margin: 0 0 16px; }
.r3-ed-table table { border-collapse: collapse; min-width: 220px; }
.r3-ed-table th, .r3-ed-table td { border: 1px solid #d0d7e2; padding: 6px 18px; text-align: center; }
body.dark-mode .r3-ed-table th, body.dark-mode .r3-ed-table td { border-color: #3a3a3c; }
