
body.nd-simple {font-family:Arial,sans-serif!important;background:#f7f8fa;}
body.nd-simple button,body.nd-simple input,body.nd-simple select {font-size:16px;}
body.nd-simple textarea:not(.xterm-helper-textarea){font-size:18px!important;line-height:1.65!important;min-height:112px!important;}
body.nd-simple .nd-hidden{display:none!important}
body.nd-simple .nd-section{margin:10px 6px;border-radius:14px;border:1px solid #dde3eb;background:#fff;}
body.nd-simple .nd-section>button{padding:18px 14px!important;font-size:18px!important;font-weight:600!important;white-space:normal!important;}
body.nd-simple .nd-section>button .text-xs{display:none!important;}
body.nd-simple .nd-section a{font-size:15px;line-height:1.5}
body.nd-simple h2{font-size:27px!important;line-height:1.3}
body.nd-simple [role=tablist]{border:0!important}
#nd-mode{position:fixed;bottom:12px;left:18px;z-index:80;padding:10px 15px;border:1px solid #cbd5e1;background:white;color:#334155;border-radius:10px;font-size:14px;cursor:pointer;box-shadow:0 2px 8px #0001}
body.nd-simple .nd-brand{font-size:20px!important;color:#243a57;}
body.nd-simple [class*="prose"]{font-size:18px!important;line-height:1.75!important}
/* На телефоне низ экрана занят полем ввода с микрофоном и отправкой —
   кнопку переключения режима уводим на верхнюю кромку, вправо. */
@media(max-width:640px){#nd-mode{bottom:auto;top:calc(env(safe-area-inset-top,0px) + 6px);left:auto;right:8px;width:40px;height:40px;padding:0;border-radius:50%;font-size:0;opacity:.9;display:flex;align-items:center;justify-content:center}#nd-mode::before{content:'⚙';font-size:22px;line-height:1}body.nd-simple h2{font-size:23px!important}}

body.nd-simple .nd-project-list{display:flex;flex-direction:column}
body.nd-simple .nd-project-row{order:var(--nd-order)}
body.nd-simple .nd-brand{font-size:18px!important}
body.nd-simple .nd-section button[title*="Удал"],body.nd-simple .nd-section button[title*="Delete"],body.nd-simple .nd-section button[title*="Rename"],body.nd-simple .nd-section button[title*="Переимен"]{display:none!important}

body.nd-simple .nd-section [title*="Переименовать"],body.nd-simple .nd-section [title*="Убрать проект"]{display:none!important}

/* Голосовое (10.09.2026): встроенный микрофон кабинета шлёт запись во внешний
   сервис без ключа и не работает — прячем; рабочая кнопка Кодекса становится
   иконкой, одинаковой на телефоне и компьютере. */
button[aria-label="Voice"]{display:none!important}
#nd-voice .nd-voice-btn{display:inline-flex;align-items:center;gap:6px}
@media(max-width:640px){
  #nd-voice{padding:4px 8px!important;gap:8px!important}
  #nd-voice .nd-voice-btn{padding:8px 12px!important;font-size:22px!important;line-height:1!important}
  #nd-voice .nd-lbl{display:none}
  #nd-voice [data-idle]{display:none}
}

/* Телефон (10.09.2026, просьба Надежды): поле ввода компактное, растёт по мере
   набора; серверный микрофон на телефоне убран — диктовка идёт клавиатурой.
   Вернуть микрофон на телефон: удалить строку с #nd-voice ниже. */
@media(max-width:640px){
  body.nd-simple textarea:not(.xterm-helper-textarea){min-height:44px!important;max-height:32vh!important;font-size:16px!important;line-height:1.4!important;padding:8px 10px!important}
  #nd-voice{display:none!important}
}

/* Телефон, плотность (10.09.2026, по скриншоту Надежды): шрифт ответов как
   у обычных сообщений, ряд вкладок «Чат/Файлы» в простом режиме спрятан
   (полный режим — значок ⚙ — возвращает всё). */
@media(max-width:640px){
  body.nd-simple [class*="prose"]{font-size:16px!important;line-height:1.5!important}
  body.nd-simple [class*="prose"] li,body.nd-simple [class*="prose"] p{margin:6px 0!important}
  body.nd-simple h2{font-size:20px!important}
  body.nd-simple [role=tablist]{display:none!important}
}
