/* The PDF tools (pdf-engine.js): Merge, Split, Page Extractor, Remove Pages, Rotate, Reorder Pages, Images to PDF, PDF to JPG, Page Duplicator, Metadata Viewer and Editor, Unlock, Protect and Text Counter. Loaded after tool.css. */
.pp-main {
  --g0: #2563c9; --g1: #a8327f; --g2: #a35200; --g3: #0d7357; --g4: #5f45c7; --g5: #b8323b;
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; align-content: start;
}
.pp-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pp-side { position: sticky; top: 0; }
.tk-toolbar .tk-note, .pp-main .tk-note { color: var(--text-2); }

/* choosing files */
.pp-drop { display: grid; justify-items: center; gap: 10px; padding: 34px 18px; border: 2px dashed var(--line-strong); border-radius: 16px; background: var(--panel); text-align: center; transition: border-color 0.15s, background-color 0.15s; }
.pp-drop.is-over { border-color: var(--accent); background: var(--info-bg); }
.pp-drop.is-small { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; align-items: center; padding: 12px 14px; text-align: start; }
.pp-art { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 20px; background: var(--info-bg); color: var(--accent); }
.pp-art svg { width: 38px; height: 38px; }
.pp-drop.is-small .pp-art { width: 42px; height: 42px; border-radius: 12px; }
.pp-drop.is-small .pp-art svg { width: 24px; height: 24px; }
.pp-drop h2 { margin: 2px 0 0; font-size: 19px; font-weight: 650; }
.pp-drop.is-small h2 { margin: 0; font-size: 15px; }
.pp-drop p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.pp-drop.is-small .pp-or, .pp-drop.is-small .pp-note { display: none; }
.pp-pick { position: relative; overflow: hidden; }
.pp-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.pp-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-veil { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(8, 14, 24, 0.55); color: #fff; font-size: 22px; font-weight: 650; pointer-events: none; }
.pp-veil.is-on { display: grid; }

/* headings and rows */
.pp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.pp-head h2 { margin: 0; font-size: 15px; }
.pp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pp-doc { min-width: 0; flex: 1 1 200px; display: grid; gap: 2px; }
.pp-docname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-docmeta, .pp-fmeta { color: var(--text-2); font-size: 12.5px; }
.pp-docmeta.is-err, .pp-fmeta.is-err { color: var(--msg-error); }
.pp-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.pp-quick-l { color: var(--text-2); font-size: 12.5px; margin-inline-end: 2px; }
.pp-hint { margin: 10px 0 0; }

/* the pages */
.pp-grid { --tile-h: 152px; display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 20px 16px; margin: 14px 0 0; padding: 10px 4px 4px; list-style: none; }
.pp-page { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 0; }
.pp-tile { position: relative; display: grid; place-items: center; width: 100%; height: var(--tile-h); padding: 6px; border: 2px solid transparent; border-radius: 10px; background: var(--panel-2); color: var(--text); cursor: pointer; transition: border-color 0.12s, background-color 0.12s; }
.pp-tile:hover { border-color: var(--line-strong); }
.pp-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pp-sheet { position: relative; display: grid; place-items: center; aspect-ratio: var(--ar, 0.7071); width: min(100%, calc((var(--tile-h) - 16px) * var(--ar, 0.7071))); background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); overflow: hidden; }
.pp-sheet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.pp-ph { color: #4e5d73; font-size: 20px; font-weight: 650; }
.pp-num { color: var(--text-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pp-mark { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; display: none; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 2px var(--panel); }
.pp-mark svg { width: 15px; height: 15px; }
.pp-page.is-on .pp-tile { border-color: var(--accent); background: var(--info-bg); }
.pp-page.is-on .pp-mark { display: grid; }
.pp-main[data-mode="remove"] .pp-page.is-on .pp-tile { border-color: var(--fail); background: var(--fail-bg); }
.pp-main[data-mode="remove"] .pp-page.is-on .pp-sheet { opacity: 0.4; }
.pp-main[data-mode="remove"] .pp-mark { background: var(--fail); color: #fff; }
:root[data-theme="light"] .pp-main[data-mode="remove"] .pp-mark { background: #c4302b; }
.pp-zoom { position: absolute; top: calc(var(--tile-h) - 38px); inset-inline-start: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(14, 22, 35, 0.78); color: #fff; opacity: 0; cursor: zoom-in; transition: opacity 0.12s; }
.pp-zoom svg { width: 17px; height: 17px; }
.pp-page:hover .pp-zoom, .pp-tile:focus-visible ~ .pp-zoom { opacity: 1; }
@media (hover: none) { .pp-zoom { opacity: 1; } }
/* split: each file has a color, a label on its first page and a dashed line where a file ends */
.pp-main[data-mode="split"] .pp-tile { border-color: var(--gc, transparent); }
.pp-main[data-mode="split"] .pp-page.is-out .pp-sheet { opacity: 0.35; }
.pp-chip { position: absolute; top: -10px; inset-inline-start: 8px; z-index: 1; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 8px; border-radius: 999px; background: var(--gc, var(--raised-2)); color: #fff; font-size: 11.5px; font-weight: 650; line-height: 18px; }
.pp-cut { position: absolute; top: 0; height: var(--tile-h); inset-inline-end: -10px; width: 4px; display: none; border-inline-end: 2px dashed var(--accent); }
.pp-cut i { position: absolute; top: 50%; inset-inline-end: -14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); transform: translateY(-50%); }
.pp-cut svg { width: 15px; height: 15px; }
.pp-page.is-cut .pp-cut { display: block; }
.pp-grid.is-cutting .pp-page:not(.is-last) .pp-tile:hover { border-color: var(--accent); }
.pp-grid.is-cutting .pp-page.is-last .pp-tile { cursor: default; }

/* merge: the list of files */
.pp-files { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pp-file { display: grid; grid-template-columns: auto 56px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.pp-file.is-drag { position: relative; z-index: 2; border-color: var(--accent); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6); }
.pp-grip { display: grid; place-items: center; width: 22px; height: 44px; color: var(--text-3); cursor: grab; touch-action: none; }
.pp-file.is-drag .pp-grip { cursor: grabbing; }
.pp-grip svg { width: 18px; height: 18px; }
.pp-fthumb { --tile-h: 72px; display: grid; place-items: center; width: 56px; height: 72px; padding: 0; border: 0; border-radius: 6px; background: var(--raised); cursor: zoom-in; overflow: hidden; }
.pp-fthumb .pp-sheet { width: min(52px, calc(68px * var(--ar, 0.7071))); }
.pp-fthumb .pp-ph { font-size: 13px; }
.pp-fthumb:disabled { cursor: default; }
.pp-finfo { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.pp-fname { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pp-frange { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pp-frange label { color: var(--text-2); font-size: 12.5px; }
.pp-frange .pp-text { width: 170px; height: 30px; }
.pp-fbtns { display: flex; align-items: center; gap: 2px; }
.pp-ib { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; }
.pp-ib:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.pp-ib.x:hover:not(:disabled) { color: var(--fail); }
.pp-ib:disabled { opacity: 0.35; cursor: default; }
.pp-ib svg { width: 18px; height: 18px; }

/* fields */
.pp-set { display: grid; gap: 14px; }
.pp-field { display: grid; gap: 6px; }
.pp-field > label, .pp-modes legend { color: var(--text-2); font-size: 13px; }
.pp-text { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel-2); color: var(--text); font: inherit; }
.pp-text:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pp-text[aria-invalid="true"] { border-color: var(--fail); }
.pp-text:disabled { opacity: 0.5; }
.pp-small { width: 110px; }
.pp-err { margin: 0; color: var(--msg-error); font-size: 12.5px; line-height: 1.45; }
.pp-err:empty { display: none; }
.pp-field .tk-note { margin: 0; }
.pp-modes { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pp-modes legend { padding: 0; margin-bottom: 6px; }
.pp-radio { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); font-size: 13.5px; cursor: pointer; }
.pp-radio:hover { border-color: var(--line-strong); }
.pp-radio:has(input:checked) { border-color: var(--accent); background: var(--info-bg); }
.pp-radio input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--accent); }
.pp-sum { margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.45; }
.pp-sum.is-why { color: var(--text-2); }
.pp-sum.is-err { color: var(--msg-error); }
.pp-go { width: 100%; height: auto; min-height: 44px; padding-block: 8px; white-space: normal; text-align: center; line-height: 1.3; }
.pp-progress { height: 8px; border-radius: 4px; background: var(--raised); overflow: hidden; direction: ltr; }
.pp-progress i { display: block; width: 0; height: 100%; background: var(--accent); transition: width 0.2s; }
#status { margin: 0; }
#status:empty { display: none; }

/* the new files */
.pp-outs { display: grid; gap: 6px; max-height: 340px; margin: 10px 0 0; padding: 0; overflow: auto; list-style: none; }
.pp-out { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 0 10px; align-items: center; padding: 7px 8px; border-radius: 9px; background: var(--panel-2); }
.pp-out-ic { grid-row: 1 / span 2; color: var(--fail); }
.pp-out-ic svg { width: 22px; height: 22px; display: block; }
.pp-out-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.pp-out-meta { grid-column: 2; color: var(--text-2); font-size: 12px; }
.pp-out .tk-btn { grid-row: 1 / span 2; grid-column: 3; text-decoration: none; }
.pp-out .tk-btn svg { width: 15px; height: 15px; }
.pp-out-more { padding: 4px 8px; }
.pp-stale { margin-top: 10px; }
.pp-private { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-2); font-size: 12px; }
.pp-private svg { width: 16px; height: 16px; flex: none; color: var(--pass); }

/* a locked file */
.pp-lock { display: grid; gap: 8px; max-width: 440px; margin: 12px 0 0; padding: 14px; border: 1px solid rgba(243, 185, 77, 0.35); border-radius: 12px; background: var(--warn-bg); }
.pp-file .pp-lock { margin: 4px 0 0; padding: 10px; }
.pp-lock-t { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--msg-warn); font-weight: 600; font-size: 13.5px; }
.pp-lock-t svg { width: 18px; height: 18px; flex: none; }
.pp-lock label { color: var(--text-2); font-size: 13px; }
.pp-lock .pp-row { flex-wrap: nowrap; }
.pp-lock .pp-text { flex: 1; min-width: 0; }
.pp-lock .tk-note { margin: 0; }

/* the preview */
.pp-view { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 10, 18, 0.62); }
:root[data-theme="light"] .pp-view { background: rgba(10, 20, 40, 0.42); }
.pp-view[hidden] { display: none; }
.pp-view-box { width: min(980px, 100%); height: 100%; max-height: 1100px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--panel); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.65); overflow: hidden; }
.pp-view-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; padding-inline-start: 16px; border-bottom: 1px solid var(--line); }
.pp-view-head h2 { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.pp-view-head .pp-row { flex-wrap: nowrap; gap: 6px; }
.pp-view-head .tk-btn { width: 36px; padding: 0; }
[dir="rtl"] .pp-view-nav svg { transform: scaleX(-1); }
.pp-view-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 14px; overflow: hidden; background: var(--stage); touch-action: pan-y pinch-zoom; }
.pp-view-stage canvas { display: block; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
.pp-view-stage .tk-note { max-width: 40ch; text-align: center; }
.pp-view-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 16px; border-top: 1px solid var(--line); }
.pp-view-foot .tk-note { margin: 0; }

@media (max-width: 900px) {
  .pp-main { grid-template-columns: minmax(0, 1fr); }
  .pp-side { position: static; }
  .pp-grid { max-height: 62vh; overflow: auto; }
}
@media (max-width: 520px) {
  .pp-drop.is-small { grid-template-columns: auto minmax(0, 1fr); }
  .pp-drop.is-small .pp-pick { grid-column: 1 / -1; }
  .pp-grid { --tile-h: 128px; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 18px 12px; }
  .pp-file { grid-template-columns: auto 48px minmax(0, 1fr); }
  .pp-fbtns { grid-column: 1 / -1; justify-content: flex-end; }
  .pp-frange .pp-text { width: 100%; }
  .pp-view { padding: 0; }
  .pp-view-box { border-radius: 0; border: 0; max-height: none; }
}

/* ---------- added with Rotate PDF, Reorder PDF Pages, Images to PDF and PDF to JPG ---------- */
/* a turned picture inside a sheet that already has the turned shape (pdf-engine.js turnImg) */
.pp-sheet.is-turned img, .pp-pic img { inset: auto; left: 50%; top: 50%; object-fit: fill; transform-origin: 50% 50%; }
.pp-sheet.is-turned img { transition: transform 0.18s ease-out; }
.pp-sheet.is-turned { transition: width 0.18s ease-out; }
.pp-page.is-turned .pp-num::after { content: " \21bb"; color: var(--accent); }
[dir="rtl"] .pp-page.is-turned .pp-num::after { content: "\21ba "; }
/* Rotate: the two turn buttons on a page (mouse and touch; the keyboard uses R and L) */
.pp-turns { position: absolute; top: calc(var(--tile-h) - 38px); inset-inline-end: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.12s; }
.pp-turn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(14, 22, 35, 0.78); color: #fff; cursor: pointer; }
.pp-turn:hover { background: var(--accent); color: var(--accent-ink); }
.pp-turn svg { width: 17px; height: 17px; }
.pp-page:hover .pp-turns, .pp-tile:focus-visible ~ .pp-turns { opacity: 1; }
@media (hover: none) { .pp-turns { opacity: 1; } }
.pp-rot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pp-rot .tk-btn { height: auto; min-height: 40px; padding: 6px 8px; flex-direction: column; gap: 2px; white-space: normal; text-align: center; line-height: 1.2; font-size: 12.5px; }
.pp-rot .tk-btn svg { width: 20px; height: 20px; }
.pp-rot-reset { justify-self: start; }
/* Reorder: a page being dragged, and the copy that follows the pointer */
.pp-main[data-mode="reorder"] .pp-tile { cursor: grab; touch-action: pan-y; }
.pp-page.is-moved .pp-tile { border-color: var(--line-strong); }
.pp-page.is-moved .pp-num { color: var(--accent); font-weight: 650; }
.pp-page.is-drag .pp-tile { border: 2px dashed var(--accent); background: var(--info-bg); }
.pp-page.is-drag .pp-sheet { opacity: 0.25; }
.pp-grid.is-dragging .pp-tile { cursor: grabbing; }
.pp-grid.is-dragging .pp-zoom { opacity: 0 !important; }
.pp-ghost { position: fixed; top: 0; left: 0; z-index: 800; pointer-events: none; opacity: 0.92; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45)); }
.pp-ghost .pp-sheet { width: 100%; }
/* Images to PDF: the small page with the picture on it */
.pp-sheet.is-page { overflow: hidden; }
.pp-pic { position: absolute; display: block; overflow: hidden; }
.pp-pic img { position: absolute; display: block; }
.pp-fthumb .pp-ph svg { width: 22px; height: 22px; color: #4e5d73; }
.pp-file .pp-fbtns { flex-wrap: wrap; justify-content: flex-end; max-width: 172px; }
.pp-out-ic.is-pic { color: var(--accent); }
/* sliders with their value */
.pp-q { display: flex; align-items: center; gap: 10px; }
.pp-q input { flex: 1; min-width: 0; }
.pp-q output { min-width: 52px; text-align: end; font-variant-numeric: tabular-nums; font-weight: 600; }
.pp-modes:disabled { opacity: 0.5; }
.pp-modes:disabled .pp-radio { cursor: default; }
.pp-field .tk-select { max-width: none; width: 100%; }
@media (prefers-reduced-motion: reduce) { .pp-sheet.is-turned img, .pp-sheet.is-turned { transition: none; } }
.pp-main[data-mode="reorder"] .pp-sheet img { -webkit-user-drag: none; user-select: none; }

/* ---------- added with Page Duplicator, Metadata Viewer and Editor, Unlock, Protect and Text Counter ---------- */
/* the card about the file: the first page and what the tool shows */
.pp-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 14px; }
.pp-cover { --tile-h: 150px; display: grid; place-items: center; width: 112px; height: 150px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); cursor: zoom-in; }
.pp-cover:hover { border-color: var(--line-strong); }
.pp-cover .pp-sheet { width: min(100%, calc(136px * var(--ar, 0.7071))); }
.pp-card-body { min-width: 0; display: grid; gap: 12px; align-content: start; }
.pp-h3 { margin: 0; font-size: 14px; font-weight: 650; color: var(--text); }
#infoArea > div + div { margin-top: 18px; }
/* lists of details: a name and its value on each row */
.pp-props { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.pp-prop { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 4px 14px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.pp-prop dt { color: var(--text-2); font-size: 13px; }
.pp-prop dd { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.pp-none { color: var(--text-3); font-style: italic; }
.pp-prop.is-diff dd { color: var(--msg-warn); font-weight: 600; }
.pp-prop.is-diff dd::before { content: "\2022\00a0"; }
.pp-facts .pp-prop { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
.pp-facts.is-busy dd { color: var(--text-2); }
.pp-xmp-note { margin: 0; }
/* tables (fonts, words per page) */
.pp-table-wrap { max-height: 420px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; }
.pp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pp-table th, .pp-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: start; }
.pp-table thead th { position: sticky; top: 0; z-index: 1; background: var(--panel-2); color: var(--text-2); font-weight: 600; font-size: 12.5px; }
.pp-table tbody th { font-weight: 500; }
.pp-table tbody tr:last-child > * { border-bottom: 0; }
.pp-table td { font-variant-numeric: tabular-nums; }
.pp-table td.is-warn { color: var(--msg-warn); font-weight: 600; }
.pp-count td, .pp-count thead th:not(:first-child) { text-align: end; }
.pp-count tr.is-out > * { opacity: 0.45; }
.pp-count tr.is-empty td { color: var(--msg-warn); }
.pp-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.pp-link:hover { text-decoration-thickness: 2px; }
.pp-count-note { margin: 14px 0 0; color: var(--msg-warn); font-size: 13px; line-height: 1.45; }
.pp-count-note:empty { display: none; }
/* Metadata Editor: the form */
.pp-meta { display: grid; gap: 14px; }
.pp-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; }
.pp-mgrid > .pp-field { align-content: start; }
.pp-meta .tk-check { margin-top: 4px; }
.pp-meta input[type="datetime-local"] { min-width: 0; }
:root:not([data-theme="light"]) .pp-meta input[type="datetime-local"] { color-scheme: dark; }
.pp-custom .pp-row { flex-wrap: nowrap; }
.pp-custom .pp-text { flex: 1; min-width: 0; }
.pp-custom label { overflow-wrap: anywhere; }
.pp-custom.is-gone label { text-decoration: line-through; color: var(--text-3); }
.pp-custom.is-gone .pp-text { opacity: 0.45; }
/* Unlock and Protect: how the file is protected now */
.pp-prot { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; }
.pp-prot-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--pass-bg, rgba(69, 212, 154, 0.14)); color: var(--pass); }
.pp-prot-ic.is-on { background: var(--warn-bg); color: var(--msg-warn); }
.pp-prot-ic svg { width: 24px; height: 24px; }
.pp-prot-t { display: grid; gap: 6px; min-width: 0; }
.pp-prot-t .pp-h3 { line-height: 1.4; }
.pp-prot-l { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.pp-limits { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.pp-limits li { display: flex; align-items: center; gap: 8px; }
.pp-limits svg { width: 14px; height: 14px; flex: none; color: var(--fail); }
.pp-prot-t .tk-note { margin: 0; }
/* Protect: the switches of what people can do */
.pp-allow { gap: 10px; }
.pp-allow .tk-check { font-size: 13.5px; color: var(--text); }
.pp-set > .tk-check { justify-self: start; }
.pp-set > .tk-msg, .pp-set > .tk-note { margin: 0; }
@media (max-width: 520px) {
  .pp-card { grid-template-columns: minmax(0, 1fr); }
  .pp-cover { justify-self: start; }
  .pp-prop { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pp-facts .pp-prop { grid-template-columns: minmax(0, 1fr); }
}
