/* DESKPDF-1: deskpdf brand, design B "app in the browser" (artifacts/net-design/deskpdf/b).
   Tool page = one app window: tool menu on the left, the workspace in the middle, the tool's settings and run
   button on the right ("inspector"). Shared PdfWorkspace / FileToolSession markup only; scoped to this brand. */

/* Geist and Geist Mono, SIL Open Font License 1.1 (fonts/geist/OFL.txt), from Google Fonts; latin, latin-ext, cyrillic. */
@font-face{font-family:'Geist';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/geist/geist-cyrillic-6129fc85.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Geist';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/geist/geist-latin-ext-58a6b173.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/geist/geist-latin-9b6f5ff4.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(/fonts/geist/geist-mono-cyrillic-75b3bedb.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(/fonts/geist/geist-mono-latin-ext-745994b5.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(/fonts/geist/geist-mono-latin-5f3d6ad6.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ---- tokens: light ---- */
body[data-brand-preset][data-brand-preset="deskpdf"] {
  --accent: #2f5bea !important;
  --accent-contrast: #fff;
  --accent-fg: #2f5bea;
  --accent-soft: #e8eefe;
  --accent-line: #b9c9fb;
  --page: #eef1f5;
  --surface: #f7f8fa;
  --panel: #fff;
  --panel-muted: #f7f8fa;
  --sidebar: #f3f5f8;
  --titlebar: #e9ecf1;
  --text: #141a23;
  --text-soft: #3c4654;
  --muted: #606976;
  --subtle: #646f7e;
  --line: #dde2e9;
  --line-strong: #c9d0da;
  --input-line: #c9d0da;
  --hover: rgb(20 26 35 / 5%);
  --success: #1f8a5b;
  --header-bg: rgb(238 241 245 / 92%);
  --mark-tile: #141a23;
  --mark-page: #fff;
  --dot: #d3d8df;
  --shadow-win: 0 1px 0 rgb(255 255 255 / 80%) inset, 0 0 0 1px rgb(20 26 35 / 8%), 0 2px 4px rgb(20 26 35 / 4%), 0 24px 60px -18px rgb(20 35 70 / 28%);
  --brand-font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --dp-radius: 9px;
  background: var(--page);
  color: var(--text);
  font-family: var(--brand-font);
}

/* ---- tokens: dark (stored choice, or the system setting when nothing is stored) ---- */
:root[data-theme="dark"] body[data-brand-preset][data-brand-preset="deskpdf"] {
  --accent: #2f5bea !important;
  --accent-contrast: #fff;
  --accent-fg: #7f9cff;
  --accent-soft: #1a2547;
  --accent-line: #3a4f99;
  --page: #0e1218;
  --surface: #121720;
  --panel: #161b23;
  --panel-muted: #121720;
  --sidebar: #11161d;
  --titlebar: #131820;
  --text: #e8ecf2;
  --text-soft: #b9c1cc;
  --muted: #8f99a6;
  --subtle: #87919e;
  --line: #252d38;
  --line-strong: #343e4b;
  --input-line: #343e4b;
  --hover: rgb(232 236 242 / 6%);
  --success: #3fbf86;
  --header-bg: rgb(14 18 24 / 92%);
  --mark-tile: #232c3a;
  --mark-page: #e8ecf2;
  --dot: #2f3845;
  --shadow-win: 0 0 0 1px #262e3a, 0 24px 60px -28px rgb(0 0 0 / 70%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-brand-preset][data-brand-preset="deskpdf"] {
    --accent: #2f5bea !important;
    --accent-contrast: #fff;
    --accent-fg: #7f9cff;
    --accent-soft: #1a2547;
    --accent-line: #3a4f99;
    --page: #0e1218;
    --surface: #121720;
    --panel: #161b23;
    --panel-muted: #121720;
    --sidebar: #11161d;
    --titlebar: #131820;
    --text: #e8ecf2;
    --text-soft: #b9c1cc;
    --muted: #8f99a6;
    --subtle: #87919e;
    --line: #252d38;
    --line-strong: #343e4b;
    --input-line: #343e4b;
    --hover: rgb(232 236 242 / 6%);
    --success: #3fbf86;
    --header-bg: rgb(14 18 24 / 92%);
    --mark-tile: #232c3a;
    --mark-page: #e8ecf2;
    --dot: #2f3845;
    --shadow-win: 0 0 0 1px #262e3a, 0 24px 60px -28px rgb(0 0 0 / 70%);
  }
}

/* ---- header and logo ---- */
body[data-brand-preset="deskpdf"] :is(.site-header, .topbar) { background: var(--header-bg); border-color: transparent; }
body[data-brand-preset="deskpdf"] .topbar { padding: 14px 64px; }
body[data-brand-preset="deskpdf"] .brand-mark { width: 30px; height: 30px; background: none; border: 0; box-shadow: none; border-radius: 0; }
body[data-brand-preset="deskpdf"] .deskpdf-mark { width: 30px; height: 30px; display: block; }
body[data-brand-preset="deskpdf"] .deskpdf-mark .bm-tile { fill: var(--mark-tile); }
body[data-brand-preset="deskpdf"] .deskpdf-mark .bm-bar { fill: var(--accent); }
body[data-brand-preset="deskpdf"] .deskpdf-mark .bm-page { fill: var(--mark-page); }
body[data-brand-preset="deskpdf"] .deskpdf-mark .bm-fold { fill: none; stroke: var(--mark-tile); stroke-width: 1.4; stroke-linejoin: round; }
body[data-brand-preset="deskpdf"] .brand-name { font-size: 21px; font-weight: 600; letter-spacing: -.035em; color: var(--text); gap: 0; }
body[data-brand-preset="deskpdf"] .brand-name strong { color: var(--accent-fg); font-weight: 600; background: none; border: 0; padding: 0; margin: 0; box-shadow: none; border-radius: 0; font-size: inherit; letter-spacing: inherit; }
body[data-brand-preset="deskpdf"] .theme-toggle { border-color: transparent; background: transparent; }
body[data-brand-preset="deskpdf"] .theme-toggle:hover { background: var(--hover); }
body[data-brand-preset="deskpdf"] .local-processing-notice { background: transparent; border: 0; }

/* ---- the app window ---- */
body[data-brand-preset="deskpdf"] :is(button, input, select, textarea) { font-family: inherit; }
body[data-brand-preset="deskpdf"] :is(button, .drop-zone, .feedback-panel, select, input, textarea) { border-radius: var(--dp-radius); }
body[data-brand-preset="deskpdf"] button:not(.secondary):not(.theme-toggle):not(.pdf-nav-toggle) { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
body[data-brand-preset="deskpdf"] button.secondary { background: var(--panel); border-color: var(--line); color: var(--text); }
body[data-brand-preset="deskpdf"] .pdf-preview-label { margin: 0 0 8px; font: 500 12px/1.4 var(--brand-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

@media (min-width: 1100px) {
  body[data-brand-preset="deskpdf"] .pdf-workbench {
    position: relative;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 0;
    margin: 8px 64px 48px;
    padding: 40px 0 0;
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow-win);
    overflow: clip;
    min-height: min(860px, calc(100vh - 140px));
  }
  /* title bar with the three window dots */
  body[data-brand-preset="deskpdf"] .pdf-workbench::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 40px;
    background: radial-gradient(circle at 22px 20px, var(--dp-d1, var(--dot)) 6px, transparent 6.5px), radial-gradient(circle at 42px 20px, var(--dp-d2, var(--dot)) 6px, transparent 6.5px), radial-gradient(circle at 62px 20px, var(--dp-d3, var(--dot)) 6px, transparent 6.5px), var(--titlebar);
    border-bottom: 1px solid var(--line);
  }
  /* title bar path: PDF workspace › group › task */
  body[data-brand-preset="deskpdf"] .pdf-workbench::after {
    content: var(--pdf-home) "\2002\203A\2002" var(--pdf-task-group) "\2002\203A\2002" var(--pdf-task-title);
    position: absolute; top: 0; left: 96px; right: 24px; height: 40px; line-height: 40px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    font: 500 13px/40px var(--brand-font); color: var(--muted); pointer-events: none;
  }
  /* the three dots are the activity light: they run while a tool works, then show done (green) or error (red) */
  body[data-brand-preset="deskpdf"] .pdf-workbench:has(.tool-panel[data-run-state="running"])::before { animation: dp-dots 1.05s steps(1) infinite; }
  body[data-brand-preset="deskpdf"] .pdf-workbench:has(.tool-panel[data-run-state="done"])::before { --dp-d2: var(--success); }
  body[data-brand-preset="deskpdf"] .pdf-workbench:has(.tool-panel[data-run-state="error"])::before { --dp-d2: #e5484d; }
  /* left: tool menu */
  body[data-brand-preset="deskpdf"] .pdf-tool-navigation {
    position: sticky; top: 0; align-self: start; max-height: calc(100vh - 40px); overflow: auto;
    margin: 0; padding: 12px 8px 24px; background: var(--sidebar); border-inline-end: 1px solid var(--line); min-height: 100%;
  }
  /* middle + right: the task column becomes workspace | inspector */
  body[data-brand-preset="deskpdf"] .pdf-task {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; column-gap: 0;
    margin: 0; padding: 0; background: transparent; border: 0;
  }
  body[data-brand-preset="deskpdf"] :is(.pdf-task-body, .tool-panel) { display: contents; }
  body[data-brand-preset="deskpdf"] .pdf-task > :not(.pdf-task-body),
  body[data-brand-preset="deskpdf"] .pdf-task-body > :not(.tool-panel),
  body[data-brand-preset="deskpdf"] .tool-panel > :not(.file-review-layout),
  body[data-brand-preset="deskpdf"] .file-review-preview { grid-column: 1; margin-inline: 28px; min-width: 0; }
  body[data-brand-preset="deskpdf"] .pdf-task-heading { padding-top: 28px; }
  /* pages without a tool (privacy, legal, engine notes): the content column gets the same inner margins */
  body[data-brand-preset="deskpdf"] .pdf-workbench > :not(.pdf-tool-navigation):not(.pdf-task):not(astro-island) { padding: 28px 32px 40px; min-width: 0; }
  /* FileToolSession sets display: contents inline until a split review is open. This brand always shows one right
     column: the tool's settings and run button first, the page previews (owner 2026-10-08) below them. */
  body[data-brand-preset="deskpdf"] .file-review-layout {
    display: flex !important; flex-direction: column; gap: 18px;
    grid-column: 2; grid-row: 1 / span 40; align-self: stretch; min-width: 0;
    padding: 20px 20px 28px; background: var(--panel); border-inline-start: 1px solid var(--line);
  }
  body[data-brand-preset="deskpdf"] .file-review-settings { display: flex !important; flex-direction: column; gap: 16px; order: 1; min-width: 0; }
  body[data-brand-preset="deskpdf"] .file-review-preview { display: block !important; order: 2; min-width: 0; margin-inline: 0; grid-column: auto; }
  body[data-brand-preset="deskpdf"] .file-review-layout :is(.tool-actions, .pdf-preview-toolbar) button.secondary,
  body[data-brand-preset="deskpdf"] .file-review-layout .pdf-preview-open { width: 100%; justify-content: center; margin-inline: 0; }
  body[data-brand-preset="deskpdf"] .file-review-preview:empty { display: none !important; }
  body[data-brand-preset="deskpdf"] .file-review-preview .pdf-thumbnail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body[data-brand-preset="deskpdf"] .file-review-preview .pdf-page-preview { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
  /* inspector heading: the task's group as eyebrow, then its name (CSS strings from the workspace) */
  body[data-brand-preset="deskpdf"] :is(.file-review-layout, .tool-panel:not(:has(.file-review-settings)) > .tool-actions)::before {
    content: var(--pdf-task-group, ""); order: -2; display: block; margin: 0;
    font: 500 12px/1.4 var(--brand-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-fg);
  }
  body[data-brand-preset="deskpdf"] :is(.file-review-layout, .tool-panel:not(:has(.file-review-settings)) > .tool-actions)::after {
    content: var(--pdf-task-title, ""); order: -1; display: block; margin: -12px 0 4px;
    font: 600 18px/1.25 var(--brand-font); letter-spacing: -.02em; color: var(--text);
  }
  /* tools without settings before files (Merge PDF): the run button alone forms the inspector */
  body[data-brand-preset="deskpdf"] .tool-panel:not(:has(.file-review-settings)) > .tool-actions {
    grid-column: 2; grid-row: 1 / span 40; align-self: stretch; margin: 0;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px;
    padding: 20px 20px 28px; background: var(--panel); border-inline-start: 1px solid var(--line);
  }
  body[data-brand-preset="deskpdf"] .tool-panel:not(:has(.file-review-settings)) > .tool-actions button { width: 100%; justify-content: center; }
  body[data-brand-preset="deskpdf"] .file-review-settings .file-controls { grid-template-columns: minmax(0, 1fr); }
  body[data-brand-preset="deskpdf"] .file-review-settings .tool-actions { flex-direction: column; align-items: stretch; }
  body[data-brand-preset="deskpdf"] :is(.file-review-settings, .tool-panel) > .tool-actions button { width: 100%; justify-content: center; }
}

/* ---- tool menu ---- */
body[data-brand-preset="deskpdf"] .pdf-task-filters { gap: 6px; padding: 0 4px 8px; }
body[data-brand-preset="deskpdf"] .pdf-task-filters label { gap: 4px; font: 500 12px/1.4 var(--brand-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* one search field, as in the design; the group filter stays for keyboard and screen reader use on narrow screens */
@media (min-width: 1100px) { body[data-brand-preset="deskpdf"] .pdf-task-filters label:has(select) { display: none; } }
body[data-brand-preset="deskpdf"] .pdf-task-filters :is(input, select) { font: 400 13px/1.3 var(--brand-font); letter-spacing: 0; text-transform: none; min-height: 36px; color: var(--text); background: var(--panel); border: 1px solid var(--line); }
body[data-brand-preset="deskpdf"] .pdf-tool-nav .pdf-nav-group > summary { min-height: 30px; padding: 12px 10px 4px; font: 600 12px/1.4 var(--brand-font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
body[data-brand-preset="deskpdf"] .pdf-tool-nav .pdf-nav-group[open] > summary { color: var(--muted); }
body[data-brand-preset="deskpdf"] .pdf-tool-nav .pdf-nav-group > summary :is(.pdf-nav-title, .pdf-nav-count) { font: inherit; letter-spacing: inherit; color: inherit; }
body[data-brand-preset="deskpdf"] .pdf-tool-nav .pdf-nav-group > summary .pdf-nav-count { margin-inline-start: auto; font-family: var(--brand-mono); letter-spacing: 0; }
body[data-brand-preset="deskpdf"] .pdf-tool-nav .pdf-nav-group > summary::before { flex-basis: 5px; width: 5px; height: 5px; border-width: 0 1.5px 1.5px 0; opacity: .7; }
body[data-brand-preset="deskpdf"] .pdf-nav-links { gap: 0; }
body[data-brand-preset="deskpdf"] .pdf-nav-links a { min-height: 30px; padding: 5px 10px; border-radius: 7px; font-size: 13px; color: var(--text-soft); text-decoration: none; }
body[data-brand-preset="deskpdf"] .pdf-nav-links a:hover { background: var(--hover); color: var(--text); }
body[data-brand-preset="deskpdf"] .pdf-nav-links a[aria-current="page"] { background: var(--accent); color: #fff; font-weight: 500; }

/* ---- workspace ---- */
body[data-brand-preset="deskpdf"] .pdf-task-heading h1 { font-size: 22px; letter-spacing: -.02em; font-weight: 600; }
body[data-brand-preset="deskpdf"] .pdf-task-heading p { font-size: 14px; color: var(--muted); max-width: 60ch; }
body[data-brand-preset="deskpdf"] .drop-zone { background: var(--surface); border: 1px dashed var(--line-strong); }
body[data-brand-preset="deskpdf"] :is(.pdf-editorial, .pdf-operation-help, .pdf-task-feedback, .pdf-task-privacy) { font-size: 14px; }

/* ---- phones and tablets (D3): one column; the run button stays reachable at the bottom ---- */
@media (max-width: 1099px) {
  body[data-brand-preset="deskpdf"] .topbar { padding: 12px 16px; }
  body[data-brand-preset="deskpdf"] .brand-mark { display: block; }
  body[data-brand-preset="deskpdf"] .pdf-workbench { padding-inline: 16px; }
  body[data-brand-preset="deskpdf"] .pdf-task-heading h1 { font-size: 24px; }
  body[data-brand-preset="deskpdf"] :is(.file-review-settings, .tool-panel) > .tool-actions {
    position: sticky; bottom: 0; z-index: 5; margin-inline: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--page) 94%, transparent); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
  }
  body[data-brand-preset="deskpdf"] :is(.file-review-settings, .tool-panel) > .tool-actions button { width: 100%; justify-content: center; }
}

/* ---- start block on the home page (D4) ---- */
body[data-brand-preset="deskpdf"] .desk-start { margin: 8px 64px 20px; padding: 36px 40px 32px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-win); }
body[data-brand-preset="deskpdf"] .desk-eyebrow { margin: 0 0 10px; font: 500 12px/1.4 var(--brand-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-fg); }
body[data-brand-preset="deskpdf"] .desk-start h2 { margin: 0 0 10px; font: 700 clamp(28px, 3.2vw, 40px)/1.12 var(--brand-font); letter-spacing: -.03em; color: var(--text); }
body[data-brand-preset="deskpdf"] .desk-lead { margin: 0 0 28px; max-width: 62ch; font-size: 16px; line-height: 1.55; color: var(--text-soft); }
body[data-brand-preset="deskpdf"] .desk-most-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
body[data-brand-preset="deskpdf"] .desk-most-head h3 { margin: 0; font: 600 12px/1.4 var(--brand-font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
body[data-brand-preset="deskpdf"] .desk-most-head a { font-size: 14px; font-weight: 500; color: var(--accent-fg); text-decoration: none; }
body[data-brand-preset="deskpdf"] .desk-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
body[data-brand-preset="deskpdf"] .desk-card { display: grid; gap: 4px; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
body[data-brand-preset="deskpdf"] .desk-card:hover { border-color: var(--accent-line); box-shadow: 0 6px 16px -8px rgb(31 69 196 / 35%); }
body[data-brand-preset="deskpdf"] .desk-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body[data-brand-preset="deskpdf"] .desk-card-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-fg); }
body[data-brand-preset="deskpdf"] .desk-card-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body[data-brand-preset="deskpdf"] .desk-card strong { font-size: 14px; font-weight: 600; }
body[data-brand-preset="deskpdf"] .desk-card span:last-child { font-size: 12.5px; color: var(--muted); }
@media (max-width: 1099px) {
  body[data-brand-preset="deskpdf"] .desk-start { margin: 8px 16px 16px; padding: 24px 18px; }
  body[data-brand-preset="deskpdf"] .desk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- engine pages (Office, OCR, protect, repair, edit hub…): their own forms, one column inside the window ---- */
@media (min-width: 1100px) {
  body[data-brand-preset="deskpdf"] article.pdf-task { display: block; padding: 28px 32px 40px; }
  body[data-brand-preset="deskpdf"] article.pdf-task :is(.pdf-task-body, .tool-panel) { display: block; }
  body[data-brand-preset="deskpdf"] article.pdf-task > *,
  body[data-brand-preset="deskpdf"] article.pdf-task .tool-panel > * { margin-inline: 0; grid-column: auto; }
  body[data-brand-preset="deskpdf"] article.pdf-task .tool-panel > .tool-actions {
    grid-row: auto; align-self: auto; display: flex; flex-direction: row; justify-content: flex-start;
    padding: 0; background: none; border: 0; margin-top: 16px;
  }
  body[data-brand-preset="deskpdf"] article.pdf-task .tool-panel > .tool-actions::before { content: none; }
  body[data-brand-preset="deskpdf"] article.pdf-task .tool-panel > .tool-actions button { width: auto; }
}
body[data-brand-preset="deskpdf"] article.pdf-task h1 { font-size: 22px; letter-spacing: -.02em; font-weight: 600; }
body[data-brand-preset="deskpdf"] article.pdf-task .engine-intro { font-size: 14px; color: var(--muted); max-width: 70ch; }
body[data-brand-preset="deskpdf"] article.pdf-task :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) { width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--line-strong); color: var(--text); }
body[data-brand-preset="deskpdf"] article.pdf-task form label:not(:has(input[type="checkbox"], input[type="radio"], input[type="file"])) { display: grid; gap: 6px; margin-top: 14px; }

@keyframes dp-dots {
  0% { --dp-d1: var(--accent); --dp-d2: var(--dot); --dp-d3: var(--dot); }
  33% { --dp-d1: var(--dot); --dp-d2: var(--accent); --dp-d3: var(--dot); }
  66% { --dp-d1: var(--dot); --dp-d2: var(--dot); --dp-d3: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-brand-preset="deskpdf"] .pdf-workbench:has(.tool-panel[data-run-state="running"])::before { animation: none; --dp-d2: var(--accent); }
}

/* ---- tool heading with its icon tile ---- */
body[data-brand-preset="deskpdf"] .pdf-task-title-row { align-items: center; gap: 14px; }
body[data-brand-preset="deskpdf"] .pdf-task-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--accent); color: #fff; box-shadow: 0 6px 14px -6px rgb(47 91 234 / 60%); }
body[data-brand-preset="deskpdf"] .pdf-task-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body[data-brand-preset="deskpdf"] .pdf-task-title-row h1 { flex: 1; margin: 0; }

/* ---- "All PDF tools" page: start-block window with the five groups ---- */
body[data-brand-preset="deskpdf"] .desk-back { display: inline-flex; gap: 6px; margin: 4px 64px 10px; font-size: 14px; font-weight: 500; color: var(--accent-fg); text-decoration: none; }
body[data-brand-preset="deskpdf"] .desk-back:hover { text-decoration: underline; }
body[data-brand-preset="deskpdf"] .desk-catalog h1 { margin: 0 0 10px; font: 700 clamp(28px, 3.2vw, 40px)/1.12 var(--brand-font); letter-spacing: -.03em; color: var(--text); }
body[data-brand-preset="deskpdf"] .desk-group { margin-top: 26px; }
body[data-brand-preset="deskpdf"] .desk-group h2 { margin: 0; font: 600 12px/1.4 var(--brand-font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
body[data-brand-preset="deskpdf"] .desk-count { font: 500 12px/1.4 var(--brand-mono); color: var(--muted); }
@media (max-width: 1099px) { body[data-brand-preset="deskpdf"] .desk-back { margin: 4px 16px 8px; } }

/* ---- header navigation (design B): all tools and the five groups on every page ---- */
@media (min-width: 1100px) {
  body[data-brand-preset="deskpdf"] .nav-links { display: flex !important; align-items: center; gap: 4px; margin-inline-start: 24px; }
  body[data-brand-preset="deskpdf"] .nav-links a { padding: 6px 10px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--text-soft); text-decoration: none; }
  body[data-brand-preset="deskpdf"] .nav-links a:hover { background: var(--hover); color: var(--text); }
}
body[data-brand-preset="deskpdf"] .desk-group { scroll-margin-top: 16px; }

/* ---- engine pages with a file form: the form is the right column, results and the guide stay in the middle ---- */
@media (min-width: 1100px) {
  body[data-brand-preset="deskpdf"] article.pdf-task:has(> .tool-panel input[type="file"]) {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; padding: 0;
  }
  body[data-brand-preset="deskpdf"] article.pdf-task:has(> .tool-panel input[type="file"]) > :not(script):not(style) { grid-column: 1; margin-inline: 32px; min-width: 0; }
  body[data-brand-preset="deskpdf"] article.pdf-task:has(> .tool-panel input[type="file"]) > h1 { padding-top: 28px; }
  body[data-brand-preset="deskpdf"] article.pdf-task:has(> .tool-panel input[type="file"]) > .tool-panel:has(input[type="file"]) {
    grid-column: 2; grid-row: 1 / span 40; align-self: stretch; margin: 0;
    display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 28px;
    background: var(--panel); border: 0; border-inline-start: 1px solid var(--line); border-radius: 0; box-shadow: none;
  }
  body[data-brand-preset="deskpdf"] article.pdf-task > .tool-panel:has(input[type="file"]) .drop-zone { min-height: 150px; padding: 18px 12px; }
  body[data-brand-preset="deskpdf"] article.pdf-task > .tool-panel:has(input[type="file"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select) { max-width: none; }
  body[data-brand-preset="deskpdf"] article.pdf-task > .tool-panel:has(input[type="file"]) .tool-actions { margin-top: 4px; }
  body[data-brand-preset="deskpdf"] article.pdf-task > .tool-panel:has(input[type="file"]) .tool-actions button { width: 100%; justify-content: center; }
}
@media (min-width: 1100px) {
  body[data-brand-preset="deskpdf"] article.pdf-task:has(> .tool-panel input[type="file"]) .feedback-panel { grid-column: 1; order: 99; margin: 24px 32px 32px; }
}

/* ---- way back from every tool page ---- */
body[data-brand-preset="deskpdf"] .desk-back-bar { display: block; margin: 0 64px 8px; }
body[data-brand-preset="deskpdf"] .desk-back-bar .desk-back { margin: 0; }
@media (max-width: 1099px) { body[data-brand-preset="deskpdf"] .desk-back-bar { margin: 0 16px 6px; } }

/* Arabic and Hebrew letters join: no letter-spacing or capitals transform on the small mono labels. */
html:is([lang="ar"], [lang="he"]) body[data-brand-preset="deskpdf"] :is(.pdf-preview-label, .pdf-task-filters label, .pdf-tool-nav .pdf-nav-group > summary, .desk-eyebrow, .desk-most-head h3, .desk-group h2, .file-review-layout, .tool-panel > .tool-actions)::first-line,
html:is([lang="ar"], [lang="he"]) body[data-brand-preset="deskpdf"] :is(.pdf-preview-label, .pdf-task-filters label, .pdf-tool-nav .pdf-nav-group > summary, .desk-eyebrow, .desk-most-head h3, .desk-group h2) { letter-spacing: 0; text-transform: none; font-family: var(--brand-font); }
html:is([lang="ar"], [lang="he"]) body[data-brand-preset="deskpdf"] :is(.file-review-layout, .tool-panel > .tool-actions)::before,
html:is([lang="ar"], [lang="he"]) body[data-brand-preset="deskpdf"] .pdf-workbench::after { letter-spacing: 0; text-transform: none; font-family: var(--brand-font); }
