/* Lot 545 — results, review and delivery surfaces.
   Explicit result selectors only: no changes to editor/preview geometry,
   processing, export handlers, visibility, permissions or status semantics. */
:is(.studio-page-shell,#workflowStudioRoot,.tool-page){
  --wts-result-ink:#172b44;
  --wts-result-muted:#50647a;
  --wts-result-line:#d8e3ee;
  --wts-result-soft:#f5f8fc;
  --wts-result-accent:var(--studio-accent,#155bb5);
  --wts-result-radius:12px;
}
/* Responsive metric cards follow the available PANEL width, not the viewport.
   Existing metric labels, values and ordering stay intact. */
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.metric-grid,.pdf-studio-metrics,.pdf-smart-metrics,.pdf-smart-pro-metrics,.data-studio-metric-grid,.data-studio-analysis-stats,.data-studio-schema-summary,.office-studio-stats,.language-metric-grid,.language-qa-summary,.language-subtitle-metrics,.knowledge-extract-metrics,.knowledge-overview-grid,.knowledge-compare-head,.workflow-sim-metrics):not(.hidden):not([hidden]){
  grid-template-columns:repeat(auto-fit,minmax(min(100%,132px),1fr))!important;
  gap:10px!important;min-width:0;max-width:100%;
}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.metric-card,.pdf-studio-metrics>div,.pdf-smart-metrics>div,.pdf-smart-pro-metrics>div,.data-studio-metric-grid>article,.data-studio-analysis-stats>article,.data-studio-schema-summary>article,.office-studio-stat,.language-metric-grid>div,.language-qa-summary>span,.language-subtitle-metrics>span,.knowledge-extract-metrics>article,.knowledge-overview-grid>article,.knowledge-compare-head>article,.workflow-sim-metrics>div){
  box-sizing:border-box;min-width:0;max-width:100%;padding:13px 14px!important;
  border:1px solid var(--wts-result-line);border-radius:var(--wts-result-radius);
  background:#fff;box-shadow:0 2px 6px #18365006;text-align:start;overflow-wrap:anywhere;
}
/* Preserve explicit status treatments instead of turning every card green. */
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) .metric-card.success{background:#edf9f4;border-color:#cce7d7}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) .metric-card.warn{background:#fff8e9;border-color:#efdfb8}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) .metric-card.error{background:#fff0ef;border-color:#efd1cd}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.metric-card>strong,.pdf-studio-metrics strong,.pdf-smart-metrics strong,.pdf-smart-pro-metrics strong,.data-studio-metric-grid strong,.data-studio-analysis-stats strong,.data-studio-schema-summary strong,.office-studio-stat strong,.language-metric-grid strong,.language-qa-summary b,.language-subtitle-metrics b,.knowledge-extract-metrics article>span,.knowledge-overview-grid article>span,.knowledge-compare-head article>span,.workflow-sim-metrics b){
  color:var(--wts-result-ink);font-size:clamp(18px,1.5vw,23px)!important;font-weight:750;line-height:1.2;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) .metric-card.success>strong{color:#176442}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) .metric-card.warn>strong{color:#80520e}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) .metric-card.error>strong{color:#9e342c}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.metric-card>span,.pdf-studio-metrics span,.pdf-smart-metrics span,.pdf-smart-pro-metrics span,.data-studio-metric-grid span,.data-studio-analysis-stats span,.data-studio-schema-summary span,.office-studio-stat span,.language-metric-grid span,.language-qa-summary>span,.language-subtitle-metrics>span,.knowledge-extract-metrics strong,.knowledge-overview-grid strong,.knowledge-compare-head strong,.workflow-sim-metrics span){
  color:var(--wts-result-muted);font-size:12px!important;font-weight:600;line-height:1.45;letter-spacing:normal;text-transform:none;overflow-wrap:anywhere;
}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.language-qa-summary,.language-subtitle-metrics){background:transparent;border:0;margin-block:12px}
/* Dense result tables: scroll locally and keep their column headers visible.
   Do not force wrapping on identifiers/numeric tables or alter cell contents. */
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.table-wrap,.data-table-wrap,.knowledge-table-wrap,.pivot-table-wrap,.a11y-table-wrap,.pdf-convert-table-wrap,.url-table-wrap){
  box-sizing:border-box;min-width:0;max-width:100%;overflow:auto;
  border:1px solid var(--wts-result-line);border-radius:var(--wts-result-radius);background:#fff;
}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) .knowledge-table-wrap{margin-inline:0}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.table-wrap,.data-table-wrap,.knowledge-table-wrap,.pivot-table-wrap,.a11y-table-wrap,.pdf-convert-table-wrap,.url-table-wrap) table{
  width:100%;font-size:13px!important;line-height:1.5;border-collapse:separate;border-spacing:0;
}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.table-wrap,.data-table-wrap,.knowledge-table-wrap,.pivot-table-wrap,.a11y-table-wrap,.pdf-convert-table-wrap,.url-table-wrap) :is(th,td){
  padding:10px 12px;border-bottom:1px solid #e4ebf3;vertical-align:middle;
}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.table-wrap,.data-table-wrap,.knowledge-table-wrap,.pivot-table-wrap,.a11y-table-wrap,.pdf-convert-table-wrap,.url-table-wrap) thead th{
  position:sticky;top:0;z-index:2;background:#edf3fa;color:#334b65;font-size:12px!important;font-weight:750;text-align:inherit;
}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.table-wrap,.data-table-wrap,.knowledge-table-wrap,.pivot-table-wrap,.a11y-table-wrap,.pdf-convert-table-wrap,.url-table-wrap) tbody tr:nth-child(even):not([class]){background:#f8fafc}
@media(hover:hover){
  :is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.table-wrap,.data-table-wrap,.knowledge-table-wrap,.pivot-table-wrap,.a11y-table-wrap,.pdf-convert-table-wrap,.url-table-wrap) tbody tr:not([class]):hover{background:#eef5fd}
}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.table-wrap,.data-table-wrap,.knowledge-table-wrap,.pivot-table-wrap,.a11y-table-wrap,.pdf-convert-table-wrap,.url-table-wrap) .number-cell{font-variant-numeric:tabular-nums}
/* Document review, image comparison headers, and result messages. */
.studio-page-shell :is(.image-studio-preview-pane>header,.knowledge-answer,.knowledge-answer-card,.language-document-preview,.language-batch-result,.media-studio-export-note,.image-studio-export-note,.office-export-primary){
  border-color:var(--wts-result-line);border-radius:var(--wts-result-radius);min-width:0;overflow-wrap:anywhere;
}
.studio-page-shell .image-studio-preview-pane>header{border-radius:0;background:var(--wts-result-soft)}
.studio-page-shell .image-studio-preview-pane>header :is(span,strong,small){font-size:12px!important;line-height:1.4}
.studio-page-shell .image-studio-preview-pane>header strong{font-size:14px!important;color:var(--wts-result-ink)}
.studio-page-shell :is(.language-document-preview,.language-batch-result,.knowledge-answer p,.knowledge-answer-card p,.knowledge-diff-card p,.knowledge-doc-summary p){font-size:13px!important;line-height:1.65;color:#334b65}
.studio-page-shell :is(.knowledge-diff-card,.knowledge-doc-summary){border-color:var(--wts-result-line);border-radius:var(--wts-result-radius);padding:14px}
.studio-page-shell :is(.knowledge-diff-card,.knowledge-doc-summary)>strong{font-size:13px!important;line-height:1.5}
.studio-page-shell .office-diff-list>div{border:1px solid var(--wts-result-line);padding:10px 12px;border-radius:10px;overflow-wrap:anywhere}
.studio-page-shell .office-diff-list>div:is(.add,.insert){border-inline-start:3px solid #27835a}
.studio-page-shell .office-diff-list>div:is(.remove,.delete){border-inline-start:3px solid #af4a47}
.studio-page-shell .office-diff-list span{font-size:11px!important}
.studio-page-shell .image-studio-compare-metrics span{padding:10px;border-color:var(--wts-result-line);border-radius:10px;color:var(--wts-result-muted);font-size:12px!important;overflow-wrap:anywhere}
.studio-page-shell .image-studio-compare-metrics strong{font-size:16px!important;color:var(--wts-result-ink);font-variant-numeric:tabular-nums}
.studio-page-shell .media-waveform-metrics span{padding:5px 9px;border-radius:8px;font-size:12px!important;overflow-wrap:anywhere}
.studio-page-shell :is(.image-studio-export-result,.pdf-studio-export-status,.media-studio-status){font-size:12px!important;line-height:1.5;overflow-wrap:anywhere}
.studio-page-shell :is(.media-studio-export-note,.image-studio-export-note){padding:12px;border:1px solid var(--wts-result-line);background:#f5f8fc}
.studio-page-shell :is(.media-studio-export-note,.image-studio-export-note) :is(strong,span){font-size:12px!important;line-height:1.5}
/* Real download controls only, not configuration, processing or upgrade actions.
   Decorative icon is CSS, with existing button name, state, and handler unchanged. */
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) button:is(#imageStudioExport,#imageStudioQuickExport,#imageStudioCompareSave,#pdfStudioExport,#pdfStudioTextDownload,#pdfStudioImagesDownload,#pdfStudioFormDownload,#pdfStudioMetaDownload,#mediaStudioQuickExport,#mediaStudioExtractDownload,#mediaStudioGifDownload,#mediaCoverDownload,#msFadeDownload,#msNormDownload,#msSpeedDownload,#msWaveSvg,#msWavePng,#officeStudioQuickExport,#dataStudioOutliersCsv,#dataStudioPivotCsv,#dataStudioSchemaCsv,#dataStudioSchemaJson,#dataStudioSqlCsv,#chartSvg,#chartPng,#chartValuesCsv,#knowledgeExportJson,#knowledgeExportMd,#knowledgeExportPdf,#languageDocSave,#languageSubtitleSave,#languageTextExport,#languageBatchSave,#case126Txt,#case126Csv,#workflowStudioExport){
  min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;gap:8px;
}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) button:is(#imageStudioExport,#imageStudioQuickExport,#imageStudioCompareSave,#pdfStudioExport,#pdfStudioTextDownload,#pdfStudioImagesDownload,#pdfStudioFormDownload,#pdfStudioMetaDownload,#mediaStudioQuickExport,#mediaStudioExtractDownload,#mediaStudioGifDownload,#mediaCoverDownload,#msFadeDownload,#msNormDownload,#msSpeedDownload,#msWaveSvg,#msWavePng,#officeStudioQuickExport,#dataStudioOutliersCsv,#dataStudioPivotCsv,#dataStudioSchemaCsv,#dataStudioSchemaJson,#dataStudioSqlCsv,#chartSvg,#chartPng,#chartValuesCsv,#knowledgeExportJson,#knowledgeExportMd,#knowledgeExportPdf,#languageDocSave,#languageSubtitleSave,#languageTextExport,#languageBatchSave,#case126Txt,#case126Csv,#workflowStudioExport)::before{
  content:"";display:inline-block;vertical-align:-3px;width:16px;height:16px;flex:0 0 16px;margin-inline-end:5px;background:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m-5-5 5 5 5-5M4 16v4h16v-4'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events:none;
}
@media(max-width:480px){
  :is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.table-wrap,.data-table-wrap,.knowledge-table-wrap,.pivot-table-wrap,.a11y-table-wrap,.pdf-convert-table-wrap,.url-table-wrap) :is(th,td){padding:9px 10px}
  :is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.metric-card,.pdf-studio-metrics>div,.pdf-smart-metrics>div,.pdf-smart-pro-metrics>div,.data-studio-metric-grid>article,.data-studio-analysis-stats>article,.data-studio-schema-summary>article,.office-studio-stat,.language-metric-grid>div,.language-qa-summary>span,.language-subtitle-metrics>span,.knowledge-extract-metrics>article,.knowledge-overview-grid>article,.knowledge-compare-head>article,.workflow-sim-metrics>div){padding:11px!important}
}
@media(forced-colors:active){
  :is(.studio-page-shell,#workflowStudioRoot,.tool-page) button::before{forced-color-adjust:auto}
}
/* Native linguistic QA: filter bar, readable findings, responsive comparison. */
.studio-page-shell .language-qa-card{min-width:0;border-radius:var(--wts-result-radius)}
.studio-page-shell .language-qa-card>header{padding:16px;flex-wrap:wrap}
.studio-page-shell .language-qa-card>header>div:first-child>span{font-size:11px!important;letter-spacing:.045em}
.studio-page-shell .language-qa-card>header strong{font-size:26px!important;line-height:1.2;font-variant-numeric:tabular-nums}
.studio-page-shell .language-qa-counts span{font-size:11px!important;color:var(--wts-result-muted)}
.studio-page-shell .language-qa-counts b{font-size:21px}
.studio-page-shell .language-qa-card :is(.language-qa-summary,.language-subtitle-metrics){margin:12px;padding:0}
.studio-page-shell .language-qa-toolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px;padding:12px;background:var(--wts-result-soft);border-block:1px solid var(--wts-result-line)}
.studio-page-shell .language-qa-toolbar label{display:grid;gap:5px;min-width:0;font-size:12px!important;font-weight:650;color:var(--wts-result-muted)}
.studio-page-shell .language-qa-toolbar :is(input,select),.studio-page-shell .language-qa-page-number{box-sizing:border-box;min-width:0;max-width:100%;min-height:40px;padding:8px 10px;border:1px solid #b8c8d9;border-radius:9px;background:#fff;color:var(--wts-result-ink);font:inherit}
.studio-page-shell .language-qa-toolbar :is(input,select){width:100%}
.studio-page-shell .language-qa-toolbar :is(input,select):focus-visible,.studio-page-shell .language-qa-pages :is(button,input):focus-visible,.studio-page-shell .language-qa-findings summary:focus-visible{outline:2px solid #155bb5;outline-offset:2px}
.studio-page-shell .language-qa-findings{padding:8px 12px;gap:8px}
.studio-page-shell .language-qa-findings details{border:1px solid var(--wts-result-line);border-radius:10px;overflow:hidden}
.studio-page-shell .language-qa-findings details:first-child{border-top:1px solid var(--wts-result-line)}
.studio-page-shell .language-qa-findings summary{padding:12px;min-width:0;overflow-wrap:anywhere;background:#fff}
.studio-page-shell .language-qa-findings summary b{font-size:13px!important;color:var(--wts-result-ink)}
.studio-page-shell .language-qa-findings summary small{color:var(--wts-result-muted)}
.studio-page-shell .language-qa-severity{font-size:10px!important;padding:4px 8px}
.studio-page-shell .language-qa-findings details>p,.studio-page-shell .language-qa-empty{font-size:13px!important;line-height:1.55;padding:12px;margin:0;color:var(--wts-result-muted)}
.studio-page-shell .language-qa-compare{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;padding:0 12px 12px}
.studio-page-shell .language-qa-compare span{font-size:13px!important;line-height:1.5;padding:11px;background:var(--wts-result-soft)}
.studio-page-shell .language-qa-compare b{font-size:11px!important;color:var(--wts-result-muted)}
.studio-page-shell .language-qa-pages{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--wts-result-line);padding:12px;color:var(--wts-result-muted);font-size:12px}
.studio-page-shell .language-qa-pages>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.studio-page-shell .language-qa-pages label{display:flex;align-items:center;gap:5px;font-size:12px!important}
.studio-page-shell .language-qa-page-number{width:64px}
.studio-page-shell .language-qa-pages button{padding:8px 10px;min-height:40px;border:1px solid #b8c8d9;border-radius:9px;background:#fff;color:var(--wts-result-ink);font:inherit;font-weight:650;cursor:pointer}
.studio-page-shell .language-qa-pages button:disabled{opacity:.5;cursor:not-allowed}
/* Honour the native hidden state of this result-related cancellation control. */
.studio-page-shell #languageTextCancel530[hidden]{display:none!important}
