.pdf-editor { position: fixed; inset: 0; width: min(1200px, 100vw); height: 96dvh; max-width: 100vw; max-height: 100dvh; padding: 0; margin: auto; color: #eef4fb; background: #101925; border: 1px solid #49617d; border-radius: 12px; }
.pdf-editor[open] { display: flex; flex-direction: column; }
.pdf-editor::backdrop { background: #040a12dd; }
.pdf-editor-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.pdf-editor-header strong, .pdf-editor-header small { display: block; }
.pdf-editor-header small { color: #b7c7d9; margin-top: 3px; }
.pdf-editor button, .pdf-editor select, .pdf-editor a { min-height: 44px; touch-action: manipulation; }
.pdf-editor .ghost { border: 1px solid #57718e; background: #1a293b; color: #eef4fb; padding: 8px 12px; border-radius: 7px; }
.pdf-editor button:disabled { opacity: .5; cursor: default; }
.pdf-editor button[aria-pressed="true"] { background: #155ca1; }
.pdf-editor :focus-visible { outline: 3px solid #87d4ff; outline-offset: 2px; }
.pdf-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 16px; }
.pdf-editor-toolbar select { width: auto; background: #1a293b; color: #fff; }
.pdf-editor-status { margin: 0; padding: 8px 16px; font-size: 14px; color: #c3ddfa; }
.pdf-editor-scroller { flex: 1; min-height: 120px; overflow: auto; padding: 12px; overscroll-behavior: contain; background: #334254; }
.pdf-editor-page { position: relative; background: white; margin: 0 auto; flex-shrink: 0; }
.pdf-editor-page canvas { display: block; }
.pdf-editor .pdf-sheet-value { position: absolute; min-height: 0; min-width: 0; padding: 0 1px; margin: 0; border: 1px solid #267bc6aa; border-radius: 0; background: #d6ecffcc; color: #061a2b; font-family: Arial, sans-serif; line-height: 1; overflow: hidden; white-space: pre-wrap; text-align: left; box-shadow: none; }
.pdf-editor .pdf-sheet-value.selected { background: #8ac9ffdd; outline: 2px solid #0066bf; z-index: 2; }
.pdf-editor-field { padding: 10px 16px; border-top: 1px solid #49617d; display: flex; flex-wrap: wrap; align-items: end; gap: 10px; max-height: 30dvh; overflow: auto; }
.pdf-editor-field p { margin: 0; font-size: 14px; }
.pdf-editor-field label { display: flex; flex: 1; min-width: 160px; flex-direction: column; gap: 4px; color: #fff; font-size: 14px; overflow-wrap: anywhere; }
.pdf-editor-field input, .pdf-editor-field textarea, .pdf-editor-field select { width: 100%; min-height: 44px; padding: 10px; font-size: 16px; color: #101925; background: #fff; border: 1px solid #9cc3e7; border-radius: 6px; }
.pdf-editor-footer { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
.pdf-editor-footer small { width: 100%; color: #b7c7d9; font-size: 12px; }
@media (max-width: 600px) { .pdf-editor { height: 100dvh; border-radius: 0; } .pdf-editor-header { padding: 8px 10px; } .pdf-editor-toolbar { padding: 0 10px; gap: 4px; } .pdf-editor-toolbar .ghost { font-size: 12px; padding: 5px 7px; } .pdf-editor-field, .pdf-editor-footer { padding-inline: 10px; } .pdf-editor-footer .ghost { flex: 1; font-size: 12px; } }
