/* doc-tools.css – shared look for Delete PDF Pages, Grayscale PDF, Word to PDF, PDF to Word and Scan to PDF.
   Loaded after /assets/css/site.css. Prefix: dt- */

.dt { --dt-line: #e2e8f0; --dt-ink: #1a202c; --dt-muted: #4a5568; --dt-soft: #718096; --dt-bg: #eef2f7;
      --dt-acc: var(--brand, #3666d1); --dt-acc-dark: var(--brand-dark, #2b4c94); --dt-acc-soft: var(--brand-soft, #eef3fc);
      position: relative; max-width: 1300px; margin: 0 auto 2.5rem; padding: 0 12px; }
.dt [hidden] { display: none !important; }

/* start screen */
.dt-start { max-width: 860px; margin: 0 auto; }
.dt.is-loaded .dt-start { display: none; }
.dt-points { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin: .9rem 0 0; padding: 0; list-style: none; color: var(--dt-muted); font-size: .9rem; }
.dt-points li::before { content: "✓ "; color: #38a169; font-weight: 700; }
.dt-error { max-width: 860px; margin: .8rem auto 0; padding: .75rem 1rem; border: 1px solid #feb2b2; border-radius: 10px; background: #fff5f5; color: #9b2c2c; }
.dt-error a { color: inherit; font-weight: 700; }
.dt-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 1rem 0 0; }

/* workspace */
.dt-work { display: none; min-height: 560px; border: 1px solid var(--dt-line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 8px 30px rgba(15, 23, 42, .08); scroll-margin-top: calc(var(--header-h, 64px) + 12px); }
.dt.is-loaded .dt-work { display: flex; }
.dt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--dt-bg); }
.dt-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 10px; background: #fff; border-bottom: 1px solid var(--dt-line); }
.dt-tb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #2d3748; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.dt-tb svg { width: 20px; height: 20px; flex: none; }
.dt-tb:hover:not(:disabled) { background: #f1f5f9; }
.dt-tb:disabled { opacity: .35; cursor: default; }
.dt-filename { flex: 1; min-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; color: var(--dt-soft); }
.dt-scroll { flex: 1; min-height: 0; overflow: auto; padding: 16px; max-height: calc(100vh - var(--header-h, 64px) - 90px); }
.dt-hint { margin: 0; padding: 8px 12px 10px; text-align: center; font-size: .8rem; color: var(--dt-soft); }

/* page thumbnails */
.dt-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.dt-thumb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 8px 6px; border: 2px solid transparent; border-radius: 12px; background: transparent; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dt-thumb:hover { background: rgba(255, 255, 255, .7); }
.dt-thumb:focus-visible { outline: 2px solid var(--dt-acc); outline-offset: 2px; }
.dt-thumb-img { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1.3; }
.dt-thumb canvas, .dt-thumb img { display: block; max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .2), 0 6px 14px rgba(15, 23, 42, .08); border-radius: 2px; }
.dt-thumb-ph { width: 76%; aspect-ratio: 1 / 1.41; background: #fff; border-radius: 2px; box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.dt-thumb-num { font-size: .8rem; font-weight: 700; color: var(--dt-muted); font-variant-numeric: tabular-nums; }
.dt-thumb-badge { position: absolute; top: 4px; right: 4px; z-index: 2; display: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #c53030; color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.dt-thumb-badge svg { width: 17px; height: 17px; }
.dt-thumb.is-del { border-color: #fc8181; background: #fff5f5; }
.dt-thumb.is-del .dt-thumb-badge { display: flex; }
.dt-thumb.is-del canvas, .dt-thumb.is-del img { opacity: .38; filter: grayscale(1); }
.dt-thumb.is-del .dt-thumb-num { color: #c53030; text-decoration: line-through; }
.dt-thumb-tag { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); padding: 2px 7px; border-radius: 999px; background: #1a202c; color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }

/* side panel */
.dt-panel { width: 330px; flex: none; overflow-y: auto; border-left: 1px solid var(--dt-line); background: #fff; display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h, 64px) - 24px); }
.dt-sec { padding: 14px 16px; border-bottom: 1px solid var(--dt-line); display: flex; flex-direction: column; gap: 10px; }
.dt-sec-title { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dt-soft); }
.dt-f { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--dt-muted); }
.dt-f small { display: block; margin-top: 2px; font-weight: 400; color: var(--dt-soft); }
.dt-f output { color: var(--dt-ink); font-variant-numeric: tabular-nums; }
.dt-f select, .dt-f input[type=text], .dt-f input[type=number] { width: 100%; min-height: 38px; padding: 6px 9px; border: 1px solid #cbd5e0; border-radius: 8px; background: #fff; font: inherit; font-weight: 500; color: var(--dt-ink); }
.dt-f input[type=range] { width: 100%; accent-color: var(--dt-acc); }
.dt-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-chip { min-height: 32px; padding: 0 12px; border: 1px solid #cbd5e0; border-radius: 999px; background: #fff; font: inherit; font-size: .8rem; font-weight: 600; color: var(--dt-muted); cursor: pointer; }
.dt-chip:hover { border-color: var(--dt-acc); color: var(--dt-acc-dark); }
.dt-chip.is-on { border-color: var(--dt-acc); background: var(--dt-acc-soft); color: var(--dt-acc-dark); }
.dt-seg { display: flex; border: 1px solid #cbd5e0; border-radius: 9px; overflow: hidden; }
.dt-seg button { flex: 1; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 40px; padding: 6px 8px; border: 0; border-right: 1px solid #e2e8f0; background: #fff; font: inherit; font-size: .84rem; font-weight: 600; color: #2d3748; cursor: pointer; text-align: center; line-height: 1.2; }
.dt-seg button small { font-size: .7rem; font-weight: 500; color: var(--dt-soft); }
.dt-seg button:last-child { border-right: 0; }
.dt-seg button.is-on { background: var(--dt-acc-soft); color: var(--dt-acc-dark); box-shadow: inset 0 -2px 0 var(--dt-acc); }
.dt-check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--dt-muted); cursor: pointer; line-height: 1.35; }
.dt-check input { width: 17px; height: 17px; margin-top: 1px; flex: none; accent-color: var(--dt-acc); }
.dt-check small { display: block; font-weight: 400; color: var(--dt-soft); }
.dt-note { margin: 0; font-size: .78rem; line-height: 1.45; color: var(--dt-soft); }
.dt-warn { margin: 0; padding: 8px 10px; border-radius: 8px; background: #fffaf0; border: 1px solid #fbd38d; color: #7b341e; font-size: .8rem; line-height: 1.45; }
.dt-ok { margin: 0; padding: 8px 10px; border-radius: 8px; background: #f0fff4; border: 1px solid #c6f6d5; color: #276749; font-size: .8rem; line-height: 1.45; }
.dt-stat { display: flex; justify-content: space-between; gap: 8px; font-size: .86rem; color: var(--dt-muted); }
.dt-stat b { color: var(--dt-ink); font-variant-numeric: tabular-nums; }
.dt-foot { position: sticky; bottom: 0; margin-top: auto; padding: 14px 16px; background: #fff; border-top: 1px solid var(--dt-line); display: flex; flex-direction: column; gap: 6px; align-items: stretch; z-index: 3; }
.dt-go { height: 46px; border: 0; border-radius: 10px; background: var(--dt-acc); color: #fff; font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.dt-go svg { width: 19px; height: 19px; }
.dt-go:hover:not(:disabled) { background: var(--dt-acc-dark); }
.dt-go:disabled { opacity: .45; cursor: default; }
.dt-btn2 { min-height: 40px; padding: 0 14px; border: 1.5px solid #cbd5e0; border-radius: 10px; background: #fff; font: inherit; font-weight: 600; font-size: .9rem; color: #2d3748; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.dt-btn2 svg { width: 18px; height: 18px; }
.dt-btn2:hover:not(:disabled) { border-color: var(--dt-acc); color: var(--dt-acc-dark); background: var(--dt-acc-soft); }
.dt-summary { margin: 0; text-align: center; font-size: .8rem; color: var(--dt-soft); }
.dt-link { align-self: center; border: 0; background: none; font: inherit; font-size: .78rem; color: var(--dt-soft); text-decoration: underline; cursor: pointer; }

/* document preview (Word to PDF, PDF to Word) */
.dt-doc { max-width: 760px; margin: 0 auto; padding: 48px 56px; background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .18), 0 8px 24px rgba(15, 23, 42, .1); color: #111; font: 15px/1.55 "Times New Roman", Times, serif; overflow-wrap: anywhere; }
.dt-doc.is-sans { font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.dt-doc h1 { font-size: 1.9em; margin: .2em 0 .5em; } .dt-doc h2 { font-size: 1.45em; margin: 1em 0 .4em; } .dt-doc h3 { font-size: 1.2em; margin: .9em 0 .35em; }
.dt-doc h4, .dt-doc h5, .dt-doc h6 { font-size: 1.05em; margin: .8em 0 .3em; }
.dt-doc p { margin: 0 0 .7em; } .dt-doc ul, .dt-doc ol { margin: 0 0 .8em 1.4em; padding: 0; } .dt-doc li { margin: .15em 0; }
.dt-doc table { width: 100%; margin: .6em 0 1em; border-collapse: collapse; font-size: .92em; display: table; }
.dt-doc td, .dt-doc th { padding: 4px 6px; border: 1px solid #999; vertical-align: top; text-align: left; }
.dt-doc img { max-width: 100%; height: auto; }
.dt-doc .dt-pagebreak { height: 0; margin: 1.6em -56px; border-top: 2px dashed #cbd5e0; position: relative; }
.dt-doc .dt-pagebreak::after { content: attr(data-label); position: absolute; right: 12px; top: -10px; padding: 0 6px; background: #fff; color: #a0aec0; font: 600 11px/18px Arial, sans-serif; }

/* toasts & busy */
.dt-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3100; max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 10px; background: #1a202c; color: #fff; font-size: .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.dt-toast.is-warn { background: #9b2c2c; }
.dt-busy { position: fixed; inset: 0; z-index: 3200; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .72); }
.dt-busy span { max-width: calc(100vw - 40px); padding: 14px 20px; border-radius: 12px; background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .15); font-weight: 600; color: var(--dt-ink); display: flex; align-items: center; gap: 10px; }
.dt-busy span::before { content: ""; flex: none; width: 18px; height: 18px; border: 3px solid #cbd5e0; border-top-color: var(--dt-acc); border-radius: 50%; animation: dt-spin .8s linear infinite; }
@keyframes dt-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .dt { padding: 0; }
    .dt-work { flex-direction: column; min-height: 0; border-radius: 0; border-left: 0; border-right: 0; overflow: visible; }
    .dt-scroll { max-height: none; padding: 12px; }
    .dt-thumbs { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
    .dt-panel { width: auto; max-height: none; border-left: 0; border-top: 1px solid var(--dt-line); overflow: visible; }
    .dt-foot { box-shadow: 0 -6px 16px rgba(15, 23, 42, .08); }
    .dt-doc { padding: 24px 18px; font-size: 14px; }
    .dt-doc .dt-pagebreak { margin: 1.4em -18px; }
}
/* inside the Android app the bottom tab bar is fixed; keep the main button above it */
html.app-mode .dt-foot { bottom: calc(var(--apx-tabs, 62px) + env(safe-area-inset-bottom, 0px)); }
html.app-mode .dt-toast { bottom: calc(var(--apx-tabs, 62px) + 16px); }

/* single-page preview with page navigation (Grayscale, PDF to Word) */
.dt-nav { display: flex; align-items: center; gap: 4px; font-size: .86rem; color: var(--dt-muted); }
.dt-pageinput { width: 52px; height: 32px; padding: 0 4px; border: 1px solid #cbd5e0; border-radius: 7px; text-align: center; font: inherit; }
.dt-stage { position: relative; flex: 1; min-height: 480px; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; height: calc(100vh - var(--header-h, 64px) - 130px); }
.dt-view { position: relative; line-height: 0; }
.dt-view canvas { display: block; background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .18), 0 8px 24px rgba(15, 23, 42, .1); }
.dt-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(26, 32, 44, .82); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.dt-cmp { margin-left: auto; }
.dt-cmp.is-on { background: var(--dt-acc-soft); color: var(--dt-acc-dark); border-color: var(--dt-acc); }
@media (max-width: 900px) { .dt-stage { height: 62vh; min-height: 340px; } }
/* Grayscale: show the right notes for the chosen mode */
#gs-app[data-mode=vector] .gs-only-raster, #gs-app[data-mode=raster] .gs-only-vector, #gs-app:not([data-tone=bw]) .gs-only-bw { display: none !important; }
/* stacked page previews (Word to PDF) */
.dt-pages { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dt-pages canvas { display: block; max-width: 100%; height: auto; background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .18), 0 8px 24px rgba(15, 23, 42, .1); }
/* PDF to Word */
.dt-doc.is-images { padding: 16px; background: transparent; box-shadow: none; display: flex; flex-direction: column; gap: 16px; }
.dt-doc.is-images canvas { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .18), 0 8px 24px rgba(15, 23, 42, .1); }
#pw-app[data-mode=image] .pw-only-edit, #pw-app[data-mode=edit] .pw-only-image { display: none !important; }
.dt-check { flex-wrap: wrap; }
.dt-check small { flex-basis: 100%; padding-left: 25px; margin-top: -4px; }

/* Scan to PDF */
.sc-startbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sc-big { min-height: 54px; padding: 0 22px; border-radius: 14px; font-size: 1.02rem; }
.sc-big svg { width: 22px; height: 22px; }
.sc-drop { padding: 1.6rem 1.25rem !important; }
.sc-drop.is-over { border-color: var(--dt-acc) !important; background: var(--dt-acc-soft) !important; }
.sc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sc-card { display: flex; flex-direction: column; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .15), 0 6px 14px rgba(15, 23, 42, .06); overflow: hidden; }
.sc-card.sortable-ghost { opacity: .35; }
.sc-thumb { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 170px; padding: 8px; border: 0; background: #f8fafc; cursor: pointer; }
.sc-thumb canvas { display: block; max-width: 100%; max-height: 190px; box-shadow: 0 1px 3px rgba(15, 23, 42, .2); }
.sc-card-bar { display: flex; align-items: center; gap: 2px; padding: 4px 6px; border-top: 1px solid var(--dt-line); }
.sc-num { flex: 1; padding-left: 4px; font-size: .82rem; font-weight: 700; color: var(--dt-muted); }
.sc-ib { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #4a5568; cursor: pointer; }
.sc-ib svg { width: 18px; height: 18px; }
.sc-ib:hover { background: #f1f5f9; color: var(--dt-acc-dark); }
.sc-add { align-items: center; justify-content: center; gap: 6px; min-height: 212px; border: 2px dashed var(--dt-acc-line, #a9bfef); background: #f7fbff; box-shadow: none; }
.sc-addbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: var(--dt-acc-dark); font: inherit; font-weight: 700; cursor: pointer; }
.sc-addbtn svg { width: 34px; height: 34px; }
.sc-addlink { border: 0; background: none; font: inherit; font-size: .8rem; color: var(--dt-soft); text-decoration: underline; cursor: pointer; }
.sc-editor { position: fixed; inset: 0; z-index: 3300; display: flex; flex-direction: column; background: #0f172a; color: #fff; }
.sc-edtop, .sc-edbottom { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #0b1220; }
.sc-edtop { justify-content: space-between; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.sc-edtitle { font-weight: 700; font-size: .98rem; }
.sc-edstage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sc-edcanvas { touch-action: none; cursor: crosshair; }
.sc-edprevwrap { position: absolute; right: 12px; bottom: 12px; padding: 4px; border-radius: 8px; background: rgba(255, 255, 255, .95); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); line-height: 0; }
.sc-edprev { max-width: 120px; max-height: 150px; }
.sc-edprevwrap span { position: absolute; left: 6px; top: -20px; font: 700 11px/16px Arial, sans-serif; color: #cbd5e0; }
.sc-edbottom { flex-direction: column; align-items: stretch; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.sc-edrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sc-edbtn { min-height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: transparent; color: #e2e8f0; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.sc-edbtn.is-on { background: #fff; color: #0f172a; border-color: #fff; }
.sc-edbtn.is-primary { background: var(--dt-acc); border-color: var(--dt-acc); color: #fff; padding: 0 22px; }
.sc-edbtn.is-link { border: 0; text-decoration: underline; color: #94a3b8; }
html.sc-noscroll, html.sc-noscroll body { overflow: hidden; }
@media (max-width: 900px) { .sc-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; } .sc-thumb { min-height: 150px; } }
/* phones: the main button stays on screen while you scroll through pages */
@media (max-width: 900px) {
    .dt.is-loaded .dt-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2950; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
    .dt.is-loaded { padding-bottom: 118px; }
    .dt.is-loaded .dt-summary { font-size: .76rem; }
}
html.app-mode .dt.is-loaded .dt-foot { padding-bottom: 10px; }
html.app-mode .dt.is-loaded .dt-foot { bottom: calc(var(--apx-tabs, 62px) + env(safe-area-inset-bottom, 0px)); }
/* Scan to PDF v2: separate crop / filter screens, live webcam */
.sc-editor[data-mode=crop] .sc-only-filter, .sc-editor[data-mode=filter] .sc-only-crop { display: none !important; }
.sc-editor[data-mode=filter] .sc-edcanvas { cursor: default; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); background: #fff; }
.sc-edstage.is-working::after { content: ""; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: dt-spin .8s linear infinite; }
.sc-edbtn.is-wide { min-width: min(320px, 100%); background: rgba(255, 255, 255, .08); }
.sc-ftag { position: absolute; left: 8px; top: 8px; z-index: 1; padding: 2px 7px; border-radius: 999px; background: rgba(26, 32, 44, .78); color: #fff; font-size: .66rem; font-weight: 700; }
.sc-thumb { position: relative; }
.sc-cam { position: fixed; inset: 0; z-index: 3300; display: flex; flex-direction: column; background: #000; color: #fff; }
.sc-camstage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sc-video { max-width: 100%; max-height: 100%; background: #111; }
.sc-cammsg { position: absolute; max-width: 460px; margin: 0 16px; padding: 14px 16px; border-radius: 12px; background: #1e293b; color: #e2e8f0; font-size: .92rem; line-height: 1.5; text-align: center; }
.sc-cambar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px)); background: #0b1220; }
.sc-camspacer { width: 140px; }
.sc-shutter { width: 70px; height: 70px; border: 5px solid #fff; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #0b1220; cursor: pointer; }
.sc-shutter:disabled { opacity: .35; cursor: default; }
.sc-shutter:active:not(:disabled) { transform: scale(.94); }
.sc-cam.is-flash .sc-camstage { animation: sc-flash .18s ease-out; }
@keyframes sc-flash { from { filter: brightness(2.2); } to { filter: none; } }
@media (max-width: 600px) { .sc-camspacer { width: 0; } }
/* PDF to Word: what-to-expect notice */
.pw-disclaimer { padding: 12px 14px; border: 1px solid #fbd38d; border-left: 4px solid #dd6b20; border-radius: 10px; background: #fffaf0; color: #5a3a12; font-size: .82rem; line-height: 1.5; }
.pw-disclaimer p { margin: 0; }
.pw-disc-title { font-weight: 800; font-size: .86rem; color: #7b341e; margin-bottom: 4px !important; }
.pw-disclaimer ul { margin: 4px 0 6px 1.1em; padding: 0; }
.pw-disclaimer li { margin: 3px 0; }
.pw-startnote { max-width: 640px; margin: .9rem auto 0; padding: 10px 14px; border-radius: 10px; background: #fffaf0; border: 1px solid #fbd38d; color: #5a3a12; text-align: center; }
/* Delete PDF Pages: delete in the preview, then download */
.dp-actions { display: flex; flex-direction: column; gap: 8px; }
.dp-delbtn { height: 44px; border-color: #feb2b2; color: #c53030; font-weight: 700; }
.dp-delbtn:hover:not(:disabled) { border-color: #c53030; background: #fff5f5; color: #9b2c2c; }
.dp-delbtn:disabled { opacity: .45; cursor: default; }
.dt-bar .cp-hgroup { margin-left: 2px; }
@media (max-width: 900px) {
    .dp-actions { flex-direction: row; }
    .dp-actions > button { flex: 1 1 0; min-width: 0; height: 46px; padding: 0 8px; font-size: .9rem; }
    .dt.is-loaded:has(.dp-foot) { padding-bottom: 128px; }
}
@media (max-width: 900px) {
    /* messages appear above the fixed button bar */
    .dt.is-loaded .dt-toast { bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
}
html.app-mode .dt.is-loaded .dt-toast { bottom: calc(var(--apx-tabs, 62px) + 132px); }
