/* pdfkit: the full-screen pages every Dollar PDF tool opens in (reader, scanner, editor, page tools), and the busy
   cover. Uses the shell's colours, so the app's own look carries through. Class names start with dp-. */
html.dp-open, html.dp-open body { overflow: hidden; }
.dp-screen {
  position: fixed; inset: 0; z-index: 19; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
}
.dp-bar {
  flex: none; display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 0 6px;
  background: var(--bar-bg, var(--surface)); color: var(--bar-ink, var(--text)); border-bottom: 1px solid var(--line);
}
.dp-back, .dp-tool {
  display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 8px; border: 0; border-radius: 12px;
  background: transparent; color: inherit; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.dp-back:active, .dp-tool:active { background: var(--surface-2); }
.dp-back svg.ico, .dp-tool svg.ico { width: 24px; height: 24px; }
.dp-tool.word { padding: 0 12px; }
.dp-tool.on { color: var(--accent); }
.dp-title { flex: 1; min-width: 0; font-weight: 650; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-fb { display: flex; align-items: center; flex: none; }
.dp-fb:empty { display: none; }
.dp-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.dp-body { flex: 1; min-height: 0; overflow: auto; position: relative; -webkit-overflow-scrolling: touch; }
.dp-body.dark { background: #2b3237; }
.dp-foot {
  flex: none; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.dp-foot[hidden] { display: none; }
.dp-foot .btn { flex: 1; }
.dp-busy {
  position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--text); font-weight: 600; font-size: 17px; text-align: center; padding: 24px;
}
.dp-spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: dp-spin 0.9s linear infinite; }
@keyframes dp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dp-spin { animation-duration: 3s; } }
.dp-choice {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 14px; margin: 0 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.dp-choice:active { background: var(--surface-2); }
.dp-choice.big { min-height: 76px; border-width: 2px; }
.dp-choice .dp-ci { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.dp-choice .dp-ci svg { width: 24px; height: 24px; }
.dp-choice b { display: block; font-size: 17px; }
.dp-choice span.muted { display: block; font-size: 14px; }
