/* Hallmark · genre: modern-minimal · macrostructure: Workbench · theme: locked Hemu indigo
 * Audience: researchers · task: parse, review and export · tone: professional, quietly playful
 * Pre-emit critique: P4 H5 E4 S5 R5 V4 · navigation/footer: existing Hemu
 * Reference study: Smallpdf / iLovePDF task entrances; original brand and functional UI. */
body.document-lab-page .dl { padding-top:var(--dl-space-xl); }
html[data-theme] body.document-lab-page { background:var(--dl-paper); }
.dl .dl-draft-status { min-height:24px; margin:0 0 var(--dl-space-sm); color:var(--dl-muted); font-size:12px; display:flex; align-items:center; gap:var(--dl-space-sm); }
.dl .dl-draft-status:empty { display:none; }
.dl .dl-draft-status::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--dl-success); }
.dl .dl-draft-status[data-state='saving']::before { background:var(--dl-accent); }
.dl .dl-draft-status[data-state='error'] { color:var(--dl-error); }
.dl .dl-draft-status[data-state='error']::before { background:var(--dl-error); }
/* Restore this workspace's keyboard ring inside the shared important reset layer. */
@layer site-focus-appearance {
  body.document-lab-page .dl :is(button,a,input,select,textarea,summary):focus-visible { outline:3px solid var(--dl-focus) !important; outline-offset:3px !important; text-decoration-line:none; }
  body.document-lab-page .dl :is(input,select,textarea):focus { border-color:var(--dl-accent) !important; }
}
.dl .dl-topline { margin-bottom:var(--dl-space-lg); }
.dl .dl-breadcrumb { gap:var(--dl-space-sm); font-size:12px; }
.dl .dl-status { font-size:12px; }
.dl .dl-intro { display:block; margin-bottom:var(--dl-space-xl); }
.dl .dl-intro h1 { font-size:clamp(28px,2.4vw,40px); line-height:1.3; letter-spacing:-.04em; }
.dl .dl-intro-copy > p { max-width:none; margin-top:12px; font-size:14px; line-height:1.8; }
.dl .dl-intake { display:grid; grid-template-columns:minmax(0,1fr); gap:0; padding:0; border-radius:16px; overflow:clip; box-shadow:0 4px 24px var(--dl-shadow); }
.dl .dl-task-head { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:var(--dl-space-md); align-items:center; justify-content:space-between; padding:20px 24px; border-bottom:1px solid var(--dl-rule); background:var(--dl-surface); }
.dl .dl-task-title { display:flex; align-items:center; gap:10px; min-width:0; }
.dl .dl-task-title > svg { width:20px; height:24px; color:var(--dl-accent); }
.dl .dl-task-title h2 { font-size:15px; font-weight:650; white-space:nowrap; }
.dl #dlTaskState { padding-inline-start:12px; border-inline-start:1px solid var(--dl-rule); color:var(--dl-muted); font-size:11px; white-space:nowrap; }
.dl .dl-stage-rail { display:flex; align-items:center; gap:0; padding:0; margin:0; width:100%; border:0; }
.dl .dl-stage-rail li { flex:1; gap:8px; font-size:11px; white-space:nowrap; }
.dl .dl-stage-rail li:not(:last-child)::after { content:''; height:1px; background:var(--dl-rule); margin-inline:12px; flex:1; min-width:8px; }
.dl .dl-stage-rail li:last-child { flex:none; }
.dl .dl-stage-rail li > span { height:22px; width:22px; border:0; background:var(--dl-soft); color:var(--dl-muted); font:10px var(--dl-mono); }
.dl .dl-stage-rail li[data-state='active'] > span { background:var(--dl-accent); color:var(--dl-on-accent); }
.dl .dl-stage-rail li[data-state='done'] > span { background:var(--dl-soft); color:var(--dl-success); }
.dl .dl-stage-rail li[data-state='done'] > span::before { content:'✓'; }
.dl .dl-stage-rail li[data-state='done'] > span { font-size:0; }
.dl .dl-stage-rail li[data-state='done'] > span::before { font:11px var(--dl-font); }
.dl .dl-intake-file { padding:20px; display:flex; flex-direction:column; min-width:0; gap:0; }
.dl .dl-upload-stage { min-height:312px; flex:1; min-width:0; display:grid; }
.dl .dl-upload-stage .dl-drop { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:312px; height:100%; padding:32px 20px; gap:0; text-align:center; background:var(--dl-drop-surface); border:1px dashed var(--dl-drop-rule); box-shadow:none; transform:none; transition:transform var(--dl-switch) var(--dl-ease); }
.dl .dl-button { transition:transform var(--dl-fast) var(--dl-ease); }
.dl .dl-drop::before { background:var(--dl-soft); }
.dl .dl-upload-icon { display:grid; place-items:center; width:72px; height:80px; margin:0 0 20px; border:1px solid var(--dl-rule); border-radius:16px; background:var(--dl-surface); color:var(--dl-accent); box-shadow:0 4px 12px var(--dl-shadow); transform:rotate(-4deg); }
.dl .dl-upload-icon svg { width:34px; height:40px; }
.dl .dl-drop > .dl-drop-copy { display:block; width:100%; max-width:60ch; color:var(--dl-muted); font-size:13px; line-height:1.8; }
.dl .dl-upload-stage .dl-drop strong { display:block; font-size:22px; line-height:1.5; color:var(--dl-ink); margin-bottom:8px; }
.dl .dl-drop #dlDropAction { display:flex; align-items:center; justify-content:center; gap:16px; min-width:176px; min-height:48px; padding:12px 24px; margin-top:24px; border:1px solid var(--dl-accent); border-radius:var(--dl-control-radius); background:var(--dl-accent); color:var(--dl-on-accent); font-size:14px; font-weight:600; white-space:nowrap; }
.dl .dl-drop #dlDropAction svg { width:18px; height:18px; }
.dl .dl-upload-stage .dl-drop > .dl-formats { display:block; color:var(--dl-muted); margin-top:14px; font-size:11px; }
.dl .dl-intake-foot { gap:8px; min-height:44px; margin-top:12px; font-size:11px; }
.dl .dl-intake-foot .dl-text-button { color:var(--dl-accent); font-size:12px; padding-inline:8px; }
.dl .dl-intake-foot > span { line-height:1.6; }
.dl .dl-message { margin-top:8px !important; padding:12px 16px; border-radius:8px; background:var(--dl-soft); }
.dl .dl-options { display:flex; flex-direction:column; gap:0; padding:24px; border-top:1px solid var(--dl-rule); border-inline-start:0; background:var(--dl-settings-surface); }
.dl .dl-options-heading { margin-bottom:20px; }
.dl .dl-options h2 { font-size:15px; line-height:1.5; margin:0; }
.dl .dl-options-heading p { color:var(--dl-muted); font-size:11px; line-height:1.8; margin-top:4px; }
.dl .dl-option-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.dl .dl-options .dl-field { display:grid; gap:6px; margin:0; font-size:12px; line-height:1.5; color:var(--dl-ink); }
.dl .dl-options .dl-field > span:first-child { font-weight:550; }
.dl .dl-select-wrap { display:block; position:relative; min-width:0; }
body.document-lab-page .dl .dl-options select { display:block; appearance:none; width:100%; height:44px; min-height:44px; border:1px solid var(--dl-rule); background:var(--dl-surface); color:var(--dl-ink); font:13px var(--dl-font); padding:10px 40px 10px 12px; line-height:22px; }
.dl .dl-select-wrap > svg { width:16px; height:16px; position:absolute; right:12px; top:14px; color:var(--dl-muted); pointer-events:none; }
.dl .dl-field small { position:absolute; width:1px; height:1px; padding:0; margin:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.dl .dl-options :is(select,input):disabled { opacity:.6; cursor:not-allowed; }
.dl .dl-option-features { padding:16px 0 0; border-inline-start:0; border-top:1px solid var(--dl-rule); margin-top:20px; }
.dl .dl-feature-check { display:flex; align-items:center; gap:12px; min-height:52px; padding:4px 0; }
.dl .dl-feature-check input { width:18px; height:18px; margin:0; flex:none; }
.dl .dl-feature-check span { display:block; min-width:0; }
.dl .dl-feature-check strong { display:block; font-size:13px; line-height:1.5; font-weight:550; }
.dl .dl-feature-check small { display:block; color:var(--dl-muted); font-size:11px; line-height:1.7; margin-top:2px; }
.dl .dl-advanced { margin-top:8px; }
.dl .dl-advanced summary { font-size:11px; list-style:none; min-height:44px; }
.dl .dl-advanced summary::-webkit-details-marker { display:none; }
.dl .dl-advanced[open] { border-top:1px solid var(--dl-rule); }
.dl .dl-option-action { display:flex; flex-direction:column; gap:8px; margin-top:auto; padding-top:16px; }
.dl .dl-option-action .dl-start { width:100%; min-height:48px; margin:0; font-size:14px; gap:12px; }
.dl .dl-option-action .dl-option-help { text-align:center; margin:0 !important; font-size:10px; line-height:1.8; }
.dl .dl-button:disabled { opacity:.5; }
.dl .dl-upload-help { display:flex; align-items:flex-start; flex-wrap:wrap; gap:6px 8px; padding:0 4px; margin-top:16px !important; line-height:1.8; font-size:11px; }
.dl .dl-upload-help > svg { flex:none; width:16px; height:20px; color:var(--dl-success); }
.dl .dl-upload-help > span { flex:1; min-width:180px; }
.dl .dl-upload-help > a { color:var(--dl-muted); text-underline-offset:4px; white-space:nowrap; }
.dl #dlPrivacyDetails { scroll-margin-top:100px; }
.dl .dl-upload-stage[data-state='selected'] .dl-drop strong { font-size:18px; -webkit-line-clamp:3; display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
.dl .dl-upload-stage[data-state='selected'] .dl-upload-icon { background:var(--dl-surface); transform:rotate(-3deg); }
.dl .dl-upload-stage[data-state='selected'] #dlDropAction { background:var(--dl-surface); color:var(--dl-accent); border-color:var(--dl-rule); min-height:44px; font-size:12px; margin-top:20px; }
.dl .dl-upload-stage[data-state='selected'] .dl-formats { display:none; }
.dl .dl-upload-stage.is-busy .dl-drop { visibility:hidden; }
.dl .dl-progress { display:grid; grid-template-columns:minmax(0,1fr); align-content:center; gap:0; padding:24px; min-height:400px; border:1px solid var(--dl-rule); background:var(--dl-drop-surface); border-radius:var(--dl-radius); }
.dl .dl-processing-head { position:absolute; top:20px; left:24px; right:24px; font-size:11px; gap:16px; }
.dl .dl-elapsed { display:flex; align-items:center; gap:8px; font:11px var(--dl-mono); }
.dl .dl-elapsed::before { content:''; width:9px; height:9px; border:1.5px solid var(--dl-rule); border-top-color:var(--dl-accent); border-radius:50%; animation:dl-status-turn 1s linear infinite; }
.dl .dl-processing-visual { grid-column:1; grid-row:auto; width:180px; height:132px; margin:28px auto 12px; }
.dl .dl-processing-visual .dl-reading-page { width:80px; height:100px; inset:16px auto auto 50px; }
.dl .dl-processing-visual .dl-orbit { inset:10px 30px; }
.dl .dl-processing-visual .dl-floating-cell--one { inset:20px auto auto 6px; }
.dl .dl-processing-visual .dl-floating-cell--two { inset:24px 6px auto auto; }
.dl .dl-processing-visual .dl-floating-cell--three { inset:auto 10px 2px auto; }
.dl .dl-progress-copy { grid-column:1; text-align:center; margin-bottom:24px; }
.dl .dl-progress-copy strong { font-size:22px; line-height:1.5; letter-spacing:-.02em; }
.dl .dl-progress-copy p { margin-top:8px; font-size:12px; }
.dl .dl-progress-meter,.dl .dl-progress-track,.dl .dl-processing-steps { grid-column:1; width:100%; max-width:560px; justify-self:center; }
.dl .dl-progress-meter { margin:0 0 10px; font-size:12px; align-items:baseline; }
.dl .dl-progress-meter output { font:14px var(--dl-mono); }
.dl .dl-progress-track { height:6px; border-radius:6px; }
.dl .dl-progress-track i { width:100%; transform:scaleX(0); transform-origin:left; transition:transform 600ms var(--dl-ease); }
.dl .dl-progress-track[data-indeterminate='false'] i { transform:none; }
.dl .dl-progress-track[data-indeterminate='true'] i { opacity:.25; animation:none; }
.dl .dl-processing-steps { gap:8px; margin-top:16px; font-size:11px; }
.dl .dl-processing-foot { grid-column:1; width:100%; max-width:560px; justify-self:center; gap:8px; margin-top:20px; font-size:11px; }
.dl .dl-progress[data-state='complete'] .dl-elapsed::before { animation:none; background:var(--dl-success); border-color:var(--dl-success); }
.dl .dl-intake:has(.is-busy) { border-color:var(--dl-rule); }
.dl .dl-results { margin-top:var(--dl-space-xl); }
.dl .dl-results-header { margin-bottom:20px; }
.dl .dl-results-header h2 { font-size:21px; }
.dl .dl-counts { gap:20px; }
.dl .dl-counts > span { padding-inline-start:16px; border-inline-start:1px solid var(--dl-rule); }
.dl .dl-counts > span:first-child { padding:0; border:0; }
.dl .dl-counts b { font-size:20px; font-weight:600; }
.dl .dl-stat-compact { display:none; }
.dl .dl-workspace { border-radius:var(--dl-radius); }
.dl .dl-view-head { min-height:64px; background:var(--dl-surface); }
.dl .dl-tabs { gap:2px; }
.dl .dl-tab { position:relative; background:var(--dl-clear); color:var(--dl-muted); padding:8px 12px; }
.dl .dl-tab[aria-selected='true'] { background:var(--dl-soft); color:var(--dl-accent); }
.dl .dl-downloads { padding:20px; background:var(--dl-surface); border:1px solid var(--dl-rule); border-radius:var(--dl-radius); gap:12px; }
.dl .dl-downloads > span { color:var(--dl-ink); font-weight:550; }
.dl .dl-export-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px 24px; padding:16px 20px; margin-bottom:16px; border:1px solid var(--dl-rule); border-radius:var(--dl-radius); background:var(--dl-surface); }
.dl .dl-export-toolbar .dl-downloads { display:flex; gap:8px; margin:0; padding:0; border:0; border-radius:0; }
.dl .dl-export-toolbar .dl-word-math-option { margin:0 0 0 auto; }
.dl .dl-export-toolbar .dl-confidence { width:100%; margin:0 !important; font-size:10px; }
.dl .dl-export-details { min-width:0; margin-inline-start:auto; font-size:11px; color:var(--dl-muted); }
.dl .dl-export-details summary { display:flex; flex-wrap:wrap; align-items:center; gap:8px; list-style:none; cursor:pointer; min-height:44px; }
.dl .dl-export-details summary::-webkit-details-marker { display:none; }
.dl .dl-export-details summary > span:first-child { color:var(--dl-success); padding-inline-end:8px; border-inline-end:1px solid var(--dl-rule); }
.dl .dl-export-details summary svg { width:16px; height:16px; }
.dl .dl-export-details[open] { flex-basis:100%; }
.dl .dl-export-details[open] summary > span:first-child { margin-inline-end:auto; }
.dl .dl-export-details .dl-confidence { padding:8px 0; line-height:1.8; }
.dl .dl-results-header > div:first-child { min-width:0; flex:1; }
.dl #dlResultNote { font-size:12px; line-height:1.8; }
.dl .dl-result-warnings { margin:0 0 16px; border:1px solid var(--dl-rule); border-radius:var(--dl-control-radius); color:var(--dl-ink); background:var(--dl-soft); font-size:12px; }
.dl .dl-result-warnings summary { display:flex; align-items:center; gap:8px; padding:12px 16px; min-height:44px; list-style:none; cursor:pointer; }
.dl .dl-result-warnings summary::-webkit-details-marker { display:none; }
.dl .dl-result-warnings summary > svg { width:18px; height:18px; color:var(--dl-accent); flex:none; }
.dl .dl-warning-expand { margin-inline-start:auto; color:var(--dl-accent); font-size:11px; white-space:nowrap; }
.dl .dl-result-warnings[open] summary { border-bottom:1px solid var(--dl-rule); }
.dl .dl-result-warnings > div { padding:12px 16px; }
.dl .dl-result-warnings ul { padding-inline-start:20px; display:grid; gap:8px; line-height:1.8; }
.dl .dl-result-warnings .dl-text-button { margin-top:8px; color:var(--dl-accent); }
.dl .dl-word-math-option select { width:auto; min-height:44px; font-size:12px; }
.dl .dl-intake[data-state='complete'] { gap:0; padding:0; grid-template-columns:minmax(0,1fr); }
.dl .dl-intake[data-state='complete'] .dl-intake-file { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px 20px; }
.dl .dl-intake[data-state='complete'] .dl-upload-stage { min-height:0; }
.dl .dl-intake[data-state='complete'] .dl-drop { display:grid; grid-template-columns:36px minmax(0,1fr); gap:0 12px; min-height:0; padding:4px 0; text-align:start; background:var(--dl-clear); border-color:var(--dl-clear); }
.dl .dl-intake[data-state='complete'] .dl-upload-stage .dl-drop { height:auto; min-height:64px; border:0; background:var(--dl-clear); align-content:center; }
.dl .dl-intake[data-state='complete'] .dl-drop::before { display:none; }
.dl .dl-intake[data-state='complete'] .dl-upload-stage .dl-drop > .dl-formats { display:none; }
.dl .dl-intake[data-state='complete'] .dl-upload-icon { width:36px; height:44px; border:0; border-radius:6px; box-shadow:none; margin:0; transform:none; grid-row:1 / 3; color:var(--dl-success); background:var(--dl-clear); }
.dl .dl-intake[data-state='complete'] .dl-upload-icon svg { width:24px; height:28px; }
.dl .dl-intake[data-state='complete'] .dl-drop strong { font-size:13px; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dl .dl-intake[data-state='complete'] .dl-drop-copy { max-width:none; font-size:11px; }
.dl .dl-intake[data-state='complete'] #dlDropAction { grid-column:2; justify-content:flex-start; min-width:0; min-height:44px; margin:0; padding:4px 0; border:0; background:var(--dl-clear); color:var(--dl-accent); font-size:12px; }
.dl .dl-intake[data-state='complete'] .dl-intake-foot { margin:0; padding:0; }
.dl .dl-intake[data-state='complete'] .dl-message { grid-column:1 / -1; }
.dl .dl-intake[data-state='complete'] .dl-options { display:grid; grid-template-columns:minmax(0,1fr); border-top:1px solid var(--dl-rule); border-inline-start:0; padding:24px; gap:20px; }
.dl .dl-intake[data-state='complete'] .dl-options-heading { grid-column:1 / -1; margin:0; }
.dl .dl-intake[data-state='complete'] .dl-option-fields { grid-column:auto; }
.dl .dl-intake[data-state='complete'] .dl-option-features { grid-column:auto; margin:0; padding:0; border:0; }
.dl .dl-intake[data-state='complete'] .dl-option-action { grid-column:auto; display:flex; padding:0; justify-content:center; margin:0; }
.dl .dl-notes { margin-top:24px; }
.dl .dl-notes > summary { font-size:12px; }
.dl .dl-legacy > summary { font-size:14px; }
@media (hover:hover) and (pointer:fine) {
  .dl .dl-drop:not(:disabled):hover { border-color:var(--dl-accent); }
  .dl .dl-drop:not(:disabled):hover .dl-upload-icon { transform:translateY(-4px) rotate(0); }
  .dl .dl-drop:not(:disabled):hover #dlDropAction { transform:translateY(-2px); }
  .dl .dl-intake[data-state='complete'] .dl-drop:hover #dlDropAction { transform:none; }
  .dl .dl-options select:not(:disabled):hover { background:var(--dl-soft); }
  .dl .dl-feature-check:hover { color:var(--dl-accent); }
}
.dl .dl-drop:active #dlDropAction { transform:translateY(1px); }
.dl .dl-drop[data-drag='true'] { background:var(--dl-soft); border-color:var(--dl-accent); }
.dl .dl-drop[data-drag='true'] .dl-upload-icon { transform:translateY(-8px) rotate(0); }
.dl .dl-drop[data-error='true'] { border-color:var(--dl-error); }
@keyframes dl-status-turn { to { transform:rotate(360deg); } }
@media (min-width:48rem) {
  .dl .dl-intake { grid-template-columns:minmax(0,1fr) 296px; }
  .dl .dl-options { border-top:0; border-inline-start:1px solid var(--dl-rule); }
  .dl .dl-task-head { padding:20px 24px; }
  .dl .dl-stage-rail { width:390px; }
  .dl .dl-intake-file { padding:24px; }
.dl .dl-upload-stage,.dl .dl-upload-stage .dl-drop { min-height:400px; }
  .dl .dl-intake[data-state='complete'] .dl-options { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .dl .dl-intake[data-state='complete'] .dl-upload-stage .dl-drop { grid-template-columns:36px minmax(0,1fr) auto; gap:16px; }
  .dl .dl-intake[data-state='complete'] .dl-upload-icon { grid-row:auto; }
  .dl .dl-intake[data-state='complete'] #dlDropAction { grid-column:3; padding-inline:12px; }
  .dl .dl-intake[data-state='complete'] .dl-option-action { grid-column:1 / -1; flex-direction:row; justify-content:flex-end; align-items:center; }
  .dl .dl-intake[data-state='complete'] .dl-start { width:200px; order:1; }
  .dl .dl-intake[data-state='complete'] #dlRuntimeNote { margin-inline-end:16px !important; text-align:start; }
}
@media (min-width:64rem) {
  .dl .dl-intake { grid-template-columns:minmax(0,1fr) 336px; }
  .dl .dl-intake-file { padding:28px; }
  .dl .dl-options { padding:28px; }
  .dl .dl-stage-rail { width:420px; }
  .dl .dl-intake[data-state='complete'] .dl-options { grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.85fr); }
  .dl .dl-intake[data-state='complete'] .dl-option-action { grid-column:auto; flex-direction:column; }
  .dl .dl-intake[data-state='complete'] .dl-start { width:100%; order:0; }
  .dl .dl-intake[data-state='complete'] #dlRuntimeNote { margin:0 !important; text-align:center; }
}
@media (min-width:90rem) {
  .dl .dl-intake { grid-template-columns:minmax(0,1fr) 360px; }
  .dl .dl-task-head { padding-inline:28px; }
  .dl .dl-upload-stage .dl-drop { min-height:400px; }
  .dl .dl-drop strong { font-size:24px; }
  .dl .dl-progress { padding:28px 48px; }
  .dl .dl-processing-head { left:28px; right:28px; }
  .dl .dl-progress-copy strong { font-size:26px; }
}
@media (max-width:47.99rem) {
  .dl .dl-task-head { padding:16px 20px; }
  .dl .dl-stage-rail li { gap:6px; }
  .dl .dl-stage-rail li:not(:last-child)::after { margin-inline:2px; min-width:2px; }
  body.document-lab-page .dl .dl-options select { padding-inline:10px 28px; }
  .dl .dl-progress { min-height:400px; padding:24px 16px; }
  .dl .dl-processing-head { left:16px; right:16px; }
  .dl .dl-upload-stage.is-busy { min-height:400px; }
  .dl .dl-intro-copy > p { font-size:12px; max-width:44ch; }
  .dl .dl-options { padding:20px; }
  .dl .dl-processing-steps { font-size:10px; gap:4px; }
  .dl .dl-processing-steps li { gap:4px; }
  .dl .dl-intake[data-state='complete'] .dl-intake-file { grid-template-columns:minmax(0,1fr); padding:12px 16px; gap:4px; }
  .dl .dl-intake[data-state='complete'] .dl-intake-foot { justify-content:flex-end; }
  .dl .dl-results-header { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; align-items:start; }
  .dl .dl-results-header > div:first-child { width:100%; }
  .dl .dl-counts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; width:100%; }
  .dl .dl-counts > span { display:flex; align-items:baseline; gap:2px; min-width:0; padding-inline-start:6px; white-space:nowrap; font-size:11px; }
  .dl .dl-counts b { font-size:16px; margin:0; }
  .dl .dl-counts .dl-stat-full { display:none; }
  .dl .dl-counts .dl-stat-compact { display:inline; }
  .dl .dl-downloads { padding:16px; gap:8px; }
  .dl .dl-downloads > span { width:100%; }
  .dl .dl-export-toolbar { padding:16px; }
  .dl .dl-export-toolbar .dl-downloads { width:100%; }
  .dl .dl-export-toolbar .dl-word-math-option { margin:0; }
  .dl .dl-export-details { width:100%; margin:0; }
  .dl .dl-export-details summary { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) {
  .dl .dl-progress-track i { transition:none; }
  .dl .dl-elapsed::before { animation:none; }
}
.dl .dl-source-actions { display:flex; align-items:center; flex-wrap:wrap; gap:var(--dl-space-sm); }
.dl .dl-workspace:fullscreen { height:100dvh; width:100%; overflow:auto; border:0; border-radius:0; padding:var(--dl-space-md); background:var(--dl-paper); --dl-workbench-height:calc(100dvh - 156px); }
.dl .dl-workspace:fullscreen .dl-original,.dl .dl-workspace:fullscreen .dl-extracted { border:1px solid var(--dl-rule); border-radius:var(--dl-radius); overflow:clip; }
.dl .dl-workspace:fullscreen .dl-page-canvas,.dl .dl-workspace:fullscreen .dl-result-body { height:var(--dl-workbench-height); }
.dl .dl-workspace:fullscreen::backdrop { background:var(--dl-paper); }

/* Continuous action feedback; preserve instant keyboard focus. */
.dl .dl-source-footer :is(select,input),.dl .dl-table-input { min-height:44px; }
.dl .dl-tabs { position:relative; isolation:isolate; }
.dl .dl-tab { z-index:1; }
.dl #dlResults .dl-tab[aria-selected='true'] { background:var(--dl-clear); }
.dl .dl-tab-indicator { position:absolute; inset:0 auto auto 0; border-radius:var(--dl-control-radius); background:var(--dl-soft); pointer-events:none; z-index:0; }
.dl .dl-page-canvas { position:relative; }
.dl .dl-page-canvas[aria-busy='true'] .dl-page-paper { opacity:.55; }
.dl .dl-page-paper { transition:opacity var(--dl-fast) var(--dl-ease); }
.dl .dl-page-loading { position:absolute; top:16px; left:50%; transform:translateX(-50%); padding:8px 12px; border:1px solid var(--dl-rule); border-radius:var(--dl-control-radius); color:var(--dl-ink); background:var(--dl-surface); box-shadow:0 2px 8px var(--dl-shadow); white-space:nowrap; font-size:12px; z-index:2; }
.dl .dl-export-details summary svg,.dl .dl-settings-toggle svg { transition:transform var(--dl-switch) var(--dl-ease); }
.dl .dl-export-details[open] summary svg,.dl .dl-settings-toggle[aria-expanded='true'] svg { transform:rotate(180deg); }
.dl .dl-feature-check input { transition:transform var(--dl-fast) var(--dl-ease); }
.dl .dl-feature-check input:active { transform:scale(.88); }
.dl .dl-text-button,.dl .dl-tab { transition:background-color var(--dl-fast) var(--dl-ease),color var(--dl-fast) var(--dl-ease),transform var(--dl-fast) var(--dl-ease); }
.dl .dl-text-button:not(:disabled):active,.dl .dl-tab:active { transform:translateY(1px); }
.dl.dl-background *,.dl.dl-background *::before,.dl.dl-background *::after,.dl .dl-progress[data-motion-visible='false'] *,.dl .dl-progress[data-motion-visible='false'] *::before { animation-play-state:paused !important; }
.dl.dl-background *,.dl.dl-background *::before,.dl.dl-background *::after { transition:none !important; }
.dl .tl-view-tabs { position:relative; }
.dl .tl-tab-indicator { position:absolute; inset: auto auto -1px 0; height:2px; background:var(--dl-accent); pointer-events:none; }
.dl summary[aria-expanded='false'] > svg { transform:rotate(0); }
.dl .tl-workbench[aria-busy='true'] #tlRun { color:var(--dl-accent); background:var(--dl-soft); }
body.document-lab-page .dl .tl-workbench select { appearance:none; display:block; width:100%; height:44px !important; min-height:44px !important; padding:8px 28px 8px 10px; line-height:22px; border:1px solid var(--dl-rule); border-radius:var(--dl-control-radius); background:var(--dl-surface); color:var(--dl-ink); font:12px var(--dl-font); }
.dl .tl-workbench .dl-select-wrap > svg { right:8px; }
body.document-lab-page .dl :is(#dlZoom,#dlWordMathMode) { appearance:none; height:44px !important; min-height:44px !important; padding-inline:10px 28px; }
@media (prefers-reduced-motion:reduce) { .dl .tl-workbench *,.dl .tl-workbench *::before { transition:none !important; animation:none !important; } }
@media (hover:hover) and (pointer:fine) { .dl .dl-text-button:not(:disabled):hover,.dl .dl-tab:not([aria-selected='true']):hover { background:var(--dl-soft); color:var(--dl-accent); } }
@media (prefers-reduced-motion:reduce) { .dl .dl-page-paper,.dl .dl-text-button,.dl .dl-tab,.dl .dl-export-details summary svg,.dl .dl-settings-toggle svg,.dl .dl-feature-check input { transition:none; } }
