/* PDF 刪除頁面 */
.pd-grid { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pd-card { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; padding: 10px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.pd-card:hover { border-color: var(--brand); }
.pd-card:focus-visible { outline: 3px solid #93b4ff; outline-offset: 2px; }
.pd-card[aria-pressed="true"] { border-color: var(--bad); background: #fef2f2; }
.pd-box { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; background: #f1f3f6; border-radius: 6px; overflow: hidden; }
.pd-thumb { max-width: 128px; max-height: 128px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.pd-card[aria-pressed="true"] .pd-thumb { opacity: .45; }
.pd-card[aria-pressed="true"] .pd-box::after { content: "✕"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--bad); font-weight: 700; }
.pd-lab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; font-size: .95rem; min-height: 1.4em; }
.pd-state { color: var(--bad); font-weight: 600; }
#pd-info { font-weight: 600; overflow-wrap: anywhere; }
#pd-range { min-height: 48px; }
@media (max-width: 480px) {
  .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pd-card { padding: 8px; }
}
