.pt h1 { margin-bottom: 0.25rem; }
.pt-tag, .pt-hint { color: #a8a397; }
.pt-hint { font-size: 0.85rem; margin: 0.25rem 0; }
.pt-drop { display: block; border: 2px dashed #b9b4a6; border-radius: 10px; padding: 2rem 1rem; text-align: center; cursor: pointer; margin: 1rem 0; }
.pt-drop.over { background: #f3efe3; border-color: #0b7d88; }
.pt-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.5rem 0; }
.pt button { color: #101010; padding: 0.4rem 0.75rem; border: 1px solid #b9b4a6; border-radius: 6px; background: #fff; cursor: pointer; font: inherit; }
.pt button.pt-main { background: #2ee6d6; color: #101010; border-color: #2ee6d6; font-weight: 600; }
.pt button:disabled { opacity: 0.5; cursor: wait; }
.pt-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.pt-page { color: #101010; border: 2px solid #ddd8ca; border-radius: 8px; padding: 6px; text-align: center; cursor: pointer; background: #fff; }
.pt-page.sel { border-color: #0b7d88; background: #f3efe3; }
.pt-thumb { height: 190px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pt-thumb canvas { max-width: 140px; max-height: 180px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s; }
.pt-page .pt-num { display: block; font-size: 0.85rem; margin: 4px 0; }
.pt-page button { padding: 0.15rem 0.6rem; font-size: 0.8rem; }
.pt-save { border-top: 1px solid #ddd8ca; margin-top: 1rem; padding-top: 0.75rem; }
.pt-save label { margin-right: 1rem; }
.pt-editor { color: #101010; border: 1px solid #ddd8ca; border-radius: 10px; padding: 0.75rem; margin: 1rem 0; background: #faf8f2; }
.pt-stage { overflow: auto; max-height: 80vh; }
.pt-stage canvas { display: block; max-width: none; cursor: crosshair; touch-action: none; box-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.pt-sigbox canvas { border: 1px solid #b9b4a6; background: #fff; touch-action: none; vertical-align: middle; }
.pt input[type=text], .pt input[type=number] { padding: 0.3rem; font: inherit; }
.pt input[type=number] { width: 4.5em; }
.pt-status { min-height: 1.5em; }
.pt-status.pt-err { color: #a3261b; }
.pt-editor .pt-hint { color: #6b6b66; }
.pt-drop.over { color: #101010; }
