/* Styles of the PDF editor (/tools/pdf-editor), loaded only on that page. Uses the shared design tokens. */
.pdf-studio { display: grid; gap: 1rem; min-width: 0; }
.pdf-open { padding: 16px; border: 2px dashed var(--line-strong); border-radius: var(--r-sm); }
.pdf-open.is-over { border-color: var(--brand); background: var(--band); }
.pdf-workspace { display: grid; gap: .75rem; min-width: 0; }
.pdf-toolbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.pdf-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pdf-actions { margin-left: auto; }
.pdf-toolbar .btn[aria-pressed="true"], .pdf-dialog .btn[aria-pressed="true"] { background: var(--brand); color: var(--brand-fg); border-color: var(--brand); }
.pdf-toolbar .btn:disabled { opacity: .5; cursor: default; }
.pdf-page-input { width: 5rem; }
.pdf-props { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px 12px; min-width: 0; }
.pdf-props[hidden] { display: none; }
.pdf-props-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.pdf-prop-text { flex: 1 1 16rem; min-width: 0; }
.pdf-range { display: block; width: 10rem; height: 2.25rem; }
.pdf-stage { overflow: auto; max-height: 75vh; padding: 12px; background: var(--band); border: 1px solid var(--line); border-radius: var(--r-sm); }
.pdf-sheet { position: relative; margin: 0 auto; width: max-content; background: #fff; box-shadow: var(--shadow-3); line-height: 0; }
.pdf-layer { position: absolute; inset: 0; overflow: hidden; line-height: normal; }
.pdf-textlayer { pointer-events: none; }
.pdf-hit { position: absolute; pointer-events: auto; padding: 0; border: 1px dashed transparent; background: rgb(37 64 217 / 8%); cursor: pointer; }
.pdf-hit:hover, .pdf-hit:focus-visible { border-color: #2540d9; background: rgb(37 64 217 / 18%); }
.pdf-item { position: absolute; padding: 0; border: 0; transform-origin: 0 100%; cursor: move; touch-action: none; user-select: none; outline: 1px dashed rgb(37 64 217 / 45%); }
.pdf-item.is-selected { outline: 2px solid #2540d9; }
.pdf-item img { display: block; width: 100%; height: 100%; pointer-events: none; }
.pdf-item-text { font-family: "Inter PDF", sans-serif; line-height: 1.2; white-space: pre; background: transparent; }
.pdf-item-cover { cursor: default; outline-color: transparent; }
.pdf-sign[hidden] { display: none; }
.pdf-accept { display: flex; align-items: flex-start; gap: 8px; font-size: .875rem; }
.pdf-accept input { margin-top: 4px; }
.pdf-code { max-width: 12rem; letter-spacing: .4em; font-size: 1.25rem; }
.pdf-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); margin: auto; color: var(--ink); background: var(--surface); }
.pdf-dialog::backdrop { background: rgb(5 9 38 / 55%); }
.pdf-pad { display: block; width: 100%; height: auto; margin: 6px 0 0; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm); touch-action: none; cursor: crosshair; }
.pdf-typed { font-family: "Segoe Script", "Brush Script MT", "Dancing Script", cursive; font-size: 1.75rem; }
.pdf-legal summary { cursor: pointer; }
