/* Common light surfaces, compact actions and keyboard access for every module. */
:focus-visible{outline:3px solid #71419c;outline-offset:3px}
[hidden]{display:none!important}
.panel,.stat,.tool-card,fieldset,.form-grid>*,.management-layout>*,.report-layout>*{min-width:0}
fieldset{border:1px solid var(--line);border-radius:12px;padding:16px;margin:0}
legend{padding:0 6px;font-weight:650}
.form-stack>fieldset+fieldset{margin-top:4px}
.button,.section-tabs a,.invite-actions a{white-space:normal;text-align:center;line-height:1.4;overflow-wrap:anywhere}
button:disabled,.button[aria-disabled=true]{cursor:not-allowed;background:#eee9f3;color:#655d73;border-color:#d7cfe0;box-shadow:none}
.notice.warning{background:#fff8e8;color:#704a0c;border-color:#e6ce95}
.guidance-note strong{color:#633990}.guidance-note span{color:#655d73}
.notice a,.empty-text a,.empty-state a{text-decoration:underline;text-underline-offset:3px}
.page-heading>div,.section-heading>div,.panel>header>div{min-width:0;overflow-wrap:anywhere}
.page-heading .button,.section-heading .button{flex-shrink:0}
.form-actions,.invite-actions,.section-tabs{align-items:center;gap:10px;flex-wrap:wrap}
.section-tabs{display:flex;margin:16px 0}
.section-tabs>span{padding:8px;font-size:.85rem}
.table-scroll{overflow:auto;overscroll-behavior-inline:contain;border-radius:8px}
.table-scroll td{max-width:36rem;white-space:normal;overflow-wrap:anywhere}
.table-scroll th{white-space:normal;min-width:5rem}
.table-scroll td form{white-space:normal}
.table-scroll td .inline-form{min-width:15rem}
.table-scroll dl{min-width:15rem;margin:10px 0}
.table-scroll dd{margin:0 0 10px}
.topbar a[aria-current=page]{background:#f1e9fa;color:#53277c;font-weight:700}
.form-recovery-note{margin-top:16px}
@media(max-width:640px){
  .form-grid,.management-layout,.composer-filters{grid-template-columns:minmax(0,1fr)}
  .page-heading,.section-heading{gap:12px}
  .section-heading{flex-wrap:wrap}
  fieldset{padding:12px}
  .form-actions .button,.invite-actions .button{flex:1 1 150px}
  .table-scroll td{max-width:24rem}
  .compact-filters{padding:14px}
  .compact-filters .form-grid{gap:10px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.form-recovery-note{display:none!important}}
