:root{
  color-scheme:dark;
  --dh-bg:#090b10;
  --dh-card:#191e29;
  --dh-line:#303746;
  --dh-gold:#f5c84c;
  --dh-text:#f3f4f7;
  --dh-muted:#9ca4b4;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--dh-bg);
  color:var(--dh-text);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,
              "Segoe UI",sans-serif;
}
button{font:inherit}
.dh-header{
  max-width:1160px;
  margin:auto;
  padding:20px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-bottom:1px solid var(--dh-line);
}
.dh-back{
  color:var(--dh-muted);
  text-decoration:none;
  font-size:13px;
}
.dh-brandline{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:5px;
}
.dh-logo{
  color:var(--dh-gold);
  font-size:29px;
  font-weight:850;
  letter-spacing:-1px;
}
.dh-alpha{
  color:var(--dh-gold);
  border:1px solid #715b23;
  border-radius:7px;
  font-size:10px;
  padding:4px 6px;
}
.dh-subtitle{
  color:var(--dh-muted);
  font-size:12px;
}
.dh-status,.dh-pending{
  flex-shrink:0;
  color:var(--dh-gold);
  background:#342a12;
  border:1px solid #6c551d;
  padding:7px 11px;
  border-radius:30px;
  font-size:12px;
  font-weight:700;
}
.dh-main{
  max-width:1160px;
  margin:auto;
  padding:25px 24px 110px;
}
.dh-intro{margin-bottom:24px}
.dh-eyebrow{
  color:var(--dh-gold);
  font-size:11px;
  font-weight:800;
  letter-spacing:2px;
}
.dh-intro h1{
  margin:8px 0;
  font-size:clamp(29px,5vw,48px);
  letter-spacing:-1.5px;
}
.dh-intro h1 em{
  color:var(--dh-gold);
  font-style:normal;
}
.dh-intro p,.dh-description{
  color:var(--dh-muted);
  line-height:1.6;
  font-size:14px;
  margin:8px 0 0;
}
.dh-overview{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:23px;
}
.dh-stat{
  background:var(--dh-card);
  border:1px solid var(--dh-line);
  border-radius:15px;
  padding:18px;
  min-width:0;
}
.dh-stat span{
  display:block;
  color:var(--dh-muted);
  font-size:12px;
  margin-bottom:9px;
}
.dh-stat strong{
  display:block;
  color:var(--dh-gold);
  font-size:clamp(20px,4vw,31px);
  overflow-wrap:anywhere;
}
.dh-tabs{
  display:flex;
  gap:7px;
  border-bottom:1px solid var(--dh-line);
  margin-bottom:22px;
  overflow-x:auto;
}
.dh-tab{
  cursor:pointer;
  background:transparent;
  border:0;
  border-bottom:3px solid transparent;
  padding:13px 17px;
  color:var(--dh-muted);
  white-space:nowrap;
}
.dh-tab.active{
  color:var(--dh-gold);
  border-bottom-color:var(--dh-gold);
  font-weight:750;
}
.dh-panel{display:none}
.dh-panel.active{display:block}
.dh-panel-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
}
.dh-panel-heading h2{
  margin:0;
  font-size:21px;
}
.dh-muted{color:var(--dh-muted);font-size:12px}
.dh-card{
  background:var(--dh-card);
  border:1px solid var(--dh-line);
  border-radius:15px;
  padding:19px;
  margin-bottom:12px;
}
.dh-card-title{
  display:flex;
  align-items:center;
  gap:13px;
}
.dh-card-title>div{flex:1;min-width:0}
.dh-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:12px;
  background:#332b17;
  color:var(--dh-gold);
  font-size:25px;
  font-weight:800;
  flex-shrink:0;
}
.dh-card h3{
  font-size:16px;
  margin:0 0 5px;
}
.dh-card small{
  color:var(--dh-muted);
  font-size:12px;
}
.dh-value{font-size:13px}
.dh-detail{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  border-top:1px solid var(--dh-line);
  margin-top:16px;
  padding-top:15px;
  font-size:13px;
}
.dh-detail span{color:var(--dh-muted)}
.dh-detail strong{
  text-align:right;
  overflow-wrap:anywhere;
}
.dh-inline-link{
  color:var(--dh-gold);
  background:transparent;
  border:0;
  cursor:pointer;
  padding:15px 0 0;
  font-weight:700;
}
.dh-description{margin-bottom:20px}
.dh-note,.dh-footnote{
  color:var(--dh-muted);
  font-size:12px;
  line-height:1.7;
}
.dh-note{
  border:1px solid var(--dh-line);
  border-radius:12px;
  padding:15px;
}
.dh-footnote{margin-top:30px}
.dh-mission{
  display:flex;
  align-items:flex-start;
  gap:18px;
}
.dh-mission-number{
  color:var(--dh-gold);
  font-size:23px;
  font-weight:850;
}
.dh-mission p{
  color:var(--dh-muted);
  font-size:13px;
  margin:5px 0 10px;
}
@media(max-width:600px){
  .dh-header{padding:15px 17px}
  .dh-main{padding:20px 17px 110px}
  .dh-overview{gap:7px}
  .dh-stat{padding:13px 10px}
  .dh-stat span{font-size:11px}
  .dh-stat strong{font-size:21px}
  .dh-card{padding:16px}
  .dh-card-title{gap:9px}
  .dh-icon{width:35px;height:35px;font-size:21px}
  .dh-card h3{font-size:14px}
  .dh-card small{font-size:11px}
  .dh-panel-heading h2{font-size:19px}
  .dh-status{font-size:11px}
}


/* ÐHost OG Wallet indicator */
.dh-header-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  min-width:0;
}
.dh-wallet-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--dh-gold);
  text-decoration:none;
  border:1px solid var(--dh-line);
  background:var(--dh-card);
  border-radius:9px;
  padding:8px 10px;
  font-size:12px;
  font-weight:650;
  max-width:100%;
}
.dh-wallet-link:hover{
  border-color:var(--dh-gold);
}
.dh-wallet-symbol{
  font-weight:900;
}
@media(max-width:480px){
  .dh-header{
    align-items:flex-start;
    gap:8px;
  }
  .dh-header-right{
    align-items:flex-end;
    max-width:55%;
  }
  .dh-wallet-link{
    font-size:10px;
    padding:7px;
  }
  .dh-status{
    font-size:10px;
    padding:6px 8px;
  }
}

/* ÐHost registration v1 */

.dh-registration{
  overflow-wrap:anywhere;
}

#dh-register-form{
  display:flex;
  flex-direction:column;
  gap:15px;
}

#dh-register-form>label,
#dh-register-form legend{
  color:var(--dh-text);
  font-size:13px;
  font-weight:700;
}

#dh-node-name{
  display:block;
  width:100%;
  min-height:46px;
  padding:12px 14px;
  color:var(--dh-text);
  background:var(--dh-bg);
  border:1px solid var(--dh-line);
  border-radius:10px;
  font:inherit;
  font-size:14px;
}

#dh-node-name:focus-visible{
  outline:2px solid var(--dh-gold);
  outline-offset:2px;
}

#dh-register-form fieldset{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:0;
  padding:16px;
  border:1px solid var(--dh-line);
  border-radius:12px;
  min-width:0;
}

#dh-register-form legend{
  padding:0 8px;
}

#dh-register-form fieldset label{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  font-size:13px;
  line-height:1.5;
  cursor:pointer;
}

#dh-register-form input[type="checkbox"]{
  width:18px;
  height:18px;
  flex-shrink:0;
  accent-color:var(--dh-gold);
}

#dh-register-submit{
  width:100%;
  min-height:46px;
  padding:12px 16px;
  border:1px solid var(--dh-gold);
  border-radius:11px;
  background:var(--dh-gold);
  color:#151515;
  font-weight:800;
  cursor:pointer;
}

#dh-register-submit:hover:not(:disabled){
  filter:brightness(1.08);
}

#dh-register-submit:focus-visible{
  outline:2px solid var(--dh-text);
  outline-offset:3px;
}

#dh-register-submit:disabled{
  opacity:.6;
  cursor:wait;
}

#dh-register-status{
  min-height:20px;
  margin:0;
  color:var(--dh-gold);
  font-size:13px;
  line-height:1.5;
  overflow-wrap:anywhere;
}

#dh-my-nodes{
  color:var(--dh-muted);
  font-size:13px;
  line-height:1.6;
}

#dh-my-nodes .dh-detail{
  flex-wrap:wrap;
}

#dh-my-nodes .dh-detail strong{
  color:var(--dh-text);
  text-align:left;
}

@media(max-width:600px){
  #dh-register-form fieldset{
    grid-template-columns:minmax(0,1fr);
    padding:13px;
  }

  #dh-my-nodes .dh-detail{
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }
}


/* DHOST COMPACT DASHBOARD V1 */

/* Compact page structure */
.dh-header{
  padding-top:12px;
  padding-bottom:12px;
}

.dh-main{
  padding-top:14px;
  padding-bottom:70px;
}

.dh-intro{
  margin-bottom:12px;
}

.dh-intro h1{
  font-size:clamp(24px,3.5vw,34px);
  margin:4px 0;
}

.dh-intro p{
  font-size:12px;
  margin-top:3px;
}

.dh-overview{
  gap:8px;
  margin-bottom:12px;
}

.dh-stat{
  padding:11px 13px;
  border-radius:11px;
}

.dh-stat span{
  margin-bottom:3px;
  font-size:11px;
}

.dh-stat strong{
  font-size:clamp(17px,3vw,24px);
}

.dh-tabs{
  margin-bottom:12px;
}

.dh-tab{
  padding:9px 13px;
  font-size:13px;
}

.dh-panel-heading{
  margin-bottom:9px;
}

.dh-panel-heading h2{
  font-size:18px;
}

.dh-card{
  padding:13px;
  margin-bottom:9px;
  border-radius:12px;
}

.dh-description{
  margin-bottom:10px;
  line-height:1.4;
  font-size:12px;
}

/* Compact registration form */
#dh-register-form{
  gap:8px;
}

#dh-node-name,
#dh-node-wallet{
  display:block;
  width:100%;
  min-width:0;
  min-height:38px;
  padding:8px 11px;
  color:var(--dh-text);
  background:var(--dh-bg);
  border:1px solid var(--dh-line);
  border-radius:8px;
  font:inherit;
  font-size:13px;
}

#dh-register-form fieldset{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px 12px;
  padding:10px;
}

#dh-register-form fieldset label{
  font-size:12px;
  line-height:1.25;
}

#dh-register-form input[type="checkbox"]{
  width:16px;
  height:16px;
}

#dh-register-submit{
  min-height:40px;
  padding:9px 12px;
}

#dh-register-status:empty{
  display:none;
}

/* Collapsible secondary information */
.dh-collapsible{
  margin-bottom:9px;
}

.dh-collapsible>summary{
  cursor:pointer;
  color:var(--dh-gold);
  font-size:13px;
  font-weight:750;
  padding:2px 0;
}

.dh-collapsible[open]>summary{
  margin-bottom:12px;
}

.dh-missions{
  border:1px solid var(--dh-line);
  border-radius:12px;
  background:var(--dh-card);
  padding:12px 14px;
}

.dh-missions .dh-mission{
  margin-top:10px;
  margin-bottom:0;
  background:var(--dh-bg);
}

.dh-footnote{
  margin-top:12px;
  font-size:11px;
}

/* Wide screens: form and registered nodes remain manageable */
@media(min-width:800px){
  #dh-launchpad.active{
    max-width:100%;
  }

  #dh-register-form fieldset{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* Phones: two-column capabilities, compact header */
@media(max-width:600px){
  .dh-header{
    padding:10px 12px;
  }

  .dh-main{
    padding:12px 12px 80px;
  }

  .dh-logo{
    font-size:23px;
  }

  .dh-subtitle{
    font-size:10px;
  }

  .dh-intro h1{
    font-size:25px;
  }

  .dh-overview{
    gap:5px;
  }

  .dh-stat{
    padding:9px 7px;
  }

  .dh-stat span{
    font-size:10px;
  }

  .dh-stat strong{
    font-size:17px;
  }

  .dh-card{
    padding:12px;
  }

  #dh-register-form fieldset{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px 6px;
    padding:10px 8px;
  }

  #dh-register-form fieldset label{
    gap:5px;
    font-size:11px;
  }

  .dh-tabs{
    gap:3px;
  }

  .dh-tab{
    padding:9px 10px;
    font-size:12px;
  }
}

@media(max-width:360px){
  #dh-register-form fieldset{
    grid-template-columns:minmax(0,1fr);
  }
}


/* ÐHost registered node inspection */
#dh-my-nodes .dh-inspect-button{
  display:inline-block;
  width:100%;
  min-height:38px;
  padding:8px 12px;
  margin-top:8px;
  border:1px solid var(--dh-gold);
  border-radius:8px;
  background:transparent;
  color:var(--dh-gold);
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

#dh-my-nodes .dh-inspection-report{
  width:100%;
  padding:10px 12px;
  margin-top:8px;
  border:1px solid var(--dh-line);
  border-radius:8px;
  background:var(--dh-bg);
  color:var(--dh-text);
  overflow-wrap:anywhere;
}

#dh-my-nodes .dh-inspection-report[hidden]{
  display:none !important;
}

#dh-my-nodes .dh-inspection-report p{
  margin:5px 0;
  font-size:12px;
  line-height:1.5;
}


/* DHOST GUIDED ONBOARDING V1 */
#dh-register-form{
  gap:16px;
}
#dh-register-form .dh-onboarding-intro{
  margin:4px 0;
  color:var(--dh-muted);
  font-size:14px;
  line-height:1.65;
}
#dh-register-form .dh-onboarding-step{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
  padding:20px;
  background:var(--dh-bg);
  border:1px solid var(--dh-line);
  border-radius:14px;
  scroll-margin-top:24px;
}
#dh-register-form .dh-step-heading{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
#dh-register-form .dh-step-heading h3{
  margin:0;
  font-size:17px;
  line-height:1.4;
}
#dh-register-form .dh-step-state{
  display:inline-block;
  max-width:100%;
  padding:5px 9px;
  border:1px solid var(--dh-line);
  border-radius:8px;
  background:var(--dh-card);
  color:var(--dh-muted);
  font-size:12px;
  font-weight:650;
  line-height:1.5;
}
#dh-register-form .dh-step-state[data-state="ready"],
#dh-register-form .dh-step-state[data-state="working"]{
  color:var(--dh-gold);
  border-color:#806725;
  background:#292310;
}
#dh-register-form .dh-step-state[data-state="complete"]{
  color:#a4ebbd;
  border-color:#376b4a;
  background:#14291d;
}
#dh-register-form .dh-step-state[data-state="error"]{
  color:#ffc0b8;
  border-color:#8a4941;
  background:#321d1a;
}
#dh-register-form .dh-onboarding-step>.dh-description{
  margin:0;
  font-size:14px;
  line-height:1.65;
}
#dh-register-form .dh-onboarding-step>label{
  display:block;
  margin:4px 0 0;
  color:var(--dh-text);
  font-size:13px;
  font-weight:700;
  line-height:1.5;
}
#dh-register-form .dh-step-instructions{
  margin:0;
  padding-left:23px;
  color:var(--dh-muted);
  font-size:14px;
  line-height:1.65;
}
#dh-register-form .dh-step-instructions li+li{
  margin-top:8px;
}
#dh-register-form #dh-node-name,
#dh-register-form #dh-node-wallet,
#dh-register-form #dh-agent-bundle{
  display:block;
  width:100%;
  min-width:0;
  padding:12px 14px;
  border:1px solid var(--dh-line);
  border-radius:10px;
  background:var(--dh-card);
  color:var(--dh-text);
  font:inherit;
  font-size:16px;
  line-height:1.5;
}
#dh-register-form #dh-agent-bundle{
  min-height:150px;
  resize:vertical;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
#dh-register-form #dh-agent-bundle-file{
  display:block;
  width:100%;
  min-width:0;
  padding:12px;
  border:1px dashed #60697a;
  border-radius:10px;
  background:var(--dh-card);
  color:var(--dh-muted);
  font:inherit;
  font-size:14px;
}
#dh-agent-bundle-file::file-selector-button{
  margin-right:12px;
  padding:9px 12px;
  border:1px solid var(--dh-line);
  border-radius:7px;
  background:var(--dh-bg);
  color:var(--dh-text);
  font:inherit;
  cursor:pointer;
}
#dh-register-form #dh-agent-command-build,
#dh-register-form #dh-agent-review,
#dh-register-form #dh-register-submit{
  display:block;
  width:100%;
  min-height:48px;
  padding:12px 16px;
  border:1px solid var(--dh-gold);
  border-radius:10px;
  background:var(--dh-gold);
  color:#151515;
  font:inherit;
  font-size:14px;
  font-weight:800;
  line-height:1.5;
  white-space:normal;
  cursor:pointer;
}
#dh-register-form #dh-agent-command-build{
  background:transparent;
  color:var(--dh-gold);
}
#dh-register-form button:hover:not(:disabled){
  filter:brightness(1.1);
}
#dh-register-form button:disabled{
  opacity:.55;
  cursor:not-allowed;
}
#dh-register-form :is(button,input,textarea):focus-visible{
  outline:2px solid var(--dh-gold);
  outline-offset:3px;
}
#dh-register-form #dh-agent-command{
  max-width:100%;
  margin:0;
  padding:16px;
  border:1px solid var(--dh-line);
  border-radius:10px;
  background:#11151d;
  color:var(--dh-text);
  font-size:12px;
  line-height:1.7;
  overflow-x:auto;
}
#dh-register-form #dh-agent-command[hidden]{
  display:none;
}
#dh-register-form #dh-agent-review-result{
  min-width:0;
  font-size:14px;
  line-height:1.6;
  overflow-wrap:anywhere;
}
#dh-register-form #dh-agent-review-result:empty{
  display:none;
}
#dh-register-form #dh-agent-review-result .dh-detail{
  flex-wrap:wrap;
  align-items:flex-start;
  gap:6px 16px;
}
#dh-register-form .dh-onboarding-next{
  padding:16px 18px;
  border-left:3px solid var(--dh-gold);
  border-radius:0 10px 10px 0;
  background:#242113;
}
#dh-register-form .dh-onboarding-next h3{
  margin:0 0 8px;
  font-size:15px;
}
#dh-register-form .dh-onboarding-next p{
  margin:0;
  font-size:13px;
  line-height:1.65;
}
@media(max-width:600px){
  #dh-register-form .dh-onboarding-step{
    padding:16px;
  }
  #dh-register-form .dh-step-heading{
    align-items:flex-start;
    flex-direction:column;
  }
  #dh-register-form fieldset{
    grid-template-columns:minmax(0,1fr);
  }
  #dh-register-form fieldset label{
    min-height:44px;
  }
  #dh-register-form #dh-agent-review-result .dh-detail{
    flex-direction:column;
  }
  #dh-register-form #dh-agent-review-result .dh-detail strong{
    text-align:left;
  }
}
