/* Secretaria mobile: composição própria; desktop e impressão permanecem intactos. */
@media screen and (max-width: 760px) {
  .app-shell .content { width: 100%; padding: 1.25rem 1rem calc(2rem + env(safe-area-inset-bottom)); }
  .app-shell .view, .app-shell .view > *, .app-shell .form-grid > *,
  .app-shell .report-filter-grid > * { min-width: 0; max-width: 100%; }
  .app-shell .topbar { gap: .5rem; padding: .65rem .8rem; min-height: 4.3rem; }
  .app-shell .top-brand { min-width: 0; gap: .4rem; font-size: .72rem; letter-spacing: 0; }
  .app-shell .top-brand img { width: 2rem; height: 2rem; }
  .app-shell .top-account { gap: .4rem; }
  .app-shell .environment-label { display: none; }
  .app-shell .top-logout-button, .app-shell .menu-button { min-height: 44px; }
  .app-shell .section-heading { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.4rem; }
  .app-shell .section-heading h2 { font-size: 1.8rem; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
  .app-shell .section-heading p:not(.eyebrow) { font-size: .95rem; line-height: 1.6; }
  .app-shell .surface { padding: 1rem; border-radius: 1.1rem; }
  .app-shell :is(.form-grid, .report-filter-grid, .detail-grid, .directory-grid, .export-grid, .celebration-grid, .quick-grid) {
    grid-template-columns: minmax(0, 1fr); gap: 1.15rem;
  }
  .app-shell .form-grid { padding: 1.1rem; }
  .app-shell .compact-form > .form-grid { padding: 0; }
  .app-shell .form-grid :is(.span-2, .span-3, .span-6) { grid-column: 1 / -1; }
  .app-shell :is(.form-grid, .report-filter-grid) label { font-size: .9rem; line-height: 1.45; gap: .5rem; letter-spacing: 0; }
  .app-shell :is(.form-grid, .filter-row, .report-filter-grid, .report-result-tools) :is(input, select, textarea) {
    min-width: 0; max-width: 100%; width: 100%; min-height: 50px; font-size: 16px; line-height: 1.5; padding: .8rem;
  }
  .app-shell .form-grid textarea { min-height: 8rem; }
  .app-shell .form-grid input[type="checkbox"] { width: 22px; min-height: 22px; flex: 0 0 22px; }
  .app-shell :is(.member-form summary, .report-more summary) { min-height: 54px; padding: 1rem; font-size: 1rem; }
  .app-shell .form-foot { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; padding-top: 1.25rem; }
  .app-shell .form-foot .button, .app-shell .section-heading > .button { width: 100%; min-height: 50px; }
  .app-shell .filter-row, .app-shell .report-result-tools { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; }
  .app-shell .filter-row :is(select, .search-field), .app-shell .report-result-tools > * { width: 100%; max-width: none; }
  .app-shell .report-result-tools input { flex: none; }
  .app-shell .search-field { min-width: 0; }
  .app-shell .member-card { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); align-items: start; padding: 1rem; gap: .75rem; }
  .app-shell .member-card :is(strong, small) { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.5; }
  .app-shell .member-card strong { font-size: 1rem; }
  .app-shell .member-card small { font-size: .85rem; margin-top: .25rem; }
  .app-shell .family-card-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; width: 100%; gap: .6rem; margin-top: .5rem; }
  .app-shell .family-card-actions .button { min-height: 46px; font-size: .9rem; }
  .app-shell .transfer-card > :is(select, button) { grid-column: 1 / -1; width: 100%; max-width: none; min-height: 48px; }
  .app-shell .relation-result { flex-direction: column; align-items: flex-start; min-height: 50px; gap: .25rem; padding: .85rem; }
  .app-shell .relation-control { gap: .55rem; padding: .6rem; }
  .app-shell .relation-chip { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; border-radius: .75rem; }
  .app-shell .relation-chip button { flex: 0 0 40px; min-width: 40px; min-height: 40px; }
  .app-shell .relation-chip-family { display: flex; flex-wrap: wrap; width: 100%; }
  .app-shell .relation-chip-family > span { flex: 1 1 calc(100% - 50px); }
  .app-shell .relation-chip-family :is(select, input) { flex: 1 1 100%; }
  .app-shell .report-table-wrap { overflow: visible; }
  .app-shell .report-table { min-width: 0; background: transparent; }
  .app-shell .report-table thead { display: none; }
  .app-shell .report-table, .app-shell .report-table tbody { display: block; width: 100%; }
  .app-shell .report-table tr { display: block; width: 100%; padding: 1rem; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 1rem; }
  .app-shell .report-table td { display: block; width: 100%; border: 0; padding: .4rem 0; overflow-wrap: anywhere; }
  .app-shell .report-table td::before { content: attr(data-label); display: block; min-width: 0; margin-bottom: .2rem; font-size: .75rem; color: var(--muted); }
  .app-shell .report-table td:first-child { font-size: 1.05rem; font-weight: 750; }
  .app-shell .report-table td .button { width: 100%; margin-top: .5rem; min-height: 46px; }
  .app-shell .report-pagination { flex-wrap: wrap; gap: .6rem; }
  .app-shell .report-pagination .button { flex: 1; min-height: 46px; }
  .app-shell .report-pagination span { width: 100%; text-align: center; order: -1; }
  .app-shell .compact-metrics { grid-template-columns: 1fr; gap: .75rem; }
  .app-shell .compact-metrics .metric-card { min-height: 0; padding: 1rem; }
  .app-shell .compact-metrics .metric-card strong { font-size: 2rem; }
  .app-shell .action-links { grid-template-columns: 1fr; gap: .75rem; }
  .app-shell .quick-action { min-height: 72px; padding: 1rem; }
  .app-shell .quick-action strong { font-size: .95rem; }
  .app-shell .quick-action small { font-size: .8rem; }
  .app-shell .recent-copy :is(strong, small) { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  .app-shell .birthday-navigation { gap: .35rem; }
  .app-shell .birthday-navigation strong { min-width: 0; font-size: .85rem; }
  .app-shell .birthday-navigation .button { padding: .6rem; min-height: 44px; }
  .app-shell .birthday-row { grid-template-columns: 2.5rem 2.5rem minmax(0, 1fr); gap: .5rem; }
  .app-shell .birthday-row .button { grid-column: 3; white-space: normal; min-height: 44px; }
  .app-shell .birthday-person { overflow-wrap: anywhere; }
  .app-shell .document-toolbar, .app-shell .secretary-card-toolbar { flex-wrap: wrap; gap: .6rem; }
  .app-shell .document-toolbar .button { flex: 1 1 100%; min-height: 48px; }
  .dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .dialog-card > div { padding: 1rem; }
  .dialog-card .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .dialog-card header h2 { font-size: 1.2rem; overflow-wrap: anywhere; }
  .dialog-card .member-dialog-head { align-items: flex-start; }
  .dialog-card .member-dialog-head > div { min-width: 0; overflow-wrap: anywhere; }
}
