#panel-spoken-workflow .sw-legal-result{margin-top:22px;padding-top:20px;border-top:1px solid #ffffff20}
#panel-spoken-workflow .sw-legal-result h3{font-size:16px;margin:0 0 12px}
#panel-spoken-workflow .sw-legal-result ul{padding-left:20px;line-height:1.8}
#panel-spoken-workflow .sw-legal-result textarea{width:100%;margin-bottom:12px}
#panel-spoken-workflow #swLegalReview{white-space:normal}
#panel-spoken-workflow #swLipSourceLib{width:100%;margin-bottom:10px}
@media(max-width:650px){#panel-spoken-workflow [data-sw-pane="1"] .sw-section-title{flex-wrap:wrap;gap:10px}#panel-spoken-workflow #swLegalReview{min-height:44px}}
/* New controls inherit the current workbench theme. */
#panel-spoken-workflow .sw-section-title{flex-wrap:wrap}#panel-spoken-workflow .sw-section-title h2{flex:1;min-width:120px}
.sw-material-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}.sw-reference-voice{width:100%;max-width:440px;margin:8px 0}#swPhoto[role=button]{cursor:zoom-in}
.sw-material-dialog{box-sizing:border-box;width:min(960px,94vw);max-height:88vh;overflow:auto;border:1px solid var(--line);border-radius:16px;background:var(--card,var(--bg));color:var(--text);padding:22px}.sw-material-dialog::backdrop{background:#0009}.sw-material-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.sw-material-heading h2{font-size:22px;margin:0}.sw-material-section{margin-top:22px}.sw-material-section h3{font-size:16px;margin:0 0 12px}.sw-material-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:16px}.sw-material-grid.landscape{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.sw-material-grid.audio{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.sw-material-card{min-width:0;display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px}.sw-material-card strong{font-size:15px}.sw-material-card small{display:block}.sw-material-card>.sw-material-actions{margin-top:auto}.sw-material-media{display:block;max-width:100%;object-fit:contain;background:transparent}.sw-material-grid.portrait .sw-material-media{width:100%;aspect-ratio:9/16}.sw-material-grid.landscape .sw-material-media{width:100%;aspect-ratio:16/9}.sw-material-grid.square .sw-material-media{width:100%;aspect-ratio:1}.sw-material-card audio{width:100%;min-width:0}.sw-material-card img{cursor:zoom-in}.sw-material-preview{width:min(720px,94vw)}.sw-material-preview>.sw-material-media{max-height:70vh;margin:20px auto 0}.sw-material-preview>audio{width:100%}.sw-material-dialog button{cursor:pointer}.sw-material-dialog button:disabled{opacity:.5;cursor:wait}.sw-material-dialog .sw-material-actions button{flex:1;min-height:36px}
@media(max-width:600px){.sw-material-dialog{padding:14px;width:96vw}.sw-material-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sw-material-grid.landscape,.sw-material-grid.audio{grid-template-columns:1fr}.sw-material-card{padding:10px}.sw-material-card .sw-material-actions{display:grid;grid-template-columns:1fr}.sw-material-heading h2{font-size:19px}}

@media(min-width:601px){.sw-material-grid.portrait,.sw-material-grid.landscape,.sw-material-grid.square{grid-template-columns:repeat(3,minmax(0,1fr))}.sw-material-grid.portrait .sw-material-media{height:260px;aspect-ratio:auto}.sw-material-grid.audio{grid-template-columns:repeat(2,minmax(0,1fr))}.sw-material-grid.landscape .sw-material-media{height:auto;aspect-ratio:16/9}}
