/* Converter workspace only. Shared document styles remain in styles.css. */
.converter-root { background: #f6f9f8; }
.converter-page { --ink: #233b35; --muted: #62746e; --line: #dce5e0; --mint-deep: #287d62; --shadow: none; background: #f6f9f8; }
.converter-page .app-shell { width: min(1440px, calc(100% - 64px)); padding: 0 0 32px; }
.converter-page .site-header { min-height: 80px; margin: 0 0 24px; border-bottom: 1px solid var(--line); gap: 16px; }
.converter-page .site-brand { font-size: 1.25rem; }
.converter-page .app-layout { display: grid; grid-template-columns: 204px minmax(0, 1fr); gap: 38px; align-items: start; }
.converter-page .control-panel { position: sticky; top: 24px; display: block; padding: 0 24px 0 0; min-width: 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; background: none; backdrop-filter: none; }
.converter-page .navigation-caption { margin: 8px 0 18px 12px; color: #74827d; font-size: .75rem; font-weight: 700; }
.converter-page .mode-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.converter-page .mode-button { display: flex; align-items: center; text-align: left; min-height: 50px; padding: 12px; gap: 11px; border: 1px solid transparent; border-radius: 6px; color: #526760; background: transparent; font-size: .875rem; font-weight: 600; line-height: 1.5; }
.converter-page .mode-button:hover { background: #eaf0ed; color: #233b35; }
.converter-page .mode-button.is-active { background: #dcefe6; border-color: #c5e4d3; color: #1d6048; font-weight: 700; }
.converter-page .mode-button:nth-child(4) { margin-top: 18px; }
.converter-page .mode-button [data-icon] { color: #6b8a7d; flex: 0 0 20px; }
.converter-page .mode-button:nth-child(n+4) [data-icon] { color: #687f9a; }
.converter-page .mode-button.is-active [data-icon] { color: #287d62; }
.converter-page .navigation-bottom { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 8px; margin: 60px 8px 0; color: #6d7d74; font-size: .75rem; }
.converter-page .navigation-bottom a { grid-column: 2; color: #667b72; text-underline-offset: 3px; font-size: .75rem; }
.converter-page .workspace { min-width: 0; gap: 18px; padding-bottom: 8px; }
.converter-page .workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-width: 0; padding: 4px 0 10px; }
.converter-page .workspace-category { margin: 0 0 5px; color: #6f857b; font-size: .75rem; font-weight: 600; }
.converter-page .workspace-heading h1 { font-size: 1.875rem; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.converter-page .tool-help { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; color: #60786c; min-height: 44px; font-size: .8125rem; text-decoration: none; }
.converter-page .tool-help:hover { color: #245c46; text-decoration: underline; }
.converter-page .upload-panel { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; min-height: 130px; padding: 24px; gap: 18px; background: #edf5f1; border: 1px dashed #accbbd; border-radius: 8px; box-shadow: none; backdrop-filter: none; transition: background 150ms, border-color 150ms; }
.converter-page .upload-panel.is-dragging { transform: none; background: #daede2; border: 2px solid #287d62; }
.converter-page .upload-symbol { display: grid; place-items: center; width: 50px; height: 54px; flex: 0 0 50px; border: 1px solid #d3e4da; background: #fff; color: #4b8a6e; border-radius: 6px; }
.converter-page .upload-symbol .icon { width: 25px; height: 25px; }
.converter-page .upload-main { flex: 1 1 180px; min-width: 0; }
.converter-page .upload-main > strong { display: block; font-size: .9375rem; font-weight: 700; line-height: 1.6; }
.converter-page .upload-caption { font-size: .8125rem; font-weight: 500; margin-top: 4px; line-height: 1.6; }
.converter-page .upload-selection { margin: 6px 0 0; font-size: .8125rem; color: #2c6f53; font-weight: 600; }
.converter-page .upload-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.converter-page .upload-button { gap: 8px; min-height: 44px; padding: 10px 16px; background: #2d7157; border-radius: 5px; box-shadow: none; font-size: .875rem; font-weight: 700; }
.converter-page .upload-button:hover { background: #205d45; }
.converter-page .example-button { min-height: 44px; display: flex; gap: 8px; align-items: center; padding: 4px 10px; border: 1px solid #cddfd4; border-radius: 5px; background: #fff; color: #4f685b; font-size: .8125rem; font-weight: 600; }
.converter-page .example-button img { object-fit: contain; width: 34px; height: 28px; border-radius: 3px; }
.converter-page .file-privacy-note { display: flex; align-items: flex-start; gap: 8px; padding: 0; max-width: none; font-size: .75rem; line-height: 1.7; border: 0; margin-top: -6px; color: #6b7c72; }
.converter-page .file-privacy-note > [data-icon] { color: #589176; padding-top: 1px; }
.converter-page .file-privacy-note .icon { width: 15px; height: 15px; }
.converter-page .file-privacy-note strong { font-weight: 500; color: #4b6c5c; }
.converter-page .file-privacy-note p + p { margin-top: 1px; }
.converter-page .file-privacy-note details { margin-top: 1px; }
.converter-page .file-privacy-note summary { cursor: pointer; width: fit-content; min-height: 24px; text-underline-offset: 3px; }
.converter-page .file-privacy-note summary:hover { text-decoration: underline; }
.converter-page .option-grid { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.converter-page .option-field { min-width: 140px; max-width: 240px; flex: 1 1 140px; gap: 7px; }
.converter-page .option-field > span { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; font-weight: 600; color: #4d6458; }
.converter-page .option-field select { background: #fff; border: 1px solid #cfdcd3; border-radius: 5px; min-height: 44px; font-size: .875rem; }
.converter-page .option-field input[type="range"] { min-height: 44px; margin: 0; }
.converter-page .background-controls { grid-template-columns: 72px minmax(140px, 1fr) minmax(140px, 1fr) auto auto; gap: 14px 18px; padding: 16px 0; }
.converter-page .background-color-field input { width: 64px; height: 44px; border-radius: 5px; }
.converter-page .background-range-field input { min-height: 44px; }
.converter-page .background-checkbox { grid-column: auto; font-size: .8125rem; }
.converter-page .background-controls > button { justify-self: end; }
.converter-page .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.converter-page .panel { border: 0; border-radius: 0; padding: 0; box-shadow: none; background: none; backdrop-filter: none; }
.converter-page .panel-header { min-height: 44px; margin-bottom: 10px; gap: 8px; }
.converter-page .panel-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.converter-page .panel-header h2 { font-size: .9375rem; line-height: 1.5; }
.converter-page .status-pill { background: #e4f0e9; color: #46715a; padding: 3px 8px; border-radius: 4px; font-size: .75rem; font-weight: 600; line-height: 1.6; }
.converter-page .source-panel .status-pill { background: #e9eeeb; color: #62776a; }
.converter-page .result-count { font-size: .75rem; color: #687d70; }
.converter-page .file-list, .converter-page .result-list { min-height: 230px; border: 1px solid #e0e7e2; border-radius: 6px; background: #f0f4f2; }
.converter-page .result-list { background: #f0f4f7; border-color: #dfe7ec; }
.converter-page .file-list:not(.is-empty), .converter-page .result-list:not(.is-empty) { padding: 0; gap: 10px; border: 0; background: transparent; max-height: 580px; overflow: auto; }
.converter-page .has-files .file-list, .converter-page .has-files .result-list { min-height: 280px; }
.converter-page .empty-state { gap: 12px; color: #91a198; padding: 18px; font-size: .8125rem; font-weight: 500; }
.converter-page .empty-state p { margin: 0; }
.converter-page .empty-icon .icon { width: 30px; height: 30px; stroke-width: 1.4; }
.converter-page .result-panel .empty-icon { color: #8c9fb0; }
.converter-page .file-item, .converter-page .result-item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 12px; min-height: 80px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.converter-page .file-thumb, .converter-page .result-thumb { position: relative; width: 56px; height: 56px; background: #e7f0f8; color: #557a99; border: 1px solid #dbe8f1; border-radius: 4px; font-size: .6875rem; font-weight: 700; }
.converter-page .file-thumb img, .converter-page .result-thumb img { object-fit: contain; }
.converter-page .file-position { position: absolute; bottom: 0; left: 0; padding: 1px 5px; background: #344e42; color: white; font-size: .625rem; line-height: 1.6; border-radius: 0 3px 0 2px; }
.converter-page .file-name, .converter-page .result-name { font-size: .875rem; font-weight: 600; margin: 0 0 5px; }
.converter-page .file-meta, .converter-page .result-meta { font-size: .6875rem; font-weight: 500; color: #7a8a82; }
.converter-page .file-actions { display: flex; gap: 2px; }
.converter-page .file-actions .icon-button { width: 32px; min-height: 36px; height: 36px; background: transparent; border-color: transparent; }
.converter-page .file-actions .icon { width: 16px; height: 16px; }
.converter-page .image-preview-item { grid-template-columns: minmax(0, 1fr) auto; padding: 0 0 12px; border: 0; background: none; gap: 12px; border-radius: 0; }
.converter-page .image-preview-item .file-thumb, .converter-page .image-preview-item .result-thumb { grid-column: 1 / -1; width: 100%; height: 320px; aspect-ratio: auto; border-radius: 6px; background-color: #fff; background-image: repeating-conic-gradient(#e8ede9 0 25%, #fff 0 50%); background-size: 18px 18px; }
.converter-page .image-preview-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.converter-page .image-preview-item .file-details { padding: 0 2px; }
.converter-page .download-link { min-height: 40px; padding: 8px 12px; gap: 6px; border-radius: 4px; color: #2c6350; background: #e1efe7; font-size: .75rem; font-weight: 600; }
.converter-page .download-link .icon { width: 16px; height: 16px; }
.converter-page .download-link:hover { background: #cfe6d9; }
.converter-page .conversion-progress { padding: 12px 0; border: 0; }
.converter-page .conversion-progress progress { height: 6px; }
.converter-page .progress-heading { font-size: .8125rem; margin-bottom: 8px; }
.converter-page .processing-layer { z-index: 2; border-radius: 6px; overflow: hidden; }
.converter-page .result-list.is-processing .empty-state { opacity: .45; }
.converter-page .tool-bar { position: sticky; bottom: 16px; z-index: 15; display: flex; align-items: center; min-height: 72px; padding: 12px 16px; gap: 10px; border: 1px solid #dae4dd; border-radius: 6px; box-shadow: 0 4px 18px #284d3a0a; background: #fff; backdrop-filter: none; }
.converter-page .action-state { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: .75rem; color: #698174; min-width: 0; white-space: nowrap; }
.converter-page .action-dot { flex: 0 0 6px; height: 6px; background: #80ab91; border-radius: 50%; }
.converter-page .primary-button, .converter-page .secondary-button { width: auto; min-height: 44px; height: auto; padding: 10px 16px; gap: 7px; border-radius: 5px; font-size: .875rem; font-weight: 600; line-height: 1.5; }
.converter-page .tool-bar .reset-button { width: 44px; height: 44px; padding: 0; flex: 0 0 44px; }
.converter-page .primary-button { color: #fff; background: #2e795d; }
.converter-page .primary-button:not(:disabled):hover { background: #225f47; }
.converter-page .secondary-button { background: #fff; border: 1px solid #d6e1da; color: #536e5d; }
.converter-page .quick-select { cursor: pointer; }
.converter-page .tool-bar.has-output [data-convert-button] { color: #526e5d; background: white; border: 1px solid #d6e1da; }
.converter-page .tool-bar.has-output .download-all { background: #2e795d; color: #fff; border-color: #2e795d; }
.converter-page .error-message { margin: 0; padding: 12px 14px; border-left: 3px solid #c8797e; background: #fff0f0; color: #9f454d; font-size: .875rem; font-weight: 500; }
.converter-page .home-reading { margin-top: 48px; padding-top: 28px; }
.converter-page .reading-heading h2 { font-size: 1.125rem; }
.converter-page .site-footer { margin-top: 40px; }

/* PDF: document and inspector on desktop, page/text views on small screens. */
.converter-page .pdf-editor { padding: 0; }
.converter-page .pdf-editor-heading h2 { font-size: .9375rem; }
.converter-page .pdf-editor-heading > span { font-size: .75rem; }
.converter-page .pdf-editor-warning { margin: 12px 0; font-size: .75rem; line-height: 1.8; }
.converter-page .pdf-editor-warning summary { cursor: pointer; width: fit-content; }
.converter-page .pdf-editor-warning p { margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid #d8b97d; background: #fcf7ea; color: #776a4e; }
.converter-page .pdf-editor-empty { margin: 12px 0 0; border: 1px solid #dfe6e1; background: #edf2ef; padding: 70px 16px; color: #7a8c80; font-size: .875rem; }
.converter-page .pdf-editor-toolbar { gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.converter-page .pdf-editor-filename { margin-bottom: 4px; color: #64796c; font-weight: 500; font-size: .75rem; }
.converter-page .pdf-icon-button { display: grid; place-items: center; width: 40px; height: 44px; flex-basis: 40px; padding: 0; border-color: #d5dfd8; border-radius: 4px; }
.converter-page .pdf-editor select { height: 44px; font-size: .8125rem; padding: 6px; border-color: #d5dfd8; }
.converter-page .pdf-editor-modes { margin-left: auto; }
.converter-page .pdf-editor-modes button { display: flex; align-items: center; gap: 5px; min-height: 42px; font-size: .8125rem; padding: 8px 10px; }
.converter-page .pdf-editor-modes .icon { width: 17px; height: 17px; }
.converter-page .pdf-editor-compare { min-height: 44px; font-size: .75rem; margin-left: 6px; }
.converter-page .pdf-editor-compare input { width: 16px; height: 16px; }
.converter-page .pdf-editor-body { grid-template-columns: minmax(0, 1fr) 300px; border: 1px solid #dce5de; }
.converter-page .pdf-editor-viewport { height: min(760px, 76vh); max-height: none; padding: 24px; background: #e8edea; }
.converter-page .pdf-editor-sidebar { padding: 18px; max-height: min(760px, 76vh); overflow: auto; border-color: #dce5de; background: #fff; }
.converter-page .pdf-sidebar-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.converter-page .pdf-sidebar-heading h3 { font-size: .875rem; margin: 0; }
.converter-page .pdf-editor-count { margin: 0; font-size: .6875rem; }
.converter-page .pdf-unselected { margin: 0 0 18px; font-size: .8125rem; color: #96a39b; }
.converter-page .pdf-editor-sidebar fieldset { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.converter-page .pdf-editor-sidebar label { font-size: .875rem; font-weight: 500; color: #607367; gap: 7px; }
.converter-page .pdf-editor-sidebar input, .converter-page .pdf-editor-sidebar textarea { min-height: 44px; padding: 10px; border-color: #d2ded5; font-family: var(--font); }
.converter-page .pdf-editor-sidebar textarea { font-size: 1rem; min-height: 116px; }
.converter-page .pdf-editor-sidebar input[type="color"] { min-height: 44px; padding: 4px; }
.converter-page .pdf-text-field { grid-template-columns: 1fr auto; }
.converter-page .pdf-text-field textarea { grid-column: 1 / -1; }
.converter-page .pdf-text-field > span { color: #8c9b90; font-size: .6875rem; }
.converter-page .pdf-advanced summary { cursor: pointer; min-height: 36px; font-size: .75rem; color: #657a6b; }
.converter-page .pdf-advanced-fields { display: grid; gap: 12px; padding-bottom: 4px; }
.converter-page .pdf-field-pair { gap: 10px; }
.converter-page .pdf-editor-sidebar button { min-height: 44px; font-size: .8125rem; padding: 9px; }
.converter-page .pdf-editor-sidebar .primary-button { width: 100%; }
.converter-page .pdf-text-picker { padding-top: 16px; margin-top: 16px; border-top: 1px solid #e1e7e2; }
.converter-page .pdf-text-picker > summary { color: #5c7264; cursor: pointer; font-size: .8125rem; font-weight: 600; min-height: 38px; }
.converter-page .pdf-text-picker > summary span { font-weight: 400; color: #8a998f; margin-left: 4px; }
.converter-page .pdf-text-search { position: relative; display: flex; align-items: center; margin-bottom: 10px; }
.converter-page .pdf-text-search > [data-icon] { position: absolute; top: 13px; left: 10px; color: #8a9d90; }
.converter-page .pdf-text-search .icon { width: 17px; height: 17px; }
.converter-page .pdf-text-search input { padding-left: 34px; font-size: 1rem; width: 100%; }
.converter-page .pdf-text-list { display: grid; gap: 4px; max-height: 370px; overflow: auto; }
.converter-page .pdf-text-list button { display: block; width: 100%; text-align: left; border: 1px solid #e2e8e3; border-radius: 4px; padding: 10px; min-height: 44px; font-size: .8125rem; line-height: 1.6; background: #f8faf8; color: #576b5d; overflow-wrap: anywhere; }
.converter-page .pdf-text-list button:hover { background: #eaf4ee; }
.converter-page .pdf-text-list button[aria-pressed="true"] { background: #e1efe5; border-color: #8fb99f; color: #245f3d; }
.converter-page .pdf-text-list > p { margin: 8px 0; font-size: .8125rem; color: #85978a; }
.converter-page .pdf-editor-notice { margin: 14px 0 0; font-size: .75rem; }
.converter-page .pdf-editor-panel-tabs { display: none; }
.converter-page .pdf-editor-download { padding-top: 16px; }

@media (min-width: 761px) and (max-width: 1160px) {
  .converter-page .app-shell { width: calc(100% - 40px); }
  .converter-page .app-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 24px; }
  .converter-page .control-panel { padding-right: 16px; }
  .converter-page .mode-button { padding: 10px; gap: 8px; font-size: .875rem; }
  .converter-page .upload-symbol { display: none; }
  .converter-page .upload-panel { padding: 20px; }
  .converter-page .pdf-editor-body { grid-template-columns: minmax(0, 1fr) 270px; }
  .converter-page .pdf-editor-modes { margin-left: 0; }
  .converter-page .background-controls { grid-template-columns: auto minmax(100px, 1fr) minmax(100px, 1fr); gap: 14px 24px; }
  .converter-page .background-checkbox { grid-column: 1 / 3; }
  .converter-page .image-preview-item .file-thumb, .converter-page .image-preview-item .result-thumb { height: 240px; }
  .converter-page .file-item:not(.image-preview-item) .file-actions { grid-column: 2 / -1; justify-self: end; }
  .converter-page .file-item:not(.image-preview-item) { grid-template-columns: 50px minmax(0, 1fr); }
  .converter-page .file-thumb { width: 50px; height: 50px; }
}

@media (max-width: 760px) {
  .converter-page .app-shell { width: calc(100% - 32px); padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .converter-page .site-header { min-height: 68px; margin-bottom: 16px; }
  .converter-page .site-brand { font-size: 1.125rem; }
  .converter-page .app-layout { display: block; }
  .converter-page .control-panel { position: static; border: 0; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
  .converter-page .navigation-caption, .converter-page .navigation-bottom { display: none; }
  .converter-page .mode-group { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .converter-page .mode-button { flex-direction: column; justify-content: center; gap: 6px; min-height: 70px; padding: 9px 3px; font-size: .875rem; text-align: center; background: #eef2ef; border: 1px solid #e3eae5; line-height: 1.5; }
  .converter-page .mode-button:nth-child(4) { margin-top: 0; }
  .converter-page .mode-button [data-icon] { flex-basis: auto; height: 20px; }
  .converter-page .mode-button.is-active { background: #dcefe6; }
  .converter-page .workspace { gap: 16px; }
  .converter-page .workspace-heading { padding: 0 0 2px; gap: 12px; }
  .converter-page .workspace-category { display: none; }
  .converter-page .workspace-heading h1 { font-size: 1.375rem; line-height: 1.5; }
  .converter-page .tool-help { font-size: .75rem; gap: 5px; }
  .converter-page .tool-help .icon { width: 17px; height: 17px; }
  .converter-page .upload-panel { min-height: 0; padding: 18px; gap: 12px; }
  .converter-page .upload-symbol { display: none; }
  .converter-page .upload-main { flex-basis: 100%; }
  .converter-page .upload-main > strong { font-size: .875rem; }
  .converter-page .upload-actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .converter-page .upload-button, .converter-page .example-button { justify-content: center; padding: 8px; font-size: .875rem; }
  .converter-page .file-privacy-note { gap: 6px; font-size: .6875rem; line-height: 1.8; }
  .converter-page .file-privacy-note p + p { margin-top: 0; }
  .converter-page .file-privacy-note .icon { width: 14px; height: 14px; }
  .converter-page .option-grid { gap: 12px 18px; padding: 14px 0; }
  .converter-page .option-field { flex-basis: 110px; min-width: 100px; }
  .converter-page .work-grid { gap: 18px; grid-template-columns: minmax(0, 1fr); }
  .converter-page .file-list, .converter-page .result-list { min-height: 140px; }
  .converter-page .has-files .file-list, .converter-page .has-files .result-list { min-height: 160px; }
  .converter-page .file-list:not(.is-empty), .converter-page .result-list:not(.is-empty) { max-height: 560px; }
  .converter-page .panel-header { margin-bottom: 8px; }
  .converter-page .file-item, .converter-page .result-item { gap: 10px; }
  .converter-page .file-item:not(.image-preview-item) .file-actions { grid-column: 2 / -1; justify-self: end; }
  .converter-page .file-item:not(.image-preview-item) { grid-template-columns: 50px minmax(0, 1fr); }
  .converter-page .file-actions .icon-button { width: 40px; height: 44px; min-height: 44px; }
  .converter-page .file-thumb, .converter-page .result-thumb { width: 50px; height: 50px; }
  .converter-page .image-preview-item .file-thumb, .converter-page .image-preview-item .result-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .converter-page .image-preview-item .file-actions { grid-column: auto; }
  .converter-page .file-name, .converter-page .result-name { font-size: .875rem; }
  .converter-page .download-link { min-height: 44px; }
  .converter-page .background-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .converter-page .background-color-field { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; }
  .converter-page .background-checkbox { grid-column: auto; }
  .converter-page .background-controls > button { padding: 8px; font-size: .8125rem; }
  .converter-page .tool-bar { position: fixed; inset: auto 0 0; margin: 0; min-height: 76px; border: 0; border-top: 1px solid #d4e1d7; border-radius: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px #34533b0a; display: flex; flex-wrap: nowrap; gap: 8px; }
  .converter-page .action-state { display: none; }
  .converter-page .tool-bar .primary-button, .converter-page .tool-bar .download-all { flex: 1 1 0; min-width: 0; width: auto; padding: 10px 8px; font-size: .875rem; white-space: normal; }
  .converter-page .tool-bar .reset-button { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; }
  .converter-page .tool-bar [data-stop-button] { width: auto; flex: 0 0 auto; padding: 8px; }
  .converter-page .tool-bar .icon { width: 18px; height: 18px; flex-shrink: 0; }
  .converter-page .home-reading { margin-top: 32px; padding-top: 24px; }
  .converter-page .reading-link { padding: 16px 0; }
  .converter-page .reading-heading h2 { font-size: 1rem; }
  .converter-page .pdf-editor-toolbar { gap: 7px; }
  .converter-page .pdf-editor-pager { flex: 1 1 auto; }
  .converter-page .pdf-editor-pager select { flex: 1 1 auto; }
  .converter-page .pdf-editor-history { margin-left: auto; }
  .converter-page .pdf-editor-modes { margin-left: 0; flex: 1 1 auto; }
  .converter-page .pdf-editor-modes button { flex: 1 1 auto; justify-content: center; }
  .converter-page .pdf-editor-compare { margin-left: auto; }
  .converter-page .pdf-editor-panel-tabs { display: flex; background: #edf2ee; padding: 4px; gap: 4px; border-radius: 5px; margin: 0 0 10px; }
  .converter-page .pdf-editor-panel-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 50%; min-height: 44px; background: transparent; color: #6d8071; border-radius: 3px; font-size: .875rem; }
  .converter-page .pdf-editor-panel-tabs button[aria-pressed="true"] { color: #2e6041; background: white; box-shadow: 0 1px 3px #35593b12; }
  .converter-page .pdf-editor-body { grid-template-columns: minmax(0, 1fr); }
  .converter-page .pdf-editor-viewport { height: 60svh; padding: 12px; }
  .converter-page .pdf-editor-sidebar { max-height: none; padding: 16px; border: 0; }
  .converter-page .pdf-editor-body[data-panel="page"] .pdf-editor-sidebar { display: none; }
  .converter-page .pdf-editor-body[data-panel="text"] .pdf-editor-viewport { display: none; }
  .converter-page .pdf-editor-sidebar fieldset { grid-template-columns: minmax(0, 1fr); }
  .converter-page .pdf-editor-sidebar fieldset > .pdf-field-pair { grid-column: auto; }
  .converter-page .pdf-editor-sidebar input, .converter-page .pdf-editor-sidebar textarea { font-size: 1rem; }
  .converter-page .pdf-text-list { max-height: 50svh; }
}

@media (prefers-reduced-motion: reduce) {
  .converter-page *, .converter-page *::before, .converter-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
