:root{
  --bg:#0b0f19; --card:#121a2a; --card2:#0e1525; --line:#24304a;
  --text:#eaf0ff; --muted:#9fb0d0;
  --brand:#ffb020; --brand2:#ffcf66;
  --ok:#16a34a; --bad:#ef4444;
  --r:16px;
}

html,body{background:var(--bg)!important;color:var(--text)!important;}
a{color:inherit}
.container, .container-fluid{max-width:1200px}
.card, .box, .panel, .content-box{
  background:linear-gradient(180deg,var(--card),var(--card2));
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.table{color:var(--text)}
.table thead th{border-bottom:1px solid var(--line); color:var(--muted)}
.table td,.table th{border-top:1px solid rgba(36,48,74,.35)}
.badge{padding:.35rem .6rem;border-radius:999px;font-weight:700;font-size:.75rem}
.badge.ok{background:rgba(22,163,74,.18); color:#7CFFB0; border:1px solid rgba(22,163,74,.35)}
.badge.bad{background:rgba(239,68,68,.15); color:#ffb4b4; border:1px solid rgba(239,68,68,.35)}
.btn{
  border-radius:14px!important;
  border:0!important;
  padding:.8rem 1rem!important;
  font-weight:800!important;
}
.btn-primary,.btn-brand{
  background:linear-gradient(180deg,var(--brand2),var(--brand))!important;
  color:#1a1a1a!important;
}
.btn-outline{
  background:transparent!important;
  border:1px solid var(--line)!important;
  color:var(--text)!important;
}
.btn-icon{
  width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:12px;border:1px solid var(--line); background:rgba(255,255,255,.03);
}
.btn-icon:hover{background:rgba(255,255,255,.06)}
.toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.search{display:flex;gap:10px;align-items:center}
.search input{
  background:rgba(255,255,255,.03); border:1px solid var(--line);
  color:var(--text); border-radius:14px; padding:.8rem 1rem; min-width:260px;
}
.kbdhint{color:var(--muted);font-size:.85rem}
.iconimg{width:44px;height:44px;border-radius:12px;object-fit:cover;border:1px solid rgba(255,255,255,.12)}
/* Mobile/TV cards */
.grid{display:grid;gap:14px;grid-template-columns:repeat(3,1fr)}
@media (max-width:1100px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){.grid{grid-template-columns:1fr}}
.appcard{padding:14px}
.apphead{display:flex;gap:12px;align-items:center}
.appmeta{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.appmeta span{color:var(--muted);font-size:.9rem}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.actions .btn{flex:1;min-width:140px}
/* foco para controle remoto */
a,button,input,select,textarea{outline:none}
a:focus,button:focus,input:focus,select:focus,textarea:focus{
  box-shadow:0 0 0 3px rgba(255,176,32,.35);
  border-color:rgba(255,176,32,.65)!important;
}
.preview{
  margin-top:10px; display:flex; gap:10px; flex-wrap:wrap;
}
.preview img{
  width:140px; height:78px; object-fit:cover;
  border-radius:14px; border:1px solid rgba(255,255,255,.12);
}
.smallhelp{color:var(--muted);font-size:.85rem}
hr{border-color:rgba(36,48,74,.5)}
