/* Detail/editor layout only. Existing typography, artwork and button appearance remain inherited. */
.fp-content:has(>.fp-editor-grid) .fp-editor-grid{align-items:start;gap:16px}
.fp-content:has(>.fp-editor-grid) .fp-editor-grid>.fp-panel{height:auto;min-width:0;margin-bottom:0}
.fp-content:has(>.fp-editor-grid) .fp-section-title{flex-wrap:wrap;gap:12px}
.fp-content:has(>.fp-editor-grid) .fp-section-title>div{min-width:0}
.fp-content:has(>.fp-editor-grid) .fp-editor-footer{gap:12px}
.fp-content:has(>.fp-editor-grid) .fp-editor-footer .fp-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
@media(min-width:1101px){
 .fp-content:has(>.fp-editor-grid){display:flex;flex-direction:column;overflow:hidden}
 .fp-content:has(>.fp-editor-grid)>.fp-section-title,.fp-content:has(>.fp-editor-grid)>.fp-editor-footer{flex:none}
 .fp-content:has(>.fp-editor-grid)>.fp-editor-grid{flex:1;min-height:0;overflow:hidden}
 .fp-content:has(>.fp-editor-grid) .fp-editor-grid>.fp-panel{max-height:100%;overflow:auto;box-sizing:border-box}
 .fp-content:has(>.fp-editor-grid)>.fp-editor-footer{position:static;margin-bottom:0}
}
dialog.tr-editor[open]{display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
dialog.tr-editor>header{flex-wrap:wrap;gap:10px}
dialog.tr-editor>header h2{margin:0;min-width:0}
dialog.tr-editor>form{min-height:0;overflow:auto;padding-bottom:0}
dialog.tr-editor>form>button{justify-self:start;position:sticky;bottom:0;z-index:1;max-width:100%}
dialog.tr-editor details{min-width:0}
dialog.tr-editor textarea{box-sizing:border-box;width:100%}
.fp-activation-fields dd{min-width:0;overflow-wrap:anywhere}
.fp-activation-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
@media(max-width:767px){
 .fp-content:has(>.fp-editor-grid) .fp-editor-grid{grid-template-columns:minmax(0,1fr)}
 .fp-content:has(>.fp-editor-grid) .fp-editor-footer .fp-actions{width:100%}
 dialog.tr-editor{padding:16px}
}

.ap-editor-body,.ap-editor-body fieldset,.ap-check span,.ap-person>div{min-width:0;overflow-wrap:anywhere}
.ap-editor-footer{flex-wrap:wrap}
.ap-editor-footer>div{flex-wrap:wrap;max-width:100%;margin-left:auto}
.ap-person{flex-wrap:wrap}
@media(min-width:768px) and (max-width:1100px){.ap-layout{grid-template-columns:minmax(180px,32%) minmax(0,1fr)}}

@media(max-width:767px){.fp-content:has(>.fp-editor-grid) .fp-editor-footer .fp-button{flex:1 0 auto;white-space:normal}}
