/* Compact independent copy; keep the established mint and cream visual language. */
.mobile-app { padding: var(--mobile-safe-top, 0) var(--mobile-safe-right, 0) var(--mobile-safe-bottom, 0) var(--mobile-safe-left, 0); }
.mobile-app .hdr, .mobile-app .main, .mobile-app .ftr { max-width: 800px; }
.mobile-app .hdr { padding: 14px 16px; }
.mobile-app .brand-text b { font-size: 18px; }
.mobile-app .brand-text small { display: none; }
.mobile-app .brand-mark { width: 36px; height: 40px; }
.mobile-app .intro { display: block; min-height: 0; margin: 6px 0 18px; }
.mobile-app .hero-type { width: 100%; text-align: left; }
.mobile-app .intro h1 { font-size: clamp(21px, 5vw, 29px); }
.mobile-app #site-title { font-size: clamp(21px, 5vw, 29px); text-shadow: none; }
.mobile-app .intro p { font-size: 14px; }
.mobile-app .ornament, .mobile-app #ask-ai, .mobile-app .go-kbd { display: none; }
.mobile-app .main { padding: 0 16px 20px; }
.mobile-app .ftr { padding: 8px 16px 24px; }
.mobile-app .footer-brand, .mobile-app .footer-help { display: none; }
.mobile-app .ftr-links { justify-content: flex-start; }
.mobile-app .quick-links { margin-top: 18px; }
.mobile-app .translation-actions { display: flex; }
.mobile-app .btn-go { width: 100%; }
@media (max-width: 420px) {
  .mobile-app .hdr { gap: 6px; }
  .mobile-app .brand-text b { max-width: 110px; font-size: 15px; }
  .mobile-app .hdr-actions { gap: 0; }
  .mobile-app .seg-ui > a { padding-inline: 8px; }
  .mobile-app .main { padding-inline: 10px; }
}
:root[data-telegram-theme="dark"] {
  color-scheme: dark;
  --bg: var(--telegram-bg_color, #17212b); --card: var(--telegram-secondary_bg_color, #232e3c);
  --panel: var(--telegram-secondary_bg_color, #232e3c); --ink: var(--telegram-text_color, #f5f5f5);
  --ink-2: #c3ced8; --ink-3: var(--telegram-hint_color, #9ba9b5);
  --line: #3a4957; --line-2: #536475; --accent: #a9dbc5; --accent-2: #c2ebd8;
  --accent-soft: #29483d; --accent-line: #4e7965; --ok: #9bd6b0;
}
:root[data-telegram-theme="dark"] body { background: var(--bg); }
:root[data-telegram-theme="dark"] :is(.hdr, .tr-bar, .tr-opts, .pane, .dlg, .extras, .lookup-feedback, .word-suggestions) { background: var(--card); color: var(--ink); }
:root[data-telegram-theme="dark"] :is(.seg, .quick-links button, .language-tabs) { background: var(--panel); color: var(--ink); }
:root[data-telegram-theme="dark"] .seg > :is([aria-current="true"], [aria-pressed="true"], [aria-selected="true"]) { background: #375345; color: var(--ink); }
:root[data-telegram-theme="dark"] :is(textarea, select, .dst-text, .brand-text b, .intro h1, .dict-item, .hist-item) { color: var(--ink); }
:root[data-telegram-theme="dark"] :is(.tr, .card, .dlg-head, .dlg-foot, .lang-pick select, .swap, .seg, .key, .phrase-list button, .alphabet-grid button, .suggest-targets button) { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: none; }
:root[data-telegram-theme="dark"] :is(.tr-bar, .tr-opts, .hdr, .quick-links, .quick-links button, .extras) { background: transparent; }
:root[data-telegram-theme="dark"] :is(.brand, .brand-text b, #site-title, .quick-links button, .alphabet-icon, .tool, .icon-btn, .seg > a, .seg > button, .source-hint, .local-mode, .ftr-links button, .suggest-source, .suggest-target-label, .suggest-status) { color: var(--ink); text-shadow: none; }
:root[data-telegram-theme="dark"] :is(.dst-translit, .dict-source, .dict-word, .count, .card h2) { color: var(--ink-2); }
:root[data-telegram-theme="dark"] :is(.dict-word i, .dict-item, .suggest-direction) { background: var(--panel); color: var(--ink); border-color: var(--line); }
:root[data-telegram-theme="dark"] :is(.word-options [role="option"], .word-options [role="option"] strong) { color: var(--ink); }
:root[data-telegram-theme="dark"] .word-options [role="option"]:hover { background: #375345; }
:root[data-telegram-theme="dark"] .btn-go { background: #96cfb3; color: #10281b; border-color: #96cfb3; }
:root[data-telegram-theme="dark"] .badge { background: #375345; color: #d7f7e6; }
:root[data-telegram-theme="dark"] .lang-pick .chev { color: var(--ink); }
:root[data-telegram-theme="dark"] .seg > :is([aria-current="true"], [aria-pressed="true"]) { background: #375345; color: #fff; }
