/* V2.37: scoped V20-template presentation; no changes to rule budgets or other editors. */
.phase5-form.nv-editor label{display:grid;gap:7px;min-width:0}
.phase5-form.nv-editor label>span{color:#c7c2bd;font-size:.8rem}
.phase5-form.nv-editor .form-grid,.phase5-form.nv-editor .rule-selection-grid{min-width:0}
.phase5-form.nv-editor input,.phase5-form.nv-editor select,.phase5-form.nv-editor textarea{box-sizing:border-box;min-width:0;max-width:100%}
.phase5-form.nv-editor .phase5-rating-row{display:flex!important;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:8px;min-height:42px}
.phase5-form.nv-editor .rating-name{flex:1 1 auto;min-width:0}
.phase5-form.nv-editor .rating-track-block{flex:0 0 auto;min-width:0;max-width:100%}
.phase5-form.nv-editor .dot-track{display:flex;align-items:center;gap:3px;max-width:100%}
.phase5-form.nv-editor .dot-button{display:block;flex:0 0 18px;width:18px;min-width:18px;height:24px;padding:0;line-height:24px;font-size:21px;text-align:center}
.phase5-form.nv-editor .derived-rating-row{min-height:44px;gap:16px}
.phase5-form.nv-editor .rule-selection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.phase5-form.nv-editor .rule-selection-grid>section{min-width:0}
.phase5-form.nv-editor .nv-trait{display:block;margin:14px 0;padding:14px;border:1px solid var(--border-soft,#38383e);border-radius:9px;background:var(--input,#17171b);overflow-wrap:anywhere}
.phase5-form.nv-editor .trait-card-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:10px}
.phase5-form.nv-editor .trait-point-choice{grid-template-columns:auto minmax(0,8rem);align-items:center;justify-content:start;margin:10px 0}
.phase5-form.nv-editor .nv-trait>small{display:block;margin-top:10px;font-size:.75rem;color:var(--text-muted,#b5afb3)}
.phase5-form.nv-editor .trait-system{margin-top:12px}
.phase5-form.nv-editor .trait-system summary{cursor:pointer}
.phase5-form.nv-editor .trait-system p{white-space:pre-line}
.phase5-form.nv-editor .form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.phase5-form.nv-editor .mode-switch-box{display:flex;align-items:center;justify-content:space-between;gap:16px}
.phase5-form.nv-editor .mode-switch-box .form-actions{margin:0}
.phase5-form.nv-editor .phase5-budget h2{margin-top:0}
.phase5-form.nv-editor .budget-line b{white-space:nowrap}
@media(max-width:1250px){
 .phase5-form.nv-editor .phase5-rating-row{flex-wrap:wrap}
 .phase5-form.nv-editor .rating-track-block{margin-left:auto}
}
@media(max-width:950px){
 .phase5-form.nv-editor .phase5-rating-row{flex-wrap:nowrap}
}
@media(max-width:650px){
 .phase5-form.nv-editor .rule-selection-grid{grid-template-columns:minmax(0,1fr)}
 .phase5-form.nv-editor .derived-rating-row,.phase5-form.nv-editor .phase5-rating-row.has-remove{flex-wrap:wrap}
 .phase5-form.nv-editor .dot-track{flex-wrap:wrap;justify-content:flex-end}
 .phase5-form.nv-editor .mode-switch-box{flex-wrap:wrap}
 .phase5-form.nv-editor .background-remove-button{margin-right:auto}
}
