/* IOS_SEARCH_VIEWER_V1 */

#iosSearchViewerScreen,
#iosSearchViewerScreen *{
  box-sizing:border-box;
}

#iosSearchViewerScreen{
  min-height:100dvh;
  overflow-x:hidden;
  padding-bottom:calc(96px + env(safe-area-inset-bottom));
}

.ios-viewer-card{
  width:100%;
  max-width:760px;
  margin:14px auto 0;
  border-radius:28px;
  padding:16px;
  border:1px solid rgba(68,215,255,.28);
  background:
    radial-gradient(circle at 20% 0%, rgba(45,205,255,.18), transparent 34%),
    linear-gradient(180deg,rgba(8,24,46,.94),rgba(3,9,19,.94));
  box-shadow:0 22px 70px rgba(0,170,255,.15);
}

.ios-viewer-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.ios-viewer-avatar{
  width:56px;
  height:56px;
  flex:0 0 56px;
  border-radius:19px;
  display:grid;
  place-items:center;
  border:1px solid rgba(68,215,255,.32);
  background:rgba(66,232,255,.10);
}

.ios-viewer-avatar img{
  width:36px;
  height:36px;
  object-fit:contain;
}

.ios-viewer-title{
  font-size:23px;
  line-height:1.08;
  font-weight:1000;
  color:#eaf8ff;
}

.ios-viewer-subtitle{
  margin-top:5px;
  font-size:13px;
  line-height:1.35;
  color:#9dbfd1;
  overflow-wrap:anywhere;
}

.ios-viewer-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.ios-viewer-btn{
  min-height:42px;
  border-radius:15px;
  border:1px solid rgba(68,215,255,.24);
  background:rgba(255,255,255,.08);
  color:#eaf8ff !important;
  font-weight:900;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 13px;
}

.ios-viewer-btn.primary{
  color:#06111f !important;
  background:linear-gradient(135deg,#41e9ff,#2f8cff);
  border:0;
}

.ios-viewer-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}

.ios-viewer-stat{
  border-radius:17px;
  border:1px solid rgba(68,215,255,.20);
  background:rgba(255,255,255,.055);
  padding:12px;
}

.ios-viewer-stat-label{
  font-size:11px;
  color:#9dbfd1;
  font-weight:900;
  text-transform:uppercase;
}

.ios-viewer-stat-value{
  margin-top:6px;
  font-size:24px;
  font-weight:1000;
  color:#eaf8ff;
}

.ios-viewer-panel{
  width:100%;
  max-width:760px;
  margin:12px auto 0;
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(68,215,255,.24);
  background:rgba(5,18,35,.92);
  box-shadow:0 18px 54px rgba(0,0,0,.18);
}

.ios-viewer-toolbar{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.ios-viewer-control{
  min-height:44px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.07);
  color:#fff;
  padding:0 12px;
  outline:none;
  width:100%;
  font-size:14px;
}

.ios-viewer-control::placeholder{
  color:rgba(210,235,255,.56);
}

.ios-viewer-reset{
  grid-column:1 / -1;
  min-height:44px;
  border-radius:15px;
  border:1px solid rgba(68,215,255,.24);
  background:rgba(255,255,255,.08);
  color:#eaf8ff;
  font-weight:1000;
}

.ios-viewer-table-wrap{
  display:block;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.ios-viewer-table{
  width:100%;
  min-width:900px;
  border-collapse:separate;
  border-spacing:0;
}

.ios-viewer-table th{
  text-align:left;
  padding:14px 12px;
  color:#e8f2ff;
  font-size:12px;
  font-weight:1000;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(8,20,35,.25);
  cursor:pointer;
  white-space:nowrap;
}

.ios-viewer-table td{
  padding:12px;
  color:#eaf8ff;
  font-size:13px;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:middle;
}

.ios-viewer-row-no td{
  background:rgba(33,196,107,.14);
}

.ios-viewer-row-yes td{
  background:rgba(255,90,90,.13);
}

.ios-viewer-cards{
  display:none;
  padding:12px;
  gap:10px;
}

.ios-viewer-item{
  border-radius:20px;
  border:1px solid rgba(255,255,255,.08);
  padding:13px;
  background:#10213a;
}

.ios-viewer-item.no{
  background:linear-gradient(180deg,rgba(20,64,42,.75),rgba(15,48,33,.82));
  border-color:rgba(33,196,107,.28);
}

.ios-viewer-item.yes{
  background:linear-gradient(180deg,rgba(76,24,24,.76),rgba(58,19,19,.84));
  border-color:rgba(255,90,90,.26);
}

.ios-viewer-item-title{
  font-size:16px;
  font-weight:1000;
  color:#eaf8ff;
  margin-bottom:10px;
  overflow-wrap:anywhere;
}

.ios-viewer-kv{
  display:grid;
  grid-template-columns:112px 1fr;
  gap:8px;
  font-size:13px;
}

.ios-viewer-k{
  color:#9dbfd1;
}

.ios-viewer-v{
  color:#fff;
  overflow-wrap:anywhere;
}

.ios-viewer-empty{
  padding:34px 16px;
  text-align:center;
  color:#9dbfd1;
}

@media(max-width:760px){
  .ios-viewer-table-wrap{
    display:none;
  }

  .ios-viewer-cards{
    display:grid;
  }

  .ios-viewer-toolbar{
    grid-template-columns:1fr;
  }

  .ios-viewer-stats{
    grid-template-columns:1fr 1fr;
  }
}
