.toolGrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media(max-width:1000px){.toolGrid{grid-template-columns:1fr}}
.dialog.analysisDialog { width: min(1100px,calc(100vw - 40px)); }
.analysisLayout { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0, 1.4fr); gap: 28px; margin-top: 24px; }
.analysisSource { min-width: 0; border-right: 1px solid #37323d; padding-right: 28px; }
.analysisUpload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 250px; border: 1px dashed #5e526e; border-radius: 8px; background: #1b1a20; color: #ddd3eb; }
.analysisUpload .uiIcon { width: 28px; height: 28px; }.analysisUpload small { color: #a69cac; font-size: 12px; }
.analysisPreview { height: 290px; background: #111; border-radius: 6px; overflow: hidden; }
.analysisPreview img, .analysisPreview video { width: 100%; height: 100%; object-fit: contain; }
#analysisFilename { overflow-wrap: anywhere; font-size: 12px; }
.analysisSource .dialogActions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.analysisSource .btn { font-size: 12px; gap: 8px; }
#analysisSubmit { width: 100%; justify-content: center; margin-top: 8px; }
#analysisCancel { width: 100%; margin-top: 10px; }
.analysisPrivacy { font-size: 11px; color: #aaa2b4; }
.analysisOutput { min-width: 0; }.analysisOutput h3 { font-size: 17px; margin: 0 0 16px; }
.analysisResult { min-height: 260px; max-height: 430px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.9; color: #e5dfed; user-select: text; }
#analysisProgress { font-size: 12px; color: #bca2e1; }
.analysisDialog [hidden] { display: none !important; }
@media(max-width:760px){.analysisLayout{grid-template-columns:1fr;gap:24px}.analysisSource{padding:0 0 24px;border-right:0;border-bottom:1px solid #37323d}.analysisPreview{height:220px}.analysisResult{min-height:120px}.analysisDialog .dialogActions{justify-content:flex-start}}
