
.studio .record-copy-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.studio .training-meta[hidden]{display:none}

/* One shared Share & export keeps source outputs apart from editable import. */
.studio .share-export-body{display:flex;flex-direction:column;gap:12px;min-width:0}
.studio .share-record-row,.studio .share-disclosure-body{display:flex;flex-direction:column;gap:7px;min-width:0}
.studio .share-record-row>label,.studio .share-disclosure-body>label{font:750 .83rem/1.3 var(--font-sans);color:var(--warm-text)}
.studio .share-export textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:66px;padding:8px;border:1px solid var(--warm-border);border-radius:7px;background:var(--warm-field);color:var(--warm-text);font:.76rem/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.studio .share-export #share-pgn{height:120px;min-height:96px}
.studio .share-export :is(#import-pgn,#cleaned-pgn){height:132px;min-height:96px}
.studio .share-export .button{box-sizing:border-box;min-width:0;min-height:var(--panel-action-height,44px);height:var(--panel-action-height,44px);padding:4px 8px;font:.8rem/1.2 var(--font-sans);white-space:normal;touch-action:manipulation}
.studio .share-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.studio .share-disclosure{margin:0;padding:0 9px;border:1px solid var(--warm-border);border-radius:8px;background:var(--warm-field)}
.studio .share-disclosure>summary{min-height:44px;align-content:center;cursor:pointer;font:750 .85rem/1.3 var(--font-sans);color:var(--warm-text)}
.studio .share-disclosure[open]{padding-bottom:9px}
.studio .share-clean-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;border:0;padding:0;margin:0;min-width:0}
.studio .share-clean-options legend{font:650 .79rem/1.3 var(--font-sans);margin-bottom:5px}
.studio .share-clean-options label{display:flex;align-items:center;gap:6px;min-height:44px;font:.79rem/1.3 var(--font-sans);min-width:0;cursor:pointer;touch-action:manipulation}
.studio .share-clean-options input{flex:none;accent-color:var(--warm-focus);width:16px;height:16px;margin:0}
.studio .share-note,.studio .share-status{font:.78rem/1.4 var(--font-sans);margin:0;color:var(--warm-secondary);overflow-wrap:anywhere}
.studio .share-status[data-state=error]{color:var(--warm-bad);font-weight:650}
.studio .share-export .record-copy-status{position:static;width:auto;height:auto;margin:0;padding:0;overflow:visible;clip-path:none;white-space:normal;font:.78rem/1.4 var(--font-sans);color:var(--warm-text)}
.studio .share-export :is(textarea,summary,input):focus-visible{outline:2px solid var(--warm-focus);outline-offset:2px}
.studio .share-export :is(.share-status,.share-note,.record-copy-status,#clean-output)[hidden]{display:none}
@media(max-width:360px){.studio .share-clean-options{grid-template-columns:1fr}.studio .share-disclosure{padding-inline:7px}}
/* The ready mobile Appearance pattern lets the active region own its full
   content height. Expanded import/clean content stays inside the panel. */
@media(max-width:900px){
 .studio #panel-io{flex:0 0 auto;overflow:visible;scrollbar-gutter:auto}
 .studio .panel-tab-stage:has(#panel-io:not([hidden])){flex:none;height:auto;min-height:0}
 .studio .play-panel:has(#panel-io:not([hidden])){height:auto!important;min-height:0}
}
