/* This stylesheet is loaded by the Android dashboard only.  Let the document
   own vertical scrolling instead of inheriting the fixed desktop shell. */
html.ua-android-app{
  height:auto!important;
  min-height:100%!important;
  overflow-y:auto!important;
}

html.ua-android-app body.ua-page-dashboard{
  height:auto!important;
  min-height:100dvh!important;
  overflow-y:visible!important;
  touch-action:pan-y;
  background:#06101d!important;
}

html.ua-android-app body.ua-page-dashboard .ua-shell,
html.ua-android-app body.ua-page-dashboard .ua-main,
html.ua-android-app body.ua-page-dashboard .ua-page,
html.ua-android-app body.ua-page-dashboard .ua-android-dashboard{
  height:auto!important;
  max-height:none!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}

html.ua-android-app body.ua-page-dashboard .ua-shell{
  min-height:100dvh!important;
}

.ua-android-dashboard{
  min-height:100dvh;
  color:#f7f9ff;
  background:
    radial-gradient(circle at 92% -5%,rgba(243,186,47,.14),transparent 34%),
    linear-gradient(180deg,#071423 0%,#06101d 100%);
  font-family:Tahoma,Arial,sans-serif;
}

.ad-main{
  display:grid;
  gap:6px;
  width:100%;
  max-width:560px;
  margin:0 auto;
  padding:6px 7px calc(10px + env(safe-area-inset-bottom));
}

.ad-top-card,
.ad-card,
.ad-section{
  min-width:0;
  border:1px solid rgba(137,164,197,.22);
  border-radius:15px;
  background:linear-gradient(155deg,rgba(19,35,57,.98),rgba(9,21,37,.98));
  box-shadow:0 12px 30px rgba(0,0,0,.22);
}

.ad-top-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) 40px;
  align-items:center;
  gap:8px;
  padding:7px;
  border-color:rgba(243,186,47,.38);
}

.ad-top-actions{display:flex;gap:5px}
.ad-icon-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  padding:0;
  border:1px solid rgba(243,186,47,.34);
  border-radius:11px;
  background:#0b192b;
  color:#f6c84b;
  font-size:15px;
}
.ad-brand{min-width:0;text-align:right}
.ad-brand-kicker{display:block;color:#91a3ba;font-size:9px;font-weight:800}
.ad-brand h1{margin:2px 0 3px;color:#fff;font-size:16px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-live-state{display:inline-flex;align-items:center;gap:5px;color:#9eacc0;font-size:9px;font-weight:800}
.ad-live-state i{width:7px;height:7px;border-radius:50%;background:#f6c84b;box-shadow:0 0 0 3px rgba(246,200,75,.12)}
.ad-live-state.is-ok{color:#75e3b1}.ad-live-state.is-ok i{background:#29d790;box-shadow:0 0 0 4px rgba(41,215,144,.12)}
.ad-brand-mark{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:11px;background:linear-gradient(145deg,#f3ba2f,#ff9f1a);color:#111927;font-size:16px}

.ad-section,.ad-card{padding:8px}
.ad-section-head,.ad-card-head{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:6px}
.ad-section-head span,.ad-card-head span{display:block;color:#8698ae;font-size:9px;font-weight:800}
.ad-section-head h2,.ad-card-head h2{margin:2px 0 0;color:#fff;font-size:14px}
.ad-section-head a,.ad-card-link{color:#f6c84b;text-decoration:none;font-size:10px;font-weight:900}
.ad-section-head a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 7px;border-radius:9px}
.ad-card-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;background:rgba(243,186,47,.11);color:#f6c84b;font-size:14px}

.ad-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.ad-stat{position:relative;display:flex;min-width:0;min-height:66px;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:4px 3px;border:1px solid rgba(137,164,197,.17);border-radius:10px;background:#0a182a;text-align:center;overflow:hidden}
.ad-stat>i{display:flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:8px;background:rgba(76,185,255,.11);color:#58c4f5;font-size:12px}
.ad-stat strong{color:#fff;font-size:18px;line-height:1}.ad-stat span{width:100%;color:#93a3b7;font-size:8px;font-weight:800;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-stat--online>i{background:rgba(41,215,144,.11);color:#29d790}.ad-stat--disabled>i{background:rgba(255,84,104,.11);color:#ff6578}.ad-stat--offline>i{background:rgba(255,166,44,.11);color:#ffad3d}

.ad-traffic-total{display:flex;min-height:40px;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:10px;background:linear-gradient(135deg,rgba(56,183,237,.13),rgba(243,186,47,.09))}
.ad-traffic-total strong{direction:ltr;color:#fff;font-size:20px}.ad-traffic-total span{color:#9aabc0;font-size:9px;font-weight:800;text-align:left}
.ad-traffic-split{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:4px}
.ad-traffic-split>div{display:grid;grid-template-columns:22px 1fr;gap:1px 4px;padding:5px 6px;border:1px solid rgba(137,164,197,.16);border-radius:9px;background:#091728}
.ad-traffic-split i{grid-row:1/3;align-self:center;color:#4dc2ef;font-size:12px}.ad-traffic-split span{color:#8799af;font-size:8px}.ad-traffic-split strong{direction:ltr;color:#fff;font-size:12px}
.ad-traffic-source{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:4px;padding-top:4px;border-top:1px solid rgba(137,164,197,.15);color:#8395aa;font-size:8.5px}
.ad-traffic-source>div{display:flex;min-width:0;flex:1;align-items:center;justify-content:space-between;gap:6px}.ad-traffic-source strong{min-width:0;color:#dbe7f5;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-traffic-toggle{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:4px;min-height:34px;padding:0 8px;border:1px solid rgba(243,186,47,.3);border-radius:9px;background:rgba(243,186,47,.07);color:#f6c84b;font:800 8.5px Tahoma,Arial,sans-serif;touch-action:manipulation}
.ad-traffic-toggle i{font-size:11px;transition:transform .18s ease}.ad-traffic-toggle[aria-expanded="true"] i{transform:rotate(180deg)}
.ad-traffic-details[hidden]{display:none!important}.ad-traffic-details{margin-top:6px;padding-top:6px;border-top:1px solid rgba(137,164,197,.18)}
.ad-traffic-details-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}.ad-traffic-details-head strong{color:#eaf1fa;font-size:10px}.ad-traffic-details-head span{color:#8295ab;font-size:8px;font-weight:800}
.ad-traffic-sources{display:grid;gap:5px}.ad-traffic-source-card{position:relative;min-width:0;padding:6px;border:1px solid rgba(137,164,197,.16);border-radius:9px;background:#081625;overflow:hidden}.ad-traffic-source-card::before{position:absolute;inset:0 auto 0 0;width:3px;background:#657990;content:""}.ad-traffic-source-card.is-live::before{background:#29d790}.ad-traffic-source-card.is-stale::before{background:#f6c84b}.ad-traffic-source-card.is-down::before{background:#ff6578}
.ad-traffic-source-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.ad-traffic-source-head>div{display:grid;min-width:0;gap:1px}.ad-traffic-source-head strong{color:#f5f8fd;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ad-traffic-source-head small{color:#74879e;font-size:7.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ad-traffic-source-head>span{flex:0 0 auto;padding:3px 5px;border-radius:999px;background:rgba(137,164,197,.1);color:#91a3b7;font-size:7px;font-weight:900}.ad-traffic-source-card.is-live .ad-traffic-source-head>span{background:rgba(41,215,144,.1);color:#65e2ad}.ad-traffic-source-card.is-stale .ad-traffic-source-head>span{background:rgba(246,200,75,.1);color:#f6c84b}.ad-traffic-source-card.is-down .ad-traffic-source-head>span{background:rgba(255,101,120,.1);color:#ff8291}
.ad-traffic-source-rates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:5px}.ad-traffic-source-rates>div{min-width:0;padding:4px;border-radius:7px;background:#0d1d30;text-align:center}.ad-traffic-source-rates span{display:block;color:#788ba2;font-size:7px}.ad-traffic-source-rates strong{display:block;margin-top:1px;direction:ltr;color:#eef5ff;font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ad-traffic-empty{margin:0;padding:8px;border-radius:8px;background:#081625;color:#8295ab;text-align:center;font-size:9px}

.ad-security-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.ad-security-grid>div{min-width:0;padding:5px 3px;border-radius:9px;background:#091728;text-align:center}
.ad-security-grid span{display:block;min-height:20px;color:#8799af;font-size:7.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ad-security-grid strong{display:block;color:#fff;font-size:16px}
.ad-card-link{display:flex;align-items:center;justify-content:center;gap:5px;min-height:38px;margin-top:5px;border:1px solid rgba(243,186,47,.25);border-radius:9px;background:rgba(243,186,47,.06)}

.ad-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.ad-quick-grid a{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:4px;border:1px solid rgba(137,164,197,.16);border-radius:9px;background:#091728;color:#e9f1fb;text-align:center;text-decoration:none;font-size:8.5px;font-weight:900}
.ad-quick-grid i{display:flex;flex:0 0 27px;align-items:center;justify-content:center;width:27px;height:27px;border-radius:8px;background:rgba(243,186,47,.11);color:#f6c84b;font-size:12px}
.ad-last-update{margin:0;color:#71849b;text-align:center;font-size:8px}

@media (max-width:350px){
  .ad-main{padding-inline:5px}.ad-top-card{grid-template-columns:auto minmax(0,1fr) 38px;padding:6px}.ad-brand-mark{width:38px;height:38px}.ad-icon-button{width:38px;height:38px}.ad-stat{min-height:72px;padding-inline:2px}.ad-stat span,.ad-security-grid span{font-size:7px}.ad-quick-grid a{font-size:7.5px}
}
