/* Единый стиль инструментов сайта (/tools/...), 19.11.2026, оркестратор «Инструменты на сайт».
   Задание Павла 19.11.2026: «сильно пляшет оформление, размеры шрифта, размеры блоков, толщина строк для выбора...
   не ощущения, что страницы одного и того же сайта». Замер до правки:
   C:\Users\Павел\Claude\Projects\Инструменты_сайта\единый_стиль\zamer\do (кнопки 25-51, поля 32-46, скругления 3-16,
   подписи 12-17).
   20.11.2026, второе слово Павла: сгруппировать каждый текст инструментов по роли (что пишем в зоне «перетащите»,
   на кнопках, в пояснениях, в пунктах), на все роли - до трех кеглей, различие - полужирным; поля, кнопки и блоки
   одной высоты везде. Опись до правки: ...\единый_стиль\zamer\tekstury_do_2011 (357 текстов, 20 разных кеглей 8-25).
   Один набор размеров на все шесть инструментов; подключается в instrument_page.html сразу после page.css.
   Основа - канон C:\Users\Павел\Claude\Projects\Вебсайт\КАНОН_ОФОРМЛЕНИЯ.md (фирменный #8c1821, градиент кнопок,
   плашка 16).

   Шкала текста (компьютер и телефон одинаково):
   18/700 - заголовок части инструмента, главная строка зоны загрузки;
   16/400 - текст в поле и подсказка в поле (меньше 16 - iPhone увеличивает страницу при вводе), описание;
   14/600 - все кнопки, подпись поля, раскрывающаяся строка, название шага, подпись окна, пункты возможностей,
            заголовок примечания;
   14/400 - вариант выбора (флажок, переключатель) темным; пояснение серым: форматы, ограничения, статус,
            счетчик, значение ползунка, примечание.
   Слово Павла 20.11: «не надо гигантомании» - кнопки и поля компактные, 36 (телефон 40), чтобы помещались
   в плотных местах (рабочее окно распознавания, колонка страницы «Скана из фото»).
   Номер шага - 16/700 фирменным; метка «Вариант 1» - 14/700 фирменным.
   Исключение одно: первый выбор файла на стартовом экране - крупная кнопка канона 51,2 (телефон 48), подпись 16.

   Размеры блоков:
   - кнопки внутри инструмента: высота 36 (телефон 40), овал у кнопок действий; главная - градиент канона,
     вторичная - белая с рамкой #d9dbde;
   - поля и списки: высота 36 (телефон 40), текст 16, скругление 8, рамка #b9bec7;
   - рабочая панель на компьютере: белая, рамка 1 #d9dbde, скругление 16, поля 24; внутренние плашки - скругление 12;
   - зона загрузки: пунктир 2 #b9bec7, скругление 16, фон #f7f7f8; флажки и переключатели 20, фирменный цвет.

   Не трогаем: рисунок-пример листа на старте распознавания (.ocr-preview-papers - это картинка), текст страницы под
   формой транслитерации (.ap-transliteration__disclosure), карточки «Нужен перевод документа?», миниатюры страниц,
   значок смены языков калькулятора.
   Вес селекторов: приставка html body.template-instrumentpage:not(#_) .instrument-page сильнее правил пакетов и
   page.css (там только классы), списки внутри - в :where(), чтобы частные правила ниже перекрывали общие.
   Откат: убрать строку подключения edinyj_stil.css в home/templates/home/instrument_page.html (копия
   instrument_page.html.do_edinyj_stil_1911 рядом) - пакеты и page.css не менялись. Копии этого файла:
   edinyj_stil.css.do_podskazki_2011 (до 20.11), edinyj_stil.css.do_shkala_2011 (до шкалы текста). */

html body.template-instrumentpage:not(#_) .instrument-page{
  --ed-brand:#8c1821;--ed-text:#1b1b1b;--ed-muted:#63676c;--ed-line:#d9dbde;--ed-field:#b9bec7;--ed-soft:#f7f7f8}

/* ---------- 1. Кнопки: все кнопки инструментов - 36, подпись 14/600 ---------- */
/* общее правило для любой кнопки внутри шести инструментов: высота и подпись (цвет и фон - как у пакета) */
html body.template-instrumentpage:not(#_) .instrument-page :where(.ap-transliteration, .address-compare-page, .instrument-ocr, .wc, .pdf-scan, .foto-pdf)
  :where(button, .zknopka, .ocr-pick):not(:where(.pdf-scan__thumbnail, .ocr-preview-papers *, .ap-transliteration__disclosure *)){
  min-height:36px;box-sizing:border-box;font-size:14px;font-weight:600;line-height:20px;font-style:normal}
html body.template-instrumentpage:not(#_) .instrument-page :where(.foto-pdf .zknopka, .instrument-ocr .ocr-pick) > span{font-size:inherit;font-weight:inherit;line-height:inherit}
/* у кнопок распознавания пакет задает высоту 40 - снимаем, высоту дает общее правило */
html body.template-instrumentpage:not(#_) .instrument-page .instrument-ocr :where(.act, .ocr-pick){height:auto}
/* углы: кнопки с подписью у распознавания - овал, как у остальных инструментов (были 6); значки - скругление 8 */
html body.template-instrumentpage:not(#_) .instrument-page .instrument-ocr .act{border-radius:999px}
html body.template-instrumentpage:not(#_) .instrument-page .instrument-ocr :where(.ocr-formatbar button, .ocr-zoom-tools button){border-radius:8px}
/* кнопки-значки (отмена, масштаб, панель правки текста) - квадрат 36 */
html body.template-instrumentpage:not(#_) .instrument-page .instrument-ocr :where(.ocr-formatbar button, .ocr-zoom-tools button){min-width:36px;padding:0 8px}
/* смена языков калькулятора - квадрат высотой с поле, значок 18 (это значок, а не подпись) */
html body.template-instrumentpage:not(#_) .instrument-page .wc .wc__swap{width:36px;height:36px;min-height:36px;padding:0;font-size:18px;line-height:1;align-self:end}
/* кнопки действий - овал, поля 20 */
html body.template-instrumentpage:not(#_) .instrument-page :where(
  .ap-transliteration .ap-transliteration__actions .btn.big,
  .ap-transliteration .ap-transliteration__clear,
  .ap-transliteration .ap-transliteration__copy,
  .address-compare-page .actions button,
  .wc .wc__primary, .wc .wc__secondary,
  .pdf-scan .zknopka,
  .foto-pdf .zknopka){
  height:auto;min-width:0;padding:0 20px;border-radius:999px;
  white-space:nowrap;align-items:center;justify-content:center}
/* display не задается: часть кнопок пакеты прячут по ширине (например, «Снять фото» на компьютере) */
/* главные - градиент канона */
html body.template-instrumentpage:not(#_) .instrument-page :where(
  .ap-transliteration .ap-transliteration__actions .btn.big,
  .address-compare-page .actions .btn.big,
  .wc .wc__primary,
  .pdf-scan .zknopka:not(.zknopka--tihaya),
  .foto-pdf .zknopka:not(.zknopka--tihaya)){
  background-color:var(--ed-brand);background-image:var(--knopka-fon);border:0;color:#fff;
  box-shadow:inset 0 4px 8px 4px rgba(255,255,255,.12)}
/* вторичные - белые, серая рамка, темная подпись */
html body.template-instrumentpage:not(#_) .instrument-page :where(
  .ap-transliteration .ap-transliteration__clear,
  .address-compare-page .actions button.secondary,
  .wc .wc__secondary,
  .pdf-scan .zknopka--tihaya,
  .foto-pdf .zknopka--tihaya){
  background:#fff;background-image:none;border:1px solid var(--ed-line);color:var(--ed-text);box-shadow:none}
/* текстовая «Очистить» адреса - без рамки, как была */
html body.template-instrumentpage:not(#_) .instrument-page .address-compare-page .actions button.text-button{
  background:transparent;border:1px solid transparent;color:var(--ed-muted);box-shadow:none}
/* «Скопировать» - вторичная с бордовой рамкой (как «Рассчитать перевод» OCR) */
html body.template-instrumentpage:not(#_) .instrument-page :where(
  .ap-transliteration .ap-transliteration__copy,
  .address-compare-page .actions button[data-copy]){
  background:#fff;background-image:none;border:1px solid var(--ed-brand);color:var(--ed-brand);box-shadow:none}
html body.template-instrumentpage:not(#_) .instrument-page .ap-transliteration .ap-transliteration__copy:disabled{
  border-color:#d8b9bd;color:#b98a91}
@media (hover:hover) and (pointer:fine){
  html body.template-instrumentpage:not(#_) .instrument-page :where(
    .ap-transliteration .ap-transliteration__actions .btn.big,
    .address-compare-page .actions .btn.big,
    .wc .wc__primary,
    .pdf-scan .zknopka:not(.zknopka--tihaya),
    .foto-pdf .zknopka:not(.zknopka--tihaya)):hover:not(:disabled){
    background-color:#9a1a23;background-image:var(--knopka-fon-navedenie);filter:none}
  html body.template-instrumentpage:not(#_) .instrument-page :where(
    .ap-transliteration .ap-transliteration__clear,
    .address-compare-page .actions button.secondary,
    .wc .wc__secondary,
    .pdf-scan .zknopka--tihaya,
    .foto-pdf .zknopka--tihaya):hover:not(:disabled){background:#f5f6f7;border-color:var(--ed-line);filter:none}
  html body.template-instrumentpage:not(#_) .instrument-page :where(
    .ap-transliteration .ap-transliteration__copy,
    .address-compare-page .actions button[data-copy]):hover:enabled{background:var(--ed-brand);color:#fff}
}

/* ---------- 2. Первый выбор файла на стартовом экране: крупная кнопка канона 51,2, подпись 16 ---------- */
html body.template-instrumentpage:not(#_) .instrument-page :where(
  .foto-pdf .foto-pdf__start .zknopka,
  .instrument-ocr:not(.ocr-has-file) .ocr-pick){
  min-height:51.2px;padding:0 28px;font-size:16px;line-height:24px}

/* ---------- 3. Поля и списки: 36, текст 16/400, скругление 8, рамка #b9bec7 ---------- */
html body.template-instrumentpage:not(#_) .instrument-page :where(.ap-transliteration, .address-compare-page, .instrument-ocr, .wc, .pdf-scan, .foto-pdf)
  :where(select, input:is([type="text"],[type="number"],[type="search"],[type="email"],[type="tel"],:not([type]))){
  min-height:36px;height:36px;box-sizing:border-box;font-size:16px;font-weight:400;line-height:22px;
  border:1px solid var(--ed-field);border-radius:8px;background-color:#fff;color:var(--ed-text)}
html body.template-instrumentpage:not(#_) .instrument-page :where(.ap-transliteration, .address-compare-page, .instrument-ocr, .wc, .pdf-scan, .foto-pdf)
  select{padding:0 30px 0 12px}
html body.template-instrumentpage:not(#_) .instrument-page :where(.ap-transliteration, .address-compare-page, .instrument-ocr, .wc, .pdf-scan, .foto-pdf)
  input:is([type="text"],[type="number"],[type="search"],[type="email"],[type="tel"],:not([type])){padding:0 12px}
html body.template-instrumentpage:not(#_) .instrument-page :where(.ap-transliteration, .address-compare-page, .wc) textarea{
  box-sizing:border-box;border:1px solid var(--ed-field);border-radius:8px;padding:10px 12px}
/* текст в многострочных полях - 16 у всех, включая окно результата распознавания (было 14) */
html body.template-instrumentpage:not(#_) .instrument-page :where(.ap-transliteration, .address-compare-page, .instrument-ocr, .wc, .pdf-scan, .foto-pdf) textarea{
  font-size:16px;font-weight:400;line-height:24px;color:var(--ed-text)}
/* подсказка в поле (placeholder) - того же размера, что и введенный текст, один серый у всех (замечание Павла 20.11:
   в транслитерации было 14 px #8a858b, в адресе и калькуляторе 16 px #757575) */
html body.template-instrumentpage:not(#_) .instrument-page :where(.ap-transliteration, .address-compare-page, .wc, .pdf-scan, .foto-pdf, .instrument-ocr)
  :where(input, textarea)::placeholder{font-size:16px;font-weight:400;font-style:normal;color:#757575;opacity:1}
html body.template-instrumentpage:not(#_) .instrument-page :where(.ap-transliteration, .address-compare-page, .wc, .pdf-scan, .foto-pdf, .instrument-ocr)
  :where(select, input, textarea):focus-visible{border-color:var(--ed-brand);outline:2px solid rgba(140,24,33,.25);outline-offset:1px}

/* ---------- 4. Шкала текста по ролям ---------- */
/* 4.1. Пояснение серым 14/400: форматы, ограничения, статус, счетчик, значение ползунка, примечание */
html body.template-instrumentpage:not(#_) .instrument-page :where(
  .ap-transliteration .ap-transliteration__column-note,
  .ap-transliteration .ap-transliteration__input-meta, .ap-transliteration .ap-transliteration__input-meta span,
  .address-compare-page .hint, .address-compare-page .status, .address-compare-page .details-value,
  .instrument-ocr .ocr-upload-copy > span, .instrument-ocr .ocr-file-info,
  .instrument-ocr .ocr-start-privacy span, .instrument-ocr .ocr-preview-description, .instrument-ocr .ocr-preview-heading > span,
  .instrument-ocr .ocr-start-steps p, .instrument-ocr .ocr-start-quality p, .instrument-ocr .ocr-feedback p, .instrument-ocr .ocr-note,
  .wc .wc__hint, .wc summary small,
  .pdf-scan .pdf-scan__drop-formats, .pdf-scan .pdf-scan__choose, .pdf-scan .pdf-scan__drop-limits > summary, .pdf-scan .pdf-scan__drop-limits > p,
  .pdf-scan .pdf-scan__hint, .pdf-scan .pdf-scan__page-file, .pdf-scan .pdf-scan__settings > p, .pdf-scan .pdf-scan__settings small,
  .pdf-scan .pdf-scan__filename, .pdf-scan .pdf-scan__assembly-summary,
  .foto-pdf .foto-pdf__pole-punkty li, .foto-pdf .foto-pdf__hint, .foto-pdf .foto-pdf__stage-hint, .foto-pdf .foto-pdf__ves,
  .instrument-ocr output, .pdf-scan output, .foto-pdf output){
  font-size:14px;font-weight:400;line-height:20px;font-style:normal}
html body.template-instrumentpage:not(#_) .instrument-page :where(
  .ap-transliteration .ap-transliteration__column-note, .ap-transliteration .ap-transliteration__input-meta span,
  .address-compare-page .hint, .address-compare-page .status, .address-compare-page .details-value,
  .instrument-ocr .ocr-upload-copy > span, .instrument-ocr .ocr-file-info, .instrument-ocr .ocr-start-privacy span,
  .instrument-ocr .ocr-preview-description, .instrument-ocr .ocr-preview-heading > span, .instrument-ocr .ocr-start-steps p,
  .instrument-ocr .ocr-start-quality p, .instrument-ocr .ocr-feedback p, .instrument-ocr .ocr-note,
  .wc .wc__hint, .wc summary small,
  .pdf-scan .pdf-scan__drop-formats, .pdf-scan .pdf-scan__drop-limits > summary, .pdf-scan .pdf-scan__drop-limits > p,
  .pdf-scan .pdf-scan__hint, .pdf-scan .pdf-scan__page-file, .pdf-scan .pdf-scan__settings > p, .pdf-scan .pdf-scan__settings small,
  .pdf-scan .pdf-scan__filename, .pdf-scan .pdf-scan__assembly-summary,
  .foto-pdf .foto-pdf__pole-punkty li, .foto-pdf .foto-pdf__hint,
  .instrument-ocr output, .pdf-scan output, .foto-pdf output){color:var(--ed-muted)}
/* «или выберите файлы» - ссылка, фирменным; подсказка поверх снимка - белая, как была */
html body.template-instrumentpage:not(#_) .instrument-page .pdf-scan .pdf-scan__choose{color:var(--ed-brand)}

/* 4.2. Подпись поля, раскрывающаяся строка, название шага, подпись окна 14/600 */
html body.template-instrumentpage:not(#_) .instrument-page :where(
  .ap-transliteration .ap-transliteration__column > label,
  .address-compare-page label.field, .address-compare-page .field > label, .address-compare-page .details-title,
  .address-compare-page details.about > summary,
  .instrument-ocr label.ocr-field:not(.ocr-text-label), .instrument-ocr .ocr-help > summary,
  .instrument-ocr .ocr-start-steps strong, .instrument-ocr .ocr-start-quality strong, .instrument-ocr .ocr-preview-heading strong,
  .instrument-ocr .ocr-image-tools > strong, .instrument-ocr .ocr-source > strong, .instrument-ocr .ocr-output > strong,
  .instrument-ocr .ocr-tools-caption, .instrument-ocr .ocr-image-tools label:not(.zgalka),
  .instrument-ocr.ocr-has-file .ocr-upload-copy > strong,
  .wc .wc__field, .wc summary,
  .pdf-scan .pdf-scan__label, .pdf-scan .pdf-scan__details > summary, .pdf-scan .pdf-scan__adjustment > label,
  .pdf-scan .pdf-scan__color-row > label, .pdf-scan .pdf-scan__assembly-tools > label, .pdf-scan figcaption,
  .pdf-scan .pdf-scan__page-number,
  .pdf-scan .pdf-scan__mobile-panel:not(.pdf-scan__drop-limits, .pdf-scan__intro) > summary,
  .pdf-scan .pdf-scan__mobile-panel:not(.pdf-scan__drop-limits, .pdf-scan__intro) > summary > span:not(.pdf-scan__panel-title, .pdf-scan__assembly-summary),
  .foto-pdf .foto-pdf__nastr > label, .foto-pdf .foto-pdf__panel-pole){
  font-size:14px;font-weight:600;line-height:20px;font-style:normal;color:var(--ed-text)}
/* пункты возможностей (что умеет инструмент) - 14/600 темным */
html body.template-instrumentpage:not(#_) .instrument-page :where(.instrument-ocr .ocr-benefits li, .foto-pdf .foto-pdf__punkty3 li){
  font-size:14px;font-weight:600;line-height:20px;color:var(--ed-text)}

/* 4.3. Описание 16/400; вариант выбора (флажок, переключатель) 14/400 */
html body.template-instrumentpage:not(#_) .instrument-page :where(
  .instrument-ocr .ocr-welcome-description,
  .pdf-scan .pdf-scan__intro > p,
  .foto-pdf .foto-pdf__stroka-zagruzki li){
  font-size:16px;font-weight:400;line-height:24px;font-style:normal;color:var(--ed-text)}
html body.template-instrumentpage:not(#_) .instrument-page :where(
  .wc .wc__modes label,
  .instrument-ocr label.zgalka, .instrument-ocr label.zgalka span,
  .address-compare-page label:has(> input:is([type="checkbox"],[type="radio"])),
  .pdf-scan label:has(> input:is([type="checkbox"],[type="radio"])),
  .foto-pdf label:has(> input:is([type="checkbox"],[type="radio"]))){
  font-size:14px;font-weight:400;line-height:20px;font-style:normal;color:var(--ed-text)}

/* 4.4. Заголовок части инструмента и главная строка зоны загрузки 18/700 */
html body.template-instrumentpage:not(#_) .instrument-page :where(
  .wc .wc__section > legend,
  .pdf-scan > h2, .pdf-scan .pdf-scan__intro h2, .pdf-scan .pdf-scan__panel-title,
  .pdf-scan .pdf-scan__drop-target > strong, .pdf-scan .pdf-scan__drop-target > strong > span,
  .foto-pdf .foto-pdf__start > h2, .foto-pdf .foto-pdf__head > h2, .foto-pdf .foto-pdf__panel-zag,
  .address-compare-page .result-card > h2,
  .instrument-ocr:not(.ocr-has-file) .ocr-upload-copy > strong,
  .wc .wc__upload > strong){
  font-size:18px;font-weight:700;line-height:24px;font-style:normal;color:var(--ed-text)}

/* 4.5. Метки: номер шага 16/700 фирменным, «Вариант 1» 14/700 фирменным, номер на миниатюре 14/700,
   заголовок примечания 14/600 */
html body.template-instrumentpage:not(#_) .instrument-page :where(.wc .wc__section > legend > span, .instrument-ocr .ocr-start-steps li > span){
  font-size:16px;font-weight:700;line-height:24px;color:var(--ed-brand)}
html body.template-instrumentpage:not(#_) .instrument-page .address-compare-page .eyebrow{font-size:14px;font-weight:700;line-height:20px;color:var(--ed-brand)}
html body.template-instrumentpage:not(#_) .instrument-page .foto-pdf .foto-pdf__num{font-size:14px;font-weight:700}
html body.template-instrumentpage:not(#_) .instrument-page .instrument-ocr .ocr-start-privacy strong{font-size:14px;font-weight:600;line-height:20px;color:var(--ed-text)}

/* ---------- 6. Рабочая панель и внутренние плашки ---------- */
@media (min-width:701px){
  /* у адреса такая панель уже есть в пакете (рамка 1 #d9dbde, 16, поля 24) - вторую не ставим */
  html body.template-instrumentpage:not(#_) .instrument-page .ap-transliteration .ap-transliteration__controls{
    background:#fff;border:1px solid var(--ed-line);border-radius:16px;padding:24px}
  html body.template-instrumentpage:not(#_) .instrument-page .ap-transliteration .ap-transliteration__controls{margin:0}
}
/* шаги калькулятора - с рамкой на любой ширине: на ней номер шага */
html body.template-instrumentpage:not(#_) .instrument-page .wc .wc__section:not(.wc__services){
  background:#fff;border:1px solid var(--ed-line);border-radius:16px;padding:12px 24px 24px}
html body.template-instrumentpage:not(#_) .instrument-page :where(.wc .wc__paste, .wc .wc__extras, .pdf-scan .pdf-scan__details){
  border:1px solid var(--ed-line);border-radius:12px}
/* настройки скана: подпись ползунка 14 - колонка подписи 96 */
html body.template-instrumentpage:not(#_) .instrument-page .pdf-scan .pdf-scan__adjustment{grid-template-columns:96px minmax(0,1fr) 46px;column-gap:6px}

/* рабочее окно распознавания: кнопки 40 и подписи 14-16 не помещались в колонку 155 px и панель правки 503 px -
   колонка «Изображение» 200 px, ее кнопки в один столбец, панель правки переносится на вторую строку,
   подпись «Найти / заменить» в одну строку */
@media (min-width:701px){
  html body.template-instrumentpage:not(#_) .instrument-page .instrument-ocr .ocr-workspace{grid-template-columns:200px minmax(0,1fr) minmax(0,1fr)}
  /* высота окна задана пакетом (окно-приложение с кнопкой «Развернуть инструмент»): колонка «Изображение»
     прокручивается внутри, как и было в пакете */
}
html body.template-instrumentpage:not(#_) .instrument-page .instrument-ocr .ocr-image-tools .ocr-actions{grid-template-columns:minmax(0,1fr)}
html body.template-instrumentpage:not(#_) .instrument-page .instrument-ocr .ocr-image-tools .ocr-actions button{white-space:normal}
html body.template-instrumentpage:not(#_) .instrument-page .instrument-ocr .ocr-formatbar{flex-wrap:wrap;height:auto;row-gap:4px}
html body.template-instrumentpage:not(#_) .instrument-page .instrument-ocr .ocr-editor-tools{height:auto}
html body.template-instrumentpage:not(#_) .instrument-page .instrument-ocr .ocr-tools-caption{flex:none;white-space:nowrap}

/* ---------- 7. Зоны загрузки: пунктир 2 #b9bec7, скругление 16, фон #f7f7f8 ---------- */
html body.template-instrumentpage:not(#_) .instrument-page :where(
  .instrument-ocr:not(.ocr-has-file) .ocr-entry,
  .wc .wc__upload,
  .pdf-scan .pdf-scan__drop-box,
  .foto-pdf .foto-pdf__add){
  border:2px dashed var(--ed-field);border-radius:16px;background:var(--ed-soft)}
html body.template-instrumentpage:not(#_) .instrument-page :where(
  .instrument-ocr .ocr-entry:hover, .instrument-ocr.ocr-dragover .ocr-entry,
  .foto-pdf .foto-pdf__add.is-over){border-color:var(--ed-brand);background:#faf3f4}

/* ---------- 8. Флажки и переключатели: 20, фирменный цвет ---------- */
html body.template-instrumentpage:not(#_) .instrument-page :where(.ap-transliteration, .address-compare-page, .instrument-ocr, .wc, .pdf-scan, .foto-pdf)
  input:is([type="checkbox"],[type="radio"]){width:20px;height:20px;accent-color:var(--ed-brand);flex:none}

/* ---------- 9. Транслитерация: поля четырех колонок на одной линии ---------- */
/* Подпись, пояснение, поле и кнопка - общие строки сетки (subgrid): разная длина подписи больше не сдвигает поля. */
@media (min-width:701px){
  html body.template-instrumentpage:not(#_) .instrument-page .ap-transliteration .ap-transliteration__columns{grid-auto-rows:auto;row-gap:8px}
  html body.template-instrumentpage:not(#_) .instrument-page .ap-transliteration .ap-transliteration__column{
    grid-row:span 4;grid-template-rows:subgrid;row-gap:8px;align-items:start}
  html body.template-instrumentpage:not(#_) .instrument-page .ap-transliteration .ap-transliteration__column > textarea{min-height:160px;align-self:stretch}
}

/* ---------- 10. Телефон: те же кегли, кнопки и поля 40 под палец ---------- */
@media (max-width:700px),(max-width:980px) and (max-height:500px){
  html body.template-instrumentpage:not(#_) .instrument-page :where(.ap-transliteration, .address-compare-page, .instrument-ocr, .wc, .pdf-scan, .foto-pdf)
    :where(button, .zknopka, .ocr-pick):not(:where(.pdf-scan__thumbnail, .ocr-preview-papers *, .ap-transliteration__disclosure *)){min-height:40px}
  html body.template-instrumentpage:not(#_) .instrument-page :where(
    .ap-transliteration .ap-transliteration__actions .btn.big,
    .ap-transliteration .ap-transliteration__clear,
    .ap-transliteration .ap-transliteration__copy,
    .address-compare-page .actions button,
    .wc .wc__primary, .wc .wc__secondary,
    .pdf-scan .zknopka,
    .foto-pdf .zknopka){padding:4px 12px;white-space:normal;text-align:center}
  /* на узком экране длинная подпись кнопки переносится на вторую строку, а не обрезается */
  html body.template-instrumentpage:not(#_) .instrument-page :where(.ap-transliteration, .address-compare-page, .instrument-ocr, .wc, .pdf-scan, .foto-pdf)
    :where(select, input:is([type="text"],[type="number"],[type="search"],[type="email"],[type="tel"],:not([type]))){min-height:40px;height:40px}
  html body.template-instrumentpage:not(#_) .instrument-page :where(
    .foto-pdf .foto-pdf__start .zknopka,
    .instrument-ocr:not(.ocr-has-file) .ocr-pick){min-height:48px;padding:0 16px}
  html body.template-instrumentpage:not(#_) .instrument-page .foto-pdf .foto-pdf__bar .zknopka{padding:0 8px}
  html body.template-instrumentpage:not(#_) .instrument-page .wc .wc__section:not(.wc__services){padding:10px 14px 16px}
}
/* калькулятор на узком экране: языки друг под другом, кнопка смены языков справа от первого - названия языков
   больше не обрезаются (было: «Английски» в поле 116 px) */
@media (max-width:600px){
  html body.template-instrumentpage:not(#_) .instrument-page .wc .wc__languages{grid-template-columns:minmax(0,1fr) 40px;gap:8px 8px;align-items:end}
  html body.template-instrumentpage:not(#_) .instrument-page .wc .wc__languages > label:last-of-type{grid-column:1 / -1}
  html body.template-instrumentpage:not(#_) .instrument-page .wc .wc__swap{width:40px;height:40px;min-height:40px}
}
/* адрес на узком экране: «Населенный пункт» и «Регион», «Район» и тип пункта - друг под другом, подсказки целиком
   (было: «Московская обл» обрезалось в поле 145 px; 20.11) */
@media (max-width:480px){
  html body.template-instrumentpage:not(#_) .instrument-page .address-compare-page :where(.location-grid, .locality-grid){grid-template-columns:minmax(0,1fr)}
}
/* «Скан из фото» на самом узком экране (320): списки настроек в один столбец - значения целиком
   (было: «Как для все», «A4 - 21×29,7» обрезались в поле 132-140 px; 20.11) */
@media (max-width:360px){
  html body.template-instrumentpage:not(#_) .instrument-page .foto-pdf :where(.foto-pdf__settings, .foto-pdf__panel-spiski){grid-template-columns:minmax(0,1fr)}
}
