/* One reading column; fields use 2 × minmax(0, 1fr) + 16px, collapsing on phones. */
.production-scripts{min-width:0;margin:24px 0;color:var(--txt);font-family:var(--font-ui)}
.ps-heading,.ps-sheet-header,.ps-editor-title,.ps-editor-actions,.ps-editor-caption,.ps-text-label{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.ps-heading{align-items:flex-start;margin-bottom:18px}.ps-heading>div{flex:1;min-width:0}.ps-sheet-header>div{min-width:0}
.ps-heading h2{margin:0;color:var(--txt-hi);font-size:22px;line-height:1.4}.ps-heading p{margin:6px 0 0;color:var(--txt-lo);font-size:14px;line-height:1.6}
.ps-heading>.po-button{flex:none;min-height:44px}.ps-script-list{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;min-width:0}
.ps-script-tab{display:flex;flex:1 1 190px;flex-direction:column;gap:5px;min-width:0;max-width:100%;min-height:64px;padding:12px 14px;border:1px solid var(--steel);border-radius:8px;background:var(--bg2);text-align:left;color:var(--txt)}
.ps-script-tab strong{font-size:14px;line-height:1.5;color:var(--txt-hi);overflow-wrap:anywhere}.ps-script-tab span,.ps-meta{font-size:12px;line-height:1.6;color:var(--txt-lo)}
.ps-script-tab[aria-pressed=true]{border-color:var(--gold);background:var(--accent-soft)}.ps-script-tab:hover{border-color:var(--steel-hi)}
.ps-sheet,.ps-editor{border:1px solid var(--steel);border-radius:10px;padding:24px clamp(16px,2vw,28px);background:var(--bg2);min-width:0;overflow-wrap:anywhere}
.ps-sheet-header{align-items:flex-start;flex-wrap:wrap;padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid var(--steel)}.ps-sheet-header h3{margin:5px 0 8px;color:var(--txt-hi);font-size:22px;line-height:1.4;overflow-wrap:anywhere}.ps-sheet-header p{margin:0}
.production-scripts .pc-actions{display:flex;flex-wrap:wrap;gap:8px}.production-scripts .po-button{min-height:44px}
.ps-script-copy{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font-size:16px;line-height:1.85;color:var(--txt-hi);max-width:76ch;margin:0}
.ps-reading-area{padding-right:10px;overflow-x:hidden}.ps-reading-area.is-long{max-height:230px;overflow-y:hidden}.ps-reading-area.is-long.is-expanded{max-height:65vh;max-height:65dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.ps-expand{display:flex;align-items:center;min-height:44px;margin-top:8px;font-size:13px}
.ps-notes{padding-top:20px;margin-top:22px;border-top:1px solid var(--steel)}.ps-notes>summary,.ps-details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.5;color:var(--txt);list-style:none}.ps-notes>summary::before,.ps-details>summary::before{content:'+';font-size:18px;color:var(--txt-lo)}.ps-notes[open]>summary::before,.ps-details[open]>summary::before{content:'−'}
.ps-notes summary::-webkit-details-marker,.ps-details summary::-webkit-details-marker{display:none}.ps-notes .ps-script-copy{font-size:14px;margin-top:10px;color:var(--txt)}
.ps-sheet-footer{margin-top:24px;padding-top:16px;border-top:1px solid var(--steel);color:var(--txt-lo);font-size:12px;line-height:1.6}.ps-empty{padding:16px 0 20px;max-width:68ch}.ps-empty h3{margin:0 0 10px;font-size:18px;color:var(--txt-hi)}.ps-empty p{margin:0 0 10px;font-size:14px;line-height:1.7;color:var(--txt-lo)}
.ps-editor-title{flex-wrap:wrap;margin-bottom:20px}.ps-editor-title h3{margin:0;font-size:18px;line-height:1.5;color:var(--txt-hi)}.ps-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}.ps-editor .pc-field{display:flex;min-width:0;flex-direction:column;gap:8px;margin:0 0 16px;color:var(--txt);font-size:14px}
.ps-editor input,.ps-editor select,.ps-editor .pc-field textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid var(--steel-hi);border-radius:7px;background:var(--bg);color:var(--txt-hi);font:400 14px/1.5 var(--font-ui)}
.ps-editor .pc-field textarea{resize:vertical}.ps-details{margin-bottom:20px;border-block:1px solid var(--steel)}.ps-details[open]>summary{margin-bottom:12px}
.ps-text-label{flex-wrap:wrap;margin-bottom:10px;font-size:14px;color:var(--txt-hi)}.ps-text-label .social-link{min-height:44px;white-space:normal;text-align:right}.ps-text-label .social-link:disabled{color:var(--txt-lo);cursor:default}
.ps-textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:400px;padding:20px;border:1px solid var(--steel-hi);border-radius:8px;background:var(--bg);color:var(--txt-hi);font:400 16px/1.85 var(--font-ui);resize:vertical;tab-size:4;overflow-wrap:anywhere;white-space:pre-wrap}
.ps-textarea::placeholder{color:var(--txt-lo);opacity:1}.ps-editor-caption{margin-top:8px;flex-wrap:wrap;font-size:12px;line-height:1.6;color:var(--txt-lo)}.ps-editor-actions{justify-content:flex-start;margin-top:22px;flex-wrap:wrap}
.ps-conflict,.ps-discard{padding:14px 16px;margin-top:18px;border:1px solid var(--steel-hi);border-radius:8px;background:var(--bg);font-size:14px;line-height:1.7}.ps-conflict p,.ps-discard p{margin:0 0 12px}.ps-conflict{border-color:var(--gold-lo)}
.production-scripts :is(button,input,select,textarea,summary):focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:640px){.production-scripts{margin-block:20px}.ps-heading{align-items:center;flex-wrap:nowrap;gap:10px;margin-bottom:14px}.ps-heading h2{font-size:20px}.ps-heading p{display:none}.ps-heading>.po-button{font-size:14px;padding-inline:12px}.ps-script-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ps-script-tab{width:100%;min-height:64px;padding:10px 12px}.ps-sheet,.ps-editor{padding:16px 14px}.ps-sheet-header{padding-bottom:16px;margin-bottom:18px}.ps-sheet-header h3{font-size:20px}.ps-editor-fields{grid-template-columns:minmax(0,1fr);gap:0}.ps-textarea{min-height:360px;padding:14px;font-size:16px}.ps-script-copy{font-size:16px;line-height:1.8}.ps-reading-area{padding-right:6px}.ps-editor input,.ps-editor select,.ps-editor .pc-field textarea{font-size:16px}.ps-editor-caption{align-items:flex-start;flex-direction:column;gap:3px}}
