/* pagetools: the page grid and the PDF picker. Class names start with pt-. */
.pt-info { padding: 12px 16px 0; font-size: 14px; }
.pt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 12px 14px 20px; }
.pt-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pt-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.pt-choose { position: relative; display: block; width: 100%; padding: 10px; border: 0; background: var(--surface-2); cursor: pointer; }
.pt-pic { height: 170px; display: grid; place-items: center; }
.pt-pic img { max-width: 100%; max-height: 170px; display: block; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.pt-no { position: absolute; left: 8px; top: 8px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--btn, #36454f); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.pt-card.on .pt-no { background: var(--accent); }
.pt-row { display: flex; justify-content: space-between; padding: 2px; }
.pt-row .dp-tool { min-width: 40px; height: 44px; padding: 0; }
.pt-row .dp-tool:disabled { opacity: .3; }
.pt-row .dp-tool svg.ico { width: 22px; height: 22px; }
.pt-pick { display: flex; flex-direction: column; gap: 8px; }
.pt-pickrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pt-pickrow.on { border-color: var(--accent); background: var(--accent-soft); }
.pt-num { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; }
.pt-pickrow.on .pt-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pt-pname { min-width: 0; }
.pt-pname b, .pt-pname span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-splitat { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.pt-splitat label { flex: 1; min-width: 140px; }
.pt-splitat label b { display: block; margin-bottom: 6px; }
.pt-at { max-width: 110px; }
.dp-choice:disabled { opacity: .5; }
