.converter-container:has(.pa-studio) { width: 100%; max-width: 1440px; }
.pa-studio { background: var(--paper, #fffef9); color: var(--ink, #252331); border: 2px solid var(--line, #252331); border-radius: 12px; box-shadow: 4px 4px 0 var(--shade, #252331); overflow: hidden; text-align: left; }
.pa-studio *, .pa-studio *::before, .pa-studio *::after { box-sizing: border-box; }
.pa-studio [hidden] { display: none !important; }
.pa-studio button, .pa-studio select, .pa-studio input, .pa-studio a { font: inherit; font-size: 13px; color: inherit; border: 1px solid var(--border-soft, #a59bad); border-radius: 5px; background: var(--field, #fff); padding: 8px 10px; min-height: 38px; min-width: 0; }
.pa-studio button, .pa-studio a { cursor: pointer; font-weight: 650; text-decoration: none; }
.pa-studio button:hover:not(:disabled), .pa-studio a:hover { background: var(--dark-paper-3, #ece3ff); }
.pa-studio button:disabled, .pa-studio input:disabled, .pa-studio select:disabled { opacity: .5; cursor: not-allowed; }
.pa-studio :focus-visible { outline: 3px solid #7951d4; outline-offset: 2px; }
.pa-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px; background: var(--pastel-lavender, #d9caff); border-bottom: 2px solid var(--line, #252331); }
.pa-heading h2 { font-size: 22px; margin: 0 0 4px; }
.pa-heading p, .pa-footer p { font-size: 13px; margin: 0; line-height: 1.6; }
.pa-file { max-width: 100%; font-size: 13px; font-weight: 700; }
.pa-file input { display: block; width: 100%; max-width: 320px; margin-top: 6px; }
.pa-file span { display: block; margin-top: 5px; font-size: 12px; font-weight: 450; max-width: 320px; overflow-wrap: anywhere; }
.pa-toolbar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--dark-border-soft, #ded8e5); }
.pa-toolbar label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 650; min-width: 0; }
.pa-toolbar input[type=number] { width: 105px; }
.pa-toolbar input[type=color] { padding: 3px; width: 52px; }
.pa-toolbar .pa-text-label { flex: 1; min-width: min(220px, 100%); }
.pa-pagebar { padding: 10px 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--dark-border-soft, #ded8e5); }
.pa-pagebar label, .pa-pagebar span { font-size: 13px; }
.pa-pagebar span { margin-left: auto; color: var(--dark-ink-soft, #615a6b); }
.pa-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; }
.pa-preview { min-width: 0; padding: 24px; min-height: 480px; max-height: 900px; overflow: auto; background: var(--dark-paper-3, #e8e8ed); }
.pa-preview > p { text-align: center; margin-top: 100px; font-size: 14px; }
.pa-surface { position: relative; margin: 0 auto; width: 100%; max-width: 1000px; box-shadow: 0 4px 22px #25233125; background: white; }
.pa-surface canvas { display: block; width: 100%; height: auto; }
.pa-surface svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.pa-sidebar { min-width: 0; border-left: 1px solid var(--dark-border-soft, #ded8e5); padding: 16px; }
.pa-sidebar h3 { margin: 0; font-size: 14px; }
.pa-help, .pa-note { font-size: 12px; line-height: 1.65; color: var(--dark-ink-soft, #625a70); }
.pa-help { margin: 10px 0 14px; }
.pa-edits { display: flex; flex-wrap: wrap; gap: 6px; }
.pa-edits button { font-size: 12px; padding: 7px; }
.pa-list { list-style: none; padding: 0; margin: 16px 0 0; max-height: 440px; overflow: auto; }
.pa-list li { margin: 0 0 6px; }
.pa-list button { width: 100%; text-align: left; overflow-wrap: anywhere; }
.pa-list button[aria-pressed=true] { background: var(--dark-action-tint, #eee4ff); border-color: #7951d4; }
.pa-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--dark-border-soft, #ded8e5); }
.pa-footer p { max-width: 620px; }
.pa-footer > div { display: flex; flex-wrap: wrap; gap: 10px; }
.pa-studio .pa-export, .pa-studio [data-pa=download] { background: var(--action, #7046cf); color: white; border-color: var(--line, #252331); box-shadow: 2px 2px 0 var(--shade, #252331); }
.pa-studio .pa-export:hover:not(:disabled), .pa-studio [data-pa=download]:hover { background: var(--action-hover, #5c32b6); }
.pa-status { margin: 0; padding: 0 20px 12px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.pa-status[data-error=true] { color: var(--dark-error, #b52431); }
.pa-note { margin: 0; padding: 0 20px 18px; }
@media (max-width: 850px) { .pa-layout { grid-template-columns: minmax(0, 1fr); } .pa-sidebar { border-left: 0; border-top: 1px solid var(--dark-border-soft, #ded8e5); } .pa-list { max-height: 190px; } .pa-preview { max-height: 720px; } }
@media (max-width: 550px) { .pa-heading, .pa-toolbar, .pa-pagebar, .pa-footer { padding: 14px; } .pa-preview { padding: 12px; min-height: 300px; max-height: 600px; } .pa-toolbar .pa-text-label { flex-basis: 100%; } .pa-heading h2 { font-size: 20px; } .pa-footer > div, .pa-export { width: 100%; } .pa-status, .pa-note { padding-inline: 14px; } }

/* Space the page holds for this view until it mounts (see .tool-view-placeholder in _workspace.css).
   Each height is a little under the space the view takes at that width, measured as how far the
   content below moves when the view replaces the placeholder, so nothing below it moves. Re-measure
   after changing the view's layout: node scripts/measure-tool-views.js --apply pdf-annotator. */
.tool-view-placeholder[data-tool="pdf-annotator"] { min-height: 896px; }
@media (max-width: 976px) { .tool-view-placeholder[data-tool="pdf-annotator"] { min-height: 947px; } }
@media (max-width: 848px) { .tool-view-placeholder[data-tool="pdf-annotator"] { min-height: 1094px; } }
@media (max-width: 784px) { .tool-view-placeholder[data-tool="pdf-annotator"] { min-height: 1151px; } }
@media (max-width: 728px) { .tool-view-placeholder[data-tool="pdf-annotator"] { min-height: 1217px; } }
@media (max-width: 640px) { .tool-view-placeholder[data-tool="pdf-annotator"] { min-height: 1261px; } }
@media (max-width: 628px) { .tool-view-placeholder[data-tool="pdf-annotator"] { min-height: 1311px; } }
@media (max-width: 551px) { .tool-view-placeholder[data-tool="pdf-annotator"] { min-height: 1134px; } }
@media (max-width: 428px) { .tool-view-placeholder[data-tool="pdf-annotator"] { min-height: 1154px; } }
@media (max-width: 396px) { .tool-view-placeholder[data-tool="pdf-annotator"] { min-height: 1248px; } }
@media (max-width: 384px) { .tool-view-placeholder[data-tool="pdf-annotator"] { min-height: 1319px; } }
@media (max-width: 340px) { .tool-view-placeholder[data-tool="pdf-annotator"] { min-height: 1350px; } }
@media (max-width: 328px) { .tool-view-placeholder[data-tool="pdf-annotator"] { min-height: 1415px; } }
