/* DANGYLSIRL_HOME_PANEL_V44_17_4
   Scope: existing homepage device demo only.
   The original shell/header/tab styles stay untouched. */

.hero-device-panel .device-demo-tabs [data-demo-extra]{
  white-space:nowrap;
}

/* ---------- Shared extra view ---------- */
.hero-device-panel .dgl174-view{
  width:100%;
  min-width:0;
  color:#eef3f5;
  animation:dgl174-in .16s ease-out both;
}
@keyframes dgl174-in{
  from{opacity:.55;transform:translateY(2px)}
  to{opacity:1;transform:none}
}

.hero-device-panel .dgl174-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.hero-device-panel .dgl174-kicker{
  color:#c7f000;
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.hero-device-panel .dgl174-title{
  margin-top:3px;
  color:#eef3f5;
  font-size:15px;
  font-weight:900;
  letter-spacing:-.02em;
}
.hero-device-panel .dgl174-sub{
  max-width:430px;
  margin-top:3px;
  color:#71808a;
  font-size:8px;
  line-height:1.45;
}

.hero-device-panel .dgl174-grid{
  display:grid;
  gap:7px;
  min-width:0;
}
.hero-device-panel .dgl174-grid.cols-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.hero-device-panel .dgl174-grid.cols-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.hero-device-panel .dgl174-grid.cols-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.hero-device-panel .dgl174-card{
  min-width:0;
  padding:9px;
  border:1px solid #26333d;
  border-radius:10px;
  background:#0b1217;
}
.hero-device-panel .dgl174-card.cyan{border-color:rgba(67,216,255,.27)}
.hero-device-panel .dgl174-card.lime{border-color:rgba(199,240,0,.28)}
.hero-device-panel .dgl174-card.red{border-color:rgba(225,82,104,.34)}

.hero-device-panel .dgl174-card small{
  display:block;
  overflow:hidden;
  color:#697984;
  font-size:7px;
  font-weight:850;
  letter-spacing:.055em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.hero-device-panel .dgl174-card strong{
  display:block;
  overflow:hidden;
  margin-top:3px;
  color:#edf3f5;
  font-size:10px;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.hero-device-panel .dgl174-card strong.lime{color:#c7f000}
.hero-device-panel .dgl174-card strong.cyan{color:#5bdcff}
.hero-device-panel .dgl174-card strong.red{color:#ff6b80}

/* ---------- OBS ---------- */
.hero-device-panel .dgl174-obs-main{
  display:grid;
  grid-template-columns:1.12fr .88fr;
  gap:8px;
  margin-top:8px;
}
.hero-device-panel .dgl174-scene-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  margin-top:7px;
}
.hero-device-panel .dgl174-scene{
  min-height:35px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #2b3841;
  border-radius:8px;
  color:#f5f7f8;
  font-size:8px;
  font-weight:950;
  cursor:pointer;
  transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease;
}
.hero-device-panel .dgl174-scene:hover{transform:translateY(-1px)}
.hero-device-panel .dgl174-scene.live{background:#136b4c;border-color:#34b97c}
.hero-device-panel .dgl174-scene.low{background:#8f7108;border-color:#d4a915}
.hero-device-panel .dgl174-scene.offline{background:#702331;border-color:#d9576b}
.hero-device-panel .dgl174-scene.additional{background:#0e6575;border-color:#35bed8}
.hero-device-panel .dgl174-scene.is-selected{
  box-shadow:0 0 0 2px rgba(255,255,255,.78) inset,0 0 16px rgba(255,255,255,.08);
}

.hero-device-panel .dgl174-streambox{
  display:flex;
  flex-direction:column;
}
.hero-device-panel .dgl174-streambox p{
  flex:1;
  margin:7px 0 0;
  color:#71808a;
  font-size:8px;
  line-height:1.5;
}
.hero-device-panel .dgl174-action{
  width:100%;
  min-height:33px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:9px;
  border:1px solid #30c477;
  border-radius:8px;
  background:#157b49;
  color:#fff;
  font:inherit;
  font-size:8px;
  font-weight:950;
  cursor:pointer;
}
.hero-device-panel .dgl174-action.is-on{
  border-color:#dc5267;
  background:#6f2633;
}

/* ---------- Personalization ---------- */
.hero-device-panel .dgl174-customize{
  flex:none;
  min-height:29px;
  padding:0 10px;
  border:1px solid rgba(199,240,0,.34);
  border-radius:8px;
  background:rgba(199,240,0,.07);
  color:#c7f000;
  font-size:8px;
  font-weight:900;
  cursor:pointer;
}
.hero-device-panel .dgl174-personal-top{
  display:grid;
  grid-template-columns:1.25fr .9fr .85fr;
  gap:7px;
}
.hero-device-panel .dgl174-big{
  min-height:68px;
}
.hero-device-panel .dgl174-big .dgl174-action{
  min-height:37px;
  background:#c7f000;
  border-color:#c7f000;
  color:#071014;
}
.hero-device-panel .dgl174-preview{
  height:88px;
  margin-top:7px;
  border:1px solid #25323b;
  border-radius:10px;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px),
    #030507;
  background-size:24px 24px;
}
.hero-device-panel .dgl174-drag{
  position:relative;
  transition:transform .16s ease,border-color .16s ease;
}
.hero-device-panel .dgl174-drag::after{
  content:"••";
  position:absolute;
  top:3px;
  right:6px;
  color:#43515a;
  font-size:7px;
  letter-spacing:-1px;
}
.hero-device-panel .dgl174-personal.is-editing .dgl174-drag:nth-child(odd){
  transform:translateY(-2px);
  border-color:rgba(199,240,0,.46);
}
.hero-device-panel .dgl174-personal.is-editing .dgl174-drag:nth-child(even){
  transform:translateY(2px);
  border-color:rgba(67,216,255,.42);
}

@media(max-width:980px){
  .hero-device-panel .dgl174-grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .hero-device-panel .dgl174-head{align-items:flex-start}
  .hero-device-panel .dgl174-obs-main,
  .hero-device-panel .dgl174-personal-top{grid-template-columns:1fr}
  .hero-device-panel .dgl174-grid.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-device-panel .dgl174-preview{height:72px}
}
@media(prefers-reduced-motion:reduce){
  .hero-device-panel .dgl174-view{animation:none}
  .hero-device-panel .dgl174-drag,
  .hero-device-panel .dgl174-scene{transition:none}
}

/* =========================================================
   DANGYLSIRL_HOME_PANEL_V44_17_5
   Personalization editor bar based on current DangylsIRL Local.
   ========================================================= */

.hero-device-panel .dgl175-customize.is-done{
  border-color:rgba(255,98,117,.70)!important;
  background:#b53a4d!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(181,58,77,.18);
}

.hero-device-panel .dgl175-editor[hidden]{
  display:none!important;
}

.hero-device-panel .dgl175-editor{
  margin:0 0 9px;
  padding:9px;
  border:1px solid #26333d;
  border-radius:10px;
  background:rgba(12,19,24,.96);
}

.hero-device-panel .dgl175-editor-actions{
  display:flex;
  align-items:center;
  gap:6px;
}

.hero-device-panel .dgl175-editor-actions button{
  min-height:27px;
  padding:0 9px;
  border:1px solid #2d3b45;
  border-radius:7px;
  background:#0b1217;
  color:#dbe4e8;
  font:inherit;
  font-size:7px;
  font-weight:850;
  cursor:pointer;
}

.hero-device-panel .dgl175-editor-actions button:hover{
  border-color:rgba(199,240,0,.32);
  color:#fff;
}

.hero-device-panel .dgl175-save-note,
.hero-device-panel .dgl175-browser-hint{
  margin-top:5px;
  color:#60707a;
  font-size:6.5px;
  line-height:1.35;
}

.hero-device-panel .dgl175-divider{
  height:1px;
  margin:7px 0;
  background:#1f2a31;
}

.hero-device-panel .dgl175-editor-label{
  margin-bottom:5px;
  color:#7d8d97;
  font-size:6.5px;
  font-weight:900;
  letter-spacing:.08em;
}

.hero-device-panel .dgl175-widget-strip{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  max-height:76px;
  overflow:auto;
  padding-right:2px;
  scrollbar-width:thin;
}

.hero-device-panel .dgl175-widget-strip.is-pulsing{
  animation:dgl175Pulse .52s ease;
}

@keyframes dgl175Pulse{
  0%,100%{filter:none}
  50%{filter:drop-shadow(0 0 7px rgba(199,240,0,.26))}
}

.hero-device-panel .dgl175-widget-chip{
  min-height:23px;
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:0 7px;
  border:1px solid #31414b;
  border-radius:7px;
  background:#0a1116;
  color:#83929b;
  font:inherit;
  font-size:6.2px;
  font-weight:850;
  white-space:nowrap;
  cursor:pointer;
}

.hero-device-panel .dgl175-widget-chip span{
  color:#72828b;
  font-size:6px;
}

.hero-device-panel .dgl175-widget-chip.is-enabled{
  border-color:#21c66f;
  background:rgba(17,105,65,.28);
  color:#eaf8ee;
}

.hero-device-panel .dgl175-widget-chip.is-enabled span{
  color:#79ea88;
}

.hero-device-panel .dgl175-browser-row{
  display:grid;
  grid-template-columns:.72fr 1.7fr auto;
  gap:6px;
  align-items:end;
}

.hero-device-panel .dgl175-browser-row label{
  display:grid;
  gap:4px;
}

.hero-device-panel .dgl175-browser-row label>span{
  color:#778791;
  font-size:6.2px;
}

.hero-device-panel .dgl175-browser-row input{
  width:100%;
  min-width:0;
  height:28px;
  padding:0 8px;
  border:1px solid #2a3943;
  border-radius:7px;
  outline:0;
  background:#0a1116;
  color:#b9c5ca;
  font:inherit;
  font-size:7px;
}

.hero-device-panel .dgl175-browser-row input:focus{
  border-color:rgba(199,240,0,.40);
}

.hero-device-panel .dgl175-add-link{
  min-height:28px;
  padding:0 10px;
  border:1px solid #c7f000;
  border-radius:7px;
  background:#c7f000;
  color:#071014;
  font:inherit;
  font-size:7px;
  font-weight:950;
  cursor:pointer;
}

.hero-device-panel .dgl175-widget-hidden{
  display:none!important;
}

.hero-device-panel .dgl174-preview.has-browser-source{
  position:relative;
  background:
    linear-gradient(rgba(199,240,0,.025),rgba(199,240,0,.025)),
    #010203;
}

.hero-device-panel .dgl174-preview.has-browser-source::after{
  content:attr(data-browser-name);
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  color:#c7f000;
  font-size:9px;
  font-weight:900;
  letter-spacing:.05em;
}

@media(max-width:700px){
  .hero-device-panel .dgl175-browser-row{
    grid-template-columns:1fr;
  }

  .hero-device-panel .dgl175-widget-strip{
    max-height:92px;
  }
}

/* END_DANGYLSIRL_HOME_PANEL_V44_17_5 */

/* =========================================================
   DANGYLSIRL_HOME_PANEL_V44_17_6
   Floating remote + complete widget layout.
   ========================================================= */

.hero-device-panel .device-demo-shell{
  position:relative;
}

.hero-device-panel .dgl176-layout{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-rows:54px;
  grid-auto-flow:row dense;
  gap:7px;
  min-width:0;
}

.hero-device-panel .dgl176-tile{
  grid-column:span var(--dgl176-cs,1);
  grid-row:span var(--dgl176-rs,1);
  min-height:0!important;
  height:auto;
  overflow:hidden;
}

.hero-device-panel .dgl176-stream-control{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.hero-device-panel .dgl176-stream-control .dgl174-action,
.hero-device-panel .dgl176-obs-stream .dgl174-action{
  min-height:31px;
  margin-top:5px;
}

.hero-device-panel .dgl176-browser-tile{
  position:relative;
  grid-column:span var(--dgl176-cs,3);
  grid-row:span var(--dgl176-rs,3);
  width:auto!important;
  height:auto!important;
  min-height:160px;
  margin:0!important;
  background:#010203!important;
}

.hero-device-panel .dgl176-browser-meta{
  position:absolute;
  left:7px;
  top:7px;
  color:#64747e;
  font-size:6px;
}

.hero-device-panel .dgl176-browser-actions{
  position:absolute;
  right:7px;
  top:6px;
  display:flex;
  align-items:center;
  gap:5px;
  color:#81909a;
  font-size:6px;
}

.hero-device-panel .dgl176-browser-actions span{
  padding:4px 6px;
  border:1px solid #293842;
  border-radius:6px;
  background:#0c1318;
}

.hero-device-panel .dgl176-browser-actions b{
  color:#e9eff2;
  font-size:6px;
}

.hero-device-panel .dgl176-browser-tile.has-browser-source::after{
  content:attr(data-dgl176-label);
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  color:#c7f000;
  font-size:9px;
  font-weight:900;
}

.hero-device-panel .dgl176-scenes-mini{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:3px;
  margin-top:5px;
}

.hero-device-panel .dgl176-scenes-mini span{
  min-height:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:5px;
  color:#fff;
  font-size:5.5px;
  font-weight:950;
}

.hero-device-panel .dgl176-scenes-mini .live{
  background:#148457;
}
.hero-device-panel .dgl176-scenes-mini .low{
  background:#a98300;
  color:#080b09;
}
.hero-device-panel .dgl176-scenes-mini .off{
  background:#ba3c50;
}
.hero-device-panel .dgl176-scenes-mini .add{
  background:#117b8f;
}

.hero-device-panel .dgl176-status-lines{
  display:grid;
  gap:2px;
  margin-top:4px;
}

.hero-device-panel .dgl176-status-lines span{
  display:flex;
  justify-content:space-between;
  gap:5px;
  color:#dce4e7;
  font-size:6px;
}

.hero-device-panel .dgl176-status-lines b{
  color:#b8c3c8;
}
.hero-device-panel .dgl176-status-lines b.ok{
  color:#c7f000;
}

/* edit mode */
.hero-device-panel .dgl176-personal.is-editing .dgl176-tile{
  cursor:pointer;
  outline:1px dashed rgba(118,139,151,.42);
  outline-offset:-1px;
}

.hero-device-panel .dgl176-personal.is-editing .dgl176-tile:hover{
  border-color:rgba(199,240,0,.32);
}

.hero-device-panel .dgl176-personal.is-editing .dgl176-tile.is-selected{
  outline:2px solid #c7f000;
  outline-offset:-2px;
  box-shadow:
    0 0 0 1px rgba(199,240,0,.10),
    0 0 18px rgba(199,240,0,.08);
}

/* floating controller from current Local UI */
.hero-device-panel .dgl176-remote[hidden]{
  display:none!important;
}

.hero-device-panel .dgl176-remote{
  position:absolute;
  left:50%;
  bottom:12px;
  z-index:60;
  width:min(620px,calc(100% - 28px));
  transform:translateX(-50%);
  padding:9px;
  border:1px solid #2a3942;
  border-radius:13px;
  background:rgba(8,14,18,.98);
  box-shadow:0 22px 55px rgba(0,0,0,.48);
}

.hero-device-panel .dgl176-remote-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:19px;
  margin-bottom:5px;
}

.hero-device-panel .dgl176-remote-head strong{
  color:#f1f4f5;
  font-size:8px;
  font-weight:900;
}

.hero-device-panel .dgl176-remote-head button{
  width:22px;
  height:18px;
  padding:0;
  border:0;
  background:transparent;
  color:#c7f000;
  font-size:15px;
  line-height:1;
  cursor:pointer;
}

.hero-device-panel .dgl176-remote-body{
  display:grid;
  grid-template-columns:118px minmax(0,1fr) 76px;
  gap:12px;
  align-items:center;
}

.hero-device-panel .dgl176-dpad{
  display:grid;
  grid-template-columns:repeat(3,34px);
  grid-template-rows:repeat(3,31px);
  gap:3px;
  justify-content:center;
  align-items:center;
}

.hero-device-panel .dgl176-dpad button{
  width:34px;
  height:31px;
  padding:0;
  border:1px solid #24323b;
  border-radius:8px;
  background:#0c1318;
  color:#64727b;
  font-size:17px;
  font-weight:900;
  cursor:pointer;
}

.hero-device-panel .dgl176-dpad [data-dgl176-move="up"]{
  grid-column:2;grid-row:1;
}
.hero-device-panel .dgl176-dpad [data-dgl176-move="left"]{
  grid-column:1;grid-row:2;
}
.hero-device-panel .dgl176-center-dot{
  grid-column:2;grid-row:2;
  width:34px;height:31px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(199,240,0,.12);
  border-radius:8px;
  background:#0c1510;
}
.hero-device-panel .dgl176-center-dot::after{
  content:"";
  width:8px;height:8px;
  border-radius:50%;
  background:#526f12;
}
.hero-device-panel .dgl176-dpad [data-dgl176-move="right"]{
  grid-column:3;grid-row:2;
}
.hero-device-panel .dgl176-dpad [data-dgl176-move="down"]{
  grid-column:2;grid-row:3;
}

.hero-device-panel .dgl176-size-controls{
  display:grid;
  gap:7px;
}

.hero-device-panel .dgl176-size-controls>div{
  display:grid;
  grid-template-columns:72px 1fr 1fr;
  gap:6px;
  align-items:center;
}

.hero-device-panel .dgl176-size-controls small{
  color:#34434c;
  font-size:6px;
  font-weight:900;
  letter-spacing:.04em;
}

.hero-device-panel .dgl176-size-controls button{
  min-height:34px;
  border:1px solid #233039;
  border-radius:8px;
  background:#0b1217;
  color:#616e76;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
}

.hero-device-panel .dgl176-dpad button:hover,
.hero-device-panel .dgl176-size-controls button:hover{
  border-color:rgba(199,240,0,.24);
  color:#c7f000;
}

.hero-device-panel .dgl176-remove{
  height:72px;
  border:1px solid rgba(211,74,93,.30);
  border-radius:9px;
  background:rgba(72,20,29,.26);
  color:#84404c;
  font-size:7px;
  font-weight:900;
  cursor:pointer;
}

.hero-device-panel .dgl176-remove:hover{
  border-color:rgba(225,82,104,.55);
  color:#e15268;
}

@media(max-width:700px){
  .hero-device-panel .dgl176-layout{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .hero-device-panel .dgl176-browser-tile{
    grid-column:span 2!important;
  }

  .hero-device-panel .dgl176-remote{
    bottom:8px;
    width:calc(100% - 16px);
  }

  .hero-device-panel .dgl176-remote-body{
    grid-template-columns:100px minmax(0,1fr) 58px;
    gap:7px;
  }

  .hero-device-panel .dgl176-size-controls>div{
    grid-template-columns:52px 1fr 1fr;
    gap:4px;
  }

  .hero-device-panel .dgl176-remove{
    height:68px;
  }
}

@media(max-width:520px){
  .hero-device-panel .dgl176-remote-body{
    grid-template-columns:1fr;
  }

  .hero-device-panel .dgl176-size-controls>div{
    grid-template-columns:64px 1fr 1fr;
  }

  .hero-device-panel .dgl176-remove{
    height:34px;
  }
}

/* END_DANGYLSIRL_HOME_PANEL_V44_17_6 */

/* =========================================================
   DANGYLSIRL_HOME_PANEL_V44_17_7
   Only goal: make the top navigation tabs slightly smaller
   so the full set fits in a single row on desktop.
   ========================================================= */

.hero-device-panel .device-demo-tabs{
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
  align-items:stretch;
}

.hero-device-panel .device-demo-tabs > button{
  flex:0 1 auto;
  min-width:0;
  min-height:38px;
  padding:0 11px;
  font-size:11px;
  line-height:1;
  letter-spacing:-0.01em;
  white-space:nowrap;
}

.hero-device-panel .device-demo-tabs > button[data-demo-tab="camera"]{
  padding-left:10px;
  padding-right:10px;
  font-size:10.5px;
}

.hero-device-panel .device-demo-tabs > button[data-demo-extra="personalization"]{
  padding-left:10px;
  padding-right:10px;
  font-size:10.5px;
}

@media (max-width: 900px){
  .hero-device-panel .device-demo-tabs{
    flex-wrap:wrap;
    gap:8px;
  }

  .hero-device-panel .device-demo-tabs > button{
    min-height:40px;
    padding:0 13px;
    font-size:12px;
  }

  .hero-device-panel .device-demo-tabs > button[data-demo-tab="camera"],
  .hero-device-panel .device-demo-tabs > button[data-demo-extra="personalization"]{
    padding-left:12px;
    padding-right:12px;
    font-size:12px;
  }
}

/* END_DANGYLSIRL_HOME_PANEL_V44_17_7 */
