/* NiteFade Design Studio v21–31: captions, markers, SRT, branding */
.nf31-section summary{cursor:pointer;font-size:12px;font-weight:800;color:#55337c}
.nf31-section summary small{float:right;font-size:9px;color:#85699e;font-weight:650}
.nf31-section[open]>summary{margin-bottom:12px}
.nf31-section .nf31-part{padding:10px 0;border-top:1px solid #e5daef}
.nf31-part>strong{display:block;color:#553779;font-size:11px;margin-bottom:9px}
.nf31-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.nf31-fields label,.nf31-wide-label{font-size:10px;display:flex;flex-direction:column;gap:5px;font-weight:700;color:#694f80}
.nf31-fields input,.nf31-fields select,.nf31-wide-label textarea{width:100%;box-sizing:border-box;min-width:0;padding:7px;background:#fff;border:1px solid #ddd1eb;border-radius:7px;font-size:11px;color:#59337d;font-family:inherit}
.nf31-wide-label textarea{resize:vertical;min-height:53px;margin:7px 0}
.nf31-fields input[type=color]{height:34px;padding:2px;cursor:pointer}
.nf31-fields input[type=range]{padding:8px 0;accent-color:#764be0}
.nf31-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0}
.nf31-actions button{font-size:10px;min-width:0;padding:8px 4px}
.nf31-toggle{font-size:10px;color:#694d85;display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0}
.nf31-toggle input{accent-color:#764be0}
.nf31-mini-row{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:5px;margin:4px 0}
.nf31-mini-row button{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;padding:7px 5px}
.nf31-mini-row button:first-child{border-left:4px solid #7d53f6;text-align:left}
.nf31-stack{font-size:10px;color:#886e9d;margin-top:8px}
.nf31-cue-row{display:flex;flex-direction:column;gap:5px;padding:8px;background:#fbf8ff;border:1px solid #e5d8f2;border-radius:8px;margin:5px 0}
.nf31-cue-row strong{font-size:10px;color:#644085}
.nf31-cue-row span{font-size:11px;color:#50376b;white-space:pre-wrap;overflow-wrap:anywhere}
.nf31-cue-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.nf31-cue-actions button{font-size:10px;padding:6px 4px}
.nf31-audit{white-space:pre-wrap;word-break:break-word;font:10px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;color:#523e6b;background:#f7f2fd;border:1px solid #e2d7ef;border-radius:7px;padding:10px;max-height:180px;overflow:auto}
#nf31-status{margin-top:8px}
