/* Content buttons grow with their labels; no clipping at narrow widths. */
main button,dialog button,main a.button,dialog a.button{
 box-sizing:border-box;min-width:0;max-width:100%;height:auto;min-height:44px;
 white-space:normal!important;overflow-wrap:anywhere;word-break:normal;
 line-height:1.4;text-overflow:clip;flex-shrink:1;
}
main .actions,dialog .actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;min-width:0}
main .actions>button,dialog .actions>button,main .actions>a.button,dialog .actions>a.button{flex:1 1 180px;margin:0}
main .row>div,dialog .row>div{min-width:0}
.patient-feedback{min-width:0;max-width:100%}
.patient-feedback .actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:12px}
.patient-feedback .actions>button{width:100%;padding:12px 14px;min-height:48px;text-align:center}
@media(max-width:480px){main .actions>button,dialog .actions>button,main .actions>a.button,dialog .actions>a.button{flex-basis:100%}}

/* Account details above, every account action together underneath. */
#accountrows .row.account-card{display:flex;flex-direction:column;align-items:stretch;gap:18px;padding:22px 0}
#accountrows .account-card-info{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;width:100%}
#accountrows .account-card-info>div{min-width:0;overflow-wrap:anywhere}
#accountrows .account-card-info strong{font-size:17px}
#accountrows .account-card-info small{display:inline-block;margin-top:5px;line-height:1.65}
#accountrows .account-card-role{flex:0 1 300px;text-align:right;line-height:1.5;color:#476657;font-size:14px}
#accountrows .account-card-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px;width:100%;padding-top:16px;border-top:1px solid #e0e9e3}
#accountrows .account-card-actions>button{width:100%;margin:0;min-height:46px;padding:10px 14px;font-size:13px;line-height:1.4}
#accountrows .account-card-actions>.account-delete-button{color:#8a3429;border-color:#dfb4aa;background:#fff8f5}
@media(max-width:600px){#accountrows .account-card-info{flex-direction:column;gap:8px}#accountrows .account-card-role{flex:auto;text-align:left}#accountrows .row.account-card{padding:18px 0}#accountrows .account-card-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){#accountrows .account-card-actions{grid-template-columns:minmax(0,1fr)}}
