/* The tool shell/header/footer remain managed by AmpCub Platform. */
.pdf-text-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
.pdf-text-layout > * { min-width: 0; }
.pdf-text-layout .file-list:empty { display: none; }
.pdf-text-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.pdf-text-actions .button { min-height: 42px; }
.pdf-text-checkbox { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); }
.pdf-text-checkbox input { accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }
.pdf-text-warning { margin: 14px 0 0; background: #fff5df; border: 1px solid #e5cf9d; padding: 12px; border-radius: 12px; font-size: 13px; line-height: 1.6; color: #77582d; }
.pdf-text-editor { display: block; box-sizing: border-box; width: 100%; min-height: 390px; padding: 14px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); font: 14px/1.75 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; overflow: auto; }
.pdf-text-editor:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pdf-text-meta { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.pdf-text-result h2 { margin: 0 0 8px; }
.pdf-text-result .control-hint { margin: 0 0 14px; }
.pdf-text-result .pdf-text-actions { margin-top: 14px; }
.pdf-text-note { margin-top: 16px; }
@media (max-width: 780px) {
  .pdf-text-layout { grid-template-columns: minmax(0, 1fr); }
  .pdf-text-editor { min-height: 300px; }
}
@media (max-width: 380px) {
  .pdf-text-actions .button { flex: 1 1 auto; }
  .pdf-text-editor { min-height: 260px; padding: 10px; }
}
