.pdf-workspace { border: 1px solid var(--border-color, #d5ded9); border-radius: 20px; padding: clamp(16px, 3vw, 32px); background: var(--bg-2, #fff); color: var(--text-primary, #173c32); }
.pdf-workspace p { line-height: 1.55; overflow-wrap: anywhere; }
.pdf-workspace button, .pdf-workspace a { min-height: 40px; padding: 9px 12px; border: 1px solid var(--dark-border-soft, #bbcfc4); border-radius: 8px; background: var(--dark-paper-3, #eef5ef); color: var(--dark-ink, #173c32); cursor: pointer; font: inherit; text-decoration: none; }
.pdf-workspace button:disabled { opacity: .45; cursor: not-allowed; }
.pdf-workspace button:focus-visible, .pdf-workspace input:focus-visible, .pdf-workspace select:focus-visible, .pdf-workspace a:focus-visible { outline: 3px solid #448c73; outline-offset: 3px; }
.pdf-workspace input, .pdf-workspace select { display: block; min-width: 0; width: 100%; box-sizing: border-box; margin-top: 8px; padding: 10px; font: inherit; border: 1px solid var(--dark-border-soft, #bbcfc4); border-radius: 8px; background: var(--dark-field, #fff); color: var(--dark-ink, #173c32); }
.pdf-toolbar, .pdf-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pdf-toolbar { margin: 20px 0; }
.pdf-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr)); gap: 16px; }
.pdf-page-card { padding: 12px; border: 1px solid var(--dark-border-soft, #c8d7ce); border-radius: 12px; min-width: 0; }
.pdf-thumbnail { height: 200px; display: grid; place-items: center; background: var(--dark-paper-3, #eaf0ec); border-radius: 6px; overflow: hidden; }
.pdf-thumbnail img { max-width: 185px; max-height: 185px; object-fit: contain; }
.pdf-page-actions button { font-size: 12px; padding: 7px; flex-grow: 1; }
.pdf-control-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.pdf-file-label { display: block; font-weight: 600; }
.pdf-workspace [hidden] { display: none !important; }

/* Space the page holds for this view until it mounts (see .tool-view-placeholder in _workspace.css).
   Each height is a little under the space the view takes at that width, measured as how far the
   content below moves when the view replaces the placeholder, so nothing below it moves. Re-measure
   after changing the view's layout: node scripts/measure-tool-views.js --apply pdf-watermark. */
.tool-view-placeholder[data-tool="pdf-watermark"] { min-height: 329px; }
@media (max-width: 1088px) { .tool-view-placeholder[data-tool="pdf-watermark"] { min-height: 436px; } }
@media (max-width: 828px) { .tool-view-placeholder[data-tool="pdf-watermark"] { min-height: 523px; } }
@media (max-width: 552px) { .tool-view-placeholder[data-tool="pdf-watermark"] { min-height: 922px; } }
@media (max-width: 380px) { .tool-view-placeholder[data-tool="pdf-watermark"] { min-height: 968px; } }
