/* Desktop workspace: retain existing forms and IDs, constrain long API/ID strings. */
.unified-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:20px}
.unified-grid form {min-width:0}
.unified-record {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--border,#334155)}
.unified-record span {overflow-wrap:anywhere;min-width:0}
#unified-records {margin-top:20px}
#unified-settings {margin-bottom:16px}
@media(min-width:1100px){
 #app-view main {max-width:none;padding:24px 32px;width:calc(100% - var(--sidebar-w,226px))}
 #app-view .workspace {grid-template-columns:minmax(300px,420px) minmax(0,1fr);align-items:start;gap:24px}
 #app-view .settings-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 #app-view .card,#app-view .compact-card,#app-view .right-column {min-width:0}
 #app-view .tab-panel {max-width:1600px;margin-inline:auto}
 #app-view .compact-card summary {padding-block:16px}
}
@media(min-width:1600px){#app-view .settings-grid {grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.unified-grid {grid-template-columns:1fr}.unified-record {align-items:flex-start;flex-wrap:wrap}}
#pcs pre {white-space:pre-wrap;overflow-wrap:anywhere;max-height:20rem;overflow-y:auto}
#pcs .card,#pcs form,#pcs select,#pcs textarea {min-width:0;max-width:100%}
#pcs textarea {width:100%;box-sizing:border-box;font:inherit}
#pcs details {margin-block:10px}
#pcs summary {cursor:pointer}
#pc-presets button,#pc-buttons button {margin:2px}
#pc-presets small {display:block;overflow-wrap:anywhere}

#pc-report-view{overflow:auto;max-height:70vh} #pc-report-view img{max-width:100%;height:auto} #pc-report-view td,#pc-report-view th{padding:6px;text-align:left} #pc-report-view input{margin-block:10px}

#pcs>details.card{margin:8px 0;padding:12px 16px}#pcs>details.card>summary{font-weight:650}#pc-live-img{display:block;width:auto;max-width:100%;height:auto;cursor:crosshair;margin:10px auto}#pc-live-img[hidden]{display:none}#pc-proc-view{overflow:auto;max-height:55vh}#pc-proc-view td,#pc-proc-view th{padding:5px;text-align:left}#pc-live-keys{margin-top:8px}

#pc-live:fullscreen{background:#182128;color:white;overflow:auto;padding:12px}#pc-live:fullscreen #pc-live-img{max-height:72vh}

#pc-live-img{touch-action:none;user-select:none}
