/* Arvum Pro — доповнення до pole.css: вхід, портфель господарств, карта, огляди з фото, питання й поради. */
.grow { flex: 1; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .04em; }
.mono.big { font-size: 20px; }
.sel { user-select: all; word-break: break-all; }
.narrow { max-width: 560px; margin: 24px auto; }
.note.info { background: var(--info-bg); color: var(--info); }
.badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.btn.onsoil { background: transparent; color: var(--on-soil); border-color: rgba(244, 239, 226, .35); }
.btn.onsoil:hover { border-color: var(--wheat); }
.btn:disabled, .cell:disabled, .ystep:disabled { cursor: default; opacity: 1; }
.filebtn { cursor: pointer; }
.chk.inline { margin-top: 10px; }
.top .farm { display: grid; color: var(--on-soil); text-decoration: none; font-weight: 800; font-size: 14px; line-height: 1.15; max-width: 210px; padding: 4px 10px; border-radius: 10px; border: 1px solid rgba(244, 239, 226, .2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .farm small { color: rgba(244, 239, 226, .6); font-weight: 600; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.top .farm:hover { border-color: var(--wheat); }
.who { color: rgba(244, 239, 226, .8); font-weight: 700; font-size: 14px; }
.tabs a { padding: 8px 9px; font-size: 13.5px; }
.sync { display: flex; align-items: center; gap: 5px; background: none; border: 0; color: rgba(244, 239, 226, .8); font: 700 12px var(--sans); cursor: pointer; padding: 6px; border-radius: 8px; }
.sync i { width: 10px; height: 10px; border-radius: 50%; background: #7a7a6e; }
.sync.ok i { background: #6cc070; }
.sync.wait i { background: var(--wheat); }
.sync.off i { background: #b0a99a; box-shadow: 0 0 0 2px rgba(240, 192, 96, .6); }
.sync.busy i { background: var(--wheat); animation: pulse 1s infinite; }
.sync.demo i { background: #8cc3e3; }
@keyframes pulse { 50% { opacity: .3; } }
main.wide { max-width: 1400px; }

/* вхід */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-side { background: var(--soil); color: var(--on-soil); padding: 48px max(24px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; justify-content: center; gap: 18px; border-right: 4px solid var(--wheat); }
.auth-side > div { display: flex; align-items: center; gap: 12px; }
.auth-side .logo { width: 48px; height: 48px; }
.auth-side h2 { font-size: 30px; margin: 0; }
.auth-side h2 b { color: var(--wheat); font-weight: 400; }
.auth-side p { max-width: 46ch; color: rgba(244, 239, 226, .82); font-size: 16px; }
.auth-side .btn { align-self: flex-start; }
.auth-card { align-self: center; justify-self: center; width: min(440px, calc(100% - 32px)); margin: 32px 16px; }
.auth-card .sw { margin-top: 18px; color: var(--muted); }

/* портфель */
.ocard { display: block; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; cursor: pointer; }
.ocard:hover { border-color: var(--wheat); }
.ocard h3 { font: 500 16px var(--display); }
.ocard small { color: var(--muted); }

/* карта */
.mapwrap { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map { height: min(70vh, 720px); min-height: 380px; background: #1b1a16; }
.map.small { height: 320px; min-height: 0; border-radius: var(--r); border: 1px solid var(--line); }
.fmap { margin: 0 0 16px; }
.mapbar { position: absolute; top: 10px; right: 10px; z-index: 500; display: flex; gap: 4px; }
.drawbar { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 500; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--card); color: var(--ink); border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); }
.drawbar span { flex: 1; min-width: 160px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.vtx { background: #ffd24a; border: 2px solid #1d1c16; border-radius: 50%; }
.leaflet-tooltip.flabel { background: rgba(29, 28, 22, .78); color: #fff; border: 0; box-shadow: none; font: 700 11.5px/1.25 var(--sans); padding: 3px 6px; text-align: center; }
.leaflet-tooltip.flabel::before { display: none; }
.leaflet-container { font-family: var(--sans); }
.dot.ok { background: #3d9a4a; }

/* огляди, фото */
.scouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.scard { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--leaf); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.scard.over { border-left-color: var(--bad); }
.sc-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sc-h a { font-weight: 800; color: var(--ink); }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.thumb { width: 74px; height: 74px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb img.miss { display: none; }
.by { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.photo-ov { align-items: center; padding: 16px; cursor: zoom-out; }
.photo-ov img { max-width: 100%; max-height: 90vh; border-radius: 12px; }

/* питання й поради */
.threads { display: grid; gap: 8px; }
.thread { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.thread:hover { border-color: var(--muted); }
.thread > div:first-child { min-width: 0; }
.th-s { display: grid; justify-items: end; align-content: start; gap: 4px; white-space: nowrap; }
.th-s small { color: var(--muted); font-size: 12px; }
.thread-c { text-decoration: none; color: var(--ink); }
.task.rec.proposed { border-color: var(--wheat); }
.task .fl { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; margin: 8px 0 0; }
.task .fl a { font-weight: 700; color: var(--ink); }
.task .sum { font-size: 13.5px; color: var(--muted); }
.msgs-t { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.msgs-t li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; max-width: 760px; }
.msgs-t li.me { margin-left: auto; background: color-mix(in srgb, var(--wheat-soft) 55%, var(--card)); }
.m-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.m-h small { color: var(--muted); }
.m-h time { margin-left: auto; color: var(--muted); font-size: 12px; }
.msgs-t p { margin: 6px 0 0; }
.reply textarea { min-height: 80px; }
.tablewrap.flat { box-shadow: none; }

@media (max-width: 1180px) {
  .tabs { display: none; }
  .top-in { justify-content: space-between; }
  .bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; background: var(--soil); border-top: 2px solid var(--wheat); overflow-x: auto; scrollbar-width: none; padding-block: 4px calc(4px + env(safe-area-inset-bottom, 0px)); padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
  .bottom a { flex: 1 0 auto; text-align: center; font-size: 12.5px; padding: 9px 8px; }
  .bottom a.on { color: var(--wheat); }
  .fab { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 760px) {
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-side { padding: 28px 16px; border-right: 0; border-bottom: 4px solid var(--wheat); }
  .top .farm { flex: 1 1 auto; min-width: 0; max-width: none; }
  .top .farm small { display: none; }
  .sync span { display: none; }
  .top-in { gap: 8px; }
  .season span { font-size: 0; }
  .season b { font-size: 15px; }
  .map { height: 62vh; }
  .scouts { grid-template-columns: minmax(0, 1fr); }
  .thread { flex-direction: column; }
  .th-s { justify-items: start; }
}
