/* ЗЕМЛЯКИ — телефонная вёрстка.
   Включается классом html.mob (js/mobile.js и inline-скрипт в <head>):
   ширина ≤ 820 px или альбомный телефон (высота ≤ 520 px, касание).
   На ПК этот файл ничего не меняет, кроме порядка скрытых служебных блоков. */

/* ── служебное: на ПК шторки нет ── */
.sheet-head { display: none; }
.panel > .tabs { order: -1; }
.panel > .panel-body { order: 0; }

html.mob {
  --navh: calc(50px + env(safe-area-inset-bottom, 0px));
  --tickh: 32px;
  --hudh: 88px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
html.mob, html.mob body, html.mob #app { height: 100%; }
@supports (height: 100dvh) { html.mob, html.mob body, html.mob #app { height: 100dvh; } }
html.mob body { overscroll-behavior: none; touch-action: manipulation; font-size: var(--fs-15); }

/* поля ввода ≥16px — иначе iOS приближает страницу при фокусе */
html.mob .input, html.mob input, html.mob select, html.mob textarea { font-size: var(--fs-16); }
html.mob .input, html.mob select.input { min-height: 42px; }

/* крупные цели касания */
html.mob .btn { min-height: 42px; padding: 9px 14px; font-size: var(--fs-14); }
html.mob .btn.small { min-height: 40px; }
html.mob .btn.tiny { min-height: 36px; padding: 6px 12px; font-size: var(--fs-13); }
html.mob .btn.big { min-height: 48px; }
html.mob .btns { gap: 8px; }
html.mob .row-toggle { padding: 12px; }

/* ══════════ СТАРТОВЫЙ ЭКРАН: карта сверху, список снизу ══════════ */
html.mob #screen-start .topbar { flex-wrap: wrap; gap: 8px; padding: 8px 10px; min-height: 0; }
html.mob #screen-start .tagline { display: none; }
html.mob #screen-start .brand { flex: 1; display: flex; justify-content: center; }
html.mob #screen-start .brand-logo { height: 24px; }
html.mob #btn-start-back { margin-right: 0; padding: 8px 12px; min-height: 40px; }
html.mob .search-wrap { order: 5; flex: 1 0 100%; min-width: 0; }
html.mob .search-results { left: 0; right: 0; width: auto; max-height: 52dvh; }
html.mob .search-results .sr { padding: 13px 10px; font-size: var(--fs-15); }
html.mob .acct-chip { margin-left: 0; }
html.mob .start-main { flex-direction: column; }
html.mob #start-map-wrap { flex: 0 0 30dvh; min-height: 170px; }
html.mob .side { width: 100%; min-width: 0; flex: 1 1 auto; border-left: 0; border-top: 2px solid #000; padding: 12px; }
html.mob .map-legend { display: none !important; }
html.mob #map-ctl-start { top: 8px; right: 8px; }
html.mob .resume-box { left: 8px; top: 8px; width: calc(100% - 64px); }
html.mob .np-list { max-height: none; }
html.mob .np-btn { padding: 12px 10px; }

/* ══════════ ИГРА: шапка ══════════ */
html.mob .hud { flex-wrap: wrap; min-height: 0; padding: 0; gap: 0; align-items: stretch; }
html.mob .hud-left { order: 1; flex: 1 1 0; min-width: 0; }
html.mob .hud-right { order: 2; flex: 0 0 auto; padding: 4px 8px; gap: 6px; border-left: 0; box-shadow: none; }
html.mob .hud-mid { order: 3; flex: 1 0 100%; overflow-x: auto; overflow-y: hidden; border-top: 1px solid #000;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
html.mob .hud-mid::-webkit-scrollbar { display: none; }
html.mob .brand-plate { display: none; }
html.mob .hud-place { padding: 0 10px; max-width: none; flex: 1 1 auto; min-width: 0; border-right: 0; box-shadow: none; }
html.mob .hud-place b { font-size: var(--fs-16); }
html.mob .hud-place span { display: none; }
html.mob .hud-branches { display: none; padding: 0 6px 0 0; border-right: 0; box-shadow: none; }
html.mob .hud-branches.multi { display: none; }   /* v96: переключатель филиалов — в «Полях» (в шапке сжимал логотип) */
html.mob .hud-branches .btn { display: none; }
html.mob .hud-branches select { max-width: 120px; min-height: 36px; padding: 4px 6px; font-size: var(--fs-14); }
html.mob .speed .spd { width: 42px; height: 38px; padding: 0; font-size: var(--fs-14); }
html.mob .icobtn { width: 42px; height: 38px; font-size: var(--fs-18); }
html.mob #btn-guide, html.mob #btn-save { display: none; }   /* есть в меню паузы */
html.mob .ctr { padding: 4px 10px; min-width: 0; }
html.mob .ctr .lab { font-size: var(--fs-10); }
html.mob .ctr .val { font-size: var(--fs-16); }
html.mob .ctr .val.sm { font-size: var(--fs-14); }
html.mob .ctr .sub { display: none; }
html.mob .ctr.event { max-width: none; }
html.mob .ctr.event .lab { display: block; }

/* ══════════ ИГРА: карта на весь экран ══════════ */
html.mob .game-main { position: relative; }
html.mob .game-map-wrap { min-width: 0; }
html.mob .map-tip-box { display: none !important; }
html.mob #game-map-wrap .map-ctl { top: 8px; right: 8px; }
html.mob #game-map-wrap .north { display: none; }
html.mob .zc { width: 42px; height: 42px; font-size: var(--fs-20); }
html.mob .map-modes, html.mob .leaflet-mode .map-modes {
  left: 8px; right: 62px; top: 8px; bottom: auto; max-width: none; overflow-x: auto; flex-wrap: nowrap;
  scrollbar-width: none; background: rgba(11,14,17,.92); }
html.mob .map-modes::-webkit-scrollbar { display: none; }
html.mob .mm { flex: 0 0 auto; white-space: nowrap; padding: 0 9px; min-height: 42px; font-size: var(--fs-12); letter-spacing: .02em; }
html.mob .leaflet-top.leaflet-right { margin-top: -2px; }
html.mob .leaflet-touch .leaflet-bar a { width: 42px; height: 42px; line-height: 42px; font-size: var(--fs-20); }
html.mob .leaflet-control-attribution { font-size: var(--fs-10); max-width: 70vw; }

/* карточка пая: снизу, на всю ширину */
html.mob .map-pop { position: fixed; left: 8px !important; right: 8px; top: auto !important; width: auto;
  bottom: calc(var(--navh) + var(--tickh) + 8px); z-index: 60; padding: 14px; }
html.mob .map-pop .mp-title { font-size: var(--fs-16); }
html.mob .map-pop .mp-row { font-size: var(--fs-14); padding: 4px 0; }
html.mob .map-pop .mp-x { width: 40px; height: 40px; font-size: var(--fs-22); }

/* режим «Обвести поле» */
html.mob .draw-bar { bottom: calc(var(--navh) + var(--tickh) + 8px); width: calc(100% - 16px); max-width: 460px; }
html.mob .draw-bar .btn { min-height: 46px; }

/* ══════════ ИГРА: нижняя панель вкладок + шторка ══════════ */
html.mob .panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; min-width: 0; z-index: 50;
  display: flex; flex-direction: column; padding: 0; background: transparent; border-left: 0; box-shadow: none; pointer-events: none; }
html.mob .panel > * { pointer-events: auto; }

html.mob .tabs { order: 3; flex: 0 0 auto; display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
  height: var(--navh); padding: 0 4px env(safe-area-inset-bottom, 0px); gap: 0; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; border-top: 2px solid #000; border-bottom: 0; background: #0c1016;
  box-shadow: 0 -2px 0 rgba(201,162,87,.18), 0 -8px 18px rgba(0,0,0,.45); }
html.mob .tabs::-webkit-scrollbar { display: none; }
html.mob .tab { flex: 0 0 auto; white-space: nowrap; min-height: 48px; padding: 0 15px; font-size: var(--fs-13); letter-spacing: .6px;
  border-bottom: 0; border-top: 3px solid transparent; text-shadow: none; }
html.mob .tab.sel { border-top-color: var(--gold); text-shadow: none; background: rgba(201,162,87,.08); }

html.mob .sheet-head { order: 1; display: none; position: relative; align-items: center; justify-content: center; height: 30px;
  background: #151c25; border-top: 2px solid var(--golddim); border-radius: 14px 14px 0 0; touch-action: none; }
.sheet-grip { width: 44px; height: 4px; border-radius: var(--r-sm); background: var(--line2); }
.sheet-x { position: absolute; right: 2px; top: 0; width: 46px; height: 30px; background: none; border: 0; color: var(--muted); font-size: var(--fs-16); }
html.mob #screen-game.sheet-open .sheet-head { display: flex; animation: sheetUp .2s ease-out; }

html.mob .panel-body { order: 2; flex: 0 0 auto; display: none; padding: 12px 12px 22px; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; background: linear-gradient(180deg, #19212b, #0f151c); }
html.mob #screen-game.sheet-open .panel-body { display: block; height: min(64dvh, 600px); animation: sheetUp .2s ease-out; }
@keyframes sheetUp { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }

/* лента: одна строка-«тикер», тап — раскрыть весь список */
html.mob .newsbar { height: var(--tickh); margin-bottom: var(--navh); flex: 0 0 auto; position: relative; overflow: visible; cursor: pointer; }
html.mob .news-title { writing-mode: horizontal-tb; transform: none; display: flex; align-items: center; padding: 0 10px;
  letter-spacing: 2px; border-right: 1px solid #000; }
html.mob .news-title::after { content: "▴"; margin-left: 6px; font-size: var(--fs-10); }
html.mob .news-list { padding: 0 10px; overflow: hidden; display: flex; align-items: center; }
html.mob .news-list .news-it { border: 0; padding: 0; width: 100%; font-size: var(--fs-13); }
html.mob .news-list .news-it:nth-child(n+2) { display: none; }
html.mob .news-list .ni-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.mob .newsbar.open .news-list { position: absolute; left: 0; right: 0; bottom: 0; height: min(48dvh, 420px); z-index: 55;
  display: block; overflow-y: auto; padding: 6px 12px 10px; background: #0b0f14; border-top: 2px solid var(--gold);
  box-shadow: 0 -10px 24px rgba(0,0,0,.55); -webkit-overflow-scrolling: touch; }
html.mob .newsbar.open .news-list .news-it { display: flex; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
html.mob .newsbar.open .news-list .ni-t { white-space: normal; }

/* всплывашки */
html.mob .toast { bottom: calc(var(--navh) + var(--tickh) + 14px); max-width: 92%; font-size: var(--fs-14); }
html.mob .modal { padding: 16px; max-height: 92dvh; overflow-y: auto; }
html.mob .modal-btns { flex-wrap: wrap; }
html.mob .modal-btns .btn { flex: 1 1 auto; }
html.mob .modal-back, html.mob .pause-back, html.mob .guide-back { padding: 8px; }
html.mob .pause { padding: 16px 14px 14px; }
html.mob .ach-pop { max-width: calc(100vw - 16px); }

/* наставник: сверху под шапкой, чтобы не закрывать шторку */
html.mob .tut, html.mob .tut.min { left: 8px !important; right: 8px !important; width: auto !important;
  top: calc(var(--hudh) + 8px) !important; bottom: auto !important; max-height: 38dvh; }


/* ══════════ СОДЕРЖИМОЕ ПАНЕЛЕЙ: узкие карточки ══════════ */
html.mob .card.row { flex-wrap: wrap; }
html.mob .card.row > .grow1 { flex: 1 1 150px; }
html.mob .card.row > .btn, html.mob .card.row > button { flex: 1 1 100%; }
html.mob .card.row > .btns-col { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
html.mob .card.row > .btns-col .btn { flex: 1 1 auto; }
html.mob .tech-card { grid-template-columns: 76px minmax(0, 1fr); }
html.mob .tech-act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
html.mob .tech-act .btn { flex: 1 1 auto; }
html.mob .tech-info .bar { max-width: none; }
html.mob .kpi b { font-size: var(--fs-15); }
html.mob .chans { grid-template-columns: 1fr; }
html.mob .chan { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
html.mob .chan-t { min-height: 0; flex: 1 1 100%; }
html.mob .chan .btn { flex: 1 1 100%; }
html.mob .field-acts .btn { flex: 1 1 auto; }
html.mob .sel-crop { min-width: 0; width: 100%; }
html.mob .hist-table, html.mob .g-tbl { overflow-x: auto; }
html.mob .panel-body img { max-width: 100%; }


/* справочник: на весь экран, разделы — лентой сверху */
html.mob .guide-back { padding: 0; }
html.mob .guide { width: 100%; height: 100%; border: 0; }
html.mob .g-top { padding: 8px 10px; gap: 8px; }
html.mob .g-main { flex-direction: column; }
html.mob .g-nav { width: auto; flex: 0 0 auto; display: flex; overflow-x: auto; overflow-y: hidden; border-right: 0;
  border-bottom: 1px solid var(--line); padding: 0; scrollbar-width: none; }
html.mob .g-nav::-webkit-scrollbar { display: none; }
html.mob .g-ni { width: auto; flex: 0 0 auto; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding: 11px 13px; font-size: var(--fs-14); }
html.mob .g-ni.sel { border-bottom-color: var(--gold); }
html.mob .g-body { padding: 14px 14px 30px; font-size: var(--fs-15); }
html.mob .g-sec h3 { font-size: var(--fs-22); }

/* ══════════ АЛЬБОМНЫЙ ТЕЛЕФОН: шапка в одну строку, шторка справа ══════════ */
html.mob.land { --navh: calc(44px + env(safe-area-inset-bottom, 0px)); --hudh: 46px; }
html.mob.land .hud { flex-wrap: nowrap; }
html.mob.land .hud-mid { order: 2; flex: 1 1 0; min-width: 0; border-top: 0; }
html.mob.land .hud-right { order: 3; }
html.mob.land .hud-left { flex: 0 1 140px; }
html.mob.land .ctr { padding: 2px 10px; }
html.mob.land .ctr .val { font-size: var(--fs-15); }
html.mob.land .newsbar { display: none; }
html.mob.land .tab { min-height: 42px; }
html.mob.land .panel { left: auto; width: min(60vw, 520px); }
html.mob.land #screen-game.sheet-open .panel { top: 46px; }
html.mob.land #screen-game.sheet-open .panel-body { flex: 1 1 auto; height: auto; min-height: 0; }
html.mob.land .map-pop, html.mob.land .draw-bar, html.mob.land .toast { bottom: calc(var(--navh) + 8px); }
html.mob.land .map-pop { right: auto; width: min(340px, 50vw); }
html.mob.land .tut, html.mob.land .tut.min { right: auto !important; width: min(360px, 50vw) !important; top: 54px !important; max-height: calc(100dvh - 110px); }
html.mob.land .start-main { flex-direction: row; }
html.mob.land #start-map-wrap { flex: 1 1 auto; min-height: 0; }
html.mob.land .side { width: min(46vw, 380px); flex: none; border-top: 0; border-left: 2px solid #000; }

@media (prefers-reduced-motion: reduce) {
  html.mob #screen-game.sheet-open .sheet-head, html.mob #screen-game.sheet-open .panel-body { animation: none; }
}


/* ═══════════ v85 · FS25: телефон и планшет ═══════════ */
html.mob {
  --navh: calc(58px + env(safe-area-inset-bottom, 0px));
  --tickh: 30px;
  --sab: env(safe-area-inset-bottom, 0px);
  --sat: env(safe-area-inset-top, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}
html.mob body { padding-left: var(--sal); padding-right: var(--sar); }

/* нижняя панель: иконка + подпись, как в меню FS25 */
html.mob .tabs {
  height: var(--navh); padding: 0 6px var(--sab); gap: 2px; align-items: stretch;
  background: rgba(23,26,30,.97); border-top: 1px solid #2b3036; box-shadow: 0 -6px 18px rgba(0,0,0,.4);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 22px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 22px), transparent 100%);
  scroll-snap-type: x proximity;
}
html.mob .tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 64px; min-height: 0; padding: 6px 8px 4px; border: 0; border-radius: var(--r-lg); margin: 5px 0;
  font: 600 11px var(--head); letter-spacing: .3px; text-transform: uppercase; color: #8d98a1; scroll-snap-align: center;
}
html.mob .tab .tab-ico { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.mob .tab .tab-l { line-height: 1.1; white-space: nowrap; }
html.mob .tab.sel { background: rgba(150,193,31,.16); color: var(--accent2); border: 0; }
html.mob .tab:active { background: rgba(255,255,255,.08); }
html.mob .tab .tab-n { position: absolute; top: 2px; right: 8px; margin: 0; min-width: 15px; padding: 0 4px; font-size: var(--fs-10); line-height: 15px; }
html.mob .tab .tab-lock { position: absolute; top: 5px; right: 11px; margin: 0; }

/* шторка */
html.mob .sheet-head { background: #1c2024; border-top: 1px solid #3b424a; border-radius: 18px 18px 0 0; height: 28px; }
.sheet-grip { background: #4a525b; width: 40px; }
html.mob .panel-body { background: #1c2024; }
html.mob #screen-game.sheet-open .panel-body { height: min(66dvh, 640px); padding: 12px 12px calc(20px + var(--sab)) ; }

/* HUD: компактнее, счётчики влезают без обрезания и с подсказкой прокрутки */
html.mob .hud { background: #171a1e; padding-top: var(--sat); }
html.mob .hud-place b { font-size: var(--fs-16); }
html.mob .hud-mid { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); border-top: 1px solid #2b3036; }
html.mob .ctr { padding: 5px 10px; border-right: 1px solid #2b3036; }
html.mob .ctr .lab { font-size: var(--fs-10); }
html.mob .ctr .val { font-size: var(--fs-15); }
html.mob .speed { padding: 2px; }
html.mob .speed .spd { width: 40px; height: 36px; border-radius: 18px; }
html.mob .icobtn { width: 40px; height: 40px; border-radius: var(--r-lg); }

/* карта: панель режимов и кнопки — крупно, с отступом от краёв-«чёлки» */
html.mob .map-modes { border-radius: 14px; padding: 3px; }
html.mob .mm { min-height: 40px; border-radius: var(--r-lg); }
html.mob .zc, html.mob .leaflet-touch .leaflet-bar a { border-radius: var(--r-lg); }
html.mob .map-pop { border-radius: 16px; padding: 14px 14px 16px; }

/* ленты / окна */
html.mob .newsbar { background: #171a1e; border-top: 1px solid #2b3036; }
html.mob .newsbar.open .news-list { background: #171a1e; border-top: 2px solid var(--accent); border-radius: 16px 16px 0 0; }
html.mob .modal, html.mob .ev { border-radius: 16px; }
html.mob .ev-back { padding: 10px; align-items: flex-end; }
html.mob .ev { max-height: 94dvh; }
html.mob .ev-body { padding: 14px 16px calc(16px + var(--sab)); }
html.mob .ev-btn { width: 100%; padding: 14px; min-width: 0; }
html.mob .ev-btns, html.mob .ev .ev-btns { flex-direction: column; align-items: stretch; }
html.mob .modal-back { align-items: flex-end; padding: 10px; }
html.mob .modal { width: 100%; max-height: 88dvh; padding-bottom: calc(18px + var(--sab)); }
html.mob .modal-btns { flex-direction: column-reverse; }
html.mob .modal-btns .btn { width: 100%; min-height: 46px; }
html.mob .pause-back { align-items: flex-end; padding: 10px; }
html.mob .pause { width: 100%; border-radius: 16px; padding-bottom: calc(14px + var(--sab)); }

/* карточки внутри шторки — крупнее цели касания */
html.mob .card, html.mob .agro-card { border-radius: var(--r-lg); }
html.mob .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.mob .panel-body h3 { font-size: var(--fs-14); margin-top: 14px; }

/* магазин: фильтры в сетку, карточки по 2 в ряд, закрытие — крупной кнопкой */
html.mob .shop { width: 100vw; max-width: none; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
html.mob .shop-back { padding: 0; }
html.mob .shop-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
html.mob .shop-bar > input:not([type=checkbox]) { grid-column: 1 / -1; }
html.mob .shop-bar select, html.mob .shop-bar input:not([type=checkbox]) { min-height: 42px; width: 100%; font-size: var(--fs-16); border-radius: var(--r-lg); }
html.mob .shop-bar input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: #96c11f; flex: none; }
html.mob .shop-chk { font-size: var(--fs-14); min-height: 36px; grid-column: auto; }
html.mob .shop-head { padding: 10px 14px; gap: 10px; }
html.mob .shop-x { font-size: var(--fs-26); padding: 8px 12px; margin-left: auto; }
html.mob .shop-body { padding: 10px 12px calc(20px + var(--sab)); }
html.mob .shop-sub { padding: 0 14px 4px; }
html.mob .shop-cats { flex-wrap: nowrap; overflow-x: auto; gap: 4px 18px; scrollbar-width: none; }
html.mob .shop-cats::-webkit-scrollbar { display: none; }
html.mob .shop-cat { white-space: nowrap; padding: 10px 0; }
html.mob .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html.mob .shop-price { font-size: var(--fs-18); }

/* старт: профиль и пакеты — крупные плитки */
html.mob .start-mode { padding: 12px; }
html.mob .farm-name-row { flex-wrap: nowrap; }
html.mob .pack { padding: 14px; }
html.mob #screen-start .side { border-top: 1px solid #2b3036; border-radius: 16px 16px 0 0; margin-top: -12px; position: relative; z-index: 2; }

/* ── планшет (портрет/ландшафт, 600–1100 px): шторка по центру, крупнее текст ── */
@media (min-width: 600px) {
  html.mob:not(.land) { --navh: calc(64px + env(safe-area-inset-bottom, 0px)); }
  html.mob:not(.land) .tab { min-width: 78px; font-size: var(--fs-12); }
  html.mob:not(.land) .tab .tab-ico { width: 26px; height: 26px; }
  html.mob:not(.land) .tabs { justify-content: safe center; }
  html.mob:not(.land) .sheet-head, html.mob:not(.land) .panel-body { width: min(720px, 100%); align-self: center; border-left: 1px solid #2b3036; border-right: 1px solid #2b3036; }
  html.mob:not(.land) #screen-game.sheet-open .panel-body { height: min(58dvh, 720px); font-size: var(--fs-16); }
  html.mob:not(.land) .map-pop { left: 50% !important; right: auto; width: min(520px, calc(100% - 16px)); transform: translateX(-50%); }
  html.mob:not(.land) .ev, html.mob:not(.land) .modal, html.mob:not(.land) .pause { max-width: 560px; margin: 0 auto; }
  html.mob:not(.land) .ev-back, html.mob:not(.land) .modal-back, html.mob:not(.land) .pause-back { align-items: center; }
  html.mob:not(.land) .shop { width: min(900px, 96vw); height: min(92dvh, 1000px); border-radius: 16px; border: 1px solid #3b424a; }
  html.mob:not(.land) .shop-back { padding: 14px; }
  html.mob:not(.land) .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.mob:not(.land) .shop-bar { grid-template-columns: repeat(4, 1fr); }
  html.mob:not(.land) .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.mob:not(.land) .hud-place span { display: block; }
  html.mob:not(.land) .ctr .sub { display: block; }
  html.mob:not(.land) #start-map-wrap { flex-basis: 40dvh; }
}

/* ── телефон в альбомной ориентации: панель справа, иконки без подписей-обрезки ── */
html.mob.land { --navh: calc(48px + env(safe-area-inset-bottom, 0px)); --tickh: 0px; }
html.mob.land .tabs { -webkit-mask-image: none; mask-image: none; }
html.mob.land .tab { flex-direction: row; gap: 6px; min-width: 0; margin: 4px 0; padding: 0 12px; font-size: var(--fs-11); }
html.mob.land .tab .tab-ico { width: 18px; height: 18px; }
html.mob.land .panel { width: min(58vw, 540px); right: var(--sar); }
html.mob.land #screen-game.sheet-open .panel-body { border-left: 1px solid #2b3036; }
html.mob.land .hud-mid { -webkit-mask-image: none; mask-image: none; }
html.mob.land .ev-back, html.mob.land .modal-back, html.mob.land .pause-back { align-items: center; }
html.mob.land .ev { max-width: 640px; max-height: 96dvh; }
html.mob.land .ev-pic { aspect-ratio: 21 / 6; }
html.mob.land .modal, html.mob.land .pause { max-width: 480px; }
html.mob.land .shop { width: 100vw; }
html.mob.land .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html.mob.land .shop-rail { flex-direction: column; padding: 8px 0; gap: 8px; }
html.mob.land .shop { grid-template-columns: 64px 1fr; }
html.mob.land .shop-tab { width: 52px; height: 52px; }

/* поправки v85: фильтры магазина и HUD в альбомной ориентации */
html.mob .shop-bar select { min-width: 0; text-overflow: ellipsis; }
html.mob.land .hud-mid { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
html.mob.land .shop-head { padding: 6px 12px; flex-wrap: nowrap; }
html.mob.land .shop-badge { width: 38px; height: 38px; border-radius: var(--r-lg); }
html.mob.land .shop-balance { padding: 6px 14px; font-size: var(--fs-11); margin-left: auto; }
html.mob.land .shop-x { margin-left: 0; }
html.mob.land .shop-bar { grid-template-columns: 2fr repeat(4, 1fr); gap: 6px; padding: 6px 0 2px; }
html.mob.land .shop-bar > input:not([type=checkbox]) { grid-column: auto; }
html.mob.land .shop-bar select, html.mob.land .shop-bar input:not([type=checkbox]) { min-height: 36px; font-size: var(--fs-14); }
html.mob.land .shop-chk { grid-column: auto; font-size: var(--fs-13); }
html.mob.land .shop-cat { padding: 6px 0; }
html.mob.land .shop-body { padding: 8px 12px 16px; }
html.mob .shop-head h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; font-size: var(--fs-16); }
html.mob.land .shop-head h3 { font-size: var(--fs-15); }
html.mob.land .shop-balance { flex: 0 0 auto; }
html.mob.land .shop-x { flex: 0 0 auto; }

/* кнопки окон всегда видны: липнут к нижнему краю прокручиваемого окна */
html.mob .modal-btns { position: sticky; bottom: calc(-18px - var(--sab)); background: #1f2327; padding: 10px 0 2px; margin-top: 0; z-index: 2; }
html.mob .ev-btns, html.mob .ev-body > .ev-btn { position: sticky; bottom: calc(-16px - var(--sab)); z-index: 2;
  background: linear-gradient(180deg, rgba(31,35,39,0), #1f2327 26%); padding-top: 16px; }
html.mob .shop-head h3 { flex: 1 1 auto; }
html.mob.land .modal-btns { flex-direction: row; }
html.mob.land .modal-btns .btn { min-height: 42px; }
html.mob.land .modal { padding: 14px 18px calc(14px + var(--sab)); gap: 8px; }

/* окно «Финансы» на телефоне — как магазин: на весь экран, рельса сверху */
html.mob .fin-body { padding: 12px 12px calc(20px + var(--sab)); }
html.mob .fin-win { width: 100vw; max-width: none; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
html.mob .fin-back { padding: 0; }
html.mob .fin-inner { max-width: none; }
html.mob .fin-body h3 { font-size: var(--fs-14); }
html.mob .fin-link { padding: 14px; }
@media (min-width: 600px) {
  html.mob:not(.land) .fin-win { width: min(900px, 96vw); height: min(92dvh, 1000px); border-radius: 16px; border: 1px solid #3b424a; }
  html.mob:not(.land) .fin-back { padding: 14px; }
}
html.mob.land .fin-win { width: 100vw; }

/* окно «Склад» на телефоне */
html.mob .wh-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
html.mob .wh-res-grid { grid-template-columns: 1fr; }
html.mob .wh-seed-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
html.mob .wh-tile, html.mob .wh-seed { padding: 10px; }
html.mob .wh-top .crop-ico { width: 38px; height: 38px; }
html.mob .wh-t { font-size: var(--fs-18); }
html.mob .wh-cap-n { font-size: var(--fs-20); }
html.mob .wh-io { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
html.mob .wh-line-card .bld-thumb { width: 60px; }
html.mob.land .wh-grid, html.mob.land .wh-seed-grid { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 600px) {
  html.mob:not(.land) .wh-grid { grid-template-columns: repeat(3, 1fr); }
  html.mob:not(.land) .wh-seed-grid { grid-template-columns: repeat(3, 1fr); }
  html.mob:not(.land) .wh-res-grid { grid-template-columns: repeat(3, 1fr); }
}
html.mob .wh-line-card { flex-wrap: nowrap; align-items: flex-start; }
html.mob .wh-line-card .grow1 { min-width: 0; }
html.mob .wh-line-card .bld-thumb { width: 56px; }
html.mob .wh-tile .wh-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-size: var(--fs-14); }
html.mob .wh-line-card.full .wh-io { grid-template-columns: 1fr 1fr; }
html.mob .wh-lhead .bld-thumb { width: 56px; }
html.mob .wh-ctls { gap: 10px; }
html.mob .wh-seg button { padding: 9px 12px; }
html.mob .wh-chip { padding: 8px 12px; }
/* окно «Хозяйство»: иконки в рельсе */
html.mob:not(.land) .wh-win .shop-rail { gap: 3px; padding: 6px 4px; overflow-x: auto; justify-content: safe center; }   /* десять разделов (v117) */
html.mob:not(.land) .wh-win .shop-tab { width: 44px; flex: none; }
html.mob:not(.land) .wh-win .shop-tab img { width: 32px; height: 32px; }
html.mob.land .wh-win .shop-rail { gap: 4px; overflow-y: auto; }
html.mob.land .wh-win .shop-tab { width: 46px; height: 46px; }
/* окно «Состав бригады» на телефоне: на весь экран, выбор трактора под названием */
html.mob .crew-back { padding: 0; align-items: flex-end; }
html.mob .crew-win { width: 100vw; max-height: 94dvh; border-radius: 16px 16px 0 0; }
html.mob .crew-head { padding: 14px 14px 8px; }
html.mob .crew-body { padding: 10px 12px; }
html.mob .crew-row { flex-wrap: wrap; }
html.mob .crew-info { flex: 1 1 calc(100% - 120px); }
html.mob .crew-sel { flex: 1 1 100%; }
html.mob .crew-sel select { padding: 11px 10px; font-size: var(--fs-14); }
html.mob .crew-foot { padding: 10px 12px calc(12px + var(--sab)); }
html.mob .crew-btns { width: 100%; }
html.mob .crew-btns .btn { flex: 1; min-height: 44px; }

/* v91: Техника на телефоне — список сверху, панель ниже */
html.mob .tc { grid-template-columns: minmax(0, 1fr); }
html.mob .tc-list { max-height: 42vh; }
html.mob .tc-photo .tech-thumb { height: 160px; }
html.mob .tc-spec { grid-template-columns: minmax(0, 1fr); }
html.mob .tc-op { font-size: var(--fs-11); padding: 3px 7px; }
@media (max-width: 760px) { .tc { grid-template-columns: minmax(0, 1fr); } .tc-list { max-height: 42vh; } .tc-spec { grid-template-columns: minmax(0, 1fr); } }
html.mob .crew-btns { flex-wrap: wrap; }
html.mob .crew-btns .btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; }
html.mob .crew-btns .btn.primary { flex: 1 1 100%; order: -1; }

/* v96: филиалы с телефона: «+ Филиал» и выбор филиала — первой строкой вкладки «Поля» */
html.mob .br-strip { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
html.mob .br-strip select { flex: 1 1 auto; min-width: 0; min-height: 40px; font-size: var(--fs-14); }
html.mob .br-strip .btn { flex: 0 0 auto; min-height: 40px; padding: 0 14px; white-space: nowrap; }
html.mob .branch-pick { max-height: min(62dvh, 560px); }
html.mob .branch-pick .np-btn { flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
html.mob .branch-pick .np-btn .np-meta { flex: 1 0 100%; white-space: normal; }
/* v96: «Стройка» в «Хозяйстве» — на узком экране карточки зданий в один столбец */
@media (max-width: 560px) { html.mob .shop-grid.wide { grid-template-columns: 1fr; } }

/* рейтинг хозяйств: на телефоне — шторка снизу */
html.mob .lb-back { align-items: flex-end; padding: 0; }
html.mob .lb-win { width: 100vw; max-height: 92dvh; border-radius: 16px 16px 0 0; }
html.mob .lb-head { padding: 12px 14px 10px; }
html.mob .lb-ico { width: 44px; height: 44px; }
html.mob .lb-head h3 { font-size: var(--fs-16); }
html.mob .lb-row { padding: 8px 10px; gap: 9px; }
html.mob .lb-sum { font-size: var(--fs-15); }
html.mob .lb-who small { white-space: normal; }

/* Животноводство (v117): десять разделов в полосе иконок, таблицы и карточки в одну колонку */
html.mob .hd-breeds, html.mob .hd-dairies, html.mob .hd-specs { grid-template-columns: 1fr; }
html.mob .hd-tbl { font-size: var(--fs-12); display: block; overflow-x: auto; }
html.mob .hd-kpis { grid-template-columns: repeat(2, 1fr); }
html.mob .hd .btn, html.mob .hd .btn.small, html.mob .hd .btn.tiny { min-height: 38px; padding: 0 14px; font-size: var(--fs-13); }
html.mob .hd .hd-tbl td .btn { min-height: 34px; }

/* v194: планшет в альбомной — панель шире, чтобы все вкладки помещались */
@media (min-width: 960px) { html.mob.land .panel { width: min(62vw, 660px); } }

/* v194: телефон — все вкладки внизу помещаются без прокрутки */
html.mob:not(.land) .tabs { -webkit-mask-image: none; mask-image: none; justify-content: stretch; }
html.mob:not(.land) .tab { flex: 1 1 0; min-width: 0; padding: 6px 2px 4px; }
html.mob:not(.land) .tab .tab-l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 10px; letter-spacing: .2px; }
/* окно «Хозяйство»: десять разделов в один ряд без прокрутки */
html.mob:not(.land) .wh-win .shop-rail { overflow-x: hidden; justify-content: stretch; }
html.mob:not(.land) .wh-win .shop-tab { flex: 1 1 0; width: auto; min-width: 0; }
html.mob:not(.land) .wh-win .shop-tab img { width: min(32px, 7.4vw); height: min(32px, 7.4vw); }
/* три показателя — в один ряд */
html.mob:not(.land) .kpis:has(> .kpi:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.mob:not(.land) .kpis:has(> .kpi:nth-child(3):last-child) .kpi b { font-size: var(--fs-15, 15px); }
/* готовность парка свёрнута */
.tc-ready-d > summary { cursor: pointer; list-style: none; font-size: var(--fs-13); color: var(--muted); padding: 4px 0; }
.tc-ready-d > summary::-webkit-details-marker { display: none; }
.tc-ready-d > summary b { color: var(--text); }
.tc-ready-d[open] > summary { margin-bottom: 6px; }
