/* BİASDER / Saha Hakemi premium — yalnız field görünümünde. */
body.field-premium-mode:not(.signed-out){background:linear-gradient(180deg,#061728,#032f50);color:#f2f9ff}
body.field-premium-mode:not(.signed-out) main{max-width:1380px;padding:0 22px 60px}
body.field-premium-mode:not(.signed-out) #pageHeading{display:none}
body.field-premium-mode:not(.signed-out) .field-premium-hero{display:flex;align-items:flex-end;min-height:280px;padding:28px 36px;margin:0 0 12px;overflow:hidden;border-bottom:2px solid #08c8e8;background:linear-gradient(90deg,rgba(2,16,36,.82),rgba(2,19,42,.45) 65%,rgba(2,19,42,.1)),url('/assets/site/saha-hero.webp') center/cover no-repeat;color:#fff}
body.field-premium-mode .field-hero-words p{font-size:12px;font-weight:900;letter-spacing:2.5px;margin:0 0 10px;color:#aeeaff}
body.field-premium-mode .field-hero-words h2{font-size:clamp(30px,4vw,53px);color:#fff;margin:0 0 8px;font-weight:900}
body.field-premium-mode .field-hero-words em{color:#1bdaff;font-style:normal}
body.field-premium-mode .field-hero-words span{color:#e6f4ff;line-height:1.5}
body.field-premium-mode nav.tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0 16px;padding:0;overflow:visible}
body.field-premium-mode nav.tabs button:not([hidden]){display:flex!important;justify-content:center;align-items:center;min-height:58px;white-space:normal;border:1px solid #078ebf;border-radius:12px;background:linear-gradient(130deg,#06466d,#05213e);color:#fff;box-shadow:inset 0 1px #50bfff20;font-weight:800}
body.field-premium-mode nav.tabs button.active{border-color:#17dcf6;box-shadow:0 3px 0 #06d4eb,0 0 15px #12cbed55}
body.field-premium-mode nav.tabs button.has-new-message{border-color:#ffcb41;color:#ffdf78}
body.field-premium-mode .tab>.panel,body.field-premium-mode .stat,body.field-premium-mode #fieldPanel .panel{background:#0c2944;border:1px solid #147cac;color:#eef7ff}
body.field-premium-mode .stat{border-top:3px solid #14cdeb;border-radius:12px}
body.field-premium-mode .stat:nth-child(2){border-top-color:#fbd04f}body.field-premium-mode .stat:nth-child(3){border-top-color:#00ddb3}body.field-premium-mode .stat:nth-child(4){border-top-color:#ff536b}
body.field-premium-mode .stat small,body.field-premium-mode .muted{color:#afcde1}
body.field-premium-mode .tab h2,body.field-premium-mode .tab h3{color:#fff}
body.field-premium-mode .tab input,body.field-premium-mode .tab select,body.field-premium-mode .tab textarea{color:#f7fbff;background:#081e36;border-color:#426b87}
body.field-premium-mode .tab input::placeholder,body.field-premium-mode .tab textarea::placeholder{color:#b8cbdf}
body.field-premium-mode #rulesText{white-space:normal;line-height:1.8;color:#ecf5ff;overflow-wrap:anywhere}
body.field-premium-mode #rulesText p{margin:0 0 12px}
body.field-premium-mode #fishLimitsList{overflow-x:auto}
body.field-premium-mode #fishLimitsList th,body.field-premium-mode #fishLimitsList td{color:#eaf6ff}
body.field-premium-mode #announcements .announcement-item{background:#eef8ff;color:#143452;border-radius:10px;padding:14px}
body.field-premium-mode #announcements .announcement-item h3,body.field-premium-mode #announcements .announcement-item p{color:#143452}
body.field-premium-mode #announcements .announcement-item p.eyebrow{color:#376888}
body.field-premium-mode #records .empty{background:#08223b;border-color:#138cc6;color:#fff}
body.field-premium-mode #records .empty p{color:#bacfe0}
@media(max-width:760px){body.field-premium-mode:not(.signed-out) main{padding:0 12px 36px}body.field-premium-mode:not(.signed-out) .field-premium-hero{min-height:160px;padding:20px 18px;background-position:center}body.field-premium-mode .field-hero-words h2{font-size:clamp(23px,6vw,34px)}body.field-premium-mode .field-hero-words span{font-size:12px}body.field-premium-mode nav.tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.field-premium-mode nav.tabs button:not([hidden]){font-size:12px;min-height:54px;padding:10px 8px}body.field-premium-mode .stats{grid-template-columns:repeat(2,minmax(0,1fr))}body.field-premium-mode .tab>.panel{padding:14px}}
@media(prefers-reduced-motion:reduce){body.field-premium-mode nav.tabs button{transition:none!important}}

/* v2 — hero ustte, mobil ve masaustunde kompakt 3x2 menu. */
body.field-premium-mode:not(.signed-out) .field-premium-hero{
  position:relative;display:flex;align-items:flex-start;justify-content:flex-start;
  min-height:270px;padding:26px 28px 54px;margin:0;
  background-position:center center;
}
body.field-premium-mode .field-hero-words{max-width:min(560px,80%);margin:0;text-align:left}
body.field-premium-mode nav.tabs{
  position:relative;z-index:4;max-width:100%;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;margin:-27px 12px 17px;padding:0;background:transparent;border:0;box-shadow:none;
}
body.field-premium-mode nav.tabs button:not([hidden]){
  min-width:0;min-height:43px;height:auto;padding:7px 7px;
  border-radius:9px;font-size:clamp(10px,.95vw,13px);line-height:1.2;
  background:linear-gradient(125deg,#07446a,#062642 78%);
  border:1px solid #0797cb;box-shadow:0 3px 9px #00132655;
}
body.field-premium-mode nav.tabs button.active{
  border-color:#32e4ff;box-shadow:0 2px 0 #00cce6,0 0 10px #12cbed40;
}
@media(max-width:760px){
  body.field-premium-mode:not(.signed-out) .field-premium-hero{
    min-height:174px;padding:16px 16px 38px;
    background-position:center center;
  }
  body.field-premium-mode .field-hero-words{max-width:92%}
  body.field-premium-mode .field-hero-words p{font-size:9px;letter-spacing:1.5px;margin-bottom:6px}
  body.field-premium-mode .field-hero-words h2{font-size:clamp(21px,5.2vw,30px);line-height:1.13}
  body.field-premium-mode .field-hero-words span{font-size:11px;line-height:1.4}
  body.field-premium-mode nav.tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:-21px 7px 14px}
  body.field-premium-mode nav.tabs button:not([hidden]){min-height:38px;padding:6px 3px;font-size:clamp(9px,2.3vw,11px);border-radius:8px}
}
/* Ornek olcum fotografi buyutme penceresi: mevcut etkileşimleri koru. */
body.field-premium-mode #measurementExampleDialog{background:#f5fbff;color:#09253e}
body.field-premium-mode #measurementExampleDialog h2{color:#09253e;font-size:clamp(16px,3vw,23px)}
body.field-premium-mode #measurementExampleDialog img{max-height:75vh;object-fit:contain}

/* v3: Saha hakemi mobil düzeni; yarışmacı panelindeki lacivert/turkuaz ölçüler. */
body.field-premium-mode:not(.signed-out) main{width:100%;max-width:1380px;margin-inline:auto}
body.field-premium-mode:not(.signed-out) .field-premium-hero{
 display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:14px;
 box-sizing:border-box;width:100%;min-height:0;padding:20px 22px 14px;margin:0 0 14px;
 border:1px solid #078fbd;border-bottom:2px solid #00cde9;border-radius:0;
 background:linear-gradient(90deg,rgba(2,16,36,.66),rgba(2,19,42,.18)),url('/assets/site/saha-hero.webp') center/cover no-repeat;
}
body.field-premium-mode .field-hero-words{max-width:100%;margin:0;text-align:left}
body.field-premium-mode .field-hero-words h2{margin:0 0 5px}
body.field-premium-mode .field-hero-words span{display:block}
body.field-premium-mode .field-premium-hero nav.tabs{
 position:static;z-index:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 align-self:stretch;width:100%;max-width:none;gap:8px;margin:0;padding:0;border:0;
 background:transparent;box-shadow:none;overflow:visible;
}
body.field-premium-mode .field-premium-hero nav.tabs button:not([hidden]){
 box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:7px 5px;
 border:1px solid #0e9ad1;border-radius:9px;
 background:linear-gradient(135deg,#075783,#082b4d 90%);color:#fff;
 font-size:12px;font-weight:800;line-height:1.15;white-space:normal;
 box-shadow:0 2px 5px rgba(0,16,34,.28);
}
body.field-premium-mode .field-premium-hero nav.tabs button.active{
 background:linear-gradient(135deg,#139ccb,#097aab);border-color:#18d8f9;
 box-shadow:0 3px 0 #10d5ef,0 0 10px rgba(18,203,237,.28);
}
body.field-premium-mode #records{display:flex;flex-direction:column;gap:12px}
body.field-premium-mode #records #roleWelcome{order:1;margin:0}
body.field-premium-mode #records #fieldPanel{order:2;margin:0}
body.field-premium-mode #records .stats{order:3;margin:4px 0 0}
body.field-premium-mode #records .toolbar{order:4;margin:4px 0 0}
body.field-premium-mode #records #rows{order:5}
body.field-premium-mode #records #empty{order:6}
body.field-premium-mode .stat strong{color:#fff!important}
body.field-premium-mode .field-assigned-name{margin:-9px 0 12px;font-size:clamp(15px,2vw,18px);font-weight:700;color:#49d5f8}
@media(max-width:760px){
 body.field-premium-mode:not(.signed-out) main{padding:0 10px 32px}
 body.field-premium-mode:not(.signed-out) .field-premium-hero{
  padding:13px 12px 12px;gap:10px;min-height:0;margin-bottom:12px;
  background-position:center center;
 }
 body.field-premium-mode .field-hero-words{max-width:100%}
 body.field-premium-mode .field-hero-words p{font-size:9px;margin-bottom:4px}
 body.field-premium-mode .field-hero-words h2{font-size:clamp(20px,5.5vw,28px);line-height:1.1;margin-bottom:5px}
 body.field-premium-mode .field-hero-words span{font-size:11px;line-height:1.35}
 body.field-premium-mode .field-premium-hero nav.tabs{gap:6px}
 body.field-premium-mode .field-premium-hero nav.tabs button:not([hidden]){
  min-height:36px;padding:6px 3px;border-radius:8px;font-size:clamp(9px,2.2vw,11px);
 }
 body.field-premium-mode #records{gap:10px}
 body.field-premium-mode #records .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.field-premium-mode #records .stat{padding:10px 12px;min-height:88px}
 body.field-premium-mode #records .stat small{font-size:11px;color:#e1f4ff}
 body.field-premium-mode #records .stat strong{font-size:24px}
 body.field-premium-mode #records #roleWelcome{padding:14px}
 body.field-premium-mode #records .toolbar{padding:12px;border:1px solid #147cac;border-radius:12px;background:#0c2944}
}

/* Saha Hakemi son yerlesim: kayit formu > istatistikler > cevrimdisi kuyruk.
   Sadece field-premium-mode; Masa Hakemi ve yarismaci panelleri etkilenmez.
   Kayit formu ve kuyruk DOM'dan cikartilmaz, yalnızca gorunumu siralanir. */
body.field-premium-mode #records #fieldPanel:not([hidden]),
body.field-premium-mode #records #fieldPanel:not([hidden]) > .workspace {
  display: contents !important;
}
body.field-premium-mode #records #fieldPanel > .workspace > .panel:first-child {
  order: 2;
  min-width: 0;
  margin: 0;
}
body.field-premium-mode #records .stats {
  order: 3;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body.field-premium-mode #records #fieldPanel > .workspace > .panel:nth-child(2) {
  order: 4;
  min-width: 0;
  margin: 0;
}
/* Masa Hakemi'nin gelen kayit listesi, saha hakemi gorunumunde yer kaplamaz. */
body.field-premium-mode #records > .toolbar,
body.field-premium-mode #records > #rows,
body.field-premium-mode #records > #empty {
  display: none !important;
}
/* Yarismaci premium istatistiklerinin lacivert zemini, renkli kenari ve ikonlari. */
body.field-premium-mode #records .stats > .stat {
  box-sizing: border-box;
  min-width: 0;
  min-height: 106px;
  padding: 15px 14px 14px 46px;
  position: relative;
  border: 1px solid #0f91bd !important;
  border-top: 3px solid #00d8f4 !important;
  border-radius: 13px;
  background: #062642 !important;
  color: #fff !important;
  box-shadow: none;
}
body.field-premium-mode #records .stats > .stat:nth-child(2) {border-top-color: #ffce37 !important}
body.field-premium-mode #records .stats > .stat:nth-child(3) {border-top-color: #04d9a7 !important}
body.field-premium-mode #records .stats > .stat:nth-child(4) {border-top-color: #fa4263 !important}
body.field-premium-mode #records .stats > .stat::before {
  position: absolute;
  left: 13px;
  top: 34px;
  font-size: 27px;
  line-height: 1;
  font-weight: 600;
  content: '▣';
  color: #00d8f4;
}
body.field-premium-mode #records .stats > .stat:nth-child(2)::before {content: '◷';color:#ffce37}
body.field-premium-mode #records .stats > .stat:nth-child(3)::before {content: '✓';color:#04d9a7}
body.field-premium-mode #records .stats > .stat:nth-child(4)::before {content: '×';color:#fa4263}
body.field-premium-mode #records .stat small {display:block;color:#f2faff !important;font-weight:800;font-size:12px;line-height:1.35}
body.field-premium-mode #records .stat strong {display:block;color:#fff !important;font-size:29px;line-height:1.3;margin-top:5px}
@media (max-width:760px) {
  body.field-premium-mode #records .stats {gap:9px}
  body.field-premium-mode #records .stats > .stat {min-height:105px;padding:15px 7px 12px 39px}
  body.field-premium-mode #records .stats > .stat::before {left:11px;top:38px;font-size:24px}
  body.field-premium-mode #records .stat small {font-size:10px}
  body.field-premium-mode #records .stat strong {font-size:25px}
}

/* BİASDER / Saha hakemi bekleyen olcum cagrisi - yalniz sekme dugmesi */
nav.tabs button[data-tab="measurementCalls"].mr-alert-active {
  position:relative;
  border-color:#ffb347 !important;
  box-shadow:0 0 0 2px rgba(255,179,71,.25), 0 0 18px rgba(255,146,28,.32);
  animation:mr-call-glow 1.5s ease-in-out infinite;
}
nav.tabs button[data-tab="measurementCalls"].mr-alert-active::after {
  content:attr(data-mr-count);
  display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:20px;margin-left:8px;padding:0 5px;
  border-radius:999px;background:#f87120;color:#111827;
  font-size:12px;font-weight:800;vertical-align:middle;
}
@keyframes mr-call-glow {50%{box-shadow:0 0 0 3px rgba(255,179,71,.55),0 0 24px rgba(255,146,28,.65);}}
@media(prefers-reduced-motion:reduce){nav.tabs button[data-tab="measurementCalls"].mr-alert-active{animation:none;}}


/* 2026-11-14: yalnız Saha Hakemi — kayıt, ölçüm çağrısı ve mesaj görünümü. */
body.field-premium-mode:not(.signed-out) #empty {display:none!important}
body.field-premium-mode #web-fish .upload {
  background:#0b2942!important;border:1px dashed #2296bd!important;
  color:#eaf7ff!important;border-radius:12px;padding:16px 12px;
}
body.field-premium-mode #web-fish .upload strong {color:#fff!important;-webkit-text-fill-color:#fff!important}
body.field-premium-mode #web-fish .upload p {color:#b9d9eb!important;-webkit-text-fill-color:#b9d9eb!important}
body.field-premium-mode #web-fish #web-team-sector {
  background:#0b2942!important;border:1px solid #267d9d;border-radius:10px;
  padding:10px 12px;color:#eaf7ff!important;
}
body.field-premium-mode #web-fish #web-team-sector span {color:#53e2f3!important}
body.field-premium-mode #web-camera:not(:disabled),
body.field-premium-mode #web-save:not(:disabled),
body.field-premium-mode #web-sync:not(:disabled),
body.field-premium-mode #fieldSavedCatchList button:not(:disabled),
body.field-premium-mode #messages #messageCenter > button.secondary:not(:disabled),
body.field-premium-mode #measurementCalls .measurement-item button:not(:disabled) {
  background:linear-gradient(135deg,#086ca5,#087d98)!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  border:1px solid #39cce3!important;box-shadow:0 3px 10px #0085ad26!important;
  border-radius:9px;
}
body.field-premium-mode #web-camera:disabled,
body.field-premium-mode #web-save:disabled,
body.field-premium-mode #web-sync:disabled,
body.field-premium-mode #fieldSavedCatchList button:disabled,
body.field-premium-mode #measurementCalls .measurement-item button:disabled {
  background:#20384d!important;color:#a8c0d0!important;-webkit-text-fill-color:#a8c0d0!important;
  border:1px solid #38556a!important;box-shadow:none!important;opacity:1!important;cursor:not-allowed;
}
body.field-premium-mode #records .stats > .stat {
  min-height:94px!important;padding:13px 10px 13px 44px!important;
  display:flex;flex-direction:column;justify-content:center;
}
body.field-premium-mode #records .stats > .stat::before {
  inset:auto!important;left:12px!important;top:50%!important;transform:translateY(-50%)!important;
  width:auto!important;height:auto!important;background:none!important;border:0!important;
  box-shadow:none!important;font-size:25px!important;line-height:1!important;
}
body.field-premium-mode #records .stats > .stat small {letter-spacing:.025em;font-size:10px!important;line-height:1.35}
body.field-premium-mode #records .stats > .stat strong {font-size:25px!important;margin-top:5px}
body.field-premium-mode #fieldSavedCatchList .field-catch-status {
  display:inline-block;vertical-align:middle;margin:3px 0 0 4px;padding:2px 7px;
  border:1px solid #4d6f86;border-radius:999px;color:#d9eaf4;background:#173449;
  font-size:11px;font-weight:700;white-space:normal;
}
body.field-premium-mode #fieldSavedCatchList .field-catch-status[data-status="approved"] {color:#8ef5c6;background:#0b423b;border-color:#24a77e}
body.field-premium-mode #fieldSavedCatchList .field-catch-status[data-status="pending"] {color:#ffe39a;background:#493b19;border-color:#b58a35}
body.field-premium-mode #fieldSavedCatchList .field-catch-status[data-status="rejected"] {color:#ffb5c2;background:#482837;border-color:#ad5268}
body.field-premium-mode #fieldPanel #web-queue {color:#e0f5ff!important;font-size:12px!important;line-height:1.5!important;margin-bottom:8px!important}
body.field-premium-mode #fieldPanel .panel:has(#web-queue) > p.muted {color:#bdd8e9!important;font-size:12px!important;line-height:1.5!important}
/* Seçili çağrı sekmesi mevcut kodda disabled; yalnız görünümü değişir. */
body.field-premium-mode #measurementCalls button[data-mr-view] {
  color:#c3dced!important;-webkit-text-fill-color:#c3dced!important;
  background:#203d55!important;border:1px solid #39708d!important;box-shadow:none!important;
}
body.field-premium-mode #measurementCalls button[data-mr-view]:disabled {
  background:linear-gradient(135deg,#0878b6,#088da4)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  border:1px solid #39d9ee!important;box-shadow:0 2px 0 #14cbe0!important;opacity:1!important;cursor:default;
}
body.field-premium-mode #measurementCalls .measurement-item {
  background:#0e2942!important;border:1px solid #286383!important;border-radius:12px;
}
body.field-premium-mode #measurementCalls .measurement-item strong {color:#fff!important;-webkit-text-fill-color:#fff!important}
body.field-premium-mode #measurementCalls .measurement-item span {color:#9fddf3!important;-webkit-text-fill-color:#9fddf3!important}
body.field-premium-mode #measurementCalls .measurement-item small {color:#c5d8e7!important;-webkit-text-fill-color:#c5d8e7!important}
body.field-premium-mode #measurementCalls .measurement-item > p {color:#dff4ff!important;-webkit-text-fill-color:#dff4ff!important;margin:3px 0}
body.field-premium-mode #measurementCalls .measurement-item:not(:has(button)) > p {
  justify-self:start;background:#0b443d!important;border:1px solid #238e72;border-radius:999px;padding:4px 9px;
  color:#a0f7d2!important;-webkit-text-fill-color:#a0f7d2!important;
}
body.field-premium-mode #messages #messageCenter .message-v2-stream > p,
body.field-premium-mode #messages #messageCenter > p.muted {
  color:#c5dff0!important;-webkit-text-fill-color:#c5dff0!important;
}
