.app-help-button{
  min-width:84px;
}

body.app-help-open{
  overflow:hidden;
}

.app-help-backdrop{
  position:fixed;
  inset:0;
  z-index:120;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(15,23,42,.52);
}

.app-help-dialog{
  width:min(980px, 96vw);
  max-height:min(88vh, 820px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #dbe4f0;
  border-radius:8px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.22);
}

.app-help-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px 14px;
  border-bottom:1px solid #e5e7eb;
}

.app-help-eyebrow{
  margin:0 0 5px;
  color:#2563eb;
  font-size:12px;
  font-weight:950;
}

.app-help-head h2{
  margin:0;
  font-size:24px;
  line-height:1.25;
}

.app-help-lead{
  margin:7px 0 0;
  max-width:680px;
  color:#64748b;
  font-size:13px;
  line-height:1.55;
}

.app-help-close{
  flex:0 0 auto;
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border-radius:8px;
  font-size:22px;
  line-height:1;
}

.app-help-body{
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  min-height:0;
}

.app-help-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:14px;
  border-right:1px solid #e5e7eb;
  background:#f8fafc;
  overflow:auto;
}

.app-help-nav button{
  width:100%;
  text-align:left;
  border-radius:8px;
  background:#fff;
  color:#334155;
  padding:9px 10px;
  font-size:13px;
}

.app-help-nav button.active{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}

.app-help-content{
  min-height:0;
  padding:18px 22px 24px;
  overflow:auto;
}

.app-help-section{
  display:none;
}

.app-help-section.active{
  display:block;
}

.app-help-section h3{
  margin:0 0 12px;
  font-size:21px;
}

.app-help-list{
  display:grid;
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
}

.app-help-list li{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:12px;
  border:1px solid #e1e7f0;
  border-radius:8px;
  background:#fff;
}

.app-help-step{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-weight:950;
  font-size:13px;
}

.app-help-list strong{
  display:block;
  margin-bottom:4px;
  color:#172033;
}

.app-help-list p{
  margin:0;
  color:#475569;
  line-height:1.55;
}

.app-help-note{
  margin:14px 0 0;
  padding:11px 12px;
  border:1px solid #bfdbfe;
  border-radius:8px;
  background:#eff6ff;
  color:#1e3a8a;
  font-size:13px;
  font-weight:800;
  line-height:1.5;
}

.app-help-kbd{
  display:inline-flex;
  min-width:22px;
  justify-content:center;
  margin:0 2px;
  padding:1px 6px;
  border:1px solid #cbd5e1;
  border-bottom-width:2px;
  border-radius:6px;
  background:#fff;
  color:#0f172a;
  font:700 12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;
}

@media(max-width:760px){
  .app-help-backdrop{
    align-items:stretch;
    padding:0;
  }

  .app-help-dialog{
    width:100vw;
    max-height:100dvh;
    border-radius:0;
    border:0;
  }

  .app-help-head{
    padding:14px 14px 12px;
  }

  .app-help-head h2{
    font-size:20px;
  }

  .app-help-body{
    display:flex;
    flex-direction:column;
  }

  .app-help-nav{
    flex-direction:row;
    overflow-x:auto;
    border-right:0;
    border-bottom:1px solid #e5e7eb;
    padding:10px;
  }

  .app-help-nav button{
    width:auto;
    white-space:nowrap;
  }

  .app-help-content{
    padding:16px 14px 22px;
  }
}
