/* İlkokul Dijital — Birleşik Kumanda v1.2: yalniz yerlesim ve ana giris */
/* Yeni sekme bir ilave satir; araçların önceki kompakt boyunu geri getir. */
.ild-a4-remote-app:not(.ild-pdf-view) .ild-a4-remote-control:not([hidden]) {
  grid-template-rows: auto auto minmax(190px,1fr) auto auto;
}
.ild-a4-remote-app:not(.ild-pdf-view) .ild-a4-remote-tools {
  grid-row: 2;
  align-self: start;
}
.ild-a4-remote-app:not(.ild-pdf-view) .ild-a4-remote-pad-wrap { grid-row:3; }
.ild-a4-remote-app:not(.ild-pdf-view) .ild-a4-remote-size { grid-row:4; }
.ild-a4-remote-app:not(.ild-pdf-view) .ild-a4-remote-page-actions { grid-row:5; }
.ild-remote-tabs { margin: 0; }
.ild-a4-remote-app.ild-pdf-view .ild-a4-remote-control:not([hidden]) {
  display:flex; flex-direction:column; gap:10px; overflow-y:auto; overflow-x:hidden;
  touch-action:pan-y; -webkit-overflow-scrolling:touch;
}
.ild-a4-remote-app.ild-pdf-view .ild-remote-tabs { flex:0 0 auto; }
.ild-a4-remote-app.ild-pdf-view .ild-remote-file-panel { flex:0 0 auto; }
/* Ana ekran: ikinci QR değil, mevcut telefon kumandası eşleştirmesi. */
#ild-remote-home-launch {
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:min(570px,calc(100% - 20px)); margin:9px auto 4px;
  min-height:43px; padding:9px 16px; border:1px solid #81cce7;
  border-radius:14px; background:linear-gradient(135deg,#e8f8ff,#d8f6f1);
  box-shadow:0 5px 14px rgba(11,84,127,.10);color:#075879;
  font:850 clamp(13px,1.5vw,16px)/1.22 Nunito,system-ui,sans-serif;
  cursor:pointer; text-align:center;
}
#ild-remote-home-launch:not(:disabled):hover {background:linear-gradient(135deg,#d9f4ff,#b9eee5);border-color:#1ca1ce;}
#ild-remote-home-launch:focus-visible {outline:3px solid #087cba;outline-offset:2px;}
#ild-remote-home-launch:disabled {opacity:.72;cursor:wait;}
#ild-remote-home-launch .ild-remote-home-icon {font-size:20px;line-height:1;flex:none;}
@media (orientation:landscape) and (max-height:620px) {
  .ild-a4-remote-app:not(.ild-pdf-view) .ild-a4-remote-control:not([hidden]) {
    grid-template-rows:auto minmax(0,1fr) auto;
  }
  .ild-a4-remote-app:not(.ild-pdf-view) .ild-remote-tabs {grid-column:1/-1;grid-row:1;}
  .ild-a4-remote-app:not(.ild-pdf-view) .ild-a4-remote-tools {grid-column:1;grid-row:2/4;align-self:stretch;}
  .ild-a4-remote-app:not(.ild-pdf-view) .ild-a4-remote-pad-wrap {grid-column:2;grid-row:2/4;}
  .ild-a4-remote-app:not(.ild-pdf-view) .ild-a4-remote-size {grid-column:3;grid-row:2;}
  .ild-a4-remote-app:not(.ild-pdf-view) .ild-a4-remote-page-actions {grid-column:3;grid-row:3;}
}
@media(max-width:540px){#ild-remote-home-launch{width:calc(100% - 20px);min-height:42px;padding:8px 10px;}}


/* v1.4: Ana ekrandaki baglanti durumu */
#ild-remote-home-launch{transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;}
#ild-remote-home-launch .ild-remote-home-content{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;}
#ild-remote-home-launch .ild-remote-home-icon{display:inline-flex;align-items:center;justify-content:center;min-width:20px;}
#ild-remote-home-launch .ild-remote-home-label{display:inline-flex;align-items:center;justify-content:center;}
#ild-remote-home-launch .ild-remote-home-signal{display:none;align-items:flex-end;gap:3px;height:18px;margin-left:2px;}
#ild-remote-home-launch .ild-remote-home-signal i{display:block;width:4px;border-radius:999px;background:currentColor;opacity:.28;transition:opacity .18s ease,transform .18s ease,height .18s ease;background-image:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,0));}
#ild-remote-home-launch .ild-remote-home-signal i:nth-child(1){height:6px}#ild-remote-home-launch .ild-remote-home-signal i:nth-child(2){height:9px}#ild-remote-home-launch .ild-remote-home-signal i:nth-child(3){height:12px}#ild-remote-home-launch .ild-remote-home-signal i:nth-child(4){height:15px}
#ild-remote-home-launch.is-connected{background:linear-gradient(135deg,#1bb55c,#16a34a);border-color:#159246;color:#fff;box-shadow:0 8px 20px rgba(19,116,53,.23);}
#ild-remote-home-launch.is-connected:hover{background:linear-gradient(135deg,#18a955,#149142);border-color:#10793a;}
#ild-remote-home-launch.is-connected .ild-remote-home-signal{display:inline-flex;}
#ild-remote-home-launch.is-connected .ild-remote-home-icon{display:none;}
#ild-remote-home-launch.is-connected .ild-remote-home-signal i.is-on{opacity:1;transform:translateY(-.5px);}
#ild-remote-home-launch.is-connected[data-connection="relay"]{background:linear-gradient(135deg,#1db788,#169d79);border-color:#138b69;}
#ild-remote-home-launch.is-connected[data-signal-level="1"] .ild-remote-home-signal i:nth-child(-n+1),
#ild-remote-home-launch.is-connected[data-signal-level="2"] .ild-remote-home-signal i:nth-child(-n+2),
#ild-remote-home-launch.is-connected[data-signal-level="3"] .ild-remote-home-signal i:nth-child(-n+3),
#ild-remote-home-launch.is-connected[data-signal-level="4"] .ild-remote-home-signal i:nth-child(-n+4){opacity:1;}
#ild-remote-home-launch.is-connected:focus-visible{outline-color:#b8f4ce;}
@media(max-width:540px){#ild-remote-home-launch .ild-remote-home-content{gap:8px;}#ild-remote-home-launch .ild-remote-home-label{font-size:14px;}}
