/* Szukanie sondy w terenie - telefon w ręce, duże cyfry, wszystko w zasięgu kciuka */
.t-main { max-width: 640px; margin: 0 auto; padding: 72px 16px 40px; display: flex; flex-direction: column; gap: .9rem; }
.t-wybor { display: flex; flex-direction: column; gap: .3rem; font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.5); }
.t-wybor select { font: 600 1rem "JetBrains Mono", monospace; color: #fff; background: rgba(255,255,255,.05);
  border: 1px solid rgba(78,222,163,.3); border-radius: 12px; padding: .65rem .75rem; letter-spacing: 0; text-transform: none; }
.t-wybor select:focus-visible { outline: 2px solid #4edea3; outline-offset: 1px; }

.t-panel { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center;
  background: rgba(255,255,255,.03); border: 1px solid rgba(78,222,163,.16); border-radius: 18px; padding: 1rem; }
.t-kompas svg { width: 100%; height: auto; display: block; }
.t-tarcza { fill: rgba(0,0,0,.25); stroke: rgba(78,222,163,.35); stroke-width: 2; }
.t-n, .t-k { font: 700 16px "Montserrat", sans-serif; text-anchor: middle; fill: rgba(255,255,255,.55); }
.t-n { fill: #ff7a59; }
.t-strz { fill: #4edea3; stroke: #06231a; stroke-width: 2; stroke-linejoin: round; }
#strzalka, #roza { transform-origin: 100px 100px; transition: transform .35s ease-out; }
.t-kompas.brak #strzalka { opacity: .25; }
.t-odl__val { font-size: clamp(2.4rem, 11vw, 3.4rem); font-weight: 700; color: #fff; line-height: 1; }
.t-odl__sub { margin-top: .45rem; font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.4; }
.t-odl__sub b { color: #4edea3; }

.t-przyciski { display: flex; flex-wrap: wrap; gap: .5rem; }
.t-btn { flex: 1 1 auto; text-align: center; font: 700 .85rem "Montserrat", sans-serif; color: #e8e8f0; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(78,222,163,.3); border-radius: 12px; padding: .75rem .9rem; }
.t-btn:hover, .t-btn:focus-visible { border-color: #4edea3; outline: none; text-decoration: none; }
.t-btn--akcent { background: #4edea3; color: #06231a; border-color: #4edea3; }
.t-btn--akcent:hover { background: #7af0c0; }
.t-btn[aria-pressed="true"] { background: rgba(78,222,163,.18); border-color: #4edea3; color: #4edea3; }
.t-switch { flex: 1 1 100%; display: flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 700; font-size: .95rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(78,222,163,.3); border-radius: 12px; padding: .7rem .9rem; }
.t-switch input { width: 22px; height: 22px; accent-color: #4edea3; }

.t-mapa { height: 58vh; min-height: 380px; }
.t-dane { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; font-size: .9rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(78,222,163,.12); border-radius: 14px; padding: .8rem 1rem; }
.t-dane dt { color: rgba(255,255,255,.5); }
.t-dane dd { margin: 0; font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; color: #fff; word-break: break-word; }
.t-dane .stara { color: #ffd166; }
.t-uwaga { color: rgba(255,255,255,.55); font-size: .78rem; line-height: 1.55; margin: 0; }
@media (max-width: 380px) { .t-panel { grid-template-columns: 110px 1fr; } }
@media (prefers-reduced-motion: reduce) { #strzalka, #roza { transition: none; } }

/* Ręczna korekta pozycji */
.t-korekta { display: flex; flex-direction: column; gap: .6rem; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,209,102,.25); border-radius: 16px; padding: .9rem 1rem; }
.t-korekta__top { display: flex; align-items: center; gap: .6rem; }
.t-korekta h2 { margin: 0; }
.t-korekta__top .chip { margin-left: auto; }
.chip--reczna { background: rgba(255,209,102,.18); color: #ffd166; }
.t-korekta__opis { margin: 0; font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.45; }
.t-korekta__wiersz { display: flex; gap: .5rem; }
.t-korekta__wiersz input { flex: 1; min-width: 0; font: 600 1rem "JetBrains Mono", monospace; color: #fff;
  background: rgba(0,0,0,.25); border: 1px solid rgba(78,222,163,.3); border-radius: 12px; padding: .7rem .75rem; }
.t-korekta__wiersz input:focus-visible { outline: 2px solid #4edea3; outline-offset: 1px; }
.t-korekta__wiersz .t-btn { flex: 0 0 auto; }
.t-korekta .t-btn { flex: 1 1 40%; font-size: .8rem; padding: .65rem .6rem; }
.t-korekta__msg { margin: 0; font-size: .8rem; min-height: 1.1em; color: #4edea3; }
.t-korekta__msg.blad { color: #ff8a8a; }
.t-mapa.wskaz { cursor: crosshair; outline: 3px solid #ffd166; outline-offset: -3px; }

.t-korekta .t-korekta__wiersz .t-btn { flex: 0 0 auto; padding: .7rem 1.2rem; font-size: .9rem; }

/* Korekta cyfr: + nad i − pod każdą z 4 ostatnich cyfr */
.t-os { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, minmax(40px, 48px)); gap: 3px 4px; align-items: center;
  background: rgba(0,0,0,.22); border: 1px solid rgba(78,222,163,.2); border-radius: 14px; padding: .5rem .6rem; }
.t-os__etyk { grid-column: 1; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.t-os__pref { grid-column: 1; text-align: right; font: 700 1.55rem "JetBrains Mono", monospace; color: rgba(255,255,255,.75); white-space: nowrap; }
.t-os__cyfra { text-align: center; font: 700 1.75rem "JetBrains Mono", monospace; color: #ffd166; line-height: 1.1; }
.t-os button { height: 44px; border-radius: 10px; border: 1px solid rgba(78,222,163,.35); background: rgba(255,255,255,.06);
  color: #fff; font: 700 1.3rem "Montserrat", sans-serif; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.t-os button:active { background: rgba(78,222,163,.35); }
.t-os button:focus-visible { outline: 2px solid #4edea3; outline-offset: 1px; }
.t-os__krok { text-align: center; font-size: .6rem; color: rgba(255,255,255,.45); white-space: nowrap; }

/* przycisk śledzenia mojej pozycji */
#z-ja { color: #4285f4; }
#z-ja[aria-pressed="true"] { background: #4285f4; color: #fff; border-color: #4285f4; }

/* duże przyciski mapy pod kciuk (telefon w terenie) */
.teren .map-ctrl { top: 10px; right: 10px; gap: 8px; }
.teren .map-ctrl button { width: 52px; height: 52px; border-radius: 12px; font-size: 1.6rem; touch-action: manipulation; }

/* mapa na cały ekran */
.teren .map.pelny { position: fixed; inset: 0; width: auto; height: auto; min-height: 0; max-height: none; border-radius: 0; border: 0; z-index: 300; }
.teren .map.pelny .map-ctrl { top: calc(10px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right)); }
body.mapa-pelna { overflow: hidden; }
.t-pelny-info { display: none; }
.map.pelny .t-pelny-info { display: block; position: absolute; z-index: 2; left: calc(10px + env(safe-area-inset-left)); top: calc(10px + env(safe-area-inset-top));
  background: rgba(8,18,12,.88); border: 1px solid rgba(78,222,163,.35); border-radius: 12px; padding: .45rem .75rem;
  font: 700 1.6rem "JetBrains Mono", monospace; color: #fff; line-height: 1.15; pointer-events: none; }
.t-pelny-info small { display: block; font: 600 .8rem "Montserrat", sans-serif; color: #4edea3; }
