/* CAEL 0.6.30 — compact contents in item windows.
 * Presentation only: no dialog dimensions, placement, data, visibility or
 * table geometry. Personal card spans/heights remain owned by layout058.
 * Load after module styles and forms_compact0627.css.
 */
@media screen {
  /* Reuse the existing form controls without changing page-level density. */
  html[data-interface567] :is(#modal,dialog.budget574-dialog) {
    --f627-grid-gap:8px;
  }

  /* Only the contents of the existing header, body and footer change. */
  html[data-interface567] #modal:is(.ux667-modal,.nf-dialog,.f531-dialog,.f586-editor,.r586-record,.op592-dialog,.rs609-dialog,.cpu527-dialog,.et587-schedule-dialog)>.modal-header {
    padding:10px 16px!important;
    min-height:0;
    gap:8px;
  }
  html[data-interface567] #modal:is(.ux667-modal,.nf-dialog,.f531-dialog,.f586-editor,.r586-record,.op592-dialog,.rs609-dialog,.cpu527-dialog,.et587-schedule-dialog)>.modal-body {
    padding:12px 16px 16px!important;
  }
  html[data-interface567] #modal:is(.ux667-modal,.nf-dialog,.f531-dialog,.f586-editor,.r586-record,.op592-dialog,.rs609-dialog,.cpu527-dialog,.et587-schedule-dialog)>.modal-footer {
    padding:8px 16px calc(8px + env(safe-area-inset-bottom))!important;
    gap:6px;
  }
  html[data-interface567] #modal:is(.ux667-modal,.nf-dialog,.f531-dialog,.f586-editor,.r586-record,.op592-dialog,.rs609-dialog,.cpu527-dialog,.et587-schedule-dialog)>.modal-header h2 {
    font-size:18px!important;
    line-height:1.3;
    margin-block:0;
  }
  html[data-interface567] #modal.r586-record>.modal-header h2 {margin-top:4px;}
  html[data-interface567] #modal.r586-record .r586-eyebrow {gap:6px;font-size:11px;line-height:1.3;}
  html[data-interface567] #modal.r586-record .r586-eyebrow .r586-icon {width:18px;height:18px;flex-basis:18px;padding:4px;border-radius:6px;}
  html[data-interface567] #modal.r586-record .r586-header-meta {gap:6px;margin-top:5px;}
  html[data-interface567] #modal.r586-record .r586-record-code {font-size:11px;}
  html[data-interface567] #modal.r586-record .f517-options>summary {min-height:32px;padding:6px 8px;font-size:11px;}
  html[data-interface567] #modal.r586-record .f517-options-body .btn {min-height:32px;}
  html[data-interface567] #modal.r586-record .nf-detail-head {padding-bottom:5px;margin-bottom:5px;gap:8px;}
  html[data-interface567] #modal.r586-record .nf-tabs {top:-12px;margin-bottom:10px;padding-top:2px;gap:2px;}
  html[data-interface567] #modal.r586-record .nf-tabs>button {min-height:34px;padding:7px 10px;gap:5px;font-size:12px;line-height:1.35;}
  html[data-interface567] #modal.r586-record .nf-tabs>button>.r586-icon {width:15px;height:15px;flex-basis:15px;}
  html[data-interface567] #modal.r586-record.l58-editing .nf-tabs {top:0;}
  html[data-interface567] #modal.r586-record>.modal-body {scroll-padding-block:46px 12px;}

  /* Native record cards: short labels and values occupy their natural height.
   * Never reset a user's inline min-height or the layout editor's padding. */
  html[data-interface567] #modal .nf-form-grid,
  html[data-interface567] #modal .l58-grid {gap:8px!important;}
  html[data-interface567] #modal .l58-grid {margin-top:8px;}
  html[data-interface567] #modal.r586-record .r586-section-title {font-size:13px;line-height:1.4;gap:6px;margin-top:10px;padding-bottom:0;}
  html[data-interface567] #modal.r586-record .r586-section-title:first-child {margin-top:0;}
  html[data-interface567] #modal .nf-detail-field,
  html[data-interface567] #modal.r586-record .nf-detail-field {padding:8px 10px;border-radius:7px;}
  html[data-interface567] #modal .nf-detail-field>.l58-content>small,
  html[data-interface567] #modal .nf-detail-field>small,
  html[data-interface567] #modal.r586-record .nf-detail-field>.l58-content>small,
  html[data-interface567] #modal.r586-record .nf-detail-field>small {font-size:11px;line-height:1.4;margin-bottom:3px;}
  html[data-interface567] #modal.r586-record .nf-detail-field>.l58-content>div,
  html[data-interface567] #modal.r586-record .nf-detail-field>div:not(.l58-tools) {font-size:13px;line-height:1.45;}
  html[data-interface567] #modal.r586-record .r586-key-field>.l58-content>div,
  html[data-interface567] #modal.r586-record .r586-key-field>div:not(.l58-tools) {font-size:14px;}
  html[data-interface567] #modal.r586-record .r586-key-field:is([data-layout-field="valor"],[data-layout-field="total"])>.l58-content>div {font-size:17px;}
  html[data-interface567] #modal.r586-record .pill {min-height:22px;padding:3px 7px;font-size:11px;line-height:1.35;gap:5px;}
  html[data-interface567] #modal.r586-record :is(.nf-link,.fx19-link) {min-height:28px;padding:4px 7px;margin:1px 4px 2px 0;font-size:12px;line-height:1.4;}
  html[data-interface567] #modal.r586-record .nf-related {padding:8px 10px;margin:6px 0;gap:8px;}
  html[data-interface567] #modal.r586-record :is(.nf-form-note,.nf-quality,.ev44-conform,.in582-pending) {padding:8px 10px;margin-bottom:10px;line-height:1.45;}
  html[data-interface567] #modal.r586-record :is(.nf-plan,.l58-collection,.nf-photo-slot) {padding:10px;border-radius:8px;}
  html[data-interface567] #modal.r586-record .nf-muted {line-height:1.45;}
  html[data-interface567] #modal.r586-record .l58-hidden-notice {padding:8px 10px;margin-block:8px;}

  /* Common editors, including finance, payroll, receipts and work records.
   * No table, row, cell, worksheet column or nested table control is resized. */
  html[data-interface567] #modal .f531-editor {font-size:13px;line-height:1.45;}
  html[data-interface567] #modal .f531-editor>h3 {font-size:15px;margin:12px 0 7px;}
  html[data-interface567] #modal .f531-editor>p {margin:5px 0 8px;}
  html[data-interface567] #modal :is(.f531-grid,.rs609-grid,.op592-form-grid,.ed618-form-grid,.d619-form-grid,.cpu527-grid,.budget528-grid,.budget528-line-grid) {gap:8px 10px;margin-block:8px;}
  html[data-interface567] #modal :is(.f531-field,.rs609-field) {gap:4px;}
  html[data-interface567] #modal :is(.f531-note,.f531-error,.rs609-note,.rs609-error,.rs609-success,.op592-note,.cpu527-notice,.cpu527-warning,.budget528-notice,.budget528-warning,.p45-notice,.d619-note) {padding:8px 10px;margin-block:8px;font-size:12px;line-height:1.45;}
  html[data-interface567] #modal :is(.f531-summary,.rs609-benefit-summary,.rs609-cost-totals,.cpu527-kpis,.budget528-kpis,.a530-kpis) {gap:8px;margin-block:8px;}
  html[data-interface567] #modal :is(.f531-summary>div,.rs609-benefit-summary article,.rs609-cost-totals article,.cpu527-kpis>div,.budget528-kpis>div,.a530-kpis>div) {padding:9px 11px;gap:3px;}
  html[data-interface567] #modal :is(.f531-summary b,.rs609-benefit-summary strong,.rs609-cost-totals strong,.cpu527-kpis b,.budget528-kpis b,.a530-kpis b) {font-size:18px;line-height:1.35;}
  html[data-interface567] #modal :is(.f531-tools,.f531-step,.f531-benefit,.f531-tax,.cpu527-tools,.cpu527-tabs,.cpu527-identity,.budget528-tabs) {margin-block:8px;}
  html[data-interface567] #modal :is(.f531-benefit,.f531-tax) {padding:10px 12px;}
  html[data-interface567] #modal :is(.f531-confirm,.cpu527-save,.rs609-preview) {margin-top:10px;padding-top:10px;}
  html[data-interface567] #modal .f531-check {padding-block:5px;line-height:1.45;}
  html[data-interface567] #modal .f531-choices .f531-check {min-height:32px;}
  html[data-interface567] #modal .f531-editor details>summary {min-height:32px;}
  html[data-interface567] #modal .f627-tabs {padding:4px;margin-bottom:8px;}
  html[data-interface567] #modal .f627-tabs .f627-tab {min-height:32px!important;padding:6px 9px!important;}
  html[data-interface567] #modal .f627-adapter-actions {margin-top:8px;}
  html[data-interface567] #modal.f586-editor :is(.f517-essentials,.nf-questionnaire,.nf-lines) {padding:10px;margin-block:8px;}
  html[data-interface567] #modal.f586-editor .f586-section-heading {padding-bottom:8px;gap:7px;}
  html[data-interface567] #modal.f586-editor .f586-section-heading h3 {font-size:14px;}
  html[data-interface567] #modal.f586-editor .f586-section-heading>.f586-icon {width:24px;height:24px;border-radius:6px;}
  html[data-interface567] #modal.f586-editor .f517-details>.f517-section-body {padding:10px;}

  /* Financial origins and purchasing/invoice panels inside the item. */
  html[data-interface567] #modal .fx19-origin,
  html[data-interface567] #modal.r586-record .fx19-origin {padding:10px 12px;margin-block:8px;border-radius:8px;}
  html[data-interface567] #modal.r586-record .nf-form-grid+.fx19-origin {margin-top:12px;}
  html[data-interface567] #modal.r586-record .fx19-origin-head {gap:8px;margin-bottom:8px;}
  html[data-interface567] #modal.r586-record .fx19-origin-grid {gap:8px 12px;}
  html[data-interface567] #modal.r586-record .fx19-origin-cell>small {margin-bottom:3px;}
  html[data-interface567] #modal.r586-record .fx19-origin-cell>div {font-size:13px;line-height:1.45;}
  html[data-interface567] #modal.r586-record .fx19-caption {padding-top:7px;}
  html[data-interface567] #modal :is(.i628-header,.i628-record-summary) {gap:8px;padding-block:8px;}
  html[data-interface567] #modal :is(.i628-record-summary,.i628-document,.i628-titles article,.i628-invoice-line,.i628-survivor) {padding:8px 10px;}
  html[data-interface567] #modal :is(.i628-meta,.i628-search) {margin-block:8px;gap:8px;}
  html[data-interface567] #modal .i628-tabs button {padding:6px 9px;min-height:32px;}
  html[data-interface567] #modal [data-nf-tab="recebimento045"]>.btn {margin-top:10px;}

  /* The unified Cargos, funções, SST dossier and its existing nested tabs. */
  html[data-interface567] #modal :is(.rs609-identity,.rs609-section-heading,.sr611-heading,.pc612-heading,.ed618-section-head) {gap:10px;margin-bottom:10px;}
  html[data-interface567] #modal :is(.rs609-section-heading h2,.rs609-section-heading h3,.sr611-heading h3,.pc612-heading h3) {font-size:15px;line-height:1.4;margin-bottom:3px;}
  html[data-interface567] #modal :is(.rs609-section-heading p,.sr611-heading p,.pc612-heading p) {font-size:12px;line-height:1.45;}
  html[data-interface567] #modal :is(.rs609-tabs,.ed618-tabs,.d619-tabs) {gap:3px;margin-bottom:10px;}
  html[data-interface567] #modal :is(.rs609-tabs,.ed618-tabs,.d619-tabs)>button {padding:7px 10px;min-height:34px;line-height:1.35;font-size:12px;}
  html[data-interface567] #modal :is(.rs609-card,.rs609-benefit-card,.sst609-measures article,.sst609-edit-field) {padding:11px 12px;margin-bottom:10px;}
  html[data-interface567] #modal :is(.rs609-empty,.ed618-empty,.d619-empty,.pc612-state) {padding:16px 14px;}
  html[data-interface567] #modal :is(.rs609-facts,.sst609-fields,.sr611-facts) {margin-bottom:10px;}
  html[data-interface567] #modal :is(.rs609-facts>div,.sst609-fields>div,.sr611-facts>div) {padding:8px 10px;}
  html[data-interface567] #modal :is(.rs609-facts dt,.sst609-fields dt,.sr611-facts dt) {margin-bottom:3px;font-size:11px;line-height:1.4;}
  html[data-interface567] #modal :is(.rs609-facts dd,.sst609-fields dd,.sr611-facts dd) {line-height:1.5;}
  html[data-interface567] #modal :is(.sr611-facts dd,.sr611-facts .sr611-value) {font-size:13px;}
  html[data-interface567] #modal .rs609-mode {gap:8px;margin-bottom:10px;}
  html[data-interface567] #modal .rs609-mode>label {padding:10px;gap:8px;}
  html[data-interface567] #modal :is(.rs609-link-cards,.sst609-measures,.sst609-edit-grid,.sr611-primary-grid,.sr611-secondary-grid,.sr611-prevention,.c629-area-grid,.c629-context-list,.d619-role-types,.d619-requirement-group>div) {gap:8px;}
  html[data-interface567] #modal .rs609-link-cards article {padding:11px 12px;gap:8px;}
  html[data-interface567] #modal :is(.rs609-form-actions,.rs609-details,.rs609-picker,.sst609-related) {margin-top:10px;}
  html[data-interface567] #modal .rs609-details {padding-top:8px;}
  html[data-interface567] #modal .sst609-related {padding-top:10px;}
  html[data-interface567] #modal .sst609-measures .sst609-fields>div {padding:6px 0;}
  html[data-interface567] #modal .sst609-measures article h3 {font-size:13px;margin-bottom:7px;}
  html[data-interface567] #modal.rs609-dialog fieldset.sst609-choices {gap:7px 12px;}
  html[data-interface567] #modal .sst609-choices legend {margin-bottom:6px;}
  html[data-interface567] #modal :is(.sr611-risks,.sr611-prevention,.sr611-activities) {margin-bottom:12px;}
  html[data-interface567] #modal :is(.sr611-summary,.pc612-summary) {padding:9px 11px;gap:8px 14px;margin-bottom:10px;}
  html[data-interface567] #modal .sr611-summary-item strong {font-size:19px;}
  html[data-interface567] #modal :is(.sr611-risk-card,.sr611-risk-card.is-primary,.sr611-epis,.sr611-measures,.sr611-activities) {padding:10px 12px;}
  html[data-interface567] #modal .sr611-risk-card>header {margin-bottom:6px;}
  html[data-interface567] #modal .sr611-risk-value+.sr611-risk-value {margin-top:8px;padding-top:8px;}
  html[data-interface567] #modal :is(.sr611-value,.sr611-value-list) {font-size:13px;line-height:1.5;gap:6px;}
  html[data-interface567] #modal :is(.sr611-prevention h3,.sr611-activities h3) {font-size:14px;margin-bottom:7px;}
  html[data-interface567] #modal .sr611-other-fields>summary {padding:8px 10px;}
  html[data-interface567] #modal .sr611-other-fields>div {padding:10px;}
  html[data-interface567] #modal .pc612-shared-notice {padding:9px 11px;margin-bottom:10px;}
  html[data-interface567] #modal .c629-area-card {padding:10px 12px;gap:4px;}
  html[data-interface567] #modal .c629-area-card strong {font-size:20px;}
  html[data-interface567] #modal .c629-subtabs {gap:6px;margin:8px 0 10px;}
  html[data-interface567] #modal .c629-record-list {gap:6px;margin:8px 0 12px;}
  html[data-interface567] #modal .c629-record-list>button {padding:8px 10px;gap:3px;}
  html[data-interface567] #modal .c629-context-list>label {padding:8px 10px;gap:8px;}
  html[data-interface567] #modal .c629-notes {font-size:12px;line-height:1.5;}
  html[data-interface567] #modal :is(.d619-type-choice,.d619-requirement-group article,.d619-requirements-source) {padding:9px 11px;gap:8px;}
  html[data-interface567] #modal :is(.d619-requirement-group,.d619-requirements-source) {margin-block:12px;}
  html[data-interface567] #modal .d619-requirement-group h3 {margin-bottom:8px;font-size:14px;}

  /* Employee record, documents, monthly controls and embedded forms. */
  html[data-interface567] #modal .ed618-summary {margin-bottom:12px;}
  html[data-interface567] #modal .ed618-person-heading {padding:11px 12px;gap:10px;}
  html[data-interface567] #modal .ed618-person-heading h3 {font-size:17px;margin:3px 0 4px;}
  html[data-interface567] #modal .ed618-person-heading p {font-size:12px;line-height:1.45;}
  html[data-interface567] #modal .ed618-summary-link {padding:8px 10px;margin-top:8px;gap:10px;}
  html[data-interface567] #modal .ed618-fields>.ed618-section-title {margin-top:12px;}
  html[data-interface567] #modal :is(.ed618-section-head h2,.ed618-section-head h3,.ed618-year-section>h3,.ed618-form>h3) {font-size:15px;margin-bottom:4px;}
  html[data-interface567] #modal .ed618-overview>div {padding:9px 11px;gap:4px;}
  html[data-interface567] #modal .ed618-overview strong {font-size:20px;}
  html[data-interface567] #modal .ed618-year-section {margin-bottom:14px;padding-bottom:14px;}
  html[data-interface567] #modal .ed618-document-grid {gap:8px;}
  html[data-interface567] #modal :is(.ed618-document,.ed618-form,.ed618-drop) {padding:10px 12px;}
  html[data-interface567] #modal :is(.ed618-document-dates,.ed618-files,.ed618-document>footer) {margin-top:8px;gap:6px;}
  html[data-interface567] #modal .ed618-file {padding:6px 8px;}
  html[data-interface567] #modal .ed618-months {margin-bottom:10px;}
  html[data-interface567] #modal .ed618-months>button {min-height:52px;padding:7px 5px;gap:4px;}
  html[data-interface567] #modal .ed618-months>button.selected {padding:6px 4px;}
  html[data-interface567] #modal .ed618-form-actions {margin-top:10px;padding-top:10px;}
  html[data-interface567] #modal .ed618-form fieldset {margin-block:10px;padding:10px;}
  html[data-interface567] #modal .ed618-role-requirements {margin-top:10px;padding:9px 11px;}
  html[data-interface567] #modal .ed618-financial-docs {margin-top:14px;padding-top:12px;}
  html[data-interface567] #modal .ed618-financial-docs>h3 {font-size:15px;}

  /* Work/CPU/CT details: compact supporting panels, preserve worksheets. */
  html[data-interface567] #modal .op592-section {margin-block:10px;}
  html[data-interface567] #modal :is(.op592-section-head,.op592-row-head,.op592-context) {margin-bottom:8px;gap:8px;}
  html[data-interface567] #modal .op592-row-card {padding:10px;margin-block:8px;}
  html[data-interface567] #modal :is(.op592-review-grid,.op592-steps) {gap:8px;margin-bottom:10px;}
  html[data-interface567] #modal .op592-review-item {padding:9px 11px;}
  html[data-interface567] #modal .op592-review-item>b {font-size:16px;}
  html[data-interface567] #modal .op592-steps button {min-height:34px;padding:6px 9px;}
  html[data-interface567] #modal .op592-details>summary {padding:8px 10px;}
  html[data-interface567] #modal .op592-details>div {padding:10px;}
  html[data-interface567] #modal .cf610-identity {gap:10px;margin-bottom:10px;}
  html[data-interface567] #modal .cf610-identity h3 {font-size:17px;margin-block:4px;}
  html[data-interface567] #modal :is(.cf610-context,.cf610-origin) {padding:10px 12px;margin-bottom:10px;gap:8px;font-size:12px;line-height:1.45;}
  html[data-interface567] #modal .cf610-review-stages {margin-block:10px;}
  html[data-interface567] #modal .cf610-review-stages li {padding:7px 10px;}
  html[data-interface567] #modal :is(.cpu527-line-body,.budget528-line-body) {padding:8px 10px;}
  html[data-interface567] #modal :is(.cpu527-history,.budget528-summary,.budget528-history,.w530-state,.w530-origin) {padding:9px 11px;margin-block:8px;}
  html[data-interface567] #modal #cpu527-root :is(.cpu562-editor,.cpu562-overview) {padding:10px 12px;margin-block:10px;}
  html[data-interface567] #modal #cpu527-root #cpu562-groups article {padding:10px 12px;margin-top:8px;}
  html[data-interface567] #modal #ct592-editor .b575-summary {margin:8px 0 10px;}
  html[data-interface567] #modal #ct592-editor .b575-summary>div {min-height:0;padding:9px 11px;}
  html[data-interface567] #modal #ct592-editor .b575-meta {margin-bottom:10px;}
  html[data-interface567] #modal #ct592-editor .budget528-save {padding:10px;}
  html[data-interface567] #modal .ct592-savebar {padding-top:9px;margin-top:10px;gap:7px;}
  html[data-interface567] #modal.et587-schedule-dialog .et587-editor {padding:10px;}

  /* Composition dialogs are separate native dialogs, not children of #modal. */
  html[data-interface567] dialog.budget574-dialog>header {padding:9px 14px;gap:8px;}
  html[data-interface567] dialog.budget574-dialog>header h2 {font-size:17px;line-height:1.35;}
  html[data-interface567] dialog.budget574-dialog>.b574-body,
  html[data-interface567] dialog.budget574-dialog.ct592-composition>.b574-body {padding:10px 14px;}
  html[data-interface567] dialog.budget574-dialog>footer {padding:8px 14px calc(8px + env(safe-area-inset-bottom));gap:6px;}
  html[data-interface567] dialog.budget574-dialog .b574-fields {margin-block:8px;gap:8px;}
  html[data-interface567] dialog.budget574-dialog .b574-local-note {padding:8px 10px;}

  /* Measurement, billing and supply windows render their shell in a section.
   * Header selectors stop at that shell, not at headers inside table content. */
  html[data-interface567] dialog:is(.m540-dialog,.mm541-dialog,.ac542-dialog,.bl543-dialog,.br544-dialog,.bs545-dialog,.bj546-dialog,.ba547-dialog,.bc548-dialog,.br549-dialog,.oc550-dialog)>section>header {padding:10px 14px;gap:8px;}
  html[data-interface567] dialog:is(.m540-dialog,.mm541-dialog,.ac542-dialog,.bl543-dialog,.br544-dialog,.bs545-dialog,.bj546-dialog,.ba547-dialog,.bc548-dialog,.br549-dialog,.oc550-dialog)>section>header h2 {font-size:17px;line-height:1.35;}
  html[data-interface567] dialog:is(.m540-dialog,.mm541-dialog,.ac542-dialog,.bl543-dialog,.br544-dialog,.bs545-dialog,.bj546-dialog,.ba547-dialog,.bc548-dialog,.br549-dialog,.oc550-dialog)>section>footer {padding:8px 14px calc(8px + env(safe-area-inset-bottom));gap:6px;}
  html[data-interface567] dialog>section>:is(.m540-body,.mm541-body,.ac542-body,.bl543-body,.br544-body,.bs545-body,.bj546-body,.ba547-body,.bc548-body,.br549-body,.oc550-body) {padding:10px 14px;}
  html[data-interface567] dialog :is(.mm541-grid,.ac542-grid,.bl543-grid) {gap:8px 10px;margin-bottom:10px;}
  html[data-interface567] dialog :is(.m540-kpis,.mm541-kpis,.ac542-kpis,.bl543-kpis,.br544-summary,.bs545-summary,.bj546-summary,.ba547-summary,.bc548-summary,.br549-summary) {gap:8px;margin-block:8px;}
  html[data-interface567] dialog :is(.m540-kpis,.mm541-kpis,.ac542-kpis,.bl543-kpis,.br544-summary,.bs545-summary,.bj546-summary,.ba547-summary,.bc548-summary,.br549-summary)>div {padding:8px 10px;}
  html[data-interface567] dialog :is(.m540-kpis,.mm541-kpis,.ac542-kpis,.bl543-kpis) b {font-size:18px;line-height:1.35;}
  html[data-interface567] dialog.oc550-dialog .pb553-order-body {padding:10px 12px;}
  html[data-interface567] dialog:is(.ai624-dialog,.pc626-fiscal)>header {padding:10px 14px;gap:8px;}
  html[data-interface567] dialog:is(.ai624-dialog,.pc626-fiscal)>header h2 {font-size:18px;line-height:1.35;margin-block:0 4px;}
  html[data-interface567] dialog:is(.ai624-dialog,.pc626-fiscal)>footer {padding:8px 14px calc(8px + env(safe-area-inset-bottom));gap:6px;}
  html[data-interface567] dialog:is(.ai624-dialog,.pc626-fiscal)>:is(.ai624-body,.pc626-fiscal-body) {padding:10px 14px;}
  html[data-interface567] #modal .br622-camera {padding:10px;margin-block:8px 10px;}
  html[data-interface567] #modal .br622-camera-select {margin-block:8px;}
}

/* A default maintenance summary has short date/status cards (width 2) and
 * full-width relations/notes (width 4). r586-grouped exists only when the
 * saved layout equals its defaults; customized cards keep their own spans.
 */
@media screen and (min-width:780px) {
  html[data-interface567] #modal.r586-record[data-r586-kind="manutencoes"]:not(.l58-editing) .nf-form-grid.l58-grid.r586-grouped {
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
  html[data-interface567] #modal.r586-record[data-r586-kind="manutencoes"]:not(.l58-editing) .r586-grouped>.l58-card.l58-w2 {grid-column:span 2!important;}
  html[data-interface567] #modal.r586-record[data-r586-kind="manutencoes"]:not(.l58-editing) .r586-grouped>.l58-card.l58-w4 {grid-column:1/-1!important;}
}

/* Preserve usable touch targets and existing one-column breakpoints. */
@media screen and (max-width:700px),screen and (pointer:coarse) {
  html[data-interface567] :is(#modal,dialog.budget574-dialog) {
    --f627-grid-gap:8px;
  }
  html[data-interface567] #modal:is(.ux667-modal,.nf-dialog,.f531-dialog,.f586-editor,.r586-record,.op592-dialog,.rs609-dialog,.cpu527-dialog,.et587-schedule-dialog)>.modal-header {
    padding:8px 12px!important;
    padding-top:max(8px,env(safe-area-inset-top))!important;
  }
  html[data-interface567] #modal:is(.ux667-modal,.nf-dialog,.f531-dialog,.f586-editor,.r586-record,.op592-dialog,.rs609-dialog,.cpu527-dialog,.et587-schedule-dialog)>.modal-body {padding:10px 12px 14px!important;}
  html[data-interface567] #modal:is(.ux667-modal,.nf-dialog,.f531-dialog,.f586-editor,.r586-record,.op592-dialog,.rs609-dialog,.cpu527-dialog,.et587-schedule-dialog)>.modal-footer {padding:8px 12px calc(8px + env(safe-area-inset-bottom))!important;}
  html[data-interface567] #modal.r586-record .nf-tabs {top:-10px;}
  html[data-interface567] #modal.r586-record.l58-editing .nf-tabs {top:0;}
  html[data-interface567] #modal.r586-record .nf-tabs>button,
  html[data-interface567] #modal :is(.rs609-tabs,.ed618-tabs,.d619-tabs)>button,
  html[data-interface567] #modal :is(.i628-tabs,.op592-steps)>button {min-height:44px;padding-block:9px;}
  html[data-interface567] #modal .f627-tabs .f627-tab {min-height:44px!important;padding-block:9px!important;}
  html[data-interface567] #modal.r586-record :is(.nf-link,.fx19-link),
  html[data-interface567] #modal.r586-record .f517-options>summary,
  html[data-interface567] #modal .f531-choices .f531-check,
  html[data-interface567] #modal .f531-editor details>summary {min-height:44px;}
  html[data-interface567] #modal .c629-record-list>button {min-height:44px;}
}
@media screen and (max-width:700px) {
  html[data-interface567] #modal.r586-record .f517-options>summary {font-size:0;}
}
